]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | ||
3 | # From configure.in Id: configure.in | |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 | ||
48 | ||
49 | ||
50 | ||
51 | ||
52 | ||
53 | ||
54 | ||
55 | ||
56 | ||
57 | ||
58 | ||
59 | # Configure paths for GTK+ | |
60 | # Owen Taylor 1997-2001 | |
61 | ||
62 | ||
63 | ||
64 | # Configure paths for GTK+ | |
65 | # Owen Taylor 97-11-3 | |
66 | ||
67 | ||
68 | ||
69 | # Guess values for system-dependent variables and create Makefiles. | |
70 | # Generated automatically using autoconf version 2.13 | |
71 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
72 | # | |
73 | # This configure script is free software; the Free Software Foundation | |
74 | # gives unlimited permission to copy, distribute and modify it. | |
75 | ||
76 | # Defaults: | |
77 | ac_help= | |
78 | ac_default_prefix=/usr/local | |
79 | # Any additions from configure.in: | |
80 | ac_help="$ac_help | |
81 | --enable-gui use GUI classes" | |
82 | ac_help="$ac_help | |
83 | --enable-universal use wxWindows GUI controls instead of native ones" | |
84 | ac_help="$ac_help | |
85 | --with-gtk use GTK+" | |
86 | ac_help="$ac_help | |
87 | --with-motif use Motif/Lesstif" | |
88 | ac_help="$ac_help | |
89 | --with-mac use Mac OS X" | |
90 | ac_help="$ac_help | |
91 | --with-wine use WINE" | |
92 | ac_help="$ac_help | |
93 | --with-msw use MS-Windows" | |
94 | ac_help="$ac_help | |
95 | --with-pm use OS/2 Presentation Manager" | |
96 | ac_help="$ac_help | |
97 | --with-mgl use SciTech MGL" | |
98 | ac_help="$ac_help | |
99 | --with-microwin use MicroWindows" | |
100 | ac_help="$ac_help | |
101 | --with-x11 use X11" | |
102 | ac_help="$ac_help | |
103 | --enable-nanox use NanoX" | |
104 | ac_help="$ac_help | |
105 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
106 | ac_help="$ac_help | |
107 | --with-libpng use libpng (PNG image format)" | |
108 | ac_help="$ac_help | |
109 | --with-libjpeg use libjpeg (JPEG file format)" | |
110 | ac_help="$ac_help | |
111 | --with-libtiff use libtiff (TIFF file format)" | |
112 | ac_help="$ac_help | |
113 | --with-opengl use OpenGL (or Mesa)" | |
114 | ac_help="$ac_help | |
115 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
116 | ac_help="$ac_help | |
117 | --with-regex enable support for wxRegEx class" | |
118 | ac_help="$ac_help | |
119 | --with-zlib use zlib for LZW compression" | |
120 | ac_help="$ac_help | |
121 | --with-odbc use the IODBC and wxODBC classes" | |
122 | ac_help="$ac_help | |
123 | --enable-shared create shared library code" | |
124 | ac_help="$ac_help | |
125 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
126 | ac_help="$ac_help | |
127 | --enable-optimise create optimised code" | |
128 | ac_help="$ac_help | |
129 | --enable-debug same as debug_flag and debug_info" | |
130 | ac_help="$ac_help | |
131 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
132 | ac_help="$ac_help | |
133 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
134 | ac_help="$ac_help | |
135 | --enable-debug_info create code with debugging information" | |
136 | ac_help="$ac_help | |
137 | --enable-debug_gdb create code with extra GDB debugging information" | |
138 | ac_help="$ac_help | |
139 | --enable-debug_cntxt use wxDebugContext" | |
140 | ac_help="$ac_help | |
141 | --enable-mem_tracing create code with memory tracing" | |
142 | ac_help="$ac_help | |
143 | --enable-profile create code with profiling information" | |
144 | ac_help="$ac_help | |
145 | --enable-no_rtti create code without RTTI information" | |
146 | ac_help="$ac_help | |
147 | --enable-no_exceptions create code without C++ exceptions handling" | |
148 | ac_help="$ac_help | |
149 | --enable-permissive compile code disregarding strict ANSI" | |
150 | ac_help="$ac_help | |
151 | --enable-no_deps create code without dependency information" | |
152 | ac_help="$ac_help | |
153 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
154 | ac_help="$ac_help | |
155 | --disable-compat22 disable wxWindows 2.2 compatibility" | |
156 | ac_help="$ac_help | |
157 | --enable-intl use internationalization system" | |
158 | ac_help="$ac_help | |
159 | --enable-config use wxConfig (and derived) classes" | |
160 | ac_help="$ac_help | |
161 | --enable-protocols use wxProtocol and derived classes" | |
162 | ac_help="$ac_help | |
163 | --enable-ftp use wxFTP (requires wxProtocol" | |
164 | ac_help="$ac_help | |
165 | --enable-http use wxHTTP (requires wxProtocol" | |
166 | ac_help="$ac_help | |
167 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
168 | ac_help="$ac_help | |
169 | --enable-sockets use socket/network classes" | |
170 | ac_help="$ac_help | |
171 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
172 | ac_help="$ac_help | |
173 | --enable-cmdline use wxCmdLineParser class" | |
174 | ac_help="$ac_help | |
175 | --enable-datetime use wxDateTime class" | |
176 | ac_help="$ac_help | |
177 | --enable-timedate use obsolete wxDate/wxTime classes" | |
178 | ac_help="$ac_help | |
179 | --enable-stopwatch use wxStopWatch class" | |
180 | ac_help="$ac_help | |
181 | --enable-dialupman use dialup network classes" | |
182 | ac_help="$ac_help | |
183 | --enable-apple_ieee use the Apple IEEE codec" | |
184 | ac_help="$ac_help | |
185 | --enable-timer use wxTimer class" | |
186 | ac_help="$ac_help | |
187 | --enable-wave use wxWave class" | |
188 | ac_help="$ac_help | |
189 | --enable-fraction use wxFraction class" | |
190 | ac_help="$ac_help | |
191 | --enable-dynlib use wxLibrary class for DLL loading" | |
192 | ac_help="$ac_help | |
193 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
194 | ac_help="$ac_help | |
195 | --enable-longlong use wxLongLong class" | |
196 | ac_help="$ac_help | |
197 | --enable-geometry use geometry class" | |
198 | ac_help="$ac_help | |
199 | --enable-log use logging system" | |
200 | ac_help="$ac_help | |
201 | --enable-streams use wxStream etc classes" | |
202 | ac_help="$ac_help | |
203 | --enable-file use wxFile classes" | |
204 | ac_help="$ac_help | |
205 | --enable-ffile use wxFFile classes" | |
206 | ac_help="$ac_help | |
207 | --enable-textbuf use wxTextBuffer class" | |
208 | ac_help="$ac_help | |
209 | --enable-textfile use wxTextFile class" | |
210 | ac_help="$ac_help | |
211 | --enable-fontmap use font encodings conversion classes" | |
212 | ac_help="$ac_help | |
213 | --enable-unicode compile wxString with Unicode support" | |
214 | ac_help="$ac_help | |
215 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
216 | ac_help="$ac_help | |
217 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
218 | ac_help="$ac_help | |
219 | --enable-std_iostreams use standard C++ stream classes" | |
220 | ac_help="$ac_help | |
221 | --enable-filesystem use virtual file systems classes" | |
222 | ac_help="$ac_help | |
223 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
224 | ac_help="$ac_help | |
225 | --enable-fs_zip use virtual ZIP filesystems" | |
226 | ac_help="$ac_help | |
227 | --enable-zipstream use wxZipInputStream" | |
228 | ac_help="$ac_help | |
229 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
230 | ac_help="$ac_help | |
231 | --enable-snglinst use wxSingleInstanceChecker class" | |
232 | ac_help="$ac_help | |
233 | --enable-mimetype use wxMimeTypesManager" | |
234 | ac_help="$ac_help | |
235 | --enable-sysoptions use wxSystemOptions" | |
236 | ac_help="$ac_help | |
237 | --enable-url use wxURL class" | |
238 | ac_help="$ac_help | |
239 | --enable-protocol use wxProtocol class" | |
240 | ac_help="$ac_help | |
241 | --enable-protocol-http HTTP support in wxProtocol" | |
242 | ac_help="$ac_help | |
243 | --enable-protocol-ftp FTP support in wxProtocol" | |
244 | ac_help="$ac_help | |
245 | --enable-protocol-file FILE support in wxProtocol" | |
246 | ac_help="$ac_help | |
247 | --enable-threads use threads" | |
248 | ac_help="$ac_help | |
249 | --enable-docview use document view architecture" | |
250 | ac_help="$ac_help | |
251 | --enable-help use help subsystem" | |
252 | ac_help="$ac_help | |
253 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
254 | ac_help="$ac_help | |
255 | --enable-html use wxHTML sub-library" | |
256 | ac_help="$ac_help | |
257 | --enable-htmlhelp use wxHTML-based help" | |
258 | ac_help="$ac_help | |
259 | --enable-constraints use layout-constraints system" | |
260 | ac_help="$ac_help | |
261 | --enable-printarch use printing architecture" | |
262 | ac_help="$ac_help | |
263 | --enable-mdi use multiple document interface architecture" | |
264 | ac_help="$ac_help | |
265 | --enable-loggui use standard GUI logger" | |
266 | ac_help="$ac_help | |
267 | --enable-logwin use wxLogWindow" | |
268 | ac_help="$ac_help | |
269 | --enable-logdialog use wxLogDialog" | |
270 | ac_help="$ac_help | |
271 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
272 | ac_help="$ac_help | |
273 | --enable-prologio use Prolog IO library" | |
274 | ac_help="$ac_help | |
275 | --enable-resources use wxWindows resources" | |
276 | ac_help="$ac_help | |
277 | --enable-xresources use X resources for save (default for gtk+)" | |
278 | ac_help="$ac_help | |
279 | --enable-clipboard use wxClipboard classes" | |
280 | ac_help="$ac_help | |
281 | --enable-dnd use Drag'n'Drop classes" | |
282 | ac_help="$ac_help | |
283 | --enable-metafile use win32 metafiles" | |
284 | ac_help="$ac_help | |
285 | --enable-treelayout use wxTreeLayout classes" | |
286 | ac_help="$ac_help | |
287 | --enable-controls use all usual controls" | |
288 | ac_help="$ac_help | |
289 | --enable-accel use accelerators" | |
290 | ac_help="$ac_help | |
291 | --enable-button use wxButton class" | |
292 | ac_help="$ac_help | |
293 | --enable-bmpbutton use wxBitmapButton class" | |
294 | ac_help="$ac_help | |
295 | --enable-calendar use wxCalendarCtrl class" | |
296 | ac_help="$ac_help | |
297 | --enable-caret use wxCaret class" | |
298 | ac_help="$ac_help | |
299 | --enable-checkbox use wxCheckBox class" | |
300 | ac_help="$ac_help | |
301 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
302 | ac_help="$ac_help | |
303 | --enable-choice use wxChoice class" | |
304 | ac_help="$ac_help | |
305 | --enable-combobox use wxComboBox classes" | |
306 | ac_help="$ac_help | |
307 | --enable-gauge use wxGauge class" | |
308 | ac_help="$ac_help | |
309 | --enable-grid use wxGrid class" | |
310 | ac_help="$ac_help | |
311 | --enable-newgrid use new wxGrid class" | |
312 | ac_help="$ac_help | |
313 | --enable-imaglist use wxImageList class" | |
314 | ac_help="$ac_help | |
315 | --enable-listbox use wxListBox class" | |
316 | ac_help="$ac_help | |
317 | --enable-listctrl use wxListCtrl class" | |
318 | ac_help="$ac_help | |
319 | --enable-notebook use wxNotebook class" | |
320 | ac_help="$ac_help | |
321 | --enable-propsheet use wxPropertySheet class" | |
322 | ac_help="$ac_help | |
323 | --enable-radiobox use wxRadioBox class" | |
324 | ac_help="$ac_help | |
325 | --enable-radiobtn use wxRadioButton class" | |
326 | ac_help="$ac_help | |
327 | --enable-sash use wxSashWindow class" | |
328 | ac_help="$ac_help | |
329 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
330 | ac_help="$ac_help | |
331 | --enable-slider use wxSlider class" | |
332 | ac_help="$ac_help | |
333 | --enable-spinbtn use wxSpinButton class" | |
334 | ac_help="$ac_help | |
335 | --enable-spinctrl use wxSpinCtrl class" | |
336 | ac_help="$ac_help | |
337 | --enable-splitter use wxSplitterWindow class" | |
338 | ac_help="$ac_help | |
339 | --enable-statbmp use wxStaticBitmap class" | |
340 | ac_help="$ac_help | |
341 | --enable-statbox use wxStaticBox class" | |
342 | ac_help="$ac_help | |
343 | --enable-statline use wxStaticLine class" | |
344 | ac_help="$ac_help | |
345 | --enable-stattext use wxStaticText class" | |
346 | ac_help="$ac_help | |
347 | --enable-statusbar use wxStatusBar class" | |
348 | ac_help="$ac_help | |
349 | --enable-tabdialog use wxTabControl class" | |
350 | ac_help="$ac_help | |
351 | --enable-textctrl use wxTextCtrl class" | |
352 | ac_help="$ac_help | |
353 | --enable-togglebtn use wxToggleButton class" | |
354 | ac_help="$ac_help | |
355 | --enable-toolbar use wxToolBar class" | |
356 | ac_help="$ac_help | |
357 | --enable-tbarnative use native wxToolBar class" | |
358 | ac_help="$ac_help | |
359 | --enable-tbarsmpl use wxToolBarSimple class" | |
360 | ac_help="$ac_help | |
361 | --enable-treectrl use wxTreeCtrl class" | |
362 | ac_help="$ac_help | |
363 | --enable-tipwindow use wxTipWindow class" | |
364 | ac_help="$ac_help | |
365 | --enable-popupwin use wxPopUpWindow class" | |
366 | ac_help="$ac_help | |
367 | --enable-commondlg use all common dialogs" | |
368 | ac_help="$ac_help | |
369 | --enable-choicedlg use wxChoiceDialog" | |
370 | ac_help="$ac_help | |
371 | --enable-coldlg use wxColourDialog" | |
372 | ac_help="$ac_help | |
373 | --enable-filedlg use wxFileDialog" | |
374 | ac_help="$ac_help | |
375 | --enable-finddlg use wxFindReplaceDialog" | |
376 | ac_help="$ac_help | |
377 | --enable-fontdlg use wxFontDialog" | |
378 | ac_help="$ac_help | |
379 | --enable-dirdlg use wxDirDialog" | |
380 | ac_help="$ac_help | |
381 | --enable-msgdlg use wxMessageDialog" | |
382 | ac_help="$ac_help | |
383 | --enable-numberdlg use wxNumberEntryDialog" | |
384 | ac_help="$ac_help | |
385 | --enable-splash use wxSplashScreen" | |
386 | ac_help="$ac_help | |
387 | --enable-textdlg use wxTextDialog" | |
388 | ac_help="$ac_help | |
389 | --enable-tipdlg use startup tips" | |
390 | ac_help="$ac_help | |
391 | --enable-progressdlg use wxProgressDialog" | |
392 | ac_help="$ac_help | |
393 | --enable-wizarddlg use wxWizard" | |
394 | ac_help="$ac_help | |
395 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
396 | ac_help="$ac_help | |
397 | --enable-miniframe use wxMiniFrame class" | |
398 | ac_help="$ac_help | |
399 | --enable-tooltips use wxToolTip class" | |
400 | ac_help="$ac_help | |
401 | --enable-splines use spline drawing code" | |
402 | ac_help="$ac_help | |
403 | --enable-validators use wxValidator and derived classes" | |
404 | ac_help="$ac_help | |
405 | --enable-busyinfo use wxBusyInfo" | |
406 | ac_help="$ac_help | |
407 | --enable-joystick use wxJoystick (Linux only)" | |
408 | ac_help="$ac_help | |
409 | --enable-metafiles use wxMetaFile (Windows only)" | |
410 | ac_help="$ac_help | |
411 | --enable-dragimage use wxDragImage" | |
412 | ac_help="$ac_help | |
413 | --enable-palette use wxPalette class" | |
414 | ac_help="$ac_help | |
415 | --enable-image use wxImage class" | |
416 | ac_help="$ac_help | |
417 | --enable-gif use gif images (GIF file format)" | |
418 | ac_help="$ac_help | |
419 | --enable-pcx use pcx images (PCX file format)" | |
420 | ac_help="$ac_help | |
421 | --enable-iff use iff images (IFF file format)" | |
422 | ac_help="$ac_help | |
423 | --enable-pnm use pnm images (PNM file format)" | |
424 | ac_help="$ac_help | |
425 | --enable-xpm use xpm images (XPM file format)" | |
426 | ac_help="$ac_help | |
427 | --enable-icocur use Windows ICO and CUR formats" | |
428 | ac_help="$ac_help | |
429 | --disable-largefile omit support for large files" | |
430 | ac_help="$ac_help | |
431 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
432 | ac_help="$ac_help | |
433 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
434 | ac_help="$ac_help | |
435 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
436 | ac_help="$ac_help | |
437 | --disable-gtktest Do not try to compile and run a test GTK program" | |
438 | ac_help="$ac_help | |
439 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
440 | ac_help="$ac_help | |
441 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
442 | ac_help="$ac_help | |
443 | --disable-gtktest Do not try to compile and run a test GTK program" | |
444 | ac_help="$ac_help | |
445 | --with-x use the X Window System" | |
446 | ac_help="$ac_help | |
447 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
448 | ||
449 | # Initialize some variables set by options. | |
450 | # The variables have the same names as the options, with | |
451 | # dashes changed to underlines. | |
452 | build=NONE | |
453 | cache_file=./config.cache | |
454 | exec_prefix=NONE | |
455 | host=NONE | |
456 | no_create= | |
457 | nonopt=NONE | |
458 | no_recursion= | |
459 | prefix=NONE | |
460 | program_prefix=NONE | |
461 | program_suffix=NONE | |
462 | program_transform_name=s,x,x, | |
463 | silent= | |
464 | site= | |
465 | srcdir= | |
466 | target=NONE | |
467 | verbose= | |
468 | x_includes=NONE | |
469 | x_libraries=NONE | |
470 | bindir='${exec_prefix}/bin' | |
471 | sbindir='${exec_prefix}/sbin' | |
472 | libexecdir='${exec_prefix}/libexec' | |
473 | datadir='${prefix}/share' | |
474 | sysconfdir='${prefix}/etc' | |
475 | sharedstatedir='${prefix}/com' | |
476 | localstatedir='${prefix}/var' | |
477 | libdir='${exec_prefix}/lib' | |
478 | includedir='${prefix}/include' | |
479 | oldincludedir='/usr/include' | |
480 | infodir='${prefix}/info' | |
481 | mandir='${prefix}/man' | |
482 | ||
483 | # Initialize some other variables. | |
484 | subdirs= | |
485 | MFLAGS= MAKEFLAGS= | |
486 | SHELL=${CONFIG_SHELL-/bin/sh} | |
487 | # Maximum number of lines to put in a shell here document. | |
488 | ac_max_here_lines=12 | |
489 | ||
490 | ac_prev= | |
491 | for ac_option | |
492 | do | |
493 | ||
494 | # If the previous option needs an argument, assign it. | |
495 | if test -n "$ac_prev"; then | |
496 | eval "$ac_prev=\$ac_option" | |
497 | ac_prev= | |
498 | continue | |
499 | fi | |
500 | ||
501 | case "$ac_option" in | |
502 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
503 | *) ac_optarg= ;; | |
504 | esac | |
505 | ||
506 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
507 | ||
508 | case "$ac_option" in | |
509 | ||
510 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
511 | ac_prev=bindir ;; | |
512 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
513 | bindir="$ac_optarg" ;; | |
514 | ||
515 | -build | --build | --buil | --bui | --bu) | |
516 | ac_prev=build ;; | |
517 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
518 | build="$ac_optarg" ;; | |
519 | ||
520 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
521 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
522 | ac_prev=cache_file ;; | |
523 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
524 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
525 | cache_file="$ac_optarg" ;; | |
526 | ||
527 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
528 | ac_prev=datadir ;; | |
529 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
530 | | --da=*) | |
531 | datadir="$ac_optarg" ;; | |
532 | ||
533 | -disable-* | --disable-*) | |
534 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
535 | # Reject names that are not valid shell variable names. | |
536 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
537 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
538 | fi | |
539 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
540 | eval "enable_${ac_feature}=no" ;; | |
541 | ||
542 | -enable-* | --enable-*) | |
543 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
544 | # Reject names that are not valid shell variable names. | |
545 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
546 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
547 | fi | |
548 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
549 | case "$ac_option" in | |
550 | *=*) ;; | |
551 | *) ac_optarg=yes ;; | |
552 | esac | |
553 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
554 | ||
555 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
556 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
557 | | --exec | --exe | --ex) | |
558 | ac_prev=exec_prefix ;; | |
559 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
560 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
561 | | --exec=* | --exe=* | --ex=*) | |
562 | exec_prefix="$ac_optarg" ;; | |
563 | ||
564 | -gas | --gas | --ga | --g) | |
565 | # Obsolete; use --with-gas. | |
566 | with_gas=yes ;; | |
567 | ||
568 | -help | --help | --hel | --he) | |
569 | # Omit some internal or obsolete options to make the list less imposing. | |
570 | # This message is too long to be a string in the A/UX 3.1 sh. | |
571 | cat << EOF | |
572 | Usage: configure [options] [host] | |
573 | Options: [defaults in brackets after descriptions] | |
574 | Configuration: | |
575 | --cache-file=FILE cache test results in FILE | |
576 | --help print this message | |
577 | --no-create do not create output files | |
578 | --quiet, --silent do not print \`checking...' messages | |
579 | --version print the version of autoconf that created configure | |
580 | Directory and file names: | |
581 | --prefix=PREFIX install architecture-independent files in PREFIX | |
582 | [$ac_default_prefix] | |
583 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
584 | [same as prefix] | |
585 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
586 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
587 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
588 | --datadir=DIR read-only architecture-independent data in DIR | |
589 | [PREFIX/share] | |
590 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
591 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
592 | [PREFIX/com] | |
593 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
594 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
595 | --includedir=DIR C header files in DIR [PREFIX/include] | |
596 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
597 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
598 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
599 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
600 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
601 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
602 | --program-transform-name=PROGRAM | |
603 | run sed PROGRAM on installed program names | |
604 | EOF | |
605 | cat << EOF | |
606 | Host type: | |
607 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
608 | --host=HOST configure for HOST [guessed] | |
609 | --target=TARGET configure for TARGET [TARGET=HOST] | |
610 | Features and packages: | |
611 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
612 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
613 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
614 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
615 | --x-includes=DIR X include files are in DIR | |
616 | --x-libraries=DIR X library files are in DIR | |
617 | EOF | |
618 | if test -n "$ac_help"; then | |
619 | echo "--enable and --with options recognized:$ac_help" | |
620 | fi | |
621 | exit 0 ;; | |
622 | ||
623 | -host | --host | --hos | --ho) | |
624 | ac_prev=host ;; | |
625 | -host=* | --host=* | --hos=* | --ho=*) | |
626 | host="$ac_optarg" ;; | |
627 | ||
628 | -includedir | --includedir | --includedi | --included | --include \ | |
629 | | --includ | --inclu | --incl | --inc) | |
630 | ac_prev=includedir ;; | |
631 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
632 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
633 | includedir="$ac_optarg" ;; | |
634 | ||
635 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
636 | ac_prev=infodir ;; | |
637 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
638 | infodir="$ac_optarg" ;; | |
639 | ||
640 | -libdir | --libdir | --libdi | --libd) | |
641 | ac_prev=libdir ;; | |
642 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
643 | libdir="$ac_optarg" ;; | |
644 | ||
645 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
646 | | --libexe | --libex | --libe) | |
647 | ac_prev=libexecdir ;; | |
648 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
649 | | --libexe=* | --libex=* | --libe=*) | |
650 | libexecdir="$ac_optarg" ;; | |
651 | ||
652 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
653 | | --localstate | --localstat | --localsta | --localst \ | |
654 | | --locals | --local | --loca | --loc | --lo) | |
655 | ac_prev=localstatedir ;; | |
656 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
657 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
658 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
659 | localstatedir="$ac_optarg" ;; | |
660 | ||
661 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
662 | ac_prev=mandir ;; | |
663 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
664 | mandir="$ac_optarg" ;; | |
665 | ||
666 | -nfp | --nfp | --nf) | |
667 | # Obsolete; use --without-fp. | |
668 | with_fp=no ;; | |
669 | ||
670 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
671 | | --no-cr | --no-c) | |
672 | no_create=yes ;; | |
673 | ||
674 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
675 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
676 | no_recursion=yes ;; | |
677 | ||
678 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
679 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
680 | | --oldin | --oldi | --old | --ol | --o) | |
681 | ac_prev=oldincludedir ;; | |
682 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
683 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
684 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
685 | oldincludedir="$ac_optarg" ;; | |
686 | ||
687 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
688 | ac_prev=prefix ;; | |
689 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
690 | prefix="$ac_optarg" ;; | |
691 | ||
692 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
693 | | --program-pre | --program-pr | --program-p) | |
694 | ac_prev=program_prefix ;; | |
695 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
696 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
697 | program_prefix="$ac_optarg" ;; | |
698 | ||
699 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
700 | | --program-suf | --program-su | --program-s) | |
701 | ac_prev=program_suffix ;; | |
702 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
703 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
704 | program_suffix="$ac_optarg" ;; | |
705 | ||
706 | -program-transform-name | --program-transform-name \ | |
707 | | --program-transform-nam | --program-transform-na \ | |
708 | | --program-transform-n | --program-transform- \ | |
709 | | --program-transform | --program-transfor \ | |
710 | | --program-transfo | --program-transf \ | |
711 | | --program-trans | --program-tran \ | |
712 | | --progr-tra | --program-tr | --program-t) | |
713 | ac_prev=program_transform_name ;; | |
714 | -program-transform-name=* | --program-transform-name=* \ | |
715 | | --program-transform-nam=* | --program-transform-na=* \ | |
716 | | --program-transform-n=* | --program-transform-=* \ | |
717 | | --program-transform=* | --program-transfor=* \ | |
718 | | --program-transfo=* | --program-transf=* \ | |
719 | | --program-trans=* | --program-tran=* \ | |
720 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
721 | program_transform_name="$ac_optarg" ;; | |
722 | ||
723 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
724 | | -silent | --silent | --silen | --sile | --sil) | |
725 | silent=yes ;; | |
726 | ||
727 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
728 | ac_prev=sbindir ;; | |
729 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
730 | | --sbi=* | --sb=*) | |
731 | sbindir="$ac_optarg" ;; | |
732 | ||
733 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
734 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
735 | | --sharedst | --shareds | --shared | --share | --shar \ | |
736 | | --sha | --sh) | |
737 | ac_prev=sharedstatedir ;; | |
738 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
739 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
740 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
741 | | --sha=* | --sh=*) | |
742 | sharedstatedir="$ac_optarg" ;; | |
743 | ||
744 | -site | --site | --sit) | |
745 | ac_prev=site ;; | |
746 | -site=* | --site=* | --sit=*) | |
747 | site="$ac_optarg" ;; | |
748 | ||
749 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
750 | ac_prev=srcdir ;; | |
751 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
752 | srcdir="$ac_optarg" ;; | |
753 | ||
754 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
755 | | --syscon | --sysco | --sysc | --sys | --sy) | |
756 | ac_prev=sysconfdir ;; | |
757 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
758 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
759 | sysconfdir="$ac_optarg" ;; | |
760 | ||
761 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
762 | ac_prev=target ;; | |
763 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
764 | target="$ac_optarg" ;; | |
765 | ||
766 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
767 | verbose=yes ;; | |
768 | ||
769 | -version | --version | --versio | --versi | --vers) | |
770 | echo "configure generated by autoconf version 2.13" | |
771 | exit 0 ;; | |
772 | ||
773 | -with-* | --with-*) | |
774 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
775 | # Reject names that are not valid shell variable names. | |
776 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
777 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
778 | fi | |
779 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
780 | case "$ac_option" in | |
781 | *=*) ;; | |
782 | *) ac_optarg=yes ;; | |
783 | esac | |
784 | eval "with_${ac_package}='$ac_optarg'" ;; | |
785 | ||
786 | -without-* | --without-*) | |
787 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
788 | # Reject names that are not valid shell variable names. | |
789 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
790 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
791 | fi | |
792 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
793 | eval "with_${ac_package}=no" ;; | |
794 | ||
795 | --x) | |
796 | # Obsolete; use --with-x. | |
797 | with_x=yes ;; | |
798 | ||
799 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
800 | | --x-incl | --x-inc | --x-in | --x-i) | |
801 | ac_prev=x_includes ;; | |
802 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
803 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
804 | x_includes="$ac_optarg" ;; | |
805 | ||
806 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
807 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
808 | ac_prev=x_libraries ;; | |
809 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
810 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
811 | x_libraries="$ac_optarg" ;; | |
812 | ||
813 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
814 | ;; | |
815 | ||
816 | *) | |
817 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
818 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
819 | fi | |
820 | if test "x$nonopt" != xNONE; then | |
821 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
822 | fi | |
823 | nonopt="$ac_option" | |
824 | ;; | |
825 | ||
826 | esac | |
827 | done | |
828 | ||
829 | if test -n "$ac_prev"; then | |
830 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
831 | fi | |
832 | ||
833 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
834 | ||
835 | # File descriptor usage: | |
836 | # 0 standard input | |
837 | # 1 file creation | |
838 | # 2 errors and warnings | |
839 | # 3 some systems may open it to /dev/tty | |
840 | # 4 used on the Kubota Titan | |
841 | # 6 checking for... messages and results | |
842 | # 5 compiler messages saved in config.log | |
843 | if test "$silent" = yes; then | |
844 | exec 6>/dev/null | |
845 | else | |
846 | exec 6>&1 | |
847 | fi | |
848 | exec 5>./config.log | |
849 | ||
850 | echo "\ | |
851 | This file contains any messages produced by compilers while | |
852 | running configure, to aid debugging if configure makes a mistake. | |
853 | " 1>&5 | |
854 | ||
855 | # Strip out --no-create and --no-recursion so they do not pile up. | |
856 | # Also quote any args containing shell metacharacters. | |
857 | ac_configure_args= | |
858 | for ac_arg | |
859 | do | |
860 | case "$ac_arg" in | |
861 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
862 | | --no-cr | --no-c) ;; | |
863 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
864 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
865 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
866 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
867 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
868 | esac | |
869 | done | |
870 | ||
871 | # NLS nuisances. | |
872 | # Only set these to C if already set. These must not be set unconditionally | |
873 | # because not all systems understand e.g. LANG=C (notably SCO). | |
874 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
875 | # Non-C LC_CTYPE values break the ctype check. | |
876 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
877 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
878 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
879 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
880 | ||
881 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
882 | rm -rf conftest* confdefs.h | |
883 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
884 | echo > confdefs.h | |
885 | ||
886 | # A filename unique to this package, relative to the directory that | |
887 | # configure is in, which we can look for to find out if srcdir is correct. | |
888 | ac_unique_file=wx-config.in | |
889 | ||
890 | # Find the source files, if location was not specified. | |
891 | if test -z "$srcdir"; then | |
892 | ac_srcdir_defaulted=yes | |
893 | # Try the directory containing this script, then its parent. | |
894 | ac_prog=$0 | |
895 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
896 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
897 | srcdir=$ac_confdir | |
898 | if test ! -r $srcdir/$ac_unique_file; then | |
899 | srcdir=.. | |
900 | fi | |
901 | else | |
902 | ac_srcdir_defaulted=no | |
903 | fi | |
904 | if test ! -r $srcdir/$ac_unique_file; then | |
905 | if test "$ac_srcdir_defaulted" = yes; then | |
906 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
907 | else | |
908 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
909 | fi | |
910 | fi | |
911 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
912 | ||
913 | # Prefer explicitly selected file to automatically selected ones. | |
914 | if test -z "$CONFIG_SITE"; then | |
915 | if test "x$prefix" != xNONE; then | |
916 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
917 | else | |
918 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
919 | fi | |
920 | fi | |
921 | for ac_site_file in $CONFIG_SITE; do | |
922 | if test -r "$ac_site_file"; then | |
923 | echo "loading site script $ac_site_file" | |
924 | . "$ac_site_file" | |
925 | fi | |
926 | done | |
927 | ||
928 | if test -r "$cache_file"; then | |
929 | echo "loading cache $cache_file" | |
930 | . $cache_file | |
931 | else | |
932 | echo "creating cache $cache_file" | |
933 | > $cache_file | |
934 | fi | |
935 | ||
936 | ac_ext=c | |
937 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
938 | ac_cpp='$CPP $CPPFLAGS' | |
939 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
940 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
941 | cross_compiling=$ac_cv_prog_cc_cross | |
942 | ||
943 | ac_exeext= | |
944 | ac_objext=o | |
945 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
946 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
947 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
948 | ac_n= ac_c=' | |
949 | ' ac_t=' ' | |
950 | else | |
951 | ac_n=-n ac_c= ac_t= | |
952 | fi | |
953 | else | |
954 | ac_n= ac_c='\c' ac_t= | |
955 | fi | |
956 | ||
957 | ||
958 | ||
959 | ac_aux_dir= | |
960 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
961 | if test -f $ac_dir/install-sh; then | |
962 | ac_aux_dir=$ac_dir | |
963 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
964 | break | |
965 | elif test -f $ac_dir/install.sh; then | |
966 | ac_aux_dir=$ac_dir | |
967 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
968 | break | |
969 | fi | |
970 | done | |
971 | if test -z "$ac_aux_dir"; then | |
972 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
973 | fi | |
974 | ac_config_guess=$ac_aux_dir/config.guess | |
975 | ac_config_sub=$ac_aux_dir/config.sub | |
976 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
977 | ||
978 | ||
979 | # Do some error checking and defaulting for the host and target type. | |
980 | # The inputs are: | |
981 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
982 | # | |
983 | # The rules are: | |
984 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
985 | # same time. | |
986 | # 2. Host defaults to nonopt. | |
987 | # 3. If nonopt is not specified, then host defaults to the current host, | |
988 | # as determined by config.guess. | |
989 | # 4. Target and build default to nonopt. | |
990 | # 5. If nonopt is not specified, then target and build default to host. | |
991 | ||
992 | # The aliases save the names the user supplied, while $host etc. | |
993 | # will get canonicalized. | |
994 | case $host---$target---$nonopt in | |
995 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
996 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
997 | esac | |
998 | ||
999 | ||
1000 | # Make sure we can run config.sub. | |
1001 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1002 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1003 | fi | |
1004 | ||
1005 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
1006 | echo "configure:1007: checking host system type" >&5 | |
1007 | ||
1008 | host_alias=$host | |
1009 | case "$host_alias" in | |
1010 | NONE) | |
1011 | case $nonopt in | |
1012 | NONE) | |
1013 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1014 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1015 | fi ;; | |
1016 | *) host_alias=$nonopt ;; | |
1017 | esac ;; | |
1018 | esac | |
1019 | ||
1020 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1021 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1022 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1023 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1024 | echo "$ac_t""$host" 1>&6 | |
1025 | ||
1026 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
1027 | echo "configure:1028: checking target system type" >&5 | |
1028 | ||
1029 | target_alias=$target | |
1030 | case "$target_alias" in | |
1031 | NONE) | |
1032 | case $nonopt in | |
1033 | NONE) target_alias=$host_alias ;; | |
1034 | *) target_alias=$nonopt ;; | |
1035 | esac ;; | |
1036 | esac | |
1037 | ||
1038 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1039 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1040 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1041 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1042 | echo "$ac_t""$target" 1>&6 | |
1043 | ||
1044 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
1045 | echo "configure:1046: checking build system type" >&5 | |
1046 | ||
1047 | build_alias=$build | |
1048 | case "$build_alias" in | |
1049 | NONE) | |
1050 | case $nonopt in | |
1051 | NONE) build_alias=$host_alias ;; | |
1052 | *) build_alias=$nonopt ;; | |
1053 | esac ;; | |
1054 | esac | |
1055 | ||
1056 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1057 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1058 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1059 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1060 | echo "$ac_t""$build" 1>&6 | |
1061 | ||
1062 | test "$host_alias" != "$target_alias" && | |
1063 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1064 | NONENONEs,x,x, && | |
1065 | program_prefix=${target_alias}- | |
1066 | ||
1067 | ||
1068 | ||
1069 | WX_MAJOR_VERSION_NUMBER=2 | |
1070 | WX_MINOR_VERSION_NUMBER=3 | |
1071 | WX_RELEASE_NUMBER=3 | |
1072 | ||
1073 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
1074 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
1075 | ||
1076 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER | |
1077 | ||
1078 | WX_CURRENT=2 | |
1079 | WX_REVISION=0 | |
1080 | WX_AGE=0 | |
1081 | ||
1082 | ||
1083 | ||
1084 | USE_UNIX=1 | |
1085 | USE_WIN32=0 | |
1086 | USE_DOS=0 | |
1087 | USE_BEOS=0 | |
1088 | USE_MAC=0 | |
1089 | ||
1090 | USE_LINUX= | |
1091 | USE_SGI= | |
1092 | USE_HPUX= | |
1093 | USE_SYSV= | |
1094 | USE_SVR4= | |
1095 | USE_AIX= | |
1096 | USE_SUN= | |
1097 | USE_SOLARIS= | |
1098 | USE_SUNOS= | |
1099 | USE_ALPHA= | |
1100 | USE_OSF= | |
1101 | USE_BSD= | |
1102 | USE_DARWIN= | |
1103 | USE_FREEBSD= | |
1104 | USE_OPENBSD= | |
1105 | USE_NETBSD= | |
1106 | USE_VMS= | |
1107 | USE_ULTRIX= | |
1108 | USE_DATA_GENERAL= | |
1109 | ||
1110 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1111 | ||
1112 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" | |
1113 | ||
1114 | DEFAULT_wxUSE_GTK=0 | |
1115 | DEFAULT_wxUSE_MAC=0 | |
1116 | DEFAULT_wxUSE_MGL=0 | |
1117 | DEFAULT_wxUSE_MICROWIN=0 | |
1118 | DEFAULT_wxUSE_MOTIF=0 | |
1119 | DEFAULT_wxUSE_MSW=0 | |
1120 | DEFAULT_wxUSE_PM=0 | |
1121 | DEFAULT_wxUSE_WINE=0 | |
1122 | DEFAULT_wxUSE_X11=0 | |
1123 | ||
1124 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1125 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1126 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1127 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1128 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1129 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1130 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1131 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
1132 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1133 | ||
1134 | PROGRAM_EXT= | |
1135 | SO_SUFFIX=so | |
1136 | ||
1137 | case "${host}" in | |
1138 | *-hp-hpux* ) | |
1139 | USE_HPUX=1 | |
1140 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1141 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1142 | SO_SUFFIX=sl | |
1143 | cat >> confdefs.h <<\EOF | |
1144 | #define __HPUX__ 1 | |
1145 | EOF | |
1146 | ||
1147 | ;; | |
1148 | *-*-linux* ) | |
1149 | USE_LINUX=1 | |
1150 | cat >> confdefs.h <<\EOF | |
1151 | #define __LINUX__ 1 | |
1152 | EOF | |
1153 | ||
1154 | TMP=`uname -m` | |
1155 | if test "x$TMP" = "xalpha"; then | |
1156 | USE_ALPHA=1 | |
1157 | cat >> confdefs.h <<\EOF | |
1158 | #define __ALPHA__ 1 | |
1159 | EOF | |
1160 | ||
1161 | fi | |
1162 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1163 | ;; | |
1164 | *-*-irix5* | *-*-irix6* ) | |
1165 | USE_SGI=1 | |
1166 | USE_SVR4=1 | |
1167 | cat >> confdefs.h <<\EOF | |
1168 | #define __SGI__ 1 | |
1169 | EOF | |
1170 | ||
1171 | cat >> confdefs.h <<\EOF | |
1172 | #define __SVR4__ 1 | |
1173 | EOF | |
1174 | ||
1175 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1176 | ;; | |
1177 | *-*-solaris2* ) | |
1178 | USE_SUN=1 | |
1179 | USE_SOLARIS=1 | |
1180 | USE_SVR4=1 | |
1181 | cat >> confdefs.h <<\EOF | |
1182 | #define __SUN__ 1 | |
1183 | EOF | |
1184 | ||
1185 | cat >> confdefs.h <<\EOF | |
1186 | #define __SOLARIS__ 1 | |
1187 | EOF | |
1188 | ||
1189 | cat >> confdefs.h <<\EOF | |
1190 | #define __SVR4__ 1 | |
1191 | EOF | |
1192 | ||
1193 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1194 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1195 | ;; | |
1196 | *-*-sunos4* ) | |
1197 | USE_SUN=1 | |
1198 | USE_SUNOS=1 | |
1199 | USE_BSD=1 | |
1200 | cat >> confdefs.h <<\EOF | |
1201 | #define __SUN__ 1 | |
1202 | EOF | |
1203 | ||
1204 | cat >> confdefs.h <<\EOF | |
1205 | #define __SUNOS__ 1 | |
1206 | EOF | |
1207 | ||
1208 | cat >> confdefs.h <<\EOF | |
1209 | #define __BSD__ 1 | |
1210 | EOF | |
1211 | ||
1212 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1213 | ;; | |
1214 | *-*-freebsd*) | |
1215 | USE_BSD=1 | |
1216 | USE_FREEBSD=1 | |
1217 | cat >> confdefs.h <<\EOF | |
1218 | #define __FREEBSD__ 1 | |
1219 | EOF | |
1220 | ||
1221 | cat >> confdefs.h <<\EOF | |
1222 | #define __BSD__ 1 | |
1223 | EOF | |
1224 | ||
1225 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1226 | ;; | |
1227 | *-*-openbsd*) | |
1228 | USE_BSD=1 | |
1229 | USE_OPENBSD=1 | |
1230 | cat >> confdefs.h <<\EOF | |
1231 | #define __FREEBSD__ 1 | |
1232 | EOF | |
1233 | ||
1234 | cat >> confdefs.h <<\EOF | |
1235 | #define __OPENBSD__ 1 | |
1236 | EOF | |
1237 | ||
1238 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1239 | ;; | |
1240 | *-*-netbsd*) | |
1241 | USE_BSD=1 | |
1242 | USE_NETBSD=1 | |
1243 | cat >> confdefs.h <<\EOF | |
1244 | #define __FREEBSD__ 1 | |
1245 | EOF | |
1246 | ||
1247 | cat >> confdefs.h <<\EOF | |
1248 | #define __NETBSD__ 1 | |
1249 | EOF | |
1250 | ||
1251 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1252 | ;; | |
1253 | *-*-osf* ) | |
1254 | USE_ALPHA=1 | |
1255 | USE_OSF=1 | |
1256 | cat >> confdefs.h <<\EOF | |
1257 | #define __ALPHA__ 1 | |
1258 | EOF | |
1259 | ||
1260 | cat >> confdefs.h <<\EOF | |
1261 | #define __OSF__ 1 | |
1262 | EOF | |
1263 | ||
1264 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1265 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1266 | ;; | |
1267 | *-*-dgux5* ) | |
1268 | USE_ALPHA=1 | |
1269 | USE_SVR4=1 | |
1270 | cat >> confdefs.h <<\EOF | |
1271 | #define __ALPHA__ 1 | |
1272 | EOF | |
1273 | ||
1274 | cat >> confdefs.h <<\EOF | |
1275 | #define __SVR4__ 1 | |
1276 | EOF | |
1277 | ||
1278 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1279 | ;; | |
1280 | *-*-sysv5* ) | |
1281 | USE_SYSV=1 | |
1282 | USE_SVR4=1 | |
1283 | cat >> confdefs.h <<\EOF | |
1284 | #define __SYSV__ 1 | |
1285 | EOF | |
1286 | ||
1287 | cat >> confdefs.h <<\EOF | |
1288 | #define __SVR4__ 1 | |
1289 | EOF | |
1290 | ||
1291 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1292 | ;; | |
1293 | *-*-aix* ) | |
1294 | USE_AIX=1 | |
1295 | USE_SYSV=1 | |
1296 | USE_SVR4=1 | |
1297 | SO_SUFFIX=a | |
1298 | cat >> confdefs.h <<\EOF | |
1299 | #define __AIX__ 1 | |
1300 | EOF | |
1301 | ||
1302 | cat >> confdefs.h <<\EOF | |
1303 | #define __SYSV__ 1 | |
1304 | EOF | |
1305 | ||
1306 | cat >> confdefs.h <<\EOF | |
1307 | #define __SVR4__ 1 | |
1308 | EOF | |
1309 | ||
1310 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1311 | ;; | |
1312 | ||
1313 | *-*-cygwin* | *-*-mingw32* ) | |
1314 | USE_UNIX=0 | |
1315 | USE_WIN32=1 | |
1316 | SO_SUFFIX=dll | |
1317 | cat >> confdefs.h <<\EOF | |
1318 | #define __WIN32__ 1 | |
1319 | EOF | |
1320 | ||
1321 | cat >> confdefs.h <<\EOF | |
1322 | #define __WIN95__ 1 | |
1323 | EOF | |
1324 | ||
1325 | cat >> confdefs.h <<\EOF | |
1326 | #define __WINDOWS__ 1 | |
1327 | EOF | |
1328 | ||
1329 | cat >> confdefs.h <<\EOF | |
1330 | #define __GNUWIN32__ 1 | |
1331 | EOF | |
1332 | ||
1333 | cat >> confdefs.h <<\EOF | |
1334 | #define STRICT 1 | |
1335 | EOF | |
1336 | ||
1337 | cat >> confdefs.h <<\EOF | |
1338 | #define WINVER 0x0400 | |
1339 | EOF | |
1340 | ||
1341 | PROGRAM_EXT=".exe" | |
1342 | RESCOMP=windres | |
1343 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1344 | ;; | |
1345 | ||
1346 | *-pc-msdosdjgpp ) | |
1347 | USE_UNIX=0 | |
1348 | USE_DOS=1 | |
1349 | cat >> confdefs.h <<\EOF | |
1350 | #define __DOS__ 1 | |
1351 | EOF | |
1352 | ||
1353 | PROGRAM_EXT=".exe" | |
1354 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1355 | ;; | |
1356 | ||
1357 | *-pc-os2_emx | *-pc-os2-emx ) | |
1358 | cat >> confdefs.h <<\EOF | |
1359 | #define __EMX__ 1 | |
1360 | EOF | |
1361 | ||
1362 | PROGRAM_EXT=".exe" | |
1363 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1364 | LIBS="$LIBS -lstdcpp" | |
1365 | ;; | |
1366 | ||
1367 | powerpc-*-darwin* ) | |
1368 | USE_BSD=1 | |
1369 | USE_DARWIN=1 | |
1370 | SO_SUFFIX=dylib | |
1371 | cat >> confdefs.h <<\EOF | |
1372 | #define __BSD__ 1 | |
1373 | EOF | |
1374 | ||
1375 | cat >> confdefs.h <<\EOF | |
1376 | #define __DARWIN__ 1 | |
1377 | EOF | |
1378 | ||
1379 | cat >> confdefs.h <<\EOF | |
1380 | #define __POWERPC__ 1 | |
1381 | EOF | |
1382 | ||
1383 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1384 | ;; | |
1385 | ||
1386 | *-*-beos* ) | |
1387 | USE_BEOS=1 | |
1388 | cat >> confdefs.h <<\EOF | |
1389 | #define __BEOS__ 1 | |
1390 | EOF | |
1391 | ||
1392 | ;; | |
1393 | ||
1394 | *) | |
1395 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1396 | esac | |
1397 | ||
1398 | if test "$USE_UNIX" = 1 ; then | |
1399 | wxUSE_UNIX=yes | |
1400 | cat >> confdefs.h <<\EOF | |
1401 | #define __UNIX__ 1 | |
1402 | EOF | |
1403 | ||
1404 | fi | |
1405 | ||
1406 | ||
1407 | ||
1408 | ||
1409 | wx_arg_cache_file="configarg.cache" | |
1410 | echo "loading argument cache $wx_arg_cache_file" | |
1411 | rm -f ${wx_arg_cache_file}.tmp | |
1412 | touch ${wx_arg_cache_file}.tmp | |
1413 | touch ${wx_arg_cache_file} | |
1414 | ||
1415 | ||
1416 | DEBUG_CONFIGURE=0 | |
1417 | if test $DEBUG_CONFIGURE = 1; then | |
1418 | DEFAULT_wxUSE_UNIVERSAL=no | |
1419 | ||
1420 | DEFAULT_wxUSE_NANOX=no | |
1421 | ||
1422 | DEFAULT_wxUSE_THREADS=yes | |
1423 | ||
1424 | DEFAULT_wxUSE_SHARED=yes | |
1425 | DEFAULT_wxUSE_SONAME=no | |
1426 | DEFAULT_wxUSE_OPTIMISE=no | |
1427 | DEFAULT_wxUSE_PROFILE=no | |
1428 | DEFAULT_wxUSE_NO_DEPS=no | |
1429 | DEFAULT_wxUSE_NO_RTTI=no | |
1430 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1431 | DEFAULT_wxUSE_PERMISSIVE=no | |
1432 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1433 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1434 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1435 | DEFAULT_wxUSE_MEM_TRACING=no | |
1436 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1437 | DEFAULT_wxUSE_DMALLOC=no | |
1438 | DEFAULT_wxUSE_PRECOMP=no | |
1439 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1440 | ||
1441 | DEFAULT_wxUSE_LOG=yes | |
1442 | DEFAULT_wxUSE_LOGWINDOW=no | |
1443 | DEFAULT_wxUSE_LOGGUI=no | |
1444 | DEFAULT_wxUSE_LOGDIALOG=no | |
1445 | ||
1446 | DEFAULT_wxUSE_GUI=yes | |
1447 | DEFAULT_wxUSE_CONTROLS=no | |
1448 | ||
1449 | DEFAULT_wxUSE_REGEX=no | |
1450 | DEFAULT_wxUSE_ZLIB=no | |
1451 | DEFAULT_wxUSE_LIBPNG=no | |
1452 | DEFAULT_wxUSE_LIBJPEG=no | |
1453 | DEFAULT_wxUSE_LIBTIFF=no | |
1454 | DEFAULT_wxUSE_ODBC=no | |
1455 | DEFAULT_wxUSE_OPENGL=no | |
1456 | ||
1457 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
1458 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
1459 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1460 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
1461 | DEFAULT_wxUSE_DATETIME=no | |
1462 | DEFAULT_wxUSE_TIMEDATE=no | |
1463 | DEFAULT_wxUSE_TIMER=no | |
1464 | DEFAULT_wxUSE_STOPWATCH=no | |
1465 | DEFAULT_wxUSE_FILE=no | |
1466 | DEFAULT_wxUSE_FFILE=no | |
1467 | DEFAULT_wxUSE_TEXTBUFFER=no | |
1468 | DEFAULT_wxUSE_TEXTFILE=no | |
1469 | DEFAULT_wxUSE_WAVE=no | |
1470 | DEFAULT_wxUSE_INTL=no | |
1471 | DEFAULT_wxUSE_CONFIG=no | |
1472 | DEFAULT_wxUSE_FONTMAP=no | |
1473 | DEFAULT_wxUSE_STREAMS=no | |
1474 | DEFAULT_wxUSE_SOCKETS=no | |
1475 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1476 | DEFAULT_wxUSE_JOYSTICK=no | |
1477 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1478 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
1479 | DEFAULT_wxUSE_LONGLONG=no | |
1480 | DEFAULT_wxUSE_GEOMETRY=no | |
1481 | ||
1482 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1483 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1484 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1485 | ||
1486 | DEFAULT_wxUSE_X_RESOURCES=no | |
1487 | DEFAULT_wxUSE_CLIPBOARD=no | |
1488 | DEFAULT_wxUSE_TOOLTIPS=no | |
1489 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1490 | DEFAULT_wxUSE_DRAGIMAGE=no | |
1491 | DEFAULT_wxUSE_SPLINES=no | |
1492 | ||
1493 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1494 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1495 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1496 | ||
1497 | DEFAULT_wxUSE_PROLOGIO=no | |
1498 | DEFAULT_wxUSE_RESOURCES=no | |
1499 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1500 | DEFAULT_wxUSE_IPC=no | |
1501 | DEFAULT_wxUSE_HELP=no | |
1502 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
1503 | DEFAULT_wxUSE_WXHTML_HELP=no | |
1504 | DEFAULT_wxUSE_TREELAYOUT=no | |
1505 | DEFAULT_wxUSE_METAFILE=no | |
1506 | DEFAULT_wxUSE_MIMETYPE=no | |
1507 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
1508 | DEFAULT_wxUSE_PROTOCOL=no | |
1509 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1510 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1511 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1512 | DEFAULT_wxUSE_URL=no | |
1513 | ||
1514 | DEFAULT_wxUSE_COMMONDLGS=no | |
1515 | DEFAULT_wxUSE_CHOICEDLG=no | |
1516 | DEFAULT_wxUSE_COLOURDLG=no | |
1517 | DEFAULT_wxUSE_DIRDLG=no | |
1518 | DEFAULT_wxUSE_FILEDLG=no | |
1519 | DEFAULT_wxUSE_FINDREPLDLG=no | |
1520 | DEFAULT_wxUSE_FONTDLG=no | |
1521 | DEFAULT_wxUSE_MSGDLG=no | |
1522 | DEFAULT_wxUSE_NUMBERDLG=no | |
1523 | DEFAULT_wxUSE_TEXTDLG=no | |
1524 | DEFAULT_wxUSE_SPLASH=no | |
1525 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1526 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1527 | DEFAULT_wxUSE_WIZARDDLG=no | |
1528 | ||
1529 | DEFAULT_wxUSE_MENUS=no | |
1530 | DEFAULT_wxUSE_MINIFRAME=no | |
1531 | DEFAULT_wxUSE_HTML=no | |
1532 | DEFAULT_wxUSE_FILESYSTEM=no | |
1533 | DEFAULT_wxUSE_FS_INET=no | |
1534 | DEFAULT_wxUSE_FS_ZIP=no | |
1535 | DEFAULT_wxUSE_BUSYINFO=no | |
1536 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1537 | DEFAULT_wxUSE_VALIDATORS=no | |
1538 | ||
1539 | DEFAULT_wxUSE_ACCEL=no | |
1540 | DEFAULT_wxUSE_BUTTON=no | |
1541 | DEFAULT_wxUSE_BMPBUTTON=no | |
1542 | DEFAULT_wxUSE_CALCTRL=no | |
1543 | DEFAULT_wxUSE_CARET=no | |
1544 | DEFAULT_wxUSE_CHECKBOX=no | |
1545 | DEFAULT_wxUSE_CHECKLST=no | |
1546 | DEFAULT_wxUSE_CHOICE=no | |
1547 | DEFAULT_wxUSE_COMBOBOX=no | |
1548 | DEFAULT_wxUSE_GAUGE=no | |
1549 | DEFAULT_wxUSE_GRID=no | |
1550 | DEFAULT_wxUSE_NEW_GRID=no | |
1551 | DEFAULT_wxUSE_IMAGLIST=no | |
1552 | DEFAULT_wxUSE_LISTBOX=no | |
1553 | DEFAULT_wxUSE_LISTCTRL=no | |
1554 | DEFAULT_wxUSE_NOTEBOOK=no | |
1555 | DEFAULT_wxUSE_PROPSHEET=no | |
1556 | DEFAULT_wxUSE_RADIOBOX=no | |
1557 | DEFAULT_wxUSE_RADIOBTN=no | |
1558 | DEFAULT_wxUSE_SASH=no | |
1559 | DEFAULT_wxUSE_SCROLLBAR=no | |
1560 | DEFAULT_wxUSE_SLIDER=no | |
1561 | DEFAULT_wxUSE_SPINBTN=no | |
1562 | DEFAULT_wxUSE_SPINCTRL=no | |
1563 | DEFAULT_wxUSE_SPLITTER=no | |
1564 | DEFAULT_wxUSE_STATBMP=no | |
1565 | DEFAULT_wxUSE_STATBOX=no | |
1566 | DEFAULT_wxUSE_STATLINE=no | |
1567 | DEFAULT_wxUSE_STATTEXT=no | |
1568 | DEFAULT_wxUSE_STATUSBAR=yes | |
1569 | DEFAULT_wxUSE_TABDIALOG=no | |
1570 | DEFAULT_wxUSE_TEXTCTRL=no | |
1571 | DEFAULT_wxUSE_TOGGLEBTN=no | |
1572 | DEFAULT_wxUSE_TOOLBAR=no | |
1573 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
1574 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
1575 | DEFAULT_wxUSE_TREECTRL=no | |
1576 | DEFAULT_wxUSE_POPUPWIN=no | |
1577 | DEFAULT_wxUSE_TIPWINDOW=no | |
1578 | ||
1579 | DEFAULT_wxUSE_UNICODE=no | |
1580 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
1581 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1582 | ||
1583 | DEFAULT_wxUSE_PALETTE=no | |
1584 | DEFAULT_wxUSE_IMAGE=no | |
1585 | DEFAULT_wxUSE_GIF=no | |
1586 | DEFAULT_wxUSE_PCX=no | |
1587 | DEFAULT_wxUSE_PNM=no | |
1588 | DEFAULT_wxUSE_IFF=no | |
1589 | DEFAULT_wxUSE_XPM=no | |
1590 | DEFAULT_wxUSE_ICO_CUR=no | |
1591 | else | |
1592 | DEFAULT_wxUSE_UNIVERSAL=no | |
1593 | ||
1594 | DEFAULT_wxUSE_NANOX=no | |
1595 | ||
1596 | DEFAULT_wxUSE_THREADS=yes | |
1597 | ||
1598 | DEFAULT_wxUSE_SHARED=yes | |
1599 | DEFAULT_wxUSE_SONAME=no | |
1600 | DEFAULT_wxUSE_OPTIMISE=yes | |
1601 | DEFAULT_wxUSE_PROFILE=no | |
1602 | DEFAULT_wxUSE_NO_DEPS=no | |
1603 | DEFAULT_wxUSE_NO_RTTI=no | |
1604 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1605 | DEFAULT_wxUSE_PERMISSIVE=no | |
1606 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1607 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1608 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1609 | DEFAULT_wxUSE_MEM_TRACING=no | |
1610 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1611 | DEFAULT_wxUSE_DMALLOC=no | |
1612 | DEFAULT_wxUSE_PRECOMP=no | |
1613 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1614 | ||
1615 | DEFAULT_wxUSE_LOG=yes | |
1616 | DEFAULT_wxUSE_LOGWINDOW=yes | |
1617 | DEFAULT_wxUSE_LOGGUI=yes | |
1618 | DEFAULT_wxUSE_LOGDIALOG=yes | |
1619 | ||
1620 | DEFAULT_wxUSE_GUI=yes | |
1621 | ||
1622 | DEFAULT_wxUSE_REGEX=yes | |
1623 | DEFAULT_wxUSE_ZLIB=yes | |
1624 | DEFAULT_wxUSE_LIBPNG=yes | |
1625 | DEFAULT_wxUSE_LIBJPEG=yes | |
1626 | DEFAULT_wxUSE_LIBTIFF=yes | |
1627 | DEFAULT_wxUSE_ODBC=no | |
1628 | DEFAULT_wxUSE_OPENGL=no | |
1629 | ||
1630 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
1631 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
1632 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1633 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
1634 | DEFAULT_wxUSE_DATETIME=yes | |
1635 | DEFAULT_wxUSE_TIMEDATE=no | |
1636 | DEFAULT_wxUSE_TIMER=yes | |
1637 | DEFAULT_wxUSE_STOPWATCH=yes | |
1638 | DEFAULT_wxUSE_FILE=yes | |
1639 | DEFAULT_wxUSE_FFILE=yes | |
1640 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
1641 | DEFAULT_wxUSE_TEXTFILE=yes | |
1642 | DEFAULT_wxUSE_WAVE=no | |
1643 | DEFAULT_wxUSE_INTL=yes | |
1644 | DEFAULT_wxUSE_CONFIG=yes | |
1645 | DEFAULT_wxUSE_FONTMAP=yes | |
1646 | DEFAULT_wxUSE_STREAMS=yes | |
1647 | DEFAULT_wxUSE_SOCKETS=yes | |
1648 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1649 | DEFAULT_wxUSE_JOYSTICK=yes | |
1650 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
1651 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
1652 | DEFAULT_wxUSE_LONGLONG=yes | |
1653 | DEFAULT_wxUSE_GEOMETRY=yes | |
1654 | ||
1655 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1656 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1657 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1658 | ||
1659 | DEFAULT_wxUSE_X_RESOURCES=no | |
1660 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1661 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1662 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1663 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
1664 | DEFAULT_wxUSE_SPLINES=yes | |
1665 | ||
1666 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1667 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1668 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1669 | ||
1670 | DEFAULT_wxUSE_PROLOGIO=yes | |
1671 | DEFAULT_wxUSE_RESOURCES=yes | |
1672 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1673 | DEFAULT_wxUSE_IPC=yes | |
1674 | DEFAULT_wxUSE_HELP=yes | |
1675 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
1676 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
1677 | DEFAULT_wxUSE_TREELAYOUT=yes | |
1678 | DEFAULT_wxUSE_METAFILE=yes | |
1679 | DEFAULT_wxUSE_MIMETYPE=yes | |
1680 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
1681 | DEFAULT_wxUSE_PROTOCOL=yes | |
1682 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1683 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1684 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1685 | DEFAULT_wxUSE_URL=yes | |
1686 | ||
1687 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1688 | DEFAULT_wxUSE_CHOICEDLG=yes | |
1689 | DEFAULT_wxUSE_COLOURDLG=yes | |
1690 | DEFAULT_wxUSE_DIRDLG=yes | |
1691 | DEFAULT_wxUSE_FILEDLG=yes | |
1692 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
1693 | DEFAULT_wxUSE_FONTDLG=yes | |
1694 | DEFAULT_wxUSE_MSGDLG=yes | |
1695 | DEFAULT_wxUSE_NUMBERDLG=yes | |
1696 | DEFAULT_wxUSE_TEXTDLG=yes | |
1697 | DEFAULT_wxUSE_SPLASH=yes | |
1698 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1699 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1700 | DEFAULT_wxUSE_WIZARDDLG=yes | |
1701 | ||
1702 | DEFAULT_wxUSE_MENUS=yes | |
1703 | DEFAULT_wxUSE_MINIFRAME=yes | |
1704 | DEFAULT_wxUSE_HTML=yes | |
1705 | DEFAULT_wxUSE_FILESYSTEM=yes | |
1706 | DEFAULT_wxUSE_FS_INET=yes | |
1707 | DEFAULT_wxUSE_FS_ZIP=yes | |
1708 | DEFAULT_wxUSE_BUSYINFO=yes | |
1709 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1710 | DEFAULT_wxUSE_VALIDATORS=yes | |
1711 | ||
1712 | DEFAULT_wxUSE_ACCEL=yes | |
1713 | DEFAULT_wxUSE_BUTTON=yes | |
1714 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1715 | DEFAULT_wxUSE_CALCTRL=yes | |
1716 | DEFAULT_wxUSE_CARET=yes | |
1717 | DEFAULT_wxUSE_CHECKBOX=yes | |
1718 | DEFAULT_wxUSE_CHECKLST=yes | |
1719 | DEFAULT_wxUSE_CHOICE=yes | |
1720 | DEFAULT_wxUSE_COMBOBOX=yes | |
1721 | DEFAULT_wxUSE_GAUGE=yes | |
1722 | DEFAULT_wxUSE_GRID=yes | |
1723 | DEFAULT_wxUSE_NEW_GRID=yes | |
1724 | DEFAULT_wxUSE_IMAGLIST=yes | |
1725 | DEFAULT_wxUSE_LISTBOX=yes | |
1726 | DEFAULT_wxUSE_LISTCTRL=yes | |
1727 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1728 | DEFAULT_wxUSE_PROPSHEET=yes | |
1729 | DEFAULT_wxUSE_RADIOBOX=yes | |
1730 | DEFAULT_wxUSE_RADIOBTN=yes | |
1731 | DEFAULT_wxUSE_SASH=yes | |
1732 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1733 | DEFAULT_wxUSE_SLIDER=yes | |
1734 | DEFAULT_wxUSE_SPINBTN=yes | |
1735 | DEFAULT_wxUSE_SPINCTRL=yes | |
1736 | DEFAULT_wxUSE_SPLITTER=yes | |
1737 | DEFAULT_wxUSE_STATBMP=yes | |
1738 | DEFAULT_wxUSE_STATBOX=yes | |
1739 | DEFAULT_wxUSE_STATLINE=yes | |
1740 | DEFAULT_wxUSE_STATTEXT=yes | |
1741 | DEFAULT_wxUSE_STATUSBAR=yes | |
1742 | DEFAULT_wxUSE_TABDIALOG=no | |
1743 | DEFAULT_wxUSE_TEXTCTRL=yes | |
1744 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
1745 | DEFAULT_wxUSE_TOOLBAR=yes | |
1746 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
1747 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
1748 | DEFAULT_wxUSE_TREECTRL=yes | |
1749 | DEFAULT_wxUSE_POPUPWIN=yes | |
1750 | DEFAULT_wxUSE_TIPWINDOW=yes | |
1751 | ||
1752 | DEFAULT_wxUSE_UNICODE=no | |
1753 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
1754 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1755 | ||
1756 | DEFAULT_wxUSE_PALETTE=yes | |
1757 | DEFAULT_wxUSE_IMAGE=yes | |
1758 | DEFAULT_wxUSE_GIF=yes | |
1759 | DEFAULT_wxUSE_PCX=yes | |
1760 | DEFAULT_wxUSE_IFF=no | |
1761 | DEFAULT_wxUSE_PNM=yes | |
1762 | DEFAULT_wxUSE_XPM=yes | |
1763 | DEFAULT_wxUSE_ICO_CUR=yes | |
1764 | fi | |
1765 | ||
1766 | ||
1767 | ||
1768 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1769 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1770 | if test "x$LINE" != x ; then | |
1771 | has_toolkit_in_cache=1 | |
1772 | eval "DEFAULT_$LINE" | |
1773 | eval "CACHE_$toolkit=1" | |
1774 | fi | |
1775 | done | |
1776 | ||
1777 | ||
1778 | ||
1779 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
1780 | echo "configure:1781: checking for --enable-gui" >&5 | |
1781 | no_cache=0 | |
1782 | # Check whether --enable-gui or --disable-gui was given. | |
1783 | if test "${enable_gui+set}" = set; then | |
1784 | enableval="$enable_gui" | |
1785 | ||
1786 | if test "$enableval" = yes; then | |
1787 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1788 | else | |
1789 | ac_cv_use_gui='wxUSE_GUI=no' | |
1790 | fi | |
1791 | ||
1792 | else | |
1793 | ||
1794 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1795 | if test "x$LINE" != x ; then | |
1796 | eval "DEFAULT_$LINE" | |
1797 | else | |
1798 | no_cache=1 | |
1799 | fi | |
1800 | ||
1801 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1802 | ||
1803 | fi | |
1804 | ||
1805 | ||
1806 | eval "$ac_cv_use_gui" | |
1807 | if test "$no_cache" != 1; then | |
1808 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1809 | fi | |
1810 | ||
1811 | if test "$wxUSE_GUI" = yes; then | |
1812 | echo "$ac_t""yes" 1>&6 | |
1813 | else | |
1814 | echo "$ac_t""no" 1>&6 | |
1815 | fi | |
1816 | ||
1817 | ||
1818 | if test "$wxUSE_GUI" = "yes"; then | |
1819 | ||
1820 | ||
1821 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
1822 | echo "configure:1823: checking for --enable-universal" >&5 | |
1823 | no_cache=0 | |
1824 | # Check whether --enable-universal or --disable-universal was given. | |
1825 | if test "${enable_universal+set}" = set; then | |
1826 | enableval="$enable_universal" | |
1827 | ||
1828 | if test "$enableval" = yes; then | |
1829 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1830 | else | |
1831 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1832 | fi | |
1833 | ||
1834 | else | |
1835 | ||
1836 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1837 | if test "x$LINE" != x ; then | |
1838 | eval "DEFAULT_$LINE" | |
1839 | else | |
1840 | no_cache=1 | |
1841 | fi | |
1842 | ||
1843 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1844 | ||
1845 | fi | |
1846 | ||
1847 | ||
1848 | eval "$ac_cv_use_universal" | |
1849 | if test "$no_cache" != 1; then | |
1850 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1851 | fi | |
1852 | ||
1853 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1854 | echo "$ac_t""yes" 1>&6 | |
1855 | else | |
1856 | echo "$ac_t""no" 1>&6 | |
1857 | fi | |
1858 | ||
1859 | # Check whether --with-gtk or --without-gtk was given. | |
1860 | if test "${with_gtk+set}" = set; then | |
1861 | withval="$with_gtk" | |
1862 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1863 | fi | |
1864 | ||
1865 | # Check whether --with-motif or --without-motif was given. | |
1866 | if test "${with_motif+set}" = set; then | |
1867 | withval="$with_motif" | |
1868 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1869 | fi | |
1870 | ||
1871 | # Check whether --with-mac or --without-mac was given. | |
1872 | if test "${with_mac+set}" = set; then | |
1873 | withval="$with_mac" | |
1874 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
1875 | fi | |
1876 | ||
1877 | # Check whether --with-wine or --without-wine was given. | |
1878 | if test "${with_wine+set}" = set; then | |
1879 | withval="$with_wine" | |
1880 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1881 | fi | |
1882 | ||
1883 | # Check whether --with-msw or --without-msw was given. | |
1884 | if test "${with_msw+set}" = set; then | |
1885 | withval="$with_msw" | |
1886 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
1887 | fi | |
1888 | ||
1889 | # Check whether --with-pm or --without-pm was given. | |
1890 | if test "${with_pm+set}" = set; then | |
1891 | withval="$with_pm" | |
1892 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
1893 | fi | |
1894 | ||
1895 | # Check whether --with-mgl or --without-mgl was given. | |
1896 | if test "${with_mgl+set}" = set; then | |
1897 | withval="$with_mgl" | |
1898 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1899 | fi | |
1900 | ||
1901 | # Check whether --with-microwin or --without-microwin was given. | |
1902 | if test "${with_microwin+set}" = set; then | |
1903 | withval="$with_microwin" | |
1904 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1905 | fi | |
1906 | ||
1907 | # Check whether --with-x11 or --without-x11 was given. | |
1908 | if test "${with_x11+set}" = set; then | |
1909 | withval="$with_x11" | |
1910 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
1911 | fi | |
1912 | ||
1913 | ||
1914 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 | |
1915 | echo "configure:1916: checking for --enable-nanox" >&5 | |
1916 | no_cache=0 | |
1917 | # Check whether --enable-nanox or --disable-nanox was given. | |
1918 | if test "${enable_nanox+set}" = set; then | |
1919 | enableval="$enable_nanox" | |
1920 | ||
1921 | if test "$enableval" = yes; then | |
1922 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
1923 | else | |
1924 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
1925 | fi | |
1926 | ||
1927 | else | |
1928 | ||
1929 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
1930 | if test "x$LINE" != x ; then | |
1931 | eval "DEFAULT_$LINE" | |
1932 | else | |
1933 | no_cache=1 | |
1934 | fi | |
1935 | ||
1936 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
1937 | ||
1938 | fi | |
1939 | ||
1940 | ||
1941 | eval "$ac_cv_use_nanox" | |
1942 | if test "$no_cache" != 1; then | |
1943 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
1944 | fi | |
1945 | ||
1946 | if test "$wxUSE_NANOX" = yes; then | |
1947 | echo "$ac_t""yes" 1>&6 | |
1948 | else | |
1949 | echo "$ac_t""no" 1>&6 | |
1950 | fi | |
1951 | ||
1952 | ||
1953 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
1954 | if test "${enable_gtk2+set}" = set; then | |
1955 | enableval="$enable_gtk2" | |
1956 | wxUSE_GTK2="yes" | |
1957 | else | |
1958 | wxUSE_GTK2="no" | |
1959 | fi | |
1960 | ||
1961 | ||
1962 | ||
1963 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 | |
1964 | echo "configure:1965: checking for --with-libpng" >&5 | |
1965 | no_cache=0 | |
1966 | # Check whether --with-libpng or --without-libpng was given. | |
1967 | if test "${with_libpng+set}" = set; then | |
1968 | withval="$with_libpng" | |
1969 | ||
1970 | if test "$withval" = yes; then | |
1971 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
1972 | elif test "$withval" = no; then | |
1973 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
1974 | elif test "$withval" = sys; then | |
1975 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1976 | elif test "$withval" = builtin; then | |
1977 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
1978 | else | |
1979 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
1980 | fi | |
1981 | ||
1982 | else | |
1983 | ||
1984 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
1985 | if test "x$LINE" != x ; then | |
1986 | eval "DEFAULT_$LINE" | |
1987 | else | |
1988 | no_cache=1 | |
1989 | fi | |
1990 | ||
1991 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
1992 | ||
1993 | fi | |
1994 | ||
1995 | ||
1996 | eval "$ac_cv_use_libpng" | |
1997 | if test "$no_cache" != 1; then | |
1998 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
1999 | fi | |
2000 | ||
2001 | if test "$wxUSE_LIBPNG" = yes; then | |
2002 | echo "$ac_t""yes" 1>&6 | |
2003 | elif test "$wxUSE_LIBPNG" = no; then | |
2004 | echo "$ac_t""no" 1>&6 | |
2005 | elif test "$wxUSE_LIBPNG" = sys; then | |
2006 | echo "$ac_t""system version" 1>&6 | |
2007 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2008 | echo "$ac_t""builtin version" 1>&6 | |
2009 | else | |
2010 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2011 | fi | |
2012 | ||
2013 | ||
2014 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 | |
2015 | echo "configure:2016: checking for --with-libjpeg" >&5 | |
2016 | no_cache=0 | |
2017 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2018 | if test "${with_libjpeg+set}" = set; then | |
2019 | withval="$with_libjpeg" | |
2020 | ||
2021 | if test "$withval" = yes; then | |
2022 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2023 | elif test "$withval" = no; then | |
2024 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2025 | elif test "$withval" = sys; then | |
2026 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2027 | elif test "$withval" = builtin; then | |
2028 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2029 | else | |
2030 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2031 | fi | |
2032 | ||
2033 | else | |
2034 | ||
2035 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2036 | if test "x$LINE" != x ; then | |
2037 | eval "DEFAULT_$LINE" | |
2038 | else | |
2039 | no_cache=1 | |
2040 | fi | |
2041 | ||
2042 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2043 | ||
2044 | fi | |
2045 | ||
2046 | ||
2047 | eval "$ac_cv_use_libjpeg" | |
2048 | if test "$no_cache" != 1; then | |
2049 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2050 | fi | |
2051 | ||
2052 | if test "$wxUSE_LIBJPEG" = yes; then | |
2053 | echo "$ac_t""yes" 1>&6 | |
2054 | elif test "$wxUSE_LIBJPEG" = no; then | |
2055 | echo "$ac_t""no" 1>&6 | |
2056 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2057 | echo "$ac_t""system version" 1>&6 | |
2058 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2059 | echo "$ac_t""builtin version" 1>&6 | |
2060 | else | |
2061 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2062 | fi | |
2063 | ||
2064 | ||
2065 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 | |
2066 | echo "configure:2067: checking for --with-libtiff" >&5 | |
2067 | no_cache=0 | |
2068 | # Check whether --with-libtiff or --without-libtiff was given. | |
2069 | if test "${with_libtiff+set}" = set; then | |
2070 | withval="$with_libtiff" | |
2071 | ||
2072 | if test "$withval" = yes; then | |
2073 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2074 | elif test "$withval" = no; then | |
2075 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2076 | elif test "$withval" = sys; then | |
2077 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2078 | elif test "$withval" = builtin; then | |
2079 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2080 | else | |
2081 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2082 | fi | |
2083 | ||
2084 | else | |
2085 | ||
2086 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2087 | if test "x$LINE" != x ; then | |
2088 | eval "DEFAULT_$LINE" | |
2089 | else | |
2090 | no_cache=1 | |
2091 | fi | |
2092 | ||
2093 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2094 | ||
2095 | fi | |
2096 | ||
2097 | ||
2098 | eval "$ac_cv_use_libtiff" | |
2099 | if test "$no_cache" != 1; then | |
2100 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2101 | fi | |
2102 | ||
2103 | if test "$wxUSE_LIBTIFF" = yes; then | |
2104 | echo "$ac_t""yes" 1>&6 | |
2105 | elif test "$wxUSE_LIBTIFF" = no; then | |
2106 | echo "$ac_t""no" 1>&6 | |
2107 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2108 | echo "$ac_t""system version" 1>&6 | |
2109 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2110 | echo "$ac_t""builtin version" 1>&6 | |
2111 | else | |
2112 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2113 | fi | |
2114 | ||
2115 | ||
2116 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 | |
2117 | echo "configure:2118: checking for --with-opengl" >&5 | |
2118 | no_cache=0 | |
2119 | # Check whether --with-opengl or --without-opengl was given. | |
2120 | if test "${with_opengl+set}" = set; then | |
2121 | withval="$with_opengl" | |
2122 | ||
2123 | if test "$withval" = yes; then | |
2124 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
2125 | else | |
2126 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
2127 | fi | |
2128 | ||
2129 | else | |
2130 | ||
2131 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
2132 | if test "x$LINE" != x ; then | |
2133 | eval "DEFAULT_$LINE" | |
2134 | else | |
2135 | no_cache=1 | |
2136 | fi | |
2137 | ||
2138 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
2139 | ||
2140 | fi | |
2141 | ||
2142 | ||
2143 | eval "$ac_cv_use_opengl" | |
2144 | if test "$no_cache" != 1; then | |
2145 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
2146 | fi | |
2147 | ||
2148 | if test "$wxUSE_OPENGL" = yes; then | |
2149 | echo "$ac_t""yes" 1>&6 | |
2150 | else | |
2151 | echo "$ac_t""no" 1>&6 | |
2152 | fi | |
2153 | ||
2154 | ||
2155 | fi | |
2156 | ||
2157 | ||
2158 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 | |
2159 | echo "configure:2160: checking for --with-dmalloc" >&5 | |
2160 | no_cache=0 | |
2161 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
2162 | if test "${with_dmalloc+set}" = set; then | |
2163 | withval="$with_dmalloc" | |
2164 | ||
2165 | if test "$withval" = yes; then | |
2166 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
2167 | else | |
2168 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
2169 | fi | |
2170 | ||
2171 | else | |
2172 | ||
2173 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
2174 | if test "x$LINE" != x ; then | |
2175 | eval "DEFAULT_$LINE" | |
2176 | else | |
2177 | no_cache=1 | |
2178 | fi | |
2179 | ||
2180 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
2181 | ||
2182 | fi | |
2183 | ||
2184 | ||
2185 | eval "$ac_cv_use_dmalloc" | |
2186 | if test "$no_cache" != 1; then | |
2187 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
2188 | fi | |
2189 | ||
2190 | if test "$wxUSE_DMALLOC" = yes; then | |
2191 | echo "$ac_t""yes" 1>&6 | |
2192 | else | |
2193 | echo "$ac_t""no" 1>&6 | |
2194 | fi | |
2195 | ||
2196 | ||
2197 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 | |
2198 | echo "configure:2199: checking for --with-regex" >&5 | |
2199 | no_cache=0 | |
2200 | # Check whether --with-regex or --without-regex was given. | |
2201 | if test "${with_regex+set}" = set; then | |
2202 | withval="$with_regex" | |
2203 | ||
2204 | if test "$withval" = yes; then | |
2205 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2206 | elif test "$withval" = no; then | |
2207 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2208 | elif test "$withval" = sys; then | |
2209 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
2210 | elif test "$withval" = builtin; then | |
2211 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
2212 | else | |
2213 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2214 | fi | |
2215 | ||
2216 | else | |
2217 | ||
2218 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2219 | if test "x$LINE" != x ; then | |
2220 | eval "DEFAULT_$LINE" | |
2221 | else | |
2222 | no_cache=1 | |
2223 | fi | |
2224 | ||
2225 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2226 | ||
2227 | fi | |
2228 | ||
2229 | ||
2230 | eval "$ac_cv_use_regex" | |
2231 | if test "$no_cache" != 1; then | |
2232 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2233 | fi | |
2234 | ||
2235 | if test "$wxUSE_REGEX" = yes; then | |
2236 | echo "$ac_t""yes" 1>&6 | |
2237 | elif test "$wxUSE_REGEX" = no; then | |
2238 | echo "$ac_t""no" 1>&6 | |
2239 | elif test "$wxUSE_REGEX" = sys; then | |
2240 | echo "$ac_t""system version" 1>&6 | |
2241 | elif test "$wxUSE_REGEX" = builtin; then | |
2242 | echo "$ac_t""builtin version" 1>&6 | |
2243 | else | |
2244 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2245 | fi | |
2246 | ||
2247 | ||
2248 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 | |
2249 | echo "configure:2250: checking for --with-zlib" >&5 | |
2250 | no_cache=0 | |
2251 | # Check whether --with-zlib or --without-zlib was given. | |
2252 | if test "${with_zlib+set}" = set; then | |
2253 | withval="$with_zlib" | |
2254 | ||
2255 | if test "$withval" = yes; then | |
2256 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
2257 | elif test "$withval" = no; then | |
2258 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
2259 | elif test "$withval" = sys; then | |
2260 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2261 | elif test "$withval" = builtin; then | |
2262 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
2263 | else | |
2264 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2265 | fi | |
2266 | ||
2267 | else | |
2268 | ||
2269 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
2270 | if test "x$LINE" != x ; then | |
2271 | eval "DEFAULT_$LINE" | |
2272 | else | |
2273 | no_cache=1 | |
2274 | fi | |
2275 | ||
2276 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
2277 | ||
2278 | fi | |
2279 | ||
2280 | ||
2281 | eval "$ac_cv_use_zlib" | |
2282 | if test "$no_cache" != 1; then | |
2283 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
2284 | fi | |
2285 | ||
2286 | if test "$wxUSE_ZLIB" = yes; then | |
2287 | echo "$ac_t""yes" 1>&6 | |
2288 | elif test "$wxUSE_ZLIB" = no; then | |
2289 | echo "$ac_t""no" 1>&6 | |
2290 | elif test "$wxUSE_ZLIB" = sys; then | |
2291 | echo "$ac_t""system version" 1>&6 | |
2292 | elif test "$wxUSE_ZLIB" = builtin; then | |
2293 | echo "$ac_t""builtin version" 1>&6 | |
2294 | else | |
2295 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2296 | fi | |
2297 | ||
2298 | ||
2299 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 | |
2300 | echo "configure:2301: checking for --with-odbc" >&5 | |
2301 | no_cache=0 | |
2302 | # Check whether --with-odbc or --without-odbc was given. | |
2303 | if test "${with_odbc+set}" = set; then | |
2304 | withval="$with_odbc" | |
2305 | ||
2306 | if test "$withval" = yes; then | |
2307 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2308 | else | |
2309 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2310 | fi | |
2311 | ||
2312 | else | |
2313 | ||
2314 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
2315 | if test "x$LINE" != x ; then | |
2316 | eval "DEFAULT_$LINE" | |
2317 | else | |
2318 | no_cache=1 | |
2319 | fi | |
2320 | ||
2321 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
2322 | ||
2323 | fi | |
2324 | ||
2325 | ||
2326 | eval "$ac_cv_use_odbc" | |
2327 | if test "$no_cache" != 1; then | |
2328 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2329 | fi | |
2330 | ||
2331 | if test "$wxUSE_ODBC" = yes; then | |
2332 | echo "$ac_t""yes" 1>&6 | |
2333 | else | |
2334 | echo "$ac_t""no" 1>&6 | |
2335 | fi | |
2336 | ||
2337 | ||
2338 | ||
2339 | ||
2340 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
2341 | echo "configure:2342: checking for --enable-shared" >&5 | |
2342 | no_cache=0 | |
2343 | # Check whether --enable-shared or --disable-shared was given. | |
2344 | if test "${enable_shared+set}" = set; then | |
2345 | enableval="$enable_shared" | |
2346 | ||
2347 | if test "$enableval" = yes; then | |
2348 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2349 | else | |
2350 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2351 | fi | |
2352 | ||
2353 | else | |
2354 | ||
2355 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
2356 | if test "x$LINE" != x ; then | |
2357 | eval "DEFAULT_$LINE" | |
2358 | else | |
2359 | no_cache=1 | |
2360 | fi | |
2361 | ||
2362 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
2363 | ||
2364 | fi | |
2365 | ||
2366 | ||
2367 | eval "$ac_cv_use_shared" | |
2368 | if test "$no_cache" != 1; then | |
2369 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2370 | fi | |
2371 | ||
2372 | if test "$wxUSE_SHARED" = yes; then | |
2373 | echo "$ac_t""yes" 1>&6 | |
2374 | else | |
2375 | echo "$ac_t""no" 1>&6 | |
2376 | fi | |
2377 | ||
2378 | ||
2379 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 | |
2380 | echo "configure:2381: checking for --enable-soname" >&5 | |
2381 | no_cache=0 | |
2382 | # Check whether --enable-soname or --disable-soname was given. | |
2383 | if test "${enable_soname+set}" = set; then | |
2384 | enableval="$enable_soname" | |
2385 | ||
2386 | if test "$enableval" = yes; then | |
2387 | ac_cv_use_soname='wxUSE_SONAME=yes' | |
2388 | else | |
2389 | ac_cv_use_soname='wxUSE_SONAME=no' | |
2390 | fi | |
2391 | ||
2392 | else | |
2393 | ||
2394 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` | |
2395 | if test "x$LINE" != x ; then | |
2396 | eval "DEFAULT_$LINE" | |
2397 | else | |
2398 | no_cache=1 | |
2399 | fi | |
2400 | ||
2401 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME | |
2402 | ||
2403 | fi | |
2404 | ||
2405 | ||
2406 | eval "$ac_cv_use_soname" | |
2407 | if test "$no_cache" != 1; then | |
2408 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp | |
2409 | fi | |
2410 | ||
2411 | if test "$wxUSE_SONAME" = yes; then | |
2412 | echo "$ac_t""yes" 1>&6 | |
2413 | else | |
2414 | echo "$ac_t""no" 1>&6 | |
2415 | fi | |
2416 | ||
2417 | ||
2418 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 | |
2419 | echo "configure:2420: checking for --enable-optimise" >&5 | |
2420 | no_cache=0 | |
2421 | # Check whether --enable-optimise or --disable-optimise was given. | |
2422 | if test "${enable_optimise+set}" = set; then | |
2423 | enableval="$enable_optimise" | |
2424 | ||
2425 | if test "$enableval" = yes; then | |
2426 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2427 | else | |
2428 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2429 | fi | |
2430 | ||
2431 | else | |
2432 | ||
2433 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
2434 | if test "x$LINE" != x ; then | |
2435 | eval "DEFAULT_$LINE" | |
2436 | else | |
2437 | no_cache=1 | |
2438 | fi | |
2439 | ||
2440 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
2441 | ||
2442 | fi | |
2443 | ||
2444 | ||
2445 | eval "$ac_cv_use_optimise" | |
2446 | if test "$no_cache" != 1; then | |
2447 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2448 | fi | |
2449 | ||
2450 | if test "$wxUSE_OPTIMISE" = yes; then | |
2451 | echo "$ac_t""yes" 1>&6 | |
2452 | else | |
2453 | echo "$ac_t""no" 1>&6 | |
2454 | fi | |
2455 | ||
2456 | ||
2457 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 | |
2458 | echo "configure:2459: checking for --enable-debug" >&5 | |
2459 | no_cache=0 | |
2460 | # Check whether --enable-debug or --disable-debug was given. | |
2461 | if test "${enable_debug+set}" = set; then | |
2462 | enableval="$enable_debug" | |
2463 | ||
2464 | if test "$enableval" = yes; then | |
2465 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2466 | else | |
2467 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2468 | fi | |
2469 | ||
2470 | else | |
2471 | ||
2472 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
2473 | if test "x$LINE" != x ; then | |
2474 | eval "DEFAULT_$LINE" | |
2475 | else | |
2476 | no_cache=1 | |
2477 | fi | |
2478 | ||
2479 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
2480 | ||
2481 | fi | |
2482 | ||
2483 | ||
2484 | eval "$ac_cv_use_debug" | |
2485 | if test "$no_cache" != 1; then | |
2486 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2487 | fi | |
2488 | ||
2489 | if test "$wxUSE_DEBUG" = yes; then | |
2490 | echo "$ac_t""yes" 1>&6 | |
2491 | else | |
2492 | echo "$ac_t""no" 1>&6 | |
2493 | fi | |
2494 | ||
2495 | ||
2496 | ||
2497 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
2498 | echo "configure:2499: checking for --enable-precomp" >&5 | |
2499 | no_cache=0 | |
2500 | # Check whether --enable-precomp or --disable-precomp was given. | |
2501 | if test "${enable_precomp+set}" = set; then | |
2502 | enableval="$enable_precomp" | |
2503 | ||
2504 | if test "$enableval" = yes; then | |
2505 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2506 | else | |
2507 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2508 | fi | |
2509 | ||
2510 | else | |
2511 | ||
2512 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2513 | if test "x$LINE" != x ; then | |
2514 | eval "DEFAULT_$LINE" | |
2515 | else | |
2516 | no_cache=1 | |
2517 | fi | |
2518 | ||
2519 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2520 | ||
2521 | fi | |
2522 | ||
2523 | ||
2524 | eval "$ac_cv_use_precomp" | |
2525 | if test "$no_cache" != 1; then | |
2526 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2527 | fi | |
2528 | ||
2529 | if test "$wxUSE_PRECOMP" = yes; then | |
2530 | echo "$ac_t""yes" 1>&6 | |
2531 | else | |
2532 | echo "$ac_t""no" 1>&6 | |
2533 | fi | |
2534 | ||
2535 | ||
2536 | if test "$wxUSE_DEBUG" = "yes"; then | |
2537 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2538 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2539 | elif test "$wxUSE_DEBUG" = "no"; then | |
2540 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2541 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2542 | fi | |
2543 | ||
2544 | ||
2545 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
2546 | echo "configure:2547: checking for --enable-debug_flag" >&5 | |
2547 | no_cache=0 | |
2548 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2549 | if test "${enable_debug_flag+set}" = set; then | |
2550 | enableval="$enable_debug_flag" | |
2551 | ||
2552 | if test "$enableval" = yes; then | |
2553 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2554 | else | |
2555 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2556 | fi | |
2557 | ||
2558 | else | |
2559 | ||
2560 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
2561 | if test "x$LINE" != x ; then | |
2562 | eval "DEFAULT_$LINE" | |
2563 | else | |
2564 | no_cache=1 | |
2565 | fi | |
2566 | ||
2567 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2568 | ||
2569 | fi | |
2570 | ||
2571 | ||
2572 | eval "$ac_cv_use_debug_flag" | |
2573 | if test "$no_cache" != 1; then | |
2574 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2575 | fi | |
2576 | ||
2577 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2578 | echo "$ac_t""yes" 1>&6 | |
2579 | else | |
2580 | echo "$ac_t""no" 1>&6 | |
2581 | fi | |
2582 | ||
2583 | ||
2584 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 | |
2585 | echo "configure:2586: checking for --enable-debug_info" >&5 | |
2586 | no_cache=0 | |
2587 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2588 | if test "${enable_debug_info+set}" = set; then | |
2589 | enableval="$enable_debug_info" | |
2590 | ||
2591 | if test "$enableval" = yes; then | |
2592 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2593 | else | |
2594 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2595 | fi | |
2596 | ||
2597 | else | |
2598 | ||
2599 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2600 | if test "x$LINE" != x ; then | |
2601 | eval "DEFAULT_$LINE" | |
2602 | else | |
2603 | no_cache=1 | |
2604 | fi | |
2605 | ||
2606 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2607 | ||
2608 | fi | |
2609 | ||
2610 | ||
2611 | eval "$ac_cv_use_debug_info" | |
2612 | if test "$no_cache" != 1; then | |
2613 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2614 | fi | |
2615 | ||
2616 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2617 | echo "$ac_t""yes" 1>&6 | |
2618 | else | |
2619 | echo "$ac_t""no" 1>&6 | |
2620 | fi | |
2621 | ||
2622 | ||
2623 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 | |
2624 | echo "configure:2625: checking for --enable-debug_gdb" >&5 | |
2625 | no_cache=0 | |
2626 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2627 | if test "${enable_debug_gdb+set}" = set; then | |
2628 | enableval="$enable_debug_gdb" | |
2629 | ||
2630 | if test "$enableval" = yes; then | |
2631 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2632 | else | |
2633 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2634 | fi | |
2635 | ||
2636 | else | |
2637 | ||
2638 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2639 | if test "x$LINE" != x ; then | |
2640 | eval "DEFAULT_$LINE" | |
2641 | else | |
2642 | no_cache=1 | |
2643 | fi | |
2644 | ||
2645 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2646 | ||
2647 | fi | |
2648 | ||
2649 | ||
2650 | eval "$ac_cv_use_debug_gdb" | |
2651 | if test "$no_cache" != 1; then | |
2652 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2653 | fi | |
2654 | ||
2655 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2656 | echo "$ac_t""yes" 1>&6 | |
2657 | else | |
2658 | echo "$ac_t""no" 1>&6 | |
2659 | fi | |
2660 | ||
2661 | ||
2662 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 | |
2663 | echo "configure:2664: checking for --enable-debug_cntxt" >&5 | |
2664 | no_cache=0 | |
2665 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2666 | if test "${enable_debug_cntxt+set}" = set; then | |
2667 | enableval="$enable_debug_cntxt" | |
2668 | ||
2669 | if test "$enableval" = yes; then | |
2670 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2671 | else | |
2672 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2673 | fi | |
2674 | ||
2675 | else | |
2676 | ||
2677 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2678 | if test "x$LINE" != x ; then | |
2679 | eval "DEFAULT_$LINE" | |
2680 | else | |
2681 | no_cache=1 | |
2682 | fi | |
2683 | ||
2684 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2685 | ||
2686 | fi | |
2687 | ||
2688 | ||
2689 | eval "$ac_cv_use_debug_cntxt" | |
2690 | if test "$no_cache" != 1; then | |
2691 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2692 | fi | |
2693 | ||
2694 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2695 | echo "$ac_t""yes" 1>&6 | |
2696 | else | |
2697 | echo "$ac_t""no" 1>&6 | |
2698 | fi | |
2699 | ||
2700 | ||
2701 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 | |
2702 | echo "configure:2703: checking for --enable-mem_tracing" >&5 | |
2703 | no_cache=0 | |
2704 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2705 | if test "${enable_mem_tracing+set}" = set; then | |
2706 | enableval="$enable_mem_tracing" | |
2707 | ||
2708 | if test "$enableval" = yes; then | |
2709 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2710 | else | |
2711 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2712 | fi | |
2713 | ||
2714 | else | |
2715 | ||
2716 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2717 | if test "x$LINE" != x ; then | |
2718 | eval "DEFAULT_$LINE" | |
2719 | else | |
2720 | no_cache=1 | |
2721 | fi | |
2722 | ||
2723 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2724 | ||
2725 | fi | |
2726 | ||
2727 | ||
2728 | eval "$ac_cv_use_mem_tracing" | |
2729 | if test "$no_cache" != 1; then | |
2730 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2731 | fi | |
2732 | ||
2733 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2734 | echo "$ac_t""yes" 1>&6 | |
2735 | else | |
2736 | echo "$ac_t""no" 1>&6 | |
2737 | fi | |
2738 | ||
2739 | ||
2740 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 | |
2741 | echo "configure:2742: checking for --enable-profile" >&5 | |
2742 | no_cache=0 | |
2743 | # Check whether --enable-profile or --disable-profile was given. | |
2744 | if test "${enable_profile+set}" = set; then | |
2745 | enableval="$enable_profile" | |
2746 | ||
2747 | if test "$enableval" = yes; then | |
2748 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2749 | else | |
2750 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2751 | fi | |
2752 | ||
2753 | else | |
2754 | ||
2755 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2756 | if test "x$LINE" != x ; then | |
2757 | eval "DEFAULT_$LINE" | |
2758 | else | |
2759 | no_cache=1 | |
2760 | fi | |
2761 | ||
2762 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2763 | ||
2764 | fi | |
2765 | ||
2766 | ||
2767 | eval "$ac_cv_use_profile" | |
2768 | if test "$no_cache" != 1; then | |
2769 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2770 | fi | |
2771 | ||
2772 | if test "$wxUSE_PROFILE" = yes; then | |
2773 | echo "$ac_t""yes" 1>&6 | |
2774 | else | |
2775 | echo "$ac_t""no" 1>&6 | |
2776 | fi | |
2777 | ||
2778 | ||
2779 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 | |
2780 | echo "configure:2781: checking for --enable-no_rtti" >&5 | |
2781 | no_cache=0 | |
2782 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2783 | if test "${enable_no_rtti+set}" = set; then | |
2784 | enableval="$enable_no_rtti" | |
2785 | ||
2786 | if test "$enableval" = yes; then | |
2787 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2788 | else | |
2789 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2790 | fi | |
2791 | ||
2792 | else | |
2793 | ||
2794 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2795 | if test "x$LINE" != x ; then | |
2796 | eval "DEFAULT_$LINE" | |
2797 | else | |
2798 | no_cache=1 | |
2799 | fi | |
2800 | ||
2801 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2802 | ||
2803 | fi | |
2804 | ||
2805 | ||
2806 | eval "$ac_cv_use_no_rtti" | |
2807 | if test "$no_cache" != 1; then | |
2808 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2809 | fi | |
2810 | ||
2811 | if test "$wxUSE_NO_RTTI" = yes; then | |
2812 | echo "$ac_t""yes" 1>&6 | |
2813 | else | |
2814 | echo "$ac_t""no" 1>&6 | |
2815 | fi | |
2816 | ||
2817 | ||
2818 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 | |
2819 | echo "configure:2820: checking for --enable-no_exceptions" >&5 | |
2820 | no_cache=0 | |
2821 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2822 | if test "${enable_no_exceptions+set}" = set; then | |
2823 | enableval="$enable_no_exceptions" | |
2824 | ||
2825 | if test "$enableval" = yes; then | |
2826 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2827 | else | |
2828 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2829 | fi | |
2830 | ||
2831 | else | |
2832 | ||
2833 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2834 | if test "x$LINE" != x ; then | |
2835 | eval "DEFAULT_$LINE" | |
2836 | else | |
2837 | no_cache=1 | |
2838 | fi | |
2839 | ||
2840 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2841 | ||
2842 | fi | |
2843 | ||
2844 | ||
2845 | eval "$ac_cv_use_no_exceptions" | |
2846 | if test "$no_cache" != 1; then | |
2847 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2848 | fi | |
2849 | ||
2850 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2851 | echo "$ac_t""yes" 1>&6 | |
2852 | else | |
2853 | echo "$ac_t""no" 1>&6 | |
2854 | fi | |
2855 | ||
2856 | ||
2857 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 | |
2858 | echo "configure:2859: checking for --enable-permissive" >&5 | |
2859 | no_cache=0 | |
2860 | # Check whether --enable-permissive or --disable-permissive was given. | |
2861 | if test "${enable_permissive+set}" = set; then | |
2862 | enableval="$enable_permissive" | |
2863 | ||
2864 | if test "$enableval" = yes; then | |
2865 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2866 | else | |
2867 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2868 | fi | |
2869 | ||
2870 | else | |
2871 | ||
2872 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2873 | if test "x$LINE" != x ; then | |
2874 | eval "DEFAULT_$LINE" | |
2875 | else | |
2876 | no_cache=1 | |
2877 | fi | |
2878 | ||
2879 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2880 | ||
2881 | fi | |
2882 | ||
2883 | ||
2884 | eval "$ac_cv_use_permissive" | |
2885 | if test "$no_cache" != 1; then | |
2886 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2887 | fi | |
2888 | ||
2889 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2890 | echo "$ac_t""yes" 1>&6 | |
2891 | else | |
2892 | echo "$ac_t""no" 1>&6 | |
2893 | fi | |
2894 | ||
2895 | ||
2896 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 | |
2897 | echo "configure:2898: checking for --enable-no_deps" >&5 | |
2898 | no_cache=0 | |
2899 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2900 | if test "${enable_no_deps+set}" = set; then | |
2901 | enableval="$enable_no_deps" | |
2902 | ||
2903 | if test "$enableval" = yes; then | |
2904 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2905 | else | |
2906 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2907 | fi | |
2908 | ||
2909 | else | |
2910 | ||
2911 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2912 | if test "x$LINE" != x ; then | |
2913 | eval "DEFAULT_$LINE" | |
2914 | else | |
2915 | no_cache=1 | |
2916 | fi | |
2917 | ||
2918 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2919 | ||
2920 | fi | |
2921 | ||
2922 | ||
2923 | eval "$ac_cv_use_no_deps" | |
2924 | if test "$no_cache" != 1; then | |
2925 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2926 | fi | |
2927 | ||
2928 | if test "$wxUSE_NO_DEPS" = yes; then | |
2929 | echo "$ac_t""yes" 1>&6 | |
2930 | else | |
2931 | echo "$ac_t""no" 1>&6 | |
2932 | fi | |
2933 | ||
2934 | ||
2935 | ||
2936 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 | |
2937 | echo "configure:2938: checking for --enable-compat20" >&5 | |
2938 | no_cache=0 | |
2939 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2940 | if test "${enable_compat20+set}" = set; then | |
2941 | enableval="$enable_compat20" | |
2942 | ||
2943 | if test "$enableval" = yes; then | |
2944 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2945 | else | |
2946 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2947 | fi | |
2948 | ||
2949 | else | |
2950 | ||
2951 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2952 | if test "x$LINE" != x ; then | |
2953 | eval "DEFAULT_$LINE" | |
2954 | else | |
2955 | no_cache=1 | |
2956 | fi | |
2957 | ||
2958 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2959 | ||
2960 | fi | |
2961 | ||
2962 | ||
2963 | eval "$ac_cv_use_compat20" | |
2964 | if test "$no_cache" != 1; then | |
2965 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2966 | fi | |
2967 | ||
2968 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2969 | echo "$ac_t""yes" 1>&6 | |
2970 | else | |
2971 | echo "$ac_t""no" 1>&6 | |
2972 | fi | |
2973 | ||
2974 | ||
2975 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
2976 | echo "configure:2977: checking for --enable-compat22" >&5 | |
2977 | no_cache=0 | |
2978 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2979 | if test "${enable_compat22+set}" = set; then | |
2980 | enableval="$enable_compat22" | |
2981 | ||
2982 | if test "$enableval" = yes; then | |
2983 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2984 | else | |
2985 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2986 | fi | |
2987 | ||
2988 | else | |
2989 | ||
2990 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2991 | if test "x$LINE" != x ; then | |
2992 | eval "DEFAULT_$LINE" | |
2993 | else | |
2994 | no_cache=1 | |
2995 | fi | |
2996 | ||
2997 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2998 | ||
2999 | fi | |
3000 | ||
3001 | ||
3002 | eval "$ac_cv_use_compat22" | |
3003 | if test "$no_cache" != 1; then | |
3004 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3005 | fi | |
3006 | ||
3007 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3008 | echo "$ac_t""yes" 1>&6 | |
3009 | else | |
3010 | echo "$ac_t""no" 1>&6 | |
3011 | fi | |
3012 | ||
3013 | ||
3014 | ||
3015 | ||
3016 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
3017 | echo "configure:3018: checking for --enable-intl" >&5 | |
3018 | no_cache=0 | |
3019 | # Check whether --enable-intl or --disable-intl was given. | |
3020 | if test "${enable_intl+set}" = set; then | |
3021 | enableval="$enable_intl" | |
3022 | ||
3023 | if test "$enableval" = yes; then | |
3024 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3025 | else | |
3026 | ac_cv_use_intl='wxUSE_INTL=no' | |
3027 | fi | |
3028 | ||
3029 | else | |
3030 | ||
3031 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
3032 | if test "x$LINE" != x ; then | |
3033 | eval "DEFAULT_$LINE" | |
3034 | else | |
3035 | no_cache=1 | |
3036 | fi | |
3037 | ||
3038 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
3039 | ||
3040 | fi | |
3041 | ||
3042 | ||
3043 | eval "$ac_cv_use_intl" | |
3044 | if test "$no_cache" != 1; then | |
3045 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3046 | fi | |
3047 | ||
3048 | if test "$wxUSE_INTL" = yes; then | |
3049 | echo "$ac_t""yes" 1>&6 | |
3050 | else | |
3051 | echo "$ac_t""no" 1>&6 | |
3052 | fi | |
3053 | ||
3054 | ||
3055 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 | |
3056 | echo "configure:3057: checking for --enable-config" >&5 | |
3057 | no_cache=0 | |
3058 | # Check whether --enable-config or --disable-config was given. | |
3059 | if test "${enable_config+set}" = set; then | |
3060 | enableval="$enable_config" | |
3061 | ||
3062 | if test "$enableval" = yes; then | |
3063 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3064 | else | |
3065 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3066 | fi | |
3067 | ||
3068 | else | |
3069 | ||
3070 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
3071 | if test "x$LINE" != x ; then | |
3072 | eval "DEFAULT_$LINE" | |
3073 | else | |
3074 | no_cache=1 | |
3075 | fi | |
3076 | ||
3077 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
3078 | ||
3079 | fi | |
3080 | ||
3081 | ||
3082 | eval "$ac_cv_use_config" | |
3083 | if test "$no_cache" != 1; then | |
3084 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3085 | fi | |
3086 | ||
3087 | if test "$wxUSE_CONFIG" = yes; then | |
3088 | echo "$ac_t""yes" 1>&6 | |
3089 | else | |
3090 | echo "$ac_t""no" 1>&6 | |
3091 | fi | |
3092 | ||
3093 | ||
3094 | ||
3095 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 | |
3096 | echo "configure:3097: checking for --enable-protocols" >&5 | |
3097 | no_cache=0 | |
3098 | # Check whether --enable-protocols or --disable-protocols was given. | |
3099 | if test "${enable_protocols+set}" = set; then | |
3100 | enableval="$enable_protocols" | |
3101 | ||
3102 | if test "$enableval" = yes; then | |
3103 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3104 | else | |
3105 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3106 | fi | |
3107 | ||
3108 | else | |
3109 | ||
3110 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3111 | if test "x$LINE" != x ; then | |
3112 | eval "DEFAULT_$LINE" | |
3113 | else | |
3114 | no_cache=1 | |
3115 | fi | |
3116 | ||
3117 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3118 | ||
3119 | fi | |
3120 | ||
3121 | ||
3122 | eval "$ac_cv_use_protocols" | |
3123 | if test "$no_cache" != 1; then | |
3124 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3125 | fi | |
3126 | ||
3127 | if test "$wxUSE_PROTOCOL" = yes; then | |
3128 | echo "$ac_t""yes" 1>&6 | |
3129 | else | |
3130 | echo "$ac_t""no" 1>&6 | |
3131 | fi | |
3132 | ||
3133 | ||
3134 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
3135 | echo "configure:3136: checking for --enable-ftp" >&5 | |
3136 | no_cache=0 | |
3137 | # Check whether --enable-ftp or --disable-ftp was given. | |
3138 | if test "${enable_ftp+set}" = set; then | |
3139 | enableval="$enable_ftp" | |
3140 | ||
3141 | if test "$enableval" = yes; then | |
3142 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3143 | else | |
3144 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3145 | fi | |
3146 | ||
3147 | else | |
3148 | ||
3149 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3150 | if test "x$LINE" != x ; then | |
3151 | eval "DEFAULT_$LINE" | |
3152 | else | |
3153 | no_cache=1 | |
3154 | fi | |
3155 | ||
3156 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3157 | ||
3158 | fi | |
3159 | ||
3160 | ||
3161 | eval "$ac_cv_use_ftp" | |
3162 | if test "$no_cache" != 1; then | |
3163 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3164 | fi | |
3165 | ||
3166 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3167 | echo "$ac_t""yes" 1>&6 | |
3168 | else | |
3169 | echo "$ac_t""no" 1>&6 | |
3170 | fi | |
3171 | ||
3172 | ||
3173 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
3174 | echo "configure:3175: checking for --enable-http" >&5 | |
3175 | no_cache=0 | |
3176 | # Check whether --enable-http or --disable-http was given. | |
3177 | if test "${enable_http+set}" = set; then | |
3178 | enableval="$enable_http" | |
3179 | ||
3180 | if test "$enableval" = yes; then | |
3181 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3182 | else | |
3183 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3184 | fi | |
3185 | ||
3186 | else | |
3187 | ||
3188 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3189 | if test "x$LINE" != x ; then | |
3190 | eval "DEFAULT_$LINE" | |
3191 | else | |
3192 | no_cache=1 | |
3193 | fi | |
3194 | ||
3195 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3196 | ||
3197 | fi | |
3198 | ||
3199 | ||
3200 | eval "$ac_cv_use_http" | |
3201 | if test "$no_cache" != 1; then | |
3202 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3203 | fi | |
3204 | ||
3205 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3206 | echo "$ac_t""yes" 1>&6 | |
3207 | else | |
3208 | echo "$ac_t""no" 1>&6 | |
3209 | fi | |
3210 | ||
3211 | ||
3212 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
3213 | echo "configure:3214: checking for --enable-fileproto" >&5 | |
3214 | no_cache=0 | |
3215 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3216 | if test "${enable_fileproto+set}" = set; then | |
3217 | enableval="$enable_fileproto" | |
3218 | ||
3219 | if test "$enableval" = yes; then | |
3220 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3221 | else | |
3222 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3223 | fi | |
3224 | ||
3225 | else | |
3226 | ||
3227 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3228 | if test "x$LINE" != x ; then | |
3229 | eval "DEFAULT_$LINE" | |
3230 | else | |
3231 | no_cache=1 | |
3232 | fi | |
3233 | ||
3234 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3235 | ||
3236 | fi | |
3237 | ||
3238 | ||
3239 | eval "$ac_cv_use_fileproto" | |
3240 | if test "$no_cache" != 1; then | |
3241 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3242 | fi | |
3243 | ||
3244 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3245 | echo "$ac_t""yes" 1>&6 | |
3246 | else | |
3247 | echo "$ac_t""no" 1>&6 | |
3248 | fi | |
3249 | ||
3250 | ||
3251 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 | |
3252 | echo "configure:3253: checking for --enable-sockets" >&5 | |
3253 | no_cache=0 | |
3254 | # Check whether --enable-sockets or --disable-sockets was given. | |
3255 | if test "${enable_sockets+set}" = set; then | |
3256 | enableval="$enable_sockets" | |
3257 | ||
3258 | if test "$enableval" = yes; then | |
3259 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3260 | else | |
3261 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3262 | fi | |
3263 | ||
3264 | else | |
3265 | ||
3266 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
3267 | if test "x$LINE" != x ; then | |
3268 | eval "DEFAULT_$LINE" | |
3269 | else | |
3270 | no_cache=1 | |
3271 | fi | |
3272 | ||
3273 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
3274 | ||
3275 | fi | |
3276 | ||
3277 | ||
3278 | eval "$ac_cv_use_sockets" | |
3279 | if test "$no_cache" != 1; then | |
3280 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3281 | fi | |
3282 | ||
3283 | if test "$wxUSE_SOCKETS" = yes; then | |
3284 | echo "$ac_t""yes" 1>&6 | |
3285 | else | |
3286 | echo "$ac_t""no" 1>&6 | |
3287 | fi | |
3288 | ||
3289 | ||
3290 | ||
3291 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
3292 | echo "configure:3293: checking for --enable-ipc" >&5 | |
3293 | no_cache=0 | |
3294 | # Check whether --enable-ipc or --disable-ipc was given. | |
3295 | if test "${enable_ipc+set}" = set; then | |
3296 | enableval="$enable_ipc" | |
3297 | ||
3298 | if test "$enableval" = yes; then | |
3299 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
3300 | else | |
3301 | ac_cv_use_ipc='wxUSE_IPC=no' | |
3302 | fi | |
3303 | ||
3304 | else | |
3305 | ||
3306 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
3307 | if test "x$LINE" != x ; then | |
3308 | eval "DEFAULT_$LINE" | |
3309 | else | |
3310 | no_cache=1 | |
3311 | fi | |
3312 | ||
3313 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
3314 | ||
3315 | fi | |
3316 | ||
3317 | ||
3318 | eval "$ac_cv_use_ipc" | |
3319 | if test "$no_cache" != 1; then | |
3320 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
3321 | fi | |
3322 | ||
3323 | if test "$wxUSE_IPC" = yes; then | |
3324 | echo "$ac_t""yes" 1>&6 | |
3325 | else | |
3326 | echo "$ac_t""no" 1>&6 | |
3327 | fi | |
3328 | ||
3329 | ||
3330 | ||
3331 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 | |
3332 | echo "configure:3333: checking for --enable-cmdline" >&5 | |
3333 | no_cache=0 | |
3334 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3335 | if test "${enable_cmdline+set}" = set; then | |
3336 | enableval="$enable_cmdline" | |
3337 | ||
3338 | if test "$enableval" = yes; then | |
3339 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3340 | else | |
3341 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3342 | fi | |
3343 | ||
3344 | else | |
3345 | ||
3346 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3347 | if test "x$LINE" != x ; then | |
3348 | eval "DEFAULT_$LINE" | |
3349 | else | |
3350 | no_cache=1 | |
3351 | fi | |
3352 | ||
3353 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3354 | ||
3355 | fi | |
3356 | ||
3357 | ||
3358 | eval "$ac_cv_use_cmdline" | |
3359 | if test "$no_cache" != 1; then | |
3360 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3361 | fi | |
3362 | ||
3363 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3364 | echo "$ac_t""yes" 1>&6 | |
3365 | else | |
3366 | echo "$ac_t""no" 1>&6 | |
3367 | fi | |
3368 | ||
3369 | ||
3370 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
3371 | echo "configure:3372: checking for --enable-datetime" >&5 | |
3372 | no_cache=0 | |
3373 | # Check whether --enable-datetime or --disable-datetime was given. | |
3374 | if test "${enable_datetime+set}" = set; then | |
3375 | enableval="$enable_datetime" | |
3376 | ||
3377 | if test "$enableval" = yes; then | |
3378 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3379 | else | |
3380 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3381 | fi | |
3382 | ||
3383 | else | |
3384 | ||
3385 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3386 | if test "x$LINE" != x ; then | |
3387 | eval "DEFAULT_$LINE" | |
3388 | else | |
3389 | no_cache=1 | |
3390 | fi | |
3391 | ||
3392 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3393 | ||
3394 | fi | |
3395 | ||
3396 | ||
3397 | eval "$ac_cv_use_datetime" | |
3398 | if test "$no_cache" != 1; then | |
3399 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3400 | fi | |
3401 | ||
3402 | if test "$wxUSE_DATETIME" = yes; then | |
3403 | echo "$ac_t""yes" 1>&6 | |
3404 | else | |
3405 | echo "$ac_t""no" 1>&6 | |
3406 | fi | |
3407 | ||
3408 | ||
3409 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
3410 | echo "configure:3411: checking for --enable-timedate" >&5 | |
3411 | no_cache=0 | |
3412 | # Check whether --enable-timedate or --disable-timedate was given. | |
3413 | if test "${enable_timedate+set}" = set; then | |
3414 | enableval="$enable_timedate" | |
3415 | ||
3416 | if test "$enableval" = yes; then | |
3417 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3418 | else | |
3419 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3420 | fi | |
3421 | ||
3422 | else | |
3423 | ||
3424 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3425 | if test "x$LINE" != x ; then | |
3426 | eval "DEFAULT_$LINE" | |
3427 | else | |
3428 | no_cache=1 | |
3429 | fi | |
3430 | ||
3431 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3432 | ||
3433 | fi | |
3434 | ||
3435 | ||
3436 | eval "$ac_cv_use_timedate" | |
3437 | if test "$no_cache" != 1; then | |
3438 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3439 | fi | |
3440 | ||
3441 | if test "$wxUSE_TIMEDATE" = yes; then | |
3442 | echo "$ac_t""yes" 1>&6 | |
3443 | else | |
3444 | echo "$ac_t""no" 1>&6 | |
3445 | fi | |
3446 | ||
3447 | ||
3448 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
3449 | echo "configure:3450: checking for --enable-stopwatch" >&5 | |
3450 | no_cache=0 | |
3451 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3452 | if test "${enable_stopwatch+set}" = set; then | |
3453 | enableval="$enable_stopwatch" | |
3454 | ||
3455 | if test "$enableval" = yes; then | |
3456 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3457 | else | |
3458 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3459 | fi | |
3460 | ||
3461 | else | |
3462 | ||
3463 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3464 | if test "x$LINE" != x ; then | |
3465 | eval "DEFAULT_$LINE" | |
3466 | else | |
3467 | no_cache=1 | |
3468 | fi | |
3469 | ||
3470 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3471 | ||
3472 | fi | |
3473 | ||
3474 | ||
3475 | eval "$ac_cv_use_stopwatch" | |
3476 | if test "$no_cache" != 1; then | |
3477 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3478 | fi | |
3479 | ||
3480 | if test "$wxUSE_STOPWATCH" = yes; then | |
3481 | echo "$ac_t""yes" 1>&6 | |
3482 | else | |
3483 | echo "$ac_t""no" 1>&6 | |
3484 | fi | |
3485 | ||
3486 | ||
3487 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 | |
3488 | echo "configure:3489: checking for --enable-dialupman" >&5 | |
3489 | no_cache=0 | |
3490 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
3491 | if test "${enable_dialupman+set}" = set; then | |
3492 | enableval="$enable_dialupman" | |
3493 | ||
3494 | if test "$enableval" = yes; then | |
3495 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
3496 | else | |
3497 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
3498 | fi | |
3499 | ||
3500 | else | |
3501 | ||
3502 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
3503 | if test "x$LINE" != x ; then | |
3504 | eval "DEFAULT_$LINE" | |
3505 | else | |
3506 | no_cache=1 | |
3507 | fi | |
3508 | ||
3509 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
3510 | ||
3511 | fi | |
3512 | ||
3513 | ||
3514 | eval "$ac_cv_use_dialupman" | |
3515 | if test "$no_cache" != 1; then | |
3516 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
3517 | fi | |
3518 | ||
3519 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
3520 | echo "$ac_t""yes" 1>&6 | |
3521 | else | |
3522 | echo "$ac_t""no" 1>&6 | |
3523 | fi | |
3524 | ||
3525 | ||
3526 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 | |
3527 | echo "configure:3528: checking for --enable-apple_ieee" >&5 | |
3528 | no_cache=0 | |
3529 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3530 | if test "${enable_apple_ieee+set}" = set; then | |
3531 | enableval="$enable_apple_ieee" | |
3532 | ||
3533 | if test "$enableval" = yes; then | |
3534 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3535 | else | |
3536 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3537 | fi | |
3538 | ||
3539 | else | |
3540 | ||
3541 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
3542 | if test "x$LINE" != x ; then | |
3543 | eval "DEFAULT_$LINE" | |
3544 | else | |
3545 | no_cache=1 | |
3546 | fi | |
3547 | ||
3548 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
3549 | ||
3550 | fi | |
3551 | ||
3552 | ||
3553 | eval "$ac_cv_use_apple_ieee" | |
3554 | if test "$no_cache" != 1; then | |
3555 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3556 | fi | |
3557 | ||
3558 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
3559 | echo "$ac_t""yes" 1>&6 | |
3560 | else | |
3561 | echo "$ac_t""no" 1>&6 | |
3562 | fi | |
3563 | ||
3564 | ||
3565 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 | |
3566 | echo "configure:3567: checking for --enable-timer" >&5 | |
3567 | no_cache=0 | |
3568 | # Check whether --enable-timer or --disable-timer was given. | |
3569 | if test "${enable_timer+set}" = set; then | |
3570 | enableval="$enable_timer" | |
3571 | ||
3572 | if test "$enableval" = yes; then | |
3573 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
3574 | else | |
3575 | ac_cv_use_timer='wxUSE_TIMER=no' | |
3576 | fi | |
3577 | ||
3578 | else | |
3579 | ||
3580 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
3581 | if test "x$LINE" != x ; then | |
3582 | eval "DEFAULT_$LINE" | |
3583 | else | |
3584 | no_cache=1 | |
3585 | fi | |
3586 | ||
3587 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
3588 | ||
3589 | fi | |
3590 | ||
3591 | ||
3592 | eval "$ac_cv_use_timer" | |
3593 | if test "$no_cache" != 1; then | |
3594 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
3595 | fi | |
3596 | ||
3597 | if test "$wxUSE_TIMER" = yes; then | |
3598 | echo "$ac_t""yes" 1>&6 | |
3599 | else | |
3600 | echo "$ac_t""no" 1>&6 | |
3601 | fi | |
3602 | ||
3603 | ||
3604 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 | |
3605 | echo "configure:3606: checking for --enable-wave" >&5 | |
3606 | no_cache=0 | |
3607 | # Check whether --enable-wave or --disable-wave was given. | |
3608 | if test "${enable_wave+set}" = set; then | |
3609 | enableval="$enable_wave" | |
3610 | ||
3611 | if test "$enableval" = yes; then | |
3612 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3613 | else | |
3614 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3615 | fi | |
3616 | ||
3617 | else | |
3618 | ||
3619 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
3620 | if test "x$LINE" != x ; then | |
3621 | eval "DEFAULT_$LINE" | |
3622 | else | |
3623 | no_cache=1 | |
3624 | fi | |
3625 | ||
3626 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
3627 | ||
3628 | fi | |
3629 | ||
3630 | ||
3631 | eval "$ac_cv_use_wave" | |
3632 | if test "$no_cache" != 1; then | |
3633 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3634 | fi | |
3635 | ||
3636 | if test "$wxUSE_WAVE" = yes; then | |
3637 | echo "$ac_t""yes" 1>&6 | |
3638 | else | |
3639 | echo "$ac_t""no" 1>&6 | |
3640 | fi | |
3641 | ||
3642 | ||
3643 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 | |
3644 | echo "configure:3645: checking for --enable-fraction" >&5 | |
3645 | no_cache=0 | |
3646 | # Check whether --enable-fraction or --disable-fraction was given. | |
3647 | if test "${enable_fraction+set}" = set; then | |
3648 | enableval="$enable_fraction" | |
3649 | ||
3650 | if test "$enableval" = yes; then | |
3651 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3652 | else | |
3653 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3654 | fi | |
3655 | ||
3656 | else | |
3657 | ||
3658 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
3659 | if test "x$LINE" != x ; then | |
3660 | eval "DEFAULT_$LINE" | |
3661 | else | |
3662 | no_cache=1 | |
3663 | fi | |
3664 | ||
3665 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
3666 | ||
3667 | fi | |
3668 | ||
3669 | ||
3670 | eval "$ac_cv_use_fraction" | |
3671 | if test "$no_cache" != 1; then | |
3672 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3673 | fi | |
3674 | ||
3675 | if test "$wxUSE_FRACTION" = yes; then | |
3676 | echo "$ac_t""yes" 1>&6 | |
3677 | else | |
3678 | echo "$ac_t""no" 1>&6 | |
3679 | fi | |
3680 | ||
3681 | ||
3682 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 | |
3683 | echo "configure:3684: checking for --enable-dynlib" >&5 | |
3684 | no_cache=0 | |
3685 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3686 | if test "${enable_dynlib+set}" = set; then | |
3687 | enableval="$enable_dynlib" | |
3688 | ||
3689 | if test "$enableval" = yes; then | |
3690 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3691 | else | |
3692 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3693 | fi | |
3694 | ||
3695 | else | |
3696 | ||
3697 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
3698 | if test "x$LINE" != x ; then | |
3699 | eval "DEFAULT_$LINE" | |
3700 | else | |
3701 | no_cache=1 | |
3702 | fi | |
3703 | ||
3704 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
3705 | ||
3706 | fi | |
3707 | ||
3708 | ||
3709 | eval "$ac_cv_use_dynlib" | |
3710 | if test "$no_cache" != 1; then | |
3711 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3712 | fi | |
3713 | ||
3714 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
3715 | echo "$ac_t""yes" 1>&6 | |
3716 | else | |
3717 | echo "$ac_t""no" 1>&6 | |
3718 | fi | |
3719 | ||
3720 | ||
3721 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 | |
3722 | echo "configure:3723: checking for --enable-dynamicloader" >&5 | |
3723 | no_cache=0 | |
3724 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3725 | if test "${enable_dynamicloader+set}" = set; then | |
3726 | enableval="$enable_dynamicloader" | |
3727 | ||
3728 | if test "$enableval" = yes; then | |
3729 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3730 | else | |
3731 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3732 | fi | |
3733 | ||
3734 | else | |
3735 | ||
3736 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3737 | if test "x$LINE" != x ; then | |
3738 | eval "DEFAULT_$LINE" | |
3739 | else | |
3740 | no_cache=1 | |
3741 | fi | |
3742 | ||
3743 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3744 | ||
3745 | fi | |
3746 | ||
3747 | ||
3748 | eval "$ac_cv_use_dynamicloader" | |
3749 | if test "$no_cache" != 1; then | |
3750 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3751 | fi | |
3752 | ||
3753 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3754 | echo "$ac_t""yes" 1>&6 | |
3755 | else | |
3756 | echo "$ac_t""no" 1>&6 | |
3757 | fi | |
3758 | ||
3759 | ||
3760 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 | |
3761 | echo "configure:3762: checking for --enable-longlong" >&5 | |
3762 | no_cache=0 | |
3763 | # Check whether --enable-longlong or --disable-longlong was given. | |
3764 | if test "${enable_longlong+set}" = set; then | |
3765 | enableval="$enable_longlong" | |
3766 | ||
3767 | if test "$enableval" = yes; then | |
3768 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3769 | else | |
3770 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3771 | fi | |
3772 | ||
3773 | else | |
3774 | ||
3775 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
3776 | if test "x$LINE" != x ; then | |
3777 | eval "DEFAULT_$LINE" | |
3778 | else | |
3779 | no_cache=1 | |
3780 | fi | |
3781 | ||
3782 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
3783 | ||
3784 | fi | |
3785 | ||
3786 | ||
3787 | eval "$ac_cv_use_longlong" | |
3788 | if test "$no_cache" != 1; then | |
3789 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3790 | fi | |
3791 | ||
3792 | if test "$wxUSE_LONGLONG" = yes; then | |
3793 | echo "$ac_t""yes" 1>&6 | |
3794 | else | |
3795 | echo "$ac_t""no" 1>&6 | |
3796 | fi | |
3797 | ||
3798 | ||
3799 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 | |
3800 | echo "configure:3801: checking for --enable-geometry" >&5 | |
3801 | no_cache=0 | |
3802 | # Check whether --enable-geometry or --disable-geometry was given. | |
3803 | if test "${enable_geometry+set}" = set; then | |
3804 | enableval="$enable_geometry" | |
3805 | ||
3806 | if test "$enableval" = yes; then | |
3807 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3808 | else | |
3809 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3810 | fi | |
3811 | ||
3812 | else | |
3813 | ||
3814 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
3815 | if test "x$LINE" != x ; then | |
3816 | eval "DEFAULT_$LINE" | |
3817 | else | |
3818 | no_cache=1 | |
3819 | fi | |
3820 | ||
3821 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
3822 | ||
3823 | fi | |
3824 | ||
3825 | ||
3826 | eval "$ac_cv_use_geometry" | |
3827 | if test "$no_cache" != 1; then | |
3828 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3829 | fi | |
3830 | ||
3831 | if test "$wxUSE_GEOMETRY" = yes; then | |
3832 | echo "$ac_t""yes" 1>&6 | |
3833 | else | |
3834 | echo "$ac_t""no" 1>&6 | |
3835 | fi | |
3836 | ||
3837 | ||
3838 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 | |
3839 | echo "configure:3840: checking for --enable-log" >&5 | |
3840 | no_cache=0 | |
3841 | # Check whether --enable-log or --disable-log was given. | |
3842 | if test "${enable_log+set}" = set; then | |
3843 | enableval="$enable_log" | |
3844 | ||
3845 | if test "$enableval" = yes; then | |
3846 | ac_cv_use_log='wxUSE_LOG=yes' | |
3847 | else | |
3848 | ac_cv_use_log='wxUSE_LOG=no' | |
3849 | fi | |
3850 | ||
3851 | else | |
3852 | ||
3853 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
3854 | if test "x$LINE" != x ; then | |
3855 | eval "DEFAULT_$LINE" | |
3856 | else | |
3857 | no_cache=1 | |
3858 | fi | |
3859 | ||
3860 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
3861 | ||
3862 | fi | |
3863 | ||
3864 | ||
3865 | eval "$ac_cv_use_log" | |
3866 | if test "$no_cache" != 1; then | |
3867 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3868 | fi | |
3869 | ||
3870 | if test "$wxUSE_LOG" = yes; then | |
3871 | echo "$ac_t""yes" 1>&6 | |
3872 | else | |
3873 | echo "$ac_t""no" 1>&6 | |
3874 | fi | |
3875 | ||
3876 | ||
3877 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 | |
3878 | echo "configure:3879: checking for --enable-streams" >&5 | |
3879 | no_cache=0 | |
3880 | # Check whether --enable-streams or --disable-streams was given. | |
3881 | if test "${enable_streams+set}" = set; then | |
3882 | enableval="$enable_streams" | |
3883 | ||
3884 | if test "$enableval" = yes; then | |
3885 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3886 | else | |
3887 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3888 | fi | |
3889 | ||
3890 | else | |
3891 | ||
3892 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
3893 | if test "x$LINE" != x ; then | |
3894 | eval "DEFAULT_$LINE" | |
3895 | else | |
3896 | no_cache=1 | |
3897 | fi | |
3898 | ||
3899 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
3900 | ||
3901 | fi | |
3902 | ||
3903 | ||
3904 | eval "$ac_cv_use_streams" | |
3905 | if test "$no_cache" != 1; then | |
3906 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3907 | fi | |
3908 | ||
3909 | if test "$wxUSE_STREAMS" = yes; then | |
3910 | echo "$ac_t""yes" 1>&6 | |
3911 | else | |
3912 | echo "$ac_t""no" 1>&6 | |
3913 | fi | |
3914 | ||
3915 | ||
3916 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 | |
3917 | echo "configure:3918: checking for --enable-file" >&5 | |
3918 | no_cache=0 | |
3919 | # Check whether --enable-file or --disable-file was given. | |
3920 | if test "${enable_file+set}" = set; then | |
3921 | enableval="$enable_file" | |
3922 | ||
3923 | if test "$enableval" = yes; then | |
3924 | ac_cv_use_file='wxUSE_FILE=yes' | |
3925 | else | |
3926 | ac_cv_use_file='wxUSE_FILE=no' | |
3927 | fi | |
3928 | ||
3929 | else | |
3930 | ||
3931 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
3932 | if test "x$LINE" != x ; then | |
3933 | eval "DEFAULT_$LINE" | |
3934 | else | |
3935 | no_cache=1 | |
3936 | fi | |
3937 | ||
3938 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
3939 | ||
3940 | fi | |
3941 | ||
3942 | ||
3943 | eval "$ac_cv_use_file" | |
3944 | if test "$no_cache" != 1; then | |
3945 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3946 | fi | |
3947 | ||
3948 | if test "$wxUSE_FILE" = yes; then | |
3949 | echo "$ac_t""yes" 1>&6 | |
3950 | else | |
3951 | echo "$ac_t""no" 1>&6 | |
3952 | fi | |
3953 | ||
3954 | ||
3955 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 | |
3956 | echo "configure:3957: checking for --enable-ffile" >&5 | |
3957 | no_cache=0 | |
3958 | # Check whether --enable-ffile or --disable-ffile was given. | |
3959 | if test "${enable_ffile+set}" = set; then | |
3960 | enableval="$enable_ffile" | |
3961 | ||
3962 | if test "$enableval" = yes; then | |
3963 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
3964 | else | |
3965 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
3966 | fi | |
3967 | ||
3968 | else | |
3969 | ||
3970 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
3971 | if test "x$LINE" != x ; then | |
3972 | eval "DEFAULT_$LINE" | |
3973 | else | |
3974 | no_cache=1 | |
3975 | fi | |
3976 | ||
3977 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
3978 | ||
3979 | fi | |
3980 | ||
3981 | ||
3982 | eval "$ac_cv_use_ffile" | |
3983 | if test "$no_cache" != 1; then | |
3984 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
3985 | fi | |
3986 | ||
3987 | if test "$wxUSE_FFILE" = yes; then | |
3988 | echo "$ac_t""yes" 1>&6 | |
3989 | else | |
3990 | echo "$ac_t""no" 1>&6 | |
3991 | fi | |
3992 | ||
3993 | ||
3994 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 | |
3995 | echo "configure:3996: checking for --enable-textbuf" >&5 | |
3996 | no_cache=0 | |
3997 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3998 | if test "${enable_textbuf+set}" = set; then | |
3999 | enableval="$enable_textbuf" | |
4000 | ||
4001 | if test "$enableval" = yes; then | |
4002 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4003 | else | |
4004 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4005 | fi | |
4006 | ||
4007 | else | |
4008 | ||
4009 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4010 | if test "x$LINE" != x ; then | |
4011 | eval "DEFAULT_$LINE" | |
4012 | else | |
4013 | no_cache=1 | |
4014 | fi | |
4015 | ||
4016 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4017 | ||
4018 | fi | |
4019 | ||
4020 | ||
4021 | eval "$ac_cv_use_textbuf" | |
4022 | if test "$no_cache" != 1; then | |
4023 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4024 | fi | |
4025 | ||
4026 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4027 | echo "$ac_t""yes" 1>&6 | |
4028 | else | |
4029 | echo "$ac_t""no" 1>&6 | |
4030 | fi | |
4031 | ||
4032 | ||
4033 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 | |
4034 | echo "configure:4035: checking for --enable-textfile" >&5 | |
4035 | no_cache=0 | |
4036 | # Check whether --enable-textfile or --disable-textfile was given. | |
4037 | if test "${enable_textfile+set}" = set; then | |
4038 | enableval="$enable_textfile" | |
4039 | ||
4040 | if test "$enableval" = yes; then | |
4041 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
4042 | else | |
4043 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
4044 | fi | |
4045 | ||
4046 | else | |
4047 | ||
4048 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
4049 | if test "x$LINE" != x ; then | |
4050 | eval "DEFAULT_$LINE" | |
4051 | else | |
4052 | no_cache=1 | |
4053 | fi | |
4054 | ||
4055 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
4056 | ||
4057 | fi | |
4058 | ||
4059 | ||
4060 | eval "$ac_cv_use_textfile" | |
4061 | if test "$no_cache" != 1; then | |
4062 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
4063 | fi | |
4064 | ||
4065 | if test "$wxUSE_TEXTFILE" = yes; then | |
4066 | echo "$ac_t""yes" 1>&6 | |
4067 | else | |
4068 | echo "$ac_t""no" 1>&6 | |
4069 | fi | |
4070 | ||
4071 | ||
4072 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 | |
4073 | echo "configure:4074: checking for --enable-fontmap" >&5 | |
4074 | no_cache=0 | |
4075 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
4076 | if test "${enable_fontmap+set}" = set; then | |
4077 | enableval="$enable_fontmap" | |
4078 | ||
4079 | if test "$enableval" = yes; then | |
4080 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
4081 | else | |
4082 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
4083 | fi | |
4084 | ||
4085 | else | |
4086 | ||
4087 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
4088 | if test "x$LINE" != x ; then | |
4089 | eval "DEFAULT_$LINE" | |
4090 | else | |
4091 | no_cache=1 | |
4092 | fi | |
4093 | ||
4094 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
4095 | ||
4096 | fi | |
4097 | ||
4098 | ||
4099 | eval "$ac_cv_use_fontmap" | |
4100 | if test "$no_cache" != 1; then | |
4101 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
4102 | fi | |
4103 | ||
4104 | if test "$wxUSE_FONTMAP" = yes; then | |
4105 | echo "$ac_t""yes" 1>&6 | |
4106 | else | |
4107 | echo "$ac_t""no" 1>&6 | |
4108 | fi | |
4109 | ||
4110 | ||
4111 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 | |
4112 | echo "configure:4113: checking for --enable-unicode" >&5 | |
4113 | no_cache=0 | |
4114 | # Check whether --enable-unicode or --disable-unicode was given. | |
4115 | if test "${enable_unicode+set}" = set; then | |
4116 | enableval="$enable_unicode" | |
4117 | ||
4118 | if test "$enableval" = yes; then | |
4119 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4120 | else | |
4121 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4122 | fi | |
4123 | ||
4124 | else | |
4125 | ||
4126 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4127 | if test "x$LINE" != x ; then | |
4128 | eval "DEFAULT_$LINE" | |
4129 | else | |
4130 | no_cache=1 | |
4131 | fi | |
4132 | ||
4133 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4134 | ||
4135 | fi | |
4136 | ||
4137 | ||
4138 | eval "$ac_cv_use_unicode" | |
4139 | if test "$no_cache" != 1; then | |
4140 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4141 | fi | |
4142 | ||
4143 | if test "$wxUSE_UNICODE" = yes; then | |
4144 | echo "$ac_t""yes" 1>&6 | |
4145 | else | |
4146 | echo "$ac_t""no" 1>&6 | |
4147 | fi | |
4148 | ||
4149 | ||
4150 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 | |
4151 | echo "configure:4152: checking for --enable-mslu" >&5 | |
4152 | no_cache=0 | |
4153 | # Check whether --enable-mslu or --disable-mslu was given. | |
4154 | if test "${enable_mslu+set}" = set; then | |
4155 | enableval="$enable_mslu" | |
4156 | ||
4157 | if test "$enableval" = yes; then | |
4158 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4159 | else | |
4160 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4161 | fi | |
4162 | ||
4163 | else | |
4164 | ||
4165 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4166 | if test "x$LINE" != x ; then | |
4167 | eval "DEFAULT_$LINE" | |
4168 | else | |
4169 | no_cache=1 | |
4170 | fi | |
4171 | ||
4172 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4173 | ||
4174 | fi | |
4175 | ||
4176 | ||
4177 | eval "$ac_cv_use_mslu" | |
4178 | if test "$no_cache" != 1; then | |
4179 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4180 | fi | |
4181 | ||
4182 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4183 | echo "$ac_t""yes" 1>&6 | |
4184 | else | |
4185 | echo "$ac_t""no" 1>&6 | |
4186 | fi | |
4187 | ||
4188 | ||
4189 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 | |
4190 | echo "configure:4191: checking for --enable-wxprintfv" >&5 | |
4191 | no_cache=0 | |
4192 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4193 | if test "${enable_wxprintfv+set}" = set; then | |
4194 | enableval="$enable_wxprintfv" | |
4195 | ||
4196 | if test "$enableval" = yes; then | |
4197 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
4198 | else | |
4199 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4200 | fi | |
4201 | ||
4202 | else | |
4203 | ||
4204 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
4205 | if test "x$LINE" != x ; then | |
4206 | eval "DEFAULT_$LINE" | |
4207 | else | |
4208 | no_cache=1 | |
4209 | fi | |
4210 | ||
4211 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
4212 | ||
4213 | fi | |
4214 | ||
4215 | ||
4216 | eval "$ac_cv_use_wxprintfv" | |
4217 | if test "$no_cache" != 1; then | |
4218 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4219 | fi | |
4220 | ||
4221 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
4222 | echo "$ac_t""yes" 1>&6 | |
4223 | else | |
4224 | echo "$ac_t""no" 1>&6 | |
4225 | fi | |
4226 | ||
4227 | ||
4228 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 | |
4229 | echo "configure:4230: checking for --enable-std_iostreams" >&5 | |
4230 | no_cache=0 | |
4231 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4232 | if test "${enable_std_iostreams+set}" = set; then | |
4233 | enableval="$enable_std_iostreams" | |
4234 | ||
4235 | if test "$enableval" = yes; then | |
4236 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4237 | else | |
4238 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4239 | fi | |
4240 | ||
4241 | else | |
4242 | ||
4243 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
4244 | if test "x$LINE" != x ; then | |
4245 | eval "DEFAULT_$LINE" | |
4246 | else | |
4247 | no_cache=1 | |
4248 | fi | |
4249 | ||
4250 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
4251 | ||
4252 | fi | |
4253 | ||
4254 | ||
4255 | eval "$ac_cv_use_std_iostreams" | |
4256 | if test "$no_cache" != 1; then | |
4257 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4258 | fi | |
4259 | ||
4260 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
4261 | echo "$ac_t""yes" 1>&6 | |
4262 | else | |
4263 | echo "$ac_t""no" 1>&6 | |
4264 | fi | |
4265 | ||
4266 | ||
4267 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 | |
4268 | echo "configure:4269: checking for --enable-filesystem" >&5 | |
4269 | no_cache=0 | |
4270 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4271 | if test "${enable_filesystem+set}" = set; then | |
4272 | enableval="$enable_filesystem" | |
4273 | ||
4274 | if test "$enableval" = yes; then | |
4275 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4276 | else | |
4277 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4278 | fi | |
4279 | ||
4280 | else | |
4281 | ||
4282 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
4283 | if test "x$LINE" != x ; then | |
4284 | eval "DEFAULT_$LINE" | |
4285 | else | |
4286 | no_cache=1 | |
4287 | fi | |
4288 | ||
4289 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
4290 | ||
4291 | fi | |
4292 | ||
4293 | ||
4294 | eval "$ac_cv_use_filesystem" | |
4295 | if test "$no_cache" != 1; then | |
4296 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4297 | fi | |
4298 | ||
4299 | if test "$wxUSE_FILESYSTEM" = yes; then | |
4300 | echo "$ac_t""yes" 1>&6 | |
4301 | else | |
4302 | echo "$ac_t""no" 1>&6 | |
4303 | fi | |
4304 | ||
4305 | ||
4306 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 | |
4307 | echo "configure:4308: checking for --enable-fs_inet" >&5 | |
4308 | no_cache=0 | |
4309 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4310 | if test "${enable_fs_inet+set}" = set; then | |
4311 | enableval="$enable_fs_inet" | |
4312 | ||
4313 | if test "$enableval" = yes; then | |
4314 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4315 | else | |
4316 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4317 | fi | |
4318 | ||
4319 | else | |
4320 | ||
4321 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
4322 | if test "x$LINE" != x ; then | |
4323 | eval "DEFAULT_$LINE" | |
4324 | else | |
4325 | no_cache=1 | |
4326 | fi | |
4327 | ||
4328 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
4329 | ||
4330 | fi | |
4331 | ||
4332 | ||
4333 | eval "$ac_cv_use_fs_inet" | |
4334 | if test "$no_cache" != 1; then | |
4335 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4336 | fi | |
4337 | ||
4338 | if test "$wxUSE_FS_INET" = yes; then | |
4339 | echo "$ac_t""yes" 1>&6 | |
4340 | else | |
4341 | echo "$ac_t""no" 1>&6 | |
4342 | fi | |
4343 | ||
4344 | ||
4345 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 | |
4346 | echo "configure:4347: checking for --enable-fs_zip" >&5 | |
4347 | no_cache=0 | |
4348 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4349 | if test "${enable_fs_zip+set}" = set; then | |
4350 | enableval="$enable_fs_zip" | |
4351 | ||
4352 | if test "$enableval" = yes; then | |
4353 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4354 | else | |
4355 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4356 | fi | |
4357 | ||
4358 | else | |
4359 | ||
4360 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
4361 | if test "x$LINE" != x ; then | |
4362 | eval "DEFAULT_$LINE" | |
4363 | else | |
4364 | no_cache=1 | |
4365 | fi | |
4366 | ||
4367 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
4368 | ||
4369 | fi | |
4370 | ||
4371 | ||
4372 | eval "$ac_cv_use_fs_zip" | |
4373 | if test "$no_cache" != 1; then | |
4374 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4375 | fi | |
4376 | ||
4377 | if test "$wxUSE_FS_ZIP" = yes; then | |
4378 | echo "$ac_t""yes" 1>&6 | |
4379 | else | |
4380 | echo "$ac_t""no" 1>&6 | |
4381 | fi | |
4382 | ||
4383 | ||
4384 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 | |
4385 | echo "configure:4386: checking for --enable-zipstream" >&5 | |
4386 | no_cache=0 | |
4387 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4388 | if test "${enable_zipstream+set}" = set; then | |
4389 | enableval="$enable_zipstream" | |
4390 | ||
4391 | if test "$enableval" = yes; then | |
4392 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4393 | else | |
4394 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4395 | fi | |
4396 | ||
4397 | else | |
4398 | ||
4399 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
4400 | if test "x$LINE" != x ; then | |
4401 | eval "DEFAULT_$LINE" | |
4402 | else | |
4403 | no_cache=1 | |
4404 | fi | |
4405 | ||
4406 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
4407 | ||
4408 | fi | |
4409 | ||
4410 | ||
4411 | eval "$ac_cv_use_zipstream" | |
4412 | if test "$no_cache" != 1; then | |
4413 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4414 | fi | |
4415 | ||
4416 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
4417 | echo "$ac_t""yes" 1>&6 | |
4418 | else | |
4419 | echo "$ac_t""no" 1>&6 | |
4420 | fi | |
4421 | ||
4422 | ||
4423 | ||
4424 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
4425 | echo "configure:4426: checking for --enable-catch_segvs" >&5 | |
4426 | no_cache=0 | |
4427 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4428 | if test "${enable_catch_segvs+set}" = set; then | |
4429 | enableval="$enable_catch_segvs" | |
4430 | ||
4431 | if test "$enableval" = yes; then | |
4432 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4433 | else | |
4434 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4435 | fi | |
4436 | ||
4437 | else | |
4438 | ||
4439 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4440 | if test "x$LINE" != x ; then | |
4441 | eval "DEFAULT_$LINE" | |
4442 | else | |
4443 | no_cache=1 | |
4444 | fi | |
4445 | ||
4446 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4447 | ||
4448 | fi | |
4449 | ||
4450 | ||
4451 | eval "$ac_cv_use_catch_segvs" | |
4452 | if test "$no_cache" != 1; then | |
4453 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4454 | fi | |
4455 | ||
4456 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4457 | echo "$ac_t""yes" 1>&6 | |
4458 | else | |
4459 | echo "$ac_t""no" 1>&6 | |
4460 | fi | |
4461 | ||
4462 | ||
4463 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 | |
4464 | echo "configure:4465: checking for --enable-snglinst" >&5 | |
4465 | no_cache=0 | |
4466 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4467 | if test "${enable_snglinst+set}" = set; then | |
4468 | enableval="$enable_snglinst" | |
4469 | ||
4470 | if test "$enableval" = yes; then | |
4471 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4472 | else | |
4473 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4474 | fi | |
4475 | ||
4476 | else | |
4477 | ||
4478 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
4479 | if test "x$LINE" != x ; then | |
4480 | eval "DEFAULT_$LINE" | |
4481 | else | |
4482 | no_cache=1 | |
4483 | fi | |
4484 | ||
4485 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
4486 | ||
4487 | fi | |
4488 | ||
4489 | ||
4490 | eval "$ac_cv_use_snglinst" | |
4491 | if test "$no_cache" != 1; then | |
4492 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4493 | fi | |
4494 | ||
4495 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
4496 | echo "$ac_t""yes" 1>&6 | |
4497 | else | |
4498 | echo "$ac_t""no" 1>&6 | |
4499 | fi | |
4500 | ||
4501 | ||
4502 | ||
4503 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 | |
4504 | echo "configure:4505: checking for --enable-mimetype" >&5 | |
4505 | no_cache=0 | |
4506 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4507 | if test "${enable_mimetype+set}" = set; then | |
4508 | enableval="$enable_mimetype" | |
4509 | ||
4510 | if test "$enableval" = yes; then | |
4511 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4512 | else | |
4513 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4514 | fi | |
4515 | ||
4516 | else | |
4517 | ||
4518 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4519 | if test "x$LINE" != x ; then | |
4520 | eval "DEFAULT_$LINE" | |
4521 | else | |
4522 | no_cache=1 | |
4523 | fi | |
4524 | ||
4525 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4526 | ||
4527 | fi | |
4528 | ||
4529 | ||
4530 | eval "$ac_cv_use_mimetype" | |
4531 | if test "$no_cache" != 1; then | |
4532 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4533 | fi | |
4534 | ||
4535 | if test "$wxUSE_MIMETYPE" = yes; then | |
4536 | echo "$ac_t""yes" 1>&6 | |
4537 | else | |
4538 | echo "$ac_t""no" 1>&6 | |
4539 | fi | |
4540 | ||
4541 | ||
4542 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 | |
4543 | echo "configure:4544: checking for --enable-system_options" >&5 | |
4544 | no_cache=0 | |
4545 | # Check whether --enable-system_options or --disable-system_options was given. | |
4546 | if test "${enable_system_options+set}" = set; then | |
4547 | enableval="$enable_system_options" | |
4548 | ||
4549 | if test "$enableval" = yes; then | |
4550 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4551 | else | |
4552 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4553 | fi | |
4554 | ||
4555 | else | |
4556 | ||
4557 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4558 | if test "x$LINE" != x ; then | |
4559 | eval "DEFAULT_$LINE" | |
4560 | else | |
4561 | no_cache=1 | |
4562 | fi | |
4563 | ||
4564 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4565 | ||
4566 | fi | |
4567 | ||
4568 | ||
4569 | eval "$ac_cv_use_system_options" | |
4570 | if test "$no_cache" != 1; then | |
4571 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4572 | fi | |
4573 | ||
4574 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4575 | echo "$ac_t""yes" 1>&6 | |
4576 | else | |
4577 | echo "$ac_t""no" 1>&6 | |
4578 | fi | |
4579 | ||
4580 | ||
4581 | ||
4582 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 | |
4583 | echo "configure:4584: checking for --enable-url" >&5 | |
4584 | no_cache=0 | |
4585 | # Check whether --enable-url or --disable-url was given. | |
4586 | if test "${enable_url+set}" = set; then | |
4587 | enableval="$enable_url" | |
4588 | ||
4589 | if test "$enableval" = yes; then | |
4590 | ac_cv_use_url='wxUSE_URL=yes' | |
4591 | else | |
4592 | ac_cv_use_url='wxUSE_URL=no' | |
4593 | fi | |
4594 | ||
4595 | else | |
4596 | ||
4597 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4598 | if test "x$LINE" != x ; then | |
4599 | eval "DEFAULT_$LINE" | |
4600 | else | |
4601 | no_cache=1 | |
4602 | fi | |
4603 | ||
4604 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4605 | ||
4606 | fi | |
4607 | ||
4608 | ||
4609 | eval "$ac_cv_use_url" | |
4610 | if test "$no_cache" != 1; then | |
4611 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4612 | fi | |
4613 | ||
4614 | if test "$wxUSE_URL" = yes; then | |
4615 | echo "$ac_t""yes" 1>&6 | |
4616 | else | |
4617 | echo "$ac_t""no" 1>&6 | |
4618 | fi | |
4619 | ||
4620 | ||
4621 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
4622 | echo "configure:4623: checking for --enable-protocol" >&5 | |
4623 | no_cache=0 | |
4624 | # Check whether --enable-protocol or --disable-protocol was given. | |
4625 | if test "${enable_protocol+set}" = set; then | |
4626 | enableval="$enable_protocol" | |
4627 | ||
4628 | if test "$enableval" = yes; then | |
4629 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4630 | else | |
4631 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4632 | fi | |
4633 | ||
4634 | else | |
4635 | ||
4636 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4637 | if test "x$LINE" != x ; then | |
4638 | eval "DEFAULT_$LINE" | |
4639 | else | |
4640 | no_cache=1 | |
4641 | fi | |
4642 | ||
4643 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4644 | ||
4645 | fi | |
4646 | ||
4647 | ||
4648 | eval "$ac_cv_use_protocol" | |
4649 | if test "$no_cache" != 1; then | |
4650 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4651 | fi | |
4652 | ||
4653 | if test "$wxUSE_PROTOCOL" = yes; then | |
4654 | echo "$ac_t""yes" 1>&6 | |
4655 | else | |
4656 | echo "$ac_t""no" 1>&6 | |
4657 | fi | |
4658 | ||
4659 | ||
4660 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 | |
4661 | echo "configure:4662: checking for --enable-protocol_http" >&5 | |
4662 | no_cache=0 | |
4663 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4664 | if test "${enable_protocol_http+set}" = set; then | |
4665 | enableval="$enable_protocol_http" | |
4666 | ||
4667 | if test "$enableval" = yes; then | |
4668 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4669 | else | |
4670 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4671 | fi | |
4672 | ||
4673 | else | |
4674 | ||
4675 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4676 | if test "x$LINE" != x ; then | |
4677 | eval "DEFAULT_$LINE" | |
4678 | else | |
4679 | no_cache=1 | |
4680 | fi | |
4681 | ||
4682 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4683 | ||
4684 | fi | |
4685 | ||
4686 | ||
4687 | eval "$ac_cv_use_protocol_http" | |
4688 | if test "$no_cache" != 1; then | |
4689 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4690 | fi | |
4691 | ||
4692 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4693 | echo "$ac_t""yes" 1>&6 | |
4694 | else | |
4695 | echo "$ac_t""no" 1>&6 | |
4696 | fi | |
4697 | ||
4698 | ||
4699 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 | |
4700 | echo "configure:4701: checking for --enable-protocol_ftp" >&5 | |
4701 | no_cache=0 | |
4702 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4703 | if test "${enable_protocol_ftp+set}" = set; then | |
4704 | enableval="$enable_protocol_ftp" | |
4705 | ||
4706 | if test "$enableval" = yes; then | |
4707 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4708 | else | |
4709 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4710 | fi | |
4711 | ||
4712 | else | |
4713 | ||
4714 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4715 | if test "x$LINE" != x ; then | |
4716 | eval "DEFAULT_$LINE" | |
4717 | else | |
4718 | no_cache=1 | |
4719 | fi | |
4720 | ||
4721 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4722 | ||
4723 | fi | |
4724 | ||
4725 | ||
4726 | eval "$ac_cv_use_protocol_ftp" | |
4727 | if test "$no_cache" != 1; then | |
4728 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4729 | fi | |
4730 | ||
4731 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4732 | echo "$ac_t""yes" 1>&6 | |
4733 | else | |
4734 | echo "$ac_t""no" 1>&6 | |
4735 | fi | |
4736 | ||
4737 | ||
4738 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 | |
4739 | echo "configure:4740: checking for --enable-protocol_file" >&5 | |
4740 | no_cache=0 | |
4741 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4742 | if test "${enable_protocol_file+set}" = set; then | |
4743 | enableval="$enable_protocol_file" | |
4744 | ||
4745 | if test "$enableval" = yes; then | |
4746 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4747 | else | |
4748 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4749 | fi | |
4750 | ||
4751 | else | |
4752 | ||
4753 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4754 | if test "x$LINE" != x ; then | |
4755 | eval "DEFAULT_$LINE" | |
4756 | else | |
4757 | no_cache=1 | |
4758 | fi | |
4759 | ||
4760 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4761 | ||
4762 | fi | |
4763 | ||
4764 | ||
4765 | eval "$ac_cv_use_protocol_file" | |
4766 | if test "$no_cache" != 1; then | |
4767 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4768 | fi | |
4769 | ||
4770 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4771 | echo "$ac_t""yes" 1>&6 | |
4772 | else | |
4773 | echo "$ac_t""no" 1>&6 | |
4774 | fi | |
4775 | ||
4776 | ||
4777 | ||
4778 | ||
4779 | ||
4780 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
4781 | echo "configure:4782: checking for --enable-threads" >&5 | |
4782 | no_cache=0 | |
4783 | # Check whether --enable-threads or --disable-threads was given. | |
4784 | if test "${enable_threads+set}" = set; then | |
4785 | enableval="$enable_threads" | |
4786 | ||
4787 | if test "$enableval" = yes; then | |
4788 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4789 | else | |
4790 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4791 | fi | |
4792 | ||
4793 | else | |
4794 | ||
4795 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
4796 | if test "x$LINE" != x ; then | |
4797 | eval "DEFAULT_$LINE" | |
4798 | else | |
4799 | no_cache=1 | |
4800 | fi | |
4801 | ||
4802 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
4803 | ||
4804 | fi | |
4805 | ||
4806 | ||
4807 | eval "$ac_cv_use_threads" | |
4808 | if test "$no_cache" != 1; then | |
4809 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4810 | fi | |
4811 | ||
4812 | if test "$wxUSE_THREADS" = yes; then | |
4813 | echo "$ac_t""yes" 1>&6 | |
4814 | else | |
4815 | echo "$ac_t""no" 1>&6 | |
4816 | fi | |
4817 | ||
4818 | ||
4819 | if test "$wxUSE_GUI" = "yes"; then | |
4820 | ||
4821 | ||
4822 | ||
4823 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
4824 | echo "configure:4825: checking for --enable-docview" >&5 | |
4825 | no_cache=0 | |
4826 | # Check whether --enable-docview or --disable-docview was given. | |
4827 | if test "${enable_docview+set}" = set; then | |
4828 | enableval="$enable_docview" | |
4829 | ||
4830 | if test "$enableval" = yes; then | |
4831 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4832 | else | |
4833 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4834 | fi | |
4835 | ||
4836 | else | |
4837 | ||
4838 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
4839 | if test "x$LINE" != x ; then | |
4840 | eval "DEFAULT_$LINE" | |
4841 | else | |
4842 | no_cache=1 | |
4843 | fi | |
4844 | ||
4845 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
4846 | ||
4847 | fi | |
4848 | ||
4849 | ||
4850 | eval "$ac_cv_use_docview" | |
4851 | if test "$no_cache" != 1; then | |
4852 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4853 | fi | |
4854 | ||
4855 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
4856 | echo "$ac_t""yes" 1>&6 | |
4857 | else | |
4858 | echo "$ac_t""no" 1>&6 | |
4859 | fi | |
4860 | ||
4861 | ||
4862 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 | |
4863 | echo "configure:4864: checking for --enable-help" >&5 | |
4864 | no_cache=0 | |
4865 | # Check whether --enable-help or --disable-help was given. | |
4866 | if test "${enable_help+set}" = set; then | |
4867 | enableval="$enable_help" | |
4868 | ||
4869 | if test "$enableval" = yes; then | |
4870 | ac_cv_use_help='wxUSE_HELP=yes' | |
4871 | else | |
4872 | ac_cv_use_help='wxUSE_HELP=no' | |
4873 | fi | |
4874 | ||
4875 | else | |
4876 | ||
4877 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
4878 | if test "x$LINE" != x ; then | |
4879 | eval "DEFAULT_$LINE" | |
4880 | else | |
4881 | no_cache=1 | |
4882 | fi | |
4883 | ||
4884 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
4885 | ||
4886 | fi | |
4887 | ||
4888 | ||
4889 | eval "$ac_cv_use_help" | |
4890 | if test "$no_cache" != 1; then | |
4891 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4892 | fi | |
4893 | ||
4894 | if test "$wxUSE_HELP" = yes; then | |
4895 | echo "$ac_t""yes" 1>&6 | |
4896 | else | |
4897 | echo "$ac_t""no" 1>&6 | |
4898 | fi | |
4899 | ||
4900 | ||
4901 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 | |
4902 | echo "configure:4903: checking for --enable-mshtmlhelp" >&5 | |
4903 | no_cache=0 | |
4904 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4905 | if test "${enable_mshtmlhelp+set}" = set; then | |
4906 | enableval="$enable_mshtmlhelp" | |
4907 | ||
4908 | if test "$enableval" = yes; then | |
4909 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4910 | else | |
4911 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4912 | fi | |
4913 | ||
4914 | else | |
4915 | ||
4916 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4917 | if test "x$LINE" != x ; then | |
4918 | eval "DEFAULT_$LINE" | |
4919 | else | |
4920 | no_cache=1 | |
4921 | fi | |
4922 | ||
4923 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4924 | ||
4925 | fi | |
4926 | ||
4927 | ||
4928 | eval "$ac_cv_use_mshtmlhelp" | |
4929 | if test "$no_cache" != 1; then | |
4930 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4931 | fi | |
4932 | ||
4933 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4934 | echo "$ac_t""yes" 1>&6 | |
4935 | else | |
4936 | echo "$ac_t""no" 1>&6 | |
4937 | fi | |
4938 | ||
4939 | ||
4940 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 | |
4941 | echo "configure:4942: checking for --enable-html" >&5 | |
4942 | no_cache=0 | |
4943 | # Check whether --enable-html or --disable-html was given. | |
4944 | if test "${enable_html+set}" = set; then | |
4945 | enableval="$enable_html" | |
4946 | ||
4947 | if test "$enableval" = yes; then | |
4948 | ac_cv_use_html='wxUSE_HTML=yes' | |
4949 | else | |
4950 | ac_cv_use_html='wxUSE_HTML=no' | |
4951 | fi | |
4952 | ||
4953 | else | |
4954 | ||
4955 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4956 | if test "x$LINE" != x ; then | |
4957 | eval "DEFAULT_$LINE" | |
4958 | else | |
4959 | no_cache=1 | |
4960 | fi | |
4961 | ||
4962 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4963 | ||
4964 | fi | |
4965 | ||
4966 | ||
4967 | eval "$ac_cv_use_html" | |
4968 | if test "$no_cache" != 1; then | |
4969 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4970 | fi | |
4971 | ||
4972 | if test "$wxUSE_HTML" = yes; then | |
4973 | echo "$ac_t""yes" 1>&6 | |
4974 | else | |
4975 | echo "$ac_t""no" 1>&6 | |
4976 | fi | |
4977 | ||
4978 | ||
4979 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
4980 | echo "configure:4981: checking for --enable-htmlhelp" >&5 | |
4981 | no_cache=0 | |
4982 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4983 | if test "${enable_htmlhelp+set}" = set; then | |
4984 | enableval="$enable_htmlhelp" | |
4985 | ||
4986 | if test "$enableval" = yes; then | |
4987 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4988 | else | |
4989 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4990 | fi | |
4991 | ||
4992 | else | |
4993 | ||
4994 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4995 | if test "x$LINE" != x ; then | |
4996 | eval "DEFAULT_$LINE" | |
4997 | else | |
4998 | no_cache=1 | |
4999 | fi | |
5000 | ||
5001 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
5002 | ||
5003 | fi | |
5004 | ||
5005 | ||
5006 | eval "$ac_cv_use_htmlhelp" | |
5007 | if test "$no_cache" != 1; then | |
5008 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5009 | fi | |
5010 | ||
5011 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
5012 | echo "$ac_t""yes" 1>&6 | |
5013 | else | |
5014 | echo "$ac_t""no" 1>&6 | |
5015 | fi | |
5016 | ||
5017 | ||
5018 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 | |
5019 | echo "configure:5020: checking for --enable-constraints" >&5 | |
5020 | no_cache=0 | |
5021 | # Check whether --enable-constraints or --disable-constraints was given. | |
5022 | if test "${enable_constraints+set}" = set; then | |
5023 | enableval="$enable_constraints" | |
5024 | ||
5025 | if test "$enableval" = yes; then | |
5026 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5027 | else | |
5028 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5029 | fi | |
5030 | ||
5031 | else | |
5032 | ||
5033 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
5034 | if test "x$LINE" != x ; then | |
5035 | eval "DEFAULT_$LINE" | |
5036 | else | |
5037 | no_cache=1 | |
5038 | fi | |
5039 | ||
5040 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
5041 | ||
5042 | fi | |
5043 | ||
5044 | ||
5045 | eval "$ac_cv_use_constraints" | |
5046 | if test "$no_cache" != 1; then | |
5047 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5048 | fi | |
5049 | ||
5050 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
5051 | echo "$ac_t""yes" 1>&6 | |
5052 | else | |
5053 | echo "$ac_t""no" 1>&6 | |
5054 | fi | |
5055 | ||
5056 | ||
5057 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 | |
5058 | echo "configure:5059: checking for --enable-printarch" >&5 | |
5059 | no_cache=0 | |
5060 | # Check whether --enable-printarch or --disable-printarch was given. | |
5061 | if test "${enable_printarch+set}" = set; then | |
5062 | enableval="$enable_printarch" | |
5063 | ||
5064 | if test "$enableval" = yes; then | |
5065 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5066 | else | |
5067 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5068 | fi | |
5069 | ||
5070 | else | |
5071 | ||
5072 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
5073 | if test "x$LINE" != x ; then | |
5074 | eval "DEFAULT_$LINE" | |
5075 | else | |
5076 | no_cache=1 | |
5077 | fi | |
5078 | ||
5079 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
5080 | ||
5081 | fi | |
5082 | ||
5083 | ||
5084 | eval "$ac_cv_use_printarch" | |
5085 | if test "$no_cache" != 1; then | |
5086 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5087 | fi | |
5088 | ||
5089 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
5090 | echo "$ac_t""yes" 1>&6 | |
5091 | else | |
5092 | echo "$ac_t""no" 1>&6 | |
5093 | fi | |
5094 | ||
5095 | ||
5096 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 | |
5097 | echo "configure:5098: checking for --enable-mdi" >&5 | |
5098 | no_cache=0 | |
5099 | # Check whether --enable-mdi or --disable-mdi was given. | |
5100 | if test "${enable_mdi+set}" = set; then | |
5101 | enableval="$enable_mdi" | |
5102 | ||
5103 | if test "$enableval" = yes; then | |
5104 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5105 | else | |
5106 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5107 | fi | |
5108 | ||
5109 | else | |
5110 | ||
5111 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
5112 | if test "x$LINE" != x ; then | |
5113 | eval "DEFAULT_$LINE" | |
5114 | else | |
5115 | no_cache=1 | |
5116 | fi | |
5117 | ||
5118 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
5119 | ||
5120 | fi | |
5121 | ||
5122 | ||
5123 | eval "$ac_cv_use_mdi" | |
5124 | if test "$no_cache" != 1; then | |
5125 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5126 | fi | |
5127 | ||
5128 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
5129 | echo "$ac_t""yes" 1>&6 | |
5130 | else | |
5131 | echo "$ac_t""no" 1>&6 | |
5132 | fi | |
5133 | ||
5134 | ||
5135 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 | |
5136 | echo "configure:5137: checking for --enable-loggui" >&5 | |
5137 | no_cache=0 | |
5138 | # Check whether --enable-loggui or --disable-loggui was given. | |
5139 | if test "${enable_loggui+set}" = set; then | |
5140 | enableval="$enable_loggui" | |
5141 | ||
5142 | if test "$enableval" = yes; then | |
5143 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5144 | else | |
5145 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5146 | fi | |
5147 | ||
5148 | else | |
5149 | ||
5150 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5151 | if test "x$LINE" != x ; then | |
5152 | eval "DEFAULT_$LINE" | |
5153 | else | |
5154 | no_cache=1 | |
5155 | fi | |
5156 | ||
5157 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5158 | ||
5159 | fi | |
5160 | ||
5161 | ||
5162 | eval "$ac_cv_use_loggui" | |
5163 | if test "$no_cache" != 1; then | |
5164 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5165 | fi | |
5166 | ||
5167 | if test "$wxUSE_LOGGUI" = yes; then | |
5168 | echo "$ac_t""yes" 1>&6 | |
5169 | else | |
5170 | echo "$ac_t""no" 1>&6 | |
5171 | fi | |
5172 | ||
5173 | ||
5174 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
5175 | echo "configure:5176: checking for --enable-logwin" >&5 | |
5176 | no_cache=0 | |
5177 | # Check whether --enable-logwin or --disable-logwin was given. | |
5178 | if test "${enable_logwin+set}" = set; then | |
5179 | enableval="$enable_logwin" | |
5180 | ||
5181 | if test "$enableval" = yes; then | |
5182 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5183 | else | |
5184 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5185 | fi | |
5186 | ||
5187 | else | |
5188 | ||
5189 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5190 | if test "x$LINE" != x ; then | |
5191 | eval "DEFAULT_$LINE" | |
5192 | else | |
5193 | no_cache=1 | |
5194 | fi | |
5195 | ||
5196 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5197 | ||
5198 | fi | |
5199 | ||
5200 | ||
5201 | eval "$ac_cv_use_logwin" | |
5202 | if test "$no_cache" != 1; then | |
5203 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5204 | fi | |
5205 | ||
5206 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5207 | echo "$ac_t""yes" 1>&6 | |
5208 | else | |
5209 | echo "$ac_t""no" 1>&6 | |
5210 | fi | |
5211 | ||
5212 | ||
5213 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 | |
5214 | echo "configure:5215: checking for --enable-logdialog" >&5 | |
5215 | no_cache=0 | |
5216 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5217 | if test "${enable_logdialog+set}" = set; then | |
5218 | enableval="$enable_logdialog" | |
5219 | ||
5220 | if test "$enableval" = yes; then | |
5221 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5222 | else | |
5223 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5224 | fi | |
5225 | ||
5226 | else | |
5227 | ||
5228 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5229 | if test "x$LINE" != x ; then | |
5230 | eval "DEFAULT_$LINE" | |
5231 | else | |
5232 | no_cache=1 | |
5233 | fi | |
5234 | ||
5235 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5236 | ||
5237 | fi | |
5238 | ||
5239 | ||
5240 | eval "$ac_cv_use_logdialog" | |
5241 | if test "$no_cache" != 1; then | |
5242 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5243 | fi | |
5244 | ||
5245 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5246 | echo "$ac_t""yes" 1>&6 | |
5247 | else | |
5248 | echo "$ac_t""no" 1>&6 | |
5249 | fi | |
5250 | ||
5251 | ||
5252 | ||
5253 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 | |
5254 | echo "configure:5255: checking for --enable-postscript" >&5 | |
5255 | no_cache=0 | |
5256 | # Check whether --enable-postscript or --disable-postscript was given. | |
5257 | if test "${enable_postscript+set}" = set; then | |
5258 | enableval="$enable_postscript" | |
5259 | ||
5260 | if test "$enableval" = yes; then | |
5261 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5262 | else | |
5263 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5264 | fi | |
5265 | ||
5266 | else | |
5267 | ||
5268 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
5269 | if test "x$LINE" != x ; then | |
5270 | eval "DEFAULT_$LINE" | |
5271 | else | |
5272 | no_cache=1 | |
5273 | fi | |
5274 | ||
5275 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
5276 | ||
5277 | fi | |
5278 | ||
5279 | ||
5280 | eval "$ac_cv_use_postscript" | |
5281 | if test "$no_cache" != 1; then | |
5282 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5283 | fi | |
5284 | ||
5285 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
5286 | echo "$ac_t""yes" 1>&6 | |
5287 | else | |
5288 | echo "$ac_t""no" 1>&6 | |
5289 | fi | |
5290 | ||
5291 | ||
5292 | ||
5293 | ||
5294 | ||
5295 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 | |
5296 | echo "configure:5297: checking for --enable-prologio" >&5 | |
5297 | no_cache=0 | |
5298 | # Check whether --enable-prologio or --disable-prologio was given. | |
5299 | if test "${enable_prologio+set}" = set; then | |
5300 | enableval="$enable_prologio" | |
5301 | ||
5302 | if test "$enableval" = yes; then | |
5303 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5304 | else | |
5305 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5306 | fi | |
5307 | ||
5308 | else | |
5309 | ||
5310 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
5311 | if test "x$LINE" != x ; then | |
5312 | eval "DEFAULT_$LINE" | |
5313 | else | |
5314 | no_cache=1 | |
5315 | fi | |
5316 | ||
5317 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
5318 | ||
5319 | fi | |
5320 | ||
5321 | ||
5322 | eval "$ac_cv_use_prologio" | |
5323 | if test "$no_cache" != 1; then | |
5324 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5325 | fi | |
5326 | ||
5327 | if test "$wxUSE_PROLOGIO" = yes; then | |
5328 | echo "$ac_t""yes" 1>&6 | |
5329 | else | |
5330 | echo "$ac_t""no" 1>&6 | |
5331 | fi | |
5332 | ||
5333 | ||
5334 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 | |
5335 | echo "configure:5336: checking for --enable-resources" >&5 | |
5336 | no_cache=0 | |
5337 | # Check whether --enable-resources or --disable-resources was given. | |
5338 | if test "${enable_resources+set}" = set; then | |
5339 | enableval="$enable_resources" | |
5340 | ||
5341 | if test "$enableval" = yes; then | |
5342 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5343 | else | |
5344 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5345 | fi | |
5346 | ||
5347 | else | |
5348 | ||
5349 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
5350 | if test "x$LINE" != x ; then | |
5351 | eval "DEFAULT_$LINE" | |
5352 | else | |
5353 | no_cache=1 | |
5354 | fi | |
5355 | ||
5356 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
5357 | ||
5358 | fi | |
5359 | ||
5360 | ||
5361 | eval "$ac_cv_use_resources" | |
5362 | if test "$no_cache" != 1; then | |
5363 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5364 | fi | |
5365 | ||
5366 | if test "$wxUSE_RESOURCES" = yes; then | |
5367 | echo "$ac_t""yes" 1>&6 | |
5368 | else | |
5369 | echo "$ac_t""no" 1>&6 | |
5370 | fi | |
5371 | ||
5372 | ||
5373 | ||
5374 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
5375 | echo "configure:5376: checking for --enable-xresources" >&5 | |
5376 | no_cache=0 | |
5377 | # Check whether --enable-xresources or --disable-xresources was given. | |
5378 | if test "${enable_xresources+set}" = set; then | |
5379 | enableval="$enable_xresources" | |
5380 | ||
5381 | if test "$enableval" = yes; then | |
5382 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5383 | else | |
5384 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5385 | fi | |
5386 | ||
5387 | else | |
5388 | ||
5389 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
5390 | if test "x$LINE" != x ; then | |
5391 | eval "DEFAULT_$LINE" | |
5392 | else | |
5393 | no_cache=1 | |
5394 | fi | |
5395 | ||
5396 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
5397 | ||
5398 | fi | |
5399 | ||
5400 | ||
5401 | eval "$ac_cv_use_xresources" | |
5402 | if test "$no_cache" != 1; then | |
5403 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5404 | fi | |
5405 | ||
5406 | if test "$wxUSE_X_RESOURCES" = yes; then | |
5407 | echo "$ac_t""yes" 1>&6 | |
5408 | else | |
5409 | echo "$ac_t""no" 1>&6 | |
5410 | fi | |
5411 | ||
5412 | ||
5413 | ||
5414 | ||
5415 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
5416 | echo "configure:5417: checking for --enable-clipboard" >&5 | |
5417 | no_cache=0 | |
5418 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5419 | if test "${enable_clipboard+set}" = set; then | |
5420 | enableval="$enable_clipboard" | |
5421 | ||
5422 | if test "$enableval" = yes; then | |
5423 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5424 | else | |
5425 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5426 | fi | |
5427 | ||
5428 | else | |
5429 | ||
5430 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
5431 | if test "x$LINE" != x ; then | |
5432 | eval "DEFAULT_$LINE" | |
5433 | else | |
5434 | no_cache=1 | |
5435 | fi | |
5436 | ||
5437 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
5438 | ||
5439 | fi | |
5440 | ||
5441 | ||
5442 | eval "$ac_cv_use_clipboard" | |
5443 | if test "$no_cache" != 1; then | |
5444 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5445 | fi | |
5446 | ||
5447 | if test "$wxUSE_CLIPBOARD" = yes; then | |
5448 | echo "$ac_t""yes" 1>&6 | |
5449 | else | |
5450 | echo "$ac_t""no" 1>&6 | |
5451 | fi | |
5452 | ||
5453 | ||
5454 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 | |
5455 | echo "configure:5456: checking for --enable-dnd" >&5 | |
5456 | no_cache=0 | |
5457 | # Check whether --enable-dnd or --disable-dnd was given. | |
5458 | if test "${enable_dnd+set}" = set; then | |
5459 | enableval="$enable_dnd" | |
5460 | ||
5461 | if test "$enableval" = yes; then | |
5462 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5463 | else | |
5464 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5465 | fi | |
5466 | ||
5467 | else | |
5468 | ||
5469 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
5470 | if test "x$LINE" != x ; then | |
5471 | eval "DEFAULT_$LINE" | |
5472 | else | |
5473 | no_cache=1 | |
5474 | fi | |
5475 | ||
5476 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
5477 | ||
5478 | fi | |
5479 | ||
5480 | ||
5481 | eval "$ac_cv_use_dnd" | |
5482 | if test "$no_cache" != 1; then | |
5483 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5484 | fi | |
5485 | ||
5486 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
5487 | echo "$ac_t""yes" 1>&6 | |
5488 | else | |
5489 | echo "$ac_t""no" 1>&6 | |
5490 | fi | |
5491 | ||
5492 | ||
5493 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 | |
5494 | echo "configure:5495: checking for --enable-metafile" >&5 | |
5495 | no_cache=0 | |
5496 | # Check whether --enable-metafile or --disable-metafile was given. | |
5497 | if test "${enable_metafile+set}" = set; then | |
5498 | enableval="$enable_metafile" | |
5499 | ||
5500 | if test "$enableval" = yes; then | |
5501 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5502 | else | |
5503 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5504 | fi | |
5505 | ||
5506 | else | |
5507 | ||
5508 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
5509 | if test "x$LINE" != x ; then | |
5510 | eval "DEFAULT_$LINE" | |
5511 | else | |
5512 | no_cache=1 | |
5513 | fi | |
5514 | ||
5515 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
5516 | ||
5517 | fi | |
5518 | ||
5519 | ||
5520 | eval "$ac_cv_use_metafile" | |
5521 | if test "$no_cache" != 1; then | |
5522 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5523 | fi | |
5524 | ||
5525 | if test "$wxUSE_METAFILE" = yes; then | |
5526 | echo "$ac_t""yes" 1>&6 | |
5527 | else | |
5528 | echo "$ac_t""no" 1>&6 | |
5529 | fi | |
5530 | ||
5531 | ||
5532 | ||
5533 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 | |
5534 | echo "configure:5535: checking for --enable-treelayout" >&5 | |
5535 | no_cache=0 | |
5536 | # Check whether --enable-treelayout or --disable-treelayout was given. | |
5537 | if test "${enable_treelayout+set}" = set; then | |
5538 | enableval="$enable_treelayout" | |
5539 | ||
5540 | if test "$enableval" = yes; then | |
5541 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' | |
5542 | else | |
5543 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' | |
5544 | fi | |
5545 | ||
5546 | else | |
5547 | ||
5548 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` | |
5549 | if test "x$LINE" != x ; then | |
5550 | eval "DEFAULT_$LINE" | |
5551 | else | |
5552 | no_cache=1 | |
5553 | fi | |
5554 | ||
5555 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT | |
5556 | ||
5557 | fi | |
5558 | ||
5559 | ||
5560 | eval "$ac_cv_use_treelayout" | |
5561 | if test "$no_cache" != 1; then | |
5562 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp | |
5563 | fi | |
5564 | ||
5565 | if test "$wxUSE_TREELAYOUT" = yes; then | |
5566 | echo "$ac_t""yes" 1>&6 | |
5567 | else | |
5568 | echo "$ac_t""no" 1>&6 | |
5569 | fi | |
5570 | ||
5571 | ||
5572 | ||
5573 | ||
5574 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
5575 | echo "configure:5576: checking for --enable-controls" >&5 | |
5576 | no_cache=0 | |
5577 | # Check whether --enable-controls or --disable-controls was given. | |
5578 | if test "${enable_controls+set}" = set; then | |
5579 | enableval="$enable_controls" | |
5580 | ||
5581 | if test "$enableval" = yes; then | |
5582 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5583 | else | |
5584 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5585 | fi | |
5586 | ||
5587 | else | |
5588 | ||
5589 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
5590 | if test "x$LINE" != x ; then | |
5591 | eval "DEFAULT_$LINE" | |
5592 | else | |
5593 | no_cache=1 | |
5594 | fi | |
5595 | ||
5596 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
5597 | ||
5598 | fi | |
5599 | ||
5600 | ||
5601 | eval "$ac_cv_use_controls" | |
5602 | if test "$no_cache" != 1; then | |
5603 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5604 | fi | |
5605 | ||
5606 | if test "$wxUSE_CONTROLS" = yes; then | |
5607 | echo "$ac_t""yes" 1>&6 | |
5608 | else | |
5609 | echo "$ac_t""no" 1>&6 | |
5610 | fi | |
5611 | ||
5612 | ||
5613 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5614 | DEFAULT_wxUSE_ACCEL=yes | |
5615 | DEFAULT_wxUSE_BMPBUTTON=yes | |
5616 | DEFAULT_wxUSE_BUTTON=yes | |
5617 | DEFAULT_wxUSE_CALCTRL=no | |
5618 | DEFAULT_wxUSE_CARET=yes | |
5619 | DEFAULT_wxUSE_COMBOBOX=yes | |
5620 | DEFAULT_wxUSE_CHECKBOX=yes | |
5621 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5622 | DEFAULT_wxUSE_CHOICE=yes | |
5623 | DEFAULT_wxUSE_GAUGE=yes | |
5624 | DEFAULT_wxUSE_GRID=yes | |
5625 | DEFAULT_wxUSE_NEW_GRID=yes | |
5626 | DEFAULT_wxUSE_IMAGLIST=yes | |
5627 | DEFAULT_wxUSE_LISTBOX=yes | |
5628 | DEFAULT_wxUSE_LISTCTRL=yes | |
5629 | DEFAULT_wxUSE_NOTEBOOK=yes | |
5630 | DEFAULT_wxUSE_PROPSHEET=yes | |
5631 | DEFAULT_wxUSE_RADIOBOX=yes | |
5632 | DEFAULT_wxUSE_RADIOBTN=yes | |
5633 | DEFAULT_wxUSE_SASH=yes | |
5634 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5635 | DEFAULT_wxUSE_SLIDER=yes | |
5636 | DEFAULT_wxUSE_SPINBTN=yes | |
5637 | DEFAULT_wxUSE_SPINCTRL=yes | |
5638 | DEFAULT_wxUSE_SPLITTER=yes | |
5639 | DEFAULT_wxUSE_STATBMP=yes | |
5640 | DEFAULT_wxUSE_STATBOX=yes | |
5641 | DEFAULT_wxUSE_STATLINE=yes | |
5642 | DEFAULT_wxUSE_STATUSBAR=yes | |
5643 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
5644 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
5645 | DEFAULT_wxUSE_TOOLBAR=yes | |
5646 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
5647 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
5648 | DEFAULT_wxUSE_TOOLTIPS=yes | |
5649 | DEFAULT_wxUSE_TREECTRL=yes | |
5650 | DEFAULT_wxUSE_POPUPWIN=yes | |
5651 | DEFAULT_wxUSE_TIPWINDOW=yes | |
5652 | elif test "$wxUSE_CONTROLS" = "no"; then | |
5653 | DEFAULT_wxUSE_ACCEL=no | |
5654 | DEFAULT_wxUSE_BMPBUTTON=no | |
5655 | DEFAULT_wxUSE_BUTTON=no | |
5656 | DEFAULT_wxUSE_CALCTRL=no | |
5657 | DEFAULT_wxUSE_CARET=no | |
5658 | DEFAULT_wxUSE_COMBOBOX=no | |
5659 | DEFAULT_wxUSE_CHECKBOX=no | |
5660 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5661 | DEFAULT_wxUSE_CHOICE=no | |
5662 | DEFAULT_wxUSE_GAUGE=no | |
5663 | DEFAULT_wxUSE_GRID=no | |
5664 | DEFAULT_wxUSE_NEW_GRID=no | |
5665 | DEFAULT_wxUSE_IMAGLIST=no | |
5666 | DEFAULT_wxUSE_LISTBOX=no | |
5667 | DEFAULT_wxUSE_LISTCTRL=no | |
5668 | DEFAULT_wxUSE_NOTEBOOK=no | |
5669 | DEFAULT_wxUSE_PROPSHEET=no | |
5670 | DEFAULT_wxUSE_RADIOBOX=no | |
5671 | DEFAULT_wxUSE_RADIOBTN=no | |
5672 | DEFAULT_wxUSE_SASH=no | |
5673 | DEFAULT_wxUSE_SCROLLBAR=no | |
5674 | DEFAULT_wxUSE_SLIDER=no | |
5675 | DEFAULT_wxUSE_SPINBTN=no | |
5676 | DEFAULT_wxUSE_SPINCTRL=no | |
5677 | DEFAULT_wxUSE_SPLITTER=no | |
5678 | DEFAULT_wxUSE_STATBMP=no | |
5679 | DEFAULT_wxUSE_STATBOX=no | |
5680 | DEFAULT_wxUSE_STATLINE=no | |
5681 | DEFAULT_wxUSE_STATUSBAR=no | |
5682 | DEFAULT_wxUSE_TAB_DIALOG=no | |
5683 | DEFAULT_wxUSE_TOGGLEBTN=no | |
5684 | DEFAULT_wxUSE_TOOLBAR=no | |
5685 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
5686 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
5687 | DEFAULT_wxUSE_TOOLTIPS=no | |
5688 | DEFAULT_wxUSE_TREECTRL=no | |
5689 | DEFAULT_wxUSE_POPUPWIN=no | |
5690 | DEFAULT_wxUSE_TIPWINDOW=no | |
5691 | fi | |
5692 | ||
5693 | ||
5694 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
5695 | echo "configure:5696: checking for --enable-accel" >&5 | |
5696 | no_cache=0 | |
5697 | # Check whether --enable-accel or --disable-accel was given. | |
5698 | if test "${enable_accel+set}" = set; then | |
5699 | enableval="$enable_accel" | |
5700 | ||
5701 | if test "$enableval" = yes; then | |
5702 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5703 | else | |
5704 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5705 | fi | |
5706 | ||
5707 | else | |
5708 | ||
5709 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
5710 | if test "x$LINE" != x ; then | |
5711 | eval "DEFAULT_$LINE" | |
5712 | else | |
5713 | no_cache=1 | |
5714 | fi | |
5715 | ||
5716 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
5717 | ||
5718 | fi | |
5719 | ||
5720 | ||
5721 | eval "$ac_cv_use_accel" | |
5722 | if test "$no_cache" != 1; then | |
5723 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5724 | fi | |
5725 | ||
5726 | if test "$wxUSE_ACCEL" = yes; then | |
5727 | echo "$ac_t""yes" 1>&6 | |
5728 | else | |
5729 | echo "$ac_t""no" 1>&6 | |
5730 | fi | |
5731 | ||
5732 | ||
5733 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 | |
5734 | echo "configure:5735: checking for --enable-button" >&5 | |
5735 | no_cache=0 | |
5736 | # Check whether --enable-button or --disable-button was given. | |
5737 | if test "${enable_button+set}" = set; then | |
5738 | enableval="$enable_button" | |
5739 | ||
5740 | if test "$enableval" = yes; then | |
5741 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
5742 | else | |
5743 | ac_cv_use_button='wxUSE_BUTTON=no' | |
5744 | fi | |
5745 | ||
5746 | else | |
5747 | ||
5748 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
5749 | if test "x$LINE" != x ; then | |
5750 | eval "DEFAULT_$LINE" | |
5751 | else | |
5752 | no_cache=1 | |
5753 | fi | |
5754 | ||
5755 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
5756 | ||
5757 | fi | |
5758 | ||
5759 | ||
5760 | eval "$ac_cv_use_button" | |
5761 | if test "$no_cache" != 1; then | |
5762 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
5763 | fi | |
5764 | ||
5765 | if test "$wxUSE_BUTTON" = yes; then | |
5766 | echo "$ac_t""yes" 1>&6 | |
5767 | else | |
5768 | echo "$ac_t""no" 1>&6 | |
5769 | fi | |
5770 | ||
5771 | ||
5772 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 | |
5773 | echo "configure:5774: checking for --enable-bmpbutton" >&5 | |
5774 | no_cache=0 | |
5775 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5776 | if test "${enable_bmpbutton+set}" = set; then | |
5777 | enableval="$enable_bmpbutton" | |
5778 | ||
5779 | if test "$enableval" = yes; then | |
5780 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5781 | else | |
5782 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5783 | fi | |
5784 | ||
5785 | else | |
5786 | ||
5787 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
5788 | if test "x$LINE" != x ; then | |
5789 | eval "DEFAULT_$LINE" | |
5790 | else | |
5791 | no_cache=1 | |
5792 | fi | |
5793 | ||
5794 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
5795 | ||
5796 | fi | |
5797 | ||
5798 | ||
5799 | eval "$ac_cv_use_bmpbutton" | |
5800 | if test "$no_cache" != 1; then | |
5801 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5802 | fi | |
5803 | ||
5804 | if test "$wxUSE_BMPBUTTON" = yes; then | |
5805 | echo "$ac_t""yes" 1>&6 | |
5806 | else | |
5807 | echo "$ac_t""no" 1>&6 | |
5808 | fi | |
5809 | ||
5810 | ||
5811 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 | |
5812 | echo "configure:5813: checking for --enable-calendar" >&5 | |
5813 | no_cache=0 | |
5814 | # Check whether --enable-calendar or --disable-calendar was given. | |
5815 | if test "${enable_calendar+set}" = set; then | |
5816 | enableval="$enable_calendar" | |
5817 | ||
5818 | if test "$enableval" = yes; then | |
5819 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5820 | else | |
5821 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5822 | fi | |
5823 | ||
5824 | else | |
5825 | ||
5826 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5827 | if test "x$LINE" != x ; then | |
5828 | eval "DEFAULT_$LINE" | |
5829 | else | |
5830 | no_cache=1 | |
5831 | fi | |
5832 | ||
5833 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5834 | ||
5835 | fi | |
5836 | ||
5837 | ||
5838 | eval "$ac_cv_use_calendar" | |
5839 | if test "$no_cache" != 1; then | |
5840 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5841 | fi | |
5842 | ||
5843 | if test "$wxUSE_CALCTRL" = yes; then | |
5844 | echo "$ac_t""yes" 1>&6 | |
5845 | else | |
5846 | echo "$ac_t""no" 1>&6 | |
5847 | fi | |
5848 | ||
5849 | ||
5850 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
5851 | echo "configure:5852: checking for --enable-caret" >&5 | |
5852 | no_cache=0 | |
5853 | # Check whether --enable-caret or --disable-caret was given. | |
5854 | if test "${enable_caret+set}" = set; then | |
5855 | enableval="$enable_caret" | |
5856 | ||
5857 | if test "$enableval" = yes; then | |
5858 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5859 | else | |
5860 | ac_cv_use_caret='wxUSE_CARET=no' | |
5861 | fi | |
5862 | ||
5863 | else | |
5864 | ||
5865 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5866 | if test "x$LINE" != x ; then | |
5867 | eval "DEFAULT_$LINE" | |
5868 | else | |
5869 | no_cache=1 | |
5870 | fi | |
5871 | ||
5872 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5873 | ||
5874 | fi | |
5875 | ||
5876 | ||
5877 | eval "$ac_cv_use_caret" | |
5878 | if test "$no_cache" != 1; then | |
5879 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5880 | fi | |
5881 | ||
5882 | if test "$wxUSE_CARET" = yes; then | |
5883 | echo "$ac_t""yes" 1>&6 | |
5884 | else | |
5885 | echo "$ac_t""no" 1>&6 | |
5886 | fi | |
5887 | ||
5888 | ||
5889 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 | |
5890 | echo "configure:5891: checking for --enable-checkbox" >&5 | |
5891 | no_cache=0 | |
5892 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5893 | if test "${enable_checkbox+set}" = set; then | |
5894 | enableval="$enable_checkbox" | |
5895 | ||
5896 | if test "$enableval" = yes; then | |
5897 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5898 | else | |
5899 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5900 | fi | |
5901 | ||
5902 | else | |
5903 | ||
5904 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
5905 | if test "x$LINE" != x ; then | |
5906 | eval "DEFAULT_$LINE" | |
5907 | else | |
5908 | no_cache=1 | |
5909 | fi | |
5910 | ||
5911 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
5912 | ||
5913 | fi | |
5914 | ||
5915 | ||
5916 | eval "$ac_cv_use_checkbox" | |
5917 | if test "$no_cache" != 1; then | |
5918 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5919 | fi | |
5920 | ||
5921 | if test "$wxUSE_CHECKBOX" = yes; then | |
5922 | echo "$ac_t""yes" 1>&6 | |
5923 | else | |
5924 | echo "$ac_t""no" 1>&6 | |
5925 | fi | |
5926 | ||
5927 | ||
5928 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 | |
5929 | echo "configure:5930: checking for --enable-checklst" >&5 | |
5930 | no_cache=0 | |
5931 | # Check whether --enable-checklst or --disable-checklst was given. | |
5932 | if test "${enable_checklst+set}" = set; then | |
5933 | enableval="$enable_checklst" | |
5934 | ||
5935 | if test "$enableval" = yes; then | |
5936 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5937 | else | |
5938 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5939 | fi | |
5940 | ||
5941 | else | |
5942 | ||
5943 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
5944 | if test "x$LINE" != x ; then | |
5945 | eval "DEFAULT_$LINE" | |
5946 | else | |
5947 | no_cache=1 | |
5948 | fi | |
5949 | ||
5950 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
5951 | ||
5952 | fi | |
5953 | ||
5954 | ||
5955 | eval "$ac_cv_use_checklst" | |
5956 | if test "$no_cache" != 1; then | |
5957 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5958 | fi | |
5959 | ||
5960 | if test "$wxUSE_CHECKLST" = yes; then | |
5961 | echo "$ac_t""yes" 1>&6 | |
5962 | else | |
5963 | echo "$ac_t""no" 1>&6 | |
5964 | fi | |
5965 | ||
5966 | ||
5967 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 | |
5968 | echo "configure:5969: checking for --enable-choice" >&5 | |
5969 | no_cache=0 | |
5970 | # Check whether --enable-choice or --disable-choice was given. | |
5971 | if test "${enable_choice+set}" = set; then | |
5972 | enableval="$enable_choice" | |
5973 | ||
5974 | if test "$enableval" = yes; then | |
5975 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5976 | else | |
5977 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5978 | fi | |
5979 | ||
5980 | else | |
5981 | ||
5982 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
5983 | if test "x$LINE" != x ; then | |
5984 | eval "DEFAULT_$LINE" | |
5985 | else | |
5986 | no_cache=1 | |
5987 | fi | |
5988 | ||
5989 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
5990 | ||
5991 | fi | |
5992 | ||
5993 | ||
5994 | eval "$ac_cv_use_choice" | |
5995 | if test "$no_cache" != 1; then | |
5996 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5997 | fi | |
5998 | ||
5999 | if test "$wxUSE_CHOICE" = yes; then | |
6000 | echo "$ac_t""yes" 1>&6 | |
6001 | else | |
6002 | echo "$ac_t""no" 1>&6 | |
6003 | fi | |
6004 | ||
6005 | ||
6006 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 | |
6007 | echo "configure:6008: checking for --enable-combobox" >&5 | |
6008 | no_cache=0 | |
6009 | # Check whether --enable-combobox or --disable-combobox was given. | |
6010 | if test "${enable_combobox+set}" = set; then | |
6011 | enableval="$enable_combobox" | |
6012 | ||
6013 | if test "$enableval" = yes; then | |
6014 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6015 | else | |
6016 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6017 | fi | |
6018 | ||
6019 | else | |
6020 | ||
6021 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
6022 | if test "x$LINE" != x ; then | |
6023 | eval "DEFAULT_$LINE" | |
6024 | else | |
6025 | no_cache=1 | |
6026 | fi | |
6027 | ||
6028 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
6029 | ||
6030 | fi | |
6031 | ||
6032 | ||
6033 | eval "$ac_cv_use_combobox" | |
6034 | if test "$no_cache" != 1; then | |
6035 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6036 | fi | |
6037 | ||
6038 | if test "$wxUSE_COMBOBOX" = yes; then | |
6039 | echo "$ac_t""yes" 1>&6 | |
6040 | else | |
6041 | echo "$ac_t""no" 1>&6 | |
6042 | fi | |
6043 | ||
6044 | ||
6045 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 | |
6046 | echo "configure:6047: checking for --enable-gauge" >&5 | |
6047 | no_cache=0 | |
6048 | # Check whether --enable-gauge or --disable-gauge was given. | |
6049 | if test "${enable_gauge+set}" = set; then | |
6050 | enableval="$enable_gauge" | |
6051 | ||
6052 | if test "$enableval" = yes; then | |
6053 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6054 | else | |
6055 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6056 | fi | |
6057 | ||
6058 | else | |
6059 | ||
6060 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
6061 | if test "x$LINE" != x ; then | |
6062 | eval "DEFAULT_$LINE" | |
6063 | else | |
6064 | no_cache=1 | |
6065 | fi | |
6066 | ||
6067 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
6068 | ||
6069 | fi | |
6070 | ||
6071 | ||
6072 | eval "$ac_cv_use_gauge" | |
6073 | if test "$no_cache" != 1; then | |
6074 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6075 | fi | |
6076 | ||
6077 | if test "$wxUSE_GAUGE" = yes; then | |
6078 | echo "$ac_t""yes" 1>&6 | |
6079 | else | |
6080 | echo "$ac_t""no" 1>&6 | |
6081 | fi | |
6082 | ||
6083 | ||
6084 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 | |
6085 | echo "configure:6086: checking for --enable-grid" >&5 | |
6086 | no_cache=0 | |
6087 | # Check whether --enable-grid or --disable-grid was given. | |
6088 | if test "${enable_grid+set}" = set; then | |
6089 | enableval="$enable_grid" | |
6090 | ||
6091 | if test "$enableval" = yes; then | |
6092 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6093 | else | |
6094 | ac_cv_use_grid='wxUSE_GRID=no' | |
6095 | fi | |
6096 | ||
6097 | else | |
6098 | ||
6099 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
6100 | if test "x$LINE" != x ; then | |
6101 | eval "DEFAULT_$LINE" | |
6102 | else | |
6103 | no_cache=1 | |
6104 | fi | |
6105 | ||
6106 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
6107 | ||
6108 | fi | |
6109 | ||
6110 | ||
6111 | eval "$ac_cv_use_grid" | |
6112 | if test "$no_cache" != 1; then | |
6113 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6114 | fi | |
6115 | ||
6116 | if test "$wxUSE_GRID" = yes; then | |
6117 | echo "$ac_t""yes" 1>&6 | |
6118 | else | |
6119 | echo "$ac_t""no" 1>&6 | |
6120 | fi | |
6121 | ||
6122 | ||
6123 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 | |
6124 | echo "configure:6125: checking for --enable-newgrid" >&5 | |
6125 | no_cache=0 | |
6126 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6127 | if test "${enable_newgrid+set}" = set; then | |
6128 | enableval="$enable_newgrid" | |
6129 | ||
6130 | if test "$enableval" = yes; then | |
6131 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6132 | else | |
6133 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6134 | fi | |
6135 | ||
6136 | else | |
6137 | ||
6138 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
6139 | if test "x$LINE" != x ; then | |
6140 | eval "DEFAULT_$LINE" | |
6141 | else | |
6142 | no_cache=1 | |
6143 | fi | |
6144 | ||
6145 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
6146 | ||
6147 | fi | |
6148 | ||
6149 | ||
6150 | eval "$ac_cv_use_newgrid" | |
6151 | if test "$no_cache" != 1; then | |
6152 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6153 | fi | |
6154 | ||
6155 | if test "$wxUSE_NEW_GRID" = yes; then | |
6156 | echo "$ac_t""yes" 1>&6 | |
6157 | else | |
6158 | echo "$ac_t""no" 1>&6 | |
6159 | fi | |
6160 | ||
6161 | ||
6162 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 | |
6163 | echo "configure:6164: checking for --enable-imaglist" >&5 | |
6164 | no_cache=0 | |
6165 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6166 | if test "${enable_imaglist+set}" = set; then | |
6167 | enableval="$enable_imaglist" | |
6168 | ||
6169 | if test "$enableval" = yes; then | |
6170 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6171 | else | |
6172 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6173 | fi | |
6174 | ||
6175 | else | |
6176 | ||
6177 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
6178 | if test "x$LINE" != x ; then | |
6179 | eval "DEFAULT_$LINE" | |
6180 | else | |
6181 | no_cache=1 | |
6182 | fi | |
6183 | ||
6184 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
6185 | ||
6186 | fi | |
6187 | ||
6188 | ||
6189 | eval "$ac_cv_use_imaglist" | |
6190 | if test "$no_cache" != 1; then | |
6191 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6192 | fi | |
6193 | ||
6194 | if test "$wxUSE_IMAGLIST" = yes; then | |
6195 | echo "$ac_t""yes" 1>&6 | |
6196 | else | |
6197 | echo "$ac_t""no" 1>&6 | |
6198 | fi | |
6199 | ||
6200 | ||
6201 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 | |
6202 | echo "configure:6203: checking for --enable-listbox" >&5 | |
6203 | no_cache=0 | |
6204 | # Check whether --enable-listbox or --disable-listbox was given. | |
6205 | if test "${enable_listbox+set}" = set; then | |
6206 | enableval="$enable_listbox" | |
6207 | ||
6208 | if test "$enableval" = yes; then | |
6209 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6210 | else | |
6211 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6212 | fi | |
6213 | ||
6214 | else | |
6215 | ||
6216 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
6217 | if test "x$LINE" != x ; then | |
6218 | eval "DEFAULT_$LINE" | |
6219 | else | |
6220 | no_cache=1 | |
6221 | fi | |
6222 | ||
6223 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
6224 | ||
6225 | fi | |
6226 | ||
6227 | ||
6228 | eval "$ac_cv_use_listbox" | |
6229 | if test "$no_cache" != 1; then | |
6230 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6231 | fi | |
6232 | ||
6233 | if test "$wxUSE_LISTBOX" = yes; then | |
6234 | echo "$ac_t""yes" 1>&6 | |
6235 | else | |
6236 | echo "$ac_t""no" 1>&6 | |
6237 | fi | |
6238 | ||
6239 | ||
6240 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 | |
6241 | echo "configure:6242: checking for --enable-listctrl" >&5 | |
6242 | no_cache=0 | |
6243 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6244 | if test "${enable_listctrl+set}" = set; then | |
6245 | enableval="$enable_listctrl" | |
6246 | ||
6247 | if test "$enableval" = yes; then | |
6248 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6249 | else | |
6250 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6251 | fi | |
6252 | ||
6253 | else | |
6254 | ||
6255 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
6256 | if test "x$LINE" != x ; then | |
6257 | eval "DEFAULT_$LINE" | |
6258 | else | |
6259 | no_cache=1 | |
6260 | fi | |
6261 | ||
6262 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
6263 | ||
6264 | fi | |
6265 | ||
6266 | ||
6267 | eval "$ac_cv_use_listctrl" | |
6268 | if test "$no_cache" != 1; then | |
6269 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6270 | fi | |
6271 | ||
6272 | if test "$wxUSE_LISTCTRL" = yes; then | |
6273 | echo "$ac_t""yes" 1>&6 | |
6274 | else | |
6275 | echo "$ac_t""no" 1>&6 | |
6276 | fi | |
6277 | ||
6278 | ||
6279 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 | |
6280 | echo "configure:6281: checking for --enable-notebook" >&5 | |
6281 | no_cache=0 | |
6282 | # Check whether --enable-notebook or --disable-notebook was given. | |
6283 | if test "${enable_notebook+set}" = set; then | |
6284 | enableval="$enable_notebook" | |
6285 | ||
6286 | if test "$enableval" = yes; then | |
6287 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6288 | else | |
6289 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6290 | fi | |
6291 | ||
6292 | else | |
6293 | ||
6294 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
6295 | if test "x$LINE" != x ; then | |
6296 | eval "DEFAULT_$LINE" | |
6297 | else | |
6298 | no_cache=1 | |
6299 | fi | |
6300 | ||
6301 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
6302 | ||
6303 | fi | |
6304 | ||
6305 | ||
6306 | eval "$ac_cv_use_notebook" | |
6307 | if test "$no_cache" != 1; then | |
6308 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6309 | fi | |
6310 | ||
6311 | if test "$wxUSE_NOTEBOOK" = yes; then | |
6312 | echo "$ac_t""yes" 1>&6 | |
6313 | else | |
6314 | echo "$ac_t""no" 1>&6 | |
6315 | fi | |
6316 | ||
6317 | ||
6318 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 | |
6319 | echo "configure:6320: checking for --enable-propsheet" >&5 | |
6320 | no_cache=0 | |
6321 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6322 | if test "${enable_propsheet+set}" = set; then | |
6323 | enableval="$enable_propsheet" | |
6324 | ||
6325 | if test "$enableval" = yes; then | |
6326 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6327 | else | |
6328 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6329 | fi | |
6330 | ||
6331 | else | |
6332 | ||
6333 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6334 | if test "x$LINE" != x ; then | |
6335 | eval "DEFAULT_$LINE" | |
6336 | else | |
6337 | no_cache=1 | |
6338 | fi | |
6339 | ||
6340 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6341 | ||
6342 | fi | |
6343 | ||
6344 | ||
6345 | eval "$ac_cv_use_propsheet" | |
6346 | if test "$no_cache" != 1; then | |
6347 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6348 | fi | |
6349 | ||
6350 | if test "$wxUSE_PROPSHEET" = yes; then | |
6351 | echo "$ac_t""yes" 1>&6 | |
6352 | else | |
6353 | echo "$ac_t""no" 1>&6 | |
6354 | fi | |
6355 | ||
6356 | ||
6357 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 | |
6358 | echo "configure:6359: checking for --enable-radiobox" >&5 | |
6359 | no_cache=0 | |
6360 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6361 | if test "${enable_radiobox+set}" = set; then | |
6362 | enableval="$enable_radiobox" | |
6363 | ||
6364 | if test "$enableval" = yes; then | |
6365 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6366 | else | |
6367 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6368 | fi | |
6369 | ||
6370 | else | |
6371 | ||
6372 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
6373 | if test "x$LINE" != x ; then | |
6374 | eval "DEFAULT_$LINE" | |
6375 | else | |
6376 | no_cache=1 | |
6377 | fi | |
6378 | ||
6379 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
6380 | ||
6381 | fi | |
6382 | ||
6383 | ||
6384 | eval "$ac_cv_use_radiobox" | |
6385 | if test "$no_cache" != 1; then | |
6386 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6387 | fi | |
6388 | ||
6389 | if test "$wxUSE_RADIOBOX" = yes; then | |
6390 | echo "$ac_t""yes" 1>&6 | |
6391 | else | |
6392 | echo "$ac_t""no" 1>&6 | |
6393 | fi | |
6394 | ||
6395 | ||
6396 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 | |
6397 | echo "configure:6398: checking for --enable-radiobtn" >&5 | |
6398 | no_cache=0 | |
6399 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6400 | if test "${enable_radiobtn+set}" = set; then | |
6401 | enableval="$enable_radiobtn" | |
6402 | ||
6403 | if test "$enableval" = yes; then | |
6404 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6405 | else | |
6406 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6407 | fi | |
6408 | ||
6409 | else | |
6410 | ||
6411 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
6412 | if test "x$LINE" != x ; then | |
6413 | eval "DEFAULT_$LINE" | |
6414 | else | |
6415 | no_cache=1 | |
6416 | fi | |
6417 | ||
6418 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
6419 | ||
6420 | fi | |
6421 | ||
6422 | ||
6423 | eval "$ac_cv_use_radiobtn" | |
6424 | if test "$no_cache" != 1; then | |
6425 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6426 | fi | |
6427 | ||
6428 | if test "$wxUSE_RADIOBTN" = yes; then | |
6429 | echo "$ac_t""yes" 1>&6 | |
6430 | else | |
6431 | echo "$ac_t""no" 1>&6 | |
6432 | fi | |
6433 | ||
6434 | ||
6435 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 | |
6436 | echo "configure:6437: checking for --enable-sash" >&5 | |
6437 | no_cache=0 | |
6438 | # Check whether --enable-sash or --disable-sash was given. | |
6439 | if test "${enable_sash+set}" = set; then | |
6440 | enableval="$enable_sash" | |
6441 | ||
6442 | if test "$enableval" = yes; then | |
6443 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6444 | else | |
6445 | ac_cv_use_sash='wxUSE_SASH=no' | |
6446 | fi | |
6447 | ||
6448 | else | |
6449 | ||
6450 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
6451 | if test "x$LINE" != x ; then | |
6452 | eval "DEFAULT_$LINE" | |
6453 | else | |
6454 | no_cache=1 | |
6455 | fi | |
6456 | ||
6457 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
6458 | ||
6459 | fi | |
6460 | ||
6461 | ||
6462 | eval "$ac_cv_use_sash" | |
6463 | if test "$no_cache" != 1; then | |
6464 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6465 | fi | |
6466 | ||
6467 | if test "$wxUSE_SASH" = yes; then | |
6468 | echo "$ac_t""yes" 1>&6 | |
6469 | else | |
6470 | echo "$ac_t""no" 1>&6 | |
6471 | fi | |
6472 | ||
6473 | ||
6474 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 | |
6475 | echo "configure:6476: checking for --enable-scrollbar" >&5 | |
6476 | no_cache=0 | |
6477 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6478 | if test "${enable_scrollbar+set}" = set; then | |
6479 | enableval="$enable_scrollbar" | |
6480 | ||
6481 | if test "$enableval" = yes; then | |
6482 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6483 | else | |
6484 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6485 | fi | |
6486 | ||
6487 | else | |
6488 | ||
6489 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
6490 | if test "x$LINE" != x ; then | |
6491 | eval "DEFAULT_$LINE" | |
6492 | else | |
6493 | no_cache=1 | |
6494 | fi | |
6495 | ||
6496 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
6497 | ||
6498 | fi | |
6499 | ||
6500 | ||
6501 | eval "$ac_cv_use_scrollbar" | |
6502 | if test "$no_cache" != 1; then | |
6503 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6504 | fi | |
6505 | ||
6506 | if test "$wxUSE_SCROLLBAR" = yes; then | |
6507 | echo "$ac_t""yes" 1>&6 | |
6508 | else | |
6509 | echo "$ac_t""no" 1>&6 | |
6510 | fi | |
6511 | ||
6512 | ||
6513 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 | |
6514 | echo "configure:6515: checking for --enable-slider" >&5 | |
6515 | no_cache=0 | |
6516 | # Check whether --enable-slider or --disable-slider was given. | |
6517 | if test "${enable_slider+set}" = set; then | |
6518 | enableval="$enable_slider" | |
6519 | ||
6520 | if test "$enableval" = yes; then | |
6521 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6522 | else | |
6523 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6524 | fi | |
6525 | ||
6526 | else | |
6527 | ||
6528 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
6529 | if test "x$LINE" != x ; then | |
6530 | eval "DEFAULT_$LINE" | |
6531 | else | |
6532 | no_cache=1 | |
6533 | fi | |
6534 | ||
6535 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
6536 | ||
6537 | fi | |
6538 | ||
6539 | ||
6540 | eval "$ac_cv_use_slider" | |
6541 | if test "$no_cache" != 1; then | |
6542 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6543 | fi | |
6544 | ||
6545 | if test "$wxUSE_SLIDER" = yes; then | |
6546 | echo "$ac_t""yes" 1>&6 | |
6547 | else | |
6548 | echo "$ac_t""no" 1>&6 | |
6549 | fi | |
6550 | ||
6551 | ||
6552 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 | |
6553 | echo "configure:6554: checking for --enable-spinbtn" >&5 | |
6554 | no_cache=0 | |
6555 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6556 | if test "${enable_spinbtn+set}" = set; then | |
6557 | enableval="$enable_spinbtn" | |
6558 | ||
6559 | if test "$enableval" = yes; then | |
6560 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6561 | else | |
6562 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6563 | fi | |
6564 | ||
6565 | else | |
6566 | ||
6567 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
6568 | if test "x$LINE" != x ; then | |
6569 | eval "DEFAULT_$LINE" | |
6570 | else | |
6571 | no_cache=1 | |
6572 | fi | |
6573 | ||
6574 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
6575 | ||
6576 | fi | |
6577 | ||
6578 | ||
6579 | eval "$ac_cv_use_spinbtn" | |
6580 | if test "$no_cache" != 1; then | |
6581 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6582 | fi | |
6583 | ||
6584 | if test "$wxUSE_SPINBTN" = yes; then | |
6585 | echo "$ac_t""yes" 1>&6 | |
6586 | else | |
6587 | echo "$ac_t""no" 1>&6 | |
6588 | fi | |
6589 | ||
6590 | ||
6591 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 | |
6592 | echo "configure:6593: checking for --enable-spinctrl" >&5 | |
6593 | no_cache=0 | |
6594 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6595 | if test "${enable_spinctrl+set}" = set; then | |
6596 | enableval="$enable_spinctrl" | |
6597 | ||
6598 | if test "$enableval" = yes; then | |
6599 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6600 | else | |
6601 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6602 | fi | |
6603 | ||
6604 | else | |
6605 | ||
6606 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
6607 | if test "x$LINE" != x ; then | |
6608 | eval "DEFAULT_$LINE" | |
6609 | else | |
6610 | no_cache=1 | |
6611 | fi | |
6612 | ||
6613 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
6614 | ||
6615 | fi | |
6616 | ||
6617 | ||
6618 | eval "$ac_cv_use_spinctrl" | |
6619 | if test "$no_cache" != 1; then | |
6620 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6621 | fi | |
6622 | ||
6623 | if test "$wxUSE_SPINCTRL" = yes; then | |
6624 | echo "$ac_t""yes" 1>&6 | |
6625 | else | |
6626 | echo "$ac_t""no" 1>&6 | |
6627 | fi | |
6628 | ||
6629 | ||
6630 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 | |
6631 | echo "configure:6632: checking for --enable-splitter" >&5 | |
6632 | no_cache=0 | |
6633 | # Check whether --enable-splitter or --disable-splitter was given. | |
6634 | if test "${enable_splitter+set}" = set; then | |
6635 | enableval="$enable_splitter" | |
6636 | ||
6637 | if test "$enableval" = yes; then | |
6638 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6639 | else | |
6640 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6641 | fi | |
6642 | ||
6643 | else | |
6644 | ||
6645 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
6646 | if test "x$LINE" != x ; then | |
6647 | eval "DEFAULT_$LINE" | |
6648 | else | |
6649 | no_cache=1 | |
6650 | fi | |
6651 | ||
6652 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
6653 | ||
6654 | fi | |
6655 | ||
6656 | ||
6657 | eval "$ac_cv_use_splitter" | |
6658 | if test "$no_cache" != 1; then | |
6659 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6660 | fi | |
6661 | ||
6662 | if test "$wxUSE_SPLITTER" = yes; then | |
6663 | echo "$ac_t""yes" 1>&6 | |
6664 | else | |
6665 | echo "$ac_t""no" 1>&6 | |
6666 | fi | |
6667 | ||
6668 | ||
6669 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 | |
6670 | echo "configure:6671: checking for --enable-statbmp" >&5 | |
6671 | no_cache=0 | |
6672 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6673 | if test "${enable_statbmp+set}" = set; then | |
6674 | enableval="$enable_statbmp" | |
6675 | ||
6676 | if test "$enableval" = yes; then | |
6677 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6678 | else | |
6679 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6680 | fi | |
6681 | ||
6682 | else | |
6683 | ||
6684 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
6685 | if test "x$LINE" != x ; then | |
6686 | eval "DEFAULT_$LINE" | |
6687 | else | |
6688 | no_cache=1 | |
6689 | fi | |
6690 | ||
6691 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
6692 | ||
6693 | fi | |
6694 | ||
6695 | ||
6696 | eval "$ac_cv_use_statbmp" | |
6697 | if test "$no_cache" != 1; then | |
6698 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6699 | fi | |
6700 | ||
6701 | if test "$wxUSE_STATBMP" = yes; then | |
6702 | echo "$ac_t""yes" 1>&6 | |
6703 | else | |
6704 | echo "$ac_t""no" 1>&6 | |
6705 | fi | |
6706 | ||
6707 | ||
6708 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 | |
6709 | echo "configure:6710: checking for --enable-statbox" >&5 | |
6710 | no_cache=0 | |
6711 | # Check whether --enable-statbox or --disable-statbox was given. | |
6712 | if test "${enable_statbox+set}" = set; then | |
6713 | enableval="$enable_statbox" | |
6714 | ||
6715 | if test "$enableval" = yes; then | |
6716 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6717 | else | |
6718 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6719 | fi | |
6720 | ||
6721 | else | |
6722 | ||
6723 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
6724 | if test "x$LINE" != x ; then | |
6725 | eval "DEFAULT_$LINE" | |
6726 | else | |
6727 | no_cache=1 | |
6728 | fi | |
6729 | ||
6730 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
6731 | ||
6732 | fi | |
6733 | ||
6734 | ||
6735 | eval "$ac_cv_use_statbox" | |
6736 | if test "$no_cache" != 1; then | |
6737 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6738 | fi | |
6739 | ||
6740 | if test "$wxUSE_STATBOX" = yes; then | |
6741 | echo "$ac_t""yes" 1>&6 | |
6742 | else | |
6743 | echo "$ac_t""no" 1>&6 | |
6744 | fi | |
6745 | ||
6746 | ||
6747 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 | |
6748 | echo "configure:6749: checking for --enable-statline" >&5 | |
6749 | no_cache=0 | |
6750 | # Check whether --enable-statline or --disable-statline was given. | |
6751 | if test "${enable_statline+set}" = set; then | |
6752 | enableval="$enable_statline" | |
6753 | ||
6754 | if test "$enableval" = yes; then | |
6755 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6756 | else | |
6757 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6758 | fi | |
6759 | ||
6760 | else | |
6761 | ||
6762 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
6763 | if test "x$LINE" != x ; then | |
6764 | eval "DEFAULT_$LINE" | |
6765 | else | |
6766 | no_cache=1 | |
6767 | fi | |
6768 | ||
6769 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
6770 | ||
6771 | fi | |
6772 | ||
6773 | ||
6774 | eval "$ac_cv_use_statline" | |
6775 | if test "$no_cache" != 1; then | |
6776 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6777 | fi | |
6778 | ||
6779 | if test "$wxUSE_STATLINE" = yes; then | |
6780 | echo "$ac_t""yes" 1>&6 | |
6781 | else | |
6782 | echo "$ac_t""no" 1>&6 | |
6783 | fi | |
6784 | ||
6785 | ||
6786 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 | |
6787 | echo "configure:6788: checking for --enable-stattext" >&5 | |
6788 | no_cache=0 | |
6789 | # Check whether --enable-stattext or --disable-stattext was given. | |
6790 | if test "${enable_stattext+set}" = set; then | |
6791 | enableval="$enable_stattext" | |
6792 | ||
6793 | if test "$enableval" = yes; then | |
6794 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6795 | else | |
6796 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6797 | fi | |
6798 | ||
6799 | else | |
6800 | ||
6801 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6802 | if test "x$LINE" != x ; then | |
6803 | eval "DEFAULT_$LINE" | |
6804 | else | |
6805 | no_cache=1 | |
6806 | fi | |
6807 | ||
6808 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6809 | ||
6810 | fi | |
6811 | ||
6812 | ||
6813 | eval "$ac_cv_use_stattext" | |
6814 | if test "$no_cache" != 1; then | |
6815 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6816 | fi | |
6817 | ||
6818 | if test "$wxUSE_STATTEXT" = yes; then | |
6819 | echo "$ac_t""yes" 1>&6 | |
6820 | else | |
6821 | echo "$ac_t""no" 1>&6 | |
6822 | fi | |
6823 | ||
6824 | ||
6825 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 | |
6826 | echo "configure:6827: checking for --enable-statusbar" >&5 | |
6827 | no_cache=0 | |
6828 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6829 | if test "${enable_statusbar+set}" = set; then | |
6830 | enableval="$enable_statusbar" | |
6831 | ||
6832 | if test "$enableval" = yes; then | |
6833 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6834 | else | |
6835 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6836 | fi | |
6837 | ||
6838 | else | |
6839 | ||
6840 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
6841 | if test "x$LINE" != x ; then | |
6842 | eval "DEFAULT_$LINE" | |
6843 | else | |
6844 | no_cache=1 | |
6845 | fi | |
6846 | ||
6847 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
6848 | ||
6849 | fi | |
6850 | ||
6851 | ||
6852 | eval "$ac_cv_use_statusbar" | |
6853 | if test "$no_cache" != 1; then | |
6854 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6855 | fi | |
6856 | ||
6857 | if test "$wxUSE_STATUSBAR" = yes; then | |
6858 | echo "$ac_t""yes" 1>&6 | |
6859 | else | |
6860 | echo "$ac_t""no" 1>&6 | |
6861 | fi | |
6862 | ||
6863 | ||
6864 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 | |
6865 | echo "configure:6866: checking for --enable-tabdialog" >&5 | |
6866 | no_cache=0 | |
6867 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6868 | if test "${enable_tabdialog+set}" = set; then | |
6869 | enableval="$enable_tabdialog" | |
6870 | ||
6871 | if test "$enableval" = yes; then | |
6872 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6873 | else | |
6874 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6875 | fi | |
6876 | ||
6877 | else | |
6878 | ||
6879 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
6880 | if test "x$LINE" != x ; then | |
6881 | eval "DEFAULT_$LINE" | |
6882 | else | |
6883 | no_cache=1 | |
6884 | fi | |
6885 | ||
6886 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
6887 | ||
6888 | fi | |
6889 | ||
6890 | ||
6891 | eval "$ac_cv_use_tabdialog" | |
6892 | if test "$no_cache" != 1; then | |
6893 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6894 | fi | |
6895 | ||
6896 | if test "$wxUSE_TABDIALOG" = yes; then | |
6897 | echo "$ac_t""yes" 1>&6 | |
6898 | else | |
6899 | echo "$ac_t""no" 1>&6 | |
6900 | fi | |
6901 | ||
6902 | ||
6903 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 | |
6904 | echo "configure:6905: checking for --enable-textctrl" >&5 | |
6905 | no_cache=0 | |
6906 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6907 | if test "${enable_textctrl+set}" = set; then | |
6908 | enableval="$enable_textctrl" | |
6909 | ||
6910 | if test "$enableval" = yes; then | |
6911 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6912 | else | |
6913 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6914 | fi | |
6915 | ||
6916 | else | |
6917 | ||
6918 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6919 | if test "x$LINE" != x ; then | |
6920 | eval "DEFAULT_$LINE" | |
6921 | else | |
6922 | no_cache=1 | |
6923 | fi | |
6924 | ||
6925 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6926 | ||
6927 | fi | |
6928 | ||
6929 | ||
6930 | eval "$ac_cv_use_textctrl" | |
6931 | if test "$no_cache" != 1; then | |
6932 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6933 | fi | |
6934 | ||
6935 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6936 | echo "$ac_t""yes" 1>&6 | |
6937 | else | |
6938 | echo "$ac_t""no" 1>&6 | |
6939 | fi | |
6940 | ||
6941 | ||
6942 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 | |
6943 | echo "configure:6944: checking for --enable-togglebtn" >&5 | |
6944 | no_cache=0 | |
6945 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6946 | if test "${enable_togglebtn+set}" = set; then | |
6947 | enableval="$enable_togglebtn" | |
6948 | ||
6949 | if test "$enableval" = yes; then | |
6950 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6951 | else | |
6952 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6953 | fi | |
6954 | ||
6955 | else | |
6956 | ||
6957 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
6958 | if test "x$LINE" != x ; then | |
6959 | eval "DEFAULT_$LINE" | |
6960 | else | |
6961 | no_cache=1 | |
6962 | fi | |
6963 | ||
6964 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
6965 | ||
6966 | fi | |
6967 | ||
6968 | ||
6969 | eval "$ac_cv_use_togglebtn" | |
6970 | if test "$no_cache" != 1; then | |
6971 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6972 | fi | |
6973 | ||
6974 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
6975 | echo "$ac_t""yes" 1>&6 | |
6976 | else | |
6977 | echo "$ac_t""no" 1>&6 | |
6978 | fi | |
6979 | ||
6980 | ||
6981 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 | |
6982 | echo "configure:6983: checking for --enable-toolbar" >&5 | |
6983 | no_cache=0 | |
6984 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6985 | if test "${enable_toolbar+set}" = set; then | |
6986 | enableval="$enable_toolbar" | |
6987 | ||
6988 | if test "$enableval" = yes; then | |
6989 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6990 | else | |
6991 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6992 | fi | |
6993 | ||
6994 | else | |
6995 | ||
6996 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
6997 | if test "x$LINE" != x ; then | |
6998 | eval "DEFAULT_$LINE" | |
6999 | else | |
7000 | no_cache=1 | |
7001 | fi | |
7002 | ||
7003 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
7004 | ||
7005 | fi | |
7006 | ||
7007 | ||
7008 | eval "$ac_cv_use_toolbar" | |
7009 | if test "$no_cache" != 1; then | |
7010 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7011 | fi | |
7012 | ||
7013 | if test "$wxUSE_TOOLBAR" = yes; then | |
7014 | echo "$ac_t""yes" 1>&6 | |
7015 | else | |
7016 | echo "$ac_t""no" 1>&6 | |
7017 | fi | |
7018 | ||
7019 | ||
7020 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 | |
7021 | echo "configure:7022: checking for --enable-tbarnative" >&5 | |
7022 | no_cache=0 | |
7023 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7024 | if test "${enable_tbarnative+set}" = set; then | |
7025 | enableval="$enable_tbarnative" | |
7026 | ||
7027 | if test "$enableval" = yes; then | |
7028 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7029 | else | |
7030 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7031 | fi | |
7032 | ||
7033 | else | |
7034 | ||
7035 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
7036 | if test "x$LINE" != x ; then | |
7037 | eval "DEFAULT_$LINE" | |
7038 | else | |
7039 | no_cache=1 | |
7040 | fi | |
7041 | ||
7042 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
7043 | ||
7044 | fi | |
7045 | ||
7046 | ||
7047 | eval "$ac_cv_use_tbarnative" | |
7048 | if test "$no_cache" != 1; then | |
7049 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7050 | fi | |
7051 | ||
7052 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
7053 | echo "$ac_t""yes" 1>&6 | |
7054 | else | |
7055 | echo "$ac_t""no" 1>&6 | |
7056 | fi | |
7057 | ||
7058 | ||
7059 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 | |
7060 | echo "configure:7061: checking for --enable-tbarsmpl" >&5 | |
7061 | no_cache=0 | |
7062 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7063 | if test "${enable_tbarsmpl+set}" = set; then | |
7064 | enableval="$enable_tbarsmpl" | |
7065 | ||
7066 | if test "$enableval" = yes; then | |
7067 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7068 | else | |
7069 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7070 | fi | |
7071 | ||
7072 | else | |
7073 | ||
7074 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
7075 | if test "x$LINE" != x ; then | |
7076 | eval "DEFAULT_$LINE" | |
7077 | else | |
7078 | no_cache=1 | |
7079 | fi | |
7080 | ||
7081 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
7082 | ||
7083 | fi | |
7084 | ||
7085 | ||
7086 | eval "$ac_cv_use_tbarsmpl" | |
7087 | if test "$no_cache" != 1; then | |
7088 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7089 | fi | |
7090 | ||
7091 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
7092 | echo "$ac_t""yes" 1>&6 | |
7093 | else | |
7094 | echo "$ac_t""no" 1>&6 | |
7095 | fi | |
7096 | ||
7097 | ||
7098 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 | |
7099 | echo "configure:7100: checking for --enable-treectrl" >&5 | |
7100 | no_cache=0 | |
7101 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7102 | if test "${enable_treectrl+set}" = set; then | |
7103 | enableval="$enable_treectrl" | |
7104 | ||
7105 | if test "$enableval" = yes; then | |
7106 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7107 | else | |
7108 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7109 | fi | |
7110 | ||
7111 | else | |
7112 | ||
7113 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
7114 | if test "x$LINE" != x ; then | |
7115 | eval "DEFAULT_$LINE" | |
7116 | else | |
7117 | no_cache=1 | |
7118 | fi | |
7119 | ||
7120 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
7121 | ||
7122 | fi | |
7123 | ||
7124 | ||
7125 | eval "$ac_cv_use_treectrl" | |
7126 | if test "$no_cache" != 1; then | |
7127 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7128 | fi | |
7129 | ||
7130 | if test "$wxUSE_TREECTRL" = yes; then | |
7131 | echo "$ac_t""yes" 1>&6 | |
7132 | else | |
7133 | echo "$ac_t""no" 1>&6 | |
7134 | fi | |
7135 | ||
7136 | ||
7137 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 | |
7138 | echo "configure:7139: checking for --enable-tipwindow" >&5 | |
7139 | no_cache=0 | |
7140 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7141 | if test "${enable_tipwindow+set}" = set; then | |
7142 | enableval="$enable_tipwindow" | |
7143 | ||
7144 | if test "$enableval" = yes; then | |
7145 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7146 | else | |
7147 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7148 | fi | |
7149 | ||
7150 | else | |
7151 | ||
7152 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7153 | if test "x$LINE" != x ; then | |
7154 | eval "DEFAULT_$LINE" | |
7155 | else | |
7156 | no_cache=1 | |
7157 | fi | |
7158 | ||
7159 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7160 | ||
7161 | fi | |
7162 | ||
7163 | ||
7164 | eval "$ac_cv_use_tipwindow" | |
7165 | if test "$no_cache" != 1; then | |
7166 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7167 | fi | |
7168 | ||
7169 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7170 | echo "$ac_t""yes" 1>&6 | |
7171 | else | |
7172 | echo "$ac_t""no" 1>&6 | |
7173 | fi | |
7174 | ||
7175 | ||
7176 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 | |
7177 | echo "configure:7178: checking for --enable-popupwin" >&5 | |
7178 | no_cache=0 | |
7179 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7180 | if test "${enable_popupwin+set}" = set; then | |
7181 | enableval="$enable_popupwin" | |
7182 | ||
7183 | if test "$enableval" = yes; then | |
7184 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7185 | else | |
7186 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7187 | fi | |
7188 | ||
7189 | else | |
7190 | ||
7191 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
7192 | if test "x$LINE" != x ; then | |
7193 | eval "DEFAULT_$LINE" | |
7194 | else | |
7195 | no_cache=1 | |
7196 | fi | |
7197 | ||
7198 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7199 | ||
7200 | fi | |
7201 | ||
7202 | ||
7203 | eval "$ac_cv_use_popupwin" | |
7204 | if test "$no_cache" != 1; then | |
7205 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7206 | fi | |
7207 | ||
7208 | if test "$wxUSE_POPUPWIN" = yes; then | |
7209 | echo "$ac_t""yes" 1>&6 | |
7210 | else | |
7211 | echo "$ac_t""no" 1>&6 | |
7212 | fi | |
7213 | ||
7214 | ||
7215 | ||
7216 | ||
7217 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
7218 | echo "configure:7219: checking for --enable-commondlg" >&5 | |
7219 | no_cache=0 | |
7220 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7221 | if test "${enable_commondlg+set}" = set; then | |
7222 | enableval="$enable_commondlg" | |
7223 | ||
7224 | if test "$enableval" = yes; then | |
7225 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7226 | else | |
7227 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7228 | fi | |
7229 | ||
7230 | else | |
7231 | ||
7232 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7233 | if test "x$LINE" != x ; then | |
7234 | eval "DEFAULT_$LINE" | |
7235 | else | |
7236 | no_cache=1 | |
7237 | fi | |
7238 | ||
7239 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7240 | ||
7241 | fi | |
7242 | ||
7243 | ||
7244 | eval "$ac_cv_use_commondlg" | |
7245 | if test "$no_cache" != 1; then | |
7246 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7247 | fi | |
7248 | ||
7249 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7250 | echo "$ac_t""yes" 1>&6 | |
7251 | else | |
7252 | echo "$ac_t""no" 1>&6 | |
7253 | fi | |
7254 | ||
7255 | ||
7256 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
7257 | echo "configure:7258: checking for --enable-choicedlg" >&5 | |
7258 | no_cache=0 | |
7259 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7260 | if test "${enable_choicedlg+set}" = set; then | |
7261 | enableval="$enable_choicedlg" | |
7262 | ||
7263 | if test "$enableval" = yes; then | |
7264 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7265 | else | |
7266 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7267 | fi | |
7268 | ||
7269 | else | |
7270 | ||
7271 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7272 | if test "x$LINE" != x ; then | |
7273 | eval "DEFAULT_$LINE" | |
7274 | else | |
7275 | no_cache=1 | |
7276 | fi | |
7277 | ||
7278 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7279 | ||
7280 | fi | |
7281 | ||
7282 | ||
7283 | eval "$ac_cv_use_choicedlg" | |
7284 | if test "$no_cache" != 1; then | |
7285 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7286 | fi | |
7287 | ||
7288 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7289 | echo "$ac_t""yes" 1>&6 | |
7290 | else | |
7291 | echo "$ac_t""no" 1>&6 | |
7292 | fi | |
7293 | ||
7294 | ||
7295 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
7296 | echo "configure:7297: checking for --enable-coldlg" >&5 | |
7297 | no_cache=0 | |
7298 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7299 | if test "${enable_coldlg+set}" = set; then | |
7300 | enableval="$enable_coldlg" | |
7301 | ||
7302 | if test "$enableval" = yes; then | |
7303 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7304 | else | |
7305 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7306 | fi | |
7307 | ||
7308 | else | |
7309 | ||
7310 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7311 | if test "x$LINE" != x ; then | |
7312 | eval "DEFAULT_$LINE" | |
7313 | else | |
7314 | no_cache=1 | |
7315 | fi | |
7316 | ||
7317 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7318 | ||
7319 | fi | |
7320 | ||
7321 | ||
7322 | eval "$ac_cv_use_coldlg" | |
7323 | if test "$no_cache" != 1; then | |
7324 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7325 | fi | |
7326 | ||
7327 | if test "$wxUSE_COLOURDLG" = yes; then | |
7328 | echo "$ac_t""yes" 1>&6 | |
7329 | else | |
7330 | echo "$ac_t""no" 1>&6 | |
7331 | fi | |
7332 | ||
7333 | ||
7334 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
7335 | echo "configure:7336: checking for --enable-filedlg" >&5 | |
7336 | no_cache=0 | |
7337 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7338 | if test "${enable_filedlg+set}" = set; then | |
7339 | enableval="$enable_filedlg" | |
7340 | ||
7341 | if test "$enableval" = yes; then | |
7342 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7343 | else | |
7344 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7345 | fi | |
7346 | ||
7347 | else | |
7348 | ||
7349 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7350 | if test "x$LINE" != x ; then | |
7351 | eval "DEFAULT_$LINE" | |
7352 | else | |
7353 | no_cache=1 | |
7354 | fi | |
7355 | ||
7356 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7357 | ||
7358 | fi | |
7359 | ||
7360 | ||
7361 | eval "$ac_cv_use_filedlg" | |
7362 | if test "$no_cache" != 1; then | |
7363 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7364 | fi | |
7365 | ||
7366 | if test "$wxUSE_FILEDLG" = yes; then | |
7367 | echo "$ac_t""yes" 1>&6 | |
7368 | else | |
7369 | echo "$ac_t""no" 1>&6 | |
7370 | fi | |
7371 | ||
7372 | ||
7373 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 | |
7374 | echo "configure:7375: checking for --enable-finddlg" >&5 | |
7375 | no_cache=0 | |
7376 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
7377 | if test "${enable_finddlg+set}" = set; then | |
7378 | enableval="$enable_finddlg" | |
7379 | ||
7380 | if test "$enableval" = yes; then | |
7381 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
7382 | else | |
7383 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
7384 | fi | |
7385 | ||
7386 | else | |
7387 | ||
7388 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7389 | if test "x$LINE" != x ; then | |
7390 | eval "DEFAULT_$LINE" | |
7391 | else | |
7392 | no_cache=1 | |
7393 | fi | |
7394 | ||
7395 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
7396 | ||
7397 | fi | |
7398 | ||
7399 | ||
7400 | eval "$ac_cv_use_finddlg" | |
7401 | if test "$no_cache" != 1; then | |
7402 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
7403 | fi | |
7404 | ||
7405 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7406 | echo "$ac_t""yes" 1>&6 | |
7407 | else | |
7408 | echo "$ac_t""no" 1>&6 | |
7409 | fi | |
7410 | ||
7411 | ||
7412 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 | |
7413 | echo "configure:7414: checking for --enable-fontdlg" >&5 | |
7414 | no_cache=0 | |
7415 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7416 | if test "${enable_fontdlg+set}" = set; then | |
7417 | enableval="$enable_fontdlg" | |
7418 | ||
7419 | if test "$enableval" = yes; then | |
7420 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7421 | else | |
7422 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7423 | fi | |
7424 | ||
7425 | else | |
7426 | ||
7427 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7428 | if test "x$LINE" != x ; then | |
7429 | eval "DEFAULT_$LINE" | |
7430 | else | |
7431 | no_cache=1 | |
7432 | fi | |
7433 | ||
7434 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7435 | ||
7436 | fi | |
7437 | ||
7438 | ||
7439 | eval "$ac_cv_use_fontdlg" | |
7440 | if test "$no_cache" != 1; then | |
7441 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7442 | fi | |
7443 | ||
7444 | if test "$wxUSE_FONTDLG" = yes; then | |
7445 | echo "$ac_t""yes" 1>&6 | |
7446 | else | |
7447 | echo "$ac_t""no" 1>&6 | |
7448 | fi | |
7449 | ||
7450 | ||
7451 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
7452 | echo "configure:7453: checking for --enable-dirdlg" >&5 | |
7453 | no_cache=0 | |
7454 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7455 | if test "${enable_dirdlg+set}" = set; then | |
7456 | enableval="$enable_dirdlg" | |
7457 | ||
7458 | if test "$enableval" = yes; then | |
7459 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7460 | else | |
7461 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7462 | fi | |
7463 | ||
7464 | else | |
7465 | ||
7466 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7467 | if test "x$LINE" != x ; then | |
7468 | eval "DEFAULT_$LINE" | |
7469 | else | |
7470 | no_cache=1 | |
7471 | fi | |
7472 | ||
7473 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7474 | ||
7475 | fi | |
7476 | ||
7477 | ||
7478 | eval "$ac_cv_use_dirdlg" | |
7479 | if test "$no_cache" != 1; then | |
7480 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
7481 | fi | |
7482 | ||
7483 | if test "$wxUSE_DIRDLG" = yes; then | |
7484 | echo "$ac_t""yes" 1>&6 | |
7485 | else | |
7486 | echo "$ac_t""no" 1>&6 | |
7487 | fi | |
7488 | ||
7489 | ||
7490 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 | |
7491 | echo "configure:7492: checking for --enable-msgdlg" >&5 | |
7492 | no_cache=0 | |
7493 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
7494 | if test "${enable_msgdlg+set}" = set; then | |
7495 | enableval="$enable_msgdlg" | |
7496 | ||
7497 | if test "$enableval" = yes; then | |
7498 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
7499 | else | |
7500 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
7501 | fi | |
7502 | ||
7503 | else | |
7504 | ||
7505 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
7506 | if test "x$LINE" != x ; then | |
7507 | eval "DEFAULT_$LINE" | |
7508 | else | |
7509 | no_cache=1 | |
7510 | fi | |
7511 | ||
7512 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
7513 | ||
7514 | fi | |
7515 | ||
7516 | ||
7517 | eval "$ac_cv_use_msgdlg" | |
7518 | if test "$no_cache" != 1; then | |
7519 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
7520 | fi | |
7521 | ||
7522 | if test "$wxUSE_MSGDLG" = yes; then | |
7523 | echo "$ac_t""yes" 1>&6 | |
7524 | else | |
7525 | echo "$ac_t""no" 1>&6 | |
7526 | fi | |
7527 | ||
7528 | ||
7529 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 | |
7530 | echo "configure:7531: checking for --enable-numberdlg" >&5 | |
7531 | no_cache=0 | |
7532 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
7533 | if test "${enable_numberdlg+set}" = set; then | |
7534 | enableval="$enable_numberdlg" | |
7535 | ||
7536 | if test "$enableval" = yes; then | |
7537 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
7538 | else | |
7539 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
7540 | fi | |
7541 | ||
7542 | else | |
7543 | ||
7544 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
7545 | if test "x$LINE" != x ; then | |
7546 | eval "DEFAULT_$LINE" | |
7547 | else | |
7548 | no_cache=1 | |
7549 | fi | |
7550 | ||
7551 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
7552 | ||
7553 | fi | |
7554 | ||
7555 | ||
7556 | eval "$ac_cv_use_numberdlg" | |
7557 | if test "$no_cache" != 1; then | |
7558 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
7559 | fi | |
7560 | ||
7561 | if test "$wxUSE_NUMBERDLG" = yes; then | |
7562 | echo "$ac_t""yes" 1>&6 | |
7563 | else | |
7564 | echo "$ac_t""no" 1>&6 | |
7565 | fi | |
7566 | ||
7567 | ||
7568 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 | |
7569 | echo "configure:7570: checking for --enable-splash" >&5 | |
7570 | no_cache=0 | |
7571 | # Check whether --enable-splash or --disable-splash was given. | |
7572 | if test "${enable_splash+set}" = set; then | |
7573 | enableval="$enable_splash" | |
7574 | ||
7575 | if test "$enableval" = yes; then | |
7576 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7577 | else | |
7578 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7579 | fi | |
7580 | ||
7581 | else | |
7582 | ||
7583 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7584 | if test "x$LINE" != x ; then | |
7585 | eval "DEFAULT_$LINE" | |
7586 | else | |
7587 | no_cache=1 | |
7588 | fi | |
7589 | ||
7590 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7591 | ||
7592 | fi | |
7593 | ||
7594 | ||
7595 | eval "$ac_cv_use_splash" | |
7596 | if test "$no_cache" != 1; then | |
7597 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7598 | fi | |
7599 | ||
7600 | if test "$wxUSE_SPLASH" = yes; then | |
7601 | echo "$ac_t""yes" 1>&6 | |
7602 | else | |
7603 | echo "$ac_t""no" 1>&6 | |
7604 | fi | |
7605 | ||
7606 | ||
7607 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 | |
7608 | echo "configure:7609: checking for --enable-textdlg" >&5 | |
7609 | no_cache=0 | |
7610 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7611 | if test "${enable_textdlg+set}" = set; then | |
7612 | enableval="$enable_textdlg" | |
7613 | ||
7614 | if test "$enableval" = yes; then | |
7615 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7616 | else | |
7617 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7618 | fi | |
7619 | ||
7620 | else | |
7621 | ||
7622 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
7623 | if test "x$LINE" != x ; then | |
7624 | eval "DEFAULT_$LINE" | |
7625 | else | |
7626 | no_cache=1 | |
7627 | fi | |
7628 | ||
7629 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
7630 | ||
7631 | fi | |
7632 | ||
7633 | ||
7634 | eval "$ac_cv_use_textdlg" | |
7635 | if test "$no_cache" != 1; then | |
7636 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7637 | fi | |
7638 | ||
7639 | if test "$wxUSE_TEXTDLG" = yes; then | |
7640 | echo "$ac_t""yes" 1>&6 | |
7641 | else | |
7642 | echo "$ac_t""no" 1>&6 | |
7643 | fi | |
7644 | ||
7645 | ||
7646 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 | |
7647 | echo "configure:7648: checking for --enable-tipdlg" >&5 | |
7648 | no_cache=0 | |
7649 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7650 | if test "${enable_tipdlg+set}" = set; then | |
7651 | enableval="$enable_tipdlg" | |
7652 | ||
7653 | if test "$enableval" = yes; then | |
7654 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7655 | else | |
7656 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7657 | fi | |
7658 | ||
7659 | else | |
7660 | ||
7661 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
7662 | if test "x$LINE" != x ; then | |
7663 | eval "DEFAULT_$LINE" | |
7664 | else | |
7665 | no_cache=1 | |
7666 | fi | |
7667 | ||
7668 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
7669 | ||
7670 | fi | |
7671 | ||
7672 | ||
7673 | eval "$ac_cv_use_tipdlg" | |
7674 | if test "$no_cache" != 1; then | |
7675 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7676 | fi | |
7677 | ||
7678 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
7679 | echo "$ac_t""yes" 1>&6 | |
7680 | else | |
7681 | echo "$ac_t""no" 1>&6 | |
7682 | fi | |
7683 | ||
7684 | ||
7685 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 | |
7686 | echo "configure:7687: checking for --enable-progressdlg" >&5 | |
7687 | no_cache=0 | |
7688 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7689 | if test "${enable_progressdlg+set}" = set; then | |
7690 | enableval="$enable_progressdlg" | |
7691 | ||
7692 | if test "$enableval" = yes; then | |
7693 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7694 | else | |
7695 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7696 | fi | |
7697 | ||
7698 | else | |
7699 | ||
7700 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
7701 | if test "x$LINE" != x ; then | |
7702 | eval "DEFAULT_$LINE" | |
7703 | else | |
7704 | no_cache=1 | |
7705 | fi | |
7706 | ||
7707 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
7708 | ||
7709 | fi | |
7710 | ||
7711 | ||
7712 | eval "$ac_cv_use_progressdlg" | |
7713 | if test "$no_cache" != 1; then | |
7714 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7715 | fi | |
7716 | ||
7717 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
7718 | echo "$ac_t""yes" 1>&6 | |
7719 | else | |
7720 | echo "$ac_t""no" 1>&6 | |
7721 | fi | |
7722 | ||
7723 | ||
7724 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 | |
7725 | echo "configure:7726: checking for --enable-wizarddlg" >&5 | |
7726 | no_cache=0 | |
7727 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7728 | if test "${enable_wizarddlg+set}" = set; then | |
7729 | enableval="$enable_wizarddlg" | |
7730 | ||
7731 | if test "$enableval" = yes; then | |
7732 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7733 | else | |
7734 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7735 | fi | |
7736 | ||
7737 | else | |
7738 | ||
7739 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7740 | if test "x$LINE" != x ; then | |
7741 | eval "DEFAULT_$LINE" | |
7742 | else | |
7743 | no_cache=1 | |
7744 | fi | |
7745 | ||
7746 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7747 | ||
7748 | fi | |
7749 | ||
7750 | ||
7751 | eval "$ac_cv_use_wizarddlg" | |
7752 | if test "$no_cache" != 1; then | |
7753 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7754 | fi | |
7755 | ||
7756 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7757 | echo "$ac_t""yes" 1>&6 | |
7758 | else | |
7759 | echo "$ac_t""no" 1>&6 | |
7760 | fi | |
7761 | ||
7762 | ||
7763 | ||
7764 | ||
7765 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 | |
7766 | echo "configure:7767: checking for --enable-menus" >&5 | |
7767 | no_cache=0 | |
7768 | # Check whether --enable-menus or --disable-menus was given. | |
7769 | if test "${enable_menus+set}" = set; then | |
7770 | enableval="$enable_menus" | |
7771 | ||
7772 | if test "$enableval" = yes; then | |
7773 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7774 | else | |
7775 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7776 | fi | |
7777 | ||
7778 | else | |
7779 | ||
7780 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7781 | if test "x$LINE" != x ; then | |
7782 | eval "DEFAULT_$LINE" | |
7783 | else | |
7784 | no_cache=1 | |
7785 | fi | |
7786 | ||
7787 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7788 | ||
7789 | fi | |
7790 | ||
7791 | ||
7792 | eval "$ac_cv_use_menus" | |
7793 | if test "$no_cache" != 1; then | |
7794 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7795 | fi | |
7796 | ||
7797 | if test "$wxUSE_MENUS" = yes; then | |
7798 | echo "$ac_t""yes" 1>&6 | |
7799 | else | |
7800 | echo "$ac_t""no" 1>&6 | |
7801 | fi | |
7802 | ||
7803 | ||
7804 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 | |
7805 | echo "configure:7806: checking for --enable-miniframe" >&5 | |
7806 | no_cache=0 | |
7807 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7808 | if test "${enable_miniframe+set}" = set; then | |
7809 | enableval="$enable_miniframe" | |
7810 | ||
7811 | if test "$enableval" = yes; then | |
7812 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7813 | else | |
7814 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7815 | fi | |
7816 | ||
7817 | else | |
7818 | ||
7819 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
7820 | if test "x$LINE" != x ; then | |
7821 | eval "DEFAULT_$LINE" | |
7822 | else | |
7823 | no_cache=1 | |
7824 | fi | |
7825 | ||
7826 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
7827 | ||
7828 | fi | |
7829 | ||
7830 | ||
7831 | eval "$ac_cv_use_miniframe" | |
7832 | if test "$no_cache" != 1; then | |
7833 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7834 | fi | |
7835 | ||
7836 | if test "$wxUSE_MINIFRAME" = yes; then | |
7837 | echo "$ac_t""yes" 1>&6 | |
7838 | else | |
7839 | echo "$ac_t""no" 1>&6 | |
7840 | fi | |
7841 | ||
7842 | ||
7843 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 | |
7844 | echo "configure:7845: checking for --enable-tooltips" >&5 | |
7845 | no_cache=0 | |
7846 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7847 | if test "${enable_tooltips+set}" = set; then | |
7848 | enableval="$enable_tooltips" | |
7849 | ||
7850 | if test "$enableval" = yes; then | |
7851 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7852 | else | |
7853 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7854 | fi | |
7855 | ||
7856 | else | |
7857 | ||
7858 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
7859 | if test "x$LINE" != x ; then | |
7860 | eval "DEFAULT_$LINE" | |
7861 | else | |
7862 | no_cache=1 | |
7863 | fi | |
7864 | ||
7865 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
7866 | ||
7867 | fi | |
7868 | ||
7869 | ||
7870 | eval "$ac_cv_use_tooltips" | |
7871 | if test "$no_cache" != 1; then | |
7872 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7873 | fi | |
7874 | ||
7875 | if test "$wxUSE_TOOLTIPS" = yes; then | |
7876 | echo "$ac_t""yes" 1>&6 | |
7877 | else | |
7878 | echo "$ac_t""no" 1>&6 | |
7879 | fi | |
7880 | ||
7881 | ||
7882 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 | |
7883 | echo "configure:7884: checking for --enable-splines" >&5 | |
7884 | no_cache=0 | |
7885 | # Check whether --enable-splines or --disable-splines was given. | |
7886 | if test "${enable_splines+set}" = set; then | |
7887 | enableval="$enable_splines" | |
7888 | ||
7889 | if test "$enableval" = yes; then | |
7890 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7891 | else | |
7892 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7893 | fi | |
7894 | ||
7895 | else | |
7896 | ||
7897 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
7898 | if test "x$LINE" != x ; then | |
7899 | eval "DEFAULT_$LINE" | |
7900 | else | |
7901 | no_cache=1 | |
7902 | fi | |
7903 | ||
7904 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
7905 | ||
7906 | fi | |
7907 | ||
7908 | ||
7909 | eval "$ac_cv_use_splines" | |
7910 | if test "$no_cache" != 1; then | |
7911 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7912 | fi | |
7913 | ||
7914 | if test "$wxUSE_SPLINES" = yes; then | |
7915 | echo "$ac_t""yes" 1>&6 | |
7916 | else | |
7917 | echo "$ac_t""no" 1>&6 | |
7918 | fi | |
7919 | ||
7920 | ||
7921 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 | |
7922 | echo "configure:7923: checking for --enable-validators" >&5 | |
7923 | no_cache=0 | |
7924 | # Check whether --enable-validators or --disable-validators was given. | |
7925 | if test "${enable_validators+set}" = set; then | |
7926 | enableval="$enable_validators" | |
7927 | ||
7928 | if test "$enableval" = yes; then | |
7929 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7930 | else | |
7931 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7932 | fi | |
7933 | ||
7934 | else | |
7935 | ||
7936 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
7937 | if test "x$LINE" != x ; then | |
7938 | eval "DEFAULT_$LINE" | |
7939 | else | |
7940 | no_cache=1 | |
7941 | fi | |
7942 | ||
7943 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
7944 | ||
7945 | fi | |
7946 | ||
7947 | ||
7948 | eval "$ac_cv_use_validators" | |
7949 | if test "$no_cache" != 1; then | |
7950 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7951 | fi | |
7952 | ||
7953 | if test "$wxUSE_VALIDATORS" = yes; then | |
7954 | echo "$ac_t""yes" 1>&6 | |
7955 | else | |
7956 | echo "$ac_t""no" 1>&6 | |
7957 | fi | |
7958 | ||
7959 | ||
7960 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 | |
7961 | echo "configure:7962: checking for --enable-busyinfo" >&5 | |
7962 | no_cache=0 | |
7963 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7964 | if test "${enable_busyinfo+set}" = set; then | |
7965 | enableval="$enable_busyinfo" | |
7966 | ||
7967 | if test "$enableval" = yes; then | |
7968 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7969 | else | |
7970 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7971 | fi | |
7972 | ||
7973 | else | |
7974 | ||
7975 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
7976 | if test "x$LINE" != x ; then | |
7977 | eval "DEFAULT_$LINE" | |
7978 | else | |
7979 | no_cache=1 | |
7980 | fi | |
7981 | ||
7982 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
7983 | ||
7984 | fi | |
7985 | ||
7986 | ||
7987 | eval "$ac_cv_use_busyinfo" | |
7988 | if test "$no_cache" != 1; then | |
7989 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7990 | fi | |
7991 | ||
7992 | if test "$wxUSE_BUSYINFO" = yes; then | |
7993 | echo "$ac_t""yes" 1>&6 | |
7994 | else | |
7995 | echo "$ac_t""no" 1>&6 | |
7996 | fi | |
7997 | ||
7998 | ||
7999 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 | |
8000 | echo "configure:8001: checking for --enable-joystick" >&5 | |
8001 | no_cache=0 | |
8002 | # Check whether --enable-joystick or --disable-joystick was given. | |
8003 | if test "${enable_joystick+set}" = set; then | |
8004 | enableval="$enable_joystick" | |
8005 | ||
8006 | if test "$enableval" = yes; then | |
8007 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8008 | else | |
8009 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8010 | fi | |
8011 | ||
8012 | else | |
8013 | ||
8014 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
8015 | if test "x$LINE" != x ; then | |
8016 | eval "DEFAULT_$LINE" | |
8017 | else | |
8018 | no_cache=1 | |
8019 | fi | |
8020 | ||
8021 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
8022 | ||
8023 | fi | |
8024 | ||
8025 | ||
8026 | eval "$ac_cv_use_joystick" | |
8027 | if test "$no_cache" != 1; then | |
8028 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8029 | fi | |
8030 | ||
8031 | if test "$wxUSE_JOYSTICK" = yes; then | |
8032 | echo "$ac_t""yes" 1>&6 | |
8033 | else | |
8034 | echo "$ac_t""no" 1>&6 | |
8035 | fi | |
8036 | ||
8037 | ||
8038 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 | |
8039 | echo "configure:8040: checking for --enable-metafile" >&5 | |
8040 | no_cache=0 | |
8041 | # Check whether --enable-metafile or --disable-metafile was given. | |
8042 | if test "${enable_metafile+set}" = set; then | |
8043 | enableval="$enable_metafile" | |
8044 | ||
8045 | if test "$enableval" = yes; then | |
8046 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8047 | else | |
8048 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8049 | fi | |
8050 | ||
8051 | else | |
8052 | ||
8053 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8054 | if test "x$LINE" != x ; then | |
8055 | eval "DEFAULT_$LINE" | |
8056 | else | |
8057 | no_cache=1 | |
8058 | fi | |
8059 | ||
8060 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8061 | ||
8062 | fi | |
8063 | ||
8064 | ||
8065 | eval "$ac_cv_use_metafile" | |
8066 | if test "$no_cache" != 1; then | |
8067 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8068 | fi | |
8069 | ||
8070 | if test "$wxUSE_METAFILE" = yes; then | |
8071 | echo "$ac_t""yes" 1>&6 | |
8072 | else | |
8073 | echo "$ac_t""no" 1>&6 | |
8074 | fi | |
8075 | ||
8076 | ||
8077 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 | |
8078 | echo "configure:8079: checking for --enable-dragimage" >&5 | |
8079 | no_cache=0 | |
8080 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8081 | if test "${enable_dragimage+set}" = set; then | |
8082 | enableval="$enable_dragimage" | |
8083 | ||
8084 | if test "$enableval" = yes; then | |
8085 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8086 | else | |
8087 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8088 | fi | |
8089 | ||
8090 | else | |
8091 | ||
8092 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8093 | if test "x$LINE" != x ; then | |
8094 | eval "DEFAULT_$LINE" | |
8095 | else | |
8096 | no_cache=1 | |
8097 | fi | |
8098 | ||
8099 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8100 | ||
8101 | fi | |
8102 | ||
8103 | ||
8104 | eval "$ac_cv_use_dragimage" | |
8105 | if test "$no_cache" != 1; then | |
8106 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8107 | fi | |
8108 | ||
8109 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8110 | echo "$ac_t""yes" 1>&6 | |
8111 | else | |
8112 | echo "$ac_t""no" 1>&6 | |
8113 | fi | |
8114 | ||
8115 | ||
8116 | ||
8117 | ||
8118 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 | |
8119 | echo "configure:8120: checking for --enable-palette" >&5 | |
8120 | no_cache=0 | |
8121 | # Check whether --enable-palette or --disable-palette was given. | |
8122 | if test "${enable_palette+set}" = set; then | |
8123 | enableval="$enable_palette" | |
8124 | ||
8125 | if test "$enableval" = yes; then | |
8126 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8127 | else | |
8128 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8129 | fi | |
8130 | ||
8131 | else | |
8132 | ||
8133 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8134 | if test "x$LINE" != x ; then | |
8135 | eval "DEFAULT_$LINE" | |
8136 | else | |
8137 | no_cache=1 | |
8138 | fi | |
8139 | ||
8140 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8141 | ||
8142 | fi | |
8143 | ||
8144 | ||
8145 | eval "$ac_cv_use_palette" | |
8146 | if test "$no_cache" != 1; then | |
8147 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8148 | fi | |
8149 | ||
8150 | if test "$wxUSE_PALETTE" = yes; then | |
8151 | echo "$ac_t""yes" 1>&6 | |
8152 | else | |
8153 | echo "$ac_t""no" 1>&6 | |
8154 | fi | |
8155 | ||
8156 | ||
8157 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
8158 | echo "configure:8159: checking for --enable-image" >&5 | |
8159 | no_cache=0 | |
8160 | # Check whether --enable-image or --disable-image was given. | |
8161 | if test "${enable_image+set}" = set; then | |
8162 | enableval="$enable_image" | |
8163 | ||
8164 | if test "$enableval" = yes; then | |
8165 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8166 | else | |
8167 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8168 | fi | |
8169 | ||
8170 | else | |
8171 | ||
8172 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
8173 | if test "x$LINE" != x ; then | |
8174 | eval "DEFAULT_$LINE" | |
8175 | else | |
8176 | no_cache=1 | |
8177 | fi | |
8178 | ||
8179 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
8180 | ||
8181 | fi | |
8182 | ||
8183 | ||
8184 | eval "$ac_cv_use_image" | |
8185 | if test "$no_cache" != 1; then | |
8186 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8187 | fi | |
8188 | ||
8189 | if test "$wxUSE_IMAGE" = yes; then | |
8190 | echo "$ac_t""yes" 1>&6 | |
8191 | else | |
8192 | echo "$ac_t""no" 1>&6 | |
8193 | fi | |
8194 | ||
8195 | ||
8196 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 | |
8197 | echo "configure:8198: checking for --enable-gif" >&5 | |
8198 | no_cache=0 | |
8199 | # Check whether --enable-gif or --disable-gif was given. | |
8200 | if test "${enable_gif+set}" = set; then | |
8201 | enableval="$enable_gif" | |
8202 | ||
8203 | if test "$enableval" = yes; then | |
8204 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8205 | else | |
8206 | ac_cv_use_gif='wxUSE_GIF=no' | |
8207 | fi | |
8208 | ||
8209 | else | |
8210 | ||
8211 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
8212 | if test "x$LINE" != x ; then | |
8213 | eval "DEFAULT_$LINE" | |
8214 | else | |
8215 | no_cache=1 | |
8216 | fi | |
8217 | ||
8218 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
8219 | ||
8220 | fi | |
8221 | ||
8222 | ||
8223 | eval "$ac_cv_use_gif" | |
8224 | if test "$no_cache" != 1; then | |
8225 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8226 | fi | |
8227 | ||
8228 | if test "$wxUSE_GIF" = yes; then | |
8229 | echo "$ac_t""yes" 1>&6 | |
8230 | else | |
8231 | echo "$ac_t""no" 1>&6 | |
8232 | fi | |
8233 | ||
8234 | ||
8235 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 | |
8236 | echo "configure:8237: checking for --enable-pcx" >&5 | |
8237 | no_cache=0 | |
8238 | # Check whether --enable-pcx or --disable-pcx was given. | |
8239 | if test "${enable_pcx+set}" = set; then | |
8240 | enableval="$enable_pcx" | |
8241 | ||
8242 | if test "$enableval" = yes; then | |
8243 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8244 | else | |
8245 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8246 | fi | |
8247 | ||
8248 | else | |
8249 | ||
8250 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
8251 | if test "x$LINE" != x ; then | |
8252 | eval "DEFAULT_$LINE" | |
8253 | else | |
8254 | no_cache=1 | |
8255 | fi | |
8256 | ||
8257 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
8258 | ||
8259 | fi | |
8260 | ||
8261 | ||
8262 | eval "$ac_cv_use_pcx" | |
8263 | if test "$no_cache" != 1; then | |
8264 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8265 | fi | |
8266 | ||
8267 | if test "$wxUSE_PCX" = yes; then | |
8268 | echo "$ac_t""yes" 1>&6 | |
8269 | else | |
8270 | echo "$ac_t""no" 1>&6 | |
8271 | fi | |
8272 | ||
8273 | ||
8274 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 | |
8275 | echo "configure:8276: checking for --enable-iff" >&5 | |
8276 | no_cache=0 | |
8277 | # Check whether --enable-iff or --disable-iff was given. | |
8278 | if test "${enable_iff+set}" = set; then | |
8279 | enableval="$enable_iff" | |
8280 | ||
8281 | if test "$enableval" = yes; then | |
8282 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8283 | else | |
8284 | ac_cv_use_iff='wxUSE_IFF=no' | |
8285 | fi | |
8286 | ||
8287 | else | |
8288 | ||
8289 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8290 | if test "x$LINE" != x ; then | |
8291 | eval "DEFAULT_$LINE" | |
8292 | else | |
8293 | no_cache=1 | |
8294 | fi | |
8295 | ||
8296 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8297 | ||
8298 | fi | |
8299 | ||
8300 | ||
8301 | eval "$ac_cv_use_iff" | |
8302 | if test "$no_cache" != 1; then | |
8303 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8304 | fi | |
8305 | ||
8306 | if test "$wxUSE_IFF" = yes; then | |
8307 | echo "$ac_t""yes" 1>&6 | |
8308 | else | |
8309 | echo "$ac_t""no" 1>&6 | |
8310 | fi | |
8311 | ||
8312 | ||
8313 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 | |
8314 | echo "configure:8315: checking for --enable-pnm" >&5 | |
8315 | no_cache=0 | |
8316 | # Check whether --enable-pnm or --disable-pnm was given. | |
8317 | if test "${enable_pnm+set}" = set; then | |
8318 | enableval="$enable_pnm" | |
8319 | ||
8320 | if test "$enableval" = yes; then | |
8321 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8322 | else | |
8323 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8324 | fi | |
8325 | ||
8326 | else | |
8327 | ||
8328 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
8329 | if test "x$LINE" != x ; then | |
8330 | eval "DEFAULT_$LINE" | |
8331 | else | |
8332 | no_cache=1 | |
8333 | fi | |
8334 | ||
8335 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
8336 | ||
8337 | fi | |
8338 | ||
8339 | ||
8340 | eval "$ac_cv_use_pnm" | |
8341 | if test "$no_cache" != 1; then | |
8342 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8343 | fi | |
8344 | ||
8345 | if test "$wxUSE_PNM" = yes; then | |
8346 | echo "$ac_t""yes" 1>&6 | |
8347 | else | |
8348 | echo "$ac_t""no" 1>&6 | |
8349 | fi | |
8350 | ||
8351 | ||
8352 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 | |
8353 | echo "configure:8354: checking for --enable-xpm" >&5 | |
8354 | no_cache=0 | |
8355 | # Check whether --enable-xpm or --disable-xpm was given. | |
8356 | if test "${enable_xpm+set}" = set; then | |
8357 | enableval="$enable_xpm" | |
8358 | ||
8359 | if test "$enableval" = yes; then | |
8360 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
8361 | else | |
8362 | ac_cv_use_xpm='wxUSE_XPM=no' | |
8363 | fi | |
8364 | ||
8365 | else | |
8366 | ||
8367 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
8368 | if test "x$LINE" != x ; then | |
8369 | eval "DEFAULT_$LINE" | |
8370 | else | |
8371 | no_cache=1 | |
8372 | fi | |
8373 | ||
8374 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
8375 | ||
8376 | fi | |
8377 | ||
8378 | ||
8379 | eval "$ac_cv_use_xpm" | |
8380 | if test "$no_cache" != 1; then | |
8381 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
8382 | fi | |
8383 | ||
8384 | if test "$wxUSE_XPM" = yes; then | |
8385 | echo "$ac_t""yes" 1>&6 | |
8386 | else | |
8387 | echo "$ac_t""no" 1>&6 | |
8388 | fi | |
8389 | ||
8390 | ||
8391 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 | |
8392 | echo "configure:8393: checking for --enable-ico_cur" >&5 | |
8393 | no_cache=0 | |
8394 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
8395 | if test "${enable_ico_cur+set}" = set; then | |
8396 | enableval="$enable_ico_cur" | |
8397 | ||
8398 | if test "$enableval" = yes; then | |
8399 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
8400 | else | |
8401 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
8402 | fi | |
8403 | ||
8404 | else | |
8405 | ||
8406 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8407 | if test "x$LINE" != x ; then | |
8408 | eval "DEFAULT_$LINE" | |
8409 | else | |
8410 | no_cache=1 | |
8411 | fi | |
8412 | ||
8413 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
8414 | ||
8415 | fi | |
8416 | ||
8417 | ||
8418 | eval "$ac_cv_use_ico_cur" | |
8419 | if test "$no_cache" != 1; then | |
8420 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
8421 | fi | |
8422 | ||
8423 | if test "$wxUSE_ICO_CUR" = yes; then | |
8424 | echo "$ac_t""yes" 1>&6 | |
8425 | else | |
8426 | echo "$ac_t""no" 1>&6 | |
8427 | fi | |
8428 | ||
8429 | ||
8430 | fi | |
8431 | ||
8432 | case "${host}" in | |
8433 | *-pc-os2_emx | *-pc-os2-emx ) | |
8434 | LEX_STEM="lexyy" | |
8435 | ;; | |
8436 | *) | |
8437 | PATH_IFS=':' | |
8438 | LEX_STEM="lex.yy" | |
8439 | ;; | |
8440 | esac | |
8441 | ||
8442 | ||
8443 | ||
8444 | echo "saving argument cache $wx_arg_cache_file" | |
8445 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
8446 | ||
8447 | ||
8448 | ||
8449 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
8450 | echo "configure:8451: checking for toolkit" >&5 | |
8451 | ||
8452 | if test "$wxUSE_GUI" = "yes"; then | |
8453 | ||
8454 | if test "$USE_BEOS" = 1; then | |
8455 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8456 | fi | |
8457 | ||
8458 | if test "$TOOLKIT_GIVEN" = 1; then | |
8459 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8460 | var=wxUSE_$toolkit | |
8461 | eval "value=\$${var}" | |
8462 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8463 | done | |
8464 | else | |
8465 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8466 | if test "$has_toolkit_in_cache" != 1; then | |
8467 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8468 | else | |
8469 | var=DEFAULT_wxUSE_$toolkit | |
8470 | fi | |
8471 | eval "wxUSE_$toolkit=\$${var}" | |
8472 | done | |
8473 | fi | |
8474 | ||
8475 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ | |
8476 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` | |
8477 | ||
8478 | case "${host}" in | |
8479 | *-pc-os2_emx | *-pc-os2-emx ) | |
8480 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
8481 | esac | |
8482 | ||
8483 | case "$NUM_TOOLKITS" in | |
8484 | 1) | |
8485 | ;; | |
8486 | 0) | |
8487 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8488 | ;; | |
8489 | *) | |
8490 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8491 | esac | |
8492 | ||
8493 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8494 | var=wxUSE_$toolkit | |
8495 | eval "value=\$${var}" | |
8496 | if test "x$value" != x; then | |
8497 | cache_var=CACHE_$toolkit | |
8498 | eval "cache=\$${cache_var}" | |
8499 | if test "$cache" = 1; then | |
8500 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8501 | fi | |
8502 | if test "$value" = 1; then | |
8503 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8504 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8505 | fi | |
8506 | fi | |
8507 | done | |
8508 | else | |
8509 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 | |
8510 | fi | |
8511 | ||
8512 | ||
8513 | cat > confcache <<\EOF | |
8514 | # This file is a shell script that caches the results of configure | |
8515 | # tests run on this system so they can be shared between configure | |
8516 | # scripts and configure runs. It is not useful on other systems. | |
8517 | # If it contains results you don't want to keep, you may remove or edit it. | |
8518 | # | |
8519 | # By default, configure uses ./config.cache as the cache file, | |
8520 | # creating it if it does not exist already. You can give configure | |
8521 | # the --cache-file=FILE option to use a different cache file; that is | |
8522 | # what configure does when it calls configure scripts in | |
8523 | # subdirectories, so they share the cache. | |
8524 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8525 | # config.status only pays attention to the cache file if you give it the | |
8526 | # --recheck option to rerun configure. | |
8527 | # | |
8528 | EOF | |
8529 | # The following way of writing the cache mishandles newlines in values, | |
8530 | # but we know of no workaround that is simple, portable, and efficient. | |
8531 | # So, don't put newlines in cache variables' values. | |
8532 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8533 | # and sets the high bit in the cache file unless we assign to the vars. | |
8534 | (set) 2>&1 | | |
8535 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8536 | *ac_space=\ *) | |
8537 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8538 | # turns \\\\ into \\, and sed turns \\ into \). | |
8539 | sed -n \ | |
8540 | -e "s/'/'\\\\''/g" \ | |
8541 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8542 | ;; | |
8543 | *) | |
8544 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8545 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8546 | ;; | |
8547 | esac >> confcache | |
8548 | if cmp -s $cache_file confcache; then | |
8549 | : | |
8550 | else | |
8551 | if test -w $cache_file; then | |
8552 | echo "updating cache $cache_file" | |
8553 | cat confcache > $cache_file | |
8554 | else | |
8555 | echo "not updating unwritable cache $cache_file" | |
8556 | fi | |
8557 | fi | |
8558 | rm -f confcache | |
8559 | ||
8560 | ||
8561 | if test "$build" != "$host" ; then | |
8562 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
8563 | CC=$host_alias-gcc | |
8564 | CXX=$host_alias-c++ | |
8565 | AR=$host_alias-ar | |
8566 | RANLIB=$host_alias-ranlib | |
8567 | DLLTOOL=$host_alias-dlltool | |
8568 | RESCOMP=$host_alias-windres | |
8569 | LD=$host_alias-ld | |
8570 | NM=$host_alias-nm | |
8571 | STRIP=$host_alias-strip | |
8572 | else | |
8573 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8574 | fi | |
8575 | fi | |
8576 | ||
8577 | CFLAGS=${CFLAGS:=} | |
8578 | # Extract the first word of "gcc", so it can be a program name with args. | |
8579 | set dummy gcc; ac_word=$2 | |
8580 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8581 | echo "configure:8582: checking for $ac_word" >&5 | |
8582 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
8583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8584 | else | |
8585 | if test -n "$CC"; then | |
8586 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8587 | else | |
8588 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8589 | ac_dummy="$PATH" | |
8590 | for ac_dir in $ac_dummy; do | |
8591 | test -z "$ac_dir" && ac_dir=. | |
8592 | if test -f $ac_dir/$ac_word; then | |
8593 | ac_cv_prog_CC="gcc" | |
8594 | break | |
8595 | fi | |
8596 | done | |
8597 | IFS="$ac_save_ifs" | |
8598 | fi | |
8599 | fi | |
8600 | CC="$ac_cv_prog_CC" | |
8601 | if test -n "$CC"; then | |
8602 | echo "$ac_t""$CC" 1>&6 | |
8603 | else | |
8604 | echo "$ac_t""no" 1>&6 | |
8605 | fi | |
8606 | ||
8607 | if test -z "$CC"; then | |
8608 | # Extract the first word of "cc", so it can be a program name with args. | |
8609 | set dummy cc; ac_word=$2 | |
8610 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8611 | echo "configure:8612: checking for $ac_word" >&5 | |
8612 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
8613 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8614 | else | |
8615 | if test -n "$CC"; then | |
8616 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8617 | else | |
8618 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8619 | ac_prog_rejected=no | |
8620 | ac_dummy="$PATH" | |
8621 | for ac_dir in $ac_dummy; do | |
8622 | test -z "$ac_dir" && ac_dir=. | |
8623 | if test -f $ac_dir/$ac_word; then | |
8624 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8625 | ac_prog_rejected=yes | |
8626 | continue | |
8627 | fi | |
8628 | ac_cv_prog_CC="cc" | |
8629 | break | |
8630 | fi | |
8631 | done | |
8632 | IFS="$ac_save_ifs" | |
8633 | if test $ac_prog_rejected = yes; then | |
8634 | # We found a bogon in the path, so make sure we never use it. | |
8635 | set dummy $ac_cv_prog_CC | |
8636 | shift | |
8637 | if test $# -gt 0; then | |
8638 | # We chose a different compiler from the bogus one. | |
8639 | # However, it has the same basename, so the bogon will be chosen | |
8640 | # first if we set CC to just the basename; use the full file name. | |
8641 | shift | |
8642 | set dummy "$ac_dir/$ac_word" "$@" | |
8643 | shift | |
8644 | ac_cv_prog_CC="$@" | |
8645 | fi | |
8646 | fi | |
8647 | fi | |
8648 | fi | |
8649 | CC="$ac_cv_prog_CC" | |
8650 | if test -n "$CC"; then | |
8651 | echo "$ac_t""$CC" 1>&6 | |
8652 | else | |
8653 | echo "$ac_t""no" 1>&6 | |
8654 | fi | |
8655 | ||
8656 | if test -z "$CC"; then | |
8657 | case "`uname -s`" in | |
8658 | *win32* | *WIN32*) | |
8659 | # Extract the first word of "cl", so it can be a program name with args. | |
8660 | set dummy cl; ac_word=$2 | |
8661 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8662 | echo "configure:8663: checking for $ac_word" >&5 | |
8663 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
8664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8665 | else | |
8666 | if test -n "$CC"; then | |
8667 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8668 | else | |
8669 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8670 | ac_dummy="$PATH" | |
8671 | for ac_dir in $ac_dummy; do | |
8672 | test -z "$ac_dir" && ac_dir=. | |
8673 | if test -f $ac_dir/$ac_word; then | |
8674 | ac_cv_prog_CC="cl" | |
8675 | break | |
8676 | fi | |
8677 | done | |
8678 | IFS="$ac_save_ifs" | |
8679 | fi | |
8680 | fi | |
8681 | CC="$ac_cv_prog_CC" | |
8682 | if test -n "$CC"; then | |
8683 | echo "$ac_t""$CC" 1>&6 | |
8684 | else | |
8685 | echo "$ac_t""no" 1>&6 | |
8686 | fi | |
8687 | ;; | |
8688 | esac | |
8689 | fi | |
8690 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
8691 | fi | |
8692 | ||
8693 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
8694 | echo "configure:8695: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
8695 | ||
8696 | ac_ext=c | |
8697 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8698 | ac_cpp='$CPP $CPPFLAGS' | |
8699 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8700 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8701 | cross_compiling=$ac_cv_prog_cc_cross | |
8702 | ||
8703 | cat > conftest.$ac_ext << EOF | |
8704 | ||
8705 | #line 8706 "configure" | |
8706 | #include "confdefs.h" | |
8707 | ||
8708 | main(){return(0);} | |
8709 | EOF | |
8710 | if { (eval echo configure:8711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8711 | ac_cv_prog_cc_works=yes | |
8712 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8713 | if (./conftest; exit) 2>/dev/null; then | |
8714 | ac_cv_prog_cc_cross=no | |
8715 | else | |
8716 | ac_cv_prog_cc_cross=yes | |
8717 | fi | |
8718 | else | |
8719 | echo "configure: failed program was:" >&5 | |
8720 | cat conftest.$ac_ext >&5 | |
8721 | ac_cv_prog_cc_works=no | |
8722 | fi | |
8723 | rm -fr conftest* | |
8724 | ac_ext=c | |
8725 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8726 | ac_cpp='$CPP $CPPFLAGS' | |
8727 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8728 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8729 | cross_compiling=$ac_cv_prog_cc_cross | |
8730 | ||
8731 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8732 | if test $ac_cv_prog_cc_works = no; then | |
8733 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8734 | fi | |
8735 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
8736 | echo "configure:8737: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
8737 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
8738 | cross_compiling=$ac_cv_prog_cc_cross | |
8739 | ||
8740 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
8741 | echo "configure:8742: checking whether we are using GNU C" >&5 | |
8742 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
8743 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8744 | else | |
8745 | cat > conftest.c <<EOF | |
8746 | #ifdef __GNUC__ | |
8747 | yes; | |
8748 | #endif | |
8749 | EOF | |
8750 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
8751 | ac_cv_prog_gcc=yes | |
8752 | else | |
8753 | ac_cv_prog_gcc=no | |
8754 | fi | |
8755 | fi | |
8756 | ||
8757 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
8758 | ||
8759 | if test $ac_cv_prog_gcc = yes; then | |
8760 | GCC=yes | |
8761 | else | |
8762 | GCC= | |
8763 | fi | |
8764 | ||
8765 | ac_test_CFLAGS="${CFLAGS+set}" | |
8766 | ac_save_CFLAGS="$CFLAGS" | |
8767 | CFLAGS= | |
8768 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
8769 | echo "configure:8770: checking whether ${CC-cc} accepts -g" >&5 | |
8770 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
8771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8772 | else | |
8773 | echo 'void f(){}' > conftest.c | |
8774 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
8775 | ac_cv_prog_cc_g=yes | |
8776 | else | |
8777 | ac_cv_prog_cc_g=no | |
8778 | fi | |
8779 | rm -f conftest* | |
8780 | ||
8781 | fi | |
8782 | ||
8783 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
8784 | if test "$ac_test_CFLAGS" = set; then | |
8785 | CFLAGS="$ac_save_CFLAGS" | |
8786 | elif test $ac_cv_prog_cc_g = yes; then | |
8787 | if test "$GCC" = yes; then | |
8788 | CFLAGS="-g -O2" | |
8789 | else | |
8790 | CFLAGS="-g" | |
8791 | fi | |
8792 | else | |
8793 | if test "$GCC" = yes; then | |
8794 | CFLAGS="-O2" | |
8795 | else | |
8796 | CFLAGS= | |
8797 | fi | |
8798 | fi | |
8799 | ||
8800 | ||
8801 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
8802 | echo "configure:8803: checking how to run the C preprocessor" >&5 | |
8803 | # On Suns, sometimes $CPP names a directory. | |
8804 | if test -n "$CPP" && test -d "$CPP"; then | |
8805 | CPP= | |
8806 | fi | |
8807 | if test -z "$CPP"; then | |
8808 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
8809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8810 | else | |
8811 | # This must be in double quotes, not single quotes, because CPP may get | |
8812 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8813 | CPP="${CC-cc} -E" | |
8814 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8815 | # not just through cpp. | |
8816 | cat > conftest.$ac_ext <<EOF | |
8817 | #line 8818 "configure" | |
8818 | #include "confdefs.h" | |
8819 | #include <assert.h> | |
8820 | Syntax Error | |
8821 | EOF | |
8822 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8823 | { (eval echo configure:8824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8824 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8825 | if test -z "$ac_err"; then | |
8826 | : | |
8827 | else | |
8828 | echo "$ac_err" >&5 | |
8829 | echo "configure: failed program was:" >&5 | |
8830 | cat conftest.$ac_ext >&5 | |
8831 | rm -rf conftest* | |
8832 | CPP="${CC-cc} -E -traditional-cpp" | |
8833 | cat > conftest.$ac_ext <<EOF | |
8834 | #line 8835 "configure" | |
8835 | #include "confdefs.h" | |
8836 | #include <assert.h> | |
8837 | Syntax Error | |
8838 | EOF | |
8839 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8840 | { (eval echo configure:8841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8841 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8842 | if test -z "$ac_err"; then | |
8843 | : | |
8844 | else | |
8845 | echo "$ac_err" >&5 | |
8846 | echo "configure: failed program was:" >&5 | |
8847 | cat conftest.$ac_ext >&5 | |
8848 | rm -rf conftest* | |
8849 | CPP="${CC-cc} -nologo -E" | |
8850 | cat > conftest.$ac_ext <<EOF | |
8851 | #line 8852 "configure" | |
8852 | #include "confdefs.h" | |
8853 | #include <assert.h> | |
8854 | Syntax Error | |
8855 | EOF | |
8856 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8857 | { (eval echo configure:8858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8858 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8859 | if test -z "$ac_err"; then | |
8860 | : | |
8861 | else | |
8862 | echo "$ac_err" >&5 | |
8863 | echo "configure: failed program was:" >&5 | |
8864 | cat conftest.$ac_ext >&5 | |
8865 | rm -rf conftest* | |
8866 | CPP=/lib/cpp | |
8867 | fi | |
8868 | rm -f conftest* | |
8869 | fi | |
8870 | rm -f conftest* | |
8871 | fi | |
8872 | rm -f conftest* | |
8873 | ac_cv_prog_CPP="$CPP" | |
8874 | fi | |
8875 | CPP="$ac_cv_prog_CPP" | |
8876 | else | |
8877 | ac_cv_prog_CPP="$CPP" | |
8878 | fi | |
8879 | echo "$ac_t""$CPP" 1>&6 | |
8880 | ||
8881 | if test $ac_cv_prog_gcc = yes; then | |
8882 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
8883 | echo "configure:8884: checking whether ${CC-cc} needs -traditional" >&5 | |
8884 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then | |
8885 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8886 | else | |
8887 | ac_pattern="Autoconf.*'x'" | |
8888 | cat > conftest.$ac_ext <<EOF | |
8889 | #line 8890 "configure" | |
8890 | #include "confdefs.h" | |
8891 | #include <sgtty.h> | |
8892 | Autoconf TIOCGETP | |
8893 | EOF | |
8894 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8895 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
8896 | rm -rf conftest* | |
8897 | ac_cv_prog_gcc_traditional=yes | |
8898 | else | |
8899 | rm -rf conftest* | |
8900 | ac_cv_prog_gcc_traditional=no | |
8901 | fi | |
8902 | rm -f conftest* | |
8903 | ||
8904 | ||
8905 | if test $ac_cv_prog_gcc_traditional = no; then | |
8906 | cat > conftest.$ac_ext <<EOF | |
8907 | #line 8908 "configure" | |
8908 | #include "confdefs.h" | |
8909 | #include <termio.h> | |
8910 | Autoconf TCGETA | |
8911 | EOF | |
8912 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8913 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
8914 | rm -rf conftest* | |
8915 | ac_cv_prog_gcc_traditional=yes | |
8916 | fi | |
8917 | rm -f conftest* | |
8918 | ||
8919 | fi | |
8920 | fi | |
8921 | ||
8922 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
8923 | if test $ac_cv_prog_gcc_traditional = yes; then | |
8924 | CC="$CC -traditional" | |
8925 | fi | |
8926 | fi | |
8927 | ||
8928 | ||
8929 | ||
8930 | ac_ext=C | |
8931 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8932 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8933 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8934 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8935 | cross_compiling=$ac_cv_prog_cxx_cross | |
8936 | ||
8937 | ||
8938 | CXXFLAGS=${CXXFLAGS:=} | |
8939 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8940 | do | |
8941 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8942 | set dummy $ac_prog; ac_word=$2 | |
8943 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8944 | echo "configure:8945: checking for $ac_word" >&5 | |
8945 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | |
8946 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8947 | else | |
8948 | if test -n "$CXX"; then | |
8949 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8950 | else | |
8951 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8952 | ac_dummy="$PATH" | |
8953 | for ac_dir in $ac_dummy; do | |
8954 | test -z "$ac_dir" && ac_dir=. | |
8955 | if test -f $ac_dir/$ac_word; then | |
8956 | ac_cv_prog_CXX="$ac_prog" | |
8957 | break | |
8958 | fi | |
8959 | done | |
8960 | IFS="$ac_save_ifs" | |
8961 | fi | |
8962 | fi | |
8963 | CXX="$ac_cv_prog_CXX" | |
8964 | if test -n "$CXX"; then | |
8965 | echo "$ac_t""$CXX" 1>&6 | |
8966 | else | |
8967 | echo "$ac_t""no" 1>&6 | |
8968 | fi | |
8969 | ||
8970 | test -n "$CXX" && break | |
8971 | done | |
8972 | test -n "$CXX" || CXX="gcc" | |
8973 | ||
8974 | ||
8975 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
8976 | echo "configure:8977: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | |
8977 | ||
8978 | ac_ext=C | |
8979 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8980 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8981 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8982 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8983 | cross_compiling=$ac_cv_prog_cxx_cross | |
8984 | ||
8985 | cat > conftest.$ac_ext << EOF | |
8986 | ||
8987 | #line 8988 "configure" | |
8988 | #include "confdefs.h" | |
8989 | ||
8990 | int main(){return(0);} | |
8991 | EOF | |
8992 | if { (eval echo configure:8993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8993 | ac_cv_prog_cxx_works=yes | |
8994 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8995 | if (./conftest; exit) 2>/dev/null; then | |
8996 | ac_cv_prog_cxx_cross=no | |
8997 | else | |
8998 | ac_cv_prog_cxx_cross=yes | |
8999 | fi | |
9000 | else | |
9001 | echo "configure: failed program was:" >&5 | |
9002 | cat conftest.$ac_ext >&5 | |
9003 | ac_cv_prog_cxx_works=no | |
9004 | fi | |
9005 | rm -fr conftest* | |
9006 | ac_ext=C | |
9007 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9008 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9009 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9010 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9011 | cross_compiling=$ac_cv_prog_cxx_cross | |
9012 | ||
9013 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9014 | if test $ac_cv_prog_cxx_works = no; then | |
9015 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9016 | fi | |
9017 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
9018 | echo "configure:9019: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
9019 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | |
9020 | cross_compiling=$ac_cv_prog_cxx_cross | |
9021 | ||
9022 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
9023 | echo "configure:9024: checking whether we are using GNU C++" >&5 | |
9024 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then | |
9025 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9026 | else | |
9027 | cat > conftest.C <<EOF | |
9028 | #ifdef __GNUC__ | |
9029 | yes; | |
9030 | #endif | |
9031 | EOF | |
9032 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
9033 | ac_cv_prog_gxx=yes | |
9034 | else | |
9035 | ac_cv_prog_gxx=no | |
9036 | fi | |
9037 | fi | |
9038 | ||
9039 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
9040 | ||
9041 | if test $ac_cv_prog_gxx = yes; then | |
9042 | GXX=yes | |
9043 | else | |
9044 | GXX= | |
9045 | fi | |
9046 | ||
9047 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
9048 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9049 | CXXFLAGS= | |
9050 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
9051 | echo "configure:9052: checking whether ${CXX-g++} accepts -g" >&5 | |
9052 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then | |
9053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9054 | else | |
9055 | echo 'void f(){}' > conftest.cc | |
9056 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
9057 | ac_cv_prog_cxx_g=yes | |
9058 | else | |
9059 | ac_cv_prog_cxx_g=no | |
9060 | fi | |
9061 | rm -f conftest* | |
9062 | ||
9063 | fi | |
9064 | ||
9065 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
9066 | if test "$ac_test_CXXFLAGS" = set; then | |
9067 | CXXFLAGS="$ac_save_CXXFLAGS" | |
9068 | elif test $ac_cv_prog_cxx_g = yes; then | |
9069 | if test "$GXX" = yes; then | |
9070 | CXXFLAGS="-g -O2" | |
9071 | else | |
9072 | CXXFLAGS="-g" | |
9073 | fi | |
9074 | else | |
9075 | if test "$GXX" = yes; then | |
9076 | CXXFLAGS="-O2" | |
9077 | else | |
9078 | CXXFLAGS= | |
9079 | fi | |
9080 | fi | |
9081 | ||
9082 | ||
9083 | ac_ext=c | |
9084 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9085 | ac_cpp='$CPP $CPPFLAGS' | |
9086 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9087 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9088 | cross_compiling=$ac_cv_prog_cc_cross | |
9089 | ||
9090 | ||
9091 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9092 | set dummy ranlib; ac_word=$2 | |
9093 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9094 | echo "configure:9095: checking for $ac_word" >&5 | |
9095 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
9096 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9097 | else | |
9098 | if test -n "$RANLIB"; then | |
9099 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9100 | else | |
9101 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9102 | ac_dummy="$PATH" | |
9103 | for ac_dir in $ac_dummy; do | |
9104 | test -z "$ac_dir" && ac_dir=. | |
9105 | if test -f $ac_dir/$ac_word; then | |
9106 | ac_cv_prog_RANLIB="ranlib" | |
9107 | break | |
9108 | fi | |
9109 | done | |
9110 | IFS="$ac_save_ifs" | |
9111 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
9112 | fi | |
9113 | fi | |
9114 | RANLIB="$ac_cv_prog_RANLIB" | |
9115 | if test -n "$RANLIB"; then | |
9116 | echo "$ac_t""$RANLIB" 1>&6 | |
9117 | else | |
9118 | echo "$ac_t""no" 1>&6 | |
9119 | fi | |
9120 | ||
9121 | ||
9122 | # Extract the first word of "ar", so it can be a program name with args. | |
9123 | set dummy ar; ac_word=$2 | |
9124 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9125 | echo "configure:9126: checking for $ac_word" >&5 | |
9126 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | |
9127 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9128 | else | |
9129 | if test -n "$AR"; then | |
9130 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9131 | else | |
9132 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9133 | ac_dummy="$PATH" | |
9134 | for ac_dir in $ac_dummy; do | |
9135 | test -z "$ac_dir" && ac_dir=. | |
9136 | if test -f $ac_dir/$ac_word; then | |
9137 | ac_cv_prog_AR="ar" | |
9138 | break | |
9139 | fi | |
9140 | done | |
9141 | IFS="$ac_save_ifs" | |
9142 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
9143 | fi | |
9144 | fi | |
9145 | AR="$ac_cv_prog_AR" | |
9146 | if test -n "$AR"; then | |
9147 | echo "$ac_t""$AR" 1>&6 | |
9148 | else | |
9149 | echo "$ac_t""no" 1>&6 | |
9150 | fi | |
9151 | ||
9152 | ||
9153 | # Find a good install program. We prefer a C program (faster), | |
9154 | # so one script is as good as another. But avoid the broken or | |
9155 | # incompatible versions: | |
9156 | # SysV /etc/install, /usr/sbin/install | |
9157 | # SunOS /usr/etc/install | |
9158 | # IRIX /sbin/install | |
9159 | # AIX /bin/install | |
9160 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9161 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9162 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9163 | # ./install, which can be erroneously created by make from ./install.sh. | |
9164 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
9165 | echo "configure:9166: checking for a BSD compatible install" >&5 | |
9166 | if test -z "$INSTALL"; then | |
9167 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
9168 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9169 | else | |
9170 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9171 | for ac_dir in $PATH; do | |
9172 | # Account for people who put trailing slashes in PATH elements. | |
9173 | case "$ac_dir/" in | |
9174 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9175 | *) | |
9176 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9177 | # Don't use installbsd from OSF since it installs stuff as root | |
9178 | # by default. | |
9179 | for ac_prog in ginstall scoinst install; do | |
9180 | if test -f $ac_dir/$ac_prog; then | |
9181 | if test $ac_prog = install && | |
9182 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9183 | # AIX install. It has an incompatible calling convention. | |
9184 | : | |
9185 | else | |
9186 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9187 | break 2 | |
9188 | fi | |
9189 | fi | |
9190 | done | |
9191 | ;; | |
9192 | esac | |
9193 | done | |
9194 | IFS="$ac_save_IFS" | |
9195 | ||
9196 | fi | |
9197 | if test "${ac_cv_path_install+set}" = set; then | |
9198 | INSTALL="$ac_cv_path_install" | |
9199 | else | |
9200 | # As a last resort, use the slow shell script. We don't cache a | |
9201 | # path for INSTALL within a source directory, because that will | |
9202 | # break other packages using the cache if that directory is | |
9203 | # removed, or if the path is relative. | |
9204 | INSTALL="$ac_install_sh" | |
9205 | fi | |
9206 | fi | |
9207 | echo "$ac_t""$INSTALL" 1>&6 | |
9208 | ||
9209 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9210 | # It thinks the first close brace ends the variable substitution. | |
9211 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9212 | ||
9213 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
9214 | ||
9215 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9216 | ||
9217 | ||
9218 | case ${INSTALL} in | |
9219 | /* ) # Absolute | |
9220 | ;; | |
9221 | *) | |
9222 | INSTALL=`pwd`/${INSTALL} ;; | |
9223 | esac | |
9224 | ||
9225 | ||
9226 | case "${host}" in | |
9227 | ||
9228 | powerpc-*-darwin* ) | |
9229 | INSTALL_PROGRAM="cp -fp" | |
9230 | INSTALL_DATA="cp -fp" | |
9231 | ;; | |
9232 | *) | |
9233 | ;; | |
9234 | esac | |
9235 | ||
9236 | # Extract the first word of "strip", so it can be a program name with args. | |
9237 | set dummy strip; ac_word=$2 | |
9238 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9239 | echo "configure:9240: checking for $ac_word" >&5 | |
9240 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
9241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9242 | else | |
9243 | if test -n "$STRIP"; then | |
9244 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9245 | else | |
9246 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9247 | ac_dummy="$PATH" | |
9248 | for ac_dir in $ac_dummy; do | |
9249 | test -z "$ac_dir" && ac_dir=. | |
9250 | if test -f $ac_dir/$ac_word; then | |
9251 | ac_cv_prog_STRIP="strip" | |
9252 | break | |
9253 | fi | |
9254 | done | |
9255 | IFS="$ac_save_ifs" | |
9256 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
9257 | fi | |
9258 | fi | |
9259 | STRIP="$ac_cv_prog_STRIP" | |
9260 | if test -n "$STRIP"; then | |
9261 | echo "$ac_t""$STRIP" 1>&6 | |
9262 | else | |
9263 | echo "$ac_t""no" 1>&6 | |
9264 | fi | |
9265 | ||
9266 | ||
9267 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 | |
9268 | echo "configure:9269: checking if make is GNU make" >&5 | |
9269 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then | |
9270 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9271 | else | |
9272 | ||
9273 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
9274 | egrep -s GNU > /dev/null); then | |
9275 | wx_cv_prog_makeisgnu="yes" | |
9276 | else | |
9277 | wx_cv_prog_makeisgnu="no" | |
9278 | fi | |
9279 | ||
9280 | fi | |
9281 | ||
9282 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9283 | ||
9284 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9285 | IF_GNU_MAKE="" | |
9286 | else | |
9287 | IF_GNU_MAKE="#" | |
9288 | fi | |
9289 | ||
9290 | ||
9291 | ||
9292 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
9293 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 | |
9294 | echo "configure:9295: checking if make supports VPATH" >&5 | |
9295 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then | |
9296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9297 | else | |
9298 | ||
9299 | cat - << EOF > confMake | |
9300 | check : file | |
9301 | cp \$? \$@ | |
9302 | cp \$? final_file | |
9303 | EOF | |
9304 | ||
9305 | if test ! -d sub ; then | |
9306 | mkdir sub | |
9307 | fi | |
9308 | echo dummy > sub/file | |
9309 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
9310 | RESULT=$? | |
9311 | rm -f sub/file check final_file confMake | |
9312 | rmdir sub | |
9313 | if test "$RESULT" = 0; then | |
9314 | wx_cv_prog_makevpath="yes" | |
9315 | else | |
9316 | wx_cv_prog_makevpath="no" | |
9317 | fi | |
9318 | ||
9319 | fi | |
9320 | ||
9321 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9322 | ||
9323 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9324 | { echo "configure: error: | |
9325 | You need a make-utility that is able to use the variable | |
9326 | VPATH correctly. | |
9327 | If your version of make does not support VPATH correctly, | |
9328 | please install GNU-make (possibly as gmake), and start | |
9329 | configure with the following command: | |
9330 | export MAKE=gmake; ./configure for sh-type shells | |
9331 | setenv MAKE gmake; ./configure for csh-type shells | |
9332 | Also please do remember to use gmake in this case every time | |
9333 | you are trying to compile. | |
9334 | " 1>&2; exit 1; } | |
9335 | fi fi | |
9336 | for ac_prog in 'bison -y' byacc | |
9337 | do | |
9338 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9339 | set dummy $ac_prog; ac_word=$2 | |
9340 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9341 | echo "configure:9342: checking for $ac_word" >&5 | |
9342 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | |
9343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9344 | else | |
9345 | if test -n "$YACC"; then | |
9346 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9347 | else | |
9348 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9349 | ac_dummy="$PATH" | |
9350 | for ac_dir in $ac_dummy; do | |
9351 | test -z "$ac_dir" && ac_dir=. | |
9352 | if test -f $ac_dir/$ac_word; then | |
9353 | ac_cv_prog_YACC="$ac_prog" | |
9354 | break | |
9355 | fi | |
9356 | done | |
9357 | IFS="$ac_save_ifs" | |
9358 | fi | |
9359 | fi | |
9360 | YACC="$ac_cv_prog_YACC" | |
9361 | if test -n "$YACC"; then | |
9362 | echo "$ac_t""$YACC" 1>&6 | |
9363 | else | |
9364 | echo "$ac_t""no" 1>&6 | |
9365 | fi | |
9366 | ||
9367 | test -n "$YACC" && break | |
9368 | done | |
9369 | test -n "$YACC" || YACC="yacc" | |
9370 | ||
9371 | ||
9372 | # Extract the first word of "flex", so it can be a program name with args. | |
9373 | set dummy flex; ac_word=$2 | |
9374 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9375 | echo "configure:9376: checking for $ac_word" >&5 | |
9376 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then | |
9377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9378 | else | |
9379 | if test -n "$LEX"; then | |
9380 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9381 | else | |
9382 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9383 | ac_dummy="$PATH" | |
9384 | for ac_dir in $ac_dummy; do | |
9385 | test -z "$ac_dir" && ac_dir=. | |
9386 | if test -f $ac_dir/$ac_word; then | |
9387 | ac_cv_prog_LEX="flex" | |
9388 | break | |
9389 | fi | |
9390 | done | |
9391 | IFS="$ac_save_ifs" | |
9392 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
9393 | fi | |
9394 | fi | |
9395 | LEX="$ac_cv_prog_LEX" | |
9396 | if test -n "$LEX"; then | |
9397 | echo "$ac_t""$LEX" 1>&6 | |
9398 | else | |
9399 | echo "$ac_t""no" 1>&6 | |
9400 | fi | |
9401 | ||
9402 | if test -z "$LEXLIB" | |
9403 | then | |
9404 | case "$LEX" in | |
9405 | flex*) ac_lib=fl ;; | |
9406 | *) ac_lib=l ;; | |
9407 | esac | |
9408 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
9409 | echo "configure:9410: checking for yywrap in -l$ac_lib" >&5 | |
9410 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` | |
9411 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9412 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9413 | else | |
9414 | ac_save_LIBS="$LIBS" | |
9415 | LIBS="-l$ac_lib $LIBS" | |
9416 | cat > conftest.$ac_ext <<EOF | |
9417 | #line 9418 "configure" | |
9418 | #include "confdefs.h" | |
9419 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9420 | /* We use char because int might match the return type of a gcc2 | |
9421 | builtin and then its argument prototype would still apply. */ | |
9422 | char yywrap(); | |
9423 | ||
9424 | int main() { | |
9425 | yywrap() | |
9426 | ; return 0; } | |
9427 | EOF | |
9428 | if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9429 | rm -rf conftest* | |
9430 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9431 | else | |
9432 | echo "configure: failed program was:" >&5 | |
9433 | cat conftest.$ac_ext >&5 | |
9434 | rm -rf conftest* | |
9435 | eval "ac_cv_lib_$ac_lib_var=no" | |
9436 | fi | |
9437 | rm -f conftest* | |
9438 | LIBS="$ac_save_LIBS" | |
9439 | ||
9440 | fi | |
9441 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9442 | echo "$ac_t""yes" 1>&6 | |
9443 | LEXLIB="-l$ac_lib" | |
9444 | else | |
9445 | echo "$ac_t""no" 1>&6 | |
9446 | fi | |
9447 | ||
9448 | fi | |
9449 | ||
9450 | ||
9451 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
9452 | echo "configure:9453: checking whether ln -s works" >&5 | |
9453 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | |
9454 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9455 | else | |
9456 | rm -f conftestdata | |
9457 | if ln -s X conftestdata 2>/dev/null | |
9458 | then | |
9459 | rm -f conftestdata | |
9460 | ac_cv_prog_LN_S="ln -s" | |
9461 | else | |
9462 | ac_cv_prog_LN_S=ln | |
9463 | fi | |
9464 | fi | |
9465 | LN_S="$ac_cv_prog_LN_S" | |
9466 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9467 | echo "$ac_t""yes" 1>&6 | |
9468 | else | |
9469 | echo "$ac_t""no" 1>&6 | |
9470 | fi | |
9471 | ||
9472 | ||
9473 | ||
9474 | if test "$wxUSE_MAC" != 1; then | |
9475 | for ac_hdr in strings.h | |
9476 | do | |
9477 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9478 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9479 | echo "configure:9480: checking for $ac_hdr" >&5 | |
9480 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9481 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9482 | else | |
9483 | cat > conftest.$ac_ext <<EOF | |
9484 | #line 9485 "configure" | |
9485 | #include "confdefs.h" | |
9486 | #include <$ac_hdr> | |
9487 | EOF | |
9488 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9489 | { (eval echo configure:9490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9490 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9491 | if test -z "$ac_err"; then | |
9492 | rm -rf conftest* | |
9493 | eval "ac_cv_header_$ac_safe=yes" | |
9494 | else | |
9495 | echo "$ac_err" >&5 | |
9496 | echo "configure: failed program was:" >&5 | |
9497 | cat conftest.$ac_ext >&5 | |
9498 | rm -rf conftest* | |
9499 | eval "ac_cv_header_$ac_safe=no" | |
9500 | fi | |
9501 | rm -f conftest* | |
9502 | fi | |
9503 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9504 | echo "$ac_t""yes" 1>&6 | |
9505 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9506 | cat >> confdefs.h <<EOF | |
9507 | #define $ac_tr_hdr 1 | |
9508 | EOF | |
9509 | ||
9510 | else | |
9511 | echo "$ac_t""no" 1>&6 | |
9512 | fi | |
9513 | done | |
9514 | ||
9515 | fi | |
9516 | ||
9517 | for ac_hdr in stdlib.h | |
9518 | do | |
9519 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9520 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9521 | echo "configure:9522: checking for $ac_hdr" >&5 | |
9522 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9524 | else | |
9525 | cat > conftest.$ac_ext <<EOF | |
9526 | #line 9527 "configure" | |
9527 | #include "confdefs.h" | |
9528 | #include <$ac_hdr> | |
9529 | EOF | |
9530 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9531 | { (eval echo configure:9532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9532 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9533 | if test -z "$ac_err"; then | |
9534 | rm -rf conftest* | |
9535 | eval "ac_cv_header_$ac_safe=yes" | |
9536 | else | |
9537 | echo "$ac_err" >&5 | |
9538 | echo "configure: failed program was:" >&5 | |
9539 | cat conftest.$ac_ext >&5 | |
9540 | rm -rf conftest* | |
9541 | eval "ac_cv_header_$ac_safe=no" | |
9542 | fi | |
9543 | rm -f conftest* | |
9544 | fi | |
9545 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9546 | echo "$ac_t""yes" 1>&6 | |
9547 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9548 | cat >> confdefs.h <<EOF | |
9549 | #define $ac_tr_hdr 1 | |
9550 | EOF | |
9551 | ||
9552 | else | |
9553 | echo "$ac_t""no" 1>&6 | |
9554 | fi | |
9555 | done | |
9556 | ||
9557 | for ac_hdr in malloc.h | |
9558 | do | |
9559 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9560 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9561 | echo "configure:9562: checking for $ac_hdr" >&5 | |
9562 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9563 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9564 | else | |
9565 | cat > conftest.$ac_ext <<EOF | |
9566 | #line 9567 "configure" | |
9567 | #include "confdefs.h" | |
9568 | #include <$ac_hdr> | |
9569 | EOF | |
9570 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9571 | { (eval echo configure:9572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9572 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9573 | if test -z "$ac_err"; then | |
9574 | rm -rf conftest* | |
9575 | eval "ac_cv_header_$ac_safe=yes" | |
9576 | else | |
9577 | echo "$ac_err" >&5 | |
9578 | echo "configure: failed program was:" >&5 | |
9579 | cat conftest.$ac_ext >&5 | |
9580 | rm -rf conftest* | |
9581 | eval "ac_cv_header_$ac_safe=no" | |
9582 | fi | |
9583 | rm -f conftest* | |
9584 | fi | |
9585 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9586 | echo "$ac_t""yes" 1>&6 | |
9587 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9588 | cat >> confdefs.h <<EOF | |
9589 | #define $ac_tr_hdr 1 | |
9590 | EOF | |
9591 | ||
9592 | else | |
9593 | echo "$ac_t""no" 1>&6 | |
9594 | fi | |
9595 | done | |
9596 | ||
9597 | for ac_hdr in unistd.h | |
9598 | do | |
9599 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9600 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9601 | echo "configure:9602: checking for $ac_hdr" >&5 | |
9602 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9604 | else | |
9605 | cat > conftest.$ac_ext <<EOF | |
9606 | #line 9607 "configure" | |
9607 | #include "confdefs.h" | |
9608 | #include <$ac_hdr> | |
9609 | EOF | |
9610 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9611 | { (eval echo configure:9612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9612 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9613 | if test -z "$ac_err"; then | |
9614 | rm -rf conftest* | |
9615 | eval "ac_cv_header_$ac_safe=yes" | |
9616 | else | |
9617 | echo "$ac_err" >&5 | |
9618 | echo "configure: failed program was:" >&5 | |
9619 | cat conftest.$ac_ext >&5 | |
9620 | rm -rf conftest* | |
9621 | eval "ac_cv_header_$ac_safe=no" | |
9622 | fi | |
9623 | rm -f conftest* | |
9624 | fi | |
9625 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9626 | echo "$ac_t""yes" 1>&6 | |
9627 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9628 | cat >> confdefs.h <<EOF | |
9629 | #define $ac_tr_hdr 1 | |
9630 | EOF | |
9631 | ||
9632 | else | |
9633 | echo "$ac_t""no" 1>&6 | |
9634 | fi | |
9635 | done | |
9636 | ||
9637 | for ac_hdr in wchar.h | |
9638 | do | |
9639 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9640 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9641 | echo "configure:9642: checking for $ac_hdr" >&5 | |
9642 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9643 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9644 | else | |
9645 | cat > conftest.$ac_ext <<EOF | |
9646 | #line 9647 "configure" | |
9647 | #include "confdefs.h" | |
9648 | #include <$ac_hdr> | |
9649 | EOF | |
9650 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9651 | { (eval echo configure:9652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9652 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9653 | if test -z "$ac_err"; then | |
9654 | rm -rf conftest* | |
9655 | eval "ac_cv_header_$ac_safe=yes" | |
9656 | else | |
9657 | echo "$ac_err" >&5 | |
9658 | echo "configure: failed program was:" >&5 | |
9659 | cat conftest.$ac_ext >&5 | |
9660 | rm -rf conftest* | |
9661 | eval "ac_cv_header_$ac_safe=no" | |
9662 | fi | |
9663 | rm -f conftest* | |
9664 | fi | |
9665 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9666 | echo "$ac_t""yes" 1>&6 | |
9667 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9668 | cat >> confdefs.h <<EOF | |
9669 | #define $ac_tr_hdr 1 | |
9670 | EOF | |
9671 | ||
9672 | else | |
9673 | echo "$ac_t""no" 1>&6 | |
9674 | fi | |
9675 | done | |
9676 | ||
9677 | ||
9678 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
9679 | for ac_hdr in wcstr.h | |
9680 | do | |
9681 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9682 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9683 | echo "configure:9684: checking for $ac_hdr" >&5 | |
9684 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9686 | else | |
9687 | cat > conftest.$ac_ext <<EOF | |
9688 | #line 9689 "configure" | |
9689 | #include "confdefs.h" | |
9690 | #include <$ac_hdr> | |
9691 | EOF | |
9692 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9693 | { (eval echo configure:9694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9694 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9695 | if test -z "$ac_err"; then | |
9696 | rm -rf conftest* | |
9697 | eval "ac_cv_header_$ac_safe=yes" | |
9698 | else | |
9699 | echo "$ac_err" >&5 | |
9700 | echo "configure: failed program was:" >&5 | |
9701 | cat conftest.$ac_ext >&5 | |
9702 | rm -rf conftest* | |
9703 | eval "ac_cv_header_$ac_safe=no" | |
9704 | fi | |
9705 | rm -f conftest* | |
9706 | fi | |
9707 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9708 | echo "$ac_t""yes" 1>&6 | |
9709 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9710 | cat >> confdefs.h <<EOF | |
9711 | #define $ac_tr_hdr 1 | |
9712 | EOF | |
9713 | ||
9714 | else | |
9715 | echo "$ac_t""no" 1>&6 | |
9716 | fi | |
9717 | done | |
9718 | ||
9719 | fi | |
9720 | ||
9721 | ||
9722 | for ac_hdr in fnmatch.h | |
9723 | do | |
9724 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9725 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9726 | echo "configure:9727: checking for $ac_hdr" >&5 | |
9727 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9729 | else | |
9730 | cat > conftest.$ac_ext <<EOF | |
9731 | #line 9732 "configure" | |
9732 | #include "confdefs.h" | |
9733 | #include <$ac_hdr> | |
9734 | EOF | |
9735 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9736 | { (eval echo configure:9737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9737 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9738 | if test -z "$ac_err"; then | |
9739 | rm -rf conftest* | |
9740 | eval "ac_cv_header_$ac_safe=yes" | |
9741 | else | |
9742 | echo "$ac_err" >&5 | |
9743 | echo "configure: failed program was:" >&5 | |
9744 | cat conftest.$ac_ext >&5 | |
9745 | rm -rf conftest* | |
9746 | eval "ac_cv_header_$ac_safe=no" | |
9747 | fi | |
9748 | rm -f conftest* | |
9749 | fi | |
9750 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9751 | echo "$ac_t""yes" 1>&6 | |
9752 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9753 | cat >> confdefs.h <<EOF | |
9754 | #define $ac_tr_hdr 1 | |
9755 | EOF | |
9756 | ||
9757 | else | |
9758 | echo "$ac_t""no" 1>&6 | |
9759 | fi | |
9760 | done | |
9761 | ||
9762 | ||
9763 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
9764 | for ac_func in fnmatch | |
9765 | do | |
9766 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9767 | echo "configure:9768: checking for $ac_func" >&5 | |
9768 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
9769 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9770 | else | |
9771 | cat > conftest.$ac_ext <<EOF | |
9772 | #line 9773 "configure" | |
9773 | #include "confdefs.h" | |
9774 | /* System header to define __stub macros and hopefully few prototypes, | |
9775 | which can conflict with char $ac_func(); below. */ | |
9776 | #include <assert.h> | |
9777 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9778 | /* We use char because int might match the return type of a gcc2 | |
9779 | builtin and then its argument prototype would still apply. */ | |
9780 | char $ac_func(); | |
9781 | ||
9782 | int main() { | |
9783 | ||
9784 | /* The GNU C library defines this for functions which it implements | |
9785 | to always fail with ENOSYS. Some functions are actually named | |
9786 | something starting with __ and the normal name is an alias. */ | |
9787 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9788 | choke me | |
9789 | #else | |
9790 | $ac_func(); | |
9791 | #endif | |
9792 | ||
9793 | ; return 0; } | |
9794 | EOF | |
9795 | if { (eval echo configure:9796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9796 | rm -rf conftest* | |
9797 | eval "ac_cv_func_$ac_func=yes" | |
9798 | else | |
9799 | echo "configure: failed program was:" >&5 | |
9800 | cat conftest.$ac_ext >&5 | |
9801 | rm -rf conftest* | |
9802 | eval "ac_cv_func_$ac_func=no" | |
9803 | fi | |
9804 | rm -f conftest* | |
9805 | fi | |
9806 | ||
9807 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9808 | echo "$ac_t""yes" 1>&6 | |
9809 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9810 | cat >> confdefs.h <<EOF | |
9811 | #define $ac_tr_func 1 | |
9812 | EOF | |
9813 | ||
9814 | else | |
9815 | echo "$ac_t""no" 1>&6 | |
9816 | fi | |
9817 | done | |
9818 | ||
9819 | fi | |
9820 | ||
9821 | for ac_hdr in langinfo.h | |
9822 | do | |
9823 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9824 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9825 | echo "configure:9826: checking for $ac_hdr" >&5 | |
9826 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9828 | else | |
9829 | cat > conftest.$ac_ext <<EOF | |
9830 | #line 9831 "configure" | |
9831 | #include "confdefs.h" | |
9832 | #include <$ac_hdr> | |
9833 | EOF | |
9834 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9835 | { (eval echo configure:9836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9836 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9837 | if test -z "$ac_err"; then | |
9838 | rm -rf conftest* | |
9839 | eval "ac_cv_header_$ac_safe=yes" | |
9840 | else | |
9841 | echo "$ac_err" >&5 | |
9842 | echo "configure: failed program was:" >&5 | |
9843 | cat conftest.$ac_ext >&5 | |
9844 | rm -rf conftest* | |
9845 | eval "ac_cv_header_$ac_safe=no" | |
9846 | fi | |
9847 | rm -f conftest* | |
9848 | fi | |
9849 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9850 | echo "$ac_t""yes" 1>&6 | |
9851 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9852 | cat >> confdefs.h <<EOF | |
9853 | #define $ac_tr_hdr 1 | |
9854 | EOF | |
9855 | ||
9856 | else | |
9857 | echo "$ac_t""no" 1>&6 | |
9858 | fi | |
9859 | done | |
9860 | ||
9861 | ||
9862 | if test "$wxUSE_GUI" = "yes"; then | |
9863 | if test "$wxUSE_UNIX" = "yes"; then | |
9864 | for ac_hdr in X11/XKBlib.h | |
9865 | do | |
9866 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9867 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9868 | echo "configure:9869: checking for $ac_hdr" >&5 | |
9869 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9871 | else | |
9872 | cat > conftest.$ac_ext <<EOF | |
9873 | #line 9874 "configure" | |
9874 | #include "confdefs.h" | |
9875 | #include <$ac_hdr> | |
9876 | EOF | |
9877 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9878 | { (eval echo configure:9879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9879 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9880 | if test -z "$ac_err"; then | |
9881 | rm -rf conftest* | |
9882 | eval "ac_cv_header_$ac_safe=yes" | |
9883 | else | |
9884 | echo "$ac_err" >&5 | |
9885 | echo "configure: failed program was:" >&5 | |
9886 | cat conftest.$ac_ext >&5 | |
9887 | rm -rf conftest* | |
9888 | eval "ac_cv_header_$ac_safe=no" | |
9889 | fi | |
9890 | rm -f conftest* | |
9891 | fi | |
9892 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9893 | echo "$ac_t""yes" 1>&6 | |
9894 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9895 | cat >> confdefs.h <<EOF | |
9896 | #define $ac_tr_hdr 1 | |
9897 | EOF | |
9898 | ||
9899 | else | |
9900 | echo "$ac_t""no" 1>&6 | |
9901 | fi | |
9902 | done | |
9903 | ||
9904 | fi | |
9905 | fi | |
9906 | ||
9907 | ||
9908 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
9909 | echo "configure:9910: checking for working const" >&5 | |
9910 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | |
9911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9912 | else | |
9913 | cat > conftest.$ac_ext <<EOF | |
9914 | #line 9915 "configure" | |
9915 | #include "confdefs.h" | |
9916 | ||
9917 | int main() { | |
9918 | ||
9919 | /* Ultrix mips cc rejects this. */ | |
9920 | typedef int charset[2]; const charset x; | |
9921 | /* SunOS 4.1.1 cc rejects this. */ | |
9922 | char const *const *ccp; | |
9923 | char **p; | |
9924 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
9925 | struct point {int x, y;}; | |
9926 | static struct point const zero = {0,0}; | |
9927 | /* AIX XL C 1.02.0.0 rejects this. | |
9928 | It does not let you subtract one const X* pointer from another in an arm | |
9929 | of an if-expression whose if-part is not a constant expression */ | |
9930 | const char *g = "string"; | |
9931 | ccp = &g + (g ? g-g : 0); | |
9932 | /* HPUX 7.0 cc rejects these. */ | |
9933 | ++ccp; | |
9934 | p = (char**) ccp; | |
9935 | ccp = (char const *const *) p; | |
9936 | { /* SCO 3.2v4 cc rejects this. */ | |
9937 | char *t; | |
9938 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
9939 | ||
9940 | *t++ = 0; | |
9941 | } | |
9942 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
9943 | int x[] = {25, 17}; | |
9944 | const int *foo = &x[0]; | |
9945 | ++foo; | |
9946 | } | |
9947 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
9948 | typedef const int *iptr; | |
9949 | iptr p = 0; | |
9950 | ++p; | |
9951 | } | |
9952 | { /* AIX XL C 1.02.0.0 rejects this saying | |
9953 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
9954 | struct s { int j; const int *ap[3]; }; | |
9955 | struct s *b; b->j = 5; | |
9956 | } | |
9957 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
9958 | const int foo = 10; | |
9959 | } | |
9960 | ||
9961 | ; return 0; } | |
9962 | EOF | |
9963 | if { (eval echo configure:9964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9964 | rm -rf conftest* | |
9965 | ac_cv_c_const=yes | |
9966 | else | |
9967 | echo "configure: failed program was:" >&5 | |
9968 | cat conftest.$ac_ext >&5 | |
9969 | rm -rf conftest* | |
9970 | ac_cv_c_const=no | |
9971 | fi | |
9972 | rm -f conftest* | |
9973 | fi | |
9974 | ||
9975 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
9976 | if test $ac_cv_c_const = no; then | |
9977 | cat >> confdefs.h <<\EOF | |
9978 | #define const | |
9979 | EOF | |
9980 | ||
9981 | fi | |
9982 | ||
9983 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
9984 | echo "configure:9985: checking for inline" >&5 | |
9985 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
9986 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9987 | else | |
9988 | ac_cv_c_inline=no | |
9989 | for ac_kw in inline __inline__ __inline; do | |
9990 | cat > conftest.$ac_ext <<EOF | |
9991 | #line 9992 "configure" | |
9992 | #include "confdefs.h" | |
9993 | ||
9994 | int main() { | |
9995 | } $ac_kw foo() { | |
9996 | ; return 0; } | |
9997 | EOF | |
9998 | if { (eval echo configure:9999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9999 | rm -rf conftest* | |
10000 | ac_cv_c_inline=$ac_kw; break | |
10001 | else | |
10002 | echo "configure: failed program was:" >&5 | |
10003 | cat conftest.$ac_ext >&5 | |
10004 | fi | |
10005 | rm -f conftest* | |
10006 | done | |
10007 | ||
10008 | fi | |
10009 | ||
10010 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
10011 | case "$ac_cv_c_inline" in | |
10012 | inline | yes) ;; | |
10013 | no) cat >> confdefs.h <<\EOF | |
10014 | #define inline | |
10015 | EOF | |
10016 | ;; | |
10017 | *) cat >> confdefs.h <<EOF | |
10018 | #define inline $ac_cv_c_inline | |
10019 | EOF | |
10020 | ;; | |
10021 | esac | |
10022 | ||
10023 | ||
10024 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
10025 | echo "configure:10026: checking size of char" >&5 | |
10026 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | |
10027 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10028 | else | |
10029 | if test "$cross_compiling" = yes; then | |
10030 | ac_cv_sizeof_char=1 | |
10031 | else | |
10032 | cat > conftest.$ac_ext <<EOF | |
10033 | #line 10034 "configure" | |
10034 | #include "confdefs.h" | |
10035 | #include <stdio.h> | |
10036 | main() | |
10037 | { | |
10038 | FILE *f=fopen("conftestval", "w"); | |
10039 | if (!f) exit(1); | |
10040 | fprintf(f, "%d\n", sizeof(char)); | |
10041 | exit(0); | |
10042 | } | |
10043 | EOF | |
10044 | if { (eval echo configure:10045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10045 | then | |
10046 | ac_cv_sizeof_char=`cat conftestval` | |
10047 | else | |
10048 | echo "configure: failed program was:" >&5 | |
10049 | cat conftest.$ac_ext >&5 | |
10050 | rm -fr conftest* | |
10051 | ac_cv_sizeof_char=0 | |
10052 | fi | |
10053 | rm -fr conftest* | |
10054 | fi | |
10055 | ||
10056 | fi | |
10057 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
10058 | cat >> confdefs.h <<EOF | |
10059 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10060 | EOF | |
10061 | ||
10062 | ||
10063 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
10064 | echo "configure:10065: checking size of short" >&5 | |
10065 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | |
10066 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10067 | else | |
10068 | if test "$cross_compiling" = yes; then | |
10069 | ac_cv_sizeof_short=2 | |
10070 | else | |
10071 | cat > conftest.$ac_ext <<EOF | |
10072 | #line 10073 "configure" | |
10073 | #include "confdefs.h" | |
10074 | #include <stdio.h> | |
10075 | main() | |
10076 | { | |
10077 | FILE *f=fopen("conftestval", "w"); | |
10078 | if (!f) exit(1); | |
10079 | fprintf(f, "%d\n", sizeof(short)); | |
10080 | exit(0); | |
10081 | } | |
10082 | EOF | |
10083 | if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10084 | then | |
10085 | ac_cv_sizeof_short=`cat conftestval` | |
10086 | else | |
10087 | echo "configure: failed program was:" >&5 | |
10088 | cat conftest.$ac_ext >&5 | |
10089 | rm -fr conftest* | |
10090 | ac_cv_sizeof_short=0 | |
10091 | fi | |
10092 | rm -fr conftest* | |
10093 | fi | |
10094 | ||
10095 | fi | |
10096 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
10097 | cat >> confdefs.h <<EOF | |
10098 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10099 | EOF | |
10100 | ||
10101 | ||
10102 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 | |
10103 | echo "configure:10104: checking size of void *" >&5 | |
10104 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then | |
10105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10106 | else | |
10107 | if test "$cross_compiling" = yes; then | |
10108 | ac_cv_sizeof_void_p=4 | |
10109 | else | |
10110 | cat > conftest.$ac_ext <<EOF | |
10111 | #line 10112 "configure" | |
10112 | #include "confdefs.h" | |
10113 | #include <stdio.h> | |
10114 | main() | |
10115 | { | |
10116 | FILE *f=fopen("conftestval", "w"); | |
10117 | if (!f) exit(1); | |
10118 | fprintf(f, "%d\n", sizeof(void *)); | |
10119 | exit(0); | |
10120 | } | |
10121 | EOF | |
10122 | if { (eval echo configure:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10123 | then | |
10124 | ac_cv_sizeof_void_p=`cat conftestval` | |
10125 | else | |
10126 | echo "configure: failed program was:" >&5 | |
10127 | cat conftest.$ac_ext >&5 | |
10128 | rm -fr conftest* | |
10129 | ac_cv_sizeof_void_p=0 | |
10130 | fi | |
10131 | rm -fr conftest* | |
10132 | fi | |
10133 | ||
10134 | fi | |
10135 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 | |
10136 | cat >> confdefs.h <<EOF | |
10137 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10138 | EOF | |
10139 | ||
10140 | ||
10141 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
10142 | echo "configure:10143: checking size of int" >&5 | |
10143 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | |
10144 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10145 | else | |
10146 | if test "$cross_compiling" = yes; then | |
10147 | ac_cv_sizeof_int=4 | |
10148 | else | |
10149 | cat > conftest.$ac_ext <<EOF | |
10150 | #line 10151 "configure" | |
10151 | #include "confdefs.h" | |
10152 | #include <stdio.h> | |
10153 | main() | |
10154 | { | |
10155 | FILE *f=fopen("conftestval", "w"); | |
10156 | if (!f) exit(1); | |
10157 | fprintf(f, "%d\n", sizeof(int)); | |
10158 | exit(0); | |
10159 | } | |
10160 | EOF | |
10161 | if { (eval echo configure:10162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10162 | then | |
10163 | ac_cv_sizeof_int=`cat conftestval` | |
10164 | else | |
10165 | echo "configure: failed program was:" >&5 | |
10166 | cat conftest.$ac_ext >&5 | |
10167 | rm -fr conftest* | |
10168 | ac_cv_sizeof_int=0 | |
10169 | fi | |
10170 | rm -fr conftest* | |
10171 | fi | |
10172 | ||
10173 | fi | |
10174 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
10175 | cat >> confdefs.h <<EOF | |
10176 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10177 | EOF | |
10178 | ||
10179 | ||
10180 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
10181 | echo "configure:10182: checking size of long" >&5 | |
10182 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | |
10183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10184 | else | |
10185 | if test "$cross_compiling" = yes; then | |
10186 | ac_cv_sizeof_long=4 | |
10187 | else | |
10188 | cat > conftest.$ac_ext <<EOF | |
10189 | #line 10190 "configure" | |
10190 | #include "confdefs.h" | |
10191 | #include <stdio.h> | |
10192 | main() | |
10193 | { | |
10194 | FILE *f=fopen("conftestval", "w"); | |
10195 | if (!f) exit(1); | |
10196 | fprintf(f, "%d\n", sizeof(long)); | |
10197 | exit(0); | |
10198 | } | |
10199 | EOF | |
10200 | if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10201 | then | |
10202 | ac_cv_sizeof_long=`cat conftestval` | |
10203 | else | |
10204 | echo "configure: failed program was:" >&5 | |
10205 | cat conftest.$ac_ext >&5 | |
10206 | rm -fr conftest* | |
10207 | ac_cv_sizeof_long=0 | |
10208 | fi | |
10209 | rm -fr conftest* | |
10210 | fi | |
10211 | ||
10212 | fi | |
10213 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
10214 | cat >> confdefs.h <<EOF | |
10215 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10216 | EOF | |
10217 | ||
10218 | ||
10219 | ||
10220 | case "${host}" in | |
10221 | arm-*-linux* ) | |
10222 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
10223 | echo "configure:10224: checking size of long long" >&5 | |
10224 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
10225 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10226 | else | |
10227 | if test "$cross_compiling" = yes; then | |
10228 | ac_cv_sizeof_long_long=8 | |
10229 | else | |
10230 | cat > conftest.$ac_ext <<EOF | |
10231 | #line 10232 "configure" | |
10232 | #include "confdefs.h" | |
10233 | #include <stdio.h> | |
10234 | main() | |
10235 | { | |
10236 | FILE *f=fopen("conftestval", "w"); | |
10237 | if (!f) exit(1); | |
10238 | fprintf(f, "%d\n", sizeof(long long)); | |
10239 | exit(0); | |
10240 | } | |
10241 | EOF | |
10242 | if { (eval echo configure:10243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10243 | then | |
10244 | ac_cv_sizeof_long_long=`cat conftestval` | |
10245 | else | |
10246 | echo "configure: failed program was:" >&5 | |
10247 | cat conftest.$ac_ext >&5 | |
10248 | rm -fr conftest* | |
10249 | ac_cv_sizeof_long_long=0 | |
10250 | fi | |
10251 | rm -fr conftest* | |
10252 | fi | |
10253 | ||
10254 | fi | |
10255 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10256 | cat >> confdefs.h <<EOF | |
10257 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10258 | EOF | |
10259 | ||
10260 | ||
10261 | ;; | |
10262 | * ) | |
10263 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
10264 | echo "configure:10265: checking size of long long" >&5 | |
10265 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
10266 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10267 | else | |
10268 | if test "$cross_compiling" = yes; then | |
10269 | ac_cv_sizeof_long_long=0 | |
10270 | else | |
10271 | cat > conftest.$ac_ext <<EOF | |
10272 | #line 10273 "configure" | |
10273 | #include "confdefs.h" | |
10274 | #include <stdio.h> | |
10275 | main() | |
10276 | { | |
10277 | FILE *f=fopen("conftestval", "w"); | |
10278 | if (!f) exit(1); | |
10279 | fprintf(f, "%d\n", sizeof(long long)); | |
10280 | exit(0); | |
10281 | } | |
10282 | EOF | |
10283 | if { (eval echo configure:10284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10284 | then | |
10285 | ac_cv_sizeof_long_long=`cat conftestval` | |
10286 | else | |
10287 | echo "configure: failed program was:" >&5 | |
10288 | cat conftest.$ac_ext >&5 | |
10289 | rm -fr conftest* | |
10290 | ac_cv_sizeof_long_long=0 | |
10291 | fi | |
10292 | rm -fr conftest* | |
10293 | fi | |
10294 | ||
10295 | fi | |
10296 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10297 | cat >> confdefs.h <<EOF | |
10298 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10299 | EOF | |
10300 | ||
10301 | ||
10302 | esac | |
10303 | ||
10304 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
10305 | echo "configure:10306: checking size of wchar_t" >&5 | |
10306 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then | |
10307 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10308 | else | |
10309 | ||
10310 | if test "$cross_compiling" = yes; then | |
10311 | wx_cv_sizeof_wchar_t=4 | |
10312 | ||
10313 | else | |
10314 | cat > conftest.$ac_ext <<EOF | |
10315 | #line 10316 "configure" | |
10316 | #include "confdefs.h" | |
10317 | ||
10318 | #ifdef HAVE_WCHAR_H | |
10319 | # ifdef __CYGWIN__ | |
10320 | # include <stddef.h> | |
10321 | # endif | |
10322 | # include <wchar.h> | |
10323 | #endif | |
10324 | #ifdef HAVE_STDLIB_H | |
10325 | # include <stdlib.h> | |
10326 | #endif | |
10327 | #include <stdio.h> | |
10328 | int main() | |
10329 | { | |
10330 | FILE *f=fopen("conftestval", "w"); | |
10331 | if (!f) exit(1); | |
10332 | fprintf(f, "%i", sizeof(wchar_t)); | |
10333 | exit(0); | |
10334 | } | |
10335 | ||
10336 | EOF | |
10337 | if { (eval echo configure:10338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10338 | then | |
10339 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
10340 | else | |
10341 | echo "configure: failed program was:" >&5 | |
10342 | cat conftest.$ac_ext >&5 | |
10343 | rm -fr conftest* | |
10344 | wx_cv_sizeof_wchar_t=0 | |
10345 | fi | |
10346 | rm -fr conftest* | |
10347 | fi | |
10348 | ||
10349 | ||
10350 | fi | |
10351 | ||
10352 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
10353 | ||
10354 | cat >> confdefs.h <<EOF | |
10355 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10356 | EOF | |
10357 | ||
10358 | ||
10359 | # Check whether --enable-largefile or --disable-largefile was given. | |
10360 | if test "${enable_largefile+set}" = set; then | |
10361 | enableval="$enable_largefile" | |
10362 | : | |
10363 | fi | |
10364 | ||
10365 | if test "$enable_largefile" != no; then | |
10366 | wx_largefile=no | |
10367 | ||
10368 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
10369 | echo "configure:10370: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
10370 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then | |
10371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10372 | else | |
10373 | ||
10374 | cat > conftest.$ac_ext <<EOF | |
10375 | #line 10376 "configure" | |
10376 | #include "confdefs.h" | |
10377 | #define _FILE_OFFSET_BITS 64 | |
10378 | #include <sys/types.h> | |
10379 | int main() { | |
10380 | typedef struct { | |
10381 | unsigned int field: sizeof(off_t) == 8; | |
10382 | } wxlf; | |
10383 | ||
10384 | ; return 0; } | |
10385 | EOF | |
10386 | if { (eval echo configure:10387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10387 | rm -rf conftest* | |
10388 | ac_cv_sys_file_offset_bits=64 | |
10389 | else | |
10390 | echo "configure: failed program was:" >&5 | |
10391 | cat conftest.$ac_ext >&5 | |
10392 | rm -rf conftest* | |
10393 | ac_cv_sys_file_offset_bits=no | |
10394 | fi | |
10395 | rm -f conftest* | |
10396 | ||
10397 | ||
10398 | fi | |
10399 | ||
10400 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
10401 | ||
10402 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10403 | wx_largefile=yes | |
10404 | cat >> confdefs.h <<EOF | |
10405 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
10406 | EOF | |
10407 | ||
10408 | fi | |
10409 | ||
10410 | if test "x$wx_largefile" != "xyes"; then | |
10411 | ||
10412 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
10413 | echo "configure:10414: checking for _LARGE_FILES value needed for large files" >&5 | |
10414 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then | |
10415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10416 | else | |
10417 | ||
10418 | cat > conftest.$ac_ext <<EOF | |
10419 | #line 10420 "configure" | |
10420 | #include "confdefs.h" | |
10421 | #define _LARGE_FILES 1 | |
10422 | #include <sys/types.h> | |
10423 | int main() { | |
10424 | typedef struct { | |
10425 | unsigned int field: sizeof(off_t) == 8; | |
10426 | } wxlf; | |
10427 | ||
10428 | ; return 0; } | |
10429 | EOF | |
10430 | if { (eval echo configure:10431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10431 | rm -rf conftest* | |
10432 | ac_cv_sys_large_files=1 | |
10433 | else | |
10434 | echo "configure: failed program was:" >&5 | |
10435 | cat conftest.$ac_ext >&5 | |
10436 | rm -rf conftest* | |
10437 | ac_cv_sys_large_files=no | |
10438 | fi | |
10439 | rm -f conftest* | |
10440 | ||
10441 | ||
10442 | fi | |
10443 | ||
10444 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
10445 | ||
10446 | if test "$ac_cv_sys_large_files" != no; then | |
10447 | wx_largefile=yes | |
10448 | cat >> confdefs.h <<EOF | |
10449 | #define _LARGE_FILES $ac_cv_sys_large_files | |
10450 | EOF | |
10451 | ||
10452 | fi | |
10453 | ||
10454 | fi | |
10455 | ||
10456 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 | |
10457 | echo "configure:10458: checking if large file support is available" >&5 | |
10458 | if test "x$wx_largefile" = "xyes"; then | |
10459 | cat >> confdefs.h <<\EOF | |
10460 | #define HAVE_LARGEFILE_SUPPORT 1 | |
10461 | EOF | |
10462 | ||
10463 | fi | |
10464 | echo "$ac_t""$wx_largefile" 1>&6 | |
10465 | fi | |
10466 | ||
10467 | ||
10468 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
10469 | echo "configure:10470: checking whether byte ordering is bigendian" >&5 | |
10470 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then | |
10471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10472 | else | |
10473 | ac_cv_c_bigendian=unknown | |
10474 | # See if sys/param.h defines the BYTE_ORDER macro. | |
10475 | cat > conftest.$ac_ext <<EOF | |
10476 | #line 10477 "configure" | |
10477 | #include "confdefs.h" | |
10478 | #include <sys/types.h> | |
10479 | #include <sys/param.h> | |
10480 | int main() { | |
10481 | ||
10482 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10483 | bogus endian macros | |
10484 | #endif | |
10485 | ; return 0; } | |
10486 | EOF | |
10487 | if { (eval echo configure:10488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10488 | rm -rf conftest* | |
10489 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
10490 | cat > conftest.$ac_ext <<EOF | |
10491 | #line 10492 "configure" | |
10492 | #include "confdefs.h" | |
10493 | #include <sys/types.h> | |
10494 | #include <sys/param.h> | |
10495 | int main() { | |
10496 | ||
10497 | #if BYTE_ORDER != BIG_ENDIAN | |
10498 | not big endian | |
10499 | #endif | |
10500 | ; return 0; } | |
10501 | EOF | |
10502 | if { (eval echo configure:10503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10503 | rm -rf conftest* | |
10504 | ac_cv_c_bigendian=yes | |
10505 | else | |
10506 | echo "configure: failed program was:" >&5 | |
10507 | cat conftest.$ac_ext >&5 | |
10508 | rm -rf conftest* | |
10509 | ac_cv_c_bigendian=no | |
10510 | fi | |
10511 | rm -f conftest* | |
10512 | else | |
10513 | echo "configure: failed program was:" >&5 | |
10514 | cat conftest.$ac_ext >&5 | |
10515 | fi | |
10516 | rm -f conftest* | |
10517 | if test $ac_cv_c_bigendian = unknown; then | |
10518 | if test "$cross_compiling" = yes; then | |
10519 | ac_cv_c_bigendian=unknown | |
10520 | else | |
10521 | cat > conftest.$ac_ext <<EOF | |
10522 | #line 10523 "configure" | |
10523 | #include "confdefs.h" | |
10524 | main () { | |
10525 | /* Are we little or big endian? From Harbison&Steele. */ | |
10526 | union | |
10527 | { | |
10528 | long l; | |
10529 | char c[sizeof (long)]; | |
10530 | } u; | |
10531 | u.l = 1; | |
10532 | exit (u.c[sizeof (long) - 1] == 1); | |
10533 | } | |
10534 | EOF | |
10535 | if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10536 | then | |
10537 | ac_cv_c_bigendian=no | |
10538 | else | |
10539 | echo "configure: failed program was:" >&5 | |
10540 | cat conftest.$ac_ext >&5 | |
10541 | rm -fr conftest* | |
10542 | ac_cv_c_bigendian=yes | |
10543 | fi | |
10544 | rm -fr conftest* | |
10545 | fi | |
10546 | ||
10547 | fi | |
10548 | fi | |
10549 | ||
10550 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10551 | if test $ac_cv_c_bigendian = unknown; then | |
10552 | 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 | |
10553 | fi | |
10554 | if test $ac_cv_c_bigendian = yes; then | |
10555 | cat >> confdefs.h <<\EOF | |
10556 | #define WORDS_BIGENDIAN 1 | |
10557 | EOF | |
10558 | ||
10559 | fi | |
10560 | ||
10561 | ||
10562 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
10563 | echo "configure:10564: checking how to run the C++ preprocessor" >&5 | |
10564 | if test -z "$CXXCPP"; then | |
10565 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
10566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10567 | else | |
10568 | ac_ext=C | |
10569 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10570 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10571 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10572 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10573 | cross_compiling=$ac_cv_prog_cxx_cross | |
10574 | CXXCPP="${CXX-g++} -E" | |
10575 | cat > conftest.$ac_ext <<EOF | |
10576 | #line 10577 "configure" | |
10577 | #include "confdefs.h" | |
10578 | #include <stdlib.h> | |
10579 | EOF | |
10580 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10581 | { (eval echo configure:10582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10582 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10583 | if test -z "$ac_err"; then | |
10584 | : | |
10585 | else | |
10586 | echo "$ac_err" >&5 | |
10587 | echo "configure: failed program was:" >&5 | |
10588 | cat conftest.$ac_ext >&5 | |
10589 | rm -rf conftest* | |
10590 | CXXCPP=/lib/cpp | |
10591 | fi | |
10592 | rm -f conftest* | |
10593 | ac_cv_prog_CXXCPP="$CXXCPP" | |
10594 | ac_ext=C | |
10595 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10596 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10597 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10598 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10599 | cross_compiling=$ac_cv_prog_cxx_cross | |
10600 | fi | |
10601 | fi | |
10602 | CXXCPP="$ac_cv_prog_CXXCPP" | |
10603 | echo "$ac_t""$CXXCPP" 1>&6 | |
10604 | ||
10605 | ||
10606 | if test "$cross_compiling" = "yes"; then | |
10607 | cat >> confdefs.h <<\EOF | |
10608 | #define wxUSE_IOSTREAMH 1 | |
10609 | EOF | |
10610 | ||
10611 | else | |
10612 | ||
10613 | ac_ext=C | |
10614 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10615 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10616 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10617 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10618 | cross_compiling=$ac_cv_prog_cxx_cross | |
10619 | ||
10620 | ||
10621 | for ac_hdr in iostream | |
10622 | do | |
10623 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10624 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10625 | echo "configure:10626: checking for $ac_hdr" >&5 | |
10626 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10627 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10628 | else | |
10629 | cat > conftest.$ac_ext <<EOF | |
10630 | #line 10631 "configure" | |
10631 | #include "confdefs.h" | |
10632 | #include <$ac_hdr> | |
10633 | EOF | |
10634 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10635 | { (eval echo configure:10636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10636 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10637 | if test -z "$ac_err"; then | |
10638 | rm -rf conftest* | |
10639 | eval "ac_cv_header_$ac_safe=yes" | |
10640 | else | |
10641 | echo "$ac_err" >&5 | |
10642 | echo "configure: failed program was:" >&5 | |
10643 | cat conftest.$ac_ext >&5 | |
10644 | rm -rf conftest* | |
10645 | eval "ac_cv_header_$ac_safe=no" | |
10646 | fi | |
10647 | rm -f conftest* | |
10648 | fi | |
10649 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10650 | echo "$ac_t""yes" 1>&6 | |
10651 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10652 | cat >> confdefs.h <<EOF | |
10653 | #define $ac_tr_hdr 1 | |
10654 | EOF | |
10655 | ||
10656 | else | |
10657 | echo "$ac_t""no" 1>&6 | |
10658 | fi | |
10659 | done | |
10660 | ||
10661 | ||
10662 | if test "$ac_cv_header_iostream" = "yes" ; then | |
10663 | : | |
10664 | else | |
10665 | cat >> confdefs.h <<\EOF | |
10666 | #define wxUSE_IOSTREAMH 1 | |
10667 | EOF | |
10668 | ||
10669 | fi | |
10670 | ||
10671 | ac_ext=c | |
10672 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10673 | ac_cpp='$CPP $CPPFLAGS' | |
10674 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10675 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10676 | cross_compiling=$ac_cv_prog_cc_cross | |
10677 | ||
10678 | fi | |
10679 | ||
10680 | ||
10681 | ||
10682 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
10683 | echo "configure:10684: checking if C++ compiler supports bool" >&5 | |
10684 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then | |
10685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10686 | else | |
10687 | ||
10688 | ||
10689 | ac_ext=C | |
10690 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10691 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10692 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10693 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10694 | cross_compiling=$ac_cv_prog_cxx_cross | |
10695 | ||
10696 | ||
10697 | cat > conftest.$ac_ext <<EOF | |
10698 | #line 10699 "configure" | |
10699 | #include "confdefs.h" | |
10700 | ||
10701 | ||
10702 | int main() { | |
10703 | ||
10704 | bool b = true; | |
10705 | ||
10706 | return 0; | |
10707 | ||
10708 | ; return 0; } | |
10709 | EOF | |
10710 | if { (eval echo configure:10711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10711 | rm -rf conftest* | |
10712 | ||
10713 | wx_cv_cpp_bool=yes | |
10714 | ||
10715 | else | |
10716 | echo "configure: failed program was:" >&5 | |
10717 | cat conftest.$ac_ext >&5 | |
10718 | rm -rf conftest* | |
10719 | ||
10720 | wx_cv_cpp_bool=no | |
10721 | ||
10722 | ||
10723 | fi | |
10724 | rm -f conftest* | |
10725 | ||
10726 | ac_ext=c | |
10727 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10728 | ac_cpp='$CPP $CPPFLAGS' | |
10729 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10730 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10731 | cross_compiling=$ac_cv_prog_cc_cross | |
10732 | ||
10733 | ||
10734 | fi | |
10735 | ||
10736 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10737 | ||
10738 | if test "$wx_cv_cpp_bool" = "yes"; then | |
10739 | cat >> confdefs.h <<\EOF | |
10740 | #define HAVE_BOOL 1 | |
10741 | EOF | |
10742 | ||
10743 | fi | |
10744 | ||
10745 | ||
10746 | ||
10747 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 | |
10748 | echo "configure:10749: checking if C++ compiler supports the explicit keyword" >&5 | |
10749 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then | |
10750 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10751 | else | |
10752 | ||
10753 | ||
10754 | ac_ext=C | |
10755 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10756 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10757 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10758 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10759 | cross_compiling=$ac_cv_prog_cxx_cross | |
10760 | ||
10761 | ||
10762 | cat > conftest.$ac_ext <<EOF | |
10763 | #line 10764 "configure" | |
10764 | #include "confdefs.h" | |
10765 | ||
10766 | class Foo { public: explicit Foo(int) {} }; | |
10767 | ||
10768 | int main() { | |
10769 | ||
10770 | return 0; | |
10771 | ||
10772 | ; return 0; } | |
10773 | EOF | |
10774 | if { (eval echo configure:10775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10775 | rm -rf conftest* | |
10776 | ||
10777 | cat > conftest.$ac_ext <<EOF | |
10778 | #line 10779 "configure" | |
10779 | #include "confdefs.h" | |
10780 | ||
10781 | class Foo { public: explicit Foo(int) {} }; | |
10782 | static void TakeFoo(const Foo& foo) { } | |
10783 | ||
10784 | int main() { | |
10785 | ||
10786 | TakeFoo(17); | |
10787 | return 0; | |
10788 | ||
10789 | ; return 0; } | |
10790 | EOF | |
10791 | if { (eval echo configure:10792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10792 | rm -rf conftest* | |
10793 | wx_cv_explicit=no | |
10794 | else | |
10795 | echo "configure: failed program was:" >&5 | |
10796 | cat conftest.$ac_ext >&5 | |
10797 | rm -rf conftest* | |
10798 | wx_cv_explicit=yes | |
10799 | ||
10800 | fi | |
10801 | rm -f conftest* | |
10802 | ||
10803 | else | |
10804 | echo "configure: failed program was:" >&5 | |
10805 | cat conftest.$ac_ext >&5 | |
10806 | rm -rf conftest* | |
10807 | wx_cv_explicit=no | |
10808 | ||
10809 | fi | |
10810 | rm -f conftest* | |
10811 | ||
10812 | ac_ext=c | |
10813 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10814 | ac_cpp='$CPP $CPPFLAGS' | |
10815 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10816 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10817 | cross_compiling=$ac_cv_prog_cc_cross | |
10818 | ||
10819 | ||
10820 | fi | |
10821 | ||
10822 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
10823 | ||
10824 | if test "$wx_cv_explicit" = "yes"; then | |
10825 | cat >> confdefs.h <<\EOF | |
10826 | #define HAVE_EXPLICIT 1 | |
10827 | EOF | |
10828 | ||
10829 | fi | |
10830 | ||
10831 | ||
10832 | ||
10833 | SEARCH_INCLUDE="\ | |
10834 | /usr/local/include \ | |
10835 | \ | |
10836 | /usr/Motif-1.2/include \ | |
10837 | /usr/Motif-2.1/include \ | |
10838 | \ | |
10839 | /usr/include/Motif1.2 \ | |
10840 | /opt/xpm/include/X11 \ | |
10841 | /opt/GBxpm/include/ \ | |
10842 | /opt/GBxpm/X11/include/ \ | |
10843 | \ | |
10844 | /usr/Motif1.2/include \ | |
10845 | /usr/dt/include \ | |
10846 | /usr/openwin/include \ | |
10847 | \ | |
10848 | /usr/include/Xm \ | |
10849 | \ | |
10850 | /usr/X11R6/include \ | |
10851 | /usr/X11R6.4/include \ | |
10852 | /usr/X11R5/include \ | |
10853 | /usr/X11R4/include \ | |
10854 | \ | |
10855 | /usr/include/X11R6 \ | |
10856 | /usr/include/X11R5 \ | |
10857 | /usr/include/X11R4 \ | |
10858 | \ | |
10859 | /usr/local/X11R6/include \ | |
10860 | /usr/local/X11R5/include \ | |
10861 | /usr/local/X11R4/include \ | |
10862 | \ | |
10863 | /usr/local/include/X11R6 \ | |
10864 | /usr/local/include/X11R5 \ | |
10865 | /usr/local/include/X11R4 \ | |
10866 | \ | |
10867 | /usr/X11/include \ | |
10868 | /usr/include/X11 \ | |
10869 | /usr/local/X11/include \ | |
10870 | /usr/local/include/X11 \ | |
10871 | \ | |
10872 | /usr/X386/include \ | |
10873 | /usr/x386/include \ | |
10874 | /usr/XFree86/include/X11 \ | |
10875 | \ | |
10876 | X:/XFree86/include \ | |
10877 | X:/XFree86/include/X11 \ | |
10878 | \ | |
10879 | /usr/include/gtk \ | |
10880 | /usr/local/include/gtk \ | |
10881 | /usr/include/glib \ | |
10882 | /usr/local/include/glib \ | |
10883 | \ | |
10884 | /usr/include/qt \ | |
10885 | /usr/local/include/qt \ | |
10886 | \ | |
10887 | /usr/include/windows \ | |
10888 | /usr/include/wine \ | |
10889 | /usr/local/include/wine \ | |
10890 | \ | |
10891 | /usr/unsupported/include \ | |
10892 | /usr/athena/include \ | |
10893 | /usr/local/x11r5/include \ | |
10894 | /usr/lpp/Xamples/include \ | |
10895 | \ | |
10896 | /usr/openwin/share/include \ | |
10897 | \ | |
10898 | /usr/include" | |
10899 | ||
10900 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
10901 | ||
10902 | ||
10903 | cat > confcache <<\EOF | |
10904 | # This file is a shell script that caches the results of configure | |
10905 | # tests run on this system so they can be shared between configure | |
10906 | # scripts and configure runs. It is not useful on other systems. | |
10907 | # If it contains results you don't want to keep, you may remove or edit it. | |
10908 | # | |
10909 | # By default, configure uses ./config.cache as the cache file, | |
10910 | # creating it if it does not exist already. You can give configure | |
10911 | # the --cache-file=FILE option to use a different cache file; that is | |
10912 | # what configure does when it calls configure scripts in | |
10913 | # subdirectories, so they share the cache. | |
10914 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10915 | # config.status only pays attention to the cache file if you give it the | |
10916 | # --recheck option to rerun configure. | |
10917 | # | |
10918 | EOF | |
10919 | # The following way of writing the cache mishandles newlines in values, | |
10920 | # but we know of no workaround that is simple, portable, and efficient. | |
10921 | # So, don't put newlines in cache variables' values. | |
10922 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10923 | # and sets the high bit in the cache file unless we assign to the vars. | |
10924 | (set) 2>&1 | | |
10925 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10926 | *ac_space=\ *) | |
10927 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10928 | # turns \\\\ into \\, and sed turns \\ into \). | |
10929 | sed -n \ | |
10930 | -e "s/'/'\\\\''/g" \ | |
10931 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10932 | ;; | |
10933 | *) | |
10934 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10935 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10936 | ;; | |
10937 | esac >> confcache | |
10938 | if cmp -s $cache_file confcache; then | |
10939 | : | |
10940 | else | |
10941 | if test -w $cache_file; then | |
10942 | echo "updating cache $cache_file" | |
10943 | cat confcache > $cache_file | |
10944 | else | |
10945 | echo "not updating unwritable cache $cache_file" | |
10946 | fi | |
10947 | fi | |
10948 | rm -f confcache | |
10949 | ||
10950 | ||
10951 | if test "$USE_LINUX" = 1; then | |
10952 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
10953 | echo "configure:10954: checking for glibc 2.1 or later" >&5 | |
10954 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then | |
10955 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10956 | else | |
10957 | ||
10958 | cat > conftest.$ac_ext <<EOF | |
10959 | #line 10960 "configure" | |
10960 | #include "confdefs.h" | |
10961 | #include <features.h> | |
10962 | int main() { | |
10963 | ||
10964 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
10965 | #error not glibc2.1 | |
10966 | #endif | |
10967 | ||
10968 | ; return 0; } | |
10969 | EOF | |
10970 | if { (eval echo configure:10971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10971 | rm -rf conftest* | |
10972 | ||
10973 | wx_cv_lib_glibc21=yes | |
10974 | ||
10975 | else | |
10976 | echo "configure: failed program was:" >&5 | |
10977 | cat conftest.$ac_ext >&5 | |
10978 | rm -rf conftest* | |
10979 | ||
10980 | wx_cv_lib_glibc21=no | |
10981 | ||
10982 | ||
10983 | fi | |
10984 | rm -f conftest* | |
10985 | ||
10986 | fi | |
10987 | ||
10988 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
10989 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
10990 | cat >> confdefs.h <<\EOF | |
10991 | #define wxHAVE_GLIBC2 1 | |
10992 | EOF | |
10993 | ||
10994 | fi | |
10995 | fi | |
10996 | ||
10997 | ||
10998 | ||
10999 | REGEX_INCLUDE= | |
11000 | if test "$wxUSE_REGEX" != "no"; then | |
11001 | cat >> confdefs.h <<\EOF | |
11002 | #define wxUSE_REGEX 1 | |
11003 | EOF | |
11004 | ||
11005 | ||
11006 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
11007 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
11008 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
11009 | echo "configure:11010: checking for regex.h" >&5 | |
11010 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11012 | else | |
11013 | cat > conftest.$ac_ext <<EOF | |
11014 | #line 11015 "configure" | |
11015 | #include "confdefs.h" | |
11016 | #include <regex.h> | |
11017 | EOF | |
11018 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11019 | { (eval echo configure:11020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11020 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11021 | if test -z "$ac_err"; then | |
11022 | rm -rf conftest* | |
11023 | eval "ac_cv_header_$ac_safe=yes" | |
11024 | else | |
11025 | echo "$ac_err" >&5 | |
11026 | echo "configure: failed program was:" >&5 | |
11027 | cat conftest.$ac_ext >&5 | |
11028 | rm -rf conftest* | |
11029 | eval "ac_cv_header_$ac_safe=no" | |
11030 | fi | |
11031 | rm -f conftest* | |
11032 | fi | |
11033 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11034 | echo "$ac_t""yes" 1>&6 | |
11035 | for ac_func in regcomp | |
11036 | do | |
11037 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
11038 | echo "configure:11039: checking for $ac_func" >&5 | |
11039 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
11040 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11041 | else | |
11042 | cat > conftest.$ac_ext <<EOF | |
11043 | #line 11044 "configure" | |
11044 | #include "confdefs.h" | |
11045 | /* System header to define __stub macros and hopefully few prototypes, | |
11046 | which can conflict with char $ac_func(); below. */ | |
11047 | #include <assert.h> | |
11048 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11049 | /* We use char because int might match the return type of a gcc2 | |
11050 | builtin and then its argument prototype would still apply. */ | |
11051 | char $ac_func(); | |
11052 | ||
11053 | int main() { | |
11054 | ||
11055 | /* The GNU C library defines this for functions which it implements | |
11056 | to always fail with ENOSYS. Some functions are actually named | |
11057 | something starting with __ and the normal name is an alias. */ | |
11058 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11059 | choke me | |
11060 | #else | |
11061 | $ac_func(); | |
11062 | #endif | |
11063 | ||
11064 | ; return 0; } | |
11065 | EOF | |
11066 | if { (eval echo configure:11067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11067 | rm -rf conftest* | |
11068 | eval "ac_cv_func_$ac_func=yes" | |
11069 | else | |
11070 | echo "configure: failed program was:" >&5 | |
11071 | cat conftest.$ac_ext >&5 | |
11072 | rm -rf conftest* | |
11073 | eval "ac_cv_func_$ac_func=no" | |
11074 | fi | |
11075 | rm -f conftest* | |
11076 | fi | |
11077 | ||
11078 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11079 | echo "$ac_t""yes" 1>&6 | |
11080 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11081 | cat >> confdefs.h <<EOF | |
11082 | #define $ac_tr_func 1 | |
11083 | EOF | |
11084 | ||
11085 | else | |
11086 | echo "$ac_t""no" 1>&6 | |
11087 | fi | |
11088 | done | |
11089 | ||
11090 | else | |
11091 | echo "$ac_t""no" 1>&6 | |
11092 | fi | |
11093 | ||
11094 | ||
11095 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
11096 | if test "$wxUSE_REGEX" = "sys" ; then | |
11097 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
11098 | else | |
11099 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 | |
11100 | wxUSE_REGEX=builtin | |
11101 | fi | |
11102 | else | |
11103 | wxUSE_REGEX=sys | |
11104 | fi | |
11105 | fi | |
11106 | ||
11107 | if test "$wxUSE_REGEX" = "builtin" ; then | |
11108 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
11109 | fi | |
11110 | fi | |
11111 | ||
11112 | ||
11113 | ZLIB_INCLUDE= | |
11114 | ZLIB_LINK= | |
11115 | if test "$wxUSE_ZLIB" != "no" ; then | |
11116 | cat >> confdefs.h <<\EOF | |
11117 | #define wxUSE_ZLIB 1 | |
11118 | EOF | |
11119 | ||
11120 | ||
11121 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
11122 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
11123 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
11124 | echo "configure:11125: checking for zlib.h" >&5 | |
11125 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11126 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11127 | else | |
11128 | cat > conftest.$ac_ext <<EOF | |
11129 | #line 11130 "configure" | |
11130 | #include "confdefs.h" | |
11131 | #include <zlib.h> | |
11132 | EOF | |
11133 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11134 | { (eval echo configure:11135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11135 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11136 | if test -z "$ac_err"; then | |
11137 | rm -rf conftest* | |
11138 | eval "ac_cv_header_$ac_safe=yes" | |
11139 | else | |
11140 | echo "$ac_err" >&5 | |
11141 | echo "configure: failed program was:" >&5 | |
11142 | cat conftest.$ac_ext >&5 | |
11143 | rm -rf conftest* | |
11144 | eval "ac_cv_header_$ac_safe=no" | |
11145 | fi | |
11146 | rm -f conftest* | |
11147 | fi | |
11148 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11149 | echo "$ac_t""yes" 1>&6 | |
11150 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
11151 | echo "configure:11152: checking for deflate in -lz" >&5 | |
11152 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` | |
11153 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11154 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11155 | else | |
11156 | ac_save_LIBS="$LIBS" | |
11157 | LIBS="-lz $LIBS" | |
11158 | cat > conftest.$ac_ext <<EOF | |
11159 | #line 11160 "configure" | |
11160 | #include "confdefs.h" | |
11161 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11162 | /* We use char because int might match the return type of a gcc2 | |
11163 | builtin and then its argument prototype would still apply. */ | |
11164 | char deflate(); | |
11165 | ||
11166 | int main() { | |
11167 | deflate() | |
11168 | ; return 0; } | |
11169 | EOF | |
11170 | if { (eval echo configure:11171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11171 | rm -rf conftest* | |
11172 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11173 | else | |
11174 | echo "configure: failed program was:" >&5 | |
11175 | cat conftest.$ac_ext >&5 | |
11176 | rm -rf conftest* | |
11177 | eval "ac_cv_lib_$ac_lib_var=no" | |
11178 | fi | |
11179 | rm -f conftest* | |
11180 | LIBS="$ac_save_LIBS" | |
11181 | ||
11182 | fi | |
11183 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11184 | echo "$ac_t""yes" 1>&6 | |
11185 | ZLIB_LINK=" -lz" | |
11186 | else | |
11187 | echo "$ac_t""no" 1>&6 | |
11188 | fi | |
11189 | ||
11190 | else | |
11191 | echo "$ac_t""no" 1>&6 | |
11192 | fi | |
11193 | ||
11194 | ||
11195 | if test "x$ZLIB_LINK" = "x" ; then | |
11196 | if test "$wxUSE_ZLIB" = "sys" ; then | |
11197 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
11198 | else | |
11199 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 | |
11200 | wxUSE_ZLIB=builtin | |
11201 | fi | |
11202 | else | |
11203 | wxUSE_ZLIB=sys | |
11204 | fi | |
11205 | fi | |
11206 | ||
11207 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11208 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11209 | fi | |
11210 | fi | |
11211 | ||
11212 | ||
11213 | PNG_INCLUDE= | |
11214 | PNG_LINK= | |
11215 | if test "$wxUSE_LIBPNG" != "no" ; then | |
11216 | cat >> confdefs.h <<\EOF | |
11217 | #define wxUSE_LIBPNG 1 | |
11218 | EOF | |
11219 | ||
11220 | ||
11221 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
11222 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
11223 | wxUSE_LIBPNG=sys | |
11224 | fi | |
11225 | ||
11226 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
11227 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 | |
11228 | wxUSE_LIBPNG=builtin | |
11229 | fi | |
11230 | ||
11231 | if test "$wxUSE_MGL" != 1 ; then | |
11232 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
11233 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
11234 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
11235 | echo "configure:11236: checking for png.h" >&5 | |
11236 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11238 | else | |
11239 | cat > conftest.$ac_ext <<EOF | |
11240 | #line 11241 "configure" | |
11241 | #include "confdefs.h" | |
11242 | #include <png.h> | |
11243 | EOF | |
11244 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11245 | { (eval echo configure:11246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11246 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11247 | if test -z "$ac_err"; then | |
11248 | rm -rf conftest* | |
11249 | eval "ac_cv_header_$ac_safe=yes" | |
11250 | else | |
11251 | echo "$ac_err" >&5 | |
11252 | echo "configure: failed program was:" >&5 | |
11253 | cat conftest.$ac_ext >&5 | |
11254 | rm -rf conftest* | |
11255 | eval "ac_cv_header_$ac_safe=no" | |
11256 | fi | |
11257 | rm -f conftest* | |
11258 | fi | |
11259 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11260 | echo "$ac_t""yes" 1>&6 | |
11261 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
11262 | echo "configure:11263: checking for png_check_sig in -lpng" >&5 | |
11263 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` | |
11264 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11266 | else | |
11267 | ac_save_LIBS="$LIBS" | |
11268 | LIBS="-lpng -lz -lm $LIBS" | |
11269 | cat > conftest.$ac_ext <<EOF | |
11270 | #line 11271 "configure" | |
11271 | #include "confdefs.h" | |
11272 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11273 | /* We use char because int might match the return type of a gcc2 | |
11274 | builtin and then its argument prototype would still apply. */ | |
11275 | char png_check_sig(); | |
11276 | ||
11277 | int main() { | |
11278 | png_check_sig() | |
11279 | ; return 0; } | |
11280 | EOF | |
11281 | if { (eval echo configure:11282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11282 | rm -rf conftest* | |
11283 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11284 | else | |
11285 | echo "configure: failed program was:" >&5 | |
11286 | cat conftest.$ac_ext >&5 | |
11287 | rm -rf conftest* | |
11288 | eval "ac_cv_lib_$ac_lib_var=no" | |
11289 | fi | |
11290 | rm -f conftest* | |
11291 | LIBS="$ac_save_LIBS" | |
11292 | ||
11293 | fi | |
11294 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11295 | echo "$ac_t""yes" 1>&6 | |
11296 | PNG_LINK=" -lpng" | |
11297 | else | |
11298 | echo "$ac_t""no" 1>&6 | |
11299 | fi | |
11300 | ||
11301 | ||
11302 | else | |
11303 | echo "$ac_t""no" 1>&6 | |
11304 | fi | |
11305 | ||
11306 | ||
11307 | if test "x$PNG_LINK" = "x" ; then | |
11308 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
11309 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
11310 | else | |
11311 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
11312 | wxUSE_LIBPNG=builtin | |
11313 | fi | |
11314 | else | |
11315 | wxUSE_LIBPNG=yes | |
11316 | fi | |
11317 | fi | |
11318 | fi | |
11319 | ||
11320 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
11321 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11322 | fi | |
11323 | ||
11324 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
11325 | fi | |
11326 | ||
11327 | ||
11328 | JPEG_INCLUDE= | |
11329 | JPEG_LINK= | |
11330 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
11331 | cat >> confdefs.h <<\EOF | |
11332 | #define wxUSE_LIBJPEG 1 | |
11333 | EOF | |
11334 | ||
11335 | ||
11336 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
11337 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
11338 | wxUSE_LIBJPEG=sys | |
11339 | fi | |
11340 | ||
11341 | if test "$wxUSE_MGL" != 1 ; then | |
11342 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
11343 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
11344 | echo "configure:11345: checking for jpeglib.h" >&5 | |
11345 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then | |
11346 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11347 | else | |
11348 | cat > conftest.$ac_ext <<EOF | |
11349 | #line 11350 "configure" | |
11350 | #include "confdefs.h" | |
11351 | ||
11352 | #undef HAVE_STDLIB_H | |
11353 | #include <stdio.h> | |
11354 | #include <jpeglib.h> | |
11355 | ||
11356 | int main() { | |
11357 | ||
11358 | ||
11359 | ; return 0; } | |
11360 | EOF | |
11361 | if { (eval echo configure:11362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11362 | rm -rf conftest* | |
11363 | ac_cv_header_jpeglib_h=yes | |
11364 | else | |
11365 | echo "configure: failed program was:" >&5 | |
11366 | cat conftest.$ac_ext >&5 | |
11367 | rm -rf conftest* | |
11368 | ac_cv_header_jpeglib_h=no | |
11369 | ||
11370 | fi | |
11371 | rm -f conftest* | |
11372 | ||
11373 | fi | |
11374 | ||
11375 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
11376 | ||
11377 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
11378 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
11379 | echo "configure:11380: checking for jpeg_read_header in -ljpeg" >&5 | |
11380 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` | |
11381 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11382 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11383 | else | |
11384 | ac_save_LIBS="$LIBS" | |
11385 | LIBS="-ljpeg $LIBS" | |
11386 | cat > conftest.$ac_ext <<EOF | |
11387 | #line 11388 "configure" | |
11388 | #include "confdefs.h" | |
11389 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11390 | /* We use char because int might match the return type of a gcc2 | |
11391 | builtin and then its argument prototype would still apply. */ | |
11392 | char jpeg_read_header(); | |
11393 | ||
11394 | int main() { | |
11395 | jpeg_read_header() | |
11396 | ; return 0; } | |
11397 | EOF | |
11398 | if { (eval echo configure:11399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11399 | rm -rf conftest* | |
11400 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11401 | else | |
11402 | echo "configure: failed program was:" >&5 | |
11403 | cat conftest.$ac_ext >&5 | |
11404 | rm -rf conftest* | |
11405 | eval "ac_cv_lib_$ac_lib_var=no" | |
11406 | fi | |
11407 | rm -f conftest* | |
11408 | LIBS="$ac_save_LIBS" | |
11409 | ||
11410 | fi | |
11411 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11412 | echo "$ac_t""yes" 1>&6 | |
11413 | JPEG_LINK=" -ljpeg" | |
11414 | else | |
11415 | echo "$ac_t""no" 1>&6 | |
11416 | fi | |
11417 | ||
11418 | fi | |
11419 | ||
11420 | if test "x$JPEG_LINK" = "x" ; then | |
11421 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
11422 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
11423 | else | |
11424 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
11425 | wxUSE_LIBJPEG=builtin | |
11426 | fi | |
11427 | else | |
11428 | wxUSE_LIBJPEG=sys | |
11429 | fi | |
11430 | fi | |
11431 | fi | |
11432 | ||
11433 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
11434 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11435 | fi | |
11436 | fi | |
11437 | ||
11438 | ||
11439 | TIFF_INCLUDE= | |
11440 | TIFF_LINK= | |
11441 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
11442 | cat >> confdefs.h <<\EOF | |
11443 | #define wxUSE_LIBTIFF 1 | |
11444 | EOF | |
11445 | ||
11446 | ||
11447 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
11448 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
11449 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
11450 | echo "configure:11451: checking for tiffio.h" >&5 | |
11451 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11452 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11453 | else | |
11454 | cat > conftest.$ac_ext <<EOF | |
11455 | #line 11456 "configure" | |
11456 | #include "confdefs.h" | |
11457 | #include <tiffio.h> | |
11458 | EOF | |
11459 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11460 | { (eval echo configure:11461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11461 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11462 | if test -z "$ac_err"; then | |
11463 | rm -rf conftest* | |
11464 | eval "ac_cv_header_$ac_safe=yes" | |
11465 | else | |
11466 | echo "$ac_err" >&5 | |
11467 | echo "configure: failed program was:" >&5 | |
11468 | cat conftest.$ac_ext >&5 | |
11469 | rm -rf conftest* | |
11470 | eval "ac_cv_header_$ac_safe=no" | |
11471 | fi | |
11472 | rm -f conftest* | |
11473 | fi | |
11474 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11475 | echo "$ac_t""yes" 1>&6 | |
11476 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
11477 | echo "configure:11478: checking for TIFFError in -ltiff" >&5 | |
11478 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` | |
11479 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11480 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11481 | else | |
11482 | ac_save_LIBS="$LIBS" | |
11483 | LIBS="-ltiff -lm $LIBS" | |
11484 | cat > conftest.$ac_ext <<EOF | |
11485 | #line 11486 "configure" | |
11486 | #include "confdefs.h" | |
11487 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11488 | /* We use char because int might match the return type of a gcc2 | |
11489 | builtin and then its argument prototype would still apply. */ | |
11490 | char TIFFError(); | |
11491 | ||
11492 | int main() { | |
11493 | TIFFError() | |
11494 | ; return 0; } | |
11495 | EOF | |
11496 | if { (eval echo configure:11497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11497 | rm -rf conftest* | |
11498 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11499 | else | |
11500 | echo "configure: failed program was:" >&5 | |
11501 | cat conftest.$ac_ext >&5 | |
11502 | rm -rf conftest* | |
11503 | eval "ac_cv_lib_$ac_lib_var=no" | |
11504 | fi | |
11505 | rm -f conftest* | |
11506 | LIBS="$ac_save_LIBS" | |
11507 | ||
11508 | fi | |
11509 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11510 | echo "$ac_t""yes" 1>&6 | |
11511 | TIFF_LINK=" -ltiff" | |
11512 | else | |
11513 | echo "$ac_t""no" 1>&6 | |
11514 | fi | |
11515 | ||
11516 | ||
11517 | else | |
11518 | echo "$ac_t""no" 1>&6 | |
11519 | fi | |
11520 | ||
11521 | ||
11522 | if test "x$TIFF_LINK" = "x" ; then | |
11523 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
11524 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
11525 | else | |
11526 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 | |
11527 | wxUSE_LIBTIFF=builtin | |
11528 | fi | |
11529 | else | |
11530 | wxUSE_LIBTIFF=sys | |
11531 | fi | |
11532 | fi | |
11533 | ||
11534 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
11535 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
11536 | fi | |
11537 | fi | |
11538 | ||
11539 | ||
11540 | AFMINSTALL= | |
11541 | ||
11542 | TOOLKIT= | |
11543 | TOOLKIT_INCLUDE= | |
11544 | WIDGET_SET= | |
11545 | ||
11546 | if test "$USE_WIN32" = 1 ; then | |
11547 | for ac_hdr in w32api.h | |
11548 | do | |
11549 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11550 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
11551 | echo "configure:11552: checking for $ac_hdr" >&5 | |
11552 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11554 | else | |
11555 | cat > conftest.$ac_ext <<EOF | |
11556 | #line 11557 "configure" | |
11557 | #include "confdefs.h" | |
11558 | #include <$ac_hdr> | |
11559 | EOF | |
11560 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11561 | { (eval echo configure:11562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11562 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11563 | if test -z "$ac_err"; then | |
11564 | rm -rf conftest* | |
11565 | eval "ac_cv_header_$ac_safe=yes" | |
11566 | else | |
11567 | echo "$ac_err" >&5 | |
11568 | echo "configure: failed program was:" >&5 | |
11569 | cat conftest.$ac_ext >&5 | |
11570 | rm -rf conftest* | |
11571 | eval "ac_cv_header_$ac_safe=no" | |
11572 | fi | |
11573 | rm -f conftest* | |
11574 | fi | |
11575 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11576 | echo "$ac_t""yes" 1>&6 | |
11577 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11578 | cat >> confdefs.h <<EOF | |
11579 | #define $ac_tr_hdr 1 | |
11580 | EOF | |
11581 | ||
11582 | else | |
11583 | echo "$ac_t""no" 1>&6 | |
11584 | fi | |
11585 | done | |
11586 | ||
11587 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
11588 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
11589 | echo "configure:11590: checking for windows.h" >&5 | |
11590 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11592 | else | |
11593 | cat > conftest.$ac_ext <<EOF | |
11594 | #line 11595 "configure" | |
11595 | #include "confdefs.h" | |
11596 | #include <windows.h> | |
11597 | EOF | |
11598 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11599 | { (eval echo configure:11600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11600 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11601 | if test -z "$ac_err"; then | |
11602 | rm -rf conftest* | |
11603 | eval "ac_cv_header_$ac_safe=yes" | |
11604 | else | |
11605 | echo "$ac_err" >&5 | |
11606 | echo "configure: failed program was:" >&5 | |
11607 | cat conftest.$ac_ext >&5 | |
11608 | rm -rf conftest* | |
11609 | eval "ac_cv_header_$ac_safe=no" | |
11610 | fi | |
11611 | rm -f conftest* | |
11612 | fi | |
11613 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11614 | echo "$ac_t""yes" 1>&6 | |
11615 | : | |
11616 | else | |
11617 | echo "$ac_t""no" 1>&6 | |
11618 | ||
11619 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
11620 | ||
11621 | fi | |
11622 | ||
11623 | ||
11624 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
11625 | echo "configure:11626: checking if w32api has good enough MSIE support" >&5 | |
11626 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then | |
11627 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11628 | else | |
11629 | ||
11630 | cat > conftest.$ac_ext <<EOF | |
11631 | #line 11632 "configure" | |
11632 | #include "confdefs.h" | |
11633 | #include <w32api.h> | |
11634 | int main() { | |
11635 | ||
11636 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
11637 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
11638 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
11639 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
11640 | ||
11641 | #if !wxCHECK_W32API_VERSION(1,1) | |
11642 | #error You need w32api 1.1 or newer | |
11643 | #endif | |
11644 | ||
11645 | ; return 0; } | |
11646 | EOF | |
11647 | if { (eval echo configure:11648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11648 | rm -rf conftest* | |
11649 | ||
11650 | wx_cv_w32api_win32_ie=yes | |
11651 | ||
11652 | else | |
11653 | echo "configure: failed program was:" >&5 | |
11654 | cat conftest.$ac_ext >&5 | |
11655 | rm -rf conftest* | |
11656 | ||
11657 | wx_cv_w32api_win32_ie=no | |
11658 | ||
11659 | fi | |
11660 | rm -f conftest* | |
11661 | ||
11662 | fi | |
11663 | ||
11664 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
11665 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
11666 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
11667 | fi | |
11668 | ||
11669 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
11670 | ||
11671 | case "${host}" in | |
11672 | *-*-cygwin* ) | |
11673 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
11674 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
11675 | esac | |
11676 | ||
11677 | if test "$wxUSE_ODBC" = "yes" ; then | |
11678 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
11679 | fi | |
11680 | ||
11681 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
11682 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
11683 | fi | |
11684 | ||
11685 | if test "$wxUSE_GUI" = "yes"; then | |
11686 | USE_GUI=1 | |
11687 | ||
11688 | GUI_TK_LIBRARY= | |
11689 | ||
11690 | WXGTK12= | |
11691 | WXGTK127= | |
11692 | WXGTK20= | |
11693 | ||
11694 | if test "$wxUSE_MSW" = 1 ; then | |
11695 | TOOLKIT=MSW | |
11696 | GUIDIST=MSW_DIST | |
11697 | ||
11698 | case "${host}" in | |
11699 | *-*-mingw32* ) | |
11700 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
11701 | esac | |
11702 | fi | |
11703 | ||
11704 | if test "$wxUSE_GTK" = 1; then | |
11705 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
11706 | echo "configure:11707: checking for GTK+ version" >&5 | |
11707 | ||
11708 | gtk_version_cached=1 | |
11709 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
11710 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11711 | else | |
11712 | ||
11713 | gtk_version_cached=0 | |
11714 | echo "$ac_t""" 1>&6 | |
11715 | ||
11716 | GTK_MODULES= | |
11717 | if test "$wxUSE_THREADS" = "yes"; then | |
11718 | GTK_MODULES=gthread | |
11719 | fi | |
11720 | ||
11721 | wx_cv_lib_gtk= | |
11722 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11723 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
11724 | if test "${enable_gtktest+set}" = set; then | |
11725 | enableval="$enable_gtktest" | |
11726 | : | |
11727 | else | |
11728 | enable_gtktest=yes | |
11729 | fi | |
11730 | ||
11731 | ||
11732 | pkg_config_args=gtk+-2.0 | |
11733 | for module in . $GTK_MODULES | |
11734 | do | |
11735 | case "$module" in | |
11736 | gthread) | |
11737 | pkg_config_args="$pkg_config_args gthread-2.0" | |
11738 | ;; | |
11739 | esac | |
11740 | done | |
11741 | ||
11742 | no_gtk="" | |
11743 | ||
11744 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11745 | set dummy pkg-config; ac_word=$2 | |
11746 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
11747 | echo "configure:11748: checking for $ac_word" >&5 | |
11748 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then | |
11749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11750 | else | |
11751 | case "$PKG_CONFIG" in | |
11752 | /*) | |
11753 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11754 | ;; | |
11755 | ?:/*) | |
11756 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
11757 | ;; | |
11758 | *) | |
11759 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11760 | ac_dummy="$PATH" | |
11761 | for ac_dir in $ac_dummy; do | |
11762 | test -z "$ac_dir" && ac_dir=. | |
11763 | if test -f $ac_dir/$ac_word; then | |
11764 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
11765 | break | |
11766 | fi | |
11767 | done | |
11768 | IFS="$ac_save_ifs" | |
11769 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11770 | ;; | |
11771 | esac | |
11772 | fi | |
11773 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
11774 | if test -n "$PKG_CONFIG"; then | |
11775 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
11776 | else | |
11777 | echo "$ac_t""no" 1>&6 | |
11778 | fi | |
11779 | ||
11780 | ||
11781 | if test x$PKG_CONFIG != xno ; then | |
11782 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
11783 | : | |
11784 | else | |
11785 | echo *** pkg-config too old; version 0.7 or better required. | |
11786 | no_gtk=yes | |
11787 | PKG_CONFIG=no | |
11788 | fi | |
11789 | else | |
11790 | no_gtk=yes | |
11791 | fi | |
11792 | ||
11793 | min_gtk_version=2.0.0 | |
11794 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 | |
11795 | echo "configure:11796: checking for GTK+ - version >= $min_gtk_version" >&5 | |
11796 | ||
11797 | if test x$PKG_CONFIG != xno ; then | |
11798 | ## don't try to run the test against uninstalled libtool libs | |
11799 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
11800 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
11801 | enable_gtktest=no | |
11802 | fi | |
11803 | ||
11804 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
11805 | : | |
11806 | else | |
11807 | no_gtk=yes | |
11808 | fi | |
11809 | fi | |
11810 | ||
11811 | if test x"$no_gtk" = x ; then | |
11812 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
11813 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
11814 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11815 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11816 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11817 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11818 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11819 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11820 | if test "x$enable_gtktest" = "xyes" ; then | |
11821 | ac_save_CFLAGS="$CFLAGS" | |
11822 | ac_save_LIBS="$LIBS" | |
11823 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11824 | LIBS="$GTK_LIBS $LIBS" | |
11825 | rm -f conf.gtktest | |
11826 | if test "$cross_compiling" = yes; then | |
11827 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
11828 | else | |
11829 | cat > conftest.$ac_ext <<EOF | |
11830 | #line 11831 "configure" | |
11831 | #include "confdefs.h" | |
11832 | ||
11833 | #include <gtk/gtk.h> | |
11834 | #include <stdio.h> | |
11835 | #include <stdlib.h> | |
11836 | ||
11837 | int | |
11838 | main () | |
11839 | { | |
11840 | int major, minor, micro; | |
11841 | char *tmp_version; | |
11842 | ||
11843 | system ("touch conf.gtktest"); | |
11844 | ||
11845 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
11846 | tmp_version = g_strdup("$min_gtk_version"); | |
11847 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11848 | printf("%s, bad version string\n", "$min_gtk_version"); | |
11849 | exit(1); | |
11850 | } | |
11851 | ||
11852 | if ((gtk_major_version != $gtk_config_major_version) || | |
11853 | (gtk_minor_version != $gtk_config_minor_version) || | |
11854 | (gtk_micro_version != $gtk_config_micro_version)) | |
11855 | { | |
11856 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11857 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11858 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11859 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
11860 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11861 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11862 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11863 | printf("*** required on your system.\n"); | |
11864 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
11865 | printf("*** to point to the correct configuration files\n"); | |
11866 | } | |
11867 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11868 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11869 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11870 | { | |
11871 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11872 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11873 | printf("*** library (version %d.%d.%d)\n", | |
11874 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11875 | } | |
11876 | else | |
11877 | { | |
11878 | if ((gtk_major_version > major) || | |
11879 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11880 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11881 | { | |
11882 | return 0; | |
11883 | } | |
11884 | else | |
11885 | { | |
11886 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11887 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11888 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11889 | major, minor, micro); | |
11890 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11891 | printf("***\n"); | |
11892 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11893 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
11894 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11895 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
11896 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
11897 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11898 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11899 | } | |
11900 | } | |
11901 | return 1; | |
11902 | } | |
11903 | ||
11904 | EOF | |
11905 | if { (eval echo configure:11906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11906 | then | |
11907 | : | |
11908 | else | |
11909 | echo "configure: failed program was:" >&5 | |
11910 | cat conftest.$ac_ext >&5 | |
11911 | rm -fr conftest* | |
11912 | no_gtk=yes | |
11913 | fi | |
11914 | rm -fr conftest* | |
11915 | fi | |
11916 | ||
11917 | CFLAGS="$ac_save_CFLAGS" | |
11918 | LIBS="$ac_save_LIBS" | |
11919 | fi | |
11920 | fi | |
11921 | if test "x$no_gtk" = x ; then | |
11922 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 | |
11923 | wx_cv_lib_gtk=2.0 | |
11924 | else | |
11925 | echo "$ac_t""no" 1>&6 | |
11926 | if test "$PKG_CONFIG" = "no" ; then | |
11927 | echo "*** A new enough version of pkg-config was not found." | |
11928 | echo "*** See http://pkgconfig.sourceforge.net" | |
11929 | else | |
11930 | if test -f conf.gtktest ; then | |
11931 | : | |
11932 | else | |
11933 | echo "*** Could not run GTK+ test program, checking why..." | |
11934 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11935 | LIBS="$LIBS $GTK_LIBS" | |
11936 | cat > conftest.$ac_ext <<EOF | |
11937 | #line 11938 "configure" | |
11938 | #include "confdefs.h" | |
11939 | ||
11940 | #include <gtk/gtk.h> | |
11941 | #include <stdio.h> | |
11942 | ||
11943 | int main() { | |
11944 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
11945 | ; return 0; } | |
11946 | EOF | |
11947 | if { (eval echo configure:11948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11948 | rm -rf conftest* | |
11949 | echo "*** The test program compiled, but did not run. This usually means" | |
11950 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
11951 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
11952 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11953 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11954 | echo "*** is required on your system" | |
11955 | echo "***" | |
11956 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11957 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
11958 | else | |
11959 | echo "configure: failed program was:" >&5 | |
11960 | cat conftest.$ac_ext >&5 | |
11961 | rm -rf conftest* | |
11962 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
11963 | echo "*** exact error that occured. This usually means GTK+ was incorrectly installed" | |
11964 | echo "*** or that you have moved GTK+ since it was installed. In the latter case, you" | |
11965 | echo "*** may want to edit the pkg-config script: $PKG_CONFIG" | |
11966 | fi | |
11967 | rm -f conftest* | |
11968 | CFLAGS="$ac_save_CFLAGS" | |
11969 | LIBS="$ac_save_LIBS" | |
11970 | fi | |
11971 | fi | |
11972 | GTK_CFLAGS="" | |
11973 | GTK_LIBS="" | |
11974 | : | |
11975 | fi | |
11976 | ||
11977 | ||
11978 | rm -f conf.gtktest | |
11979 | ||
11980 | fi | |
11981 | ||
11982 | if test -z "$wx_cv_lib_gtk"; then | |
11983 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
11984 | if test "${with_gtk_prefix+set}" = set; then | |
11985 | withval="$with_gtk_prefix" | |
11986 | gtk_config_prefix="$withval" | |
11987 | else | |
11988 | gtk_config_prefix="" | |
11989 | fi | |
11990 | ||
11991 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
11992 | if test "${with_gtk_exec_prefix+set}" = set; then | |
11993 | withval="$with_gtk_exec_prefix" | |
11994 | gtk_config_exec_prefix="$withval" | |
11995 | else | |
11996 | gtk_config_exec_prefix="" | |
11997 | fi | |
11998 | ||
11999 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12000 | if test "${enable_gtktest+set}" = set; then | |
12001 | enableval="$enable_gtktest" | |
12002 | : | |
12003 | else | |
12004 | enable_gtktest=yes | |
12005 | fi | |
12006 | ||
12007 | ||
12008 | for module in . $GTK_MODULES | |
12009 | do | |
12010 | case "$module" in | |
12011 | gthread) | |
12012 | gtk_config_args="$gtk_config_args gthread" | |
12013 | ;; | |
12014 | esac | |
12015 | done | |
12016 | ||
12017 | if test x$gtk_config_exec_prefix != x ; then | |
12018 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12019 | if test x${GTK_CONFIG+set} != xset ; then | |
12020 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12021 | fi | |
12022 | fi | |
12023 | if test x$gtk_config_prefix != x ; then | |
12024 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12025 | if test x${GTK_CONFIG+set} != xset ; then | |
12026 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12027 | fi | |
12028 | fi | |
12029 | ||
12030 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12031 | set dummy gtk-config; ac_word=$2 | |
12032 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
12033 | echo "configure:12034: checking for $ac_word" >&5 | |
12034 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
12035 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12036 | else | |
12037 | case "$GTK_CONFIG" in | |
12038 | /*) | |
12039 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
12040 | ;; | |
12041 | ?:/*) | |
12042 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12043 | ;; | |
12044 | *) | |
12045 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12046 | ac_dummy="$PATH" | |
12047 | for ac_dir in $ac_dummy; do | |
12048 | test -z "$ac_dir" && ac_dir=. | |
12049 | if test -f $ac_dir/$ac_word; then | |
12050 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12051 | break | |
12052 | fi | |
12053 | done | |
12054 | IFS="$ac_save_ifs" | |
12055 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
12056 | ;; | |
12057 | esac | |
12058 | fi | |
12059 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
12060 | if test -n "$GTK_CONFIG"; then | |
12061 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
12062 | else | |
12063 | echo "$ac_t""no" 1>&6 | |
12064 | fi | |
12065 | ||
12066 | min_gtk_version=1.2.7 | |
12067 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
12068 | echo "configure:12069: checking for GTK - version >= $min_gtk_version" >&5 | |
12069 | no_gtk="" | |
12070 | if test "$GTK_CONFIG" = "no" ; then | |
12071 | no_gtk=yes | |
12072 | else | |
12073 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12074 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12075 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12076 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12077 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12078 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12079 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12080 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12081 | if test "x$enable_gtktest" = "xyes" ; then | |
12082 | ac_save_CFLAGS="$CFLAGS" | |
12083 | ac_save_LIBS="$LIBS" | |
12084 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12085 | LIBS="$GTK_LIBS $LIBS" | |
12086 | rm -f conf.gtktest | |
12087 | if test "$cross_compiling" = yes; then | |
12088 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12089 | else | |
12090 | cat > conftest.$ac_ext <<EOF | |
12091 | #line 12092 "configure" | |
12092 | #include "confdefs.h" | |
12093 | ||
12094 | #include <gtk/gtk.h> | |
12095 | #include <stdio.h> | |
12096 | #include <stdlib.h> | |
12097 | ||
12098 | int | |
12099 | main () | |
12100 | { | |
12101 | int major, minor, micro; | |
12102 | char *tmp_version; | |
12103 | ||
12104 | system ("touch conf.gtktest"); | |
12105 | ||
12106 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12107 | tmp_version = g_strdup("$min_gtk_version"); | |
12108 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12109 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12110 | exit(1); | |
12111 | } | |
12112 | ||
12113 | if ((gtk_major_version != $gtk_config_major_version) || | |
12114 | (gtk_minor_version != $gtk_config_minor_version) || | |
12115 | (gtk_micro_version != $gtk_config_micro_version)) | |
12116 | { | |
12117 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
12118 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
12119 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12120 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12121 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12122 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12123 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12124 | printf("*** required on your system.\n"); | |
12125 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12126 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12127 | printf("*** before re-running configure\n"); | |
12128 | } | |
12129 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
12130 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12131 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12132 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12133 | { | |
12134 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12135 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12136 | printf("*** library (version %d.%d.%d)\n", | |
12137 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12138 | } | |
12139 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12140 | else | |
12141 | { | |
12142 | if ((gtk_major_version > major) || | |
12143 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12144 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12145 | { | |
12146 | return 0; | |
12147 | } | |
12148 | else | |
12149 | { | |
12150 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12151 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12152 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12153 | major, minor, micro); | |
12154 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12155 | printf("***\n"); | |
12156 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12157 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12158 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12159 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12160 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12161 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12162 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12163 | } | |
12164 | } | |
12165 | return 1; | |
12166 | } | |
12167 | ||
12168 | EOF | |
12169 | if { (eval echo configure:12170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
12170 | then | |
12171 | : | |
12172 | else | |
12173 | echo "configure: failed program was:" >&5 | |
12174 | cat conftest.$ac_ext >&5 | |
12175 | rm -fr conftest* | |
12176 | no_gtk=yes | |
12177 | fi | |
12178 | rm -fr conftest* | |
12179 | fi | |
12180 | ||
12181 | CFLAGS="$ac_save_CFLAGS" | |
12182 | LIBS="$ac_save_LIBS" | |
12183 | fi | |
12184 | fi | |
12185 | if test "x$no_gtk" = x ; then | |
12186 | echo "$ac_t""yes" 1>&6 | |
12187 | wx_cv_lib_gtk=1.2.7 | |
12188 | else | |
12189 | echo "$ac_t""no" 1>&6 | |
12190 | if test "$GTK_CONFIG" = "no" ; then | |
12191 | echo "*** The gtk-config script installed by GTK could not be found" | |
12192 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12193 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12194 | echo "*** full path to gtk-config." | |
12195 | else | |
12196 | if test -f conf.gtktest ; then | |
12197 | : | |
12198 | else | |
12199 | echo "*** Could not run GTK test program, checking why..." | |
12200 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12201 | LIBS="$LIBS $GTK_LIBS" | |
12202 | cat > conftest.$ac_ext <<EOF | |
12203 | #line 12204 "configure" | |
12204 | #include "confdefs.h" | |
12205 | ||
12206 | #include <gtk/gtk.h> | |
12207 | #include <stdio.h> | |
12208 | ||
12209 | int main() { | |
12210 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12211 | ; return 0; } | |
12212 | EOF | |
12213 | if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12214 | rm -rf conftest* | |
12215 | echo "*** The test program compiled, but did not run. This usually means" | |
12216 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12217 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12218 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12219 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12220 | echo "*** is required on your system" | |
12221 | echo "***" | |
12222 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12223 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12224 | echo "***" | |
12225 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12226 | echo "*** came with the system with the command" | |
12227 | echo "***" | |
12228 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
12229 | else | |
12230 | echo "configure: failed program was:" >&5 | |
12231 | cat conftest.$ac_ext >&5 | |
12232 | rm -rf conftest* | |
12233 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
12234 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
12235 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
12236 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
12237 | fi | |
12238 | rm -f conftest* | |
12239 | CFLAGS="$ac_save_CFLAGS" | |
12240 | LIBS="$ac_save_LIBS" | |
12241 | fi | |
12242 | fi | |
12243 | GTK_CFLAGS="" | |
12244 | GTK_LIBS="" | |
12245 | : | |
12246 | fi | |
12247 | ||
12248 | ||
12249 | rm -f conf.gtktest | |
12250 | ||
12251 | fi | |
12252 | ||
12253 | if test -z "$wx_cv_lib_gtk"; then | |
12254 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
12255 | if test "${with_gtk_prefix+set}" = set; then | |
12256 | withval="$with_gtk_prefix" | |
12257 | gtk_config_prefix="$withval" | |
12258 | else | |
12259 | gtk_config_prefix="" | |
12260 | fi | |
12261 | ||
12262 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
12263 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12264 | withval="$with_gtk_exec_prefix" | |
12265 | gtk_config_exec_prefix="$withval" | |
12266 | else | |
12267 | gtk_config_exec_prefix="" | |
12268 | fi | |
12269 | ||
12270 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12271 | if test "${enable_gtktest+set}" = set; then | |
12272 | enableval="$enable_gtktest" | |
12273 | : | |
12274 | else | |
12275 | enable_gtktest=yes | |
12276 | fi | |
12277 | ||
12278 | ||
12279 | for module in . $GTK_MODULES | |
12280 | do | |
12281 | case "$module" in | |
12282 | gthread) | |
12283 | gtk_config_args="$gtk_config_args gthread" | |
12284 | ;; | |
12285 | esac | |
12286 | done | |
12287 | ||
12288 | if test x$gtk_config_exec_prefix != x ; then | |
12289 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12290 | if test x${GTK_CONFIG+set} != xset ; then | |
12291 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12292 | fi | |
12293 | fi | |
12294 | if test x$gtk_config_prefix != x ; then | |
12295 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12296 | if test x${GTK_CONFIG+set} != xset ; then | |
12297 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12298 | fi | |
12299 | fi | |
12300 | ||
12301 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12302 | set dummy gtk-config; ac_word=$2 | |
12303 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
12304 | echo "configure:12305: checking for $ac_word" >&5 | |
12305 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
12306 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12307 | else | |
12308 | case "$GTK_CONFIG" in | |
12309 | /*) | |
12310 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
12311 | ;; | |
12312 | ?:/*) | |
12313 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12314 | ;; | |
12315 | *) | |
12316 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12317 | ac_dummy="$PATH" | |
12318 | for ac_dir in $ac_dummy; do | |
12319 | test -z "$ac_dir" && ac_dir=. | |
12320 | if test -f $ac_dir/$ac_word; then | |
12321 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12322 | break | |
12323 | fi | |
12324 | done | |
12325 | IFS="$ac_save_ifs" | |
12326 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
12327 | ;; | |
12328 | esac | |
12329 | fi | |
12330 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
12331 | if test -n "$GTK_CONFIG"; then | |
12332 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
12333 | else | |
12334 | echo "$ac_t""no" 1>&6 | |
12335 | fi | |
12336 | ||
12337 | min_gtk_version=1.2.3 | |
12338 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
12339 | echo "configure:12340: checking for GTK - version >= $min_gtk_version" >&5 | |
12340 | no_gtk="" | |
12341 | if test "$GTK_CONFIG" = "no" ; then | |
12342 | no_gtk=yes | |
12343 | else | |
12344 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12345 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12346 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12347 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12348 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12349 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12350 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12351 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12352 | if test "x$enable_gtktest" = "xyes" ; then | |
12353 | ac_save_CFLAGS="$CFLAGS" | |
12354 | ac_save_LIBS="$LIBS" | |
12355 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12356 | LIBS="$GTK_LIBS $LIBS" | |
12357 | rm -f conf.gtktest | |
12358 | if test "$cross_compiling" = yes; then | |
12359 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12360 | else | |
12361 | cat > conftest.$ac_ext <<EOF | |
12362 | #line 12363 "configure" | |
12363 | #include "confdefs.h" | |
12364 | ||
12365 | #include <gtk/gtk.h> | |
12366 | #include <stdio.h> | |
12367 | #include <stdlib.h> | |
12368 | ||
12369 | int | |
12370 | main () | |
12371 | { | |
12372 | int major, minor, micro; | |
12373 | char *tmp_version; | |
12374 | ||
12375 | system ("touch conf.gtktest"); | |
12376 | ||
12377 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12378 | tmp_version = g_strdup("$min_gtk_version"); | |
12379 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12380 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12381 | exit(1); | |
12382 | } | |
12383 | ||
12384 | if ((gtk_major_version != $gtk_config_major_version) || | |
12385 | (gtk_minor_version != $gtk_config_minor_version) || | |
12386 | (gtk_micro_version != $gtk_config_micro_version)) | |
12387 | { | |
12388 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
12389 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
12390 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12391 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12392 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12393 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12394 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12395 | printf("*** required on your system.\n"); | |
12396 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12397 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12398 | printf("*** before re-running configure\n"); | |
12399 | } | |
12400 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
12401 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12402 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12403 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12404 | { | |
12405 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12406 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12407 | printf("*** library (version %d.%d.%d)\n", | |
12408 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12409 | } | |
12410 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12411 | else | |
12412 | { | |
12413 | if ((gtk_major_version > major) || | |
12414 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12415 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12416 | { | |
12417 | return 0; | |
12418 | } | |
12419 | else | |
12420 | { | |
12421 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12422 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12423 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12424 | major, minor, micro); | |
12425 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12426 | printf("***\n"); | |
12427 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12428 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12429 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12430 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12431 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12432 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12433 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12434 | } | |
12435 | } | |
12436 | return 1; | |
12437 | } | |
12438 | ||
12439 | EOF | |
12440 | if { (eval echo configure:12441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
12441 | then | |
12442 | : | |
12443 | else | |
12444 | echo "configure: failed program was:" >&5 | |
12445 | cat conftest.$ac_ext >&5 | |
12446 | rm -fr conftest* | |
12447 | no_gtk=yes | |
12448 | fi | |
12449 | rm -fr conftest* | |
12450 | fi | |
12451 | ||
12452 | CFLAGS="$ac_save_CFLAGS" | |
12453 | LIBS="$ac_save_LIBS" | |
12454 | fi | |
12455 | fi | |
12456 | if test "x$no_gtk" = x ; then | |
12457 | echo "$ac_t""yes" 1>&6 | |
12458 | wx_cv_lib_gtk=1.2.3 | |
12459 | else | |
12460 | echo "$ac_t""no" 1>&6 | |
12461 | if test "$GTK_CONFIG" = "no" ; then | |
12462 | echo "*** The gtk-config script installed by GTK could not be found" | |
12463 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12464 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12465 | echo "*** full path to gtk-config." | |
12466 | else | |
12467 | if test -f conf.gtktest ; then | |
12468 | : | |
12469 | else | |
12470 | echo "*** Could not run GTK test program, checking why..." | |
12471 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12472 | LIBS="$LIBS $GTK_LIBS" | |
12473 | cat > conftest.$ac_ext <<EOF | |
12474 | #line 12475 "configure" | |
12475 | #include "confdefs.h" | |
12476 | ||
12477 | #include <gtk/gtk.h> | |
12478 | #include <stdio.h> | |
12479 | ||
12480 | int main() { | |
12481 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12482 | ; return 0; } | |
12483 | EOF | |
12484 | if { (eval echo configure:12485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12485 | rm -rf conftest* | |
12486 | echo "*** The test program compiled, but did not run. This usually means" | |
12487 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12488 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12489 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12490 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12491 | echo "*** is required on your system" | |
12492 | echo "***" | |
12493 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12494 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12495 | echo "***" | |
12496 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12497 | echo "*** came with the system with the command" | |
12498 | echo "***" | |
12499 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
12500 | else | |
12501 | echo "configure: failed program was:" >&5 | |
12502 | cat conftest.$ac_ext >&5 | |
12503 | rm -rf conftest* | |
12504 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
12505 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
12506 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
12507 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
12508 | fi | |
12509 | rm -f conftest* | |
12510 | CFLAGS="$ac_save_CFLAGS" | |
12511 | LIBS="$ac_save_LIBS" | |
12512 | fi | |
12513 | fi | |
12514 | GTK_CFLAGS="" | |
12515 | GTK_LIBS="" | |
12516 | : | |
12517 | fi | |
12518 | ||
12519 | ||
12520 | rm -f conf.gtktest | |
12521 | ||
12522 | fi | |
12523 | ||
12524 | if test -z "$wx_cv_lib_gtk"; then | |
12525 | wx_cv_lib_gtk=none | |
12526 | else | |
12527 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
12528 | wx_cv_libs_gtk=$GTK_LIBS | |
12529 | fi | |
12530 | ||
12531 | ||
12532 | fi | |
12533 | ||
12534 | ||
12535 | if test "$gtk_version_cached" = 1; then | |
12536 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
12537 | fi | |
12538 | ||
12539 | case "$wx_cv_lib_gtk" in | |
12540 | 2.0) WXGTK20=1 | |
12541 | ;; | |
12542 | 1.2.7) WXGTK127=1 | |
12543 | WXGTK12=1 | |
12544 | ;; | |
12545 | 1.2.3) WXGTK12=1 | |
12546 | ;; | |
12547 | *) { echo "configure: error: | |
12548 | Please check that gtk-config is in path, the directory | |
12549 | where GTK+ libraries are installed (returned by | |
12550 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
12551 | equivalent variable and GTK+ is version 1.2.3 or above. | |
12552 | " 1>&2; exit 1; } | |
12553 | ;; | |
12554 | esac | |
12555 | ||
12556 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
12557 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
12558 | ||
12559 | AFMINSTALL=afminstall | |
12560 | TOOLKIT=GTK | |
12561 | GUIDIST=GTK_DIST | |
12562 | ||
12563 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 | |
12564 | echo "configure:12565: checking for gdk_im_open in -lgdk" >&5 | |
12565 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` | |
12566 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12568 | else | |
12569 | ac_save_LIBS="$LIBS" | |
12570 | LIBS="-lgdk $LIBS" | |
12571 | cat > conftest.$ac_ext <<EOF | |
12572 | #line 12573 "configure" | |
12573 | #include "confdefs.h" | |
12574 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12575 | /* We use char because int might match the return type of a gcc2 | |
12576 | builtin and then its argument prototype would still apply. */ | |
12577 | char gdk_im_open(); | |
12578 | ||
12579 | int main() { | |
12580 | gdk_im_open() | |
12581 | ; return 0; } | |
12582 | EOF | |
12583 | if { (eval echo configure:12584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12584 | rm -rf conftest* | |
12585 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12586 | else | |
12587 | echo "configure: failed program was:" >&5 | |
12588 | cat conftest.$ac_ext >&5 | |
12589 | rm -rf conftest* | |
12590 | eval "ac_cv_lib_$ac_lib_var=no" | |
12591 | fi | |
12592 | rm -f conftest* | |
12593 | LIBS="$ac_save_LIBS" | |
12594 | ||
12595 | fi | |
12596 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12597 | echo "$ac_t""yes" 1>&6 | |
12598 | cat >> confdefs.h <<\EOF | |
12599 | #define HAVE_XIM 1 | |
12600 | EOF | |
12601 | ||
12602 | else | |
12603 | echo "$ac_t""no" 1>&6 | |
12604 | fi | |
12605 | ||
12606 | fi | |
12607 | ||
12608 | if test "$wxUSE_MGL" = 1; then | |
12609 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
12610 | echo "configure:12611: checking for SciTech MGL library" >&5 | |
12611 | if test "x$MGL_ROOT" = x ; then | |
12612 | echo "$ac_t""not found" 1>&6 | |
12613 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
12614 | else | |
12615 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
12616 | fi | |
12617 | ||
12618 | case "${host}" in | |
12619 | *-*-linux* ) | |
12620 | mgl_os=linux/gcc/glibc | |
12621 | ;; | |
12622 | *-pc-msdosdjgpp ) | |
12623 | mgl_os=dos32/dj2 | |
12624 | ;; | |
12625 | *) | |
12626 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
12627 | esac | |
12628 | ||
12629 | mgl_lib_type="" | |
12630 | ||
12631 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
12632 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
12633 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
12634 | mgl_lib_type=debug | |
12635 | fi | |
12636 | fi | |
12637 | if test "x$mgl_lib_type" = x ; then | |
12638 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
12639 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
12640 | mgl_lib_type=release | |
12641 | else | |
12642 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
12643 | fi | |
12644 | fi | |
12645 | ||
12646 | wxUSE_UNIVERSAL="yes" | |
12647 | ||
12648 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
12649 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
12650 | ||
12651 | AFMINSTALL=afminstall | |
12652 | TOOLKIT=MGL | |
12653 | GUIDIST=MGL_DIST | |
12654 | fi | |
12655 | ||
12656 | if test "$wxUSE_MICROWIN" = 1; then | |
12657 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
12658 | echo "configure:12659: checking for MicroWindows" >&5 | |
12659 | if test "x$MICROWINDOWS" = x ; then | |
12660 | echo "$ac_t""not found" 1>&6 | |
12661 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
12662 | else | |
12663 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
12664 | fi | |
12665 | ||
12666 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
12667 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
12668 | else | |
12669 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
12670 | fi | |
12671 | ||
12672 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
12673 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
12674 | ||
12675 | wxUSE_UNIVERSAL="yes" | |
12676 | ||
12677 | AFMINSTALL=afminstall | |
12678 | TOOLKIT=MICROWIN | |
12679 | GUIDIST=MICROWIN_DIST | |
12680 | ||
12681 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
12682 | fi | |
12683 | ||
12684 | if test "$wxUSE_X11" = 1; then | |
12685 | # If we find X, set shell vars x_includes and x_libraries to the | |
12686 | # paths, otherwise set no_x=yes. | |
12687 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
12688 | # --without-x overrides everything else, but does not touch the cache. | |
12689 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
12690 | echo "configure:12691: checking for X" >&5 | |
12691 | ||
12692 | # Check whether --with-x or --without-x was given. | |
12693 | if test "${with_x+set}" = set; then | |
12694 | withval="$with_x" | |
12695 | : | |
12696 | fi | |
12697 | ||
12698 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
12699 | if test "x$with_x" = xno; then | |
12700 | # The user explicitly disabled X. | |
12701 | have_x=disabled | |
12702 | else | |
12703 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
12704 | # Both variables are already set. | |
12705 | have_x=yes | |
12706 | else | |
12707 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
12708 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12709 | else | |
12710 | # One or both of the vars are not set, and there is no cached value. | |
12711 | ac_x_includes=NO ac_x_libraries=NO | |
12712 | rm -fr conftestdir | |
12713 | if mkdir conftestdir; then | |
12714 | cd conftestdir | |
12715 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
12716 | cat > Imakefile <<'EOF' | |
12717 | acfindx: | |
12718 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
12719 | EOF | |
12720 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
12721 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12722 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
12723 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
12724 | for ac_extension in a so sl; do | |
12725 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
12726 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
12727 | ac_im_usrlibdir=$ac_im_libdir; break | |
12728 | fi | |
12729 | done | |
12730 | # Screen out bogus values from the imake configuration. They are | |
12731 | # bogus both because they are the default anyway, and because | |
12732 | # using them would break gcc on systems where it needs fixed includes. | |
12733 | case "$ac_im_incroot" in | |
12734 | /usr/include) ;; | |
12735 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
12736 | esac | |
12737 | case "$ac_im_usrlibdir" in | |
12738 | /usr/lib | /lib) ;; | |
12739 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
12740 | esac | |
12741 | fi | |
12742 | cd .. | |
12743 | rm -fr conftestdir | |
12744 | fi | |
12745 | ||
12746 | if test "$ac_x_includes" = NO; then | |
12747 | # Guess where to find include files, by looking for this one X11 .h file. | |
12748 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
12749 | ||
12750 | # First, try using that file with no special directory specified. | |
12751 | cat > conftest.$ac_ext <<EOF | |
12752 | #line 12753 "configure" | |
12753 | #include "confdefs.h" | |
12754 | #include <$x_direct_test_include> | |
12755 | EOF | |
12756 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12757 | { (eval echo configure:12758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12758 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12759 | if test -z "$ac_err"; then | |
12760 | rm -rf conftest* | |
12761 | # We can compile using X headers with no special include directory. | |
12762 | ac_x_includes= | |
12763 | else | |
12764 | echo "$ac_err" >&5 | |
12765 | echo "configure: failed program was:" >&5 | |
12766 | cat conftest.$ac_ext >&5 | |
12767 | rm -rf conftest* | |
12768 | # Look for the header file in a standard set of common directories. | |
12769 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12770 | for ac_dir in \ | |
12771 | /usr/X11/include \ | |
12772 | /usr/X11R6/include \ | |
12773 | /usr/X11R5/include \ | |
12774 | /usr/X11R4/include \ | |
12775 | \ | |
12776 | /usr/include/X11 \ | |
12777 | /usr/include/X11R6 \ | |
12778 | /usr/include/X11R5 \ | |
12779 | /usr/include/X11R4 \ | |
12780 | \ | |
12781 | /usr/local/X11/include \ | |
12782 | /usr/local/X11R6/include \ | |
12783 | /usr/local/X11R5/include \ | |
12784 | /usr/local/X11R4/include \ | |
12785 | \ | |
12786 | /usr/local/include/X11 \ | |
12787 | /usr/local/include/X11R6 \ | |
12788 | /usr/local/include/X11R5 \ | |
12789 | /usr/local/include/X11R4 \ | |
12790 | \ | |
12791 | /usr/X386/include \ | |
12792 | /usr/x386/include \ | |
12793 | /usr/XFree86/include/X11 \ | |
12794 | \ | |
12795 | /usr/include \ | |
12796 | /usr/local/include \ | |
12797 | /usr/unsupported/include \ | |
12798 | /usr/athena/include \ | |
12799 | /usr/local/x11r5/include \ | |
12800 | /usr/lpp/Xamples/include \ | |
12801 | \ | |
12802 | /usr/openwin/include \ | |
12803 | /usr/openwin/share/include \ | |
12804 | ; \ | |
12805 | do | |
12806 | if test -r "$ac_dir/$x_direct_test_include"; then | |
12807 | ac_x_includes=$ac_dir | |
12808 | break | |
12809 | fi | |
12810 | done | |
12811 | fi | |
12812 | rm -f conftest* | |
12813 | fi # $ac_x_includes = NO | |
12814 | ||
12815 | if test "$ac_x_libraries" = NO; then | |
12816 | # Check for the libraries. | |
12817 | ||
12818 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
12819 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
12820 | ||
12821 | # See if we find them without any special options. | |
12822 | # Don't add to $LIBS permanently. | |
12823 | ac_save_LIBS="$LIBS" | |
12824 | LIBS="-l$x_direct_test_library $LIBS" | |
12825 | cat > conftest.$ac_ext <<EOF | |
12826 | #line 12827 "configure" | |
12827 | #include "confdefs.h" | |
12828 | ||
12829 | int main() { | |
12830 | ${x_direct_test_function}() | |
12831 | ; return 0; } | |
12832 | EOF | |
12833 | if { (eval echo configure:12834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12834 | rm -rf conftest* | |
12835 | LIBS="$ac_save_LIBS" | |
12836 | # We can link X programs with no special library path. | |
12837 | ac_x_libraries= | |
12838 | else | |
12839 | echo "configure: failed program was:" >&5 | |
12840 | cat conftest.$ac_ext >&5 | |
12841 | rm -rf conftest* | |
12842 | LIBS="$ac_save_LIBS" | |
12843 | # First see if replacing the include by lib works. | |
12844 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12845 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
12846 | /usr/X11/lib \ | |
12847 | /usr/X11R6/lib \ | |
12848 | /usr/X11R5/lib \ | |
12849 | /usr/X11R4/lib \ | |
12850 | \ | |
12851 | /usr/lib/X11 \ | |
12852 | /usr/lib/X11R6 \ | |
12853 | /usr/lib/X11R5 \ | |
12854 | /usr/lib/X11R4 \ | |
12855 | \ | |
12856 | /usr/local/X11/lib \ | |
12857 | /usr/local/X11R6/lib \ | |
12858 | /usr/local/X11R5/lib \ | |
12859 | /usr/local/X11R4/lib \ | |
12860 | \ | |
12861 | /usr/local/lib/X11 \ | |
12862 | /usr/local/lib/X11R6 \ | |
12863 | /usr/local/lib/X11R5 \ | |
12864 | /usr/local/lib/X11R4 \ | |
12865 | \ | |
12866 | /usr/X386/lib \ | |
12867 | /usr/x386/lib \ | |
12868 | /usr/XFree86/lib/X11 \ | |
12869 | \ | |
12870 | /usr/lib \ | |
12871 | /usr/local/lib \ | |
12872 | /usr/unsupported/lib \ | |
12873 | /usr/athena/lib \ | |
12874 | /usr/local/x11r5/lib \ | |
12875 | /usr/lpp/Xamples/lib \ | |
12876 | /lib/usr/lib/X11 \ | |
12877 | \ | |
12878 | /usr/openwin/lib \ | |
12879 | /usr/openwin/share/lib \ | |
12880 | ; \ | |
12881 | do | |
12882 | for ac_extension in a so sl; do | |
12883 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
12884 | ac_x_libraries=$ac_dir | |
12885 | break 2 | |
12886 | fi | |
12887 | done | |
12888 | done | |
12889 | fi | |
12890 | rm -f conftest* | |
12891 | fi # $ac_x_libraries = NO | |
12892 | ||
12893 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
12894 | # Didn't find X anywhere. Cache the known absence of X. | |
12895 | ac_cv_have_x="have_x=no" | |
12896 | else | |
12897 | # Record where we found X for the cache. | |
12898 | ac_cv_have_x="have_x=yes \ | |
12899 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
12900 | fi | |
12901 | fi | |
12902 | fi | |
12903 | eval "$ac_cv_have_x" | |
12904 | fi # $with_x != no | |
12905 | ||
12906 | if test "$have_x" != yes; then | |
12907 | echo "$ac_t""$have_x" 1>&6 | |
12908 | no_x=yes | |
12909 | else | |
12910 | # If each of the values was on the command line, it overrides each guess. | |
12911 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
12912 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
12913 | # Update the cache value to reflect the command line values. | |
12914 | ac_cv_have_x="have_x=yes \ | |
12915 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
12916 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
12917 | fi | |
12918 | ||
12919 | if test "$no_x" = yes; then | |
12920 | # Not all programs may use this symbol, but it does not hurt to define it. | |
12921 | cat >> confdefs.h <<\EOF | |
12922 | #define X_DISPLAY_MISSING 1 | |
12923 | EOF | |
12924 | ||
12925 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
12926 | else | |
12927 | if test -n "$x_includes"; then | |
12928 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
12929 | fi | |
12930 | ||
12931 | # It would also be nice to do this for all -L options, not just this one. | |
12932 | if test -n "$x_libraries"; then | |
12933 | X_LIBS="$X_LIBS -L$x_libraries" | |
12934 | # For Solaris; some versions of Sun CC require a space after -R and | |
12935 | # others require no space. Words are not sufficient . . . . | |
12936 | case "`(uname -sr) 2>/dev/null`" in | |
12937 | "SunOS 5"*) | |
12938 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
12939 | echo "configure:12940: checking whether -R must be followed by a space" >&5 | |
12940 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
12941 | cat > conftest.$ac_ext <<EOF | |
12942 | #line 12943 "configure" | |
12943 | #include "confdefs.h" | |
12944 | ||
12945 | int main() { | |
12946 | ||
12947 | ; return 0; } | |
12948 | EOF | |
12949 | if { (eval echo configure:12950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12950 | rm -rf conftest* | |
12951 | ac_R_nospace=yes | |
12952 | else | |
12953 | echo "configure: failed program was:" >&5 | |
12954 | cat conftest.$ac_ext >&5 | |
12955 | rm -rf conftest* | |
12956 | ac_R_nospace=no | |
12957 | fi | |
12958 | rm -f conftest* | |
12959 | if test $ac_R_nospace = yes; then | |
12960 | echo "$ac_t""no" 1>&6 | |
12961 | X_LIBS="$X_LIBS -R$x_libraries" | |
12962 | else | |
12963 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
12964 | cat > conftest.$ac_ext <<EOF | |
12965 | #line 12966 "configure" | |
12966 | #include "confdefs.h" | |
12967 | ||
12968 | int main() { | |
12969 | ||
12970 | ; return 0; } | |
12971 | EOF | |
12972 | if { (eval echo configure:12973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12973 | rm -rf conftest* | |
12974 | ac_R_space=yes | |
12975 | else | |
12976 | echo "configure: failed program was:" >&5 | |
12977 | cat conftest.$ac_ext >&5 | |
12978 | rm -rf conftest* | |
12979 | ac_R_space=no | |
12980 | fi | |
12981 | rm -f conftest* | |
12982 | if test $ac_R_space = yes; then | |
12983 | echo "$ac_t""yes" 1>&6 | |
12984 | X_LIBS="$X_LIBS -R $x_libraries" | |
12985 | else | |
12986 | echo "$ac_t""neither works" 1>&6 | |
12987 | fi | |
12988 | fi | |
12989 | LIBS="$ac_xsave_LIBS" | |
12990 | esac | |
12991 | fi | |
12992 | ||
12993 | # Check for system-dependent libraries X programs must link with. | |
12994 | # Do this before checking for the system-independent R6 libraries | |
12995 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
12996 | ||
12997 | if test "$ISC" = yes; then | |
12998 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
12999 | else | |
13000 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
13001 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
13002 | # the Alpha needs dnet_stub (dnet does not exist). | |
13003 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
13004 | echo "configure:13005: checking for dnet_ntoa in -ldnet" >&5 | |
13005 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
13006 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13008 | else | |
13009 | ac_save_LIBS="$LIBS" | |
13010 | LIBS="-ldnet $LIBS" | |
13011 | cat > conftest.$ac_ext <<EOF | |
13012 | #line 13013 "configure" | |
13013 | #include "confdefs.h" | |
13014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13015 | /* We use char because int might match the return type of a gcc2 | |
13016 | builtin and then its argument prototype would still apply. */ | |
13017 | char dnet_ntoa(); | |
13018 | ||
13019 | int main() { | |
13020 | dnet_ntoa() | |
13021 | ; return 0; } | |
13022 | EOF | |
13023 | if { (eval echo configure:13024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13024 | rm -rf conftest* | |
13025 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13026 | else | |
13027 | echo "configure: failed program was:" >&5 | |
13028 | cat conftest.$ac_ext >&5 | |
13029 | rm -rf conftest* | |
13030 | eval "ac_cv_lib_$ac_lib_var=no" | |
13031 | fi | |
13032 | rm -f conftest* | |
13033 | LIBS="$ac_save_LIBS" | |
13034 | ||
13035 | fi | |
13036 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13037 | echo "$ac_t""yes" 1>&6 | |
13038 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
13039 | else | |
13040 | echo "$ac_t""no" 1>&6 | |
13041 | fi | |
13042 | ||
13043 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
13044 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
13045 | echo "configure:13046: checking for dnet_ntoa in -ldnet_stub" >&5 | |
13046 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
13047 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13049 | else | |
13050 | ac_save_LIBS="$LIBS" | |
13051 | LIBS="-ldnet_stub $LIBS" | |
13052 | cat > conftest.$ac_ext <<EOF | |
13053 | #line 13054 "configure" | |
13054 | #include "confdefs.h" | |
13055 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13056 | /* We use char because int might match the return type of a gcc2 | |
13057 | builtin and then its argument prototype would still apply. */ | |
13058 | char dnet_ntoa(); | |
13059 | ||
13060 | int main() { | |
13061 | dnet_ntoa() | |
13062 | ; return 0; } | |
13063 | EOF | |
13064 | if { (eval echo configure:13065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13065 | rm -rf conftest* | |
13066 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13067 | else | |
13068 | echo "configure: failed program was:" >&5 | |
13069 | cat conftest.$ac_ext >&5 | |
13070 | rm -rf conftest* | |
13071 | eval "ac_cv_lib_$ac_lib_var=no" | |
13072 | fi | |
13073 | rm -f conftest* | |
13074 | LIBS="$ac_save_LIBS" | |
13075 | ||
13076 | fi | |
13077 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13078 | echo "$ac_t""yes" 1>&6 | |
13079 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
13080 | else | |
13081 | echo "$ac_t""no" 1>&6 | |
13082 | fi | |
13083 | ||
13084 | fi | |
13085 | ||
13086 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
13087 | # to get the SysV transport functions. | |
13088 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
13089 | # needs -lnsl. | |
13090 | # The nsl library prevents programs from opening the X display | |
13091 | # on Irix 5.2, according to dickey@clark.net. | |
13092 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
13093 | echo "configure:13094: checking for gethostbyname" >&5 | |
13094 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
13095 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13096 | else | |
13097 | cat > conftest.$ac_ext <<EOF | |
13098 | #line 13099 "configure" | |
13099 | #include "confdefs.h" | |
13100 | /* System header to define __stub macros and hopefully few prototypes, | |
13101 | which can conflict with char gethostbyname(); below. */ | |
13102 | #include <assert.h> | |
13103 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13104 | /* We use char because int might match the return type of a gcc2 | |
13105 | builtin and then its argument prototype would still apply. */ | |
13106 | char gethostbyname(); | |
13107 | ||
13108 | int main() { | |
13109 | ||
13110 | /* The GNU C library defines this for functions which it implements | |
13111 | to always fail with ENOSYS. Some functions are actually named | |
13112 | something starting with __ and the normal name is an alias. */ | |
13113 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13114 | choke me | |
13115 | #else | |
13116 | gethostbyname(); | |
13117 | #endif | |
13118 | ||
13119 | ; return 0; } | |
13120 | EOF | |
13121 | if { (eval echo configure:13122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13122 | rm -rf conftest* | |
13123 | eval "ac_cv_func_gethostbyname=yes" | |
13124 | else | |
13125 | echo "configure: failed program was:" >&5 | |
13126 | cat conftest.$ac_ext >&5 | |
13127 | rm -rf conftest* | |
13128 | eval "ac_cv_func_gethostbyname=no" | |
13129 | fi | |
13130 | rm -f conftest* | |
13131 | fi | |
13132 | ||
13133 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13134 | echo "$ac_t""yes" 1>&6 | |
13135 | : | |
13136 | else | |
13137 | echo "$ac_t""no" 1>&6 | |
13138 | fi | |
13139 | ||
13140 | if test $ac_cv_func_gethostbyname = no; then | |
13141 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
13142 | echo "configure:13143: checking for gethostbyname in -lnsl" >&5 | |
13143 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
13144 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13145 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13146 | else | |
13147 | ac_save_LIBS="$LIBS" | |
13148 | LIBS="-lnsl $LIBS" | |
13149 | cat > conftest.$ac_ext <<EOF | |
13150 | #line 13151 "configure" | |
13151 | #include "confdefs.h" | |
13152 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13153 | /* We use char because int might match the return type of a gcc2 | |
13154 | builtin and then its argument prototype would still apply. */ | |
13155 | char gethostbyname(); | |
13156 | ||
13157 | int main() { | |
13158 | gethostbyname() | |
13159 | ; return 0; } | |
13160 | EOF | |
13161 | if { (eval echo configure:13162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13162 | rm -rf conftest* | |
13163 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13164 | else | |
13165 | echo "configure: failed program was:" >&5 | |
13166 | cat conftest.$ac_ext >&5 | |
13167 | rm -rf conftest* | |
13168 | eval "ac_cv_lib_$ac_lib_var=no" | |
13169 | fi | |
13170 | rm -f conftest* | |
13171 | LIBS="$ac_save_LIBS" | |
13172 | ||
13173 | fi | |
13174 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13175 | echo "$ac_t""yes" 1>&6 | |
13176 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13177 | else | |
13178 | echo "$ac_t""no" 1>&6 | |
13179 | fi | |
13180 | ||
13181 | fi | |
13182 | ||
13183 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13184 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13185 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
13186 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
13187 | # gethostby* variants that don't use the nameserver (or something). | |
13188 | # -lsocket must be given before -lnsl if both are needed. | |
13189 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13190 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
13191 | echo "configure:13192: checking for connect" >&5 | |
13192 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | |
13193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13194 | else | |
13195 | cat > conftest.$ac_ext <<EOF | |
13196 | #line 13197 "configure" | |
13197 | #include "confdefs.h" | |
13198 | /* System header to define __stub macros and hopefully few prototypes, | |
13199 | which can conflict with char connect(); below. */ | |
13200 | #include <assert.h> | |
13201 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13202 | /* We use char because int might match the return type of a gcc2 | |
13203 | builtin and then its argument prototype would still apply. */ | |
13204 | char connect(); | |
13205 | ||
13206 | int main() { | |
13207 | ||
13208 | /* The GNU C library defines this for functions which it implements | |
13209 | to always fail with ENOSYS. Some functions are actually named | |
13210 | something starting with __ and the normal name is an alias. */ | |
13211 | #if defined (__stub_connect) || defined (__stub___connect) | |
13212 | choke me | |
13213 | #else | |
13214 | connect(); | |
13215 | #endif | |
13216 | ||
13217 | ; return 0; } | |
13218 | EOF | |
13219 | if { (eval echo configure:13220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13220 | rm -rf conftest* | |
13221 | eval "ac_cv_func_connect=yes" | |
13222 | else | |
13223 | echo "configure: failed program was:" >&5 | |
13224 | cat conftest.$ac_ext >&5 | |
13225 | rm -rf conftest* | |
13226 | eval "ac_cv_func_connect=no" | |
13227 | fi | |
13228 | rm -f conftest* | |
13229 | fi | |
13230 | ||
13231 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
13232 | echo "$ac_t""yes" 1>&6 | |
13233 | : | |
13234 | else | |
13235 | echo "$ac_t""no" 1>&6 | |
13236 | fi | |
13237 | ||
13238 | if test $ac_cv_func_connect = no; then | |
13239 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
13240 | echo "configure:13241: checking for connect in -lsocket" >&5 | |
13241 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
13242 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13243 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13244 | else | |
13245 | ac_save_LIBS="$LIBS" | |
13246 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
13247 | cat > conftest.$ac_ext <<EOF | |
13248 | #line 13249 "configure" | |
13249 | #include "confdefs.h" | |
13250 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13251 | /* We use char because int might match the return type of a gcc2 | |
13252 | builtin and then its argument prototype would still apply. */ | |
13253 | char connect(); | |
13254 | ||
13255 | int main() { | |
13256 | connect() | |
13257 | ; return 0; } | |
13258 | EOF | |
13259 | if { (eval echo configure:13260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13260 | rm -rf conftest* | |
13261 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13262 | else | |
13263 | echo "configure: failed program was:" >&5 | |
13264 | cat conftest.$ac_ext >&5 | |
13265 | rm -rf conftest* | |
13266 | eval "ac_cv_lib_$ac_lib_var=no" | |
13267 | fi | |
13268 | rm -f conftest* | |
13269 | LIBS="$ac_save_LIBS" | |
13270 | ||
13271 | fi | |
13272 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13273 | echo "$ac_t""yes" 1>&6 | |
13274 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
13275 | else | |
13276 | echo "$ac_t""no" 1>&6 | |
13277 | fi | |
13278 | ||
13279 | fi | |
13280 | ||
13281 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
13282 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
13283 | echo "configure:13284: checking for remove" >&5 | |
13284 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
13285 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13286 | else | |
13287 | cat > conftest.$ac_ext <<EOF | |
13288 | #line 13289 "configure" | |
13289 | #include "confdefs.h" | |
13290 | /* System header to define __stub macros and hopefully few prototypes, | |
13291 | which can conflict with char remove(); below. */ | |
13292 | #include <assert.h> | |
13293 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13294 | /* We use char because int might match the return type of a gcc2 | |
13295 | builtin and then its argument prototype would still apply. */ | |
13296 | char remove(); | |
13297 | ||
13298 | int main() { | |
13299 | ||
13300 | /* The GNU C library defines this for functions which it implements | |
13301 | to always fail with ENOSYS. Some functions are actually named | |
13302 | something starting with __ and the normal name is an alias. */ | |
13303 | #if defined (__stub_remove) || defined (__stub___remove) | |
13304 | choke me | |
13305 | #else | |
13306 | remove(); | |
13307 | #endif | |
13308 | ||
13309 | ; return 0; } | |
13310 | EOF | |
13311 | if { (eval echo configure:13312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13312 | rm -rf conftest* | |
13313 | eval "ac_cv_func_remove=yes" | |
13314 | else | |
13315 | echo "configure: failed program was:" >&5 | |
13316 | cat conftest.$ac_ext >&5 | |
13317 | rm -rf conftest* | |
13318 | eval "ac_cv_func_remove=no" | |
13319 | fi | |
13320 | rm -f conftest* | |
13321 | fi | |
13322 | ||
13323 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
13324 | echo "$ac_t""yes" 1>&6 | |
13325 | : | |
13326 | else | |
13327 | echo "$ac_t""no" 1>&6 | |
13328 | fi | |
13329 | ||
13330 | if test $ac_cv_func_remove = no; then | |
13331 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
13332 | echo "configure:13333: checking for remove in -lposix" >&5 | |
13333 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
13334 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13335 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13336 | else | |
13337 | ac_save_LIBS="$LIBS" | |
13338 | LIBS="-lposix $LIBS" | |
13339 | cat > conftest.$ac_ext <<EOF | |
13340 | #line 13341 "configure" | |
13341 | #include "confdefs.h" | |
13342 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13343 | /* We use char because int might match the return type of a gcc2 | |
13344 | builtin and then its argument prototype would still apply. */ | |
13345 | char remove(); | |
13346 | ||
13347 | int main() { | |
13348 | remove() | |
13349 | ; return 0; } | |
13350 | EOF | |
13351 | if { (eval echo configure:13352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13352 | rm -rf conftest* | |
13353 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13354 | else | |
13355 | echo "configure: failed program was:" >&5 | |
13356 | cat conftest.$ac_ext >&5 | |
13357 | rm -rf conftest* | |
13358 | eval "ac_cv_lib_$ac_lib_var=no" | |
13359 | fi | |
13360 | rm -f conftest* | |
13361 | LIBS="$ac_save_LIBS" | |
13362 | ||
13363 | fi | |
13364 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13365 | echo "$ac_t""yes" 1>&6 | |
13366 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
13367 | else | |
13368 | echo "$ac_t""no" 1>&6 | |
13369 | fi | |
13370 | ||
13371 | fi | |
13372 | ||
13373 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
13374 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
13375 | echo "configure:13376: checking for shmat" >&5 | |
13376 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
13377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13378 | else | |
13379 | cat > conftest.$ac_ext <<EOF | |
13380 | #line 13381 "configure" | |
13381 | #include "confdefs.h" | |
13382 | /* System header to define __stub macros and hopefully few prototypes, | |
13383 | which can conflict with char shmat(); below. */ | |
13384 | #include <assert.h> | |
13385 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13386 | /* We use char because int might match the return type of a gcc2 | |
13387 | builtin and then its argument prototype would still apply. */ | |
13388 | char shmat(); | |
13389 | ||
13390 | int main() { | |
13391 | ||
13392 | /* The GNU C library defines this for functions which it implements | |
13393 | to always fail with ENOSYS. Some functions are actually named | |
13394 | something starting with __ and the normal name is an alias. */ | |
13395 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
13396 | choke me | |
13397 | #else | |
13398 | shmat(); | |
13399 | #endif | |
13400 | ||
13401 | ; return 0; } | |
13402 | EOF | |
13403 | if { (eval echo configure:13404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13404 | rm -rf conftest* | |
13405 | eval "ac_cv_func_shmat=yes" | |
13406 | else | |
13407 | echo "configure: failed program was:" >&5 | |
13408 | cat conftest.$ac_ext >&5 | |
13409 | rm -rf conftest* | |
13410 | eval "ac_cv_func_shmat=no" | |
13411 | fi | |
13412 | rm -f conftest* | |
13413 | fi | |
13414 | ||
13415 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
13416 | echo "$ac_t""yes" 1>&6 | |
13417 | : | |
13418 | else | |
13419 | echo "$ac_t""no" 1>&6 | |
13420 | fi | |
13421 | ||
13422 | if test $ac_cv_func_shmat = no; then | |
13423 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
13424 | echo "configure:13425: checking for shmat in -lipc" >&5 | |
13425 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
13426 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13427 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13428 | else | |
13429 | ac_save_LIBS="$LIBS" | |
13430 | LIBS="-lipc $LIBS" | |
13431 | cat > conftest.$ac_ext <<EOF | |
13432 | #line 13433 "configure" | |
13433 | #include "confdefs.h" | |
13434 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13435 | /* We use char because int might match the return type of a gcc2 | |
13436 | builtin and then its argument prototype would still apply. */ | |
13437 | char shmat(); | |
13438 | ||
13439 | int main() { | |
13440 | shmat() | |
13441 | ; return 0; } | |
13442 | EOF | |
13443 | if { (eval echo configure:13444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13444 | rm -rf conftest* | |
13445 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13446 | else | |
13447 | echo "configure: failed program was:" >&5 | |
13448 | cat conftest.$ac_ext >&5 | |
13449 | rm -rf conftest* | |
13450 | eval "ac_cv_lib_$ac_lib_var=no" | |
13451 | fi | |
13452 | rm -f conftest* | |
13453 | LIBS="$ac_save_LIBS" | |
13454 | ||
13455 | fi | |
13456 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13457 | echo "$ac_t""yes" 1>&6 | |
13458 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
13459 | else | |
13460 | echo "$ac_t""no" 1>&6 | |
13461 | fi | |
13462 | ||
13463 | fi | |
13464 | fi | |
13465 | ||
13466 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
13467 | ac_save_LDFLAGS="$LDFLAGS" | |
13468 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
13469 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
13470 | # check for ICE first), but we must link in the order -lSM -lICE or | |
13471 | # we get undefined symbols. So assume we have SM if we have ICE. | |
13472 | # These have to be linked with before -lX11, unlike the other | |
13473 | # libraries we check for below, so use a different variable. | |
13474 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
13475 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
13476 | echo "configure:13477: checking for IceConnectionNumber in -lICE" >&5 | |
13477 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
13478 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13480 | else | |
13481 | ac_save_LIBS="$LIBS" | |
13482 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
13483 | cat > conftest.$ac_ext <<EOF | |
13484 | #line 13485 "configure" | |
13485 | #include "confdefs.h" | |
13486 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13487 | /* We use char because int might match the return type of a gcc2 | |
13488 | builtin and then its argument prototype would still apply. */ | |
13489 | char IceConnectionNumber(); | |
13490 | ||
13491 | int main() { | |
13492 | IceConnectionNumber() | |
13493 | ; return 0; } | |
13494 | EOF | |
13495 | if { (eval echo configure:13496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13496 | rm -rf conftest* | |
13497 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13498 | else | |
13499 | echo "configure: failed program was:" >&5 | |
13500 | cat conftest.$ac_ext >&5 | |
13501 | rm -rf conftest* | |
13502 | eval "ac_cv_lib_$ac_lib_var=no" | |
13503 | fi | |
13504 | rm -f conftest* | |
13505 | LIBS="$ac_save_LIBS" | |
13506 | ||
13507 | fi | |
13508 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13509 | echo "$ac_t""yes" 1>&6 | |
13510 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
13511 | else | |
13512 | echo "$ac_t""no" 1>&6 | |
13513 | fi | |
13514 | ||
13515 | LDFLAGS="$ac_save_LDFLAGS" | |
13516 | ||
13517 | fi | |
13518 | ||
13519 | ||
13520 | if test "$no_x" = "yes"; then | |
13521 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
13522 | fi | |
13523 | ||
13524 | GUI_TK_LIBRARY="$X_LIBS" | |
13525 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
13526 | AFMINSTALL=afminstall | |
13527 | COMPILED_X_PROGRAM=0 | |
13528 | ||
13529 | if test "$wxUSE_NANOX" = "yes"; then | |
13530 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 | |
13531 | echo "configure:13532: checking for MicroWindows/NanoX distribution" >&5 | |
13532 | if test "x$MICROWIN" = x ; then | |
13533 | echo "$ac_t""not found" 1>&6 | |
13534 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
13535 | else | |
13536 | echo "$ac_t""$MICROWIN" 1>&6 | |
13537 | cat >> confdefs.h <<\EOF | |
13538 | #define wxUSE_NANOX 1 | |
13539 | EOF | |
13540 | ||
13541 | fi | |
13542 | fi | |
13543 | ||
13544 | xpm_link= | |
13545 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
13546 | echo "configure:13547: checking for Xpm library" >&5 | |
13547 | ||
13548 | ac_find_libraries= | |
13549 | for ac_dir in $SEARCH_LIB; | |
13550 | do | |
13551 | for ac_extension in a so sl dylib; do | |
13552 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13553 | ac_find_libraries=$ac_dir | |
13554 | break 2 | |
13555 | fi | |
13556 | done | |
13557 | done | |
13558 | ||
13559 | if test "$ac_find_libraries" != "" ; then | |
13560 | ||
13561 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13562 | result=$? | |
13563 | if test $result = 0; then | |
13564 | ac_path_to_link="" | |
13565 | else | |
13566 | ac_path_to_link=" -L$ac_find_libraries" | |
13567 | fi | |
13568 | ||
13569 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
13570 | xpm_link=" -lXpm" | |
13571 | cat >> confdefs.h <<\EOF | |
13572 | #define wxHAVE_LIB_XPM 1 | |
13573 | EOF | |
13574 | ||
13575 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13576 | else | |
13577 | cat > conftest.$ac_ext <<EOF | |
13578 | #line 13579 "configure" | |
13579 | #include "confdefs.h" | |
13580 | ||
13581 | #include <X11/xpm.h> | |
13582 | ||
13583 | int main() { | |
13584 | ||
13585 | int version; | |
13586 | version = XpmLibraryVersion(); | |
13587 | ||
13588 | ; return 0; } | |
13589 | EOF | |
13590 | if { (eval echo configure:13591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13591 | rm -rf conftest* | |
13592 | ||
13593 | xpm_link=" -lXpm" | |
13594 | cat >> confdefs.h <<\EOF | |
13595 | #define wxHAVE_LIB_XPM 1 | |
13596 | EOF | |
13597 | ||
13598 | echo "$ac_t""found in default search path" 1>&6 | |
13599 | COMPILED_X_PROGRAM=0 | |
13600 | ||
13601 | else | |
13602 | echo "configure: failed program was:" >&5 | |
13603 | cat conftest.$ac_ext >&5 | |
13604 | rm -rf conftest* | |
13605 | ||
13606 | echo "$ac_t""no" 1>&6 | |
13607 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13608 | ||
13609 | ||
13610 | fi | |
13611 | rm -f conftest* | |
13612 | fi | |
13613 | ||
13614 | wxUSE_UNIVERSAL="yes" | |
13615 | ||
13616 | if test "$wxUSE_NANOX" = "yes"; then | |
13617 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
13618 | 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" | |
13619 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
13620 | else | |
13621 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
13622 | fi | |
13623 | ||
13624 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
13625 | TOOLKIT=X11 | |
13626 | GUIDIST=X11_DIST | |
13627 | fi | |
13628 | ||
13629 | if test "$wxUSE_WINE" = 1; then | |
13630 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
13631 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
13632 | echo "configure:13633: checking for windows.h" >&5 | |
13633 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
13634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13635 | else | |
13636 | cat > conftest.$ac_ext <<EOF | |
13637 | #line 13638 "configure" | |
13638 | #include "confdefs.h" | |
13639 | #include <windows.h> | |
13640 | EOF | |
13641 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13642 | { (eval echo configure:13643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13643 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13644 | if test -z "$ac_err"; then | |
13645 | rm -rf conftest* | |
13646 | eval "ac_cv_header_$ac_safe=yes" | |
13647 | else | |
13648 | echo "$ac_err" >&5 | |
13649 | echo "configure: failed program was:" >&5 | |
13650 | cat conftest.$ac_ext >&5 | |
13651 | rm -rf conftest* | |
13652 | eval "ac_cv_header_$ac_safe=no" | |
13653 | fi | |
13654 | rm -f conftest* | |
13655 | fi | |
13656 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13657 | echo "$ac_t""yes" 1>&6 | |
13658 | : | |
13659 | else | |
13660 | echo "$ac_t""no" 1>&6 | |
13661 | ||
13662 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
13663 | ||
13664 | fi | |
13665 | ||
13666 | ||
13667 | xpm_link= | |
13668 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
13669 | echo "configure:13670: checking for Xpm library" >&5 | |
13670 | ||
13671 | ac_find_libraries= | |
13672 | for ac_dir in $SEARCH_LIB; | |
13673 | do | |
13674 | for ac_extension in a so sl dylib; do | |
13675 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13676 | ac_find_libraries=$ac_dir | |
13677 | break 2 | |
13678 | fi | |
13679 | done | |
13680 | done | |
13681 | ||
13682 | if test "$ac_find_libraries" != "" ; then | |
13683 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
13684 | xpm_link=" -lXpm" | |
13685 | cat >> confdefs.h <<\EOF | |
13686 | #define wxHAVE_LIB_XPM 1 | |
13687 | EOF | |
13688 | ||
13689 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13690 | else | |
13691 | echo "$ac_t""no" 1>&6 | |
13692 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13693 | fi | |
13694 | ||
13695 | mesa_link= | |
13696 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
13697 | echo "configure:13698: checking for Mesa library" >&5 | |
13698 | ||
13699 | ac_find_libraries= | |
13700 | for ac_dir in $SEARCH_LIB; | |
13701 | do | |
13702 | for ac_extension in a so sl dylib; do | |
13703 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13704 | ac_find_libraries=$ac_dir | |
13705 | break 2 | |
13706 | fi | |
13707 | done | |
13708 | done | |
13709 | ||
13710 | if test "$ac_find_libraries" != "" ; then | |
13711 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
13712 | mesa_link=" -lMesaGL" | |
13713 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13714 | else | |
13715 | { echo "configure: error: no" 1>&2; exit 1; } | |
13716 | fi | |
13717 | ||
13718 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
13719 | TOOLKIT=MSW | |
13720 | GUIDIST=MSW_DIST | |
13721 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
13722 | fi | |
13723 | ||
13724 | if test "$wxUSE_MOTIF" = 1; then | |
13725 | if test "$no_x" = yes; then | |
13726 | # Not all programs may use this symbol, but it does not hurt to define it. | |
13727 | cat >> confdefs.h <<\EOF | |
13728 | #define X_DISPLAY_MISSING 1 | |
13729 | EOF | |
13730 | ||
13731 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13732 | else | |
13733 | if test -n "$x_includes"; then | |
13734 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
13735 | fi | |
13736 | ||
13737 | # It would also be nice to do this for all -L options, not just this one. | |
13738 | if test -n "$x_libraries"; then | |
13739 | X_LIBS="$X_LIBS -L$x_libraries" | |
13740 | # For Solaris; some versions of Sun CC require a space after -R and | |
13741 | # others require no space. Words are not sufficient . . . . | |
13742 | case "`(uname -sr) 2>/dev/null`" in | |
13743 | "SunOS 5"*) | |
13744 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
13745 | echo "configure:13746: checking whether -R must be followed by a space" >&5 | |
13746 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
13747 | cat > conftest.$ac_ext <<EOF | |
13748 | #line 13749 "configure" | |
13749 | #include "confdefs.h" | |
13750 | ||
13751 | int main() { | |
13752 | ||
13753 | ; return 0; } | |
13754 | EOF | |
13755 | if { (eval echo configure:13756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13756 | rm -rf conftest* | |
13757 | ac_R_nospace=yes | |
13758 | else | |
13759 | echo "configure: failed program was:" >&5 | |
13760 | cat conftest.$ac_ext >&5 | |
13761 | rm -rf conftest* | |
13762 | ac_R_nospace=no | |
13763 | fi | |
13764 | rm -f conftest* | |
13765 | if test $ac_R_nospace = yes; then | |
13766 | echo "$ac_t""no" 1>&6 | |
13767 | X_LIBS="$X_LIBS -R$x_libraries" | |
13768 | else | |
13769 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
13770 | cat > conftest.$ac_ext <<EOF | |
13771 | #line 13772 "configure" | |
13772 | #include "confdefs.h" | |
13773 | ||
13774 | int main() { | |
13775 | ||
13776 | ; return 0; } | |
13777 | EOF | |
13778 | if { (eval echo configure:13779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13779 | rm -rf conftest* | |
13780 | ac_R_space=yes | |
13781 | else | |
13782 | echo "configure: failed program was:" >&5 | |
13783 | cat conftest.$ac_ext >&5 | |
13784 | rm -rf conftest* | |
13785 | ac_R_space=no | |
13786 | fi | |
13787 | rm -f conftest* | |
13788 | if test $ac_R_space = yes; then | |
13789 | echo "$ac_t""yes" 1>&6 | |
13790 | X_LIBS="$X_LIBS -R $x_libraries" | |
13791 | else | |
13792 | echo "$ac_t""neither works" 1>&6 | |
13793 | fi | |
13794 | fi | |
13795 | LIBS="$ac_xsave_LIBS" | |
13796 | esac | |
13797 | fi | |
13798 | ||
13799 | # Check for system-dependent libraries X programs must link with. | |
13800 | # Do this before checking for the system-independent R6 libraries | |
13801 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
13802 | ||
13803 | if test "$ISC" = yes; then | |
13804 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13805 | else | |
13806 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
13807 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
13808 | # the Alpha needs dnet_stub (dnet does not exist). | |
13809 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
13810 | echo "configure:13811: checking for dnet_ntoa in -ldnet" >&5 | |
13811 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
13812 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13814 | else | |
13815 | ac_save_LIBS="$LIBS" | |
13816 | LIBS="-ldnet $LIBS" | |
13817 | cat > conftest.$ac_ext <<EOF | |
13818 | #line 13819 "configure" | |
13819 | #include "confdefs.h" | |
13820 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13821 | /* We use char because int might match the return type of a gcc2 | |
13822 | builtin and then its argument prototype would still apply. */ | |
13823 | char dnet_ntoa(); | |
13824 | ||
13825 | int main() { | |
13826 | dnet_ntoa() | |
13827 | ; return 0; } | |
13828 | EOF | |
13829 | if { (eval echo configure:13830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13830 | rm -rf conftest* | |
13831 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13832 | else | |
13833 | echo "configure: failed program was:" >&5 | |
13834 | cat conftest.$ac_ext >&5 | |
13835 | rm -rf conftest* | |
13836 | eval "ac_cv_lib_$ac_lib_var=no" | |
13837 | fi | |
13838 | rm -f conftest* | |
13839 | LIBS="$ac_save_LIBS" | |
13840 | ||
13841 | fi | |
13842 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13843 | echo "$ac_t""yes" 1>&6 | |
13844 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
13845 | else | |
13846 | echo "$ac_t""no" 1>&6 | |
13847 | fi | |
13848 | ||
13849 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
13850 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
13851 | echo "configure:13852: checking for dnet_ntoa in -ldnet_stub" >&5 | |
13852 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
13853 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13855 | else | |
13856 | ac_save_LIBS="$LIBS" | |
13857 | LIBS="-ldnet_stub $LIBS" | |
13858 | cat > conftest.$ac_ext <<EOF | |
13859 | #line 13860 "configure" | |
13860 | #include "confdefs.h" | |
13861 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13862 | /* We use char because int might match the return type of a gcc2 | |
13863 | builtin and then its argument prototype would still apply. */ | |
13864 | char dnet_ntoa(); | |
13865 | ||
13866 | int main() { | |
13867 | dnet_ntoa() | |
13868 | ; return 0; } | |
13869 | EOF | |
13870 | if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13871 | rm -rf conftest* | |
13872 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13873 | else | |
13874 | echo "configure: failed program was:" >&5 | |
13875 | cat conftest.$ac_ext >&5 | |
13876 | rm -rf conftest* | |
13877 | eval "ac_cv_lib_$ac_lib_var=no" | |
13878 | fi | |
13879 | rm -f conftest* | |
13880 | LIBS="$ac_save_LIBS" | |
13881 | ||
13882 | fi | |
13883 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13884 | echo "$ac_t""yes" 1>&6 | |
13885 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
13886 | else | |
13887 | echo "$ac_t""no" 1>&6 | |
13888 | fi | |
13889 | ||
13890 | fi | |
13891 | ||
13892 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
13893 | # to get the SysV transport functions. | |
13894 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
13895 | # needs -lnsl. | |
13896 | # The nsl library prevents programs from opening the X display | |
13897 | # on Irix 5.2, according to dickey@clark.net. | |
13898 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
13899 | echo "configure:13900: checking for gethostbyname" >&5 | |
13900 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
13901 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13902 | else | |
13903 | cat > conftest.$ac_ext <<EOF | |
13904 | #line 13905 "configure" | |
13905 | #include "confdefs.h" | |
13906 | /* System header to define __stub macros and hopefully few prototypes, | |
13907 | which can conflict with char gethostbyname(); below. */ | |
13908 | #include <assert.h> | |
13909 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13910 | /* We use char because int might match the return type of a gcc2 | |
13911 | builtin and then its argument prototype would still apply. */ | |
13912 | char gethostbyname(); | |
13913 | ||
13914 | int main() { | |
13915 | ||
13916 | /* The GNU C library defines this for functions which it implements | |
13917 | to always fail with ENOSYS. Some functions are actually named | |
13918 | something starting with __ and the normal name is an alias. */ | |
13919 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13920 | choke me | |
13921 | #else | |
13922 | gethostbyname(); | |
13923 | #endif | |
13924 | ||
13925 | ; return 0; } | |
13926 | EOF | |
13927 | if { (eval echo configure:13928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13928 | rm -rf conftest* | |
13929 | eval "ac_cv_func_gethostbyname=yes" | |
13930 | else | |
13931 | echo "configure: failed program was:" >&5 | |
13932 | cat conftest.$ac_ext >&5 | |
13933 | rm -rf conftest* | |
13934 | eval "ac_cv_func_gethostbyname=no" | |
13935 | fi | |
13936 | rm -f conftest* | |
13937 | fi | |
13938 | ||
13939 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13940 | echo "$ac_t""yes" 1>&6 | |
13941 | : | |
13942 | else | |
13943 | echo "$ac_t""no" 1>&6 | |
13944 | fi | |
13945 | ||
13946 | if test $ac_cv_func_gethostbyname = no; then | |
13947 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
13948 | echo "configure:13949: checking for gethostbyname in -lnsl" >&5 | |
13949 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
13950 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13951 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13952 | else | |
13953 | ac_save_LIBS="$LIBS" | |
13954 | LIBS="-lnsl $LIBS" | |
13955 | cat > conftest.$ac_ext <<EOF | |
13956 | #line 13957 "configure" | |
13957 | #include "confdefs.h" | |
13958 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13959 | /* We use char because int might match the return type of a gcc2 | |
13960 | builtin and then its argument prototype would still apply. */ | |
13961 | char gethostbyname(); | |
13962 | ||
13963 | int main() { | |
13964 | gethostbyname() | |
13965 | ; return 0; } | |
13966 | EOF | |
13967 | if { (eval echo configure:13968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13968 | rm -rf conftest* | |
13969 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13970 | else | |
13971 | echo "configure: failed program was:" >&5 | |
13972 | cat conftest.$ac_ext >&5 | |
13973 | rm -rf conftest* | |
13974 | eval "ac_cv_lib_$ac_lib_var=no" | |
13975 | fi | |
13976 | rm -f conftest* | |
13977 | LIBS="$ac_save_LIBS" | |
13978 | ||
13979 | fi | |
13980 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13981 | echo "$ac_t""yes" 1>&6 | |
13982 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13983 | else | |
13984 | echo "$ac_t""no" 1>&6 | |
13985 | fi | |
13986 | ||
13987 | fi | |
13988 | ||
13989 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13990 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13991 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
13992 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
13993 | # gethostby* variants that don't use the nameserver (or something). | |
13994 | # -lsocket must be given before -lnsl if both are needed. | |
13995 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13996 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
13997 | echo "configure:13998: checking for connect" >&5 | |
13998 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | |
13999 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14000 | else | |
14001 | cat > conftest.$ac_ext <<EOF | |
14002 | #line 14003 "configure" | |
14003 | #include "confdefs.h" | |
14004 | /* System header to define __stub macros and hopefully few prototypes, | |
14005 | which can conflict with char connect(); below. */ | |
14006 | #include <assert.h> | |
14007 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14008 | /* We use char because int might match the return type of a gcc2 | |
14009 | builtin and then its argument prototype would still apply. */ | |
14010 | char connect(); | |
14011 | ||
14012 | int main() { | |
14013 | ||
14014 | /* The GNU C library defines this for functions which it implements | |
14015 | to always fail with ENOSYS. Some functions are actually named | |
14016 | something starting with __ and the normal name is an alias. */ | |
14017 | #if defined (__stub_connect) || defined (__stub___connect) | |
14018 | choke me | |
14019 | #else | |
14020 | connect(); | |
14021 | #endif | |
14022 | ||
14023 | ; return 0; } | |
14024 | EOF | |
14025 | if { (eval echo configure:14026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14026 | rm -rf conftest* | |
14027 | eval "ac_cv_func_connect=yes" | |
14028 | else | |
14029 | echo "configure: failed program was:" >&5 | |
14030 | cat conftest.$ac_ext >&5 | |
14031 | rm -rf conftest* | |
14032 | eval "ac_cv_func_connect=no" | |
14033 | fi | |
14034 | rm -f conftest* | |
14035 | fi | |
14036 | ||
14037 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14038 | echo "$ac_t""yes" 1>&6 | |
14039 | : | |
14040 | else | |
14041 | echo "$ac_t""no" 1>&6 | |
14042 | fi | |
14043 | ||
14044 | if test $ac_cv_func_connect = no; then | |
14045 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
14046 | echo "configure:14047: checking for connect in -lsocket" >&5 | |
14047 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
14048 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14050 | else | |
14051 | ac_save_LIBS="$LIBS" | |
14052 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
14053 | cat > conftest.$ac_ext <<EOF | |
14054 | #line 14055 "configure" | |
14055 | #include "confdefs.h" | |
14056 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14057 | /* We use char because int might match the return type of a gcc2 | |
14058 | builtin and then its argument prototype would still apply. */ | |
14059 | char connect(); | |
14060 | ||
14061 | int main() { | |
14062 | connect() | |
14063 | ; return 0; } | |
14064 | EOF | |
14065 | if { (eval echo configure:14066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14066 | rm -rf conftest* | |
14067 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14068 | else | |
14069 | echo "configure: failed program was:" >&5 | |
14070 | cat conftest.$ac_ext >&5 | |
14071 | rm -rf conftest* | |
14072 | eval "ac_cv_lib_$ac_lib_var=no" | |
14073 | fi | |
14074 | rm -f conftest* | |
14075 | LIBS="$ac_save_LIBS" | |
14076 | ||
14077 | fi | |
14078 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14079 | echo "$ac_t""yes" 1>&6 | |
14080 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
14081 | else | |
14082 | echo "$ac_t""no" 1>&6 | |
14083 | fi | |
14084 | ||
14085 | fi | |
14086 | ||
14087 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
14088 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
14089 | echo "configure:14090: checking for remove" >&5 | |
14090 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
14091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14092 | else | |
14093 | cat > conftest.$ac_ext <<EOF | |
14094 | #line 14095 "configure" | |
14095 | #include "confdefs.h" | |
14096 | /* System header to define __stub macros and hopefully few prototypes, | |
14097 | which can conflict with char remove(); below. */ | |
14098 | #include <assert.h> | |
14099 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14100 | /* We use char because int might match the return type of a gcc2 | |
14101 | builtin and then its argument prototype would still apply. */ | |
14102 | char remove(); | |
14103 | ||
14104 | int main() { | |
14105 | ||
14106 | /* The GNU C library defines this for functions which it implements | |
14107 | to always fail with ENOSYS. Some functions are actually named | |
14108 | something starting with __ and the normal name is an alias. */ | |
14109 | #if defined (__stub_remove) || defined (__stub___remove) | |
14110 | choke me | |
14111 | #else | |
14112 | remove(); | |
14113 | #endif | |
14114 | ||
14115 | ; return 0; } | |
14116 | EOF | |
14117 | if { (eval echo configure:14118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14118 | rm -rf conftest* | |
14119 | eval "ac_cv_func_remove=yes" | |
14120 | else | |
14121 | echo "configure: failed program was:" >&5 | |
14122 | cat conftest.$ac_ext >&5 | |
14123 | rm -rf conftest* | |
14124 | eval "ac_cv_func_remove=no" | |
14125 | fi | |
14126 | rm -f conftest* | |
14127 | fi | |
14128 | ||
14129 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14130 | echo "$ac_t""yes" 1>&6 | |
14131 | : | |
14132 | else | |
14133 | echo "$ac_t""no" 1>&6 | |
14134 | fi | |
14135 | ||
14136 | if test $ac_cv_func_remove = no; then | |
14137 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
14138 | echo "configure:14139: checking for remove in -lposix" >&5 | |
14139 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
14140 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14142 | else | |
14143 | ac_save_LIBS="$LIBS" | |
14144 | LIBS="-lposix $LIBS" | |
14145 | cat > conftest.$ac_ext <<EOF | |
14146 | #line 14147 "configure" | |
14147 | #include "confdefs.h" | |
14148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14149 | /* We use char because int might match the return type of a gcc2 | |
14150 | builtin and then its argument prototype would still apply. */ | |
14151 | char remove(); | |
14152 | ||
14153 | int main() { | |
14154 | remove() | |
14155 | ; return 0; } | |
14156 | EOF | |
14157 | if { (eval echo configure:14158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14158 | rm -rf conftest* | |
14159 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14160 | else | |
14161 | echo "configure: failed program was:" >&5 | |
14162 | cat conftest.$ac_ext >&5 | |
14163 | rm -rf conftest* | |
14164 | eval "ac_cv_lib_$ac_lib_var=no" | |
14165 | fi | |
14166 | rm -f conftest* | |
14167 | LIBS="$ac_save_LIBS" | |
14168 | ||
14169 | fi | |
14170 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14171 | echo "$ac_t""yes" 1>&6 | |
14172 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
14173 | else | |
14174 | echo "$ac_t""no" 1>&6 | |
14175 | fi | |
14176 | ||
14177 | fi | |
14178 | ||
14179 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
14180 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
14181 | echo "configure:14182: checking for shmat" >&5 | |
14182 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
14183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14184 | else | |
14185 | cat > conftest.$ac_ext <<EOF | |
14186 | #line 14187 "configure" | |
14187 | #include "confdefs.h" | |
14188 | /* System header to define __stub macros and hopefully few prototypes, | |
14189 | which can conflict with char shmat(); below. */ | |
14190 | #include <assert.h> | |
14191 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14192 | /* We use char because int might match the return type of a gcc2 | |
14193 | builtin and then its argument prototype would still apply. */ | |
14194 | char shmat(); | |
14195 | ||
14196 | int main() { | |
14197 | ||
14198 | /* The GNU C library defines this for functions which it implements | |
14199 | to always fail with ENOSYS. Some functions are actually named | |
14200 | something starting with __ and the normal name is an alias. */ | |
14201 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14202 | choke me | |
14203 | #else | |
14204 | shmat(); | |
14205 | #endif | |
14206 | ||
14207 | ; return 0; } | |
14208 | EOF | |
14209 | if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14210 | rm -rf conftest* | |
14211 | eval "ac_cv_func_shmat=yes" | |
14212 | else | |
14213 | echo "configure: failed program was:" >&5 | |
14214 | cat conftest.$ac_ext >&5 | |
14215 | rm -rf conftest* | |
14216 | eval "ac_cv_func_shmat=no" | |
14217 | fi | |
14218 | rm -f conftest* | |
14219 | fi | |
14220 | ||
14221 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14222 | echo "$ac_t""yes" 1>&6 | |
14223 | : | |
14224 | else | |
14225 | echo "$ac_t""no" 1>&6 | |
14226 | fi | |
14227 | ||
14228 | if test $ac_cv_func_shmat = no; then | |
14229 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
14230 | echo "configure:14231: checking for shmat in -lipc" >&5 | |
14231 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
14232 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14233 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14234 | else | |
14235 | ac_save_LIBS="$LIBS" | |
14236 | LIBS="-lipc $LIBS" | |
14237 | cat > conftest.$ac_ext <<EOF | |
14238 | #line 14239 "configure" | |
14239 | #include "confdefs.h" | |
14240 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14241 | /* We use char because int might match the return type of a gcc2 | |
14242 | builtin and then its argument prototype would still apply. */ | |
14243 | char shmat(); | |
14244 | ||
14245 | int main() { | |
14246 | shmat() | |
14247 | ; return 0; } | |
14248 | EOF | |
14249 | if { (eval echo configure:14250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14250 | rm -rf conftest* | |
14251 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14252 | else | |
14253 | echo "configure: failed program was:" >&5 | |
14254 | cat conftest.$ac_ext >&5 | |
14255 | rm -rf conftest* | |
14256 | eval "ac_cv_lib_$ac_lib_var=no" | |
14257 | fi | |
14258 | rm -f conftest* | |
14259 | LIBS="$ac_save_LIBS" | |
14260 | ||
14261 | fi | |
14262 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14263 | echo "$ac_t""yes" 1>&6 | |
14264 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
14265 | else | |
14266 | echo "$ac_t""no" 1>&6 | |
14267 | fi | |
14268 | ||
14269 | fi | |
14270 | fi | |
14271 | ||
14272 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
14273 | ac_save_LDFLAGS="$LDFLAGS" | |
14274 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
14275 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14276 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14277 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14278 | # These have to be linked with before -lX11, unlike the other | |
14279 | # libraries we check for below, so use a different variable. | |
14280 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
14281 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
14282 | echo "configure:14283: checking for IceConnectionNumber in -lICE" >&5 | |
14283 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
14284 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14285 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14286 | else | |
14287 | ac_save_LIBS="$LIBS" | |
14288 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
14289 | cat > conftest.$ac_ext <<EOF | |
14290 | #line 14291 "configure" | |
14291 | #include "confdefs.h" | |
14292 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14293 | /* We use char because int might match the return type of a gcc2 | |
14294 | builtin and then its argument prototype would still apply. */ | |
14295 | char IceConnectionNumber(); | |
14296 | ||
14297 | int main() { | |
14298 | IceConnectionNumber() | |
14299 | ; return 0; } | |
14300 | EOF | |
14301 | if { (eval echo configure:14302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14302 | rm -rf conftest* | |
14303 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14304 | else | |
14305 | echo "configure: failed program was:" >&5 | |
14306 | cat conftest.$ac_ext >&5 | |
14307 | rm -rf conftest* | |
14308 | eval "ac_cv_lib_$ac_lib_var=no" | |
14309 | fi | |
14310 | rm -f conftest* | |
14311 | LIBS="$ac_save_LIBS" | |
14312 | ||
14313 | fi | |
14314 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14315 | echo "$ac_t""yes" 1>&6 | |
14316 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
14317 | else | |
14318 | echo "$ac_t""no" 1>&6 | |
14319 | fi | |
14320 | ||
14321 | LDFLAGS="$ac_save_LDFLAGS" | |
14322 | ||
14323 | fi | |
14324 | ||
14325 | ||
14326 | if test "$no_x" = "yes"; then | |
14327 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
14328 | fi | |
14329 | ||
14330 | GUI_TK_LIBRARY="$X_LIBS" | |
14331 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14332 | AFMINSTALL=afminstall | |
14333 | COMPILED_X_PROGRAM=0 | |
14334 | ||
14335 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
14336 | echo "configure:14337: checking for Motif/Lesstif headers" >&5 | |
14337 | ||
14338 | ac_find_includes= | |
14339 | for ac_dir in $SEARCH_INCLUDE; | |
14340 | do | |
14341 | if test -f "$ac_dir/Xm/Xm.h"; then | |
14342 | ac_find_includes=$ac_dir | |
14343 | break | |
14344 | fi | |
14345 | done | |
14346 | ||
14347 | if test "$ac_find_includes" != "" ; then | |
14348 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
14349 | else | |
14350 | cat > conftest.$ac_ext <<EOF | |
14351 | #line 14352 "configure" | |
14352 | #include "confdefs.h" | |
14353 | ||
14354 | #include <Xm/Xm.h> | |
14355 | ||
14356 | int main() { | |
14357 | ||
14358 | int version; | |
14359 | version = xmUseVersion; | |
14360 | ||
14361 | ; return 0; } | |
14362 | EOF | |
14363 | if { (eval echo configure:14364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14364 | rm -rf conftest* | |
14365 | ||
14366 | echo "$ac_t""found in default search path" 1>&6 | |
14367 | COMPILED_X_PROGRAM=1 | |
14368 | ||
14369 | else | |
14370 | echo "configure: failed program was:" >&5 | |
14371 | cat conftest.$ac_ext >&5 | |
14372 | rm -rf conftest* | |
14373 | ||
14374 | echo "$ac_t""no" 1>&6 | |
14375 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
14376 | ||
14377 | ||
14378 | fi | |
14379 | rm -f conftest* | |
14380 | fi | |
14381 | ||
14382 | if test "$COMPILED_X_PROGRAM" = 0; then | |
14383 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
14384 | echo "configure:14385: checking for Motif/Lesstif library" >&5 | |
14385 | ||
14386 | ac_find_libraries= | |
14387 | for ac_dir in $SEARCH_LIB; | |
14388 | do | |
14389 | for ac_extension in a so sl dylib; do | |
14390 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
14391 | ac_find_libraries=$ac_dir | |
14392 | break 2 | |
14393 | fi | |
14394 | done | |
14395 | done | |
14396 | ||
14397 | if test "$ac_find_libraries" != "" ; then | |
14398 | ||
14399 | ac_path_to_include=$ac_find_includes | |
14400 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
14401 | result=$? | |
14402 | if test $result = 0; then | |
14403 | ac_path_to_include="" | |
14404 | else | |
14405 | ac_path_to_include=" -I$ac_find_includes" | |
14406 | fi | |
14407 | ||
14408 | ||
14409 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
14410 | result=$? | |
14411 | if test $result = 0; then | |
14412 | ac_path_to_link="" | |
14413 | else | |
14414 | ac_path_to_link=" -L$ac_find_libraries" | |
14415 | fi | |
14416 | ||
14417 | ||
14418 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
14419 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
14420 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
14421 | else | |
14422 | cat > conftest.$ac_ext <<EOF | |
14423 | #line 14424 "configure" | |
14424 | #include "confdefs.h" | |
14425 | ||
14426 | #include <Xm/Xm.h> | |
14427 | ||
14428 | int main() { | |
14429 | ||
14430 | int version; | |
14431 | version = xmUseVersion; | |
14432 | ||
14433 | ; return 0; } | |
14434 | EOF | |
14435 | if { (eval echo configure:14436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14436 | rm -rf conftest* | |
14437 | ||
14438 | echo "$ac_t""found in default search path" 1>&6 | |
14439 | COMPILED_X_PROGRAM=1 | |
14440 | ||
14441 | else | |
14442 | echo "configure: failed program was:" >&5 | |
14443 | cat conftest.$ac_ext >&5 | |
14444 | rm -rf conftest* | |
14445 | ||
14446 | echo "$ac_t""no" 1>&6 | |
14447 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
14448 | ||
14449 | ||
14450 | fi | |
14451 | rm -f conftest* | |
14452 | fi | |
14453 | fi | |
14454 | ||
14455 | xpm_link= | |
14456 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
14457 | echo "configure:14458: checking for Xpm library" >&5 | |
14458 | ||
14459 | ac_find_libraries= | |
14460 | for ac_dir in $SEARCH_LIB; | |
14461 | do | |
14462 | for ac_extension in a so sl dylib; do | |
14463 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14464 | ac_find_libraries=$ac_dir | |
14465 | break 2 | |
14466 | fi | |
14467 | done | |
14468 | done | |
14469 | ||
14470 | if test "$ac_find_libraries" != "" ; then | |
14471 | ||
14472 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
14473 | result=$? | |
14474 | if test $result = 0; then | |
14475 | ac_path_to_link="" | |
14476 | else | |
14477 | ac_path_to_link=" -L$ac_find_libraries" | |
14478 | fi | |
14479 | ||
14480 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
14481 | xpm_link=" -lXpm" | |
14482 | cat >> confdefs.h <<\EOF | |
14483 | #define wxHAVE_LIB_XPM 1 | |
14484 | EOF | |
14485 | ||
14486 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
14487 | else | |
14488 | cat > conftest.$ac_ext <<EOF | |
14489 | #line 14490 "configure" | |
14490 | #include "confdefs.h" | |
14491 | ||
14492 | #include <X11/xpm.h> | |
14493 | ||
14494 | int main() { | |
14495 | ||
14496 | int version; | |
14497 | version = XpmLibraryVersion(); | |
14498 | ||
14499 | ; return 0; } | |
14500 | EOF | |
14501 | if { (eval echo configure:14502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14502 | rm -rf conftest* | |
14503 | ||
14504 | xpm_link=" -lXpm" | |
14505 | cat >> confdefs.h <<\EOF | |
14506 | #define wxHAVE_LIB_XPM 1 | |
14507 | EOF | |
14508 | ||
14509 | echo "$ac_t""found in default search path" 1>&6 | |
14510 | COMPILED_X_PROGRAM=0 | |
14511 | ||
14512 | else | |
14513 | echo "configure: failed program was:" >&5 | |
14514 | cat conftest.$ac_ext >&5 | |
14515 | rm -rf conftest* | |
14516 | ||
14517 | echo "$ac_t""no" 1>&6 | |
14518 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14519 | ||
14520 | ||
14521 | fi | |
14522 | rm -f conftest* | |
14523 | fi | |
14524 | ||
14525 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" | |
14526 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
14527 | TOOLKIT=MOTIF | |
14528 | GUIDIST=MOTIF_DIST | |
14529 | fi | |
14530 | ||
14531 | if test "$wxUSE_MAC" = 1; then | |
14532 | if test "$wxUSE_PRECOMP" = "yes"; then | |
14533 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
14534 | else | |
14535 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
14536 | fi | |
14537 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
14538 | CFLAGS="$CFLAGS -fpascal-strings" | |
14539 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
14540 | ||
14541 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
14542 | TOOLKIT=MAC | |
14543 | GUIDIST=MACX_DIST | |
14544 | fi | |
14545 | ||
14546 | if test "$wxUSE_PM" = 1; then | |
14547 | TOOLKIT=PM | |
14548 | GUIDIST=GTK_DIST | |
14549 | fi | |
14550 | ||
14551 | if test "$TOOLKIT" = "PM" ; then | |
14552 | TOOLKIT_DIR="os2" | |
14553 | else | |
14554 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
14555 | fi | |
14556 | ||
14557 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
14558 | ||
14559 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
14560 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
14561 | ||
14562 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
14563 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
14564 | ||
14565 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
14566 | if test "$wxUSE_X11" = 1; then | |
14567 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
14568 | else | |
14569 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
14570 | fi | |
14571 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
14572 | WIDGET_SET=univ | |
14573 | else | |
14574 | ALL_OBJECTS="\$(GUIOBJS)" | |
14575 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14576 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14577 | fi | |
14578 | ||
14579 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
14580 | ||
14581 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
14582 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
14583 | fi | |
14584 | ||
14585 | if test "$wxUSE_HTML" = "yes"; then | |
14586 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
14587 | fi | |
14588 | ||
14589 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
14590 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
14591 | fi | |
14592 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
14593 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
14594 | fi | |
14595 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
14596 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
14597 | fi | |
14598 | ||
14599 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
14600 | DISTDIR="wx\$(TOOLKIT)" | |
14601 | else | |
14602 | USE_GUI=0 | |
14603 | ||
14604 | TOOLKIT_DIR="base" | |
14605 | ||
14606 | if test "$USE_WIN32" = 1 ; then | |
14607 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
14608 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
14609 | ||
14610 | TOOLKIT="MSW" | |
14611 | else | |
14612 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
14613 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
14614 | fi | |
14615 | ||
14616 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14617 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14618 | ||
14619 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
14620 | ||
14621 | GUIDIST="BASE_DIST" | |
14622 | DISTDIR="wxBase" | |
14623 | fi | |
14624 | ||
14625 | ||
14626 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
14627 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
14628 | fi | |
14629 | ||
14630 | if test "$wxUSE_REGEX" = "builtin" ; then | |
14631 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
14632 | fi | |
14633 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
14634 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
14635 | fi | |
14636 | ||
14637 | ||
14638 | if test "$wxUSE_OPENGL" = "yes"; then | |
14639 | if test "$wxUSE_MAC" = 1; then | |
14640 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
14641 | elif test "$wxUSE_MSW" = 1; then | |
14642 | OPENGL_LIBS="-lopengl32 -lglu32" | |
14643 | else | |
14644 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
14645 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
14646 | echo "configure:14647: checking for GL/gl.h" >&5 | |
14647 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
14648 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14649 | else | |
14650 | cat > conftest.$ac_ext <<EOF | |
14651 | #line 14652 "configure" | |
14652 | #include "confdefs.h" | |
14653 | #include <GL/gl.h> | |
14654 | EOF | |
14655 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14656 | { (eval echo configure:14657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14657 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14658 | if test -z "$ac_err"; then | |
14659 | rm -rf conftest* | |
14660 | eval "ac_cv_header_$ac_safe=yes" | |
14661 | else | |
14662 | echo "$ac_err" >&5 | |
14663 | echo "configure: failed program was:" >&5 | |
14664 | cat conftest.$ac_ext >&5 | |
14665 | rm -rf conftest* | |
14666 | eval "ac_cv_header_$ac_safe=no" | |
14667 | fi | |
14668 | rm -f conftest* | |
14669 | fi | |
14670 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14671 | echo "$ac_t""yes" 1>&6 | |
14672 | ||
14673 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
14674 | echo "configure:14675: checking for -lGL" >&5 | |
14675 | ||
14676 | ac_find_libraries= | |
14677 | for ac_dir in $SEARCH_LIB; | |
14678 | do | |
14679 | for ac_extension in a so sl dylib; do | |
14680 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
14681 | ac_find_libraries=$ac_dir | |
14682 | break 2 | |
14683 | fi | |
14684 | done | |
14685 | done | |
14686 | ||
14687 | if test "$ac_find_libraries" != "" ; then | |
14688 | ||
14689 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
14690 | result=$? | |
14691 | if test $result = 0; then | |
14692 | ac_path_to_link="" | |
14693 | else | |
14694 | ac_path_to_link=" -L$ac_find_libraries" | |
14695 | fi | |
14696 | ||
14697 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
14698 | LDFLAGS_GL="$LDFLAGS" | |
14699 | else | |
14700 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14701 | fi | |
14702 | OPENGL_LIBS="-lGL -lGLU" | |
14703 | echo "$ac_t""yes" 1>&6 | |
14704 | else | |
14705 | echo "$ac_t""no" 1>&6 | |
14706 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
14707 | echo "configure:14708: checking for -lMesaGL" >&5 | |
14708 | ||
14709 | ac_find_libraries= | |
14710 | for ac_dir in $SEARCH_LIB; | |
14711 | do | |
14712 | for ac_extension in a so sl dylib; do | |
14713 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
14714 | ac_find_libraries=$ac_dir | |
14715 | break 2 | |
14716 | fi | |
14717 | done | |
14718 | done | |
14719 | ||
14720 | if test "$ac_find_libraries" != "" ; then | |
14721 | ||
14722 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
14723 | result=$? | |
14724 | if test $result = 0; then | |
14725 | ac_path_to_link="" | |
14726 | else | |
14727 | ac_path_to_link=" -L$ac_find_libraries" | |
14728 | fi | |
14729 | ||
14730 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14731 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
14732 | echo "$ac_t""yes" 1>&6 | |
14733 | else | |
14734 | echo "$ac_t""no" 1>&6 | |
14735 | fi | |
14736 | fi | |
14737 | ||
14738 | else | |
14739 | echo "$ac_t""no" 1>&6 | |
14740 | fi | |
14741 | ||
14742 | ||
14743 | if test "x$OPENGL_LIBS" = "x"; then | |
14744 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
14745 | fi | |
14746 | fi | |
14747 | ||
14748 | if test "$wxUSE_OPENGL" = "yes"; then | |
14749 | cat >> confdefs.h <<\EOF | |
14750 | #define wxUSE_OPENGL 1 | |
14751 | EOF | |
14752 | ||
14753 | cat >> confdefs.h <<\EOF | |
14754 | #define wxUSE_GLCANVAS 1 | |
14755 | EOF | |
14756 | ||
14757 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
14758 | fi | |
14759 | fi | |
14760 | ||
14761 | if test -z "$TOOLKIT_VPATH" ; then | |
14762 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
14763 | fi | |
14764 | ||
14765 | if test -n "$TOOLKIT" ; then | |
14766 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
14767 | fi | |
14768 | ||
14769 | lib_unicode_suffix= | |
14770 | if test "$wxUSE_UNICODE" = "yes"; then | |
14771 | lib_unicode_suffix=u | |
14772 | fi | |
14773 | ||
14774 | lib_debug_suffix= | |
14775 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
14776 | lib_debug_suffix=d | |
14777 | fi | |
14778 | ||
14779 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
14780 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
14781 | ||
14782 | if test "$cross_compiling" = "yes"; then | |
14783 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
14784 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
14785 | fi | |
14786 | ||
14787 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
14788 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
14789 | ||
14790 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14791 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14792 | ||
14793 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
14794 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14795 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
14796 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14797 | ||
14798 | case "${host}" in | |
14799 | *-*-cygwin* | *-*-mingw32* ) | |
14800 | ||
14801 | ||
14802 | ||
14803 | if test "$cross_compiling" != "yes"; then | |
14804 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
14805 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
14806 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
14807 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14808 | else | |
14809 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14810 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14811 | fi | |
14812 | ;; | |
14813 | ||
14814 | *-*-darwin* ) | |
14815 | if test "$wxUSE_MAC" = 1; then | |
14816 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" | |
14817 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" | |
14818 | fi | |
14819 | ;; | |
14820 | esac | |
14821 | ||
14822 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
14823 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
14824 | ||
14825 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
14826 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
14827 | ||
14828 | if test "$wxUSE_OPENGL" = "yes"; then | |
14829 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
14830 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
14831 | fi | |
14832 | ||
14833 | ||
14834 | ||
14835 | if test "$wxUSE_SHARED" = "yes"; then | |
14836 | case "${host}" in | |
14837 | *-pc-os2_emx | *-pc-os2-emx | \ | |
14838 | *-pc-msdosdjgpp ) | |
14839 | wxUSE_SHARED=no | |
14840 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 | |
14841 | ;; | |
14842 | esac | |
14843 | fi | |
14844 | ||
14845 | if test "$wxUSE_SHARED" = "yes"; then | |
14846 | ||
14847 | if test "$wxUSE_OPENGL" = "yes"; then | |
14848 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
14849 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
14850 | else | |
14851 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
14852 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
14853 | fi | |
14854 | ||
14855 | if test "$GCC" = "yes"; then | |
14856 | PIC_FLAG="-fPIC" | |
14857 | fi | |
14858 | ||
14859 | SHARED_LD="${CXX} -shared -o" | |
14860 | ||
14861 | case "${host}" in | |
14862 | *-hp-hpux* ) | |
14863 | if test "$GCC" == "yes"; then | |
14864 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
14865 | else | |
14866 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
14867 | ||
14868 | SHARED_LD="${CXX} -b -o" | |
14869 | PIC_FLAG="+Z" | |
14870 | fi | |
14871 | ||
14872 | if test "$wxUSE_OPENGL" = "yes"; then | |
14873 | WX_ALL_INSTALLED="preinstall_gl" | |
14874 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
14875 | else | |
14876 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
14877 | fi | |
14878 | ;; | |
14879 | ||
14880 | *-*-linux* ) | |
14881 | if test "$GCC" != "yes"; then | |
14882 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
14883 | echo "configure:14884: checking for Intel compiler" >&5 | |
14884 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then | |
14885 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14886 | else | |
14887 | ||
14888 | cat > conftest.$ac_ext <<EOF | |
14889 | #line 14890 "configure" | |
14890 | #include "confdefs.h" | |
14891 | ||
14892 | int main() { | |
14893 | ||
14894 | #ifndef __INTEL_COMPILER | |
14895 | #error Not icc | |
14896 | #endif | |
14897 | ||
14898 | ; return 0; } | |
14899 | EOF | |
14900 | if { (eval echo configure:14901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14901 | rm -rf conftest* | |
14902 | wx_cv_prog_icc=yes | |
14903 | else | |
14904 | echo "configure: failed program was:" >&5 | |
14905 | cat conftest.$ac_ext >&5 | |
14906 | rm -rf conftest* | |
14907 | wx_cv_prog_icc=no | |
14908 | ||
14909 | fi | |
14910 | rm -f conftest* | |
14911 | ||
14912 | fi | |
14913 | ||
14914 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
14915 | if test "$wx_cv_prog_icc" = "yes"; then | |
14916 | PIC_FLAG="-KPIC" | |
14917 | fi | |
14918 | fi | |
14919 | ||
14920 | if test "$wxUSE_SONAME" = "yes" ; then | |
14921 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
14922 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
14923 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
14924 | fi | |
14925 | ;; | |
14926 | ||
14927 | *-*-solaris2* ) | |
14928 | if test "$GCC" = yes ; then | |
14929 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
14930 | else | |
14931 | SHARED_LD="${CXX} -G -o" | |
14932 | PIC_FLAG="-KPIC" | |
14933 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
14934 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
14935 | fi | |
14936 | ;; | |
14937 | ||
14938 | *-*-darwin* ) | |
14939 | CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL" | |
14940 | CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL" | |
14941 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" | |
14942 | PIC_FLAG="-dynamic -fPIC" | |
14943 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
14944 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
14945 | ;; | |
14946 | ||
14947 | *-*-aix* ) | |
14948 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
14949 | set dummy makeC++SharedLib; ac_word=$2 | |
14950 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
14951 | echo "configure:14952: checking for $ac_word" >&5 | |
14952 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then | |
14953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14954 | else | |
14955 | if test -n "$AIX_CXX_LD"; then | |
14956 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
14957 | else | |
14958 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14959 | ac_dummy="$PATH" | |
14960 | for ac_dir in $ac_dummy; do | |
14961 | test -z "$ac_dir" && ac_dir=. | |
14962 | if test -f $ac_dir/$ac_word; then | |
14963 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
14964 | break | |
14965 | fi | |
14966 | done | |
14967 | IFS="$ac_save_ifs" | |
14968 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
14969 | fi | |
14970 | fi | |
14971 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" | |
14972 | if test -n "$AIX_CXX_LD"; then | |
14973 | echo "$ac_t""$AIX_CXX_LD" 1>&6 | |
14974 | else | |
14975 | echo "$ac_t""no" 1>&6 | |
14976 | fi | |
14977 | ||
14978 | ||
14979 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" | |
14980 | ;; | |
14981 | ||
14982 | *-*-cygwin* | *-*-mingw32* ) | |
14983 | ||
14984 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
14985 | ||
14986 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
14987 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
14988 | ||
14989 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
14990 | ||
14991 | if test "$wxUSE_OPENGL" = "yes"; then | |
14992 | WX_ALL_INSTALLED="preinstall_gl" | |
14993 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
14994 | else | |
14995 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
14996 | fi | |
14997 | ;; | |
14998 | ||
14999 | *-*-beos* ) | |
15000 | SHARED_LD="${LD} -shared -o" | |
15001 | ;; | |
15002 | ||
15003 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
15004 | *-*-sunos4* | \ | |
15005 | *-*-irix5* | *-*-irix6* | \ | |
15006 | *-*-osf* | \ | |
15007 | *-*-dgux5* | \ | |
15008 | *-*-sysv5* ) | |
15009 | ;; | |
15010 | ||
15011 | *) | |
15012 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } | |
15013 | esac | |
15014 | ||
15015 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
15016 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
15017 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
15018 | fi | |
15019 | ||
15020 | WX_TARGET_LIBRARY_TYPE="so" | |
15021 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
15022 | fi | |
15023 | ||
15024 | if test "$wxUSE_SHARED" = "no"; then | |
15025 | ||
15026 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
15027 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15028 | fi | |
15029 | ||
15030 | if test "$wxUSE_MAC" = 1; then | |
15031 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15032 | fi | |
15033 | ||
15034 | if test "$wxUSE_OPENGL" = "yes"; then | |
15035 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
15036 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
15037 | else | |
15038 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
15039 | fi | |
15040 | ||
15041 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
15042 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
15043 | ||
15044 | WX_TARGET_LIBRARY_TYPE="a" | |
15045 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
15046 | fi | |
15047 | ||
15048 | if test "$wxUSE_MAC" = 1; then | |
15049 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
15050 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
15051 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
15052 | # Extract the first word of "Rez", so it can be a program name with args. | |
15053 | set dummy Rez; ac_word=$2 | |
15054 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15055 | echo "configure:15056: checking for $ac_word" >&5 | |
15056 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then | |
15057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15058 | else | |
15059 | if test -n "$RESCOMP"; then | |
15060 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
15061 | else | |
15062 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
15063 | ac_dummy="$PATH" | |
15064 | for ac_dir in $ac_dummy; do | |
15065 | test -z "$ac_dir" && ac_dir=. | |
15066 | if test -f $ac_dir/$ac_word; then | |
15067 | ac_cv_prog_RESCOMP="Rez" | |
15068 | break | |
15069 | fi | |
15070 | done | |
15071 | IFS="$ac_save_ifs" | |
15072 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
15073 | fi | |
15074 | fi | |
15075 | RESCOMP="$ac_cv_prog_RESCOMP" | |
15076 | if test -n "$RESCOMP"; then | |
15077 | echo "$ac_t""$RESCOMP" 1>&6 | |
15078 | else | |
15079 | echo "$ac_t""no" 1>&6 | |
15080 | fi | |
15081 | ||
15082 | # Extract the first word of "DeRez", so it can be a program name with args. | |
15083 | set dummy DeRez; ac_word=$2 | |
15084 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
15085 | echo "configure:15086: checking for $ac_word" >&5 | |
15086 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then | |
15087 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15088 | else | |
15089 | if test -n "$DEREZ"; then | |
15090 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
15091 | else | |
15092 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
15093 | ac_dummy="$PATH" | |
15094 | for ac_dir in $ac_dummy; do | |
15095 | test -z "$ac_dir" && ac_dir=. | |
15096 | if test -f $ac_dir/$ac_word; then | |
15097 | ac_cv_prog_DEREZ="DeRez" | |
15098 | break | |
15099 | fi | |
15100 | done | |
15101 | IFS="$ac_save_ifs" | |
15102 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
15103 | fi | |
15104 | fi | |
15105 | DEREZ="$ac_cv_prog_DEREZ" | |
15106 | if test -n "$DEREZ"; then | |
15107 | echo "$ac_t""$DEREZ" 1>&6 | |
15108 | else | |
15109 | echo "$ac_t""no" 1>&6 | |
15110 | fi | |
15111 | ||
15112 | MACOSX_BUNDLE="bundle" | |
15113 | if test "$wxUSE_SHARED" = "yes"; then | |
15114 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)" | |
15115 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o" | |
15116 | else | |
15117 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
15118 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
15119 | fi | |
15120 | else | |
15121 | if test "$wxUSE_PM" = 1; then | |
15122 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
15123 | fi | |
15124 | fi | |
15125 | ||
15126 | ||
15127 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
15128 | echo "configure:15129: checking for ANSI C header files" >&5 | |
15129 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | |
15130 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15131 | else | |
15132 | cat > conftest.$ac_ext <<EOF | |
15133 | #line 15134 "configure" | |
15134 | #include "confdefs.h" | |
15135 | #include <stdlib.h> | |
15136 | #include <stdarg.h> | |
15137 | #include <string.h> | |
15138 | #include <float.h> | |
15139 | EOF | |
15140 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15141 | { (eval echo configure:15142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15142 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15143 | if test -z "$ac_err"; then | |
15144 | rm -rf conftest* | |
15145 | ac_cv_header_stdc=yes | |
15146 | else | |
15147 | echo "$ac_err" >&5 | |
15148 | echo "configure: failed program was:" >&5 | |
15149 | cat conftest.$ac_ext >&5 | |
15150 | rm -rf conftest* | |
15151 | ac_cv_header_stdc=no | |
15152 | fi | |
15153 | rm -f conftest* | |
15154 | ||
15155 | if test $ac_cv_header_stdc = yes; then | |
15156 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15157 | cat > conftest.$ac_ext <<EOF | |
15158 | #line 15159 "configure" | |
15159 | #include "confdefs.h" | |
15160 | #include <string.h> | |
15161 | EOF | |
15162 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15163 | egrep "memchr" >/dev/null 2>&1; then | |
15164 | : | |
15165 | else | |
15166 | rm -rf conftest* | |
15167 | ac_cv_header_stdc=no | |
15168 | fi | |
15169 | rm -f conftest* | |
15170 | ||
15171 | fi | |
15172 | ||
15173 | if test $ac_cv_header_stdc = yes; then | |
15174 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15175 | cat > conftest.$ac_ext <<EOF | |
15176 | #line 15177 "configure" | |
15177 | #include "confdefs.h" | |
15178 | #include <stdlib.h> | |
15179 | EOF | |
15180 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15181 | egrep "free" >/dev/null 2>&1; then | |
15182 | : | |
15183 | else | |
15184 | rm -rf conftest* | |
15185 | ac_cv_header_stdc=no | |
15186 | fi | |
15187 | rm -f conftest* | |
15188 | ||
15189 | fi | |
15190 | ||
15191 | if test $ac_cv_header_stdc = yes; then | |
15192 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15193 | if test "$cross_compiling" = yes; then | |
15194 | : | |
15195 | else | |
15196 | cat > conftest.$ac_ext <<EOF | |
15197 | #line 15198 "configure" | |
15198 | #include "confdefs.h" | |
15199 | #include <ctype.h> | |
15200 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15201 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15202 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15203 | int main () { int i; for (i = 0; i < 256; i++) | |
15204 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
15205 | exit (0); } | |
15206 | ||
15207 | EOF | |
15208 | if { (eval echo configure:15209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
15209 | then | |
15210 | : | |
15211 | else | |
15212 | echo "configure: failed program was:" >&5 | |
15213 | cat conftest.$ac_ext >&5 | |
15214 | rm -fr conftest* | |
15215 | ac_cv_header_stdc=no | |
15216 | fi | |
15217 | rm -fr conftest* | |
15218 | fi | |
15219 | ||
15220 | fi | |
15221 | fi | |
15222 | ||
15223 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
15224 | if test $ac_cv_header_stdc = yes; then | |
15225 | cat >> confdefs.h <<\EOF | |
15226 | #define STDC_HEADERS 1 | |
15227 | EOF | |
15228 | ||
15229 | fi | |
15230 | ||
15231 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
15232 | echo "configure:15233: checking for mode_t" >&5 | |
15233 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then | |
15234 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15235 | else | |
15236 | cat > conftest.$ac_ext <<EOF | |
15237 | #line 15238 "configure" | |
15238 | #include "confdefs.h" | |
15239 | #include <sys/types.h> | |
15240 | #if STDC_HEADERS | |
15241 | #include <stdlib.h> | |
15242 | #include <stddef.h> | |
15243 | #endif | |
15244 | EOF | |
15245 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15246 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15247 | rm -rf conftest* | |
15248 | ac_cv_type_mode_t=yes | |
15249 | else | |
15250 | rm -rf conftest* | |
15251 | ac_cv_type_mode_t=no | |
15252 | fi | |
15253 | rm -f conftest* | |
15254 | ||
15255 | fi | |
15256 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
15257 | if test $ac_cv_type_mode_t = no; then | |
15258 | cat >> confdefs.h <<\EOF | |
15259 | #define mode_t int | |
15260 | EOF | |
15261 | ||
15262 | fi | |
15263 | ||
15264 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
15265 | echo "configure:15266: checking for off_t" >&5 | |
15266 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | |
15267 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15268 | else | |
15269 | cat > conftest.$ac_ext <<EOF | |
15270 | #line 15271 "configure" | |
15271 | #include "confdefs.h" | |
15272 | #include <sys/types.h> | |
15273 | #if STDC_HEADERS | |
15274 | #include <stdlib.h> | |
15275 | #include <stddef.h> | |
15276 | #endif | |
15277 | EOF | |
15278 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15279 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15280 | rm -rf conftest* | |
15281 | ac_cv_type_off_t=yes | |
15282 | else | |
15283 | rm -rf conftest* | |
15284 | ac_cv_type_off_t=no | |
15285 | fi | |
15286 | rm -f conftest* | |
15287 | ||
15288 | fi | |
15289 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
15290 | if test $ac_cv_type_off_t = no; then | |
15291 | cat >> confdefs.h <<\EOF | |
15292 | #define off_t long | |
15293 | EOF | |
15294 | ||
15295 | fi | |
15296 | ||
15297 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
15298 | echo "configure:15299: checking for pid_t" >&5 | |
15299 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | |
15300 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15301 | else | |
15302 | cat > conftest.$ac_ext <<EOF | |
15303 | #line 15304 "configure" | |
15304 | #include "confdefs.h" | |
15305 | #include <sys/types.h> | |
15306 | #if STDC_HEADERS | |
15307 | #include <stdlib.h> | |
15308 | #include <stddef.h> | |
15309 | #endif | |
15310 | EOF | |
15311 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15312 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15313 | rm -rf conftest* | |
15314 | ac_cv_type_pid_t=yes | |
15315 | else | |
15316 | rm -rf conftest* | |
15317 | ac_cv_type_pid_t=no | |
15318 | fi | |
15319 | rm -f conftest* | |
15320 | ||
15321 | fi | |
15322 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
15323 | if test $ac_cv_type_pid_t = no; then | |
15324 | cat >> confdefs.h <<\EOF | |
15325 | #define pid_t int | |
15326 | EOF | |
15327 | ||
15328 | fi | |
15329 | ||
15330 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
15331 | echo "configure:15332: checking for size_t" >&5 | |
15332 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | |
15333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15334 | else | |
15335 | cat > conftest.$ac_ext <<EOF | |
15336 | #line 15337 "configure" | |
15337 | #include "confdefs.h" | |
15338 | #include <sys/types.h> | |
15339 | #if STDC_HEADERS | |
15340 | #include <stdlib.h> | |
15341 | #include <stddef.h> | |
15342 | #endif | |
15343 | EOF | |
15344 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15345 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15346 | rm -rf conftest* | |
15347 | ac_cv_type_size_t=yes | |
15348 | else | |
15349 | rm -rf conftest* | |
15350 | ac_cv_type_size_t=no | |
15351 | fi | |
15352 | rm -f conftest* | |
15353 | ||
15354 | fi | |
15355 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
15356 | if test $ac_cv_type_size_t = no; then | |
15357 | cat >> confdefs.h <<\EOF | |
15358 | #define size_t unsigned | |
15359 | EOF | |
15360 | ||
15361 | fi | |
15362 | ||
15363 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
15364 | echo "configure:15365: checking for uid_t in sys/types.h" >&5 | |
15365 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then | |
15366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15367 | else | |
15368 | cat > conftest.$ac_ext <<EOF | |
15369 | #line 15370 "configure" | |
15370 | #include "confdefs.h" | |
15371 | #include <sys/types.h> | |
15372 | EOF | |
15373 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15374 | egrep "uid_t" >/dev/null 2>&1; then | |
15375 | rm -rf conftest* | |
15376 | ac_cv_type_uid_t=yes | |
15377 | else | |
15378 | rm -rf conftest* | |
15379 | ac_cv_type_uid_t=no | |
15380 | fi | |
15381 | rm -f conftest* | |
15382 | ||
15383 | fi | |
15384 | ||
15385 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
15386 | if test $ac_cv_type_uid_t = no; then | |
15387 | cat >> confdefs.h <<\EOF | |
15388 | #define uid_t int | |
15389 | EOF | |
15390 | ||
15391 | cat >> confdefs.h <<\EOF | |
15392 | #define gid_t int | |
15393 | EOF | |
15394 | ||
15395 | fi | |
15396 | ||
15397 | ||
15398 | ||
15399 | ac_ext=C | |
15400 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15401 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15402 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15403 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15404 | cross_compiling=$ac_cv_prog_cxx_cross | |
15405 | ||
15406 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 | |
15407 | echo "configure:15408: checking if size_t is unsigned int" >&5 | |
15408 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then | |
15409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15410 | else | |
15411 | cat > conftest.$ac_ext <<EOF | |
15412 | #line 15413 "configure" | |
15413 | #include "confdefs.h" | |
15414 | #include <stddef.h> | |
15415 | int main() { | |
15416 | ||
15417 | return 0; } | |
15418 | ||
15419 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
15420 | ||
15421 | int bar() { | |
15422 | ||
15423 | ; return 0; } | |
15424 | EOF | |
15425 | if { (eval echo configure:15426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15426 | rm -rf conftest* | |
15427 | wx_cv_size_t_is_uint=no | |
15428 | else | |
15429 | echo "configure: failed program was:" >&5 | |
15430 | cat conftest.$ac_ext >&5 | |
15431 | rm -rf conftest* | |
15432 | wx_cv_size_t_is_uint=yes | |
15433 | ||
15434 | fi | |
15435 | rm -f conftest* | |
15436 | ||
15437 | fi | |
15438 | ||
15439 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
15440 | ||
15441 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
15442 | cat >> confdefs.h <<\EOF | |
15443 | #define wxSIZE_T_IS_UINT 1 | |
15444 | EOF | |
15445 | ||
15446 | else | |
15447 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
15448 | echo "configure:15449: checking if size_t is unsigned long" >&5 | |
15449 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then | |
15450 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15451 | else | |
15452 | cat > conftest.$ac_ext <<EOF | |
15453 | #line 15454 "configure" | |
15454 | #include "confdefs.h" | |
15455 | #include <stddef.h> | |
15456 | int main() { | |
15457 | ||
15458 | return 0; } | |
15459 | ||
15460 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
15461 | ||
15462 | int bar() { | |
15463 | ||
15464 | ; return 0; } | |
15465 | EOF | |
15466 | if { (eval echo configure:15467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15467 | rm -rf conftest* | |
15468 | wx_cv_size_t_is_ulong=no | |
15469 | else | |
15470 | echo "configure: failed program was:" >&5 | |
15471 | cat conftest.$ac_ext >&5 | |
15472 | rm -rf conftest* | |
15473 | wx_cv_size_t_is_ulong=yes | |
15474 | ||
15475 | fi | |
15476 | rm -f conftest* | |
15477 | ||
15478 | fi | |
15479 | ||
15480 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
15481 | ||
15482 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
15483 | cat >> confdefs.h <<\EOF | |
15484 | #define wxSIZE_T_IS_ULONG 1 | |
15485 | EOF | |
15486 | ||
15487 | fi | |
15488 | fi | |
15489 | ||
15490 | ac_ext=c | |
15491 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15492 | ac_cpp='$CPP $CPPFLAGS' | |
15493 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15494 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15495 | cross_compiling=$ac_cv_prog_cc_cross | |
15496 | ||
15497 | ||
15498 | ||
15499 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 | |
15500 | echo "configure:15501: checking for pw_gecos in struct passwd" >&5 | |
15501 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then | |
15502 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15503 | else | |
15504 | ||
15505 | cat > conftest.$ac_ext <<EOF | |
15506 | #line 15507 "configure" | |
15507 | #include "confdefs.h" | |
15508 | #include <pwd.h> | |
15509 | int main() { | |
15510 | ||
15511 | char *p; | |
15512 | struct passwd *pw; | |
15513 | p = pw->pw_gecos; | |
15514 | ||
15515 | ; return 0; } | |
15516 | EOF | |
15517 | if { (eval echo configure:15518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15518 | rm -rf conftest* | |
15519 | ||
15520 | wx_cv_struct_pw_gecos=yes | |
15521 | ||
15522 | else | |
15523 | echo "configure: failed program was:" >&5 | |
15524 | cat conftest.$ac_ext >&5 | |
15525 | rm -rf conftest* | |
15526 | ||
15527 | wx_cv_struct_pw_gecos=no | |
15528 | ||
15529 | ||
15530 | fi | |
15531 | rm -f conftest* | |
15532 | ||
15533 | ||
15534 | fi | |
15535 | ||
15536 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
15537 | ||
15538 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
15539 | cat >> confdefs.h <<\EOF | |
15540 | #define HAVE_PW_GECOS 1 | |
15541 | EOF | |
15542 | ||
15543 | fi | |
15544 | ||
15545 | ||
15546 | WCHAR_OK=0 | |
15547 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
15548 | WCHAR_LINK= | |
15549 | for ac_func in wcslen | |
15550 | do | |
15551 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15552 | echo "configure:15553: checking for $ac_func" >&5 | |
15553 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
15554 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15555 | else | |
15556 | cat > conftest.$ac_ext <<EOF | |
15557 | #line 15558 "configure" | |
15558 | #include "confdefs.h" | |
15559 | /* System header to define __stub macros and hopefully few prototypes, | |
15560 | which can conflict with char $ac_func(); below. */ | |
15561 | #include <assert.h> | |
15562 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15563 | /* We use char because int might match the return type of a gcc2 | |
15564 | builtin and then its argument prototype would still apply. */ | |
15565 | char $ac_func(); | |
15566 | ||
15567 | int main() { | |
15568 | ||
15569 | /* The GNU C library defines this for functions which it implements | |
15570 | to always fail with ENOSYS. Some functions are actually named | |
15571 | something starting with __ and the normal name is an alias. */ | |
15572 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15573 | choke me | |
15574 | #else | |
15575 | $ac_func(); | |
15576 | #endif | |
15577 | ||
15578 | ; return 0; } | |
15579 | EOF | |
15580 | if { (eval echo configure:15581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15581 | rm -rf conftest* | |
15582 | eval "ac_cv_func_$ac_func=yes" | |
15583 | else | |
15584 | echo "configure: failed program was:" >&5 | |
15585 | cat conftest.$ac_ext >&5 | |
15586 | rm -rf conftest* | |
15587 | eval "ac_cv_func_$ac_func=no" | |
15588 | fi | |
15589 | rm -f conftest* | |
15590 | fi | |
15591 | ||
15592 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15593 | echo "$ac_t""yes" 1>&6 | |
15594 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15595 | cat >> confdefs.h <<EOF | |
15596 | #define $ac_tr_func 1 | |
15597 | EOF | |
15598 | ||
15599 | cat >> confdefs.h <<\EOF | |
15600 | #define HAVE_WCSLEN 1 | |
15601 | EOF | |
15602 | ||
15603 | WCHAR_OK=1 | |
15604 | ||
15605 | else | |
15606 | echo "$ac_t""no" 1>&6 | |
15607 | fi | |
15608 | done | |
15609 | ||
15610 | ||
15611 | if test "$WCHAR_OK" = 0; then | |
15612 | if test "$TOOLKIT" = "MSW"; then | |
15613 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 | |
15614 | echo "configure:15615: checking for wcslen in -lmsvcrt" >&5 | |
15615 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` | |
15616 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15618 | else | |
15619 | ac_save_LIBS="$LIBS" | |
15620 | LIBS="-lmsvcrt $LIBS" | |
15621 | cat > conftest.$ac_ext <<EOF | |
15622 | #line 15623 "configure" | |
15623 | #include "confdefs.h" | |
15624 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15625 | /* We use char because int might match the return type of a gcc2 | |
15626 | builtin and then its argument prototype would still apply. */ | |
15627 | char wcslen(); | |
15628 | ||
15629 | int main() { | |
15630 | wcslen() | |
15631 | ; return 0; } | |
15632 | EOF | |
15633 | if { (eval echo configure:15634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15634 | rm -rf conftest* | |
15635 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15636 | else | |
15637 | echo "configure: failed program was:" >&5 | |
15638 | cat conftest.$ac_ext >&5 | |
15639 | rm -rf conftest* | |
15640 | eval "ac_cv_lib_$ac_lib_var=no" | |
15641 | fi | |
15642 | rm -f conftest* | |
15643 | LIBS="$ac_save_LIBS" | |
15644 | ||
15645 | fi | |
15646 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15647 | echo "$ac_t""yes" 1>&6 | |
15648 | ||
15649 | cat >> confdefs.h <<\EOF | |
15650 | #define HAVE_WCSLEN 1 | |
15651 | EOF | |
15652 | ||
15653 | WCHAR_OK=1 | |
15654 | ||
15655 | else | |
15656 | echo "$ac_t""no" 1>&6 | |
15657 | fi | |
15658 | ||
15659 | else | |
15660 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
15661 | echo "configure:15662: checking for wcslen in -lw" >&5 | |
15662 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` | |
15663 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15665 | else | |
15666 | ac_save_LIBS="$LIBS" | |
15667 | LIBS="-lw $LIBS" | |
15668 | cat > conftest.$ac_ext <<EOF | |
15669 | #line 15670 "configure" | |
15670 | #include "confdefs.h" | |
15671 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15672 | /* We use char because int might match the return type of a gcc2 | |
15673 | builtin and then its argument prototype would still apply. */ | |
15674 | char wcslen(); | |
15675 | ||
15676 | int main() { | |
15677 | wcslen() | |
15678 | ; return 0; } | |
15679 | EOF | |
15680 | if { (eval echo configure:15681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15681 | rm -rf conftest* | |
15682 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15683 | else | |
15684 | echo "configure: failed program was:" >&5 | |
15685 | cat conftest.$ac_ext >&5 | |
15686 | rm -rf conftest* | |
15687 | eval "ac_cv_lib_$ac_lib_var=no" | |
15688 | fi | |
15689 | rm -f conftest* | |
15690 | LIBS="$ac_save_LIBS" | |
15691 | ||
15692 | fi | |
15693 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15694 | echo "$ac_t""yes" 1>&6 | |
15695 | ||
15696 | cat >> confdefs.h <<\EOF | |
15697 | #define HAVE_WCSLEN 1 | |
15698 | EOF | |
15699 | ||
15700 | WCHAR_LINK=" -lw" | |
15701 | WCHAR_OK=1 | |
15702 | ||
15703 | else | |
15704 | echo "$ac_t""no" 1>&6 | |
15705 | fi | |
15706 | ||
15707 | fi | |
15708 | fi | |
15709 | fi | |
15710 | ||
15711 | if test "$WCHAR_OK" = 1; then | |
15712 | cat >> confdefs.h <<\EOF | |
15713 | #define wxUSE_WCHAR_T 1 | |
15714 | EOF | |
15715 | ||
15716 | ||
15717 | for ac_func in wcsrtombs | |
15718 | do | |
15719 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15720 | echo "configure:15721: checking for $ac_func" >&5 | |
15721 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
15722 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15723 | else | |
15724 | cat > conftest.$ac_ext <<EOF | |
15725 | #line 15726 "configure" | |
15726 | #include "confdefs.h" | |
15727 | /* System header to define __stub macros and hopefully few prototypes, | |
15728 | which can conflict with char $ac_func(); below. */ | |
15729 | #include <assert.h> | |
15730 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15731 | /* We use char because int might match the return type of a gcc2 | |
15732 | builtin and then its argument prototype would still apply. */ | |
15733 | char $ac_func(); | |
15734 | ||
15735 | int main() { | |
15736 | ||
15737 | /* The GNU C library defines this for functions which it implements | |
15738 | to always fail with ENOSYS. Some functions are actually named | |
15739 | something starting with __ and the normal name is an alias. */ | |
15740 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15741 | choke me | |
15742 | #else | |
15743 | $ac_func(); | |
15744 | #endif | |
15745 | ||
15746 | ; return 0; } | |
15747 | EOF | |
15748 | if { (eval echo configure:15749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15749 | rm -rf conftest* | |
15750 | eval "ac_cv_func_$ac_func=yes" | |
15751 | else | |
15752 | echo "configure: failed program was:" >&5 | |
15753 | cat conftest.$ac_ext >&5 | |
15754 | rm -rf conftest* | |
15755 | eval "ac_cv_func_$ac_func=no" | |
15756 | fi | |
15757 | rm -f conftest* | |
15758 | fi | |
15759 | ||
15760 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15761 | echo "$ac_t""yes" 1>&6 | |
15762 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15763 | cat >> confdefs.h <<EOF | |
15764 | #define $ac_tr_func 1 | |
15765 | EOF | |
15766 | ||
15767 | else | |
15768 | echo "$ac_t""no" 1>&6 | |
15769 | fi | |
15770 | done | |
15771 | ||
15772 | else | |
15773 | if test "$USE_DARWIN" = 1; then | |
15774 | cat >> confdefs.h <<\EOF | |
15775 | #define wxUSE_WCHAR_T 1 | |
15776 | EOF | |
15777 | ||
15778 | else | |
15779 | echo "configure: warning: Wide character support is unavailable" 1>&2 | |
15780 | fi | |
15781 | fi | |
15782 | ||
15783 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
15784 | echo "configure:15785: checking for vprintf" >&5 | |
15785 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then | |
15786 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15787 | else | |
15788 | cat > conftest.$ac_ext <<EOF | |
15789 | #line 15790 "configure" | |
15790 | #include "confdefs.h" | |
15791 | /* System header to define __stub macros and hopefully few prototypes, | |
15792 | which can conflict with char vprintf(); below. */ | |
15793 | #include <assert.h> | |
15794 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15795 | /* We use char because int might match the return type of a gcc2 | |
15796 | builtin and then its argument prototype would still apply. */ | |
15797 | char vprintf(); | |
15798 | ||
15799 | int main() { | |
15800 | ||
15801 | /* The GNU C library defines this for functions which it implements | |
15802 | to always fail with ENOSYS. Some functions are actually named | |
15803 | something starting with __ and the normal name is an alias. */ | |
15804 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
15805 | choke me | |
15806 | #else | |
15807 | vprintf(); | |
15808 | #endif | |
15809 | ||
15810 | ; return 0; } | |
15811 | EOF | |
15812 | if { (eval echo configure:15813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15813 | rm -rf conftest* | |
15814 | eval "ac_cv_func_vprintf=yes" | |
15815 | else | |
15816 | echo "configure: failed program was:" >&5 | |
15817 | cat conftest.$ac_ext >&5 | |
15818 | rm -rf conftest* | |
15819 | eval "ac_cv_func_vprintf=no" | |
15820 | fi | |
15821 | rm -f conftest* | |
15822 | fi | |
15823 | ||
15824 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
15825 | echo "$ac_t""yes" 1>&6 | |
15826 | cat >> confdefs.h <<\EOF | |
15827 | #define HAVE_VPRINTF 1 | |
15828 | EOF | |
15829 | ||
15830 | else | |
15831 | echo "$ac_t""no" 1>&6 | |
15832 | fi | |
15833 | ||
15834 | if test "$ac_cv_func_vprintf" != yes; then | |
15835 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
15836 | echo "configure:15837: checking for _doprnt" >&5 | |
15837 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then | |
15838 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15839 | else | |
15840 | cat > conftest.$ac_ext <<EOF | |
15841 | #line 15842 "configure" | |
15842 | #include "confdefs.h" | |
15843 | /* System header to define __stub macros and hopefully few prototypes, | |
15844 | which can conflict with char _doprnt(); below. */ | |
15845 | #include <assert.h> | |
15846 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15847 | /* We use char because int might match the return type of a gcc2 | |
15848 | builtin and then its argument prototype would still apply. */ | |
15849 | char _doprnt(); | |
15850 | ||
15851 | int main() { | |
15852 | ||
15853 | /* The GNU C library defines this for functions which it implements | |
15854 | to always fail with ENOSYS. Some functions are actually named | |
15855 | something starting with __ and the normal name is an alias. */ | |
15856 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
15857 | choke me | |
15858 | #else | |
15859 | _doprnt(); | |
15860 | #endif | |
15861 | ||
15862 | ; return 0; } | |
15863 | EOF | |
15864 | if { (eval echo configure:15865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15865 | rm -rf conftest* | |
15866 | eval "ac_cv_func__doprnt=yes" | |
15867 | else | |
15868 | echo "configure: failed program was:" >&5 | |
15869 | cat conftest.$ac_ext >&5 | |
15870 | rm -rf conftest* | |
15871 | eval "ac_cv_func__doprnt=no" | |
15872 | fi | |
15873 | rm -f conftest* | |
15874 | fi | |
15875 | ||
15876 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
15877 | echo "$ac_t""yes" 1>&6 | |
15878 | cat >> confdefs.h <<\EOF | |
15879 | #define HAVE_DOPRNT 1 | |
15880 | EOF | |
15881 | ||
15882 | else | |
15883 | echo "$ac_t""no" 1>&6 | |
15884 | fi | |
15885 | ||
15886 | fi | |
15887 | ||
15888 | ||
15889 | ||
15890 | ||
15891 | ||
15892 | ||
15893 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
15894 | echo "configure:15895: checking for vsnprintf" >&5 | |
15895 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then | |
15896 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15897 | else | |
15898 | ||
15899 | cat > conftest.$ac_ext <<EOF | |
15900 | #line 15901 "configure" | |
15901 | #include "confdefs.h" | |
15902 | ||
15903 | #include <stdio.h> | |
15904 | #include <stdarg.h> | |
15905 | ||
15906 | int main() { | |
15907 | ||
15908 | int wx_test_vsnprintf(const char *, ...); | |
15909 | ||
15910 | wx_test_vsnprintf("%s"); | |
15911 | return 0; | |
15912 | } | |
15913 | ||
15914 | int wx_test_vsnprintf(const char *fmt, ...) | |
15915 | { | |
15916 | char *s; | |
15917 | ||
15918 | va_list argp; | |
15919 | va_start(argp, fmt); | |
15920 | vsnprintf(s, 42, fmt, argp); | |
15921 | va_end(argp); | |
15922 | ||
15923 | ; return 0; } | |
15924 | EOF | |
15925 | if { (eval echo configure:15926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15926 | rm -rf conftest* | |
15927 | ||
15928 | wx_cv_func_vsnprintf=yes | |
15929 | ||
15930 | else | |
15931 | echo "configure: failed program was:" >&5 | |
15932 | cat conftest.$ac_ext >&5 | |
15933 | rm -rf conftest* | |
15934 | ||
15935 | cat > conftest.$ac_ext <<EOF | |
15936 | #line 15937 "configure" | |
15937 | #include "confdefs.h" | |
15938 | ||
15939 | #include <stdio.h> | |
15940 | #include <stdarg.h> | |
15941 | ||
15942 | int main() { | |
15943 | ||
15944 | int wx_test_vsnprintf(const char *, ...); | |
15945 | ||
15946 | wx_test_vsnprintf("%s"); | |
15947 | return 0; | |
15948 | } | |
15949 | ||
15950 | int wx_test_vsnprintf(const char *fmt, ...) | |
15951 | { | |
15952 | char *s; | |
15953 | ||
15954 | va_list argp; | |
15955 | va_start(argp, fmt); | |
15956 | _vsnprintf(s, 42, fmt, argp); | |
15957 | va_end(argp); | |
15958 | ||
15959 | ; return 0; } | |
15960 | EOF | |
15961 | if { (eval echo configure:15962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15962 | rm -rf conftest* | |
15963 | ||
15964 | wx_cv_func_vsnprintf=yes | |
15965 | ||
15966 | else | |
15967 | echo "configure: failed program was:" >&5 | |
15968 | cat conftest.$ac_ext >&5 | |
15969 | rm -rf conftest* | |
15970 | ||
15971 | wx_cv_func_vsnprintf=no | |
15972 | ||
15973 | fi | |
15974 | rm -f conftest* | |
15975 | ||
15976 | fi | |
15977 | rm -f conftest* | |
15978 | ||
15979 | fi | |
15980 | ||
15981 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
15982 | ||
15983 | if test "$wx_cv_func_vsnprintf" = yes; then | |
15984 | cat >> confdefs.h <<\EOF | |
15985 | #define HAVE_VSNPRINTF 1 | |
15986 | EOF | |
15987 | ||
15988 | else | |
15989 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 | |
15990 | fi | |
15991 | ||
15992 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
15993 | echo "configure:15994: checking for vsscanf" >&5 | |
15994 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then | |
15995 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15996 | else | |
15997 | ||
15998 | cat > conftest.$ac_ext <<EOF | |
15999 | #line 16000 "configure" | |
16000 | #include "confdefs.h" | |
16001 | ||
16002 | #include <stdio.h> | |
16003 | #include <stdarg.h> | |
16004 | ||
16005 | int main() { | |
16006 | ||
16007 | int wx_test_vsscanf(const char *, ...); | |
16008 | ||
16009 | wx_test_vsscanf("%d"); | |
16010 | return 0; | |
16011 | } | |
16012 | ||
16013 | int wx_test_vsscanf(const char *fmt, ...) | |
16014 | { | |
16015 | va_list argp; | |
16016 | va_start(argp, fmt); | |
16017 | vsscanf("42", fmt, argp); | |
16018 | va_end(argp); | |
16019 | ||
16020 | ; return 0; } | |
16021 | EOF | |
16022 | if { (eval echo configure:16023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16023 | rm -rf conftest* | |
16024 | ||
16025 | wx_cv_func_vsscanf=yes | |
16026 | ||
16027 | else | |
16028 | echo "configure: failed program was:" >&5 | |
16029 | cat conftest.$ac_ext >&5 | |
16030 | rm -rf conftest* | |
16031 | ||
16032 | wx_cv_func_vsscanf=no | |
16033 | ||
16034 | fi | |
16035 | rm -f conftest* | |
16036 | ||
16037 | fi | |
16038 | ||
16039 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
16040 | ||
16041 | if test "$wx_cv_func_vsscanf" = yes; then | |
16042 | cat >> confdefs.h <<\EOF | |
16043 | #define HAVE_VSSCANF 1 | |
16044 | EOF | |
16045 | ||
16046 | fi | |
16047 | ||
16048 | if test "$TOOLKIT" != "MSW"; then | |
16049 | ||
16050 | ||
16051 | ||
16052 | ac_ext=C | |
16053 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16054 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16055 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16056 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16057 | cross_compiling=$ac_cv_prog_cxx_cross | |
16058 | ||
16059 | ||
16060 | ||
16061 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
16062 | if test "${with_libiconv_prefix+set}" = set; then | |
16063 | withval="$with_libiconv_prefix" | |
16064 | ||
16065 | for dir in `echo "$withval" | tr : ' '`; do | |
16066 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
16067 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
16068 | done | |
16069 | ||
16070 | fi | |
16071 | ||
16072 | ||
16073 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
16074 | echo "configure:16075: checking for iconv" >&5 | |
16075 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then | |
16076 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16077 | else | |
16078 | ||
16079 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
16080 | am_cv_lib_iconv=no | |
16081 | cat > conftest.$ac_ext <<EOF | |
16082 | #line 16083 "configure" | |
16083 | #include "confdefs.h" | |
16084 | #include <stdlib.h> | |
16085 | #include <iconv.h> | |
16086 | int main() { | |
16087 | iconv_t cd = iconv_open("",""); | |
16088 | iconv(cd,NULL,NULL,NULL,NULL); | |
16089 | iconv_close(cd); | |
16090 | ; return 0; } | |
16091 | EOF | |
16092 | if { (eval echo configure:16093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16093 | rm -rf conftest* | |
16094 | am_cv_func_iconv=yes | |
16095 | else | |
16096 | echo "configure: failed program was:" >&5 | |
16097 | cat conftest.$ac_ext >&5 | |
16098 | fi | |
16099 | rm -f conftest* | |
16100 | if test "$am_cv_func_iconv" != yes; then | |
16101 | am_save_LIBS="$LIBS" | |
16102 | LIBS="$LIBS -liconv" | |
16103 | cat > conftest.$ac_ext <<EOF | |
16104 | #line 16105 "configure" | |
16105 | #include "confdefs.h" | |
16106 | #include <stdlib.h> | |
16107 | #include <iconv.h> | |
16108 | int main() { | |
16109 | iconv_t cd = iconv_open("",""); | |
16110 | iconv(cd,NULL,NULL,NULL,NULL); | |
16111 | iconv_close(cd); | |
16112 | ; return 0; } | |
16113 | EOF | |
16114 | if { (eval echo configure:16115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16115 | rm -rf conftest* | |
16116 | am_cv_lib_iconv=yes | |
16117 | am_cv_func_iconv=yes | |
16118 | else | |
16119 | echo "configure: failed program was:" >&5 | |
16120 | cat conftest.$ac_ext >&5 | |
16121 | fi | |
16122 | rm -f conftest* | |
16123 | LIBS="$am_save_LIBS" | |
16124 | fi | |
16125 | ||
16126 | fi | |
16127 | ||
16128 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
16129 | if test "$am_cv_func_iconv" = yes; then | |
16130 | cat >> confdefs.h <<\EOF | |
16131 | #define HAVE_ICONV 1 | |
16132 | EOF | |
16133 | ||
16134 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 | |
16135 | echo "configure:16136: checking if iconv needs const" >&5 | |
16136 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then | |
16137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16138 | else | |
16139 | cat > conftest.$ac_ext <<EOF | |
16140 | #line 16141 "configure" | |
16141 | #include "confdefs.h" | |
16142 | ||
16143 | #include <stdlib.h> | |
16144 | #include <iconv.h> | |
16145 | extern | |
16146 | #ifdef __cplusplus | |
16147 | "C" | |
16148 | #endif | |
16149 | #if defined(__STDC__) || defined(__cplusplus) | |
16150 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
16151 | #else | |
16152 | size_t iconv(); | |
16153 | #endif | |
16154 | ||
16155 | int main() { | |
16156 | ||
16157 | ; return 0; } | |
16158 | EOF | |
16159 | if { (eval echo configure:16160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16160 | rm -rf conftest* | |
16161 | wx_cv_func_iconv_const="no" | |
16162 | else | |
16163 | echo "configure: failed program was:" >&5 | |
16164 | cat conftest.$ac_ext >&5 | |
16165 | rm -rf conftest* | |
16166 | wx_cv_func_iconv_const="yes" | |
16167 | ||
16168 | fi | |
16169 | rm -f conftest* | |
16170 | ||
16171 | fi | |
16172 | ||
16173 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
16174 | ||
16175 | iconv_const= | |
16176 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
16177 | iconv_const="const" | |
16178 | fi | |
16179 | ||
16180 | cat >> confdefs.h <<EOF | |
16181 | #define ICONV_CONST $iconv_const | |
16182 | EOF | |
16183 | ||
16184 | fi | |
16185 | LIBICONV= | |
16186 | if test "$am_cv_lib_iconv" = yes; then | |
16187 | LIBICONV="-liconv" | |
16188 | fi | |
16189 | ||
16190 | ||
16191 | LIBS="$LIBICONV $LIBS" | |
16192 | ac_ext=c | |
16193 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16194 | ac_cpp='$CPP $CPPFLAGS' | |
16195 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16196 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16197 | cross_compiling=$ac_cv_prog_cc_cross | |
16198 | ||
16199 | ||
16200 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
16201 | for ac_func in sigaction | |
16202 | do | |
16203 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16204 | echo "configure:16205: checking for $ac_func" >&5 | |
16205 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16206 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16207 | else | |
16208 | cat > conftest.$ac_ext <<EOF | |
16209 | #line 16210 "configure" | |
16210 | #include "confdefs.h" | |
16211 | /* System header to define __stub macros and hopefully few prototypes, | |
16212 | which can conflict with char $ac_func(); below. */ | |
16213 | #include <assert.h> | |
16214 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16215 | /* We use char because int might match the return type of a gcc2 | |
16216 | builtin and then its argument prototype would still apply. */ | |
16217 | char $ac_func(); | |
16218 | ||
16219 | int main() { | |
16220 | ||
16221 | /* The GNU C library defines this for functions which it implements | |
16222 | to always fail with ENOSYS. Some functions are actually named | |
16223 | something starting with __ and the normal name is an alias. */ | |
16224 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16225 | choke me | |
16226 | #else | |
16227 | $ac_func(); | |
16228 | #endif | |
16229 | ||
16230 | ; return 0; } | |
16231 | EOF | |
16232 | if { (eval echo configure:16233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16233 | rm -rf conftest* | |
16234 | eval "ac_cv_func_$ac_func=yes" | |
16235 | else | |
16236 | echo "configure: failed program was:" >&5 | |
16237 | cat conftest.$ac_ext >&5 | |
16238 | rm -rf conftest* | |
16239 | eval "ac_cv_func_$ac_func=no" | |
16240 | fi | |
16241 | rm -f conftest* | |
16242 | fi | |
16243 | ||
16244 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16245 | echo "$ac_t""yes" 1>&6 | |
16246 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16247 | cat >> confdefs.h <<EOF | |
16248 | #define $ac_tr_func 1 | |
16249 | EOF | |
16250 | ||
16251 | else | |
16252 | echo "$ac_t""no" 1>&6 | |
16253 | fi | |
16254 | done | |
16255 | ||
16256 | ||
16257 | if test "$ac_cv_func_sigaction" = "no"; then | |
16258 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
16259 | wxUSE_ON_FATAL_EXCEPTION=no | |
16260 | fi | |
16261 | ||
16262 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
16263 | ||
16264 | ac_ext=C | |
16265 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16266 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16267 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16268 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16269 | cross_compiling=$ac_cv_prog_cxx_cross | |
16270 | ||
16271 | ||
16272 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
16273 | echo "configure:16274: checking for sa_handler type" >&5 | |
16274 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then | |
16275 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16276 | else | |
16277 | ||
16278 | cat > conftest.$ac_ext <<EOF | |
16279 | #line 16280 "configure" | |
16280 | #include "confdefs.h" | |
16281 | #include <signal.h> | |
16282 | int main() { | |
16283 | ||
16284 | extern void testSigHandler(int); | |
16285 | ||
16286 | struct sigaction sa; | |
16287 | sa.sa_handler = testSigHandler; | |
16288 | ||
16289 | ; return 0; } | |
16290 | EOF | |
16291 | if { (eval echo configure:16292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16292 | rm -rf conftest* | |
16293 | ||
16294 | wx_cv_type_sa_handler=int | |
16295 | ||
16296 | else | |
16297 | echo "configure: failed program was:" >&5 | |
16298 | cat conftest.$ac_ext >&5 | |
16299 | rm -rf conftest* | |
16300 | ||
16301 | wx_cv_type_sa_handler=void | |
16302 | ||
16303 | fi | |
16304 | rm -f conftest* | |
16305 | ||
16306 | fi | |
16307 | ||
16308 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
16309 | ||
16310 | ac_ext=c | |
16311 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16312 | ac_cpp='$CPP $CPPFLAGS' | |
16313 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16314 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16315 | cross_compiling=$ac_cv_prog_cc_cross | |
16316 | ||
16317 | ||
16318 | cat >> confdefs.h <<EOF | |
16319 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
16320 | EOF | |
16321 | ||
16322 | fi | |
16323 | fi | |
16324 | ||
16325 | for ac_func in vfork | |
16326 | do | |
16327 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16328 | echo "configure:16329: checking for $ac_func" >&5 | |
16329 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16331 | else | |
16332 | cat > conftest.$ac_ext <<EOF | |
16333 | #line 16334 "configure" | |
16334 | #include "confdefs.h" | |
16335 | /* System header to define __stub macros and hopefully few prototypes, | |
16336 | which can conflict with char $ac_func(); below. */ | |
16337 | #include <assert.h> | |
16338 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16339 | /* We use char because int might match the return type of a gcc2 | |
16340 | builtin and then its argument prototype would still apply. */ | |
16341 | char $ac_func(); | |
16342 | ||
16343 | int main() { | |
16344 | ||
16345 | /* The GNU C library defines this for functions which it implements | |
16346 | to always fail with ENOSYS. Some functions are actually named | |
16347 | something starting with __ and the normal name is an alias. */ | |
16348 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16349 | choke me | |
16350 | #else | |
16351 | $ac_func(); | |
16352 | #endif | |
16353 | ||
16354 | ; return 0; } | |
16355 | EOF | |
16356 | if { (eval echo configure:16357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16357 | rm -rf conftest* | |
16358 | eval "ac_cv_func_$ac_func=yes" | |
16359 | else | |
16360 | echo "configure: failed program was:" >&5 | |
16361 | cat conftest.$ac_ext >&5 | |
16362 | rm -rf conftest* | |
16363 | eval "ac_cv_func_$ac_func=no" | |
16364 | fi | |
16365 | rm -f conftest* | |
16366 | fi | |
16367 | ||
16368 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16369 | echo "$ac_t""yes" 1>&6 | |
16370 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16371 | cat >> confdefs.h <<EOF | |
16372 | #define $ac_tr_func 1 | |
16373 | EOF | |
16374 | ||
16375 | else | |
16376 | echo "$ac_t""no" 1>&6 | |
16377 | fi | |
16378 | done | |
16379 | ||
16380 | ||
16381 | for ac_func in mkstemp mktemp | |
16382 | do | |
16383 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16384 | echo "configure:16385: checking for $ac_func" >&5 | |
16385 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16387 | else | |
16388 | cat > conftest.$ac_ext <<EOF | |
16389 | #line 16390 "configure" | |
16390 | #include "confdefs.h" | |
16391 | /* System header to define __stub macros and hopefully few prototypes, | |
16392 | which can conflict with char $ac_func(); below. */ | |
16393 | #include <assert.h> | |
16394 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16395 | /* We use char because int might match the return type of a gcc2 | |
16396 | builtin and then its argument prototype would still apply. */ | |
16397 | char $ac_func(); | |
16398 | ||
16399 | int main() { | |
16400 | ||
16401 | /* The GNU C library defines this for functions which it implements | |
16402 | to always fail with ENOSYS. Some functions are actually named | |
16403 | something starting with __ and the normal name is an alias. */ | |
16404 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16405 | choke me | |
16406 | #else | |
16407 | $ac_func(); | |
16408 | #endif | |
16409 | ||
16410 | ; return 0; } | |
16411 | EOF | |
16412 | if { (eval echo configure:16413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16413 | rm -rf conftest* | |
16414 | eval "ac_cv_func_$ac_func=yes" | |
16415 | else | |
16416 | echo "configure: failed program was:" >&5 | |
16417 | cat conftest.$ac_ext >&5 | |
16418 | rm -rf conftest* | |
16419 | eval "ac_cv_func_$ac_func=no" | |
16420 | fi | |
16421 | rm -f conftest* | |
16422 | fi | |
16423 | ||
16424 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16425 | echo "$ac_t""yes" 1>&6 | |
16426 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16427 | cat >> confdefs.h <<EOF | |
16428 | #define $ac_tr_func 1 | |
16429 | EOF | |
16430 | break | |
16431 | else | |
16432 | echo "$ac_t""no" 1>&6 | |
16433 | fi | |
16434 | done | |
16435 | ||
16436 | ||
16437 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 | |
16438 | echo "configure:16439: checking for statfs" >&5 | |
16439 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then | |
16440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16441 | else | |
16442 | cat > conftest.$ac_ext <<EOF | |
16443 | #line 16444 "configure" | |
16444 | #include "confdefs.h" | |
16445 | ||
16446 | #if defined(__BSD__) | |
16447 | #include <sys/param.h> | |
16448 | #include <sys/mount.h> | |
16449 | #else | |
16450 | #include <sys/vfs.h> | |
16451 | #endif | |
16452 | ||
16453 | int main() { | |
16454 | ||
16455 | long l; | |
16456 | struct statfs fs; | |
16457 | statfs("/", &fs); | |
16458 | l = fs.f_bsize; | |
16459 | l += fs.f_blocks; | |
16460 | l += fs.f_bavail; | |
16461 | ||
16462 | ; return 0; } | |
16463 | EOF | |
16464 | if { (eval echo configure:16465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16465 | rm -rf conftest* | |
16466 | ||
16467 | wx_cv_func_statfs=yes | |
16468 | ||
16469 | else | |
16470 | echo "configure: failed program was:" >&5 | |
16471 | cat conftest.$ac_ext >&5 | |
16472 | rm -rf conftest* | |
16473 | ||
16474 | wx_cv_func_statfs=no | |
16475 | ||
16476 | ||
16477 | fi | |
16478 | rm -f conftest* | |
16479 | ||
16480 | fi | |
16481 | ||
16482 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
16483 | ||
16484 | if test "$wx_cv_func_statfs" = "yes"; then | |
16485 | cat >> confdefs.h <<\EOF | |
16486 | #define HAVE_STATFS 1 | |
16487 | EOF | |
16488 | ||
16489 | else | |
16490 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
16491 | echo "configure:16492: checking for statvfs" >&5 | |
16492 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then | |
16493 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16494 | else | |
16495 | cat > conftest.$ac_ext <<EOF | |
16496 | #line 16497 "configure" | |
16497 | #include "confdefs.h" | |
16498 | ||
16499 | #include <sys/statvfs.h> | |
16500 | ||
16501 | int main() { | |
16502 | ||
16503 | long l; | |
16504 | struct statvfs fs; | |
16505 | statvfs("/", &fs); | |
16506 | l = fs.f_bsize; | |
16507 | l += fs.f_blocks; | |
16508 | l += fs.f_bavail; | |
16509 | ||
16510 | ; return 0; } | |
16511 | EOF | |
16512 | if { (eval echo configure:16513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16513 | rm -rf conftest* | |
16514 | ||
16515 | wx_cv_func_statvfs=yes | |
16516 | ||
16517 | else | |
16518 | echo "configure: failed program was:" >&5 | |
16519 | cat conftest.$ac_ext >&5 | |
16520 | rm -rf conftest* | |
16521 | ||
16522 | wx_cv_func_statvfs=no | |
16523 | ||
16524 | ||
16525 | fi | |
16526 | rm -f conftest* | |
16527 | ||
16528 | fi | |
16529 | ||
16530 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
16531 | ||
16532 | if test "$wx_cv_func_statvfs" = "yes"; then | |
16533 | cat >> confdefs.h <<\EOF | |
16534 | #define HAVE_STATVFS 1 | |
16535 | EOF | |
16536 | ||
16537 | else | |
16538 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
16539 | fi | |
16540 | fi | |
16541 | ||
16542 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
16543 | for ac_func in fcntl flock | |
16544 | do | |
16545 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16546 | echo "configure:16547: checking for $ac_func" >&5 | |
16547 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16548 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16549 | else | |
16550 | cat > conftest.$ac_ext <<EOF | |
16551 | #line 16552 "configure" | |
16552 | #include "confdefs.h" | |
16553 | /* System header to define __stub macros and hopefully few prototypes, | |
16554 | which can conflict with char $ac_func(); below. */ | |
16555 | #include <assert.h> | |
16556 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16557 | /* We use char because int might match the return type of a gcc2 | |
16558 | builtin and then its argument prototype would still apply. */ | |
16559 | char $ac_func(); | |
16560 | ||
16561 | int main() { | |
16562 | ||
16563 | /* The GNU C library defines this for functions which it implements | |
16564 | to always fail with ENOSYS. Some functions are actually named | |
16565 | something starting with __ and the normal name is an alias. */ | |
16566 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16567 | choke me | |
16568 | #else | |
16569 | $ac_func(); | |
16570 | #endif | |
16571 | ||
16572 | ; return 0; } | |
16573 | EOF | |
16574 | if { (eval echo configure:16575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16575 | rm -rf conftest* | |
16576 | eval "ac_cv_func_$ac_func=yes" | |
16577 | else | |
16578 | echo "configure: failed program was:" >&5 | |
16579 | cat conftest.$ac_ext >&5 | |
16580 | rm -rf conftest* | |
16581 | eval "ac_cv_func_$ac_func=no" | |
16582 | fi | |
16583 | rm -f conftest* | |
16584 | fi | |
16585 | ||
16586 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16587 | echo "$ac_t""yes" 1>&6 | |
16588 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16589 | cat >> confdefs.h <<EOF | |
16590 | #define $ac_tr_func 1 | |
16591 | EOF | |
16592 | break | |
16593 | else | |
16594 | echo "$ac_t""no" 1>&6 | |
16595 | fi | |
16596 | done | |
16597 | ||
16598 | ||
16599 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
16600 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
16601 | wxUSE_SNGLINST_CHECKER=no | |
16602 | fi | |
16603 | fi | |
16604 | ||
16605 | for ac_func in timegm | |
16606 | do | |
16607 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16608 | echo "configure:16609: checking for $ac_func" >&5 | |
16609 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16610 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16611 | else | |
16612 | cat > conftest.$ac_ext <<EOF | |
16613 | #line 16614 "configure" | |
16614 | #include "confdefs.h" | |
16615 | /* System header to define __stub macros and hopefully few prototypes, | |
16616 | which can conflict with char $ac_func(); below. */ | |
16617 | #include <assert.h> | |
16618 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16619 | /* We use char because int might match the return type of a gcc2 | |
16620 | builtin and then its argument prototype would still apply. */ | |
16621 | char $ac_func(); | |
16622 | ||
16623 | int main() { | |
16624 | ||
16625 | /* The GNU C library defines this for functions which it implements | |
16626 | to always fail with ENOSYS. Some functions are actually named | |
16627 | something starting with __ and the normal name is an alias. */ | |
16628 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16629 | choke me | |
16630 | #else | |
16631 | $ac_func(); | |
16632 | #endif | |
16633 | ||
16634 | ; return 0; } | |
16635 | EOF | |
16636 | if { (eval echo configure:16637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16637 | rm -rf conftest* | |
16638 | eval "ac_cv_func_$ac_func=yes" | |
16639 | else | |
16640 | echo "configure: failed program was:" >&5 | |
16641 | cat conftest.$ac_ext >&5 | |
16642 | rm -rf conftest* | |
16643 | eval "ac_cv_func_$ac_func=no" | |
16644 | fi | |
16645 | rm -f conftest* | |
16646 | fi | |
16647 | ||
16648 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16649 | echo "$ac_t""yes" 1>&6 | |
16650 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16651 | cat >> confdefs.h <<EOF | |
16652 | #define $ac_tr_func 1 | |
16653 | EOF | |
16654 | ||
16655 | else | |
16656 | echo "$ac_t""no" 1>&6 | |
16657 | fi | |
16658 | done | |
16659 | ||
16660 | ||
16661 | for ac_func in putenv setenv | |
16662 | do | |
16663 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16664 | echo "configure:16665: checking for $ac_func" >&5 | |
16665 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16666 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16667 | else | |
16668 | cat > conftest.$ac_ext <<EOF | |
16669 | #line 16670 "configure" | |
16670 | #include "confdefs.h" | |
16671 | /* System header to define __stub macros and hopefully few prototypes, | |
16672 | which can conflict with char $ac_func(); below. */ | |
16673 | #include <assert.h> | |
16674 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16675 | /* We use char because int might match the return type of a gcc2 | |
16676 | builtin and then its argument prototype would still apply. */ | |
16677 | char $ac_func(); | |
16678 | ||
16679 | int main() { | |
16680 | ||
16681 | /* The GNU C library defines this for functions which it implements | |
16682 | to always fail with ENOSYS. Some functions are actually named | |
16683 | something starting with __ and the normal name is an alias. */ | |
16684 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16685 | choke me | |
16686 | #else | |
16687 | $ac_func(); | |
16688 | #endif | |
16689 | ||
16690 | ; return 0; } | |
16691 | EOF | |
16692 | if { (eval echo configure:16693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16693 | rm -rf conftest* | |
16694 | eval "ac_cv_func_$ac_func=yes" | |
16695 | else | |
16696 | echo "configure: failed program was:" >&5 | |
16697 | cat conftest.$ac_ext >&5 | |
16698 | rm -rf conftest* | |
16699 | eval "ac_cv_func_$ac_func=no" | |
16700 | fi | |
16701 | rm -f conftest* | |
16702 | fi | |
16703 | ||
16704 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16705 | echo "$ac_t""yes" 1>&6 | |
16706 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16707 | cat >> confdefs.h <<EOF | |
16708 | #define $ac_tr_func 1 | |
16709 | EOF | |
16710 | break | |
16711 | else | |
16712 | echo "$ac_t""no" 1>&6 | |
16713 | fi | |
16714 | done | |
16715 | ||
16716 | ||
16717 | HAVE_SOME_SLEEP_FUNC=0 | |
16718 | if test "$USE_BEOS" = 1; then | |
16719 | cat >> confdefs.h <<\EOF | |
16720 | #define HAVE_SLEEP 1 | |
16721 | EOF | |
16722 | ||
16723 | HAVE_SOME_SLEEP_FUNC=1 | |
16724 | fi | |
16725 | ||
16726 | if test "$USE_DARWIN" = 1; then | |
16727 | cat >> confdefs.h <<\EOF | |
16728 | #define HAVE_USLEEP 1 | |
16729 | EOF | |
16730 | ||
16731 | HAVE_SOME_SLEEP_FUNC=1 | |
16732 | fi | |
16733 | ||
16734 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
16735 | POSIX4_LINK= | |
16736 | for ac_func in nanosleep | |
16737 | do | |
16738 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16739 | echo "configure:16740: checking for $ac_func" >&5 | |
16740 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16741 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16742 | else | |
16743 | cat > conftest.$ac_ext <<EOF | |
16744 | #line 16745 "configure" | |
16745 | #include "confdefs.h" | |
16746 | /* System header to define __stub macros and hopefully few prototypes, | |
16747 | which can conflict with char $ac_func(); below. */ | |
16748 | #include <assert.h> | |
16749 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16750 | /* We use char because int might match the return type of a gcc2 | |
16751 | builtin and then its argument prototype would still apply. */ | |
16752 | char $ac_func(); | |
16753 | ||
16754 | int main() { | |
16755 | ||
16756 | /* The GNU C library defines this for functions which it implements | |
16757 | to always fail with ENOSYS. Some functions are actually named | |
16758 | something starting with __ and the normal name is an alias. */ | |
16759 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16760 | choke me | |
16761 | #else | |
16762 | $ac_func(); | |
16763 | #endif | |
16764 | ||
16765 | ; return 0; } | |
16766 | EOF | |
16767 | if { (eval echo configure:16768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16768 | rm -rf conftest* | |
16769 | eval "ac_cv_func_$ac_func=yes" | |
16770 | else | |
16771 | echo "configure: failed program was:" >&5 | |
16772 | cat conftest.$ac_ext >&5 | |
16773 | rm -rf conftest* | |
16774 | eval "ac_cv_func_$ac_func=no" | |
16775 | fi | |
16776 | rm -f conftest* | |
16777 | fi | |
16778 | ||
16779 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16780 | echo "$ac_t""yes" 1>&6 | |
16781 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16782 | cat >> confdefs.h <<EOF | |
16783 | #define $ac_tr_func 1 | |
16784 | EOF | |
16785 | cat >> confdefs.h <<\EOF | |
16786 | #define HAVE_NANOSLEEP 1 | |
16787 | EOF | |
16788 | ||
16789 | else | |
16790 | echo "$ac_t""no" 1>&6 | |
16791 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
16792 | echo "configure:16793: checking for nanosleep in -lposix4" >&5 | |
16793 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` | |
16794 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16795 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16796 | else | |
16797 | ac_save_LIBS="$LIBS" | |
16798 | LIBS="-lposix4 $LIBS" | |
16799 | cat > conftest.$ac_ext <<EOF | |
16800 | #line 16801 "configure" | |
16801 | #include "confdefs.h" | |
16802 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16803 | /* We use char because int might match the return type of a gcc2 | |
16804 | builtin and then its argument prototype would still apply. */ | |
16805 | char nanosleep(); | |
16806 | ||
16807 | int main() { | |
16808 | nanosleep() | |
16809 | ; return 0; } | |
16810 | EOF | |
16811 | if { (eval echo configure:16812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16812 | rm -rf conftest* | |
16813 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16814 | else | |
16815 | echo "configure: failed program was:" >&5 | |
16816 | cat conftest.$ac_ext >&5 | |
16817 | rm -rf conftest* | |
16818 | eval "ac_cv_lib_$ac_lib_var=no" | |
16819 | fi | |
16820 | rm -f conftest* | |
16821 | LIBS="$ac_save_LIBS" | |
16822 | ||
16823 | fi | |
16824 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16825 | echo "$ac_t""yes" 1>&6 | |
16826 | ||
16827 | cat >> confdefs.h <<\EOF | |
16828 | #define HAVE_NANOSLEEP 1 | |
16829 | EOF | |
16830 | ||
16831 | POSIX4_LINK=" -lposix4" | |
16832 | ||
16833 | else | |
16834 | echo "$ac_t""no" 1>&6 | |
16835 | ||
16836 | for ac_func in usleep | |
16837 | do | |
16838 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16839 | echo "configure:16840: checking for $ac_func" >&5 | |
16840 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16841 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16842 | else | |
16843 | cat > conftest.$ac_ext <<EOF | |
16844 | #line 16845 "configure" | |
16845 | #include "confdefs.h" | |
16846 | /* System header to define __stub macros and hopefully few prototypes, | |
16847 | which can conflict with char $ac_func(); below. */ | |
16848 | #include <assert.h> | |
16849 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16850 | /* We use char because int might match the return type of a gcc2 | |
16851 | builtin and then its argument prototype would still apply. */ | |
16852 | char $ac_func(); | |
16853 | ||
16854 | int main() { | |
16855 | ||
16856 | /* The GNU C library defines this for functions which it implements | |
16857 | to always fail with ENOSYS. Some functions are actually named | |
16858 | something starting with __ and the normal name is an alias. */ | |
16859 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16860 | choke me | |
16861 | #else | |
16862 | $ac_func(); | |
16863 | #endif | |
16864 | ||
16865 | ; return 0; } | |
16866 | EOF | |
16867 | if { (eval echo configure:16868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16868 | rm -rf conftest* | |
16869 | eval "ac_cv_func_$ac_func=yes" | |
16870 | else | |
16871 | echo "configure: failed program was:" >&5 | |
16872 | cat conftest.$ac_ext >&5 | |
16873 | rm -rf conftest* | |
16874 | eval "ac_cv_func_$ac_func=no" | |
16875 | fi | |
16876 | rm -f conftest* | |
16877 | fi | |
16878 | ||
16879 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16880 | echo "$ac_t""yes" 1>&6 | |
16881 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16882 | cat >> confdefs.h <<EOF | |
16883 | #define $ac_tr_func 1 | |
16884 | EOF | |
16885 | cat >> confdefs.h <<\EOF | |
16886 | #define HAVE_USLEEP 1 | |
16887 | EOF | |
16888 | ||
16889 | else | |
16890 | echo "$ac_t""no" 1>&6 | |
16891 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
16892 | ||
16893 | fi | |
16894 | done | |
16895 | ||
16896 | ||
16897 | ||
16898 | fi | |
16899 | ||
16900 | ||
16901 | ||
16902 | fi | |
16903 | done | |
16904 | ||
16905 | fi | |
16906 | ||
16907 | for ac_func in uname gethostname | |
16908 | do | |
16909 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16910 | echo "configure:16911: checking for $ac_func" >&5 | |
16911 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16912 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16913 | else | |
16914 | cat > conftest.$ac_ext <<EOF | |
16915 | #line 16916 "configure" | |
16916 | #include "confdefs.h" | |
16917 | /* System header to define __stub macros and hopefully few prototypes, | |
16918 | which can conflict with char $ac_func(); below. */ | |
16919 | #include <assert.h> | |
16920 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16921 | /* We use char because int might match the return type of a gcc2 | |
16922 | builtin and then its argument prototype would still apply. */ | |
16923 | char $ac_func(); | |
16924 | ||
16925 | int main() { | |
16926 | ||
16927 | /* The GNU C library defines this for functions which it implements | |
16928 | to always fail with ENOSYS. Some functions are actually named | |
16929 | something starting with __ and the normal name is an alias. */ | |
16930 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16931 | choke me | |
16932 | #else | |
16933 | $ac_func(); | |
16934 | #endif | |
16935 | ||
16936 | ; return 0; } | |
16937 | EOF | |
16938 | if { (eval echo configure:16939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16939 | rm -rf conftest* | |
16940 | eval "ac_cv_func_$ac_func=yes" | |
16941 | else | |
16942 | echo "configure: failed program was:" >&5 | |
16943 | cat conftest.$ac_ext >&5 | |
16944 | rm -rf conftest* | |
16945 | eval "ac_cv_func_$ac_func=no" | |
16946 | fi | |
16947 | rm -f conftest* | |
16948 | fi | |
16949 | ||
16950 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16951 | echo "$ac_t""yes" 1>&6 | |
16952 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16953 | cat >> confdefs.h <<EOF | |
16954 | #define $ac_tr_func 1 | |
16955 | EOF | |
16956 | break | |
16957 | else | |
16958 | echo "$ac_t""no" 1>&6 | |
16959 | fi | |
16960 | done | |
16961 | ||
16962 | ||
16963 | ||
16964 | ac_ext=C | |
16965 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16966 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16967 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16968 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16969 | cross_compiling=$ac_cv_prog_cxx_cross | |
16970 | ||
16971 | ||
16972 | for ac_func in strtok_r | |
16973 | do | |
16974 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16975 | echo "configure:16976: checking for $ac_func" >&5 | |
16976 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16977 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16978 | else | |
16979 | cat > conftest.$ac_ext <<EOF | |
16980 | #line 16981 "configure" | |
16981 | #include "confdefs.h" | |
16982 | /* System header to define __stub macros and hopefully few prototypes, | |
16983 | which can conflict with char $ac_func(); below. */ | |
16984 | #include <assert.h> | |
16985 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16986 | #ifdef __cplusplus | |
16987 | extern "C" | |
16988 | #endif | |
16989 | /* We use char because int might match the return type of a gcc2 | |
16990 | builtin and then its argument prototype would still apply. */ | |
16991 | char $ac_func(); | |
16992 | ||
16993 | int main() { | |
16994 | ||
16995 | /* The GNU C library defines this for functions which it implements | |
16996 | to always fail with ENOSYS. Some functions are actually named | |
16997 | something starting with __ and the normal name is an alias. */ | |
16998 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16999 | choke me | |
17000 | #else | |
17001 | $ac_func(); | |
17002 | #endif | |
17003 | ||
17004 | ; return 0; } | |
17005 | EOF | |
17006 | if { (eval echo configure:17007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17007 | rm -rf conftest* | |
17008 | eval "ac_cv_func_$ac_func=yes" | |
17009 | else | |
17010 | echo "configure: failed program was:" >&5 | |
17011 | cat conftest.$ac_ext >&5 | |
17012 | rm -rf conftest* | |
17013 | eval "ac_cv_func_$ac_func=no" | |
17014 | fi | |
17015 | rm -f conftest* | |
17016 | fi | |
17017 | ||
17018 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17019 | echo "$ac_t""yes" 1>&6 | |
17020 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17021 | cat >> confdefs.h <<EOF | |
17022 | #define $ac_tr_func 1 | |
17023 | EOF | |
17024 | ||
17025 | else | |
17026 | echo "$ac_t""no" 1>&6 | |
17027 | fi | |
17028 | done | |
17029 | ||
17030 | ||
17031 | ac_ext=c | |
17032 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17033 | ac_cpp='$CPP $CPPFLAGS' | |
17034 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17035 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17036 | cross_compiling=$ac_cv_prog_cc_cross | |
17037 | ||
17038 | ||
17039 | INET_LINK= | |
17040 | for ac_func in inet_addr | |
17041 | do | |
17042 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17043 | echo "configure:17044: checking for $ac_func" >&5 | |
17044 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17046 | else | |
17047 | cat > conftest.$ac_ext <<EOF | |
17048 | #line 17049 "configure" | |
17049 | #include "confdefs.h" | |
17050 | /* System header to define __stub macros and hopefully few prototypes, | |
17051 | which can conflict with char $ac_func(); below. */ | |
17052 | #include <assert.h> | |
17053 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17054 | /* We use char because int might match the return type of a gcc2 | |
17055 | builtin and then its argument prototype would still apply. */ | |
17056 | char $ac_func(); | |
17057 | ||
17058 | int main() { | |
17059 | ||
17060 | /* The GNU C library defines this for functions which it implements | |
17061 | to always fail with ENOSYS. Some functions are actually named | |
17062 | something starting with __ and the normal name is an alias. */ | |
17063 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17064 | choke me | |
17065 | #else | |
17066 | $ac_func(); | |
17067 | #endif | |
17068 | ||
17069 | ; return 0; } | |
17070 | EOF | |
17071 | if { (eval echo configure:17072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17072 | rm -rf conftest* | |
17073 | eval "ac_cv_func_$ac_func=yes" | |
17074 | else | |
17075 | echo "configure: failed program was:" >&5 | |
17076 | cat conftest.$ac_ext >&5 | |
17077 | rm -rf conftest* | |
17078 | eval "ac_cv_func_$ac_func=no" | |
17079 | fi | |
17080 | rm -f conftest* | |
17081 | fi | |
17082 | ||
17083 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17084 | echo "$ac_t""yes" 1>&6 | |
17085 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17086 | cat >> confdefs.h <<EOF | |
17087 | #define $ac_tr_func 1 | |
17088 | EOF | |
17089 | cat >> confdefs.h <<\EOF | |
17090 | #define HAVE_INET_ADDR 1 | |
17091 | EOF | |
17092 | ||
17093 | else | |
17094 | echo "$ac_t""no" 1>&6 | |
17095 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
17096 | echo "configure:17097: checking for inet_addr in -lnsl" >&5 | |
17097 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` | |
17098 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17100 | else | |
17101 | ac_save_LIBS="$LIBS" | |
17102 | LIBS="-lnsl $LIBS" | |
17103 | cat > conftest.$ac_ext <<EOF | |
17104 | #line 17105 "configure" | |
17105 | #include "confdefs.h" | |
17106 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17107 | /* We use char because int might match the return type of a gcc2 | |
17108 | builtin and then its argument prototype would still apply. */ | |
17109 | char inet_addr(); | |
17110 | ||
17111 | int main() { | |
17112 | inet_addr() | |
17113 | ; return 0; } | |
17114 | EOF | |
17115 | if { (eval echo configure:17116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17116 | rm -rf conftest* | |
17117 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17118 | else | |
17119 | echo "configure: failed program was:" >&5 | |
17120 | cat conftest.$ac_ext >&5 | |
17121 | rm -rf conftest* | |
17122 | eval "ac_cv_lib_$ac_lib_var=no" | |
17123 | fi | |
17124 | rm -f conftest* | |
17125 | LIBS="$ac_save_LIBS" | |
17126 | ||
17127 | fi | |
17128 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17129 | echo "$ac_t""yes" 1>&6 | |
17130 | INET_LINK="nsl" | |
17131 | else | |
17132 | echo "$ac_t""no" 1>&6 | |
17133 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
17134 | echo "configure:17135: checking for inet_addr in -lresolv" >&5 | |
17135 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` | |
17136 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17138 | else | |
17139 | ac_save_LIBS="$LIBS" | |
17140 | LIBS="-lresolv $LIBS" | |
17141 | cat > conftest.$ac_ext <<EOF | |
17142 | #line 17143 "configure" | |
17143 | #include "confdefs.h" | |
17144 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17145 | /* We use char because int might match the return type of a gcc2 | |
17146 | builtin and then its argument prototype would still apply. */ | |
17147 | char inet_addr(); | |
17148 | ||
17149 | int main() { | |
17150 | inet_addr() | |
17151 | ; return 0; } | |
17152 | EOF | |
17153 | if { (eval echo configure:17154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17154 | rm -rf conftest* | |
17155 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17156 | else | |
17157 | echo "configure: failed program was:" >&5 | |
17158 | cat conftest.$ac_ext >&5 | |
17159 | rm -rf conftest* | |
17160 | eval "ac_cv_lib_$ac_lib_var=no" | |
17161 | fi | |
17162 | rm -f conftest* | |
17163 | LIBS="$ac_save_LIBS" | |
17164 | ||
17165 | fi | |
17166 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17167 | echo "$ac_t""yes" 1>&6 | |
17168 | INET_LINK="resolv" | |
17169 | else | |
17170 | echo "$ac_t""no" 1>&6 | |
17171 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
17172 | echo "configure:17173: checking for inet_addr in -lsocket" >&5 | |
17173 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` | |
17174 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17175 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17176 | else | |
17177 | ac_save_LIBS="$LIBS" | |
17178 | LIBS="-lsocket $LIBS" | |
17179 | cat > conftest.$ac_ext <<EOF | |
17180 | #line 17181 "configure" | |
17181 | #include "confdefs.h" | |
17182 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17183 | /* We use char because int might match the return type of a gcc2 | |
17184 | builtin and then its argument prototype would still apply. */ | |
17185 | char inet_addr(); | |
17186 | ||
17187 | int main() { | |
17188 | inet_addr() | |
17189 | ; return 0; } | |
17190 | EOF | |
17191 | if { (eval echo configure:17192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17192 | rm -rf conftest* | |
17193 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17194 | else | |
17195 | echo "configure: failed program was:" >&5 | |
17196 | cat conftest.$ac_ext >&5 | |
17197 | rm -rf conftest* | |
17198 | eval "ac_cv_lib_$ac_lib_var=no" | |
17199 | fi | |
17200 | rm -f conftest* | |
17201 | LIBS="$ac_save_LIBS" | |
17202 | ||
17203 | fi | |
17204 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17205 | echo "$ac_t""yes" 1>&6 | |
17206 | INET_LINK="socket" | |
17207 | ||
17208 | else | |
17209 | echo "$ac_t""no" 1>&6 | |
17210 | fi | |
17211 | ||
17212 | ||
17213 | fi | |
17214 | ||
17215 | ||
17216 | fi | |
17217 | ||
17218 | ||
17219 | ||
17220 | fi | |
17221 | done | |
17222 | ||
17223 | ||
17224 | for ac_func in inet_aton | |
17225 | do | |
17226 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17227 | echo "configure:17228: checking for $ac_func" >&5 | |
17228 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17229 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17230 | else | |
17231 | cat > conftest.$ac_ext <<EOF | |
17232 | #line 17233 "configure" | |
17233 | #include "confdefs.h" | |
17234 | /* System header to define __stub macros and hopefully few prototypes, | |
17235 | which can conflict with char $ac_func(); below. */ | |
17236 | #include <assert.h> | |
17237 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17238 | /* We use char because int might match the return type of a gcc2 | |
17239 | builtin and then its argument prototype would still apply. */ | |
17240 | char $ac_func(); | |
17241 | ||
17242 | int main() { | |
17243 | ||
17244 | /* The GNU C library defines this for functions which it implements | |
17245 | to always fail with ENOSYS. Some functions are actually named | |
17246 | something starting with __ and the normal name is an alias. */ | |
17247 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17248 | choke me | |
17249 | #else | |
17250 | $ac_func(); | |
17251 | #endif | |
17252 | ||
17253 | ; return 0; } | |
17254 | EOF | |
17255 | if { (eval echo configure:17256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17256 | rm -rf conftest* | |
17257 | eval "ac_cv_func_$ac_func=yes" | |
17258 | else | |
17259 | echo "configure: failed program was:" >&5 | |
17260 | cat conftest.$ac_ext >&5 | |
17261 | rm -rf conftest* | |
17262 | eval "ac_cv_func_$ac_func=no" | |
17263 | fi | |
17264 | rm -f conftest* | |
17265 | fi | |
17266 | ||
17267 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17268 | echo "$ac_t""yes" 1>&6 | |
17269 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17270 | cat >> confdefs.h <<EOF | |
17271 | #define $ac_tr_func 1 | |
17272 | EOF | |
17273 | cat >> confdefs.h <<\EOF | |
17274 | #define HAVE_INET_ATON 1 | |
17275 | EOF | |
17276 | ||
17277 | else | |
17278 | echo "$ac_t""no" 1>&6 | |
17279 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
17280 | echo "configure:17281: checking for inet_aton in -l$INET_LINK" >&5 | |
17281 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` | |
17282 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17283 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17284 | else | |
17285 | ac_save_LIBS="$LIBS" | |
17286 | LIBS="-l$INET_LINK $LIBS" | |
17287 | cat > conftest.$ac_ext <<EOF | |
17288 | #line 17289 "configure" | |
17289 | #include "confdefs.h" | |
17290 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17291 | /* We use char because int might match the return type of a gcc2 | |
17292 | builtin and then its argument prototype would still apply. */ | |
17293 | char inet_aton(); | |
17294 | ||
17295 | int main() { | |
17296 | inet_aton() | |
17297 | ; return 0; } | |
17298 | EOF | |
17299 | if { (eval echo configure:17300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17300 | rm -rf conftest* | |
17301 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17302 | else | |
17303 | echo "configure: failed program was:" >&5 | |
17304 | cat conftest.$ac_ext >&5 | |
17305 | rm -rf conftest* | |
17306 | eval "ac_cv_lib_$ac_lib_var=no" | |
17307 | fi | |
17308 | rm -f conftest* | |
17309 | LIBS="$ac_save_LIBS" | |
17310 | ||
17311 | fi | |
17312 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17313 | echo "$ac_t""yes" 1>&6 | |
17314 | cat >> confdefs.h <<\EOF | |
17315 | #define HAVE_INET_ATON 1 | |
17316 | EOF | |
17317 | ||
17318 | else | |
17319 | echo "$ac_t""no" 1>&6 | |
17320 | fi | |
17321 | ||
17322 | ||
17323 | fi | |
17324 | done | |
17325 | ||
17326 | ||
17327 | if test "x$INET_LINK" != "x"; then | |
17328 | cat >> confdefs.h <<\EOF | |
17329 | #define HAVE_INET_ADDR 1 | |
17330 | EOF | |
17331 | ||
17332 | INET_LINK=" -l$INET_LINK" | |
17333 | fi | |
17334 | ||
17335 | fi | |
17336 | ||
17337 | ||
17338 | cat > confcache <<\EOF | |
17339 | # This file is a shell script that caches the results of configure | |
17340 | # tests run on this system so they can be shared between configure | |
17341 | # scripts and configure runs. It is not useful on other systems. | |
17342 | # If it contains results you don't want to keep, you may remove or edit it. | |
17343 | # | |
17344 | # By default, configure uses ./config.cache as the cache file, | |
17345 | # creating it if it does not exist already. You can give configure | |
17346 | # the --cache-file=FILE option to use a different cache file; that is | |
17347 | # what configure does when it calls configure scripts in | |
17348 | # subdirectories, so they share the cache. | |
17349 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17350 | # config.status only pays attention to the cache file if you give it the | |
17351 | # --recheck option to rerun configure. | |
17352 | # | |
17353 | EOF | |
17354 | # The following way of writing the cache mishandles newlines in values, | |
17355 | # but we know of no workaround that is simple, portable, and efficient. | |
17356 | # So, don't put newlines in cache variables' values. | |
17357 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17358 | # and sets the high bit in the cache file unless we assign to the vars. | |
17359 | (set) 2>&1 | | |
17360 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17361 | *ac_space=\ *) | |
17362 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17363 | # turns \\\\ into \\, and sed turns \\ into \). | |
17364 | sed -n \ | |
17365 | -e "s/'/'\\\\''/g" \ | |
17366 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17367 | ;; | |
17368 | *) | |
17369 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17370 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17371 | ;; | |
17372 | esac >> confcache | |
17373 | if cmp -s $cache_file confcache; then | |
17374 | : | |
17375 | else | |
17376 | if test -w $cache_file; then | |
17377 | echo "updating cache $cache_file" | |
17378 | cat confcache > $cache_file | |
17379 | else | |
17380 | echo "not updating unwritable cache $cache_file" | |
17381 | fi | |
17382 | fi | |
17383 | rm -f confcache | |
17384 | ||
17385 | ||
17386 | ||
17387 | CPP_MT_FLAG= | |
17388 | if test "$TOOLKIT" != "MSW"; then | |
17389 | ||
17390 | ||
17391 | THREADS_LINK= | |
17392 | THREADS_CFLAGS= | |
17393 | ||
17394 | if test "$wxUSE_THREADS" = "yes" ; then | |
17395 | if test "$wxUSE_WINE" = 1 ; then | |
17396 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 | |
17397 | wxUSE_THREADS="no" | |
17398 | elif test "$USE_BEOS" = 1; then | |
17399 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 | |
17400 | wxUSE_THREADS="no" | |
17401 | fi | |
17402 | fi | |
17403 | ||
17404 | if test "$wxUSE_THREADS" = "yes" ; then | |
17405 | ||
17406 | ||
17407 | THREAD_OPTS="-pthread" | |
17408 | case "${host}" in | |
17409 | *-*-solaris2* | *-*-sunos4* ) | |
17410 | if test "x$GCC" = "xyes"; then | |
17411 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
17412 | else | |
17413 | THREAD_OPTS="-mt $THREAD_OPTS" | |
17414 | fi | |
17415 | ;; | |
17416 | *-*-freebsd*) | |
17417 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
17418 | ;; | |
17419 | *-*-darwin*) | |
17420 | THREAD_OPTS="" | |
17421 | ;; | |
17422 | *-*-aix*) | |
17423 | THREAD_OPTS="pthreads" | |
17424 | ;; | |
17425 | esac | |
17426 | ||
17427 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
17428 | ||
17429 | THREADS_OK=no | |
17430 | for flag in $THREAD_OPTS; do | |
17431 | case $flag in | |
17432 | none) | |
17433 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 | |
17434 | echo "configure:17435: checking whether pthreads work without any flags" >&5 | |
17435 | ;; | |
17436 | ||
17437 | -*) | |
17438 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 | |
17439 | echo "configure:17440: checking whether pthreads work with $flag" >&5 | |
17440 | THREADS_CFLAGS="$flag" | |
17441 | ;; | |
17442 | ||
17443 | *) | |
17444 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 | |
17445 | echo "configure:17446: checking for the pthreads library -l$flag" >&5 | |
17446 | THREADS_LINK="-l$flag" | |
17447 | ;; | |
17448 | esac | |
17449 | ||
17450 | save_LIBS="$LIBS" | |
17451 | save_CFLAGS="$CFLAGS" | |
17452 | LIBS="$THREADS_LINK $LIBS" | |
17453 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
17454 | ||
17455 | cat > conftest.$ac_ext <<EOF | |
17456 | #line 17457 "configure" | |
17457 | #include "confdefs.h" | |
17458 | #include <pthread.h> | |
17459 | int main() { | |
17460 | pthread_create(0,0,0,0); | |
17461 | ; return 0; } | |
17462 | EOF | |
17463 | if { (eval echo configure:17464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17464 | rm -rf conftest* | |
17465 | THREADS_OK=yes | |
17466 | else | |
17467 | echo "configure: failed program was:" >&5 | |
17468 | cat conftest.$ac_ext >&5 | |
17469 | fi | |
17470 | rm -f conftest* | |
17471 | ||
17472 | LIBS="$save_LIBS" | |
17473 | CFLAGS="$save_CFLAGS" | |
17474 | ||
17475 | echo "$ac_t""$THREADS_OK" 1>&6 | |
17476 | if test "x$THREADS_OK" = "xyes"; then | |
17477 | break; | |
17478 | fi | |
17479 | ||
17480 | THREADS_LINK="" | |
17481 | THREADS_CFLAGS="" | |
17482 | done | |
17483 | ||
17484 | if test "x$THREADS_OK" != "xyes"; then | |
17485 | wxUSE_THREADS=no | |
17486 | echo "configure: warning: No thread support on this system... disabled" 1>&2 | |
17487 | else | |
17488 | LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS" | |
17489 | ||
17490 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 | |
17491 | echo "configure:17492: checking if more special flags are required for pthreads" >&5 | |
17492 | flag=no | |
17493 | case "${host}" in | |
17494 | *-aix* | *-freebsd*) | |
17495 | flag="-D_THREAD_SAFE" | |
17496 | ;; | |
17497 | *solaris* | alpha*-osf*) | |
17498 | flag="-D_REENTRANT" | |
17499 | ;; | |
17500 | esac | |
17501 | echo "$ac_t""${flag}" 1>&6 | |
17502 | if test "x$flag" != xno; then | |
17503 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
17504 | fi | |
17505 | ||
17506 | if test "x$THREADS_CFLAGS" != "x"; then | |
17507 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
17508 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
17509 | fi | |
17510 | fi | |
17511 | fi | |
17512 | ||
17513 | if test "$wxUSE_THREADS" = "yes" ; then | |
17514 | for ac_func in thr_setconcurrency | |
17515 | do | |
17516 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17517 | echo "configure:17518: checking for $ac_func" >&5 | |
17518 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17519 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17520 | else | |
17521 | cat > conftest.$ac_ext <<EOF | |
17522 | #line 17523 "configure" | |
17523 | #include "confdefs.h" | |
17524 | /* System header to define __stub macros and hopefully few prototypes, | |
17525 | which can conflict with char $ac_func(); below. */ | |
17526 | #include <assert.h> | |
17527 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17528 | /* We use char because int might match the return type of a gcc2 | |
17529 | builtin and then its argument prototype would still apply. */ | |
17530 | char $ac_func(); | |
17531 | ||
17532 | int main() { | |
17533 | ||
17534 | /* The GNU C library defines this for functions which it implements | |
17535 | to always fail with ENOSYS. Some functions are actually named | |
17536 | something starting with __ and the normal name is an alias. */ | |
17537 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17538 | choke me | |
17539 | #else | |
17540 | $ac_func(); | |
17541 | #endif | |
17542 | ||
17543 | ; return 0; } | |
17544 | EOF | |
17545 | if { (eval echo configure:17546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17546 | rm -rf conftest* | |
17547 | eval "ac_cv_func_$ac_func=yes" | |
17548 | else | |
17549 | echo "configure: failed program was:" >&5 | |
17550 | cat conftest.$ac_ext >&5 | |
17551 | rm -rf conftest* | |
17552 | eval "ac_cv_func_$ac_func=no" | |
17553 | fi | |
17554 | rm -f conftest* | |
17555 | fi | |
17556 | ||
17557 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17558 | echo "$ac_t""yes" 1>&6 | |
17559 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17560 | cat >> confdefs.h <<EOF | |
17561 | #define $ac_tr_func 1 | |
17562 | EOF | |
17563 | ||
17564 | else | |
17565 | echo "$ac_t""no" 1>&6 | |
17566 | fi | |
17567 | done | |
17568 | ||
17569 | ||
17570 | for ac_hdr in sched.h | |
17571 | do | |
17572 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17573 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17574 | echo "configure:17575: checking for $ac_hdr" >&5 | |
17575 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
17576 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17577 | else | |
17578 | cat > conftest.$ac_ext <<EOF | |
17579 | #line 17580 "configure" | |
17580 | #include "confdefs.h" | |
17581 | #include <$ac_hdr> | |
17582 | EOF | |
17583 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17584 | { (eval echo configure:17585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
17585 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
17586 | if test -z "$ac_err"; then | |
17587 | rm -rf conftest* | |
17588 | eval "ac_cv_header_$ac_safe=yes" | |
17589 | else | |
17590 | echo "$ac_err" >&5 | |
17591 | echo "configure: failed program was:" >&5 | |
17592 | cat conftest.$ac_ext >&5 | |
17593 | rm -rf conftest* | |
17594 | eval "ac_cv_header_$ac_safe=no" | |
17595 | fi | |
17596 | rm -f conftest* | |
17597 | fi | |
17598 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17599 | echo "$ac_t""yes" 1>&6 | |
17600 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17601 | cat >> confdefs.h <<EOF | |
17602 | #define $ac_tr_hdr 1 | |
17603 | EOF | |
17604 | ||
17605 | else | |
17606 | echo "$ac_t""no" 1>&6 | |
17607 | fi | |
17608 | done | |
17609 | ||
17610 | if test "$ac_cv_header_sched_h" = "yes"; then | |
17611 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 | |
17612 | echo "configure:17613: checking for sched_yield" >&5 | |
17613 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then | |
17614 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17615 | else | |
17616 | cat > conftest.$ac_ext <<EOF | |
17617 | #line 17618 "configure" | |
17618 | #include "confdefs.h" | |
17619 | /* System header to define __stub macros and hopefully few prototypes, | |
17620 | which can conflict with char sched_yield(); below. */ | |
17621 | #include <assert.h> | |
17622 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17623 | /* We use char because int might match the return type of a gcc2 | |
17624 | builtin and then its argument prototype would still apply. */ | |
17625 | char sched_yield(); | |
17626 | ||
17627 | int main() { | |
17628 | ||
17629 | /* The GNU C library defines this for functions which it implements | |
17630 | to always fail with ENOSYS. Some functions are actually named | |
17631 | something starting with __ and the normal name is an alias. */ | |
17632 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
17633 | choke me | |
17634 | #else | |
17635 | sched_yield(); | |
17636 | #endif | |
17637 | ||
17638 | ; return 0; } | |
17639 | EOF | |
17640 | if { (eval echo configure:17641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17641 | rm -rf conftest* | |
17642 | eval "ac_cv_func_sched_yield=yes" | |
17643 | else | |
17644 | echo "configure: failed program was:" >&5 | |
17645 | cat conftest.$ac_ext >&5 | |
17646 | rm -rf conftest* | |
17647 | eval "ac_cv_func_sched_yield=no" | |
17648 | fi | |
17649 | rm -f conftest* | |
17650 | fi | |
17651 | ||
17652 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
17653 | echo "$ac_t""yes" 1>&6 | |
17654 | cat >> confdefs.h <<\EOF | |
17655 | #define HAVE_SCHED_YIELD 1 | |
17656 | EOF | |
17657 | ||
17658 | else | |
17659 | echo "$ac_t""no" 1>&6 | |
17660 | ||
17661 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
17662 | echo "configure:17663: checking for sched_yield in -lposix4" >&5 | |
17663 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` | |
17664 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17666 | else | |
17667 | ac_save_LIBS="$LIBS" | |
17668 | LIBS="-lposix4 $LIBS" | |
17669 | cat > conftest.$ac_ext <<EOF | |
17670 | #line 17671 "configure" | |
17671 | #include "confdefs.h" | |
17672 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17673 | /* We use char because int might match the return type of a gcc2 | |
17674 | builtin and then its argument prototype would still apply. */ | |
17675 | char sched_yield(); | |
17676 | ||
17677 | int main() { | |
17678 | sched_yield() | |
17679 | ; return 0; } | |
17680 | EOF | |
17681 | if { (eval echo configure:17682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17682 | rm -rf conftest* | |
17683 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17684 | else | |
17685 | echo "configure: failed program was:" >&5 | |
17686 | cat conftest.$ac_ext >&5 | |
17687 | rm -rf conftest* | |
17688 | eval "ac_cv_lib_$ac_lib_var=no" | |
17689 | fi | |
17690 | rm -f conftest* | |
17691 | LIBS="$ac_save_LIBS" | |
17692 | ||
17693 | fi | |
17694 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17695 | echo "$ac_t""yes" 1>&6 | |
17696 | cat >> confdefs.h <<\EOF | |
17697 | #define HAVE_SCHED_YIELD 1 | |
17698 | EOF | |
17699 | POSIX4_LINK=" -lposix4" | |
17700 | else | |
17701 | echo "$ac_t""no" 1>&6 | |
17702 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
17703 | ||
17704 | fi | |
17705 | ||
17706 | ||
17707 | ||
17708 | fi | |
17709 | ||
17710 | fi | |
17711 | ||
17712 | HAVE_PRIOR_FUNCS=0 | |
17713 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 | |
17714 | echo "configure:17715: checking for pthread_attr_getschedpolicy" >&5 | |
17715 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then | |
17716 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17717 | else | |
17718 | cat > conftest.$ac_ext <<EOF | |
17719 | #line 17720 "configure" | |
17720 | #include "confdefs.h" | |
17721 | /* System header to define __stub macros and hopefully few prototypes, | |
17722 | which can conflict with char pthread_attr_getschedpolicy(); below. */ | |
17723 | #include <assert.h> | |
17724 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17725 | /* We use char because int might match the return type of a gcc2 | |
17726 | builtin and then its argument prototype would still apply. */ | |
17727 | char pthread_attr_getschedpolicy(); | |
17728 | ||
17729 | int main() { | |
17730 | ||
17731 | /* The GNU C library defines this for functions which it implements | |
17732 | to always fail with ENOSYS. Some functions are actually named | |
17733 | something starting with __ and the normal name is an alias. */ | |
17734 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
17735 | choke me | |
17736 | #else | |
17737 | pthread_attr_getschedpolicy(); | |
17738 | #endif | |
17739 | ||
17740 | ; return 0; } | |
17741 | EOF | |
17742 | if { (eval echo configure:17743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17743 | rm -rf conftest* | |
17744 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
17745 | else | |
17746 | echo "configure: failed program was:" >&5 | |
17747 | cat conftest.$ac_ext >&5 | |
17748 | rm -rf conftest* | |
17749 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
17750 | fi | |
17751 | rm -f conftest* | |
17752 | fi | |
17753 | ||
17754 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
17755 | echo "$ac_t""yes" 1>&6 | |
17756 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
17757 | echo "configure:17758: checking for pthread_attr_setschedparam" >&5 | |
17758 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then | |
17759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17760 | else | |
17761 | cat > conftest.$ac_ext <<EOF | |
17762 | #line 17763 "configure" | |
17763 | #include "confdefs.h" | |
17764 | /* System header to define __stub macros and hopefully few prototypes, | |
17765 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
17766 | #include <assert.h> | |
17767 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17768 | /* We use char because int might match the return type of a gcc2 | |
17769 | builtin and then its argument prototype would still apply. */ | |
17770 | char pthread_attr_setschedparam(); | |
17771 | ||
17772 | int main() { | |
17773 | ||
17774 | /* The GNU C library defines this for functions which it implements | |
17775 | to always fail with ENOSYS. Some functions are actually named | |
17776 | something starting with __ and the normal name is an alias. */ | |
17777 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
17778 | choke me | |
17779 | #else | |
17780 | pthread_attr_setschedparam(); | |
17781 | #endif | |
17782 | ||
17783 | ; return 0; } | |
17784 | EOF | |
17785 | if { (eval echo configure:17786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17786 | rm -rf conftest* | |
17787 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
17788 | else | |
17789 | echo "configure: failed program was:" >&5 | |
17790 | cat conftest.$ac_ext >&5 | |
17791 | rm -rf conftest* | |
17792 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
17793 | fi | |
17794 | rm -f conftest* | |
17795 | fi | |
17796 | ||
17797 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
17798 | echo "$ac_t""yes" 1>&6 | |
17799 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
17800 | echo "configure:17801: checking for sched_get_priority_max" >&5 | |
17801 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then | |
17802 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17803 | else | |
17804 | cat > conftest.$ac_ext <<EOF | |
17805 | #line 17806 "configure" | |
17806 | #include "confdefs.h" | |
17807 | /* System header to define __stub macros and hopefully few prototypes | |
17808 | else | |
17809 | echo "$ac_t""no" 1>&6 | |
17810 | which can conflict with char sched_get_priority_max(); below. */ | |
17811 | #include <assert.h> | |
17812 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17813 | /* We use char because int might match the return type of a gcc2 | |
17814 | builtin and then its argument prototype would still apply. */ | |
17815 | char sched_get_priority_max(); | |
17816 | ||
17817 | int main() { | |
17818 | ||
17819 | /* The GNU C library defines this for functions which it implements | |
17820 | to always fail with ENOSYS. Some functions are actually named | |
17821 | something starting with __ and the normal name is an alias. */ | |
17822 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
17823 | choke me | |
17824 | #else | |
17825 | sched_get_priority_max(); | |
17826 | #endif | |
17827 | ||
17828 | ; return 0; } | |
17829 | EOF | |
17830 | if { (eval echo configure:17831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17831 | rm -rf conftest* | |
17832 | eval "ac_cv_func_sched_get_priority_max=yes" | |
17833 | else | |
17834 | echo "configure: failed program was:" >&5 | |
17835 | cat conftest.$ac_ext >&5 | |
17836 | rm -rf conftest* | |
17837 | eval "ac_cv_func_sched_get_priority_max=no" | |
17838 | fi | |
17839 | rm -f conftest* | |
17840 | fi | |
17841 | ||
17842 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
17843 | echo "$ac_t""yes" 1>&6 | |
17844 | HAVE_PRIOR_FUNCS=1 | |
17845 | else | |
17846 | echo "$ac_t""no" 1>&6 | |
17847 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
17848 | echo "configure:17849: checking for sched_get_priority_max in -lposix4" >&5 | |
17849 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` | |
17850 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17852 | else | |
17853 | ac_save_LIBS="$LIBS" | |
17854 | LIBS="-lposix4 $LIBS" | |
17855 | cat > conftest.$ac_ext <<EOF | |
17856 | #line 17857 "configure" | |
17857 | #include "confdefs.h" | |
17858 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17859 | /* We use char because int might match the return type of a gcc2 | |
17860 | builtin and then its argument prototype would still apply. */ | |
17861 | char sched_get_priority_max(); | |
17862 | ||
17863 | int main() { | |
17864 | sched_get_priority_max() | |
17865 | ; return 0; } | |
17866 | EOF | |
17867 | if { (eval echo configure:17868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17868 | rm -rf conftest* | |
17869 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17870 | else | |
17871 | echo "configure: failed program was:" >&5 | |
17872 | cat conftest.$ac_ext >&5 | |
17873 | rm -rf conftest* | |
17874 | eval "ac_cv_lib_$ac_lib_var=no" | |
17875 | fi | |
17876 | rm -f conftest* | |
17877 | LIBS="$ac_save_LIBS" | |
17878 | ||
17879 | fi | |
17880 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17881 | echo "$ac_t""yes" 1>&6 | |
17882 | ||
17883 | HAVE_PRIOR_FUNCS=1 | |
17884 | POSIX4_LINK=" -lposix4" | |
17885 | ||
17886 | else | |
17887 | echo "$ac_t""no" 1>&6 | |
17888 | fi | |
17889 | ||
17890 | ||
17891 | fi | |
17892 | ||
17893 | ||
17894 | else | |
17895 | echo "$ac_t""no" 1>&6 | |
17896 | fi | |
17897 | ||
17898 | ||
17899 | fi | |
17900 | ||
17901 | ||
17902 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
17903 | cat >> confdefs.h <<\EOF | |
17904 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
17905 | EOF | |
17906 | ||
17907 | else | |
17908 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
17909 | fi | |
17910 | ||
17911 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 | |
17912 | echo "configure:17913: checking for pthread_cancel" >&5 | |
17913 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then | |
17914 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17915 | else | |
17916 | cat > conftest.$ac_ext <<EOF | |
17917 | #line 17918 "configure" | |
17918 | #include "confdefs.h" | |
17919 | /* System header to define __stub macros and hopefully few prototypes, | |
17920 | which can conflict with char pthread_cancel(); below. */ | |
17921 | #include <assert.h> | |
17922 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17923 | /* We use char because int might match the return type of a gcc2 | |
17924 | builtin and then its argument prototype would still apply. */ | |
17925 | char pthread_cancel(); | |
17926 | ||
17927 | int main() { | |
17928 | ||
17929 | /* The GNU C library defines this for functions which it implements | |
17930 | to always fail with ENOSYS. Some functions are actually named | |
17931 | something starting with __ and the normal name is an alias. */ | |
17932 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
17933 | choke me | |
17934 | #else | |
17935 | pthread_cancel(); | |
17936 | #endif | |
17937 | ||
17938 | ; return 0; } | |
17939 | EOF | |
17940 | if { (eval echo configure:17941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17941 | rm -rf conftest* | |
17942 | eval "ac_cv_func_pthread_cancel=yes" | |
17943 | else | |
17944 | echo "configure: failed program was:" >&5 | |
17945 | cat conftest.$ac_ext >&5 | |
17946 | rm -rf conftest* | |
17947 | eval "ac_cv_func_pthread_cancel=no" | |
17948 | fi | |
17949 | rm -f conftest* | |
17950 | fi | |
17951 | ||
17952 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
17953 | echo "$ac_t""yes" 1>&6 | |
17954 | cat >> confdefs.h <<\EOF | |
17955 | #define HAVE_PTHREAD_CANCEL 1 | |
17956 | EOF | |
17957 | ||
17958 | else | |
17959 | echo "$ac_t""no" 1>&6 | |
17960 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
17961 | fi | |
17962 | ||
17963 | ||
17964 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
17965 | echo "configure:17966: checking for pthread_cleanup_push/pop" >&5 | |
17966 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then | |
17967 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17968 | else | |
17969 | ||
17970 | cat > conftest.$ac_ext <<EOF | |
17971 | #line 17972 "configure" | |
17972 | #include "confdefs.h" | |
17973 | #include <pthread.h> | |
17974 | int main() { | |
17975 | ||
17976 | pthread_cleanup_push(NULL, NULL); | |
17977 | pthread_cleanup_pop(0); | |
17978 | ||
17979 | ; return 0; } | |
17980 | EOF | |
17981 | if { (eval echo configure:17982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
17982 | rm -rf conftest* | |
17983 | ||
17984 | wx_cv_func_pthread_cleanup_push=yes | |
17985 | ||
17986 | else | |
17987 | echo "configure: failed program was:" >&5 | |
17988 | cat conftest.$ac_ext >&5 | |
17989 | rm -rf conftest* | |
17990 | ||
17991 | wx_cv_func_pthread_cleanup_push=no | |
17992 | ||
17993 | fi | |
17994 | rm -f conftest* | |
17995 | ||
17996 | fi | |
17997 | ||
17998 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
17999 | ||
18000 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then | |
18001 | cat >> confdefs.h <<\EOF | |
18002 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
18003 | EOF | |
18004 | ||
18005 | fi | |
18006 | ||
18007 | ||
18008 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
18009 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
18010 | fi | |
18011 | ||
18012 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
18013 | echo "configure:18014: checking for pthread_mutexattr_t" >&5 | |
18014 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then | |
18015 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18016 | else | |
18017 | ||
18018 | cat > conftest.$ac_ext <<EOF | |
18019 | #line 18020 "configure" | |
18020 | #include "confdefs.h" | |
18021 | #include <pthread.h> | |
18022 | int main() { | |
18023 | ||
18024 | pthread_mutexattr_t attr; | |
18025 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
18026 | ||
18027 | ; return 0; } | |
18028 | EOF | |
18029 | if { (eval echo configure:18030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18030 | rm -rf conftest* | |
18031 | ||
18032 | wx_cv_type_pthread_mutexattr_t=yes | |
18033 | ||
18034 | else | |
18035 | echo "configure: failed program was:" >&5 | |
18036 | cat conftest.$ac_ext >&5 | |
18037 | rm -rf conftest* | |
18038 | ||
18039 | wx_cv_type_pthread_mutexattr_t=no | |
18040 | ||
18041 | ||
18042 | fi | |
18043 | rm -f conftest* | |
18044 | ||
18045 | fi | |
18046 | ||
18047 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
18048 | ||
18049 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
18050 | cat >> confdefs.h <<\EOF | |
18051 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
18052 | EOF | |
18053 | ||
18054 | else | |
18055 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
18056 | echo "configure:18057: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
18057 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then | |
18058 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18059 | else | |
18060 | ||
18061 | cat > conftest.$ac_ext <<EOF | |
18062 | #line 18063 "configure" | |
18063 | #include "confdefs.h" | |
18064 | #include <pthread.h> | |
18065 | int main() { | |
18066 | ||
18067 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
18068 | ||
18069 | ; return 0; } | |
18070 | EOF | |
18071 | if { (eval echo configure:18072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18072 | rm -rf conftest* | |
18073 | ||
18074 | wx_cv_type_pthread_rec_mutex_init=yes | |
18075 | ||
18076 | else | |
18077 | echo "configure: failed program was:" >&5 | |
18078 | cat conftest.$ac_ext >&5 | |
18079 | rm -rf conftest* | |
18080 | ||
18081 | wx_cv_type_pthread_rec_mutex_init=no | |
18082 | ||
18083 | ||
18084 | fi | |
18085 | rm -f conftest* | |
18086 | ||
18087 | fi | |
18088 | ||
18089 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
18090 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
18091 | cat >> confdefs.h <<\EOF | |
18092 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
18093 | EOF | |
18094 | ||
18095 | else | |
18096 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
18097 | fi | |
18098 | fi | |
18099 | fi | |
18100 | ||
18101 | fi | |
18102 | ||
18103 | if test "$wxUSE_THREADS" = "yes"; then | |
18104 | cat >> confdefs.h <<\EOF | |
18105 | #define wxUSE_THREADS 1 | |
18106 | EOF | |
18107 | ||
18108 | ||
18109 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
18110 | else | |
18111 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
18112 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
18113 | echo "configure:18114: checking if -D_REENTRANT is needed" >&5 | |
18114 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
18115 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
18116 | echo "$ac_t""yes" 1>&6 | |
18117 | else | |
18118 | echo "$ac_t""no" 1>&6 | |
18119 | fi | |
18120 | fi | |
18121 | fi | |
18122 | ||
18123 | if test "$WXGTK20" = 1 ; then | |
18124 | cat >> confdefs.h <<EOF | |
18125 | #define __WXGTK20__ $WXGTK20 | |
18126 | EOF | |
18127 | ||
18128 | WXGTK12=1 | |
18129 | fi | |
18130 | ||
18131 | if test "$WXGTK12" = 1 ; then | |
18132 | cat >> confdefs.h <<EOF | |
18133 | #define __WXGTK12__ $WXGTK12 | |
18134 | EOF | |
18135 | ||
18136 | fi | |
18137 | ||
18138 | if test "$WXGTK127" = 1 ; then | |
18139 | cat >> confdefs.h <<EOF | |
18140 | #define __WXGTK127__ $WXGTK127 | |
18141 | EOF | |
18142 | ||
18143 | fi | |
18144 | ||
18145 | WXDEBUG= | |
18146 | ||
18147 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
18148 | WXDEBUG="-g" | |
18149 | wxUSE_OPTIMISE=no | |
18150 | fi | |
18151 | ||
18152 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
18153 | wxUSE_DEBUG_INFO=yes | |
18154 | WXDEBUG="-ggdb" | |
18155 | fi | |
18156 | ||
18157 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
18158 | cat >> confdefs.h <<\EOF | |
18159 | #define WXDEBUG 1 | |
18160 | EOF | |
18161 | ||
18162 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
18163 | else | |
18164 | if test "$wxUSE_GTK" = 1 ; then | |
18165 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
18166 | fi | |
18167 | fi | |
18168 | ||
18169 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
18170 | cat >> confdefs.h <<\EOF | |
18171 | #define wxUSE_MEMORY_TRACING 1 | |
18172 | EOF | |
18173 | ||
18174 | cat >> confdefs.h <<\EOF | |
18175 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
18176 | EOF | |
18177 | ||
18178 | cat >> confdefs.h <<\EOF | |
18179 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
18180 | EOF | |
18181 | ||
18182 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
18183 | fi | |
18184 | ||
18185 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
18186 | DMALLOC_LIBS="-ldmalloc" | |
18187 | fi | |
18188 | ||
18189 | PROFILE= | |
18190 | if test "$wxUSE_PROFILE" = "yes" ; then | |
18191 | PROFILE=" -pg" | |
18192 | fi | |
18193 | ||
18194 | CODE_GEN_FLAGS= | |
18195 | CODE_GEN_FLAGS_CXX= | |
18196 | if test "$GCC" = "yes" ; then | |
18197 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
18198 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
18199 | fi | |
18200 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
18201 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
18202 | fi | |
18203 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
18204 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
18205 | fi | |
18206 | if test "$USE_WIN32" = 1 ; then | |
18207 | # I'm not even really sure what this was ever added to solve, | |
18208 | # but someone added it for mingw native builds, so I guess | |
18209 | # they had a reason, right?? | |
18210 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
18211 | fi | |
18212 | ||
18213 | case "${host}" in | |
18214 | powerpc*-*-aix* ) | |
18215 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
18216 | ;; | |
18217 | esac | |
18218 | fi | |
18219 | ||
18220 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
18221 | OPTIMISE= | |
18222 | else | |
18223 | if test "$GCC" = yes ; then | |
18224 | OPTIMISE="-O2" | |
18225 | case "${host}" in | |
18226 | i586-*-*|i686-*-* ) | |
18227 | OPTIMISE="${OPTIMISE} " | |
18228 | ;; | |
18229 | esac | |
18230 | else | |
18231 | OPTIMISE="-O" | |
18232 | fi | |
18233 | fi | |
18234 | ||
18235 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
18236 | cat >> confdefs.h <<\EOF | |
18237 | #define WXWIN_COMPATIBILITY_2 1 | |
18238 | EOF | |
18239 | ||
18240 | ||
18241 | WXWIN_COMPATIBILITY_2_2="yes" | |
18242 | fi | |
18243 | ||
18244 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then | |
18245 | cat >> confdefs.h <<\EOF | |
18246 | #define WXWIN_COMPATIBILITY_2_2 1 | |
18247 | EOF | |
18248 | ||
18249 | fi | |
18250 | ||
18251 | ||
18252 | if test "$wxUSE_GUI" = "yes"; then | |
18253 | cat >> confdefs.h <<\EOF | |
18254 | #define wxUSE_GUI 1 | |
18255 | EOF | |
18256 | ||
18257 | ||
18258 | else | |
18259 | cat >> confdefs.h <<\EOF | |
18260 | #define wxUSE_NOGUI 1 | |
18261 | EOF | |
18262 | ||
18263 | fi | |
18264 | ||
18265 | ||
18266 | if test "$wxUSE_UNIX" = "yes"; then | |
18267 | cat >> confdefs.h <<\EOF | |
18268 | #define wxUSE_UNIX 1 | |
18269 | EOF | |
18270 | ||
18271 | fi | |
18272 | ||
18273 | ||
18274 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
18275 | cat >> confdefs.h <<\EOF | |
18276 | #define wxUSE_APPLE_IEEE 1 | |
18277 | EOF | |
18278 | ||
18279 | fi | |
18280 | ||
18281 | if test "$wxUSE_TIMER" = "yes"; then | |
18282 | cat >> confdefs.h <<\EOF | |
18283 | #define wxUSE_TIMER 1 | |
18284 | EOF | |
18285 | ||
18286 | fi | |
18287 | ||
18288 | if test "$wxUSE_WAVE" = "yes"; then | |
18289 | cat >> confdefs.h <<\EOF | |
18290 | #define wxUSE_WAVE 1 | |
18291 | EOF | |
18292 | ||
18293 | fi | |
18294 | ||
18295 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then | |
18296 | cat >> confdefs.h <<\EOF | |
18297 | #define wxUSE_CMDLINE_PARSER 1 | |
18298 | EOF | |
18299 | ||
18300 | fi | |
18301 | ||
18302 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
18303 | cat >> confdefs.h <<\EOF | |
18304 | #define wxUSE_STOPWATCH 1 | |
18305 | EOF | |
18306 | ||
18307 | fi | |
18308 | ||
18309 | if test "$wxUSE_DATETIME" = "yes"; then | |
18310 | cat >> confdefs.h <<\EOF | |
18311 | #define wxUSE_DATETIME 1 | |
18312 | EOF | |
18313 | ||
18314 | fi | |
18315 | ||
18316 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
18317 | cat >> confdefs.h <<\EOF | |
18318 | #define wxUSE_TIMEDATE 1 | |
18319 | EOF | |
18320 | ||
18321 | fi | |
18322 | ||
18323 | if test "$wxUSE_FILE" = "yes"; then | |
18324 | cat >> confdefs.h <<\EOF | |
18325 | #define wxUSE_FILE 1 | |
18326 | EOF | |
18327 | ||
18328 | fi | |
18329 | ||
18330 | if test "$wxUSE_FFILE" = "yes"; then | |
18331 | cat >> confdefs.h <<\EOF | |
18332 | #define wxUSE_FFILE 1 | |
18333 | EOF | |
18334 | ||
18335 | fi | |
18336 | ||
18337 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
18338 | cat >> confdefs.h <<\EOF | |
18339 | #define wxUSE_FILESYSTEM 1 | |
18340 | EOF | |
18341 | ||
18342 | fi | |
18343 | ||
18344 | if test "$wxUSE_FS_INET" = "yes"; then | |
18345 | cat >> confdefs.h <<\EOF | |
18346 | #define wxUSE_FS_INET 1 | |
18347 | EOF | |
18348 | ||
18349 | fi | |
18350 | ||
18351 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
18352 | cat >> confdefs.h <<\EOF | |
18353 | #define wxUSE_FS_ZIP 1 | |
18354 | EOF | |
18355 | ||
18356 | fi | |
18357 | ||
18358 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
18359 | cat >> confdefs.h <<\EOF | |
18360 | #define wxUSE_ZIPSTREAM 1 | |
18361 | EOF | |
18362 | ||
18363 | fi | |
18364 | ||
18365 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
18366 | cat >> confdefs.h <<\EOF | |
18367 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
18368 | EOF | |
18369 | ||
18370 | fi | |
18371 | ||
18372 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
18373 | cat >> confdefs.h <<\EOF | |
18374 | #define wxUSE_SNGLINST_CHECKER 1 | |
18375 | EOF | |
18376 | ||
18377 | fi | |
18378 | ||
18379 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
18380 | cat >> confdefs.h <<\EOF | |
18381 | #define wxUSE_BUSYINFO 1 | |
18382 | EOF | |
18383 | ||
18384 | fi | |
18385 | ||
18386 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
18387 | cat >> confdefs.h <<\EOF | |
18388 | #define wxUSE_STD_IOSTREAM 1 | |
18389 | EOF | |
18390 | ||
18391 | fi | |
18392 | ||
18393 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
18394 | cat >> confdefs.h <<\EOF | |
18395 | #define wxUSE_TEXTBUFFER 1 | |
18396 | EOF | |
18397 | ||
18398 | fi | |
18399 | ||
18400 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
18401 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
18402 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 | |
18403 | else | |
18404 | cat >> confdefs.h <<\EOF | |
18405 | #define wxUSE_TEXTFILE 1 | |
18406 | EOF | |
18407 | ||
18408 | fi | |
18409 | fi | |
18410 | ||
18411 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18412 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
18413 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 | |
18414 | else | |
18415 | cat >> confdefs.h <<\EOF | |
18416 | #define wxUSE_CONFIG 1 | |
18417 | EOF | |
18418 | ||
18419 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18420 | fi | |
18421 | fi | |
18422 | ||
18423 | if test "$wxUSE_INTL" = "yes" ; then | |
18424 | if test "$wxUSE_FILE" != "yes"; then | |
18425 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 | |
18426 | else | |
18427 | cat >> confdefs.h <<\EOF | |
18428 | #define wxUSE_INTL 1 | |
18429 | EOF | |
18430 | ||
18431 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
18432 | GUIDIST="$GUIDIST INTL_DIST" | |
18433 | fi | |
18434 | fi | |
18435 | ||
18436 | if test "$wxUSE_LOG" = "yes"; then | |
18437 | cat >> confdefs.h <<\EOF | |
18438 | #define wxUSE_LOG 1 | |
18439 | EOF | |
18440 | ||
18441 | ||
18442 | if test "$wxUSE_LOGGUI" = "yes"; then | |
18443 | cat >> confdefs.h <<\EOF | |
18444 | #define wxUSE_LOGGUI 1 | |
18445 | EOF | |
18446 | ||
18447 | fi | |
18448 | ||
18449 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
18450 | cat >> confdefs.h <<\EOF | |
18451 | #define wxUSE_LOGWINDOW 1 | |
18452 | EOF | |
18453 | ||
18454 | fi | |
18455 | ||
18456 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
18457 | cat >> confdefs.h <<\EOF | |
18458 | #define wxUSE_LOG_DIALOG 1 | |
18459 | EOF | |
18460 | ||
18461 | fi | |
18462 | fi | |
18463 | ||
18464 | if test "$wxUSE_LONGLONG" = "yes"; then | |
18465 | cat >> confdefs.h <<\EOF | |
18466 | #define wxUSE_LONGLONG 1 | |
18467 | EOF | |
18468 | ||
18469 | fi | |
18470 | ||
18471 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
18472 | cat >> confdefs.h <<\EOF | |
18473 | #define wxUSE_GEOMETRY 1 | |
18474 | EOF | |
18475 | ||
18476 | fi | |
18477 | ||
18478 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
18479 | cat >> confdefs.h <<\EOF | |
18480 | #define wxUSE_DIALUP_MANAGER 1 | |
18481 | EOF | |
18482 | ||
18483 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
18484 | fi | |
18485 | ||
18486 | if test "$wxUSE_STREAMS" = "yes" ; then | |
18487 | cat >> confdefs.h <<\EOF | |
18488 | #define wxUSE_STREAMS 1 | |
18489 | EOF | |
18490 | ||
18491 | fi | |
18492 | ||
18493 | ||
18494 | if test "$wxUSE_DATETIME" = "yes"; then | |
18495 | for ac_func in strptime | |
18496 | do | |
18497 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
18498 | echo "configure:18499: checking for $ac_func" >&5 | |
18499 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18501 | else | |
18502 | cat > conftest.$ac_ext <<EOF | |
18503 | #line 18504 "configure" | |
18504 | #include "confdefs.h" | |
18505 | /* System header to define __stub macros and hopefully few prototypes, | |
18506 | which can conflict with char $ac_func(); below. */ | |
18507 | #include <assert.h> | |
18508 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18509 | /* We use char because int might match the return type of a gcc2 | |
18510 | builtin and then its argument prototype would still apply. */ | |
18511 | char $ac_func(); | |
18512 | ||
18513 | int main() { | |
18514 | ||
18515 | /* The GNU C library defines this for functions which it implements | |
18516 | to always fail with ENOSYS. Some functions are actually named | |
18517 | something starting with __ and the normal name is an alias. */ | |
18518 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18519 | choke me | |
18520 | #else | |
18521 | $ac_func(); | |
18522 | #endif | |
18523 | ||
18524 | ; return 0; } | |
18525 | EOF | |
18526 | if { (eval echo configure:18527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18527 | rm -rf conftest* | |
18528 | eval "ac_cv_func_$ac_func=yes" | |
18529 | else | |
18530 | echo "configure: failed program was:" >&5 | |
18531 | cat conftest.$ac_ext >&5 | |
18532 | rm -rf conftest* | |
18533 | eval "ac_cv_func_$ac_func=no" | |
18534 | fi | |
18535 | rm -f conftest* | |
18536 | fi | |
18537 | ||
18538 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18539 | echo "$ac_t""yes" 1>&6 | |
18540 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18541 | cat >> confdefs.h <<EOF | |
18542 | #define $ac_tr_func 1 | |
18543 | EOF | |
18544 | ||
18545 | else | |
18546 | echo "$ac_t""no" 1>&6 | |
18547 | fi | |
18548 | done | |
18549 | ||
18550 | ||
18551 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 | |
18552 | echo "configure:18553: checking for timezone variable in <time.h>" >&5 | |
18553 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then | |
18554 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18555 | else | |
18556 | ||
18557 | cat > conftest.$ac_ext <<EOF | |
18558 | #line 18559 "configure" | |
18559 | #include "confdefs.h" | |
18560 | ||
18561 | #include <time.h> | |
18562 | ||
18563 | int main() { | |
18564 | ||
18565 | int tz; | |
18566 | tz = timezone; | |
18567 | ||
18568 | ; return 0; } | |
18569 | EOF | |
18570 | if { (eval echo configure:18571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18571 | rm -rf conftest* | |
18572 | ||
18573 | wx_cv_var_timezone=timezone | |
18574 | ||
18575 | else | |
18576 | echo "configure: failed program was:" >&5 | |
18577 | cat conftest.$ac_ext >&5 | |
18578 | rm -rf conftest* | |
18579 | ||
18580 | cat > conftest.$ac_ext <<EOF | |
18581 | #line 18582 "configure" | |
18582 | #include "confdefs.h" | |
18583 | ||
18584 | #include <time.h> | |
18585 | ||
18586 | int main() { | |
18587 | ||
18588 | int tz; | |
18589 | tz = _timezone; | |
18590 | ||
18591 | ; return 0; } | |
18592 | EOF | |
18593 | if { (eval echo configure:18594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18594 | rm -rf conftest* | |
18595 | ||
18596 | wx_cv_var_timezone=_timezone | |
18597 | ||
18598 | else | |
18599 | echo "configure: failed program was:" >&5 | |
18600 | cat conftest.$ac_ext >&5 | |
18601 | rm -rf conftest* | |
18602 | ||
18603 | cat > conftest.$ac_ext <<EOF | |
18604 | #line 18605 "configure" | |
18605 | #include "confdefs.h" | |
18606 | ||
18607 | #include <time.h> | |
18608 | ||
18609 | int main() { | |
18610 | ||
18611 | int tz; | |
18612 | tz = __timezone; | |
18613 | ||
18614 | ; return 0; } | |
18615 | EOF | |
18616 | if { (eval echo configure:18617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18617 | rm -rf conftest* | |
18618 | ||
18619 | wx_cv_var_timezone=__timezone | |
18620 | ||
18621 | else | |
18622 | echo "configure: failed program was:" >&5 | |
18623 | cat conftest.$ac_ext >&5 | |
18624 | rm -rf conftest* | |
18625 | ||
18626 | if test "$USE_DOS" = 0 ; then | |
18627 | echo "configure: warning: no timezone variable" 1>&2 | |
18628 | fi | |
18629 | ||
18630 | ||
18631 | fi | |
18632 | rm -f conftest* | |
18633 | ||
18634 | ||
18635 | fi | |
18636 | rm -f conftest* | |
18637 | ||
18638 | ||
18639 | fi | |
18640 | rm -f conftest* | |
18641 | ||
18642 | ||
18643 | fi | |
18644 | ||
18645 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
18646 | ||
18647 | if test "x$wx_cv_var_timezone" != x ; then | |
18648 | cat >> confdefs.h <<EOF | |
18649 | #define WX_TIMEZONE $wx_cv_var_timezone | |
18650 | EOF | |
18651 | ||
18652 | fi | |
18653 | ||
18654 | for ac_func in localtime | |
18655 | do | |
18656 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
18657 | echo "configure:18658: checking for $ac_func" >&5 | |
18658 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18659 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18660 | else | |
18661 | cat > conftest.$ac_ext <<EOF | |
18662 | #line 18663 "configure" | |
18663 | #include "confdefs.h" | |
18664 | /* System header to define __stub macros and hopefully few prototypes, | |
18665 | which can conflict with char $ac_func(); below. */ | |
18666 | #include <assert.h> | |
18667 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18668 | /* We use char because int might match the return type of a gcc2 | |
18669 | builtin and then its argument prototype would still apply. */ | |
18670 | char $ac_func(); | |
18671 | ||
18672 | int main() { | |
18673 | ||
18674 | /* The GNU C library defines this for functions which it implements | |
18675 | to always fail with ENOSYS. Some functions are actually named | |
18676 | something starting with __ and the normal name is an alias. */ | |
18677 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18678 | choke me | |
18679 | #else | |
18680 | $ac_func(); | |
18681 | #endif | |
18682 | ||
18683 | ; return 0; } | |
18684 | EOF | |
18685 | if { (eval echo configure:18686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18686 | rm -rf conftest* | |
18687 | eval "ac_cv_func_$ac_func=yes" | |
18688 | else | |
18689 | echo "configure: failed program was:" >&5 | |
18690 | cat conftest.$ac_ext >&5 | |
18691 | rm -rf conftest* | |
18692 | eval "ac_cv_func_$ac_func=no" | |
18693 | fi | |
18694 | rm -f conftest* | |
18695 | fi | |
18696 | ||
18697 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18698 | echo "$ac_t""yes" 1>&6 | |
18699 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18700 | cat >> confdefs.h <<EOF | |
18701 | #define $ac_tr_func 1 | |
18702 | EOF | |
18703 | ||
18704 | else | |
18705 | echo "$ac_t""no" 1>&6 | |
18706 | fi | |
18707 | done | |
18708 | ||
18709 | ||
18710 | if test "$ac_cv_func_localtime" = "yes"; then | |
18711 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
18712 | echo "configure:18713: checking for tm_gmtoff in struct tm" >&5 | |
18713 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then | |
18714 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18715 | else | |
18716 | ||
18717 | cat > conftest.$ac_ext <<EOF | |
18718 | #line 18719 "configure" | |
18719 | #include "confdefs.h" | |
18720 | ||
18721 | #include <time.h> | |
18722 | ||
18723 | int main() { | |
18724 | ||
18725 | struct tm tm; | |
18726 | tm.tm_gmtoff++; | |
18727 | ||
18728 | ; return 0; } | |
18729 | EOF | |
18730 | if { (eval echo configure:18731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18731 | rm -rf conftest* | |
18732 | ||
18733 | wx_cv_struct_tm_has_gmtoff=yes | |
18734 | ||
18735 | else | |
18736 | echo "configure: failed program was:" >&5 | |
18737 | cat conftest.$ac_ext >&5 | |
18738 | rm -rf conftest* | |
18739 | wx_cv_struct_tm_has_gmtoff=no | |
18740 | ||
18741 | fi | |
18742 | rm -f conftest* | |
18743 | ||
18744 | fi | |
18745 | ||
18746 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
18747 | fi | |
18748 | ||
18749 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
18750 | cat >> confdefs.h <<\EOF | |
18751 | #define WX_GMTOFF_IN_TM 1 | |
18752 | EOF | |
18753 | ||
18754 | fi | |
18755 | ||
18756 | for ac_func in gettimeofday ftime | |
18757 | do | |
18758 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
18759 | echo "configure:18760: checking for $ac_func" >&5 | |
18760 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
18761 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18762 | else | |
18763 | cat > conftest.$ac_ext <<EOF | |
18764 | #line 18765 "configure" | |
18765 | #include "confdefs.h" | |
18766 | /* System header to define __stub macros and hopefully few prototypes, | |
18767 | which can conflict with char $ac_func(); below. */ | |
18768 | #include <assert.h> | |
18769 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18770 | /* We use char because int might match the return type of a gcc2 | |
18771 | builtin and then its argument prototype would still apply. */ | |
18772 | char $ac_func(); | |
18773 | ||
18774 | int main() { | |
18775 | ||
18776 | /* The GNU C library defines this for functions which it implements | |
18777 | to always fail with ENOSYS. Some functions are actually named | |
18778 | something starting with __ and the normal name is an alias. */ | |
18779 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18780 | choke me | |
18781 | #else | |
18782 | $ac_func(); | |
18783 | #endif | |
18784 | ||
18785 | ; return 0; } | |
18786 | EOF | |
18787 | if { (eval echo configure:18788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18788 | rm -rf conftest* | |
18789 | eval "ac_cv_func_$ac_func=yes" | |
18790 | else | |
18791 | echo "configure: failed program was:" >&5 | |
18792 | cat conftest.$ac_ext >&5 | |
18793 | rm -rf conftest* | |
18794 | eval "ac_cv_func_$ac_func=no" | |
18795 | fi | |
18796 | rm -f conftest* | |
18797 | fi | |
18798 | ||
18799 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18800 | echo "$ac_t""yes" 1>&6 | |
18801 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18802 | cat >> confdefs.h <<EOF | |
18803 | #define $ac_tr_func 1 | |
18804 | EOF | |
18805 | break | |
18806 | else | |
18807 | echo "$ac_t""no" 1>&6 | |
18808 | fi | |
18809 | done | |
18810 | ||
18811 | ||
18812 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
18813 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
18814 | echo "configure:18815: checking whether gettimeofday takes two arguments" >&5 | |
18815 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then | |
18816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18817 | else | |
18818 | ||
18819 | ||
18820 | ac_ext=C | |
18821 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
18822 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18823 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
18824 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18825 | cross_compiling=$ac_cv_prog_cxx_cross | |
18826 | ||
18827 | ||
18828 | cat > conftest.$ac_ext <<EOF | |
18829 | #line 18830 "configure" | |
18830 | #include "confdefs.h" | |
18831 | ||
18832 | #include <sys/time.h> | |
18833 | #include <unistd.h> | |
18834 | ||
18835 | int main() { | |
18836 | ||
18837 | struct timeval tv; | |
18838 | gettimeofday(&tv, NULL); | |
18839 | ||
18840 | ; return 0; } | |
18841 | EOF | |
18842 | if { (eval echo configure:18843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18843 | rm -rf conftest* | |
18844 | wx_cv_func_gettimeofday_has_2_args=yes | |
18845 | else | |
18846 | echo "configure: failed program was:" >&5 | |
18847 | cat conftest.$ac_ext >&5 | |
18848 | rm -rf conftest* | |
18849 | cat > conftest.$ac_ext <<EOF | |
18850 | #line 18851 "configure" | |
18851 | #include "confdefs.h" | |
18852 | ||
18853 | #include <sys/time.h> | |
18854 | #include <unistd.h> | |
18855 | ||
18856 | int main() { | |
18857 | ||
18858 | struct timeval tv; | |
18859 | gettimeofday(&tv); | |
18860 | ||
18861 | ; return 0; } | |
18862 | EOF | |
18863 | if { (eval echo configure:18864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
18864 | rm -rf conftest* | |
18865 | wx_cv_func_gettimeofday_has_2_args=no | |
18866 | else | |
18867 | echo "configure: failed program was:" >&5 | |
18868 | cat conftest.$ac_ext >&5 | |
18869 | rm -rf conftest* | |
18870 | ||
18871 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
18872 | wx_cv_func_gettimeofday_has_2_args=unknown | |
18873 | ||
18874 | ||
18875 | fi | |
18876 | rm -f conftest* | |
18877 | ||
18878 | fi | |
18879 | rm -f conftest* | |
18880 | ac_ext=c | |
18881 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
18882 | ac_cpp='$CPP $CPPFLAGS' | |
18883 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
18884 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18885 | cross_compiling=$ac_cv_prog_cc_cross | |
18886 | ||
18887 | ||
18888 | fi | |
18889 | ||
18890 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
18891 | ||
18892 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
18893 | cat >> confdefs.h <<\EOF | |
18894 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
18895 | EOF | |
18896 | ||
18897 | fi | |
18898 | fi | |
18899 | ||
18900 | cat >> confdefs.h <<\EOF | |
18901 | #define wxUSE_TIMEDATE 1 | |
18902 | EOF | |
18903 | ||
18904 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
18905 | fi | |
18906 | ||
18907 | ||
18908 | if test "$wxUSE_SOCKETS" = "yes"; then | |
18909 | if test "$wxUSE_X11" = "1"; then | |
18910 | echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2 | |
18911 | wxUSE_SOCKETS="no" | |
18912 | fi | |
18913 | ||
18914 | if test "$wxUSE_MGL" = "1"; then | |
18915 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 | |
18916 | wxUSE_SOCKETS="no" | |
18917 | fi | |
18918 | fi | |
18919 | ||
18920 | if test "$wxUSE_SOCKETS" = "yes"; then | |
18921 | if test "$TOOLKIT" != "MSW"; then | |
18922 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
18923 | echo "configure:18924: checking for socket" >&5 | |
18924 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | |
18925 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18926 | else | |
18927 | cat > conftest.$ac_ext <<EOF | |
18928 | #line 18929 "configure" | |
18929 | #include "confdefs.h" | |
18930 | /* System header to define __stub macros and hopefully few prototypes, | |
18931 | which can conflict with char socket(); below. */ | |
18932 | #include <assert.h> | |
18933 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18934 | /* We use char because int might match the return type of a gcc2 | |
18935 | builtin and then its argument prototype would still apply. */ | |
18936 | char socket(); | |
18937 | ||
18938 | int main() { | |
18939 | ||
18940 | /* The GNU C library defines this for functions which it implements | |
18941 | to always fail with ENOSYS. Some functions are actually named | |
18942 | something starting with __ and the normal name is an alias. */ | |
18943 | #if defined (__stub_socket) || defined (__stub___socket) | |
18944 | choke me | |
18945 | #else | |
18946 | socket(); | |
18947 | #endif | |
18948 | ||
18949 | ; return 0; } | |
18950 | EOF | |
18951 | if { (eval echo configure:18952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18952 | rm -rf conftest* | |
18953 | eval "ac_cv_func_socket=yes" | |
18954 | else | |
18955 | echo "configure: failed program was:" >&5 | |
18956 | cat conftest.$ac_ext >&5 | |
18957 | rm -rf conftest* | |
18958 | eval "ac_cv_func_socket=no" | |
18959 | fi | |
18960 | rm -f conftest* | |
18961 | fi | |
18962 | ||
18963 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
18964 | echo "$ac_t""yes" 1>&6 | |
18965 | : | |
18966 | else | |
18967 | echo "$ac_t""no" 1>&6 | |
18968 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
18969 | echo "configure:18970: checking for socket in -lsocket" >&5 | |
18970 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` | |
18971 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18972 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18973 | else | |
18974 | ac_save_LIBS="$LIBS" | |
18975 | LIBS="-lsocket $LIBS" | |
18976 | cat > conftest.$ac_ext <<EOF | |
18977 | #line 18978 "configure" | |
18978 | #include "confdefs.h" | |
18979 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18980 | /* We use char because int might match the return type of a gcc2 | |
18981 | builtin and then its argument prototype would still apply. */ | |
18982 | char socket(); | |
18983 | ||
18984 | int main() { | |
18985 | socket() | |
18986 | ; return 0; } | |
18987 | EOF | |
18988 | if { (eval echo configure:18989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
18989 | rm -rf conftest* | |
18990 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18991 | else | |
18992 | echo "configure: failed program was:" >&5 | |
18993 | cat conftest.$ac_ext >&5 | |
18994 | rm -rf conftest* | |
18995 | eval "ac_cv_lib_$ac_lib_var=no" | |
18996 | fi | |
18997 | rm -f conftest* | |
18998 | LIBS="$ac_save_LIBS" | |
18999 | ||
19000 | fi | |
19001 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19002 | echo "$ac_t""yes" 1>&6 | |
19003 | if test "$INET_LINK" != " -lsocket"; then | |
19004 | INET_LINK="$INET_LINK -lsocket" | |
19005 | fi | |
19006 | else | |
19007 | echo "$ac_t""no" 1>&6 | |
19008 | ||
19009 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
19010 | wxUSE_SOCKETS=no | |
19011 | ||
19012 | ||
19013 | fi | |
19014 | ||
19015 | ||
19016 | fi | |
19017 | ||
19018 | fi | |
19019 | fi | |
19020 | ||
19021 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
19022 | if test "$TOOLKIT" != "MSW"; then | |
19023 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
19024 | echo "configure:19025: checking what is the type of the third argument of getsockname" >&5 | |
19025 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then | |
19026 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19027 | else | |
19028 | ||
19029 | ||
19030 | ac_ext=C | |
19031 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
19032 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19033 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
19034 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19035 | cross_compiling=$ac_cv_prog_cxx_cross | |
19036 | ||
19037 | ||
19038 | cat > conftest.$ac_ext <<EOF | |
19039 | #line 19040 "configure" | |
19040 | #include "confdefs.h" | |
19041 | ||
19042 | #include <sys/types.h> | |
19043 | #include <sys/socket.h> | |
19044 | ||
19045 | int main() { | |
19046 | ||
19047 | socklen_t len; | |
19048 | getsockname(0, 0, &len); | |
19049 | ||
19050 | ; return 0; } | |
19051 | EOF | |
19052 | if { (eval echo configure:19053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19053 | rm -rf conftest* | |
19054 | wx_cv_type_getsockname3=socklen_t | |
19055 | else | |
19056 | echo "configure: failed program was:" >&5 | |
19057 | cat conftest.$ac_ext >&5 | |
19058 | rm -rf conftest* | |
19059 | cat > conftest.$ac_ext <<EOF | |
19060 | #line 19061 "configure" | |
19061 | #include "confdefs.h" | |
19062 | ||
19063 | #include <sys/types.h> | |
19064 | #include <sys/socket.h> | |
19065 | ||
19066 | int main() { | |
19067 | ||
19068 | size_t len; | |
19069 | getsockname(0, 0, &len); | |
19070 | ||
19071 | ; return 0; } | |
19072 | EOF | |
19073 | if { (eval echo configure:19074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19074 | rm -rf conftest* | |
19075 | wx_cv_type_getsockname3=size_t | |
19076 | else | |
19077 | echo "configure: failed program was:" >&5 | |
19078 | cat conftest.$ac_ext >&5 | |
19079 | rm -rf conftest* | |
19080 | cat > conftest.$ac_ext <<EOF | |
19081 | #line 19082 "configure" | |
19082 | #include "confdefs.h" | |
19083 | ||
19084 | #include <sys/types.h> | |
19085 | #include <sys/socket.h> | |
19086 | ||
19087 | int main() { | |
19088 | ||
19089 | int len; | |
19090 | getsockname(0, 0, &len); | |
19091 | ||
19092 | ; return 0; } | |
19093 | EOF | |
19094 | if { (eval echo configure:19095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
19095 | rm -rf conftest* | |
19096 | wx_cv_type_getsockname3=int | |
19097 | else | |
19098 | echo "configure: failed program was:" >&5 | |
19099 | cat conftest.$ac_ext >&5 | |
19100 | rm -rf conftest* | |
19101 | wx_cv_type_getsockname3=unknown | |
19102 | ||
19103 | fi | |
19104 | rm -f conftest* | |
19105 | ||
19106 | fi | |
19107 | rm -f conftest* | |
19108 | ||
19109 | fi | |
19110 | rm -f conftest* | |
19111 | ||
19112 | ac_ext=c | |
19113 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
19114 | ac_cpp='$CPP $CPPFLAGS' | |
19115 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
19116 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19117 | cross_compiling=$ac_cv_prog_cc_cross | |
19118 | ||
19119 | ||
19120 | fi | |
19121 | ||
19122 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
19123 | ||
19124 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
19125 | wxUSE_SOCKETS=no | |
19126 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
19127 | else | |
19128 | cat >> confdefs.h <<EOF | |
19129 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
19130 | EOF | |
19131 | ||
19132 | fi | |
19133 | fi | |
19134 | fi | |
19135 | ||
19136 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
19137 | cat >> confdefs.h <<\EOF | |
19138 | #define wxUSE_SOCKETS 1 | |
19139 | EOF | |
19140 | ||
19141 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
19142 | fi | |
19143 | ||
19144 | ||
19145 | if test "$wxUSE_GUI" = "yes"; then | |
19146 | ||
19147 | if test "$TOOLKIT" = "MAC"; then | |
19148 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
19149 | wxUSE_JOYSTICK=no | |
19150 | fi | |
19151 | if test "$TOOLKIT" = "MOTIF"; then | |
19152 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
19153 | wxUSE_JOYSTICK=no | |
19154 | fi | |
19155 | if test "$TOOLKIT" = "X11"; then | |
19156 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 | |
19157 | wxUSE_JOYSTICK=no | |
19158 | fi | |
19159 | ||
19160 | if test "$TOOLKIT" != "MSW"; then | |
19161 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
19162 | for ac_hdr in linux/joystick.h | |
19163 | do | |
19164 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
19165 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
19166 | echo "configure:19167: checking for $ac_hdr" >&5 | |
19167 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
19168 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19169 | else | |
19170 | cat > conftest.$ac_ext <<EOF | |
19171 | #line 19172 "configure" | |
19172 | #include "confdefs.h" | |
19173 | #include <$ac_hdr> | |
19174 | EOF | |
19175 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19176 | { (eval echo configure:19177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
19177 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
19178 | if test -z "$ac_err"; then | |
19179 | rm -rf conftest* | |
19180 | eval "ac_cv_header_$ac_safe=yes" | |
19181 | else | |
19182 | echo "$ac_err" >&5 | |
19183 | echo "configure: failed program was:" >&5 | |
19184 | cat conftest.$ac_ext >&5 | |
19185 | rm -rf conftest* | |
19186 | eval "ac_cv_header_$ac_safe=no" | |
19187 | fi | |
19188 | rm -f conftest* | |
19189 | fi | |
19190 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
19191 | echo "$ac_t""yes" 1>&6 | |
19192 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19193 | cat >> confdefs.h <<EOF | |
19194 | #define $ac_tr_hdr 1 | |
19195 | EOF | |
19196 | ||
19197 | else | |
19198 | echo "$ac_t""no" 1>&6 | |
19199 | fi | |
19200 | done | |
19201 | ||
19202 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
19203 | wxUSE_JOYSTICK=no | |
19204 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 | |
19205 | fi | |
19206 | fi | |
19207 | fi | |
19208 | ||
19209 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
19210 | cat >> confdefs.h <<\EOF | |
19211 | #define wxUSE_JOYSTICK 1 | |
19212 | EOF | |
19213 | ||
19214 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
19215 | fi | |
19216 | fi | |
19217 | ||
19218 | ||
19219 | if test "$TOOLKIT" != "MSW"; then | |
19220 | ||
19221 | HAVE_DL_FUNCS=0 | |
19222 | HAVE_SHL_FUNCS=0 | |
19223 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
19224 | if test "$USE_DARWIN" = 1; then | |
19225 | HAVE_DL_FUNCS=1 | |
19226 | else | |
19227 | for ac_func in dlopen | |
19228 | do | |
19229 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
19230 | echo "configure:19231: checking for $ac_func" >&5 | |
19231 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
19232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19233 | else | |
19234 | cat > conftest.$ac_ext <<EOF | |
19235 | #line 19236 "configure" | |
19236 | #include "confdefs.h" | |
19237 | /* System header to define __stub macros and hopefully few prototypes, | |
19238 | which can conflict with char $ac_func(); below. */ | |
19239 | #include <assert.h> | |
19240 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19241 | /* We use char because int might match the return type of a gcc2 | |
19242 | builtin and then its argument prototype would still apply. */ | |
19243 | char $ac_func(); | |
19244 | ||
19245 | int main() { | |
19246 | ||
19247 | /* The GNU C library defines this for functions which it implements | |
19248 | to always fail with ENOSYS. Some functions are actually named | |
19249 | something starting with __ and the normal name is an alias. */ | |
19250 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19251 | choke me | |
19252 | #else | |
19253 | $ac_func(); | |
19254 | #endif | |
19255 | ||
19256 | ; return 0; } | |
19257 | EOF | |
19258 | if { (eval echo configure:19259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19259 | rm -rf conftest* | |
19260 | eval "ac_cv_func_$ac_func=yes" | |
19261 | else | |
19262 | echo "configure: failed program was:" >&5 | |
19263 | cat conftest.$ac_ext >&5 | |
19264 | rm -rf conftest* | |
19265 | eval "ac_cv_func_$ac_func=no" | |
19266 | fi | |
19267 | rm -f conftest* | |
19268 | fi | |
19269 | ||
19270 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19271 | echo "$ac_t""yes" 1>&6 | |
19272 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19273 | cat >> confdefs.h <<EOF | |
19274 | #define $ac_tr_func 1 | |
19275 | EOF | |
19276 | ||
19277 | cat >> confdefs.h <<\EOF | |
19278 | #define HAVE_DLOPEN 1 | |
19279 | EOF | |
19280 | ||
19281 | HAVE_DL_FUNCS=1 | |
19282 | ||
19283 | else | |
19284 | echo "$ac_t""no" 1>&6 | |
19285 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
19286 | echo "configure:19287: checking for dlopen in -ldl" >&5 | |
19287 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | |
19288 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19290 | else | |
19291 | ac_save_LIBS="$LIBS" | |
19292 | LIBS="-ldl $LIBS" | |
19293 | cat > conftest.$ac_ext <<EOF | |
19294 | #line 19295 "configure" | |
19295 | #include "confdefs.h" | |
19296 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19297 | /* We use char because int might match the return type of a gcc2 | |
19298 | builtin and then its argument prototype would still apply. */ | |
19299 | char dlopen(); | |
19300 | ||
19301 | int main() { | |
19302 | dlopen() | |
19303 | ; return 0; } | |
19304 | EOF | |
19305 | if { (eval echo configure:19306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19306 | rm -rf conftest* | |
19307 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19308 | else | |
19309 | echo "configure: failed program was:" >&5 | |
19310 | cat conftest.$ac_ext >&5 | |
19311 | rm -rf conftest* | |
19312 | eval "ac_cv_lib_$ac_lib_var=no" | |
19313 | fi | |
19314 | rm -f conftest* | |
19315 | LIBS="$ac_save_LIBS" | |
19316 | ||
19317 | fi | |
19318 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19319 | echo "$ac_t""yes" 1>&6 | |
19320 | ||
19321 | cat >> confdefs.h <<\EOF | |
19322 | #define HAVE_DLOPEN 1 | |
19323 | EOF | |
19324 | ||
19325 | HAVE_DL_FUNCS=1 | |
19326 | DL_LINK=" -ldl$DL_LINK" | |
19327 | ||
19328 | else | |
19329 | echo "$ac_t""no" 1>&6 | |
19330 | ||
19331 | for ac_func in shl_load | |
19332 | do | |
19333 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
19334 | echo "configure:19335: checking for $ac_func" >&5 | |
19335 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
19336 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19337 | else | |
19338 | cat > conftest.$ac_ext <<EOF | |
19339 | #line 19340 "configure" | |
19340 | #include "confdefs.h" | |
19341 | /* System header to define __stub macros and hopefully few prototypes, | |
19342 | which can conflict with char $ac_func(); below. */ | |
19343 | #include <assert.h> | |
19344 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19345 | /* We use char because int might match the return type of a gcc2 | |
19346 | builtin and then its argument prototype would still apply. */ | |
19347 | char $ac_func(); | |
19348 | ||
19349 | int main() { | |
19350 | ||
19351 | /* The GNU C library defines this for functions which it implements | |
19352 | to always fail with ENOSYS. Some functions are actually named | |
19353 | something starting with __ and the normal name is an alias. */ | |
19354 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19355 | choke me | |
19356 | #else | |
19357 | $ac_func(); | |
19358 | #endif | |
19359 | ||
19360 | ; return 0; } | |
19361 | EOF | |
19362 | if { (eval echo configure:19363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19363 | rm -rf conftest* | |
19364 | eval "ac_cv_func_$ac_func=yes" | |
19365 | else | |
19366 | echo "configure: failed program was:" >&5 | |
19367 | cat conftest.$ac_ext >&5 | |
19368 | rm -rf conftest* | |
19369 | eval "ac_cv_func_$ac_func=no" | |
19370 | fi | |
19371 | rm -f conftest* | |
19372 | fi | |
19373 | ||
19374 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19375 | echo "$ac_t""yes" 1>&6 | |
19376 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19377 | cat >> confdefs.h <<EOF | |
19378 | #define $ac_tr_func 1 | |
19379 | EOF | |
19380 | ||
19381 | cat >> confdefs.h <<\EOF | |
19382 | #define HAVE_SHL_LOAD 1 | |
19383 | EOF | |
19384 | ||
19385 | HAVE_SHL_FUNCS=1 | |
19386 | ||
19387 | else | |
19388 | echo "$ac_t""no" 1>&6 | |
19389 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
19390 | echo "configure:19391: checking for dld in -lshl_load" >&5 | |
19391 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` | |
19392 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19393 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19394 | else | |
19395 | ac_save_LIBS="$LIBS" | |
19396 | LIBS="-lshl_load $LIBS" | |
19397 | cat > conftest.$ac_ext <<EOF | |
19398 | #line 19399 "configure" | |
19399 | #include "confdefs.h" | |
19400 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19401 | /* We use char because int might match the return type of a gcc2 | |
19402 | builtin and then its argument prototype would still apply. */ | |
19403 | char dld(); | |
19404 | ||
19405 | int main() { | |
19406 | dld() | |
19407 | ; return 0; } | |
19408 | EOF | |
19409 | if { (eval echo configure:19410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19410 | rm -rf conftest* | |
19411 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19412 | else | |
19413 | echo "configure: failed program was:" >&5 | |
19414 | cat conftest.$ac_ext >&5 | |
19415 | rm -rf conftest* | |
19416 | eval "ac_cv_lib_$ac_lib_var=no" | |
19417 | fi | |
19418 | rm -f conftest* | |
19419 | LIBS="$ac_save_LIBS" | |
19420 | ||
19421 | fi | |
19422 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19423 | echo "$ac_t""yes" 1>&6 | |
19424 | ||
19425 | HAVE_SHL_FUNCS=1 | |
19426 | DL_LINK=" -ldld$DL_LINK" | |
19427 | ||
19428 | else | |
19429 | echo "$ac_t""no" 1>&6 | |
19430 | fi | |
19431 | ||
19432 | ||
19433 | fi | |
19434 | done | |
19435 | ||
19436 | ||
19437 | fi | |
19438 | ||
19439 | ||
19440 | fi | |
19441 | done | |
19442 | ||
19443 | ||
19444 | if test "$HAVE_DL_FUNCS" = 1; then | |
19445 | for ac_func in dlerror | |
19446 | do | |
19447 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
19448 | echo "configure:19449: checking for $ac_func" >&5 | |
19449 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
19450 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19451 | else | |
19452 | cat > conftest.$ac_ext <<EOF | |
19453 | #line 19454 "configure" | |
19454 | #include "confdefs.h" | |
19455 | /* System header to define __stub macros and hopefully few prototypes, | |
19456 | which can conflict with char $ac_func(); below. */ | |
19457 | #include <assert.h> | |
19458 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19459 | /* We use char because int might match the return type of a gcc2 | |
19460 | builtin and then its argument prototype would still apply. */ | |
19461 | char $ac_func(); | |
19462 | ||
19463 | int main() { | |
19464 | ||
19465 | /* The GNU C library defines this for functions which it implements | |
19466 | to always fail with ENOSYS. Some functions are actually named | |
19467 | something starting with __ and the normal name is an alias. */ | |
19468 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19469 | choke me | |
19470 | #else | |
19471 | $ac_func(); | |
19472 | #endif | |
19473 | ||
19474 | ; return 0; } | |
19475 | EOF | |
19476 | if { (eval echo configure:19477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19477 | rm -rf conftest* | |
19478 | eval "ac_cv_func_$ac_func=yes" | |
19479 | else | |
19480 | echo "configure: failed program was:" >&5 | |
19481 | cat conftest.$ac_ext >&5 | |
19482 | rm -rf conftest* | |
19483 | eval "ac_cv_func_$ac_func=no" | |
19484 | fi | |
19485 | rm -f conftest* | |
19486 | fi | |
19487 | ||
19488 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19489 | echo "$ac_t""yes" 1>&6 | |
19490 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19491 | cat >> confdefs.h <<EOF | |
19492 | #define $ac_tr_func 1 | |
19493 | EOF | |
19494 | cat >> confdefs.h <<\EOF | |
19495 | #define HAVE_DLERROR 1 | |
19496 | EOF | |
19497 | ||
19498 | else | |
19499 | echo "$ac_t""no" 1>&6 | |
19500 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
19501 | echo "configure:19502: checking for dlerror in -ldl" >&5 | |
19502 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` | |
19503 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19504 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19505 | else | |
19506 | ac_save_LIBS="$LIBS" | |
19507 | LIBS="-ldl $LIBS" | |
19508 | cat > conftest.$ac_ext <<EOF | |
19509 | #line 19510 "configure" | |
19510 | #include "confdefs.h" | |
19511 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19512 | /* We use char because int might match the return type of a gcc2 | |
19513 | builtin and then its argument prototype would still apply. */ | |
19514 | char dlerror(); | |
19515 | ||
19516 | int main() { | |
19517 | dlerror() | |
19518 | ; return 0; } | |
19519 | EOF | |
19520 | if { (eval echo configure:19521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19521 | rm -rf conftest* | |
19522 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19523 | else | |
19524 | echo "configure: failed program was:" >&5 | |
19525 | cat conftest.$ac_ext >&5 | |
19526 | rm -rf conftest* | |
19527 | eval "ac_cv_lib_$ac_lib_var=no" | |
19528 | fi | |
19529 | rm -f conftest* | |
19530 | LIBS="$ac_save_LIBS" | |
19531 | ||
19532 | fi | |
19533 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19534 | echo "$ac_t""yes" 1>&6 | |
19535 | cat >> confdefs.h <<\EOF | |
19536 | #define HAVE_DLERROR 1 | |
19537 | EOF | |
19538 | ||
19539 | else | |
19540 | echo "$ac_t""no" 1>&6 | |
19541 | fi | |
19542 | ||
19543 | fi | |
19544 | done | |
19545 | ||
19546 | fi | |
19547 | fi | |
19548 | ||
19549 | if test "$HAVE_DL_FUNCS" = 0; then | |
19550 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19551 | if test "$USE_UNIX" = 1; then | |
19552 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
19553 | wxUSE_DYNAMIC_LOADER=no | |
19554 | wxUSE_DYNLIB_CLASS=no | |
19555 | else | |
19556 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
19557 | fi | |
19558 | fi | |
19559 | fi | |
19560 | fi | |
19561 | fi | |
19562 | ||
19563 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
19564 | cat >> confdefs.h <<\EOF | |
19565 | #define wxUSE_DYNAMIC_LOADER 1 | |
19566 | EOF | |
19567 | ||
19568 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
19569 | cat >> confdefs.h <<\EOF | |
19570 | #define wxUSE_DYNLIB_CLASS 1 | |
19571 | EOF | |
19572 | ||
19573 | fi | |
19574 | ||
19575 | ||
19576 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
19577 | cat >> confdefs.h <<\EOF | |
19578 | #define wxUSE_FONTMAP 1 | |
19579 | EOF | |
19580 | ||
19581 | fi | |
19582 | ||
19583 | if test "$wxUSE_UNICODE" = "yes" ; then | |
19584 | cat >> confdefs.h <<\EOF | |
19585 | #define wxUSE_UNICODE 1 | |
19586 | EOF | |
19587 | ||
19588 | ||
19589 | if test "$wxUSE_MSW" != 1; then | |
19590 | wxUSE_UNICODE_MSLU=no | |
19591 | fi | |
19592 | ||
19593 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
19594 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
19595 | echo "configure:19596: checking for main in -lunicows" >&5 | |
19596 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` | |
19597 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19598 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19599 | else | |
19600 | ac_save_LIBS="$LIBS" | |
19601 | LIBS="-lunicows $LIBS" | |
19602 | cat > conftest.$ac_ext <<EOF | |
19603 | #line 19604 "configure" | |
19604 | #include "confdefs.h" | |
19605 | ||
19606 | int main() { | |
19607 | main() | |
19608 | ; return 0; } | |
19609 | EOF | |
19610 | if { (eval echo configure:19611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
19611 | rm -rf conftest* | |
19612 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19613 | else | |
19614 | echo "configure: failed program was:" >&5 | |
19615 | cat conftest.$ac_ext >&5 | |
19616 | rm -rf conftest* | |
19617 | eval "ac_cv_lib_$ac_lib_var=no" | |
19618 | fi | |
19619 | rm -f conftest* | |
19620 | LIBS="$ac_save_LIBS" | |
19621 | ||
19622 | fi | |
19623 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19624 | echo "$ac_t""yes" 1>&6 | |
19625 | ||
19626 | cat >> confdefs.h <<\EOF | |
19627 | #define wxUSE_UNICODE_MSLU 1 | |
19628 | EOF | |
19629 | ||
19630 | ||
19631 | else | |
19632 | echo "$ac_t""no" 1>&6 | |
19633 | ||
19634 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
19635 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
19636 | wxUSE_UNICODE_MSLU=no | |
19637 | ||
19638 | fi | |
19639 | ||
19640 | fi | |
19641 | fi | |
19642 | ||
19643 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
19644 | cat >> confdefs.h <<\EOF | |
19645 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
19646 | EOF | |
19647 | ||
19648 | fi | |
19649 | ||
19650 | ||
19651 | ||
19652 | IODBC_C_SRC="" | |
19653 | if test "$wxUSE_ODBC" = "yes" ; then | |
19654 | cat >> confdefs.h <<\EOF | |
19655 | #define wxUSE_ODBC 1 | |
19656 | EOF | |
19657 | ||
19658 | WXODBCFLAG="-D_IODBC_" | |
19659 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
19660 | fi | |
19661 | ||
19662 | ||
19663 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
19664 | cat >> confdefs.h <<\EOF | |
19665 | #define wxUSE_POSTSCRIPT 1 | |
19666 | EOF | |
19667 | ||
19668 | fi | |
19669 | ||
19670 | cat >> confdefs.h <<\EOF | |
19671 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
19672 | EOF | |
19673 | ||
19674 | ||
19675 | cat >> confdefs.h <<\EOF | |
19676 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
19677 | EOF | |
19678 | ||
19679 | ||
19680 | ||
19681 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
19682 | cat >> confdefs.h <<\EOF | |
19683 | #define wxUSE_CONSTRAINTS 1 | |
19684 | EOF | |
19685 | ||
19686 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19687 | fi | |
19688 | ||
19689 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19690 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
19691 | echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2 | |
19692 | wxUSE_MDI_ARCHITECTURE=no | |
19693 | fi | |
19694 | ||
19695 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19696 | cat >> confdefs.h <<\EOF | |
19697 | #define wxUSE_MDI_ARCHITECTURE 1 | |
19698 | EOF | |
19699 | ||
19700 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
19701 | fi | |
19702 | fi | |
19703 | ||
19704 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
19705 | cat >> confdefs.h <<\EOF | |
19706 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
19707 | EOF | |
19708 | ||
19709 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19710 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19711 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19712 | fi | |
19713 | fi | |
19714 | ||
19715 | if test "$wxUSE_HELP" = "yes"; then | |
19716 | cat >> confdefs.h <<\EOF | |
19717 | #define wxUSE_HELP 1 | |
19718 | EOF | |
19719 | ||
19720 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
19721 | ||
19722 | if test "$wxUSE_MSW" = 1; then | |
19723 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
19724 | cat >> confdefs.h <<\EOF | |
19725 | #define wxUSE_MS_HTML_HELP 1 | |
19726 | EOF | |
19727 | ||
19728 | fi | |
19729 | fi | |
19730 | ||
19731 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19732 | if test "$wxUSE_HTML" = "yes"; then | |
19733 | cat >> confdefs.h <<\EOF | |
19734 | #define wxUSE_WXHTML_HELP 1 | |
19735 | EOF | |
19736 | ||
19737 | else | |
19738 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
19739 | wxUSE_WXHTML_HELP=no | |
19740 | fi | |
19741 | fi | |
19742 | fi | |
19743 | ||
19744 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19745 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
19746 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
19747 | else | |
19748 | cat >> confdefs.h <<\EOF | |
19749 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
19750 | EOF | |
19751 | ||
19752 | fi | |
19753 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19754 | fi | |
19755 | ||
19756 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
19757 | cat >> confdefs.h <<\EOF | |
19758 | #define wxUSE_PROLOGIO 1 | |
19759 | EOF | |
19760 | ||
19761 | fi | |
19762 | ||
19763 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
19764 | if test "$wxUSE_NANOX" = "yes"; then | |
19765 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 | |
19766 | else | |
19767 | cat >> confdefs.h <<\EOF | |
19768 | #define wxUSE_RESOURCES 1 | |
19769 | EOF | |
19770 | ||
19771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
19772 | fi | |
19773 | fi | |
19774 | ||
19775 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
19776 | cat >> confdefs.h <<\EOF | |
19777 | #define wxUSE_X_RESOURCES 1 | |
19778 | EOF | |
19779 | ||
19780 | fi | |
19781 | ||
19782 | ||
19783 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
19784 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19785 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
19786 | for ac_hdr in ole2.h | |
19787 | do | |
19788 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
19789 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
19790 | echo "configure:19791: checking for $ac_hdr" >&5 | |
19791 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
19792 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19793 | else | |
19794 | cat > conftest.$ac_ext <<EOF | |
19795 | #line 19796 "configure" | |
19796 | #include "confdefs.h" | |
19797 | #include <$ac_hdr> | |
19798 | EOF | |
19799 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19800 | { (eval echo configure:19801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
19801 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
19802 | if test -z "$ac_err"; then | |
19803 | rm -rf conftest* | |
19804 | eval "ac_cv_header_$ac_safe=yes" | |
19805 | else | |
19806 | echo "$ac_err" >&5 | |
19807 | echo "configure: failed program was:" >&5 | |
19808 | cat conftest.$ac_ext >&5 | |
19809 | rm -rf conftest* | |
19810 | eval "ac_cv_header_$ac_safe=no" | |
19811 | fi | |
19812 | rm -f conftest* | |
19813 | fi | |
19814 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
19815 | echo "$ac_t""yes" 1>&6 | |
19816 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19817 | cat >> confdefs.h <<EOF | |
19818 | #define $ac_tr_hdr 1 | |
19819 | EOF | |
19820 | ||
19821 | else | |
19822 | echo "$ac_t""no" 1>&6 | |
19823 | fi | |
19824 | done | |
19825 | ||
19826 | ||
19827 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
19828 | if test "$GCC" = yes ; then | |
19829 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
19830 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
19831 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" | |
19832 | cat >> confdefs.h <<\EOF | |
19833 | #define wxUSE_OLE 1 | |
19834 | EOF | |
19835 | ||
19836 | ||
19837 | fi | |
19838 | ||
19839 | cat >> confdefs.h <<\EOF | |
19840 | #define wxUSE_DATAOBJ 1 | |
19841 | EOF | |
19842 | ||
19843 | else | |
19844 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
19845 | ||
19846 | wxUSE_CLIPBOARD=no | |
19847 | wxUSE_DRAG_AND_DROP=no | |
19848 | wxUSE_DATAOBJ=no | |
19849 | fi | |
19850 | ||
19851 | if test "$wxUSE_METAFILE" = "yes"; then | |
19852 | cat >> confdefs.h <<\EOF | |
19853 | #define wxUSE_METAFILE 1 | |
19854 | EOF | |
19855 | ||
19856 | ||
19857 | cat >> confdefs.h <<\EOF | |
19858 | #define wxUSE_ENH_METAFILE 1 | |
19859 | EOF | |
19860 | ||
19861 | fi | |
19862 | fi | |
19863 | ||
19864 | if test "$wxUSE_IPC" = "yes"; then | |
19865 | if test "$wxUSE_SOCKETS" != "yes"; then | |
19866 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 | |
19867 | fi | |
19868 | ||
19869 | cat >> confdefs.h <<\EOF | |
19870 | #define wxUSE_IPC 1 | |
19871 | EOF | |
19872 | ||
19873 | fi | |
19874 | ||
19875 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
19876 | if test "$wxUSE_MGL" = 1; then | |
19877 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 | |
19878 | wxUSE_CLIPBOARD=no | |
19879 | fi | |
19880 | ||
19881 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
19882 | cat >> confdefs.h <<\EOF | |
19883 | #define wxUSE_CLIPBOARD 1 | |
19884 | EOF | |
19885 | ||
19886 | ||
19887 | cat >> confdefs.h <<\EOF | |
19888 | #define wxUSE_DATAOBJ 1 | |
19889 | EOF | |
19890 | ||
19891 | fi | |
19892 | fi | |
19893 | ||
19894 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
19895 | if test "$wxUSE_GTK" = 1; then | |
19896 | if test "$WXGTK12" != 1; then | |
19897 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 | |
19898 | wxUSE_DRAG_AND_DROP=no | |
19899 | fi | |
19900 | fi | |
19901 | ||
19902 | if test "$wxUSE_MOTIF" = 1; then | |
19903 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 | |
19904 | wxUSE_DRAG_AND_DROP=no | |
19905 | fi | |
19906 | ||
19907 | if test "$wxUSE_X11" = 1; then | |
19908 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 | |
19909 | wxUSE_DRAG_AND_DROP=no | |
19910 | fi | |
19911 | ||
19912 | if test "$wxUSE_MGL" = 1; then | |
19913 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 | |
19914 | wxUSE_DRAG_AND_DROP=no | |
19915 | fi | |
19916 | ||
19917 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
19918 | cat >> confdefs.h <<\EOF | |
19919 | #define wxUSE_DRAG_AND_DROP 1 | |
19920 | EOF | |
19921 | ||
19922 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
19923 | fi | |
19924 | ||
19925 | fi | |
19926 | ||
19927 | if test "$wxUSE_SPLINES" = "yes" ; then | |
19928 | cat >> confdefs.h <<\EOF | |
19929 | #define wxUSE_SPLINES 1 | |
19930 | EOF | |
19931 | ||
19932 | fi | |
19933 | ||
19934 | ||
19935 | USES_CONTROLS=0 | |
19936 | if test "$wxUSE_CONTROLS" = "yes"; then | |
19937 | USES_CONTROLS=1 | |
19938 | fi | |
19939 | ||
19940 | if test "$wxUSE_ACCEL" = "yes"; then | |
19941 | cat >> confdefs.h <<\EOF | |
19942 | #define wxUSE_ACCEL 1 | |
19943 | EOF | |
19944 | ||
19945 | USES_CONTROLS=1 | |
19946 | fi | |
19947 | ||
19948 | if test "$wxUSE_BUTTON" = "yes"; then | |
19949 | cat >> confdefs.h <<\EOF | |
19950 | #define wxUSE_BUTTON 1 | |
19951 | EOF | |
19952 | ||
19953 | USES_CONTROLS=1 | |
19954 | fi | |
19955 | ||
19956 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
19957 | cat >> confdefs.h <<\EOF | |
19958 | #define wxUSE_BMPBUTTON 1 | |
19959 | EOF | |
19960 | ||
19961 | USES_CONTROLS=1 | |
19962 | fi | |
19963 | ||
19964 | if test "$wxUSE_CALCTRL" = "yes"; then | |
19965 | cat >> confdefs.h <<\EOF | |
19966 | #define wxUSE_CALENDARCTRL 1 | |
19967 | EOF | |
19968 | ||
19969 | USES_CONTROLS=1 | |
19970 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
19971 | fi | |
19972 | ||
19973 | if test "$wxUSE_CARET" = "yes"; then | |
19974 | cat >> confdefs.h <<\EOF | |
19975 | #define wxUSE_CARET 1 | |
19976 | EOF | |
19977 | ||
19978 | USES_CONTROLS=1 | |
19979 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
19980 | fi | |
19981 | ||
19982 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
19983 | cat >> confdefs.h <<\EOF | |
19984 | #define wxUSE_COMBOBOX 1 | |
19985 | EOF | |
19986 | ||
19987 | USES_CONTROLS=1 | |
19988 | fi | |
19989 | ||
19990 | if test "$wxUSE_CHOICE" = "yes"; then | |
19991 | cat >> confdefs.h <<\EOF | |
19992 | #define wxUSE_CHOICE 1 | |
19993 | EOF | |
19994 | ||
19995 | USES_CONTROLS=1 | |
19996 | fi | |
19997 | ||
19998 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
19999 | cat >> confdefs.h <<\EOF | |
20000 | #define wxUSE_CHECKBOX 1 | |
20001 | EOF | |
20002 | ||
20003 | USES_CONTROLS=1 | |
20004 | fi | |
20005 | ||
20006 | if test "$wxUSE_CHECKLST" = "yes"; then | |
20007 | cat >> confdefs.h <<\EOF | |
20008 | #define wxUSE_CHECKLISTBOX 1 | |
20009 | EOF | |
20010 | ||
20011 | USES_CONTROLS=1 | |
20012 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
20013 | fi | |
20014 | ||
20015 | if test "$wxUSE_GAUGE" = "yes"; then | |
20016 | cat >> confdefs.h <<\EOF | |
20017 | #define wxUSE_GAUGE 1 | |
20018 | EOF | |
20019 | ||
20020 | USES_CONTROLS=1 | |
20021 | fi | |
20022 | ||
20023 | if test "$wxUSE_NEW_GRID" = "yes"; then | |
20024 | wxUSE_GRID="yes" | |
20025 | cat >> confdefs.h <<\EOF | |
20026 | #define wxUSE_NEW_GRID 1 | |
20027 | EOF | |
20028 | ||
20029 | USES_CONTROLS=1 | |
20030 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" | |
20031 | fi | |
20032 | ||
20033 | if test "$wxUSE_GRID" = "yes"; then | |
20034 | cat >> confdefs.h <<\EOF | |
20035 | #define wxUSE_GRID 1 | |
20036 | EOF | |
20037 | ||
20038 | USES_CONTROLS=1 | |
20039 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
20040 | fi | |
20041 | ||
20042 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
20043 | cat >> confdefs.h <<\EOF | |
20044 | #define wxUSE_IMAGLIST 1 | |
20045 | EOF | |
20046 | ||
20047 | fi | |
20048 | ||
20049 | if test "$wxUSE_LISTBOX" = "yes"; then | |
20050 | cat >> confdefs.h <<\EOF | |
20051 | #define wxUSE_LISTBOX 1 | |
20052 | EOF | |
20053 | ||
20054 | USES_CONTROLS=1 | |
20055 | fi | |
20056 | ||
20057 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
20058 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
20059 | cat >> confdefs.h <<\EOF | |
20060 | #define wxUSE_LISTCTRL 1 | |
20061 | EOF | |
20062 | ||
20063 | USES_CONTROLS=1 | |
20064 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
20065 | else | |
20066 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
20067 | fi | |
20068 | fi | |
20069 | ||
20070 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
20071 | cat >> confdefs.h <<\EOF | |
20072 | #define wxUSE_NOTEBOOK 1 | |
20073 | EOF | |
20074 | ||
20075 | USES_CONTROLS=1 | |
20076 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
20077 | fi | |
20078 | ||
20079 | if test "$wxUSE_PROPSHEET" = "yes"; then | |
20080 | cat >> confdefs.h <<\EOF | |
20081 | #define wxUSE_PROPSHEET 1 | |
20082 | EOF | |
20083 | ||
20084 | USES_CONTROLS=1 | |
20085 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
20086 | fi | |
20087 | ||
20088 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
20089 | cat >> confdefs.h <<\EOF | |
20090 | #define wxUSE_RADIOBOX 1 | |
20091 | EOF | |
20092 | ||
20093 | USES_CONTROLS=1 | |
20094 | fi | |
20095 | ||
20096 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
20097 | cat >> confdefs.h <<\EOF | |
20098 | #define wxUSE_RADIOBTN 1 | |
20099 | EOF | |
20100 | ||
20101 | USES_CONTROLS=1 | |
20102 | fi | |
20103 | ||
20104 | if test "$wxUSE_SASH" = "yes"; then | |
20105 | cat >> confdefs.h <<\EOF | |
20106 | #define wxUSE_SASH 1 | |
20107 | EOF | |
20108 | ||
20109 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
20110 | fi | |
20111 | ||
20112 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
20113 | cat >> confdefs.h <<\EOF | |
20114 | #define wxUSE_SCROLLBAR 1 | |
20115 | EOF | |
20116 | ||
20117 | USES_CONTROLS=1 | |
20118 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
20119 | fi | |
20120 | ||
20121 | if test "$wxUSE_SLIDER" = "yes"; then | |
20122 | cat >> confdefs.h <<\EOF | |
20123 | #define wxUSE_SLIDER 1 | |
20124 | EOF | |
20125 | ||
20126 | USES_CONTROLS=1 | |
20127 | fi | |
20128 | ||
20129 | if test "$wxUSE_SPINBTN" = "yes"; then | |
20130 | cat >> confdefs.h <<\EOF | |
20131 | #define wxUSE_SPINBTN 1 | |
20132 | EOF | |
20133 | ||
20134 | USES_CONTROLS=1 | |
20135 | fi | |
20136 | ||
20137 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
20138 | cat >> confdefs.h <<\EOF | |
20139 | #define wxUSE_SPINCTRL 1 | |
20140 | EOF | |
20141 | ||
20142 | USES_CONTROLS=1 | |
20143 | fi | |
20144 | ||
20145 | if test "$wxUSE_SPLITTER" = "yes"; then | |
20146 | cat >> confdefs.h <<\EOF | |
20147 | #define wxUSE_SPLITTER 1 | |
20148 | EOF | |
20149 | ||
20150 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
20151 | fi | |
20152 | ||
20153 | if test "$wxUSE_STATBMP" = "yes"; then | |
20154 | cat >> confdefs.h <<\EOF | |
20155 | #define wxUSE_STATBMP 1 | |
20156 | EOF | |
20157 | ||
20158 | USES_CONTROLS=1 | |
20159 | fi | |
20160 | ||
20161 | if test "$wxUSE_STATBOX" = "yes"; then | |
20162 | cat >> confdefs.h <<\EOF | |
20163 | #define wxUSE_STATBOX 1 | |
20164 | EOF | |
20165 | ||
20166 | USES_CONTROLS=1 | |
20167 | fi | |
20168 | ||
20169 | if test "$wxUSE_STATTEXT" = "yes"; then | |
20170 | cat >> confdefs.h <<\EOF | |
20171 | #define wxUSE_STATTEXT 1 | |
20172 | EOF | |
20173 | ||
20174 | USES_CONTROLS=1 | |
20175 | fi | |
20176 | ||
20177 | if test "$wxUSE_STATLINE" = "yes"; then | |
20178 | if test "$wxUSE_WINE" = 1 ; then | |
20179 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
20180 | else | |
20181 | cat >> confdefs.h <<\EOF | |
20182 | #define wxUSE_STATLINE 1 | |
20183 | EOF | |
20184 | ||
20185 | USES_CONTROLS=1 | |
20186 | fi | |
20187 | fi | |
20188 | ||
20189 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
20190 | cat >> confdefs.h <<\EOF | |
20191 | #define wxUSE_STATUSBAR 1 | |
20192 | EOF | |
20193 | ||
20194 | USES_CONTROLS=1 | |
20195 | ||
20196 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
20197 | fi | |
20198 | ||
20199 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
20200 | cat >> confdefs.h <<\EOF | |
20201 | #define wxUSE_TAB_DIALOG 1 | |
20202 | EOF | |
20203 | ||
20204 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
20205 | fi | |
20206 | ||
20207 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
20208 | cat >> confdefs.h <<\EOF | |
20209 | #define wxUSE_TEXTCTRL 1 | |
20210 | EOF | |
20211 | ||
20212 | USES_CONTROLS=1 | |
20213 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
20214 | fi | |
20215 | ||
20216 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
20217 | if test "$wxUSE_MAC" = 1; then | |
20218 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
20219 | wxUSE_TOGGLEBTN=no | |
20220 | fi | |
20221 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
20222 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 | |
20223 | wxUSE_TOGGLEBTN=no | |
20224 | fi | |
20225 | ||
20226 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
20227 | cat >> confdefs.h <<\EOF | |
20228 | #define wxUSE_TOGGLEBTN 1 | |
20229 | EOF | |
20230 | ||
20231 | USES_CONTROLS=1 | |
20232 | fi | |
20233 | fi | |
20234 | ||
20235 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
20236 | cat >> confdefs.h <<\EOF | |
20237 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
20238 | EOF | |
20239 | ||
20240 | wxUSE_TOOLBAR="yes" | |
20241 | USES_CONTROLS=1 | |
20242 | fi | |
20243 | ||
20244 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
20245 | cat >> confdefs.h <<\EOF | |
20246 | #define wxUSE_TOOLBAR 1 | |
20247 | EOF | |
20248 | ||
20249 | USES_CONTROLS=1 | |
20250 | ||
20251 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
20252 | wxUSE_TOOLBAR_NATIVE="yes" | |
20253 | fi | |
20254 | ||
20255 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
20256 | cat >> confdefs.h <<\EOF | |
20257 | #define wxUSE_TOOLBAR_NATIVE 1 | |
20258 | EOF | |
20259 | ||
20260 | USES_CONTROLS=1 | |
20261 | fi | |
20262 | ||
20263 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
20264 | fi | |
20265 | ||
20266 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
20267 | if test "$wxUSE_MOTIF" = 1; then | |
20268 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 | |
20269 | else | |
20270 | if test "$wxUSE_WINE" = 1; then | |
20271 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 | |
20272 | else | |
20273 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
20274 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 | |
20275 | else | |
20276 | cat >> confdefs.h <<\EOF | |
20277 | #define wxUSE_TOOLTIPS 1 | |
20278 | EOF | |
20279 | ||
20280 | fi | |
20281 | fi | |
20282 | fi | |
20283 | fi | |
20284 | ||
20285 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20286 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
20287 | cat >> confdefs.h <<\EOF | |
20288 | #define wxUSE_TREECTRL 1 | |
20289 | EOF | |
20290 | ||
20291 | USES_CONTROLS=1 | |
20292 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
20293 | else | |
20294 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
20295 | fi | |
20296 | fi | |
20297 | ||
20298 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
20299 | if test "$wxUSE_MAC" = 1; then | |
20300 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 | |
20301 | else | |
20302 | if test "$wxUSE_MOTIF" = 1; then | |
20303 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
20304 | else | |
20305 | if test "$wxUSE_PM" = 1; then | |
20306 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 | |
20307 | else | |
20308 | cat >> confdefs.h <<\EOF | |
20309 | #define wxUSE_POPUPWIN 1 | |
20310 | EOF | |
20311 | ||
20312 | ||
20313 | USES_CONTROLS=1 | |
20314 | fi | |
20315 | fi | |
20316 | fi | |
20317 | fi | |
20318 | ||
20319 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
20320 | if test "$wxUSE_PM" = 1; then | |
20321 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 | |
20322 | else | |
20323 | cat >> confdefs.h <<\EOF | |
20324 | #define wxUSE_TIPWINDOW 1 | |
20325 | EOF | |
20326 | ||
20327 | fi | |
20328 | fi | |
20329 | ||
20330 | if test "$USES_CONTROLS" = 1; then | |
20331 | cat >> confdefs.h <<\EOF | |
20332 | #define wxUSE_CONTROLS 1 | |
20333 | EOF | |
20334 | ||
20335 | fi | |
20336 | ||
20337 | ||
20338 | if test "$wxUSE_TREELAYOUT" = "yes"; then | |
20339 | cat >> confdefs.h <<\EOF | |
20340 | #define wxUSE_TREELAYOUT 1 | |
20341 | EOF | |
20342 | ||
20343 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20344 | fi | |
20345 | ||
20346 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
20347 | cat >> confdefs.h <<\EOF | |
20348 | #define wxUSE_DRAGIMAGE 1 | |
20349 | EOF | |
20350 | ||
20351 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20352 | fi | |
20353 | ||
20354 | if test "$wxUSE_MENUS" = "yes"; then | |
20355 | cat >> confdefs.h <<\EOF | |
20356 | #define wxUSE_MENUS 1 | |
20357 | EOF | |
20358 | ||
20359 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
20360 | fi | |
20361 | ||
20362 | if test "$wxUSE_METAFILE" = "yes"; then | |
20363 | cat >> confdefs.h <<\EOF | |
20364 | #define wxUSE_METAFILE 1 | |
20365 | EOF | |
20366 | ||
20367 | fi | |
20368 | ||
20369 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
20370 | cat >> confdefs.h <<\EOF | |
20371 | #define wxUSE_MIMETYPE 1 | |
20372 | EOF | |
20373 | ||
20374 | fi | |
20375 | ||
20376 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
20377 | cat >> confdefs.h <<\EOF | |
20378 | #define wxUSE_SYSTEM_OPTIONS 1 | |
20379 | EOF | |
20380 | ||
20381 | if test "$TOOLKIT" = "MSW"; then | |
20382 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
20383 | fi | |
20384 | ||
20385 | fi | |
20386 | ||
20387 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
20388 | if test "$wxUSE_SOCKETS" != "yes"; then | |
20389 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
20390 | wxUSE_PROTOCOL=no | |
20391 | fi | |
20392 | ||
20393 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
20394 | cat >> confdefs.h <<\EOF | |
20395 | #define wxUSE_PROTOCOL 1 | |
20396 | EOF | |
20397 | ||
20398 | ||
20399 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
20400 | cat >> confdefs.h <<\EOF | |
20401 | #define wxUSE_PROTOCOL_HTTP 1 | |
20402 | EOF | |
20403 | ||
20404 | fi | |
20405 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
20406 | cat >> confdefs.h <<\EOF | |
20407 | #define wxUSE_PROTOCOL_FTP 1 | |
20408 | EOF | |
20409 | ||
20410 | fi | |
20411 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
20412 | cat >> confdefs.h <<\EOF | |
20413 | #define wxUSE_PROTOCOL_FILE 1 | |
20414 | EOF | |
20415 | ||
20416 | fi | |
20417 | fi | |
20418 | fi | |
20419 | ||
20420 | if test "$wxUSE_URL" = "yes"; then | |
20421 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
20422 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
20423 | wxUSE_URL=no | |
20424 | fi | |
20425 | if test "$wxUSE_URL" = "yes"; then | |
20426 | cat >> confdefs.h <<\EOF | |
20427 | #define wxUSE_URL 1 | |
20428 | EOF | |
20429 | ||
20430 | fi | |
20431 | fi | |
20432 | ||
20433 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
20434 | cat >> confdefs.h <<\EOF | |
20435 | #define wxUSE_MINIFRAME 1 | |
20436 | EOF | |
20437 | ||
20438 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20439 | fi | |
20440 | ||
20441 | if test "$wxUSE_HTML" = "yes"; then | |
20442 | cat >> confdefs.h <<\EOF | |
20443 | #define wxUSE_HTML 1 | |
20444 | EOF | |
20445 | ||
20446 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
20447 | fi | |
20448 | ||
20449 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
20450 | cat >> confdefs.h <<\EOF | |
20451 | #define wxUSE_VALIDATORS 1 | |
20452 | EOF | |
20453 | ||
20454 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
20455 | fi | |
20456 | ||
20457 | if test "$wxUSE_PALETTE" = "yes" ; then | |
20458 | cat >> confdefs.h <<\EOF | |
20459 | #define wxUSE_PALETTE 1 | |
20460 | EOF | |
20461 | ||
20462 | fi | |
20463 | ||
20464 | if test "$wxUSE_IMAGE" = "yes" ; then | |
20465 | cat >> confdefs.h <<\EOF | |
20466 | #define wxUSE_IMAGE 1 | |
20467 | EOF | |
20468 | ||
20469 | fi | |
20470 | ||
20471 | if test "$wxUSE_GIF" = "yes" ; then | |
20472 | cat >> confdefs.h <<\EOF | |
20473 | #define wxUSE_GIF 1 | |
20474 | EOF | |
20475 | ||
20476 | fi | |
20477 | ||
20478 | if test "$wxUSE_PCX" = "yes" ; then | |
20479 | cat >> confdefs.h <<\EOF | |
20480 | #define wxUSE_PCX 1 | |
20481 | EOF | |
20482 | ||
20483 | fi | |
20484 | ||
20485 | if test "$wxUSE_IFF" = "yes" ; then | |
20486 | cat >> confdefs.h <<\EOF | |
20487 | #define wxUSE_IFF 1 | |
20488 | EOF | |
20489 | ||
20490 | fi | |
20491 | ||
20492 | if test "$wxUSE_PNM" = "yes" ; then | |
20493 | cat >> confdefs.h <<\EOF | |
20494 | #define wxUSE_PNM 1 | |
20495 | EOF | |
20496 | ||
20497 | fi | |
20498 | ||
20499 | if test "$wxUSE_XPM" = "yes" ; then | |
20500 | cat >> confdefs.h <<\EOF | |
20501 | #define wxUSE_XPM 1 | |
20502 | EOF | |
20503 | ||
20504 | fi | |
20505 | ||
20506 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
20507 | cat >> confdefs.h <<\EOF | |
20508 | #define wxUSE_ICO_CUR 1 | |
20509 | EOF | |
20510 | ||
20511 | fi | |
20512 | ||
20513 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
20514 | LIBS=" -lunicows $LIBS" | |
20515 | fi | |
20516 | ||
20517 | ||
20518 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
20519 | cat >> confdefs.h <<\EOF | |
20520 | #define wxUSE_CHOICEDLG 1 | |
20521 | EOF | |
20522 | ||
20523 | fi | |
20524 | ||
20525 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
20526 | cat >> confdefs.h <<\EOF | |
20527 | #define wxUSE_COLOURDLG 1 | |
20528 | EOF | |
20529 | ||
20530 | fi | |
20531 | ||
20532 | if test "$wxUSE_FILEDLG" = "yes"; then | |
20533 | cat >> confdefs.h <<\EOF | |
20534 | #define wxUSE_FILEDLG 1 | |
20535 | EOF | |
20536 | ||
20537 | fi | |
20538 | ||
20539 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
20540 | cat >> confdefs.h <<\EOF | |
20541 | #define wxUSE_FINDREPLDLG 1 | |
20542 | EOF | |
20543 | ||
20544 | fi | |
20545 | ||
20546 | if test "$wxUSE_FONTDLG" = "yes"; then | |
20547 | cat >> confdefs.h <<\EOF | |
20548 | #define wxUSE_FONTDLG 1 | |
20549 | EOF | |
20550 | ||
20551 | fi | |
20552 | ||
20553 | if test "$wxUSE_DIRDLG" = "yes"; then | |
20554 | if test "$wxUSE_TREECTRL" != "yes"; then | |
20555 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
20556 | else | |
20557 | cat >> confdefs.h <<\EOF | |
20558 | #define wxUSE_DIRDLG 1 | |
20559 | EOF | |
20560 | ||
20561 | fi | |
20562 | fi | |
20563 | ||
20564 | if test "$wxUSE_MSGDLG" = "yes"; then | |
20565 | cat >> confdefs.h <<\EOF | |
20566 | #define wxUSE_MSGDLG 1 | |
20567 | EOF | |
20568 | ||
20569 | fi | |
20570 | ||
20571 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
20572 | cat >> confdefs.h <<\EOF | |
20573 | #define wxUSE_NUMBERDLG 1 | |
20574 | EOF | |
20575 | ||
20576 | fi | |
20577 | ||
20578 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20579 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20580 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
20581 | else | |
20582 | cat >> confdefs.h <<\EOF | |
20583 | #define wxUSE_PROGRESSDLG 1 | |
20584 | EOF | |
20585 | ||
20586 | fi | |
20587 | fi | |
20588 | ||
20589 | if test "$wxUSE_SPLASH" = "yes"; then | |
20590 | cat >> confdefs.h <<\EOF | |
20591 | #define wxUSE_SPLASH 1 | |
20592 | EOF | |
20593 | ||
20594 | fi | |
20595 | ||
20596 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
20597 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20598 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
20599 | else | |
20600 | cat >> confdefs.h <<\EOF | |
20601 | #define wxUSE_STARTUP_TIPS 1 | |
20602 | EOF | |
20603 | ||
20604 | fi | |
20605 | fi | |
20606 | ||
20607 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
20608 | cat >> confdefs.h <<\EOF | |
20609 | #define wxUSE_TEXTDLG 1 | |
20610 | EOF | |
20611 | ||
20612 | fi | |
20613 | ||
20614 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
20615 | cat >> confdefs.h <<\EOF | |
20616 | #define wxUSE_WIZARDDLG 1 | |
20617 | EOF | |
20618 | ||
20619 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20620 | fi | |
20621 | ||
20622 | ||
20623 | if test "$cross_compiling" = "yes"; then | |
20624 | OSINFO="\"$host\"" | |
20625 | else | |
20626 | OSINFO=`uname -s -r -m` | |
20627 | OSINFO="\"$OSINFO\"" | |
20628 | fi | |
20629 | ||
20630 | cat >> confdefs.h <<EOF | |
20631 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20632 | EOF | |
20633 | ||
20634 | ||
20635 | ||
20636 | if test "x$prefix" != "xNONE"; then | |
20637 | wxPREFIX=$prefix | |
20638 | else | |
20639 | wxPREFIX=$ac_default_prefix | |
20640 | fi | |
20641 | ||
20642 | cat >> confdefs.h <<EOF | |
20643 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
20644 | EOF | |
20645 | ||
20646 | ||
20647 | ||
20648 | ||
20649 | ||
20650 | if test "$wxUSE_MAC" = 1 ; then | |
20651 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
20652 | fi | |
20653 | ||
20654 | ||
20655 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS" | |
20656 | ||
20657 | if test "$wxUSE_GUI" = "yes"; then | |
20658 | ||
20659 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
20660 | ||
20661 | ||
20662 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
20663 | drawing dynamic erase event exec font image \ | |
20664 | minimal richedit rotate widgets" | |
20665 | ||
20666 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
20667 | else | |
20668 | SAMPLES_SUBDIRS="console" | |
20669 | fi | |
20670 | ||
20671 | ||
20672 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
20673 | -I\${top_srcdir}/include \ | |
20674 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
20675 | $TOOLKIT_INCLUDE" | |
20676 | ||
20677 | if test "$wxUSE_GTK" = 1; then | |
20678 | WXCONFIG_INCLUDE= | |
20679 | else | |
20680 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20681 | fi | |
20682 | ||
20683 | if test "$GXX" = yes ; then | |
20684 | CXXWARNINGS="-Wall" | |
20685 | ||
20686 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
20687 | CFLAGS="-MMD $CFLAGS" | |
20688 | CXXFLAGS="-MMD $CXXFLAGS" | |
20689 | fi | |
20690 | fi | |
20691 | ||
20692 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
20693 | ||
20694 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20695 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
20696 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
20697 | ||
20698 | LDFLAGS="$LDFLAGS $PROFILE" | |
20699 | ||
20700 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
20701 | ||
20702 | ||
20703 | ||
20704 | ||
20705 | ||
20706 | ||
20707 | ||
20708 | ||
20709 | ||
20710 | ||
20711 | ||
20712 | ||
20713 | ||
20714 | ||
20715 | ||
20716 | ||
20717 | ||
20718 | ||
20719 | ||
20720 | ||
20721 | ||
20722 | ||
20723 | ||
20724 | ||
20725 | ||
20726 | ||
20727 | ||
20728 | ||
20729 | ||
20730 | ||
20731 | ||
20732 | ||
20733 | ||
20734 | ||
20735 | ||
20736 | ||
20737 | ||
20738 | ||
20739 | ||
20740 | ||
20741 | ||
20742 | ||
20743 | ||
20744 | ||
20745 | ||
20746 | ||
20747 | ||
20748 | ||
20749 | ||
20750 | ||
20751 | ||
20752 | ||
20753 | ||
20754 | ||
20755 | ||
20756 | ||
20757 | ||
20758 | ||
20759 | ||
20760 | ||
20761 | ||
20762 | ||
20763 | ||
20764 | ||
20765 | ||
20766 | ||
20767 | ||
20768 | ||
20769 | ||
20770 | ||
20771 | ||
20772 | ||
20773 | ||
20774 | ||
20775 | ||
20776 | ||
20777 | ||
20778 | ||
20779 | ||
20780 | ||
20781 | ||
20782 | ||
20783 | ||
20784 | ||
20785 | ||
20786 | ||
20787 | ||
20788 | ||
20789 | ||
20790 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
20791 | echo "configure:20792: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
20792 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
20793 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
20794 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20795 | else | |
20796 | cat > conftestmake <<\EOF | |
20797 | all: | |
20798 | @echo 'ac_maketemp="${MAKE}"' | |
20799 | EOF | |
20800 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
20801 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
20802 | if test -n "$ac_maketemp"; then | |
20803 | eval ac_cv_prog_make_${ac_make}_set=yes | |
20804 | else | |
20805 | eval ac_cv_prog_make_${ac_make}_set=no | |
20806 | fi | |
20807 | rm -f conftestmake | |
20808 | fi | |
20809 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
20810 | echo "$ac_t""yes" 1>&6 | |
20811 | SET_MAKE= | |
20812 | else | |
20813 | echo "$ac_t""no" 1>&6 | |
20814 | SET_MAKE="MAKE=${MAKE-make}" | |
20815 | fi | |
20816 | ||
20817 | ||
20818 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
20819 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
20820 | fi | |
20821 | ||
20822 | ||
20823 | ||
20824 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS | |
20825 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
20826 | wx_cv_path_ifs=$PATH_IFS | |
20827 | wx_cv_program_ext=$PROGRAM_EXT | |
20828 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
20829 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
20830 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
20831 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
20832 | wx_cv_path_ifs wx_cv_program_ext \ | |
20833 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
20834 | ||
20835 | subdirs="demos samples utils contrib" | |
20836 | ||
20837 | ||
20838 | trap '' 1 2 15 | |
20839 | cat > confcache <<\EOF | |
20840 | # This file is a shell script that caches the results of configure | |
20841 | # tests run on this system so they can be shared between configure | |
20842 | # scripts and configure runs. It is not useful on other systems. | |
20843 | # If it contains results you don't want to keep, you may remove or edit it. | |
20844 | # | |
20845 | # By default, configure uses ./config.cache as the cache file, | |
20846 | # creating it if it does not exist already. You can give configure | |
20847 | # the --cache-file=FILE option to use a different cache file; that is | |
20848 | # what configure does when it calls configure scripts in | |
20849 | # subdirectories, so they share the cache. | |
20850 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
20851 | # config.status only pays attention to the cache file if you give it the | |
20852 | # --recheck option to rerun configure. | |
20853 | # | |
20854 | EOF | |
20855 | # The following way of writing the cache mishandles newlines in values, | |
20856 | # but we know of no workaround that is simple, portable, and efficient. | |
20857 | # So, don't put newlines in cache variables' values. | |
20858 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20859 | # and sets the high bit in the cache file unless we assign to the vars. | |
20860 | (set) 2>&1 | | |
20861 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20862 | *ac_space=\ *) | |
20863 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
20864 | # turns \\\\ into \\, and sed turns \\ into \). | |
20865 | sed -n \ | |
20866 | -e "s/'/'\\\\''/g" \ | |
20867 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
20868 | ;; | |
20869 | *) | |
20870 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20871 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
20872 | ;; | |
20873 | esac >> confcache | |
20874 | if cmp -s $cache_file confcache; then | |
20875 | : | |
20876 | else | |
20877 | if test -w $cache_file; then | |
20878 | echo "updating cache $cache_file" | |
20879 | cat confcache > $cache_file | |
20880 | else | |
20881 | echo "not updating unwritable cache $cache_file" | |
20882 | fi | |
20883 | fi | |
20884 | rm -f confcache | |
20885 | ||
20886 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
20887 | ||
20888 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
20889 | # Let make expand exec_prefix. | |
20890 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20891 | ||
20892 | # Any assignment to VPATH causes Sun make to only execute | |
20893 | # the first set of double-colon rules, so remove it if not needed. | |
20894 | # If there is a colon in the path, we need to keep it. | |
20895 | if test "x$srcdir" = x.; then | |
20896 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
20897 | fi | |
20898 | ||
20899 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
20900 | ||
20901 | DEFS=-DHAVE_CONFIG_H | |
20902 | ||
20903 | # Without the "./", some shells look in PATH for config.status. | |
20904 | : ${CONFIG_STATUS=./config.status} | |
20905 | ||
20906 | echo creating $CONFIG_STATUS | |
20907 | rm -f $CONFIG_STATUS | |
20908 | cat > $CONFIG_STATUS <<EOF | |
20909 | #! /bin/sh | |
20910 | # Generated automatically by configure. | |
20911 | # Run this file to recreate the current configuration. | |
20912 | # This directory was configured as follows, | |
20913 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20914 | # | |
20915 | # $0 $ac_configure_args | |
20916 | # | |
20917 | # Compiler output produced by configure, useful for debugging | |
20918 | # configure, is in ./config.log if it exists. | |
20919 | ||
20920 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
20921 | for ac_option | |
20922 | do | |
20923 | case "\$ac_option" in | |
20924 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
20925 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
20926 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
20927 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
20928 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
20929 | exit 0 ;; | |
20930 | -help | --help | --hel | --he | --h) | |
20931 | echo "\$ac_cs_usage"; exit 0 ;; | |
20932 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
20933 | esac | |
20934 | done | |
20935 | ||
20936 | ac_given_srcdir=$srcdir | |
20937 | ac_given_INSTALL="$INSTALL" | |
20938 | ||
20939 | trap 'rm -fr `echo " | |
20940 | wx-config | |
20941 | src/make.env | |
20942 | src/makeprog.env | |
20943 | src/makelib.env | |
20944 | Makefile | |
20945 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
20946 | EOF | |
20947 | cat >> $CONFIG_STATUS <<EOF | |
20948 | ||
20949 | # Protect against being on the right side of a sed subst in config.status. | |
20950 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
20951 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
20952 | $ac_vpsub | |
20953 | $extrasub | |
20954 | s%@SHELL@%$SHELL%g | |
20955 | s%@CFLAGS@%$CFLAGS%g | |
20956 | s%@CPPFLAGS@%$CPPFLAGS%g | |
20957 | s%@CXXFLAGS@%$CXXFLAGS%g | |
20958 | s%@FFLAGS@%$FFLAGS%g | |
20959 | s%@DEFS@%$DEFS%g | |
20960 | s%@LDFLAGS@%$LDFLAGS%g | |
20961 | s%@LIBS@%$LIBS%g | |
20962 | s%@exec_prefix@%$exec_prefix%g | |
20963 | s%@prefix@%$prefix%g | |
20964 | s%@program_transform_name@%$program_transform_name%g | |
20965 | s%@bindir@%$bindir%g | |
20966 | s%@sbindir@%$sbindir%g | |
20967 | s%@libexecdir@%$libexecdir%g | |
20968 | s%@datadir@%$datadir%g | |
20969 | s%@sysconfdir@%$sysconfdir%g | |
20970 | s%@sharedstatedir@%$sharedstatedir%g | |
20971 | s%@localstatedir@%$localstatedir%g | |
20972 | s%@libdir@%$libdir%g | |
20973 | s%@includedir@%$includedir%g | |
20974 | s%@oldincludedir@%$oldincludedir%g | |
20975 | s%@infodir@%$infodir%g | |
20976 | s%@mandir@%$mandir%g | |
20977 | s%@host@%$host%g | |
20978 | s%@host_alias@%$host_alias%g | |
20979 | s%@host_cpu@%$host_cpu%g | |
20980 | s%@host_vendor@%$host_vendor%g | |
20981 | s%@host_os@%$host_os%g | |
20982 | s%@target@%$target%g | |
20983 | s%@target_alias@%$target_alias%g | |
20984 | s%@target_cpu@%$target_cpu%g | |
20985 | s%@target_vendor@%$target_vendor%g | |
20986 | s%@target_os@%$target_os%g | |
20987 | s%@build@%$build%g | |
20988 | s%@build_alias@%$build_alias%g | |
20989 | s%@build_cpu@%$build_cpu%g | |
20990 | s%@build_vendor@%$build_vendor%g | |
20991 | s%@build_os@%$build_os%g | |
20992 | s%@CC@%$CC%g | |
20993 | s%@CPP@%$CPP%g | |
20994 | s%@CXX@%$CXX%g | |
20995 | s%@RANLIB@%$RANLIB%g | |
20996 | s%@AR@%$AR%g | |
20997 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
20998 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
20999 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
21000 | s%@STRIP@%$STRIP%g | |
21001 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
21002 | s%@YACC@%$YACC%g | |
21003 | s%@LEX@%$LEX%g | |
21004 | s%@LEXLIB@%$LEXLIB%g | |
21005 | s%@LN_S@%$LN_S%g | |
21006 | s%@CXXCPP@%$CXXCPP%g | |
21007 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
21008 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
21009 | s%@GTK_LIBS@%$GTK_LIBS%g | |
21010 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
21011 | s%@X_CFLAGS@%$X_CFLAGS%g | |
21012 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
21013 | s%@X_LIBS@%$X_LIBS%g | |
21014 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
21015 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g | |
21016 | s%@RESCOMP@%$RESCOMP%g | |
21017 | s%@DEREZ@%$DEREZ%g | |
21018 | s%@LIBICONV@%$LIBICONV%g | |
21019 | s%@LEX_STEM@%$LEX_STEM%g | |
21020 | s%@PATH_IFS@%$PATH_IFS%g | |
21021 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
21022 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
21023 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
21024 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
21025 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
21026 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g | |
21027 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
21028 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
21029 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
21030 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
21031 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
21032 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
21033 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
21034 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
21035 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
21036 | s%@WX_ALL@%$WX_ALL%g | |
21037 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
21038 | s%@SHARED_LD@%$SHARED_LD%g | |
21039 | s%@PIC_FLAG@%$PIC_FLAG%g | |
21040 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
21041 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
21042 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
21043 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
21044 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
21045 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
21046 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
21047 | s%@USE_GUI@%$USE_GUI%g | |
21048 | s%@AFMINSTALL@%$AFMINSTALL%g | |
21049 | s%@TOOLKIT@%$TOOLKIT%g | |
21050 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
21051 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
21052 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
21053 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
21054 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
21055 | s%@cross_compiling@%$cross_compiling%g | |
21056 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
21057 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
21058 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
21059 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
21060 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
21061 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
21062 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
21063 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
21064 | s%@GUIDIST@%$GUIDIST%g | |
21065 | s%@PORT_FILES@%$PORT_FILES%g | |
21066 | s%@DISTDIR@%$DISTDIR%g | |
21067 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
21068 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
21069 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g | |
21070 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
21071 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
21072 | s%@EXTRADEFS@%$EXTRADEFS%g | |
21073 | s%@RESFLAGS@%$RESFLAGS%g | |
21074 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
21075 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
21076 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
21077 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
21078 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
21079 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
21080 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g | |
21081 | s%@DLLTOOL@%$DLLTOOL%g | |
21082 | s%@AS@%$AS%g | |
21083 | s%@NM@%$NM%g | |
21084 | s%@LD@%$LD%g | |
21085 | s%@MAKEINFO@%$MAKEINFO%g | |
21086 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
21087 | s%@SET_MAKE@%$SET_MAKE%g | |
21088 | s%@subdirs@%$subdirs%g | |
21089 | ||
21090 | CEOF | |
21091 | EOF | |
21092 | ||
21093 | cat >> $CONFIG_STATUS <<\EOF | |
21094 | ||
21095 | # Split the substitutions into bite-sized pieces for seds with | |
21096 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
21097 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
21098 | ac_file=1 # Number of current file. | |
21099 | ac_beg=1 # First line for current file. | |
21100 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
21101 | ac_more_lines=: | |
21102 | ac_sed_cmds="" | |
21103 | while $ac_more_lines; do | |
21104 | if test $ac_beg -gt 1; then | |
21105 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
21106 | else | |
21107 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
21108 | fi | |
21109 | if test ! -s conftest.s$ac_file; then | |
21110 | ac_more_lines=false | |
21111 | rm -f conftest.s$ac_file | |
21112 | else | |
21113 | if test -z "$ac_sed_cmds"; then | |
21114 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
21115 | else | |
21116 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
21117 | fi | |
21118 | ac_file=`expr $ac_file + 1` | |
21119 | ac_beg=$ac_end | |
21120 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
21121 | fi | |
21122 | done | |
21123 | if test -z "$ac_sed_cmds"; then | |
21124 | ac_sed_cmds=cat | |
21125 | fi | |
21126 | EOF | |
21127 | ||
21128 | cat >> $CONFIG_STATUS <<EOF | |
21129 | ||
21130 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
21131 | src/make.env | |
21132 | src/makeprog.env | |
21133 | src/makelib.env | |
21134 | Makefile | |
21135 | "} | |
21136 | EOF | |
21137 | cat >> $CONFIG_STATUS <<\EOF | |
21138 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
21139 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
21140 | case "$ac_file" in | |
21141 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21142 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21143 | *) ac_file_in="${ac_file}.in" ;; | |
21144 | esac | |
21145 | ||
21146 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
21147 | ||
21148 | # Remove last slash and all that follows it. Not all systems have dirname. | |
21149 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21150 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21151 | # The file is in a subdirectory. | |
21152 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
21153 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
21154 | # A "../" for each directory in $ac_dir_suffix. | |
21155 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
21156 | else | |
21157 | ac_dir_suffix= ac_dots= | |
21158 | fi | |
21159 | ||
21160 | case "$ac_given_srcdir" in | |
21161 | .) srcdir=. | |
21162 | if test -z "$ac_dots"; then top_srcdir=. | |
21163 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
21164 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
21165 | *) # Relative path. | |
21166 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
21167 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
21168 | esac | |
21169 | ||
21170 | case "$ac_given_INSTALL" in | |
21171 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21172 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21173 | esac | |
21174 | ||
21175 | echo creating "$ac_file" | |
21176 | rm -f "$ac_file" | |
21177 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
21178 | case "$ac_file" in | |
21179 | *Makefile*) ac_comsub="1i\\ | |
21180 | # $configure_input" ;; | |
21181 | *) ac_comsub= ;; | |
21182 | esac | |
21183 | ||
21184 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
21185 | sed -e "$ac_comsub | |
21186 | s%@configure_input@%$configure_input%g | |
21187 | s%@srcdir@%$srcdir%g | |
21188 | s%@top_srcdir@%$top_srcdir%g | |
21189 | s%@INSTALL@%$INSTALL%g | |
21190 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
21191 | fi; done | |
21192 | rm -f conftest.s* | |
21193 | ||
21194 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21195 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21196 | # | |
21197 | # ac_d sets the value in "#define NAME VALUE" lines. | |
21198 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
21199 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
21200 | ac_dC='\3' | |
21201 | ac_dD='%g' | |
21202 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
21203 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21204 | ac_uB='\([ ]\)%\1#\2define\3' | |
21205 | ac_uC=' ' | |
21206 | ac_uD='\4%g' | |
21207 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21208 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21209 | ac_eB='$%\1#\2define\3' | |
21210 | ac_eC=' ' | |
21211 | ac_eD='%g' | |
21212 | ||
21213 | if test "${CONFIG_HEADERS+set}" != set; then | |
21214 | EOF | |
21215 | cat >> $CONFIG_STATUS <<EOF | |
21216 | CONFIG_HEADERS="setup.h:setup.h.in" | |
21217 | EOF | |
21218 | cat >> $CONFIG_STATUS <<\EOF | |
21219 | fi | |
21220 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
21221 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
21222 | case "$ac_file" in | |
21223 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21224 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21225 | *) ac_file_in="${ac_file}.in" ;; | |
21226 | esac | |
21227 | ||
21228 | echo creating $ac_file | |
21229 | ||
21230 | rm -f conftest.frag conftest.in conftest.out | |
21231 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
21232 | cat $ac_file_inputs > conftest.in | |
21233 | ||
21234 | EOF | |
21235 | ||
21236 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
21237 | # the proper values into config.h.in to produce config.h. And first: | |
21238 | # Protect against being on the right side of a sed subst in config.status. | |
21239 | # Protect against being in an unquoted here document in config.status. | |
21240 | rm -f conftest.vals | |
21241 | cat > conftest.hdr <<\EOF | |
21242 | s/[\\&%]/\\&/g | |
21243 | s%[\\$`]%\\&%g | |
21244 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
21245 | s%ac_d%ac_u%gp | |
21246 | s%ac_u%ac_e%gp | |
21247 | EOF | |
21248 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
21249 | rm -f conftest.hdr | |
21250 | ||
21251 | # This sed command replaces #undef with comments. This is necessary, for | |
21252 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21253 | # on some systems where configure will not decide to define it. | |
21254 | cat >> conftest.vals <<\EOF | |
21255 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
21256 | EOF | |
21257 | ||
21258 | # Break up conftest.vals because some shells have a limit on | |
21259 | # the size of here documents, and old seds have small limits too. | |
21260 | ||
21261 | rm -f conftest.tail | |
21262 | while : | |
21263 | do | |
21264 | ac_lines=`grep -c . conftest.vals` | |
21265 | # grep -c gives empty output for an empty file on some AIX systems. | |
21266 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
21267 | # Write a limited-size here document to conftest.frag. | |
21268 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
21269 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
21270 | echo 'CEOF | |
21271 | sed -f conftest.frag conftest.in > conftest.out | |
21272 | rm -f conftest.in | |
21273 | mv conftest.out conftest.in | |
21274 | ' >> $CONFIG_STATUS | |
21275 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
21276 | rm -f conftest.vals | |
21277 | mv conftest.tail conftest.vals | |
21278 | done | |
21279 | rm -f conftest.vals | |
21280 | ||
21281 | cat >> $CONFIG_STATUS <<\EOF | |
21282 | rm -f conftest.frag conftest.h | |
21283 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
21284 | cat conftest.in >> conftest.h | |
21285 | rm -f conftest.in | |
21286 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
21287 | echo "$ac_file is unchanged" | |
21288 | rm -f conftest.h | |
21289 | else | |
21290 | # Remove last slash and all that follows it. Not all systems have dirname. | |
21291 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21292 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21293 | # The file is in a subdirectory. | |
21294 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
21295 | fi | |
21296 | rm -f $ac_file | |
21297 | mv conftest.h $ac_file | |
21298 | fi | |
21299 | fi; done | |
21300 | ||
21301 | EOF | |
21302 | cat >> $CONFIG_STATUS <<EOF | |
21303 | ||
21304 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
21305 | LN_S="${LN_S}" | |
21306 | ||
21307 | ||
21308 | EOF | |
21309 | cat >> $CONFIG_STATUS <<\EOF | |
21310 | ||
21311 | if test ! -h wx-config; then | |
21312 | chmod +x wx-config | |
21313 | mv wx-config wx${TOOLCHAIN_NAME}-config | |
21314 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
21315 | fi | |
21316 | ||
21317 | if test ! -d lib; then | |
21318 | mkdir lib | |
21319 | fi | |
21320 | if test ! -d lib/wx; then | |
21321 | mkdir lib/wx | |
21322 | fi | |
21323 | if test ! -d lib/wx/include; then | |
21324 | mkdir lib/wx/include | |
21325 | fi | |
21326 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then | |
21327 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
21328 | fi | |
21329 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then | |
21330 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
21331 | fi | |
21332 | if test -f setup.h; then | |
21333 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h | |
21334 | fi | |
21335 | ||
21336 | exit 0 | |
21337 | EOF | |
21338 | chmod +x $CONFIG_STATUS | |
21339 | rm -fr confdefs* $ac_clean_files | |
21340 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
21341 | ||
21342 | if test "$no_recursion" != yes; then | |
21343 | ||
21344 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21345 | ac_sub_configure_args= | |
21346 | ac_prev= | |
21347 | for ac_arg in $ac_configure_args; do | |
21348 | if test -n "$ac_prev"; then | |
21349 | ac_prev= | |
21350 | continue | |
21351 | fi | |
21352 | case "$ac_arg" in | |
21353 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
21354 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21355 | ac_prev=cache_file ;; | |
21356 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
21357 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
21358 | ;; | |
21359 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21360 | ac_prev=srcdir ;; | |
21361 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21362 | ;; | |
21363 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21364 | esac | |
21365 | done | |
21366 | ||
21367 | for ac_config_dir in demos samples utils contrib; do | |
21368 | ||
21369 | # Do not complain, so a configure script can configure whichever | |
21370 | # parts of a large source tree are present. | |
21371 | if test ! -d $srcdir/$ac_config_dir; then | |
21372 | continue | |
21373 | fi | |
21374 | ||
21375 | echo configuring in $ac_config_dir | |
21376 | ||
21377 | case "$srcdir" in | |
21378 | .) ;; | |
21379 | *) | |
21380 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
21381 | else | |
21382 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21383 | fi | |
21384 | ;; | |
21385 | esac | |
21386 | ||
21387 | ac_popdir=`pwd` | |
21388 | cd $ac_config_dir | |
21389 | ||
21390 | # A "../" for each directory in /$ac_config_dir. | |
21391 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
21392 | ||
21393 | case "$srcdir" in | |
21394 | .) # No --srcdir option. We are building in place. | |
21395 | ac_sub_srcdir=$srcdir ;; | |
21396 | /*) # Absolute path. | |
21397 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
21398 | *) # Relative path. | |
21399 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
21400 | esac | |
21401 | ||
21402 | # Check for guested configure; otherwise get Cygnus style configure. | |
21403 | if test -f $ac_sub_srcdir/configure; then | |
21404 | ac_sub_configure=$ac_sub_srcdir/configure | |
21405 | elif test -f $ac_sub_srcdir/configure.in; then | |
21406 | ac_sub_configure=$ac_configure | |
21407 | else | |
21408 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
21409 | ac_sub_configure= | |
21410 | fi | |
21411 | ||
21412 | # The recursion is here. | |
21413 | if test -n "$ac_sub_configure"; then | |
21414 | ||
21415 | # Make the cache file name correct relative to the subdirectory. | |
21416 | case "$cache_file" in | |
21417 | /*) ac_sub_cache_file=$cache_file ;; | |
21418 | *) # Relative path. | |
21419 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
21420 | esac | |
21421 | case "$ac_given_INSTALL" in | |
21422 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21423 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21424 | esac | |
21425 | ||
21426 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
21427 | # The eval makes quoting arguments work. | |
21428 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
21429 | then : | |
21430 | else | |
21431 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21432 | fi | |
21433 | fi | |
21434 | ||
21435 | cd $ac_popdir | |
21436 | done | |
21437 | fi | |
21438 | ||
21439 |