]>
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 | # Configure paths for GTK+ | |
40 | # Owen Taylor 97-11-3 | |
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 | # Guess values for system-dependent variables and create Makefiles. | |
48 | # Generated automatically using autoconf version 2.13 | |
49 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
50 | # | |
51 | # This configure script is free software; the Free Software Foundation | |
52 | # gives unlimited permission to copy, distribute and modify it. | |
53 | ||
54 | # Defaults: | |
55 | ac_help= | |
56 | ac_default_prefix=/usr/local | |
57 | # Any additions from configure.in: | |
58 | ac_help="$ac_help | |
59 | --enable-gui use GUI classes" | |
60 | ac_help="$ac_help | |
61 | --enable-universal use wxWindows GUI controls instead of native ones" | |
62 | ac_help="$ac_help | |
63 | --with-gtk use GTK+" | |
64 | ac_help="$ac_help | |
65 | --with-motif use Motif/Lesstif" | |
66 | ac_help="$ac_help | |
67 | --with-mac use Mac OS X" | |
68 | ac_help="$ac_help | |
69 | --with-wine use WINE" | |
70 | ac_help="$ac_help | |
71 | --with-cygwin use Cygwin for MS-Windows" | |
72 | ac_help="$ac_help | |
73 | --with-mingw use GCC Minimal MS-Windows" | |
74 | ac_help="$ac_help | |
75 | --with-pm use OS/2 Presentation Manager" | |
76 | ac_help="$ac_help | |
77 | --with-mgl use MGL" | |
78 | ac_help="$ac_help | |
79 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
80 | ac_help="$ac_help | |
81 | --with-libpng use libpng (PNG image format)" | |
82 | ac_help="$ac_help | |
83 | --with-libjpeg use libjpeg (JPEG file format)" | |
84 | ac_help="$ac_help | |
85 | --with-libtiff use libtiff (TIFF file format)" | |
86 | ac_help="$ac_help | |
87 | --with-freetype use freetype (font rasterizer)" | |
88 | ac_help="$ac_help | |
89 | --with-opengl use OpenGL (or Mesa)" | |
90 | ac_help="$ac_help | |
91 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" | |
92 | ac_help="$ac_help | |
93 | --with-zlib use zlib for LZW compression" | |
94 | ac_help="$ac_help | |
95 | --with-odbc use the IODBC and wxODBC classes" | |
96 | ac_help="$ac_help | |
97 | --enable-shared create shared library code" | |
98 | ac_help="$ac_help | |
99 | --enable-burnt_name create set name in shared library " | |
100 | ac_help="$ac_help | |
101 | --enable-optimise create optimised code" | |
102 | ac_help="$ac_help | |
103 | --enable-debug same as debug_flag and debug_info" | |
104 | ac_help="$ac_help | |
105 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
106 | ac_help="$ac_help | |
107 | --enable-debug_info create code with debugging information" | |
108 | ac_help="$ac_help | |
109 | --enable-debug_gdb create code with extra GDB debugging information" | |
110 | ac_help="$ac_help | |
111 | --enable-debug_cntxt use wxDebugContext" | |
112 | ac_help="$ac_help | |
113 | --enable-mem_tracing create code with memory tracing" | |
114 | ac_help="$ac_help | |
115 | --enable-profile create code with profiling information" | |
116 | ac_help="$ac_help | |
117 | --enable-no_rtti create code without RTTI information" | |
118 | ac_help="$ac_help | |
119 | --enable-no_exceptions create code without exceptions information" | |
120 | ac_help="$ac_help | |
121 | --enable-permissive compile code disregarding strict ANSI" | |
122 | ac_help="$ac_help | |
123 | --enable-no_deps create code without dependency information" | |
124 | ac_help="$ac_help | |
125 | --enable-compat20 enable wxWin 2.0 compatibility" | |
126 | ac_help="$ac_help | |
127 | --enable-compat22 enable wxWin 2.2 compatibility" | |
128 | ac_help="$ac_help | |
129 | --enable-intl use internationalization system" | |
130 | ac_help="$ac_help | |
131 | --enable-config use wxConfig (and derived) classes" | |
132 | ac_help="$ac_help | |
133 | --enable-sockets use socket/network classes" | |
134 | ac_help="$ac_help | |
135 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
136 | ac_help="$ac_help | |
137 | --enable-cmdline use wxCmdLineParser class" | |
138 | ac_help="$ac_help | |
139 | --enable-datetime use wxDateTime class" | |
140 | ac_help="$ac_help | |
141 | --enable-timedate use obsolete wxDate/wxTime classes" | |
142 | ac_help="$ac_help | |
143 | --enable-stopwatch use wxStopWatch class" | |
144 | ac_help="$ac_help | |
145 | --enable-dialupman use dialup network classes" | |
146 | ac_help="$ac_help | |
147 | --enable-apple_ieee use the Apple IEEE codec" | |
148 | ac_help="$ac_help | |
149 | --enable-timer use wxTimer class" | |
150 | ac_help="$ac_help | |
151 | --enable-wave use wxWave class" | |
152 | ac_help="$ac_help | |
153 | --enable-fraction use wxFraction class" | |
154 | ac_help="$ac_help | |
155 | --enable-dynlib use wxLibrary class for DLL loading" | |
156 | ac_help="$ac_help | |
157 | --enable-longlong use wxLongLong class" | |
158 | ac_help="$ac_help | |
159 | --enable-geometry use geometry class" | |
160 | ac_help="$ac_help | |
161 | --enable-log use logging system" | |
162 | ac_help="$ac_help | |
163 | --enable-streams use wxStream etc classes" | |
164 | ac_help="$ac_help | |
165 | --enable-file use wxFile classes" | |
166 | ac_help="$ac_help | |
167 | --enable-ffile use wxFFile classes" | |
168 | ac_help="$ac_help | |
169 | --enable-textfile use wxTextFile classes" | |
170 | ac_help="$ac_help | |
171 | --enable-fontmap use font encodings conversion classes" | |
172 | ac_help="$ac_help | |
173 | --enable-unicode compile wxString with Unicode support" | |
174 | ac_help="$ac_help | |
175 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
176 | ac_help="$ac_help | |
177 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
178 | ac_help="$ac_help | |
179 | --enable-std_iostreams use standard C++ stream classes" | |
180 | ac_help="$ac_help | |
181 | --enable-filesystem use virtual file systems classes" | |
182 | ac_help="$ac_help | |
183 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
184 | ac_help="$ac_help | |
185 | --enable-fs_zip use virtual ZIP filesystems" | |
186 | ac_help="$ac_help | |
187 | --enable-zipstream use wxZipInputStream" | |
188 | ac_help="$ac_help | |
189 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
190 | ac_help="$ac_help | |
191 | --enable-snglinst use wxSingleInstanceChecker class" | |
192 | ac_help="$ac_help | |
193 | --enable-mimetypes use wxMimeTypesManager" | |
194 | ac_help="$ac_help | |
195 | --enable-threads use threads" | |
196 | ac_help="$ac_help | |
197 | --enable-serial use class serialization" | |
198 | ac_help="$ac_help | |
199 | --enable-docview use document view architecture" | |
200 | ac_help="$ac_help | |
201 | --enable-help use help (using external browser at present)" | |
202 | ac_help="$ac_help | |
203 | --enable-constraints use layout-constraints system" | |
204 | ac_help="$ac_help | |
205 | --enable-printarch use printing architecture" | |
206 | ac_help="$ac_help | |
207 | --enable-mdi use multiple document interface architecture" | |
208 | ac_help="$ac_help | |
209 | --enable-loggui use standard GUI logger" | |
210 | ac_help="$ac_help | |
211 | --enable-logwin use wxLogWindow" | |
212 | ac_help="$ac_help | |
213 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
214 | ac_help="$ac_help | |
215 | --enable-prologio use Prolog IO library" | |
216 | ac_help="$ac_help | |
217 | --enable-resources use wxWindows resources" | |
218 | ac_help="$ac_help | |
219 | --enable-xresources use X resources for save (default for gtk+)" | |
220 | ac_help="$ac_help | |
221 | --enable-clipboard use wxClipboard classes" | |
222 | ac_help="$ac_help | |
223 | --enable-dnd use Drag'n'Drop classes" | |
224 | ac_help="$ac_help | |
225 | --enable-metafile use win32 metafiles" | |
226 | ac_help="$ac_help | |
227 | --enable-wxtree make wxTree library" | |
228 | ac_help="$ac_help | |
229 | --enable-controls use all usual controls" | |
230 | ac_help="$ac_help | |
231 | --enable-accel use accelerators" | |
232 | ac_help="$ac_help | |
233 | --enable-button use wxButton class" | |
234 | ac_help="$ac_help | |
235 | --enable-bmpbutton use wxBitmapButton class" | |
236 | ac_help="$ac_help | |
237 | --enable-calendar use wxCalendarCtrl class" | |
238 | ac_help="$ac_help | |
239 | --enable-caret use wxCaret class" | |
240 | ac_help="$ac_help | |
241 | --enable-checkbox use wxCheckBox class" | |
242 | ac_help="$ac_help | |
243 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
244 | ac_help="$ac_help | |
245 | --enable-choice use wxChoice class" | |
246 | ac_help="$ac_help | |
247 | --enable-combobox use wxComboBox classes" | |
248 | ac_help="$ac_help | |
249 | --enable-gauge use wxGauge class" | |
250 | ac_help="$ac_help | |
251 | --enable-grid use wxGrid class" | |
252 | ac_help="$ac_help | |
253 | --enable-newgrid use new wxGrid class" | |
254 | ac_help="$ac_help | |
255 | --enable-imaglist use wxImageList class" | |
256 | ac_help="$ac_help | |
257 | --enable-listbox use wxListBox class" | |
258 | ac_help="$ac_help | |
259 | --enable-listctrl use wxListCtrl class" | |
260 | ac_help="$ac_help | |
261 | --enable-notebook use wxNotebook class" | |
262 | ac_help="$ac_help | |
263 | --enable-radiobox use wxRadioBox class" | |
264 | ac_help="$ac_help | |
265 | --enable-radiobtn use wxRadioButton class" | |
266 | ac_help="$ac_help | |
267 | --enable-sash use wxSashWindow class" | |
268 | ac_help="$ac_help | |
269 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
270 | ac_help="$ac_help | |
271 | --enable-slider use wxSlider class" | |
272 | ac_help="$ac_help | |
273 | --enable-spinbtn use wxSpinButton class" | |
274 | ac_help="$ac_help | |
275 | --enable-spinctrl use wxSpinCtrl class" | |
276 | ac_help="$ac_help | |
277 | --enable-splitter use wxSplitterWindow class" | |
278 | ac_help="$ac_help | |
279 | --enable-statbmp use wxStaticBitmap class" | |
280 | ac_help="$ac_help | |
281 | --enable-statbox use wxStaticBox class" | |
282 | ac_help="$ac_help | |
283 | --enable-statline use wxStaticLine class" | |
284 | ac_help="$ac_help | |
285 | --enable-stattext use wxStaticText class" | |
286 | ac_help="$ac_help | |
287 | --enable-statusbar use wxStatusBar class" | |
288 | ac_help="$ac_help | |
289 | --enable-tabdialog use wxTabControl class" | |
290 | ac_help="$ac_help | |
291 | --enable-textctrl use wxTextCtrl class" | |
292 | ac_help="$ac_help | |
293 | --enable-togglebtn use wxToggleButton class" | |
294 | ac_help="$ac_help | |
295 | --enable-toolbar use wxToolBar class" | |
296 | ac_help="$ac_help | |
297 | --enable-tbarnative use native wxToolBar class" | |
298 | ac_help="$ac_help | |
299 | --enable-tbarsmpl use wxToolBarSimple class" | |
300 | ac_help="$ac_help | |
301 | --enable-treectrl use wxTreeCtrl class" | |
302 | ac_help="$ac_help | |
303 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
304 | ac_help="$ac_help | |
305 | --enable-choicedlg use wxChoiceDialog" | |
306 | ac_help="$ac_help | |
307 | --enable-coldlg use wxColourDialog" | |
308 | ac_help="$ac_help | |
309 | --enable-filedlg use wxFileDialog" | |
310 | ac_help="$ac_help | |
311 | --enable-fontdlg use wxFontDialog" | |
312 | ac_help="$ac_help | |
313 | --enable-dirdlg use wxDirDialog" | |
314 | ac_help="$ac_help | |
315 | --enable-msgdlg use wxMessageDialog" | |
316 | ac_help="$ac_help | |
317 | --enable-numberdlg use wxNumberEntryDialog" | |
318 | ac_help="$ac_help | |
319 | --enable-textdlg use wxTextDialog" | |
320 | ac_help="$ac_help | |
321 | --enable-tipdlg use startup tips" | |
322 | ac_help="$ac_help | |
323 | --enable-progressdlg use wxProgressDialog" | |
324 | ac_help="$ac_help | |
325 | --enable-wizarddlg use wxWizard" | |
326 | ac_help="$ac_help | |
327 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
328 | ac_help="$ac_help | |
329 | --enable-miniframe use wxMiniFrame class" | |
330 | ac_help="$ac_help | |
331 | --enable-html use wxHTML sub-library" | |
332 | ac_help="$ac_help | |
333 | --enable-tooltips use wxToolTip class" | |
334 | ac_help="$ac_help | |
335 | --enable-splines use spline drawing code" | |
336 | ac_help="$ac_help | |
337 | --enable-validators use wxValidator and derived classes" | |
338 | ac_help="$ac_help | |
339 | --enable-busyinfo use wxBusyInfo" | |
340 | ac_help="$ac_help | |
341 | --enable-joystick compile in joystick support (Linux only)" | |
342 | ac_help="$ac_help | |
343 | --enable-metafiles use wxMetaFile (Windows only)" | |
344 | ac_help="$ac_help | |
345 | --enable-dragimage use wxDragImage" | |
346 | ac_help="$ac_help | |
347 | --enable-image use wxImage class" | |
348 | ac_help="$ac_help | |
349 | --enable-gif use gif images (GIF file format)" | |
350 | ac_help="$ac_help | |
351 | --enable-pcx use pcx images (PCX file format)" | |
352 | ac_help="$ac_help | |
353 | --enable-pnm use pnm images (PNM file format)" | |
354 | ac_help="$ac_help | |
355 | --enable-xpm use xpm images (XPM file format)" | |
356 | ac_help="$ac_help | |
357 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
358 | ac_help="$ac_help | |
359 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
360 | ac_help="$ac_help | |
361 | --disable-gtktest Do not try to compile and run a test GTK program" | |
362 | ac_help="$ac_help | |
363 | --with-x use the X Window System" | |
364 | ||
365 | # Initialize some variables set by options. | |
366 | # The variables have the same names as the options, with | |
367 | # dashes changed to underlines. | |
368 | build=NONE | |
369 | cache_file=./config.cache | |
370 | exec_prefix=NONE | |
371 | host=NONE | |
372 | no_create= | |
373 | nonopt=NONE | |
374 | no_recursion= | |
375 | prefix=NONE | |
376 | program_prefix=NONE | |
377 | program_suffix=NONE | |
378 | program_transform_name=s,x,x, | |
379 | silent= | |
380 | site= | |
381 | srcdir= | |
382 | target=NONE | |
383 | verbose= | |
384 | x_includes=NONE | |
385 | x_libraries=NONE | |
386 | bindir='${exec_prefix}/bin' | |
387 | sbindir='${exec_prefix}/sbin' | |
388 | libexecdir='${exec_prefix}/libexec' | |
389 | datadir='${prefix}/share' | |
390 | sysconfdir='${prefix}/etc' | |
391 | sharedstatedir='${prefix}/com' | |
392 | localstatedir='${prefix}/var' | |
393 | libdir='${exec_prefix}/lib' | |
394 | includedir='${prefix}/include' | |
395 | oldincludedir='/usr/include' | |
396 | infodir='${prefix}/info' | |
397 | mandir='${prefix}/man' | |
398 | ||
399 | # Initialize some other variables. | |
400 | subdirs= | |
401 | MFLAGS= MAKEFLAGS= | |
402 | SHELL=${CONFIG_SHELL-/bin/sh} | |
403 | # Maximum number of lines to put in a shell here document. | |
404 | ac_max_here_lines=12 | |
405 | ||
406 | ac_prev= | |
407 | for ac_option | |
408 | do | |
409 | ||
410 | # If the previous option needs an argument, assign it. | |
411 | if test -n "$ac_prev"; then | |
412 | eval "$ac_prev=\$ac_option" | |
413 | ac_prev= | |
414 | continue | |
415 | fi | |
416 | ||
417 | case "$ac_option" in | |
418 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
419 | *) ac_optarg= ;; | |
420 | esac | |
421 | ||
422 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
423 | ||
424 | case "$ac_option" in | |
425 | ||
426 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
427 | ac_prev=bindir ;; | |
428 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
429 | bindir="$ac_optarg" ;; | |
430 | ||
431 | -build | --build | --buil | --bui | --bu) | |
432 | ac_prev=build ;; | |
433 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
434 | build="$ac_optarg" ;; | |
435 | ||
436 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
437 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
438 | ac_prev=cache_file ;; | |
439 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
440 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
441 | cache_file="$ac_optarg" ;; | |
442 | ||
443 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
444 | ac_prev=datadir ;; | |
445 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
446 | | --da=*) | |
447 | datadir="$ac_optarg" ;; | |
448 | ||
449 | -disable-* | --disable-*) | |
450 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
451 | # Reject names that are not valid shell variable names. | |
452 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
453 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
454 | fi | |
455 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
456 | eval "enable_${ac_feature}=no" ;; | |
457 | ||
458 | -enable-* | --enable-*) | |
459 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
460 | # Reject names that are not valid shell variable names. | |
461 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
462 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
463 | fi | |
464 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
465 | case "$ac_option" in | |
466 | *=*) ;; | |
467 | *) ac_optarg=yes ;; | |
468 | esac | |
469 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
470 | ||
471 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
472 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
473 | | --exec | --exe | --ex) | |
474 | ac_prev=exec_prefix ;; | |
475 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
476 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
477 | | --exec=* | --exe=* | --ex=*) | |
478 | exec_prefix="$ac_optarg" ;; | |
479 | ||
480 | -gas | --gas | --ga | --g) | |
481 | # Obsolete; use --with-gas. | |
482 | with_gas=yes ;; | |
483 | ||
484 | -help | --help | --hel | --he) | |
485 | # Omit some internal or obsolete options to make the list less imposing. | |
486 | # This message is too long to be a string in the A/UX 3.1 sh. | |
487 | cat << EOF | |
488 | Usage: configure [options] [host] | |
489 | Options: [defaults in brackets after descriptions] | |
490 | Configuration: | |
491 | --cache-file=FILE cache test results in FILE | |
492 | --help print this message | |
493 | --no-create do not create output files | |
494 | --quiet, --silent do not print \`checking...' messages | |
495 | --version print the version of autoconf that created configure | |
496 | Directory and file names: | |
497 | --prefix=PREFIX install architecture-independent files in PREFIX | |
498 | [$ac_default_prefix] | |
499 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
500 | [same as prefix] | |
501 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
502 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
503 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
504 | --datadir=DIR read-only architecture-independent data in DIR | |
505 | [PREFIX/share] | |
506 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
507 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
508 | [PREFIX/com] | |
509 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
510 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
511 | --includedir=DIR C header files in DIR [PREFIX/include] | |
512 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
513 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
514 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
515 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
516 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
517 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
518 | --program-transform-name=PROGRAM | |
519 | run sed PROGRAM on installed program names | |
520 | EOF | |
521 | cat << EOF | |
522 | Host type: | |
523 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
524 | --host=HOST configure for HOST [guessed] | |
525 | --target=TARGET configure for TARGET [TARGET=HOST] | |
526 | Features and packages: | |
527 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
528 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
529 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
530 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
531 | --x-includes=DIR X include files are in DIR | |
532 | --x-libraries=DIR X library files are in DIR | |
533 | EOF | |
534 | if test -n "$ac_help"; then | |
535 | echo "--enable and --with options recognized:$ac_help" | |
536 | fi | |
537 | exit 0 ;; | |
538 | ||
539 | -host | --host | --hos | --ho) | |
540 | ac_prev=host ;; | |
541 | -host=* | --host=* | --hos=* | --ho=*) | |
542 | host="$ac_optarg" ;; | |
543 | ||
544 | -includedir | --includedir | --includedi | --included | --include \ | |
545 | | --includ | --inclu | --incl | --inc) | |
546 | ac_prev=includedir ;; | |
547 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
548 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
549 | includedir="$ac_optarg" ;; | |
550 | ||
551 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
552 | ac_prev=infodir ;; | |
553 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
554 | infodir="$ac_optarg" ;; | |
555 | ||
556 | -libdir | --libdir | --libdi | --libd) | |
557 | ac_prev=libdir ;; | |
558 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
559 | libdir="$ac_optarg" ;; | |
560 | ||
561 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
562 | | --libexe | --libex | --libe) | |
563 | ac_prev=libexecdir ;; | |
564 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
565 | | --libexe=* | --libex=* | --libe=*) | |
566 | libexecdir="$ac_optarg" ;; | |
567 | ||
568 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
569 | | --localstate | --localstat | --localsta | --localst \ | |
570 | | --locals | --local | --loca | --loc | --lo) | |
571 | ac_prev=localstatedir ;; | |
572 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
573 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
574 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
575 | localstatedir="$ac_optarg" ;; | |
576 | ||
577 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
578 | ac_prev=mandir ;; | |
579 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
580 | mandir="$ac_optarg" ;; | |
581 | ||
582 | -nfp | --nfp | --nf) | |
583 | # Obsolete; use --without-fp. | |
584 | with_fp=no ;; | |
585 | ||
586 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
587 | | --no-cr | --no-c) | |
588 | no_create=yes ;; | |
589 | ||
590 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
591 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
592 | no_recursion=yes ;; | |
593 | ||
594 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
595 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
596 | | --oldin | --oldi | --old | --ol | --o) | |
597 | ac_prev=oldincludedir ;; | |
598 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
599 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
600 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
601 | oldincludedir="$ac_optarg" ;; | |
602 | ||
603 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
604 | ac_prev=prefix ;; | |
605 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
606 | prefix="$ac_optarg" ;; | |
607 | ||
608 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
609 | | --program-pre | --program-pr | --program-p) | |
610 | ac_prev=program_prefix ;; | |
611 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
612 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
613 | program_prefix="$ac_optarg" ;; | |
614 | ||
615 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
616 | | --program-suf | --program-su | --program-s) | |
617 | ac_prev=program_suffix ;; | |
618 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
619 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
620 | program_suffix="$ac_optarg" ;; | |
621 | ||
622 | -program-transform-name | --program-transform-name \ | |
623 | | --program-transform-nam | --program-transform-na \ | |
624 | | --program-transform-n | --program-transform- \ | |
625 | | --program-transform | --program-transfor \ | |
626 | | --program-transfo | --program-transf \ | |
627 | | --program-trans | --program-tran \ | |
628 | | --progr-tra | --program-tr | --program-t) | |
629 | ac_prev=program_transform_name ;; | |
630 | -program-transform-name=* | --program-transform-name=* \ | |
631 | | --program-transform-nam=* | --program-transform-na=* \ | |
632 | | --program-transform-n=* | --program-transform-=* \ | |
633 | | --program-transform=* | --program-transfor=* \ | |
634 | | --program-transfo=* | --program-transf=* \ | |
635 | | --program-trans=* | --program-tran=* \ | |
636 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
637 | program_transform_name="$ac_optarg" ;; | |
638 | ||
639 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
640 | | -silent | --silent | --silen | --sile | --sil) | |
641 | silent=yes ;; | |
642 | ||
643 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
644 | ac_prev=sbindir ;; | |
645 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
646 | | --sbi=* | --sb=*) | |
647 | sbindir="$ac_optarg" ;; | |
648 | ||
649 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
650 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
651 | | --sharedst | --shareds | --shared | --share | --shar \ | |
652 | | --sha | --sh) | |
653 | ac_prev=sharedstatedir ;; | |
654 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
655 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
656 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
657 | | --sha=* | --sh=*) | |
658 | sharedstatedir="$ac_optarg" ;; | |
659 | ||
660 | -site | --site | --sit) | |
661 | ac_prev=site ;; | |
662 | -site=* | --site=* | --sit=*) | |
663 | site="$ac_optarg" ;; | |
664 | ||
665 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
666 | ac_prev=srcdir ;; | |
667 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
668 | srcdir="$ac_optarg" ;; | |
669 | ||
670 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
671 | | --syscon | --sysco | --sysc | --sys | --sy) | |
672 | ac_prev=sysconfdir ;; | |
673 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
674 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
675 | sysconfdir="$ac_optarg" ;; | |
676 | ||
677 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
678 | ac_prev=target ;; | |
679 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
680 | target="$ac_optarg" ;; | |
681 | ||
682 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
683 | verbose=yes ;; | |
684 | ||
685 | -version | --version | --versio | --versi | --vers) | |
686 | echo "configure generated by autoconf version 2.13" | |
687 | exit 0 ;; | |
688 | ||
689 | -with-* | --with-*) | |
690 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
691 | # Reject names that are not valid shell variable names. | |
692 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
693 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
694 | fi | |
695 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
696 | case "$ac_option" in | |
697 | *=*) ;; | |
698 | *) ac_optarg=yes ;; | |
699 | esac | |
700 | eval "with_${ac_package}='$ac_optarg'" ;; | |
701 | ||
702 | -without-* | --without-*) | |
703 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
704 | # Reject names that are not valid shell variable names. | |
705 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
706 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
707 | fi | |
708 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
709 | eval "with_${ac_package}=no" ;; | |
710 | ||
711 | --x) | |
712 | # Obsolete; use --with-x. | |
713 | with_x=yes ;; | |
714 | ||
715 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
716 | | --x-incl | --x-inc | --x-in | --x-i) | |
717 | ac_prev=x_includes ;; | |
718 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
719 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
720 | x_includes="$ac_optarg" ;; | |
721 | ||
722 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
723 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
724 | ac_prev=x_libraries ;; | |
725 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
726 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
727 | x_libraries="$ac_optarg" ;; | |
728 | ||
729 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
730 | ;; | |
731 | ||
732 | *) | |
733 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
734 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
735 | fi | |
736 | if test "x$nonopt" != xNONE; then | |
737 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
738 | fi | |
739 | nonopt="$ac_option" | |
740 | ;; | |
741 | ||
742 | esac | |
743 | done | |
744 | ||
745 | if test -n "$ac_prev"; then | |
746 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
747 | fi | |
748 | ||
749 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
750 | ||
751 | # File descriptor usage: | |
752 | # 0 standard input | |
753 | # 1 file creation | |
754 | # 2 errors and warnings | |
755 | # 3 some systems may open it to /dev/tty | |
756 | # 4 used on the Kubota Titan | |
757 | # 6 checking for... messages and results | |
758 | # 5 compiler messages saved in config.log | |
759 | if test "$silent" = yes; then | |
760 | exec 6>/dev/null | |
761 | else | |
762 | exec 6>&1 | |
763 | fi | |
764 | exec 5>./config.log | |
765 | ||
766 | echo "\ | |
767 | This file contains any messages produced by compilers while | |
768 | running configure, to aid debugging if configure makes a mistake. | |
769 | " 1>&5 | |
770 | ||
771 | # Strip out --no-create and --no-recursion so they do not pile up. | |
772 | # Also quote any args containing shell metacharacters. | |
773 | ac_configure_args= | |
774 | for ac_arg | |
775 | do | |
776 | case "$ac_arg" in | |
777 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
778 | | --no-cr | --no-c) ;; | |
779 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
780 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
781 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
782 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
783 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
784 | esac | |
785 | done | |
786 | ||
787 | # NLS nuisances. | |
788 | # Only set these to C if already set. These must not be set unconditionally | |
789 | # because not all systems understand e.g. LANG=C (notably SCO). | |
790 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
791 | # Non-C LC_CTYPE values break the ctype check. | |
792 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
793 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
794 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
795 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
796 | ||
797 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
798 | rm -rf conftest* confdefs.h | |
799 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
800 | echo > confdefs.h | |
801 | ||
802 | # A filename unique to this package, relative to the directory that | |
803 | # configure is in, which we can look for to find out if srcdir is correct. | |
804 | ac_unique_file=wx-config.in | |
805 | ||
806 | # Find the source files, if location was not specified. | |
807 | if test -z "$srcdir"; then | |
808 | ac_srcdir_defaulted=yes | |
809 | # Try the directory containing this script, then its parent. | |
810 | ac_prog=$0 | |
811 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
812 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
813 | srcdir=$ac_confdir | |
814 | if test ! -r $srcdir/$ac_unique_file; then | |
815 | srcdir=.. | |
816 | fi | |
817 | else | |
818 | ac_srcdir_defaulted=no | |
819 | fi | |
820 | if test ! -r $srcdir/$ac_unique_file; then | |
821 | if test "$ac_srcdir_defaulted" = yes; then | |
822 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
823 | else | |
824 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
825 | fi | |
826 | fi | |
827 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
828 | ||
829 | # Prefer explicitly selected file to automatically selected ones. | |
830 | if test -z "$CONFIG_SITE"; then | |
831 | if test "x$prefix" != xNONE; then | |
832 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
833 | else | |
834 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
835 | fi | |
836 | fi | |
837 | for ac_site_file in $CONFIG_SITE; do | |
838 | if test -r "$ac_site_file"; then | |
839 | echo "loading site script $ac_site_file" | |
840 | . "$ac_site_file" | |
841 | fi | |
842 | done | |
843 | ||
844 | if test -r "$cache_file"; then | |
845 | echo "loading cache $cache_file" | |
846 | . $cache_file | |
847 | else | |
848 | echo "creating cache $cache_file" | |
849 | > $cache_file | |
850 | fi | |
851 | ||
852 | ac_ext=c | |
853 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
854 | ac_cpp='$CPP $CPPFLAGS' | |
855 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
856 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
857 | cross_compiling=$ac_cv_prog_cc_cross | |
858 | ||
859 | ac_exeext= | |
860 | ac_objext=o | |
861 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
862 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
863 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
864 | ac_n= ac_c=' | |
865 | ' ac_t=' ' | |
866 | else | |
867 | ac_n=-n ac_c= ac_t= | |
868 | fi | |
869 | else | |
870 | ac_n= ac_c='\c' ac_t= | |
871 | fi | |
872 | ||
873 | ||
874 | ||
875 | ac_aux_dir= | |
876 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
877 | if test -f $ac_dir/install-sh; then | |
878 | ac_aux_dir=$ac_dir | |
879 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
880 | break | |
881 | elif test -f $ac_dir/install.sh; then | |
882 | ac_aux_dir=$ac_dir | |
883 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
884 | break | |
885 | fi | |
886 | done | |
887 | if test -z "$ac_aux_dir"; then | |
888 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
889 | fi | |
890 | ac_config_guess=$ac_aux_dir/config.guess | |
891 | ac_config_sub=$ac_aux_dir/config.sub | |
892 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
893 | ||
894 | ||
895 | # Do some error checking and defaulting for the host and target type. | |
896 | # The inputs are: | |
897 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
898 | # | |
899 | # The rules are: | |
900 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
901 | # same time. | |
902 | # 2. Host defaults to nonopt. | |
903 | # 3. If nonopt is not specified, then host defaults to the current host, | |
904 | # as determined by config.guess. | |
905 | # 4. Target and build default to nonopt. | |
906 | # 5. If nonopt is not specified, then target and build default to host. | |
907 | ||
908 | # The aliases save the names the user supplied, while $host etc. | |
909 | # will get canonicalized. | |
910 | case $host---$target---$nonopt in | |
911 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
912 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
913 | esac | |
914 | ||
915 | ||
916 | # Make sure we can run config.sub. | |
917 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
918 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
919 | fi | |
920 | ||
921 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
922 | echo "configure:923: checking host system type" >&5 | |
923 | ||
924 | host_alias=$host | |
925 | case "$host_alias" in | |
926 | NONE) | |
927 | case $nonopt in | |
928 | NONE) | |
929 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
930 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
931 | fi ;; | |
932 | *) host_alias=$nonopt ;; | |
933 | esac ;; | |
934 | esac | |
935 | ||
936 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
937 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
938 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
939 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
940 | echo "$ac_t""$host" 1>&6 | |
941 | ||
942 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
943 | echo "configure:944: checking target system type" >&5 | |
944 | ||
945 | target_alias=$target | |
946 | case "$target_alias" in | |
947 | NONE) | |
948 | case $nonopt in | |
949 | NONE) target_alias=$host_alias ;; | |
950 | *) target_alias=$nonopt ;; | |
951 | esac ;; | |
952 | esac | |
953 | ||
954 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
955 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
956 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
957 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
958 | echo "$ac_t""$target" 1>&6 | |
959 | ||
960 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
961 | echo "configure:962: checking build system type" >&5 | |
962 | ||
963 | build_alias=$build | |
964 | case "$build_alias" in | |
965 | NONE) | |
966 | case $nonopt in | |
967 | NONE) build_alias=$host_alias ;; | |
968 | *) build_alias=$nonopt ;; | |
969 | esac ;; | |
970 | esac | |
971 | ||
972 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
973 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
974 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
975 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
976 | echo "$ac_t""$build" 1>&6 | |
977 | ||
978 | test "$host_alias" != "$target_alias" && | |
979 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
980 | NONENONEs,x,x, && | |
981 | program_prefix=${target_alias}- | |
982 | ||
983 | ||
984 | ||
985 | WX_MAJOR_VERSION_NUMBER=2 | |
986 | WX_MINOR_VERSION_NUMBER=3 | |
987 | WX_RELEASE_NUMBER=1 | |
988 | ||
989 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
990 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
991 | ||
992 | WX_CURRENT=0 | |
993 | WX_REVISION=0 | |
994 | WX_AGE=0 | |
995 | ||
996 | ||
997 | ||
998 | USE_UNIX=1 | |
999 | USE_WIN32=0 | |
1000 | USE_BEOS=0 | |
1001 | USE_MAC=0 | |
1002 | ||
1003 | USE_LINUX= | |
1004 | USE_SGI= | |
1005 | USE_HPUX= | |
1006 | USE_SYSV= | |
1007 | USE_SVR4= | |
1008 | USE_AIX= | |
1009 | USE_SUN= | |
1010 | USE_SOLARIS= | |
1011 | USE_SUNOS= | |
1012 | USE_ALPHA= | |
1013 | USE_OSF= | |
1014 | USE_BSD= | |
1015 | USE_FREEBSD= | |
1016 | USE_OPENBSD= | |
1017 | USE_NETBSD= | |
1018 | USE_VMS= | |
1019 | USE_ULTRIX= | |
1020 | USE_CYGWIN= | |
1021 | USE_MINGW= | |
1022 | USE_DATA_GENERAL= | |
1023 | ||
1024 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1025 | ||
1026 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" | |
1027 | ||
1028 | DEFAULT_wxUSE_GTK=0 | |
1029 | DEFAULT_wxUSE_MAC=0 | |
1030 | DEFAULT_wxUSE_MGL=0 | |
1031 | DEFAULT_wxUSE_MOTIF=0 | |
1032 | DEFAULT_wxUSE_MSW=0 | |
1033 | DEFAULT_wxUSE_PM=0 | |
1034 | DEFAULT_wxUSE_WINE=0 | |
1035 | ||
1036 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1037 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1038 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1039 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1040 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1041 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1042 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
1043 | ||
1044 | PROGRAM_EXT= | |
1045 | ||
1046 | case "${host}" in | |
1047 | *-hp-hpux* ) | |
1048 | USE_HPUX=1 | |
1049 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1050 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1051 | cat >> confdefs.h <<\EOF | |
1052 | #define __HPUX__ 1 | |
1053 | EOF | |
1054 | ||
1055 | ;; | |
1056 | *-*-linux* ) | |
1057 | USE_LINUX=1 | |
1058 | cat >> confdefs.h <<\EOF | |
1059 | #define __LINUX__ 1 | |
1060 | EOF | |
1061 | ||
1062 | TMP=`uname -m` | |
1063 | if test "x$TMP" = "xalpha"; then | |
1064 | USE_ALPHA=1 | |
1065 | cat >> confdefs.h <<\EOF | |
1066 | #define __ALPHA__ 1 | |
1067 | EOF | |
1068 | ||
1069 | fi | |
1070 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1071 | ;; | |
1072 | *-*-irix5* | *-*-irix6* ) | |
1073 | USE_SGI=1 | |
1074 | USE_SVR4=1 | |
1075 | cat >> confdefs.h <<\EOF | |
1076 | #define __SGI__ 1 | |
1077 | EOF | |
1078 | ||
1079 | cat >> confdefs.h <<\EOF | |
1080 | #define __SVR4__ 1 | |
1081 | EOF | |
1082 | ||
1083 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1084 | ;; | |
1085 | *-*-solaris2* ) | |
1086 | USE_SUN=1 | |
1087 | USE_SOLARIS=1 | |
1088 | USE_SVR4=1 | |
1089 | cat >> confdefs.h <<\EOF | |
1090 | #define __SUN__ 1 | |
1091 | EOF | |
1092 | ||
1093 | cat >> confdefs.h <<\EOF | |
1094 | #define __SOLARIS__ 1 | |
1095 | EOF | |
1096 | ||
1097 | cat >> confdefs.h <<\EOF | |
1098 | #define __SVR4__ 1 | |
1099 | EOF | |
1100 | ||
1101 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1102 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1103 | ;; | |
1104 | *-*-sunos4* ) | |
1105 | USE_SUN=1 | |
1106 | USE_SUNOS=1 | |
1107 | USE_BSD=1 | |
1108 | cat >> confdefs.h <<\EOF | |
1109 | #define __SUN__ 1 | |
1110 | EOF | |
1111 | ||
1112 | cat >> confdefs.h <<\EOF | |
1113 | #define __SUNOS__ 1 | |
1114 | EOF | |
1115 | ||
1116 | cat >> confdefs.h <<\EOF | |
1117 | #define __BSD__ 1 | |
1118 | EOF | |
1119 | ||
1120 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1121 | ;; | |
1122 | *-*-freebsd*) | |
1123 | USE_BSD=1 | |
1124 | USE_FREEBSD=1 | |
1125 | cat >> confdefs.h <<\EOF | |
1126 | #define __FREEBSD__ 1 | |
1127 | EOF | |
1128 | ||
1129 | cat >> confdefs.h <<\EOF | |
1130 | #define __BSD__ 1 | |
1131 | EOF | |
1132 | ||
1133 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1134 | ;; | |
1135 | *-*-openbsd*) | |
1136 | USE_BSD=1 | |
1137 | USE_OPENBSD=1 | |
1138 | cat >> confdefs.h <<\EOF | |
1139 | #define __FREEBSD__ 1 | |
1140 | EOF | |
1141 | ||
1142 | cat >> confdefs.h <<\EOF | |
1143 | #define __OPENBSD__ 1 | |
1144 | EOF | |
1145 | ||
1146 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1147 | ;; | |
1148 | *-*-netbsd*) | |
1149 | USE_BSD=1 | |
1150 | USE_NETBSD=1 | |
1151 | cat >> confdefs.h <<\EOF | |
1152 | #define __FREEBSD__ 1 | |
1153 | EOF | |
1154 | ||
1155 | cat >> confdefs.h <<\EOF | |
1156 | #define __NETBSD__ 1 | |
1157 | EOF | |
1158 | ||
1159 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1160 | ;; | |
1161 | *-*-osf* ) | |
1162 | USE_ALPHA=1 | |
1163 | USE_OSF=1 | |
1164 | cat >> confdefs.h <<\EOF | |
1165 | #define __ALPHA__ 1 | |
1166 | EOF | |
1167 | ||
1168 | cat >> confdefs.h <<\EOF | |
1169 | #define __OSF__ 1 | |
1170 | EOF | |
1171 | ||
1172 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1173 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1174 | ;; | |
1175 | *-*-dgux5* ) | |
1176 | USE_ALPHA=1 | |
1177 | USE_SVR4=1 | |
1178 | cat >> confdefs.h <<\EOF | |
1179 | #define __ALPHA__ 1 | |
1180 | EOF | |
1181 | ||
1182 | cat >> confdefs.h <<\EOF | |
1183 | #define __SVR4__ 1 | |
1184 | EOF | |
1185 | ||
1186 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1187 | ;; | |
1188 | *-*-sysv5* ) | |
1189 | USE_SYSV=1 | |
1190 | USE_SVR4=1 | |
1191 | cat >> confdefs.h <<\EOF | |
1192 | #define __SYSV__ 1 | |
1193 | EOF | |
1194 | ||
1195 | cat >> confdefs.h <<\EOF | |
1196 | #define __SVR4__ 1 | |
1197 | EOF | |
1198 | ||
1199 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1200 | ;; | |
1201 | *-*-aix* ) | |
1202 | USE_AIX=1 | |
1203 | USE_SYSV=1 | |
1204 | USE_SVR4=1 | |
1205 | cat >> confdefs.h <<\EOF | |
1206 | #define __AIX__ 1 | |
1207 | EOF | |
1208 | ||
1209 | cat >> confdefs.h <<\EOF | |
1210 | #define __SYSV__ 1 | |
1211 | EOF | |
1212 | ||
1213 | cat >> confdefs.h <<\EOF | |
1214 | #define __SVR4__ 1 | |
1215 | EOF | |
1216 | ||
1217 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1218 | ;; | |
1219 | ||
1220 | *-*-cygwin* | *-*-mingw32* ) | |
1221 | USE_UNIX=0 | |
1222 | USE_WIN32=1 | |
1223 | cat >> confdefs.h <<\EOF | |
1224 | #define __WIN32__ 1 | |
1225 | EOF | |
1226 | ||
1227 | cat >> confdefs.h <<\EOF | |
1228 | #define __WIN95__ 1 | |
1229 | EOF | |
1230 | ||
1231 | cat >> confdefs.h <<\EOF | |
1232 | #define __WINDOWS__ 1 | |
1233 | EOF | |
1234 | ||
1235 | cat >> confdefs.h <<\EOF | |
1236 | #define __GNUWIN32__ 1 | |
1237 | EOF | |
1238 | ||
1239 | cat >> confdefs.h <<\EOF | |
1240 | #define STRICT 1 | |
1241 | EOF | |
1242 | ||
1243 | cat >> confdefs.h <<\EOF | |
1244 | #define WINVER 0x0400 | |
1245 | EOF | |
1246 | ||
1247 | PROGRAM_EXT=".exe" | |
1248 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1249 | ;; | |
1250 | ||
1251 | *-pc-os2_emx ) | |
1252 | cat >> confdefs.h <<\EOF | |
1253 | #define __EMX__ 1 | |
1254 | EOF | |
1255 | ||
1256 | PROGRAM_EXT=".exe" | |
1257 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1258 | ;; | |
1259 | ||
1260 | *-*-darwin* ) | |
1261 | USE_BSD=1 | |
1262 | USE_MAC=1 | |
1263 | cat >> confdefs.h <<\EOF | |
1264 | #define __MAC__ 1 | |
1265 | EOF | |
1266 | ||
1267 | cat >> confdefs.h <<\EOF | |
1268 | #define __BSD__ 1 | |
1269 | EOF | |
1270 | ||
1271 | cat >> confdefs.h <<\EOF | |
1272 | #define __UNIX__ 1 | |
1273 | EOF | |
1274 | ||
1275 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1276 | ;; | |
1277 | ||
1278 | *-*-beos* ) | |
1279 | USE_BEOS=1 | |
1280 | cat >> confdefs.h <<\EOF | |
1281 | #define __BEOS__ 1 | |
1282 | EOF | |
1283 | ||
1284 | ;; | |
1285 | ||
1286 | *) | |
1287 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1288 | esac | |
1289 | ||
1290 | if test "$USE_UNIX" = 1 ; then | |
1291 | wxUSE_UNIX=yes | |
1292 | cat >> confdefs.h <<\EOF | |
1293 | #define __UNIX__ 1 | |
1294 | EOF | |
1295 | ||
1296 | ||
1297 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1298 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1299 | fi | |
1300 | ||
1301 | if test "$USE_BEOS" = 1; then | |
1302 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1303 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
1304 | fi | |
1305 | ||
1306 | if test "$USE_LINUX" = 1; then | |
1307 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
1308 | echo "configure:1309: checking for gettext in -lc" >&5 | |
1309 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` | |
1310 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1311 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1312 | else | |
1313 | ac_save_LIBS="$LIBS" | |
1314 | LIBS="-lc $LIBS" | |
1315 | cat > conftest.$ac_ext <<EOF | |
1316 | #line 1317 "configure" | |
1317 | #include "confdefs.h" | |
1318 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1319 | /* We use char because int might match the return type of a gcc2 | |
1320 | builtin and then its argument prototype would still apply. */ | |
1321 | char gettext(); | |
1322 | ||
1323 | int main() { | |
1324 | gettext() | |
1325 | ; return 0; } | |
1326 | EOF | |
1327 | if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1328 | rm -rf conftest* | |
1329 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1330 | else | |
1331 | echo "configure: failed program was:" >&5 | |
1332 | cat conftest.$ac_ext >&5 | |
1333 | rm -rf conftest* | |
1334 | eval "ac_cv_lib_$ac_lib_var=no" | |
1335 | fi | |
1336 | rm -f conftest* | |
1337 | LIBS="$ac_save_LIBS" | |
1338 | ||
1339 | fi | |
1340 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1341 | echo "$ac_t""yes" 1>&6 | |
1342 | cat >> confdefs.h <<\EOF | |
1343 | #define wxHAVE_GLIBC2 1 | |
1344 | EOF | |
1345 | ||
1346 | else | |
1347 | echo "$ac_t""no" 1>&6 | |
1348 | fi | |
1349 | ||
1350 | fi | |
1351 | ||
1352 | ||
1353 | ||
1354 | ||
1355 | wx_arg_cache_file="configarg.cache" | |
1356 | echo "loading argument cache $wx_arg_cache_file" | |
1357 | rm -f ${wx_arg_cache_file}.tmp | |
1358 | touch ${wx_arg_cache_file}.tmp | |
1359 | touch ${wx_arg_cache_file} | |
1360 | ||
1361 | ||
1362 | DEBUG_CONFIGURE=0 | |
1363 | if test $DEBUG_CONFIGURE = 1; then | |
1364 | DEFAULT_wxUSE_UNIVERSAL=no | |
1365 | ||
1366 | DEFAULT_wxUSE_THREADS=yes | |
1367 | ||
1368 | DEFAULT_wxUSE_SHARED=yes | |
1369 | DEFAULT_wxUSE_BURNT_NAME=no | |
1370 | DEFAULT_wxUSE_OPTIMISE=no | |
1371 | DEFAULT_wxUSE_PROFILE=no | |
1372 | DEFAULT_wxUSE_NO_DEPS=no | |
1373 | DEFAULT_wxUSE_NO_RTTI=no | |
1374 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1375 | DEFAULT_wxUSE_PERMISSIVE=no | |
1376 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1377 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1378 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1379 | DEFAULT_wxUSE_MEM_TRACING=no | |
1380 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1381 | DEFAULT_wxUSE_DMALLOC=no | |
1382 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1383 | ||
1384 | DEFAULT_wxUSE_LOG=yes | |
1385 | DEFAULT_wxUSE_LOGWINDOW=no | |
1386 | DEFAULT_wxUSE_LOGGUI=no | |
1387 | ||
1388 | DEFAULT_wxUSE_GUI=yes | |
1389 | DEFAULT_wxUSE_CONTROLS=no | |
1390 | ||
1391 | DEFAULT_wxUSE_ZLIB=no | |
1392 | DEFAULT_wxUSE_LIBPNG=no | |
1393 | DEFAULT_wxUSE_LIBJPEG=no | |
1394 | DEFAULT_wxUSE_LIBTIFF=no | |
1395 | DEFAULT_wxUSE_ODBC=no | |
1396 | DEFAULT_wxUSE_FREETYPE=no | |
1397 | DEFAULT_wxUSE_OPENGL=no | |
1398 | ||
1399 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
1400 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
1401 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1402 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
1403 | DEFAULT_wxUSE_DATETIME=no | |
1404 | DEFAULT_wxUSE_TIMEDATE=no | |
1405 | DEFAULT_wxUSE_TIMER=no | |
1406 | DEFAULT_wxUSE_STOPWATCH=no | |
1407 | DEFAULT_wxUSE_FILE=no | |
1408 | DEFAULT_wxUSE_FFILE=no | |
1409 | DEFAULT_wxUSE_TEXTFILE=no | |
1410 | DEFAULT_wxUSE_WAVE=no | |
1411 | DEFAULT_wxUSE_INTL=no | |
1412 | DEFAULT_wxUSE_CONFIG=no | |
1413 | DEFAULT_wxUSE_FONTMAP=no | |
1414 | DEFAULT_wxUSE_STREAMS=no | |
1415 | DEFAULT_wxUSE_SOCKETS=no | |
1416 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1417 | DEFAULT_wxUSE_SERIAL=no | |
1418 | DEFAULT_wxUSE_JOYSTICK=no | |
1419 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1420 | DEFAULT_wxUSE_LONGLONG=no | |
1421 | DEFAULT_wxUSE_GEOMETRY=no | |
1422 | ||
1423 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1424 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1425 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1426 | ||
1427 | DEFAULT_wxUSE_X_RESOURCES=no | |
1428 | DEFAULT_wxUSE_CLIPBOARD=no | |
1429 | DEFAULT_wxUSE_TOOLTIPS=no | |
1430 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1431 | DEFAULT_wxUSE_DRAGIMAGE=no | |
1432 | DEFAULT_wxUSE_SPLINES=no | |
1433 | ||
1434 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1435 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1436 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1437 | ||
1438 | DEFAULT_wxUSE_PROLOGIO=no | |
1439 | DEFAULT_wxUSE_RESOURCES=no | |
1440 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1441 | DEFAULT_wxUSE_IPC=no | |
1442 | DEFAULT_wxUSE_HELP=no | |
1443 | DEFAULT_wxUSE_WXTREE=no | |
1444 | DEFAULT_wxUSE_METAFILE=no | |
1445 | DEFAULT_wxUSE_MIMETYPE=no | |
1446 | ||
1447 | DEFAULT_wxUSE_COMMONDLGS=no | |
1448 | DEFAULT_wxUSE_CHOICEDLG=no | |
1449 | DEFAULT_wxUSE_COLOURDLG=no | |
1450 | DEFAULT_wxUSE_DIRDLG=no | |
1451 | DEFAULT_wxUSE_FILEDLG=no | |
1452 | DEFAULT_wxUSE_FONTDLG=no | |
1453 | DEFAULT_wxUSE_MSGDLG=no | |
1454 | DEFAULT_wxUSE_NUMBERDLG=no | |
1455 | DEFAULT_wxUSE_TEXTDLG=no | |
1456 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1457 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1458 | DEFAULT_wxUSE_WIZARDDLG=no | |
1459 | ||
1460 | DEFAULT_wxUSE_MENUS=no | |
1461 | DEFAULT_wxUSE_MINIFRAME=no | |
1462 | DEFAULT_wxUSE_HTML=no | |
1463 | DEFAULT_wxUSE_FILESYSTEM=no | |
1464 | DEFAULT_wxUSE_FS_INET=no | |
1465 | DEFAULT_wxUSE_FS_ZIP=no | |
1466 | DEFAULT_wxUSE_BUSYINFO=no | |
1467 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1468 | DEFAULT_wxUSE_VALIDATORS=no | |
1469 | ||
1470 | DEFAULT_wxUSE_ACCEL=no | |
1471 | DEFAULT_wxUSE_BUTTON=no | |
1472 | DEFAULT_wxUSE_BMPBUTTON=no | |
1473 | DEFAULT_wxUSE_CALCTRL=no | |
1474 | DEFAULT_wxUSE_CARET=no | |
1475 | DEFAULT_wxUSE_CHECKBOX=no | |
1476 | DEFAULT_wxUSE_CHECKLST=no | |
1477 | DEFAULT_wxUSE_CHOICE=no | |
1478 | DEFAULT_wxUSE_COMBOBOX=no | |
1479 | DEFAULT_wxUSE_GAUGE=no | |
1480 | DEFAULT_wxUSE_GRID=no | |
1481 | DEFAULT_wxUSE_NEW_GRID=no | |
1482 | DEFAULT_wxUSE_IMAGLIST=no | |
1483 | DEFAULT_wxUSE_LISTBOX=no | |
1484 | DEFAULT_wxUSE_LISTCTRL=no | |
1485 | DEFAULT_wxUSE_NOTEBOOK=no | |
1486 | DEFAULT_wxUSE_RADIOBOX=no | |
1487 | DEFAULT_wxUSE_RADIOBTN=no | |
1488 | DEFAULT_wxUSE_SASH=no | |
1489 | DEFAULT_wxUSE_SCROLLBAR=no | |
1490 | DEFAULT_wxUSE_SLIDER=no | |
1491 | DEFAULT_wxUSE_SPINBTN=no | |
1492 | DEFAULT_wxUSE_SPINCTRL=no | |
1493 | DEFAULT_wxUSE_SPLITTER=no | |
1494 | DEFAULT_wxUSE_STATBMP=no | |
1495 | DEFAULT_wxUSE_STATBOX=no | |
1496 | DEFAULT_wxUSE_STATLINE=no | |
1497 | DEFAULT_wxUSE_STATTEXT=no | |
1498 | DEFAULT_wxUSE_STATUSBAR=yes | |
1499 | DEFAULT_wxUSE_TABDIALOG=no | |
1500 | DEFAULT_wxUSE_TEXTCTRL=no | |
1501 | DEFAULT_wxUSE_TOGGLEBTN=no | |
1502 | DEFAULT_wxUSE_TOOLBAR=no | |
1503 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
1504 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
1505 | DEFAULT_wxUSE_TREECTRL=no | |
1506 | ||
1507 | DEFAULT_wxUSE_UNICODE=no | |
1508 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1509 | ||
1510 | DEFAULT_wxUSE_IMAGE=no | |
1511 | DEFAULT_wxUSE_GIF=no | |
1512 | DEFAULT_wxUSE_PCX=no | |
1513 | DEFAULT_wxUSE_PNM=no | |
1514 | DEFAULT_wxUSE_XPM=no | |
1515 | else | |
1516 | DEFAULT_wxUSE_UNIVERSAL=no | |
1517 | ||
1518 | DEFAULT_wxUSE_THREADS=yes | |
1519 | ||
1520 | DEFAULT_wxUSE_SHARED=yes | |
1521 | DEFAULT_wxUSE_BURNT_NAME=no | |
1522 | DEFAULT_wxUSE_OPTIMISE=yes | |
1523 | DEFAULT_wxUSE_PROFILE=no | |
1524 | DEFAULT_wxUSE_NO_DEPS=no | |
1525 | DEFAULT_wxUSE_NO_RTTI=no | |
1526 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1527 | DEFAULT_wxUSE_PERMISSIVE=no | |
1528 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1529 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1530 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1531 | DEFAULT_wxUSE_MEM_TRACING=no | |
1532 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1533 | DEFAULT_wxUSE_DMALLOC=no | |
1534 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1535 | ||
1536 | DEFAULT_wxUSE_LOG=yes | |
1537 | DEFAULT_wxUSE_LOGWINDOW=yes | |
1538 | DEFAULT_wxUSE_LOGGUI=yes | |
1539 | ||
1540 | DEFAULT_wxUSE_GUI=yes | |
1541 | ||
1542 | DEFAULT_wxUSE_ZLIB=yes | |
1543 | DEFAULT_wxUSE_LIBPNG=yes | |
1544 | DEFAULT_wxUSE_LIBJPEG=yes | |
1545 | DEFAULT_wxUSE_LIBTIFF=yes | |
1546 | DEFAULT_wxUSE_ODBC=no | |
1547 | DEFAULT_wxUSE_FREETYPE=no | |
1548 | DEFAULT_wxUSE_OPENGL=no | |
1549 | ||
1550 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
1551 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
1552 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1553 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
1554 | DEFAULT_wxUSE_DATETIME=yes | |
1555 | DEFAULT_wxUSE_TIMEDATE=no | |
1556 | DEFAULT_wxUSE_TIMER=yes | |
1557 | DEFAULT_wxUSE_STOPWATCH=yes | |
1558 | DEFAULT_wxUSE_FILE=yes | |
1559 | DEFAULT_wxUSE_FFILE=yes | |
1560 | DEFAULT_wxUSE_TEXTFILE=yes | |
1561 | DEFAULT_wxUSE_WAVE=no | |
1562 | DEFAULT_wxUSE_INTL=yes | |
1563 | DEFAULT_wxUSE_CONFIG=yes | |
1564 | DEFAULT_wxUSE_FONTMAP=yes | |
1565 | DEFAULT_wxUSE_STREAMS=yes | |
1566 | DEFAULT_wxUSE_SOCKETS=yes | |
1567 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1568 | DEFAULT_wxUSE_SERIAL=yes | |
1569 | DEFAULT_wxUSE_JOYSTICK=yes | |
1570 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
1571 | DEFAULT_wxUSE_LONGLONG=yes | |
1572 | DEFAULT_wxUSE_GEOMETRY=yes | |
1573 | ||
1574 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1575 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1576 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1577 | ||
1578 | DEFAULT_wxUSE_X_RESOURCES=no | |
1579 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1580 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1581 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1582 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
1583 | DEFAULT_wxUSE_SPLINES=yes | |
1584 | ||
1585 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1586 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1587 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1588 | ||
1589 | DEFAULT_wxUSE_PROLOGIO=yes | |
1590 | DEFAULT_wxUSE_RESOURCES=yes | |
1591 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1592 | DEFAULT_wxUSE_IPC=yes | |
1593 | DEFAULT_wxUSE_HELP=yes | |
1594 | DEFAULT_wxUSE_WXTREE=yes | |
1595 | DEFAULT_wxUSE_METAFILE=yes | |
1596 | DEFAULT_wxUSE_MIMETYPE=yes | |
1597 | ||
1598 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1599 | DEFAULT_wxUSE_CHOICEDLG=yes | |
1600 | DEFAULT_wxUSE_COLOURDLG=yes | |
1601 | DEFAULT_wxUSE_DIRDLG=yes | |
1602 | DEFAULT_wxUSE_FILEDLG=yes | |
1603 | DEFAULT_wxUSE_FONTDLG=yes | |
1604 | DEFAULT_wxUSE_MSGDLG=yes | |
1605 | DEFAULT_wxUSE_NUMBERDLG=yes | |
1606 | DEFAULT_wxUSE_TEXTDLG=yes | |
1607 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1608 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1609 | DEFAULT_wxUSE_WIZARDDLG=yes | |
1610 | ||
1611 | DEFAULT_wxUSE_MENUS=yes | |
1612 | DEFAULT_wxUSE_MINIFRAME=yes | |
1613 | DEFAULT_wxUSE_HTML=yes | |
1614 | DEFAULT_wxUSE_FILESYSTEM=yes | |
1615 | DEFAULT_wxUSE_FS_INET=yes | |
1616 | DEFAULT_wxUSE_FS_ZIP=yes | |
1617 | DEFAULT_wxUSE_BUSYINFO=yes | |
1618 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1619 | DEFAULT_wxUSE_VALIDATORS=yes | |
1620 | ||
1621 | DEFAULT_wxUSE_ACCEL=yes | |
1622 | DEFAULT_wxUSE_BUTTON=yes | |
1623 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1624 | DEFAULT_wxUSE_CALCTRL=yes | |
1625 | DEFAULT_wxUSE_CARET=yes | |
1626 | DEFAULT_wxUSE_CHECKBOX=yes | |
1627 | DEFAULT_wxUSE_CHECKLST=yes | |
1628 | DEFAULT_wxUSE_CHOICE=yes | |
1629 | DEFAULT_wxUSE_COMBOBOX=yes | |
1630 | DEFAULT_wxUSE_GAUGE=yes | |
1631 | DEFAULT_wxUSE_GRID=yes | |
1632 | DEFAULT_wxUSE_NEW_GRID=yes | |
1633 | DEFAULT_wxUSE_IMAGLIST=yes | |
1634 | DEFAULT_wxUSE_LISTBOX=yes | |
1635 | DEFAULT_wxUSE_LISTCTRL=yes | |
1636 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1637 | DEFAULT_wxUSE_RADIOBOX=yes | |
1638 | DEFAULT_wxUSE_RADIOBTN=yes | |
1639 | DEFAULT_wxUSE_SASH=yes | |
1640 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1641 | DEFAULT_wxUSE_SLIDER=yes | |
1642 | DEFAULT_wxUSE_SPINBTN=yes | |
1643 | DEFAULT_wxUSE_SPINCTRL=yes | |
1644 | DEFAULT_wxUSE_SPLITTER=yes | |
1645 | DEFAULT_wxUSE_STATBMP=yes | |
1646 | DEFAULT_wxUSE_STATBOX=yes | |
1647 | DEFAULT_wxUSE_STATLINE=yes | |
1648 | DEFAULT_wxUSE_STATTEXT=yes | |
1649 | DEFAULT_wxUSE_STATUSBAR=yes | |
1650 | DEFAULT_wxUSE_TABDIALOG=no | |
1651 | DEFAULT_wxUSE_TEXTCTRL=yes | |
1652 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
1653 | DEFAULT_wxUSE_TOOLBAR=yes | |
1654 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
1655 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
1656 | DEFAULT_wxUSE_TREECTRL=yes | |
1657 | ||
1658 | DEFAULT_wxUSE_UNICODE=no | |
1659 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1660 | ||
1661 | DEFAULT_wxUSE_IMAGE=yes | |
1662 | DEFAULT_wxUSE_GIF=yes | |
1663 | DEFAULT_wxUSE_PCX=yes | |
1664 | DEFAULT_wxUSE_PNM=yes | |
1665 | DEFAULT_wxUSE_XPM=yes | |
1666 | fi | |
1667 | ||
1668 | ||
1669 | ||
1670 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1671 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1672 | if test "x$LINE" != x ; then | |
1673 | has_toolkit_in_cache=1 | |
1674 | eval "DEFAULT_$LINE" | |
1675 | eval "CACHE_$toolkit=1" | |
1676 | fi | |
1677 | done | |
1678 | ||
1679 | ||
1680 | ||
1681 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
1682 | echo "configure:1683: checking for --enable-gui" >&5 | |
1683 | no_cache=0 | |
1684 | # Check whether --enable-gui or --disable-gui was given. | |
1685 | if test "${enable_gui+set}" = set; then | |
1686 | enableval="$enable_gui" | |
1687 | ||
1688 | if test "$enableval" = yes; then | |
1689 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1690 | else | |
1691 | ac_cv_use_gui='wxUSE_GUI=no' | |
1692 | fi | |
1693 | ||
1694 | else | |
1695 | ||
1696 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1697 | if test "x$LINE" != x ; then | |
1698 | eval "DEFAULT_$LINE" | |
1699 | else | |
1700 | no_cache=1 | |
1701 | fi | |
1702 | ||
1703 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1704 | ||
1705 | fi | |
1706 | ||
1707 | ||
1708 | eval "$ac_cv_use_gui" | |
1709 | if test "$no_cache" != 1; then | |
1710 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1711 | fi | |
1712 | ||
1713 | if test "$wxUSE_GUI" = yes; then | |
1714 | echo "$ac_t""yes" 1>&6 | |
1715 | else | |
1716 | echo "$ac_t""no" 1>&6 | |
1717 | fi | |
1718 | ||
1719 | ||
1720 | if test "$wxUSE_GUI" = "yes"; then | |
1721 | ||
1722 | ||
1723 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
1724 | echo "configure:1725: checking for --enable-universal" >&5 | |
1725 | no_cache=0 | |
1726 | # Check whether --enable-universal or --disable-universal was given. | |
1727 | if test "${enable_universal+set}" = set; then | |
1728 | enableval="$enable_universal" | |
1729 | ||
1730 | if test "$enableval" = yes; then | |
1731 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1732 | else | |
1733 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1734 | fi | |
1735 | ||
1736 | else | |
1737 | ||
1738 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1739 | if test "x$LINE" != x ; then | |
1740 | eval "DEFAULT_$LINE" | |
1741 | else | |
1742 | no_cache=1 | |
1743 | fi | |
1744 | ||
1745 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1746 | ||
1747 | fi | |
1748 | ||
1749 | ||
1750 | eval "$ac_cv_use_universal" | |
1751 | if test "$no_cache" != 1; then | |
1752 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1753 | fi | |
1754 | ||
1755 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1756 | echo "$ac_t""yes" 1>&6 | |
1757 | else | |
1758 | echo "$ac_t""no" 1>&6 | |
1759 | fi | |
1760 | ||
1761 | # Check whether --with-gtk or --without-gtk was given. | |
1762 | if test "${with_gtk+set}" = set; then | |
1763 | withval="$with_gtk" | |
1764 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1765 | fi | |
1766 | ||
1767 | # Check whether --with-motif or --without-motif was given. | |
1768 | if test "${with_motif+set}" = set; then | |
1769 | withval="$with_motif" | |
1770 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1771 | fi | |
1772 | ||
1773 | # Check whether --with-mac or --without-mac was given. | |
1774 | if test "${with_mac+set}" = set; then | |
1775 | withval="$with_mac" | |
1776 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
1777 | fi | |
1778 | ||
1779 | # Check whether --with-wine or --without-wine was given. | |
1780 | if test "${with_wine+set}" = set; then | |
1781 | withval="$with_wine" | |
1782 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1783 | fi | |
1784 | ||
1785 | # Check whether --with-cygwin or --without-cygwin was given. | |
1786 | if test "${with_cygwin+set}" = set; then | |
1787 | withval="$with_cygwin" | |
1788 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1789 | fi | |
1790 | ||
1791 | # Check whether --with-mingw or --without-mingw was given. | |
1792 | if test "${with_mingw+set}" = set; then | |
1793 | withval="$with_mingw" | |
1794 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1795 | fi | |
1796 | ||
1797 | # Check whether --with-pm or --without-pm was given. | |
1798 | if test "${with_pm+set}" = set; then | |
1799 | withval="$with_pm" | |
1800 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
1801 | fi | |
1802 | ||
1803 | # Check whether --with-mgl or --without-mgl was given. | |
1804 | if test "${with_mgl+set}" = set; then | |
1805 | withval="$with_mgl" | |
1806 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1807 | fi | |
1808 | ||
1809 | ||
1810 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
1811 | if test "${enable_gtk2+set}" = set; then | |
1812 | enableval="$enable_gtk2" | |
1813 | wxUSE_GTK2=1 | |
1814 | else | |
1815 | wxUSE_GTK2=0 | |
1816 | fi | |
1817 | ||
1818 | ||
1819 | ||
1820 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 | |
1821 | echo "configure:1822: checking for --with-libpng" >&5 | |
1822 | no_cache=0 | |
1823 | # Check whether --with-libpng or --without-libpng was given. | |
1824 | if test "${with_libpng+set}" = set; then | |
1825 | withval="$with_libpng" | |
1826 | ||
1827 | if test "$withval" = yes; then | |
1828 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
1829 | elif test "$withval" = no; then | |
1830 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
1831 | elif test "$withval" = sys; then | |
1832 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1833 | else | |
1834 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } | |
1835 | fi | |
1836 | ||
1837 | else | |
1838 | ||
1839 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
1840 | if test "x$LINE" != x ; then | |
1841 | eval "DEFAULT_$LINE" | |
1842 | else | |
1843 | no_cache=1 | |
1844 | fi | |
1845 | ||
1846 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
1847 | ||
1848 | fi | |
1849 | ||
1850 | ||
1851 | eval "$ac_cv_use_libpng" | |
1852 | if test "$no_cache" != 1; then | |
1853 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
1854 | fi | |
1855 | ||
1856 | if test "$wxUSE_LIBPNG" = yes; then | |
1857 | echo "$ac_t""yes" 1>&6 | |
1858 | elif test "$wxUSE_LIBPNG" = no; then | |
1859 | echo "$ac_t""no" 1>&6 | |
1860 | elif test "$wxUSE_LIBPNG" = sys; then | |
1861 | echo "$ac_t""system version" 1>&6 | |
1862 | else | |
1863 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } | |
1864 | fi | |
1865 | ||
1866 | ||
1867 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 | |
1868 | echo "configure:1869: checking for --with-libjpeg" >&5 | |
1869 | no_cache=0 | |
1870 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
1871 | if test "${with_libjpeg+set}" = set; then | |
1872 | withval="$with_libjpeg" | |
1873 | ||
1874 | if test "$withval" = yes; then | |
1875 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
1876 | elif test "$withval" = no; then | |
1877 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
1878 | elif test "$withval" = sys; then | |
1879 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1880 | else | |
1881 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } | |
1882 | fi | |
1883 | ||
1884 | else | |
1885 | ||
1886 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
1887 | if test "x$LINE" != x ; then | |
1888 | eval "DEFAULT_$LINE" | |
1889 | else | |
1890 | no_cache=1 | |
1891 | fi | |
1892 | ||
1893 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
1894 | ||
1895 | fi | |
1896 | ||
1897 | ||
1898 | eval "$ac_cv_use_libjpeg" | |
1899 | if test "$no_cache" != 1; then | |
1900 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
1901 | fi | |
1902 | ||
1903 | if test "$wxUSE_LIBJPEG" = yes; then | |
1904 | echo "$ac_t""yes" 1>&6 | |
1905 | elif test "$wxUSE_LIBJPEG" = no; then | |
1906 | echo "$ac_t""no" 1>&6 | |
1907 | elif test "$wxUSE_LIBJPEG" = sys; then | |
1908 | echo "$ac_t""system version" 1>&6 | |
1909 | else | |
1910 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } | |
1911 | fi | |
1912 | ||
1913 | ||
1914 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 | |
1915 | echo "configure:1916: checking for --with-libtiff" >&5 | |
1916 | no_cache=0 | |
1917 | # Check whether --with-libtiff or --without-libtiff was given. | |
1918 | if test "${with_libtiff+set}" = set; then | |
1919 | withval="$with_libtiff" | |
1920 | ||
1921 | if test "$withval" = yes; then | |
1922 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
1923 | elif test "$withval" = no; then | |
1924 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
1925 | elif test "$withval" = sys; then | |
1926 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1927 | else | |
1928 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } | |
1929 | fi | |
1930 | ||
1931 | else | |
1932 | ||
1933 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
1934 | if test "x$LINE" != x ; then | |
1935 | eval "DEFAULT_$LINE" | |
1936 | else | |
1937 | no_cache=1 | |
1938 | fi | |
1939 | ||
1940 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
1941 | ||
1942 | fi | |
1943 | ||
1944 | ||
1945 | eval "$ac_cv_use_libtiff" | |
1946 | if test "$no_cache" != 1; then | |
1947 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
1948 | fi | |
1949 | ||
1950 | if test "$wxUSE_LIBTIFF" = yes; then | |
1951 | echo "$ac_t""yes" 1>&6 | |
1952 | elif test "$wxUSE_LIBTIFF" = no; then | |
1953 | echo "$ac_t""no" 1>&6 | |
1954 | elif test "$wxUSE_LIBTIFF" = sys; then | |
1955 | echo "$ac_t""system version" 1>&6 | |
1956 | else | |
1957 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } | |
1958 | fi | |
1959 | ||
1960 | ||
1961 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 | |
1962 | echo "configure:1963: checking for --with-freetype" >&5 | |
1963 | no_cache=0 | |
1964 | # Check whether --with-freetype or --without-freetype was given. | |
1965 | if test "${with_freetype+set}" = set; then | |
1966 | withval="$with_freetype" | |
1967 | ||
1968 | if test "$withval" = yes; then | |
1969 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1970 | elif test "$withval" = no; then | |
1971 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1972 | elif test "$withval" = sys; then | |
1973 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1974 | else | |
1975 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } | |
1976 | fi | |
1977 | ||
1978 | else | |
1979 | ||
1980 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` | |
1981 | if test "x$LINE" != x ; then | |
1982 | eval "DEFAULT_$LINE" | |
1983 | else | |
1984 | no_cache=1 | |
1985 | fi | |
1986 | ||
1987 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
1988 | ||
1989 | fi | |
1990 | ||
1991 | ||
1992 | eval "$ac_cv_use_freetype" | |
1993 | if test "$no_cache" != 1; then | |
1994 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
1995 | fi | |
1996 | ||
1997 | if test "$wxUSE_FREETYPE" = yes; then | |
1998 | echo "$ac_t""yes" 1>&6 | |
1999 | elif test "$wxUSE_FREETYPE" = no; then | |
2000 | echo "$ac_t""no" 1>&6 | |
2001 | elif test "$wxUSE_FREETYPE" = sys; then | |
2002 | echo "$ac_t""system version" 1>&6 | |
2003 | else | |
2004 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } | |
2005 | fi | |
2006 | ||
2007 | ||
2008 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 | |
2009 | echo "configure:2010: checking for --with-opengl" >&5 | |
2010 | no_cache=0 | |
2011 | # Check whether --with-opengl or --without-opengl was given. | |
2012 | if test "${with_opengl+set}" = set; then | |
2013 | withval="$with_opengl" | |
2014 | ||
2015 | if test "$withval" = yes; then | |
2016 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
2017 | else | |
2018 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
2019 | fi | |
2020 | ||
2021 | else | |
2022 | ||
2023 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
2024 | if test "x$LINE" != x ; then | |
2025 | eval "DEFAULT_$LINE" | |
2026 | else | |
2027 | no_cache=1 | |
2028 | fi | |
2029 | ||
2030 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
2031 | ||
2032 | fi | |
2033 | ||
2034 | ||
2035 | eval "$ac_cv_use_opengl" | |
2036 | if test "$no_cache" != 1; then | |
2037 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
2038 | fi | |
2039 | ||
2040 | if test "$wxUSE_OPENGL" = yes; then | |
2041 | echo "$ac_t""yes" 1>&6 | |
2042 | else | |
2043 | echo "$ac_t""no" 1>&6 | |
2044 | fi | |
2045 | ||
2046 | ||
2047 | fi | |
2048 | ||
2049 | ||
2050 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 | |
2051 | echo "configure:2052: checking for --with-dmalloc" >&5 | |
2052 | no_cache=0 | |
2053 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
2054 | if test "${with_dmalloc+set}" = set; then | |
2055 | withval="$with_dmalloc" | |
2056 | ||
2057 | if test "$withval" = yes; then | |
2058 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
2059 | else | |
2060 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
2061 | fi | |
2062 | ||
2063 | else | |
2064 | ||
2065 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
2066 | if test "x$LINE" != x ; then | |
2067 | eval "DEFAULT_$LINE" | |
2068 | else | |
2069 | no_cache=1 | |
2070 | fi | |
2071 | ||
2072 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
2073 | ||
2074 | fi | |
2075 | ||
2076 | ||
2077 | eval "$ac_cv_use_dmalloc" | |
2078 | if test "$no_cache" != 1; then | |
2079 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
2080 | fi | |
2081 | ||
2082 | if test "$wxUSE_DMALLOC" = yes; then | |
2083 | echo "$ac_t""yes" 1>&6 | |
2084 | else | |
2085 | echo "$ac_t""no" 1>&6 | |
2086 | fi | |
2087 | ||
2088 | ||
2089 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 | |
2090 | echo "configure:2091: checking for --with-zlib" >&5 | |
2091 | no_cache=0 | |
2092 | # Check whether --with-zlib or --without-zlib was given. | |
2093 | if test "${with_zlib+set}" = set; then | |
2094 | withval="$with_zlib" | |
2095 | ||
2096 | if test "$withval" = yes; then | |
2097 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
2098 | elif test "$withval" = no; then | |
2099 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
2100 | elif test "$withval" = sys; then | |
2101 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2102 | else | |
2103 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } | |
2104 | fi | |
2105 | ||
2106 | else | |
2107 | ||
2108 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
2109 | if test "x$LINE" != x ; then | |
2110 | eval "DEFAULT_$LINE" | |
2111 | else | |
2112 | no_cache=1 | |
2113 | fi | |
2114 | ||
2115 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
2116 | ||
2117 | fi | |
2118 | ||
2119 | ||
2120 | eval "$ac_cv_use_zlib" | |
2121 | if test "$no_cache" != 1; then | |
2122 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
2123 | fi | |
2124 | ||
2125 | if test "$wxUSE_ZLIB" = yes; then | |
2126 | echo "$ac_t""yes" 1>&6 | |
2127 | elif test "$wxUSE_ZLIB" = no; then | |
2128 | echo "$ac_t""no" 1>&6 | |
2129 | elif test "$wxUSE_ZLIB" = sys; then | |
2130 | echo "$ac_t""system version" 1>&6 | |
2131 | else | |
2132 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } | |
2133 | fi | |
2134 | ||
2135 | ||
2136 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 | |
2137 | echo "configure:2138: checking for --with-odbc" >&5 | |
2138 | no_cache=0 | |
2139 | # Check whether --with-odbc or --without-odbc was given. | |
2140 | if test "${with_odbc+set}" = set; then | |
2141 | withval="$with_odbc" | |
2142 | ||
2143 | if test "$withval" = yes; then | |
2144 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2145 | else | |
2146 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2147 | fi | |
2148 | ||
2149 | else | |
2150 | ||
2151 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
2152 | if test "x$LINE" != x ; then | |
2153 | eval "DEFAULT_$LINE" | |
2154 | else | |
2155 | no_cache=1 | |
2156 | fi | |
2157 | ||
2158 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
2159 | ||
2160 | fi | |
2161 | ||
2162 | ||
2163 | eval "$ac_cv_use_odbc" | |
2164 | if test "$no_cache" != 1; then | |
2165 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2166 | fi | |
2167 | ||
2168 | if test "$wxUSE_ODBC" = yes; then | |
2169 | echo "$ac_t""yes" 1>&6 | |
2170 | else | |
2171 | echo "$ac_t""no" 1>&6 | |
2172 | fi | |
2173 | ||
2174 | ||
2175 | ||
2176 | ||
2177 | ||
2178 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
2179 | echo "configure:2180: checking for --enable-shared" >&5 | |
2180 | no_cache=0 | |
2181 | # Check whether --enable-shared or --disable-shared was given. | |
2182 | if test "${enable_shared+set}" = set; then | |
2183 | enableval="$enable_shared" | |
2184 | ||
2185 | if test "$enableval" = yes; then | |
2186 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2187 | else | |
2188 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2189 | fi | |
2190 | ||
2191 | else | |
2192 | ||
2193 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
2194 | if test "x$LINE" != x ; then | |
2195 | eval "DEFAULT_$LINE" | |
2196 | else | |
2197 | no_cache=1 | |
2198 | fi | |
2199 | ||
2200 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
2201 | ||
2202 | fi | |
2203 | ||
2204 | ||
2205 | eval "$ac_cv_use_shared" | |
2206 | if test "$no_cache" != 1; then | |
2207 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2208 | fi | |
2209 | ||
2210 | if test "$wxUSE_SHARED" = yes; then | |
2211 | echo "$ac_t""yes" 1>&6 | |
2212 | else | |
2213 | echo "$ac_t""no" 1>&6 | |
2214 | fi | |
2215 | ||
2216 | ||
2217 | echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6 | |
2218 | echo "configure:2219: checking for --enable-burnt_name" >&5 | |
2219 | no_cache=0 | |
2220 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2221 | if test "${enable_burnt_name+set}" = set; then | |
2222 | enableval="$enable_burnt_name" | |
2223 | ||
2224 | if test "$enableval" = yes; then | |
2225 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2226 | else | |
2227 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2228 | fi | |
2229 | ||
2230 | else | |
2231 | ||
2232 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` | |
2233 | if test "x$LINE" != x ; then | |
2234 | eval "DEFAULT_$LINE" | |
2235 | else | |
2236 | no_cache=1 | |
2237 | fi | |
2238 | ||
2239 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
2240 | ||
2241 | fi | |
2242 | ||
2243 | ||
2244 | eval "$ac_cv_use_burnt_name" | |
2245 | if test "$no_cache" != 1; then | |
2246 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2247 | fi | |
2248 | ||
2249 | if test "$wxUSE_BURNT_NAME" = yes; then | |
2250 | echo "$ac_t""yes" 1>&6 | |
2251 | else | |
2252 | echo "$ac_t""no" 1>&6 | |
2253 | fi | |
2254 | ||
2255 | ||
2256 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 | |
2257 | echo "configure:2258: checking for --enable-optimise" >&5 | |
2258 | no_cache=0 | |
2259 | # Check whether --enable-optimise or --disable-optimise was given. | |
2260 | if test "${enable_optimise+set}" = set; then | |
2261 | enableval="$enable_optimise" | |
2262 | ||
2263 | if test "$enableval" = yes; then | |
2264 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2265 | else | |
2266 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2267 | fi | |
2268 | ||
2269 | else | |
2270 | ||
2271 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
2272 | if test "x$LINE" != x ; then | |
2273 | eval "DEFAULT_$LINE" | |
2274 | else | |
2275 | no_cache=1 | |
2276 | fi | |
2277 | ||
2278 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
2279 | ||
2280 | fi | |
2281 | ||
2282 | ||
2283 | eval "$ac_cv_use_optimise" | |
2284 | if test "$no_cache" != 1; then | |
2285 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2286 | fi | |
2287 | ||
2288 | if test "$wxUSE_OPTIMISE" = yes; then | |
2289 | echo "$ac_t""yes" 1>&6 | |
2290 | else | |
2291 | echo "$ac_t""no" 1>&6 | |
2292 | fi | |
2293 | ||
2294 | ||
2295 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 | |
2296 | echo "configure:2297: checking for --enable-debug" >&5 | |
2297 | no_cache=0 | |
2298 | # Check whether --enable-debug or --disable-debug was given. | |
2299 | if test "${enable_debug+set}" = set; then | |
2300 | enableval="$enable_debug" | |
2301 | ||
2302 | if test "$enableval" = yes; then | |
2303 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2304 | else | |
2305 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2306 | fi | |
2307 | ||
2308 | else | |
2309 | ||
2310 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
2311 | if test "x$LINE" != x ; then | |
2312 | eval "DEFAULT_$LINE" | |
2313 | else | |
2314 | no_cache=1 | |
2315 | fi | |
2316 | ||
2317 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
2318 | ||
2319 | fi | |
2320 | ||
2321 | ||
2322 | eval "$ac_cv_use_debug" | |
2323 | if test "$no_cache" != 1; then | |
2324 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2325 | fi | |
2326 | ||
2327 | if test "$wxUSE_DEBUG" = yes; then | |
2328 | echo "$ac_t""yes" 1>&6 | |
2329 | else | |
2330 | echo "$ac_t""no" 1>&6 | |
2331 | fi | |
2332 | ||
2333 | ||
2334 | if test "$wxUSE_DEBUG" = "yes"; then | |
2335 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2336 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2337 | elif test "$wxUSE_DEBUG" = "no"; then | |
2338 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2339 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2340 | fi | |
2341 | ||
2342 | ||
2343 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
2344 | echo "configure:2345: checking for --enable-debug_flag" >&5 | |
2345 | no_cache=0 | |
2346 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2347 | if test "${enable_debug_flag+set}" = set; then | |
2348 | enableval="$enable_debug_flag" | |
2349 | ||
2350 | if test "$enableval" = yes; then | |
2351 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2352 | else | |
2353 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2354 | fi | |
2355 | ||
2356 | else | |
2357 | ||
2358 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
2359 | if test "x$LINE" != x ; then | |
2360 | eval "DEFAULT_$LINE" | |
2361 | else | |
2362 | no_cache=1 | |
2363 | fi | |
2364 | ||
2365 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2366 | ||
2367 | fi | |
2368 | ||
2369 | ||
2370 | eval "$ac_cv_use_debug_flag" | |
2371 | if test "$no_cache" != 1; then | |
2372 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2373 | fi | |
2374 | ||
2375 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2376 | echo "$ac_t""yes" 1>&6 | |
2377 | else | |
2378 | echo "$ac_t""no" 1>&6 | |
2379 | fi | |
2380 | ||
2381 | ||
2382 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 | |
2383 | echo "configure:2384: checking for --enable-debug_info" >&5 | |
2384 | no_cache=0 | |
2385 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2386 | if test "${enable_debug_info+set}" = set; then | |
2387 | enableval="$enable_debug_info" | |
2388 | ||
2389 | if test "$enableval" = yes; then | |
2390 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2391 | else | |
2392 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2393 | fi | |
2394 | ||
2395 | else | |
2396 | ||
2397 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2398 | if test "x$LINE" != x ; then | |
2399 | eval "DEFAULT_$LINE" | |
2400 | else | |
2401 | no_cache=1 | |
2402 | fi | |
2403 | ||
2404 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2405 | ||
2406 | fi | |
2407 | ||
2408 | ||
2409 | eval "$ac_cv_use_debug_info" | |
2410 | if test "$no_cache" != 1; then | |
2411 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2412 | fi | |
2413 | ||
2414 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2415 | echo "$ac_t""yes" 1>&6 | |
2416 | else | |
2417 | echo "$ac_t""no" 1>&6 | |
2418 | fi | |
2419 | ||
2420 | ||
2421 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 | |
2422 | echo "configure:2423: checking for --enable-debug_gdb" >&5 | |
2423 | no_cache=0 | |
2424 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2425 | if test "${enable_debug_gdb+set}" = set; then | |
2426 | enableval="$enable_debug_gdb" | |
2427 | ||
2428 | if test "$enableval" = yes; then | |
2429 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2430 | else | |
2431 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2432 | fi | |
2433 | ||
2434 | else | |
2435 | ||
2436 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2437 | if test "x$LINE" != x ; then | |
2438 | eval "DEFAULT_$LINE" | |
2439 | else | |
2440 | no_cache=1 | |
2441 | fi | |
2442 | ||
2443 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2444 | ||
2445 | fi | |
2446 | ||
2447 | ||
2448 | eval "$ac_cv_use_debug_gdb" | |
2449 | if test "$no_cache" != 1; then | |
2450 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2451 | fi | |
2452 | ||
2453 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2454 | echo "$ac_t""yes" 1>&6 | |
2455 | else | |
2456 | echo "$ac_t""no" 1>&6 | |
2457 | fi | |
2458 | ||
2459 | ||
2460 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 | |
2461 | echo "configure:2462: checking for --enable-debug_cntxt" >&5 | |
2462 | no_cache=0 | |
2463 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2464 | if test "${enable_debug_cntxt+set}" = set; then | |
2465 | enableval="$enable_debug_cntxt" | |
2466 | ||
2467 | if test "$enableval" = yes; then | |
2468 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2469 | else | |
2470 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2471 | fi | |
2472 | ||
2473 | else | |
2474 | ||
2475 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2476 | if test "x$LINE" != x ; then | |
2477 | eval "DEFAULT_$LINE" | |
2478 | else | |
2479 | no_cache=1 | |
2480 | fi | |
2481 | ||
2482 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2483 | ||
2484 | fi | |
2485 | ||
2486 | ||
2487 | eval "$ac_cv_use_debug_cntxt" | |
2488 | if test "$no_cache" != 1; then | |
2489 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2490 | fi | |
2491 | ||
2492 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2493 | echo "$ac_t""yes" 1>&6 | |
2494 | else | |
2495 | echo "$ac_t""no" 1>&6 | |
2496 | fi | |
2497 | ||
2498 | ||
2499 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 | |
2500 | echo "configure:2501: checking for --enable-mem_tracing" >&5 | |
2501 | no_cache=0 | |
2502 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2503 | if test "${enable_mem_tracing+set}" = set; then | |
2504 | enableval="$enable_mem_tracing" | |
2505 | ||
2506 | if test "$enableval" = yes; then | |
2507 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2508 | else | |
2509 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2510 | fi | |
2511 | ||
2512 | else | |
2513 | ||
2514 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2515 | if test "x$LINE" != x ; then | |
2516 | eval "DEFAULT_$LINE" | |
2517 | else | |
2518 | no_cache=1 | |
2519 | fi | |
2520 | ||
2521 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2522 | ||
2523 | fi | |
2524 | ||
2525 | ||
2526 | eval "$ac_cv_use_mem_tracing" | |
2527 | if test "$no_cache" != 1; then | |
2528 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2529 | fi | |
2530 | ||
2531 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2532 | echo "$ac_t""yes" 1>&6 | |
2533 | else | |
2534 | echo "$ac_t""no" 1>&6 | |
2535 | fi | |
2536 | ||
2537 | ||
2538 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 | |
2539 | echo "configure:2540: checking for --enable-profile" >&5 | |
2540 | no_cache=0 | |
2541 | # Check whether --enable-profile or --disable-profile was given. | |
2542 | if test "${enable_profile+set}" = set; then | |
2543 | enableval="$enable_profile" | |
2544 | ||
2545 | if test "$enableval" = yes; then | |
2546 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2547 | else | |
2548 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2549 | fi | |
2550 | ||
2551 | else | |
2552 | ||
2553 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2554 | if test "x$LINE" != x ; then | |
2555 | eval "DEFAULT_$LINE" | |
2556 | else | |
2557 | no_cache=1 | |
2558 | fi | |
2559 | ||
2560 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2561 | ||
2562 | fi | |
2563 | ||
2564 | ||
2565 | eval "$ac_cv_use_profile" | |
2566 | if test "$no_cache" != 1; then | |
2567 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2568 | fi | |
2569 | ||
2570 | if test "$wxUSE_PROFILE" = yes; then | |
2571 | echo "$ac_t""yes" 1>&6 | |
2572 | else | |
2573 | echo "$ac_t""no" 1>&6 | |
2574 | fi | |
2575 | ||
2576 | ||
2577 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 | |
2578 | echo "configure:2579: checking for --enable-no_rtti" >&5 | |
2579 | no_cache=0 | |
2580 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2581 | if test "${enable_no_rtti+set}" = set; then | |
2582 | enableval="$enable_no_rtti" | |
2583 | ||
2584 | if test "$enableval" = yes; then | |
2585 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2586 | else | |
2587 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2588 | fi | |
2589 | ||
2590 | else | |
2591 | ||
2592 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2593 | if test "x$LINE" != x ; then | |
2594 | eval "DEFAULT_$LINE" | |
2595 | else | |
2596 | no_cache=1 | |
2597 | fi | |
2598 | ||
2599 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2600 | ||
2601 | fi | |
2602 | ||
2603 | ||
2604 | eval "$ac_cv_use_no_rtti" | |
2605 | if test "$no_cache" != 1; then | |
2606 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2607 | fi | |
2608 | ||
2609 | if test "$wxUSE_NO_RTTI" = yes; then | |
2610 | echo "$ac_t""yes" 1>&6 | |
2611 | else | |
2612 | echo "$ac_t""no" 1>&6 | |
2613 | fi | |
2614 | ||
2615 | ||
2616 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 | |
2617 | echo "configure:2618: checking for --enable-no_exceptions" >&5 | |
2618 | no_cache=0 | |
2619 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2620 | if test "${enable_no_exceptions+set}" = set; then | |
2621 | enableval="$enable_no_exceptions" | |
2622 | ||
2623 | if test "$enableval" = yes; then | |
2624 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2625 | else | |
2626 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2627 | fi | |
2628 | ||
2629 | else | |
2630 | ||
2631 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2632 | if test "x$LINE" != x ; then | |
2633 | eval "DEFAULT_$LINE" | |
2634 | else | |
2635 | no_cache=1 | |
2636 | fi | |
2637 | ||
2638 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2639 | ||
2640 | fi | |
2641 | ||
2642 | ||
2643 | eval "$ac_cv_use_no_exceptions" | |
2644 | if test "$no_cache" != 1; then | |
2645 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2646 | fi | |
2647 | ||
2648 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2649 | echo "$ac_t""yes" 1>&6 | |
2650 | else | |
2651 | echo "$ac_t""no" 1>&6 | |
2652 | fi | |
2653 | ||
2654 | ||
2655 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 | |
2656 | echo "configure:2657: checking for --enable-permissive" >&5 | |
2657 | no_cache=0 | |
2658 | # Check whether --enable-permissive or --disable-permissive was given. | |
2659 | if test "${enable_permissive+set}" = set; then | |
2660 | enableval="$enable_permissive" | |
2661 | ||
2662 | if test "$enableval" = yes; then | |
2663 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2664 | else | |
2665 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2666 | fi | |
2667 | ||
2668 | else | |
2669 | ||
2670 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2671 | if test "x$LINE" != x ; then | |
2672 | eval "DEFAULT_$LINE" | |
2673 | else | |
2674 | no_cache=1 | |
2675 | fi | |
2676 | ||
2677 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2678 | ||
2679 | fi | |
2680 | ||
2681 | ||
2682 | eval "$ac_cv_use_permissive" | |
2683 | if test "$no_cache" != 1; then | |
2684 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2685 | fi | |
2686 | ||
2687 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2688 | echo "$ac_t""yes" 1>&6 | |
2689 | else | |
2690 | echo "$ac_t""no" 1>&6 | |
2691 | fi | |
2692 | ||
2693 | ||
2694 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 | |
2695 | echo "configure:2696: checking for --enable-no_deps" >&5 | |
2696 | no_cache=0 | |
2697 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2698 | if test "${enable_no_deps+set}" = set; then | |
2699 | enableval="$enable_no_deps" | |
2700 | ||
2701 | if test "$enableval" = yes; then | |
2702 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2703 | else | |
2704 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2705 | fi | |
2706 | ||
2707 | else | |
2708 | ||
2709 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2710 | if test "x$LINE" != x ; then | |
2711 | eval "DEFAULT_$LINE" | |
2712 | else | |
2713 | no_cache=1 | |
2714 | fi | |
2715 | ||
2716 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2717 | ||
2718 | fi | |
2719 | ||
2720 | ||
2721 | eval "$ac_cv_use_no_deps" | |
2722 | if test "$no_cache" != 1; then | |
2723 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2724 | fi | |
2725 | ||
2726 | if test "$wxUSE_NO_DEPS" = yes; then | |
2727 | echo "$ac_t""yes" 1>&6 | |
2728 | else | |
2729 | echo "$ac_t""no" 1>&6 | |
2730 | fi | |
2731 | ||
2732 | ||
2733 | ||
2734 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 | |
2735 | echo "configure:2736: checking for --enable-compat20" >&5 | |
2736 | no_cache=0 | |
2737 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2738 | if test "${enable_compat20+set}" = set; then | |
2739 | enableval="$enable_compat20" | |
2740 | ||
2741 | if test "$enableval" = yes; then | |
2742 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2743 | else | |
2744 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2745 | fi | |
2746 | ||
2747 | else | |
2748 | ||
2749 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2750 | if test "x$LINE" != x ; then | |
2751 | eval "DEFAULT_$LINE" | |
2752 | else | |
2753 | no_cache=1 | |
2754 | fi | |
2755 | ||
2756 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2757 | ||
2758 | fi | |
2759 | ||
2760 | ||
2761 | eval "$ac_cv_use_compat20" | |
2762 | if test "$no_cache" != 1; then | |
2763 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2764 | fi | |
2765 | ||
2766 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2767 | echo "$ac_t""yes" 1>&6 | |
2768 | else | |
2769 | echo "$ac_t""no" 1>&6 | |
2770 | fi | |
2771 | ||
2772 | ||
2773 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
2774 | echo "configure:2775: checking for --enable-compat22" >&5 | |
2775 | no_cache=0 | |
2776 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2777 | if test "${enable_compat22+set}" = set; then | |
2778 | enableval="$enable_compat22" | |
2779 | ||
2780 | if test "$enableval" = yes; then | |
2781 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2782 | else | |
2783 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2784 | fi | |
2785 | ||
2786 | else | |
2787 | ||
2788 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2789 | if test "x$LINE" != x ; then | |
2790 | eval "DEFAULT_$LINE" | |
2791 | else | |
2792 | no_cache=1 | |
2793 | fi | |
2794 | ||
2795 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2796 | ||
2797 | fi | |
2798 | ||
2799 | ||
2800 | eval "$ac_cv_use_compat22" | |
2801 | if test "$no_cache" != 1; then | |
2802 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2803 | fi | |
2804 | ||
2805 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2806 | echo "$ac_t""yes" 1>&6 | |
2807 | else | |
2808 | echo "$ac_t""no" 1>&6 | |
2809 | fi | |
2810 | ||
2811 | ||
2812 | ||
2813 | ||
2814 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
2815 | echo "configure:2816: checking for --enable-intl" >&5 | |
2816 | no_cache=0 | |
2817 | # Check whether --enable-intl or --disable-intl was given. | |
2818 | if test "${enable_intl+set}" = set; then | |
2819 | enableval="$enable_intl" | |
2820 | ||
2821 | if test "$enableval" = yes; then | |
2822 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2823 | else | |
2824 | ac_cv_use_intl='wxUSE_INTL=no' | |
2825 | fi | |
2826 | ||
2827 | else | |
2828 | ||
2829 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2830 | if test "x$LINE" != x ; then | |
2831 | eval "DEFAULT_$LINE" | |
2832 | else | |
2833 | no_cache=1 | |
2834 | fi | |
2835 | ||
2836 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2837 | ||
2838 | fi | |
2839 | ||
2840 | ||
2841 | eval "$ac_cv_use_intl" | |
2842 | if test "$no_cache" != 1; then | |
2843 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2844 | fi | |
2845 | ||
2846 | if test "$wxUSE_INTL" = yes; then | |
2847 | echo "$ac_t""yes" 1>&6 | |
2848 | else | |
2849 | echo "$ac_t""no" 1>&6 | |
2850 | fi | |
2851 | ||
2852 | ||
2853 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 | |
2854 | echo "configure:2855: checking for --enable-config" >&5 | |
2855 | no_cache=0 | |
2856 | # Check whether --enable-config or --disable-config was given. | |
2857 | if test "${enable_config+set}" = set; then | |
2858 | enableval="$enable_config" | |
2859 | ||
2860 | if test "$enableval" = yes; then | |
2861 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2862 | else | |
2863 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2864 | fi | |
2865 | ||
2866 | else | |
2867 | ||
2868 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2869 | if test "x$LINE" != x ; then | |
2870 | eval "DEFAULT_$LINE" | |
2871 | else | |
2872 | no_cache=1 | |
2873 | fi | |
2874 | ||
2875 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2876 | ||
2877 | fi | |
2878 | ||
2879 | ||
2880 | eval "$ac_cv_use_config" | |
2881 | if test "$no_cache" != 1; then | |
2882 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2883 | fi | |
2884 | ||
2885 | if test "$wxUSE_CONFIG" = yes; then | |
2886 | echo "$ac_t""yes" 1>&6 | |
2887 | else | |
2888 | echo "$ac_t""no" 1>&6 | |
2889 | fi | |
2890 | ||
2891 | ||
2892 | ||
2893 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 | |
2894 | echo "configure:2895: checking for --enable-sockets" >&5 | |
2895 | no_cache=0 | |
2896 | # Check whether --enable-sockets or --disable-sockets was given. | |
2897 | if test "${enable_sockets+set}" = set; then | |
2898 | enableval="$enable_sockets" | |
2899 | ||
2900 | if test "$enableval" = yes; then | |
2901 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2902 | else | |
2903 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2904 | fi | |
2905 | ||
2906 | else | |
2907 | ||
2908 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
2909 | if test "x$LINE" != x ; then | |
2910 | eval "DEFAULT_$LINE" | |
2911 | else | |
2912 | no_cache=1 | |
2913 | fi | |
2914 | ||
2915 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2916 | ||
2917 | fi | |
2918 | ||
2919 | ||
2920 | eval "$ac_cv_use_sockets" | |
2921 | if test "$no_cache" != 1; then | |
2922 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2923 | fi | |
2924 | ||
2925 | if test "$wxUSE_SOCKETS" = yes; then | |
2926 | echo "$ac_t""yes" 1>&6 | |
2927 | else | |
2928 | echo "$ac_t""no" 1>&6 | |
2929 | fi | |
2930 | ||
2931 | ||
2932 | ||
2933 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
2934 | echo "configure:2935: checking for --enable-ipc" >&5 | |
2935 | no_cache=0 | |
2936 | # Check whether --enable-ipc or --disable-ipc was given. | |
2937 | if test "${enable_ipc+set}" = set; then | |
2938 | enableval="$enable_ipc" | |
2939 | ||
2940 | if test "$enableval" = yes; then | |
2941 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
2942 | else | |
2943 | ac_cv_use_ipc='wxUSE_IPC=no' | |
2944 | fi | |
2945 | ||
2946 | else | |
2947 | ||
2948 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
2949 | if test "x$LINE" != x ; then | |
2950 | eval "DEFAULT_$LINE" | |
2951 | else | |
2952 | no_cache=1 | |
2953 | fi | |
2954 | ||
2955 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
2956 | ||
2957 | fi | |
2958 | ||
2959 | ||
2960 | eval "$ac_cv_use_ipc" | |
2961 | if test "$no_cache" != 1; then | |
2962 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
2963 | fi | |
2964 | ||
2965 | if test "$wxUSE_IPC" = yes; then | |
2966 | echo "$ac_t""yes" 1>&6 | |
2967 | else | |
2968 | echo "$ac_t""no" 1>&6 | |
2969 | fi | |
2970 | ||
2971 | ||
2972 | ||
2973 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 | |
2974 | echo "configure:2975: checking for --enable-cmdline" >&5 | |
2975 | no_cache=0 | |
2976 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
2977 | if test "${enable_cmdline+set}" = set; then | |
2978 | enableval="$enable_cmdline" | |
2979 | ||
2980 | if test "$enableval" = yes; then | |
2981 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
2982 | else | |
2983 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
2984 | fi | |
2985 | ||
2986 | else | |
2987 | ||
2988 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
2989 | if test "x$LINE" != x ; then | |
2990 | eval "DEFAULT_$LINE" | |
2991 | else | |
2992 | no_cache=1 | |
2993 | fi | |
2994 | ||
2995 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
2996 | ||
2997 | fi | |
2998 | ||
2999 | ||
3000 | eval "$ac_cv_use_cmdline" | |
3001 | if test "$no_cache" != 1; then | |
3002 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3003 | fi | |
3004 | ||
3005 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3006 | echo "$ac_t""yes" 1>&6 | |
3007 | else | |
3008 | echo "$ac_t""no" 1>&6 | |
3009 | fi | |
3010 | ||
3011 | ||
3012 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
3013 | echo "configure:3014: checking for --enable-datetime" >&5 | |
3014 | no_cache=0 | |
3015 | # Check whether --enable-datetime or --disable-datetime was given. | |
3016 | if test "${enable_datetime+set}" = set; then | |
3017 | enableval="$enable_datetime" | |
3018 | ||
3019 | if test "$enableval" = yes; then | |
3020 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3021 | else | |
3022 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3023 | fi | |
3024 | ||
3025 | else | |
3026 | ||
3027 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3028 | if test "x$LINE" != x ; then | |
3029 | eval "DEFAULT_$LINE" | |
3030 | else | |
3031 | no_cache=1 | |
3032 | fi | |
3033 | ||
3034 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3035 | ||
3036 | fi | |
3037 | ||
3038 | ||
3039 | eval "$ac_cv_use_datetime" | |
3040 | if test "$no_cache" != 1; then | |
3041 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3042 | fi | |
3043 | ||
3044 | if test "$wxUSE_DATETIME" = yes; then | |
3045 | echo "$ac_t""yes" 1>&6 | |
3046 | else | |
3047 | echo "$ac_t""no" 1>&6 | |
3048 | fi | |
3049 | ||
3050 | ||
3051 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
3052 | echo "configure:3053: checking for --enable-timedate" >&5 | |
3053 | no_cache=0 | |
3054 | # Check whether --enable-timedate or --disable-timedate was given. | |
3055 | if test "${enable_timedate+set}" = set; then | |
3056 | enableval="$enable_timedate" | |
3057 | ||
3058 | if test "$enableval" = yes; then | |
3059 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3060 | else | |
3061 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3062 | fi | |
3063 | ||
3064 | else | |
3065 | ||
3066 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3067 | if test "x$LINE" != x ; then | |
3068 | eval "DEFAULT_$LINE" | |
3069 | else | |
3070 | no_cache=1 | |
3071 | fi | |
3072 | ||
3073 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3074 | ||
3075 | fi | |
3076 | ||
3077 | ||
3078 | eval "$ac_cv_use_timedate" | |
3079 | if test "$no_cache" != 1; then | |
3080 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3081 | fi | |
3082 | ||
3083 | if test "$wxUSE_TIMEDATE" = yes; then | |
3084 | echo "$ac_t""yes" 1>&6 | |
3085 | else | |
3086 | echo "$ac_t""no" 1>&6 | |
3087 | fi | |
3088 | ||
3089 | ||
3090 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
3091 | echo "configure:3092: checking for --enable-stopwatch" >&5 | |
3092 | no_cache=0 | |
3093 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3094 | if test "${enable_stopwatch+set}" = set; then | |
3095 | enableval="$enable_stopwatch" | |
3096 | ||
3097 | if test "$enableval" = yes; then | |
3098 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3099 | else | |
3100 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3101 | fi | |
3102 | ||
3103 | else | |
3104 | ||
3105 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3106 | if test "x$LINE" != x ; then | |
3107 | eval "DEFAULT_$LINE" | |
3108 | else | |
3109 | no_cache=1 | |
3110 | fi | |
3111 | ||
3112 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3113 | ||
3114 | fi | |
3115 | ||
3116 | ||
3117 | eval "$ac_cv_use_stopwatch" | |
3118 | if test "$no_cache" != 1; then | |
3119 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3120 | fi | |
3121 | ||
3122 | if test "$wxUSE_STOPWATCH" = yes; then | |
3123 | echo "$ac_t""yes" 1>&6 | |
3124 | else | |
3125 | echo "$ac_t""no" 1>&6 | |
3126 | fi | |
3127 | ||
3128 | ||
3129 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 | |
3130 | echo "configure:3131: checking for --enable-dialupman" >&5 | |
3131 | no_cache=0 | |
3132 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
3133 | if test "${enable_dialupman+set}" = set; then | |
3134 | enableval="$enable_dialupman" | |
3135 | ||
3136 | if test "$enableval" = yes; then | |
3137 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
3138 | else | |
3139 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
3140 | fi | |
3141 | ||
3142 | else | |
3143 | ||
3144 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
3145 | if test "x$LINE" != x ; then | |
3146 | eval "DEFAULT_$LINE" | |
3147 | else | |
3148 | no_cache=1 | |
3149 | fi | |
3150 | ||
3151 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
3152 | ||
3153 | fi | |
3154 | ||
3155 | ||
3156 | eval "$ac_cv_use_dialupman" | |
3157 | if test "$no_cache" != 1; then | |
3158 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
3159 | fi | |
3160 | ||
3161 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
3162 | echo "$ac_t""yes" 1>&6 | |
3163 | else | |
3164 | echo "$ac_t""no" 1>&6 | |
3165 | fi | |
3166 | ||
3167 | ||
3168 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 | |
3169 | echo "configure:3170: checking for --enable-apple_ieee" >&5 | |
3170 | no_cache=0 | |
3171 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3172 | if test "${enable_apple_ieee+set}" = set; then | |
3173 | enableval="$enable_apple_ieee" | |
3174 | ||
3175 | if test "$enableval" = yes; then | |
3176 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3177 | else | |
3178 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3179 | fi | |
3180 | ||
3181 | else | |
3182 | ||
3183 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
3184 | if test "x$LINE" != x ; then | |
3185 | eval "DEFAULT_$LINE" | |
3186 | else | |
3187 | no_cache=1 | |
3188 | fi | |
3189 | ||
3190 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
3191 | ||
3192 | fi | |
3193 | ||
3194 | ||
3195 | eval "$ac_cv_use_apple_ieee" | |
3196 | if test "$no_cache" != 1; then | |
3197 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3198 | fi | |
3199 | ||
3200 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
3201 | echo "$ac_t""yes" 1>&6 | |
3202 | else | |
3203 | echo "$ac_t""no" 1>&6 | |
3204 | fi | |
3205 | ||
3206 | ||
3207 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 | |
3208 | echo "configure:3209: checking for --enable-timer" >&5 | |
3209 | no_cache=0 | |
3210 | # Check whether --enable-timer or --disable-timer was given. | |
3211 | if test "${enable_timer+set}" = set; then | |
3212 | enableval="$enable_timer" | |
3213 | ||
3214 | if test "$enableval" = yes; then | |
3215 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
3216 | else | |
3217 | ac_cv_use_timer='wxUSE_TIMER=no' | |
3218 | fi | |
3219 | ||
3220 | else | |
3221 | ||
3222 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
3223 | if test "x$LINE" != x ; then | |
3224 | eval "DEFAULT_$LINE" | |
3225 | else | |
3226 | no_cache=1 | |
3227 | fi | |
3228 | ||
3229 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
3230 | ||
3231 | fi | |
3232 | ||
3233 | ||
3234 | eval "$ac_cv_use_timer" | |
3235 | if test "$no_cache" != 1; then | |
3236 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
3237 | fi | |
3238 | ||
3239 | if test "$wxUSE_TIMER" = yes; then | |
3240 | echo "$ac_t""yes" 1>&6 | |
3241 | else | |
3242 | echo "$ac_t""no" 1>&6 | |
3243 | fi | |
3244 | ||
3245 | ||
3246 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 | |
3247 | echo "configure:3248: checking for --enable-wave" >&5 | |
3248 | no_cache=0 | |
3249 | # Check whether --enable-wave or --disable-wave was given. | |
3250 | if test "${enable_wave+set}" = set; then | |
3251 | enableval="$enable_wave" | |
3252 | ||
3253 | if test "$enableval" = yes; then | |
3254 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3255 | else | |
3256 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3257 | fi | |
3258 | ||
3259 | else | |
3260 | ||
3261 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
3262 | if test "x$LINE" != x ; then | |
3263 | eval "DEFAULT_$LINE" | |
3264 | else | |
3265 | no_cache=1 | |
3266 | fi | |
3267 | ||
3268 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
3269 | ||
3270 | fi | |
3271 | ||
3272 | ||
3273 | eval "$ac_cv_use_wave" | |
3274 | if test "$no_cache" != 1; then | |
3275 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3276 | fi | |
3277 | ||
3278 | if test "$wxUSE_WAVE" = yes; then | |
3279 | echo "$ac_t""yes" 1>&6 | |
3280 | else | |
3281 | echo "$ac_t""no" 1>&6 | |
3282 | fi | |
3283 | ||
3284 | ||
3285 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 | |
3286 | echo "configure:3287: checking for --enable-fraction" >&5 | |
3287 | no_cache=0 | |
3288 | # Check whether --enable-fraction or --disable-fraction was given. | |
3289 | if test "${enable_fraction+set}" = set; then | |
3290 | enableval="$enable_fraction" | |
3291 | ||
3292 | if test "$enableval" = yes; then | |
3293 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3294 | else | |
3295 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3296 | fi | |
3297 | ||
3298 | else | |
3299 | ||
3300 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
3301 | if test "x$LINE" != x ; then | |
3302 | eval "DEFAULT_$LINE" | |
3303 | else | |
3304 | no_cache=1 | |
3305 | fi | |
3306 | ||
3307 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
3308 | ||
3309 | fi | |
3310 | ||
3311 | ||
3312 | eval "$ac_cv_use_fraction" | |
3313 | if test "$no_cache" != 1; then | |
3314 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3315 | fi | |
3316 | ||
3317 | if test "$wxUSE_FRACTION" = yes; then | |
3318 | echo "$ac_t""yes" 1>&6 | |
3319 | else | |
3320 | echo "$ac_t""no" 1>&6 | |
3321 | fi | |
3322 | ||
3323 | ||
3324 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 | |
3325 | echo "configure:3326: checking for --enable-dynlib" >&5 | |
3326 | no_cache=0 | |
3327 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3328 | if test "${enable_dynlib+set}" = set; then | |
3329 | enableval="$enable_dynlib" | |
3330 | ||
3331 | if test "$enableval" = yes; then | |
3332 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3333 | else | |
3334 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3335 | fi | |
3336 | ||
3337 | else | |
3338 | ||
3339 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
3340 | if test "x$LINE" != x ; then | |
3341 | eval "DEFAULT_$LINE" | |
3342 | else | |
3343 | no_cache=1 | |
3344 | fi | |
3345 | ||
3346 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
3347 | ||
3348 | fi | |
3349 | ||
3350 | ||
3351 | eval "$ac_cv_use_dynlib" | |
3352 | if test "$no_cache" != 1; then | |
3353 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3354 | fi | |
3355 | ||
3356 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
3357 | echo "$ac_t""yes" 1>&6 | |
3358 | else | |
3359 | echo "$ac_t""no" 1>&6 | |
3360 | fi | |
3361 | ||
3362 | ||
3363 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 | |
3364 | echo "configure:3365: checking for --enable-longlong" >&5 | |
3365 | no_cache=0 | |
3366 | # Check whether --enable-longlong or --disable-longlong was given. | |
3367 | if test "${enable_longlong+set}" = set; then | |
3368 | enableval="$enable_longlong" | |
3369 | ||
3370 | if test "$enableval" = yes; then | |
3371 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3372 | else | |
3373 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3374 | fi | |
3375 | ||
3376 | else | |
3377 | ||
3378 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
3379 | if test "x$LINE" != x ; then | |
3380 | eval "DEFAULT_$LINE" | |
3381 | else | |
3382 | no_cache=1 | |
3383 | fi | |
3384 | ||
3385 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
3386 | ||
3387 | fi | |
3388 | ||
3389 | ||
3390 | eval "$ac_cv_use_longlong" | |
3391 | if test "$no_cache" != 1; then | |
3392 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3393 | fi | |
3394 | ||
3395 | if test "$wxUSE_LONGLONG" = yes; then | |
3396 | echo "$ac_t""yes" 1>&6 | |
3397 | else | |
3398 | echo "$ac_t""no" 1>&6 | |
3399 | fi | |
3400 | ||
3401 | ||
3402 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 | |
3403 | echo "configure:3404: checking for --enable-geometry" >&5 | |
3404 | no_cache=0 | |
3405 | # Check whether --enable-geometry or --disable-geometry was given. | |
3406 | if test "${enable_geometry+set}" = set; then | |
3407 | enableval="$enable_geometry" | |
3408 | ||
3409 | if test "$enableval" = yes; then | |
3410 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3411 | else | |
3412 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3413 | fi | |
3414 | ||
3415 | else | |
3416 | ||
3417 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
3418 | if test "x$LINE" != x ; then | |
3419 | eval "DEFAULT_$LINE" | |
3420 | else | |
3421 | no_cache=1 | |
3422 | fi | |
3423 | ||
3424 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
3425 | ||
3426 | fi | |
3427 | ||
3428 | ||
3429 | eval "$ac_cv_use_geometry" | |
3430 | if test "$no_cache" != 1; then | |
3431 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3432 | fi | |
3433 | ||
3434 | if test "$wxUSE_GEOMETRY" = yes; then | |
3435 | echo "$ac_t""yes" 1>&6 | |
3436 | else | |
3437 | echo "$ac_t""no" 1>&6 | |
3438 | fi | |
3439 | ||
3440 | ||
3441 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 | |
3442 | echo "configure:3443: checking for --enable-log" >&5 | |
3443 | no_cache=0 | |
3444 | # Check whether --enable-log or --disable-log was given. | |
3445 | if test "${enable_log+set}" = set; then | |
3446 | enableval="$enable_log" | |
3447 | ||
3448 | if test "$enableval" = yes; then | |
3449 | ac_cv_use_log='wxUSE_LOG=yes' | |
3450 | else | |
3451 | ac_cv_use_log='wxUSE_LOG=no' | |
3452 | fi | |
3453 | ||
3454 | else | |
3455 | ||
3456 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
3457 | if test "x$LINE" != x ; then | |
3458 | eval "DEFAULT_$LINE" | |
3459 | else | |
3460 | no_cache=1 | |
3461 | fi | |
3462 | ||
3463 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
3464 | ||
3465 | fi | |
3466 | ||
3467 | ||
3468 | eval "$ac_cv_use_log" | |
3469 | if test "$no_cache" != 1; then | |
3470 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3471 | fi | |
3472 | ||
3473 | if test "$wxUSE_LOG" = yes; then | |
3474 | echo "$ac_t""yes" 1>&6 | |
3475 | else | |
3476 | echo "$ac_t""no" 1>&6 | |
3477 | fi | |
3478 | ||
3479 | ||
3480 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 | |
3481 | echo "configure:3482: checking for --enable-streams" >&5 | |
3482 | no_cache=0 | |
3483 | # Check whether --enable-streams or --disable-streams was given. | |
3484 | if test "${enable_streams+set}" = set; then | |
3485 | enableval="$enable_streams" | |
3486 | ||
3487 | if test "$enableval" = yes; then | |
3488 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3489 | else | |
3490 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3491 | fi | |
3492 | ||
3493 | else | |
3494 | ||
3495 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
3496 | if test "x$LINE" != x ; then | |
3497 | eval "DEFAULT_$LINE" | |
3498 | else | |
3499 | no_cache=1 | |
3500 | fi | |
3501 | ||
3502 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
3503 | ||
3504 | fi | |
3505 | ||
3506 | ||
3507 | eval "$ac_cv_use_streams" | |
3508 | if test "$no_cache" != 1; then | |
3509 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3510 | fi | |
3511 | ||
3512 | if test "$wxUSE_STREAMS" = yes; then | |
3513 | echo "$ac_t""yes" 1>&6 | |
3514 | else | |
3515 | echo "$ac_t""no" 1>&6 | |
3516 | fi | |
3517 | ||
3518 | ||
3519 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 | |
3520 | echo "configure:3521: checking for --enable-file" >&5 | |
3521 | no_cache=0 | |
3522 | # Check whether --enable-file or --disable-file was given. | |
3523 | if test "${enable_file+set}" = set; then | |
3524 | enableval="$enable_file" | |
3525 | ||
3526 | if test "$enableval" = yes; then | |
3527 | ac_cv_use_file='wxUSE_FILE=yes' | |
3528 | else | |
3529 | ac_cv_use_file='wxUSE_FILE=no' | |
3530 | fi | |
3531 | ||
3532 | else | |
3533 | ||
3534 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
3535 | if test "x$LINE" != x ; then | |
3536 | eval "DEFAULT_$LINE" | |
3537 | else | |
3538 | no_cache=1 | |
3539 | fi | |
3540 | ||
3541 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
3542 | ||
3543 | fi | |
3544 | ||
3545 | ||
3546 | eval "$ac_cv_use_file" | |
3547 | if test "$no_cache" != 1; then | |
3548 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3549 | fi | |
3550 | ||
3551 | if test "$wxUSE_FILE" = yes; then | |
3552 | echo "$ac_t""yes" 1>&6 | |
3553 | else | |
3554 | echo "$ac_t""no" 1>&6 | |
3555 | fi | |
3556 | ||
3557 | ||
3558 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 | |
3559 | echo "configure:3560: checking for --enable-ffile" >&5 | |
3560 | no_cache=0 | |
3561 | # Check whether --enable-ffile or --disable-ffile was given. | |
3562 | if test "${enable_ffile+set}" = set; then | |
3563 | enableval="$enable_ffile" | |
3564 | ||
3565 | if test "$enableval" = yes; then | |
3566 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
3567 | else | |
3568 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
3569 | fi | |
3570 | ||
3571 | else | |
3572 | ||
3573 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
3574 | if test "x$LINE" != x ; then | |
3575 | eval "DEFAULT_$LINE" | |
3576 | else | |
3577 | no_cache=1 | |
3578 | fi | |
3579 | ||
3580 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
3581 | ||
3582 | fi | |
3583 | ||
3584 | ||
3585 | eval "$ac_cv_use_ffile" | |
3586 | if test "$no_cache" != 1; then | |
3587 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
3588 | fi | |
3589 | ||
3590 | if test "$wxUSE_FFILE" = yes; then | |
3591 | echo "$ac_t""yes" 1>&6 | |
3592 | else | |
3593 | echo "$ac_t""no" 1>&6 | |
3594 | fi | |
3595 | ||
3596 | ||
3597 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 | |
3598 | echo "configure:3599: checking for --enable-textfile" >&5 | |
3599 | no_cache=0 | |
3600 | # Check whether --enable-textfile or --disable-textfile was given. | |
3601 | if test "${enable_textfile+set}" = set; then | |
3602 | enableval="$enable_textfile" | |
3603 | ||
3604 | if test "$enableval" = yes; then | |
3605 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
3606 | else | |
3607 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
3608 | fi | |
3609 | ||
3610 | else | |
3611 | ||
3612 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
3613 | if test "x$LINE" != x ; then | |
3614 | eval "DEFAULT_$LINE" | |
3615 | else | |
3616 | no_cache=1 | |
3617 | fi | |
3618 | ||
3619 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
3620 | ||
3621 | fi | |
3622 | ||
3623 | ||
3624 | eval "$ac_cv_use_textfile" | |
3625 | if test "$no_cache" != 1; then | |
3626 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
3627 | fi | |
3628 | ||
3629 | if test "$wxUSE_TEXTFILE" = yes; then | |
3630 | echo "$ac_t""yes" 1>&6 | |
3631 | else | |
3632 | echo "$ac_t""no" 1>&6 | |
3633 | fi | |
3634 | ||
3635 | ||
3636 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 | |
3637 | echo "configure:3638: checking for --enable-fontmap" >&5 | |
3638 | no_cache=0 | |
3639 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
3640 | if test "${enable_fontmap+set}" = set; then | |
3641 | enableval="$enable_fontmap" | |
3642 | ||
3643 | if test "$enableval" = yes; then | |
3644 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
3645 | else | |
3646 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
3647 | fi | |
3648 | ||
3649 | else | |
3650 | ||
3651 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
3652 | if test "x$LINE" != x ; then | |
3653 | eval "DEFAULT_$LINE" | |
3654 | else | |
3655 | no_cache=1 | |
3656 | fi | |
3657 | ||
3658 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
3659 | ||
3660 | fi | |
3661 | ||
3662 | ||
3663 | eval "$ac_cv_use_fontmap" | |
3664 | if test "$no_cache" != 1; then | |
3665 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
3666 | fi | |
3667 | ||
3668 | if test "$wxUSE_FONTMAP" = yes; then | |
3669 | echo "$ac_t""yes" 1>&6 | |
3670 | else | |
3671 | echo "$ac_t""no" 1>&6 | |
3672 | fi | |
3673 | ||
3674 | ||
3675 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 | |
3676 | echo "configure:3677: checking for --enable-unicode" >&5 | |
3677 | no_cache=0 | |
3678 | # Check whether --enable-unicode or --disable-unicode was given. | |
3679 | if test "${enable_unicode+set}" = set; then | |
3680 | enableval="$enable_unicode" | |
3681 | ||
3682 | if test "$enableval" = yes; then | |
3683 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3684 | else | |
3685 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3686 | fi | |
3687 | ||
3688 | else | |
3689 | ||
3690 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3691 | if test "x$LINE" != x ; then | |
3692 | eval "DEFAULT_$LINE" | |
3693 | else | |
3694 | no_cache=1 | |
3695 | fi | |
3696 | ||
3697 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3698 | ||
3699 | fi | |
3700 | ||
3701 | ||
3702 | eval "$ac_cv_use_unicode" | |
3703 | if test "$no_cache" != 1; then | |
3704 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3705 | fi | |
3706 | ||
3707 | if test "$wxUSE_UNICODE" = yes; then | |
3708 | echo "$ac_t""yes" 1>&6 | |
3709 | else | |
3710 | echo "$ac_t""no" 1>&6 | |
3711 | fi | |
3712 | ||
3713 | ||
3714 | echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6 | |
3715 | echo "configure:3716: checking for --enable-wcsrtombs" >&5 | |
3716 | no_cache=0 | |
3717 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3718 | if test "${enable_wcsrtombs+set}" = set; then | |
3719 | enableval="$enable_wcsrtombs" | |
3720 | ||
3721 | if test "$enableval" = yes; then | |
3722 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3723 | else | |
3724 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3725 | fi | |
3726 | ||
3727 | else | |
3728 | ||
3729 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3730 | if test "x$LINE" != x ; then | |
3731 | eval "DEFAULT_$LINE" | |
3732 | else | |
3733 | no_cache=1 | |
3734 | fi | |
3735 | ||
3736 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3737 | ||
3738 | fi | |
3739 | ||
3740 | ||
3741 | eval "$ac_cv_use_wcsrtombs" | |
3742 | if test "$no_cache" != 1; then | |
3743 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3744 | fi | |
3745 | ||
3746 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3747 | echo "$ac_t""yes" 1>&6 | |
3748 | else | |
3749 | echo "$ac_t""no" 1>&6 | |
3750 | fi | |
3751 | ||
3752 | ||
3753 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 | |
3754 | echo "configure:3755: checking for --enable-wxprintfv" >&5 | |
3755 | no_cache=0 | |
3756 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3757 | if test "${enable_wxprintfv+set}" = set; then | |
3758 | enableval="$enable_wxprintfv" | |
3759 | ||
3760 | if test "$enableval" = yes; then | |
3761 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3762 | else | |
3763 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3764 | fi | |
3765 | ||
3766 | else | |
3767 | ||
3768 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3769 | if test "x$LINE" != x ; then | |
3770 | eval "DEFAULT_$LINE" | |
3771 | else | |
3772 | no_cache=1 | |
3773 | fi | |
3774 | ||
3775 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3776 | ||
3777 | fi | |
3778 | ||
3779 | ||
3780 | eval "$ac_cv_use_wxprintfv" | |
3781 | if test "$no_cache" != 1; then | |
3782 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3783 | fi | |
3784 | ||
3785 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3786 | echo "$ac_t""yes" 1>&6 | |
3787 | else | |
3788 | echo "$ac_t""no" 1>&6 | |
3789 | fi | |
3790 | ||
3791 | ||
3792 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 | |
3793 | echo "configure:3794: checking for --enable-std_iostreams" >&5 | |
3794 | no_cache=0 | |
3795 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3796 | if test "${enable_std_iostreams+set}" = set; then | |
3797 | enableval="$enable_std_iostreams" | |
3798 | ||
3799 | if test "$enableval" = yes; then | |
3800 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3801 | else | |
3802 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3803 | fi | |
3804 | ||
3805 | else | |
3806 | ||
3807 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3808 | if test "x$LINE" != x ; then | |
3809 | eval "DEFAULT_$LINE" | |
3810 | else | |
3811 | no_cache=1 | |
3812 | fi | |
3813 | ||
3814 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3815 | ||
3816 | fi | |
3817 | ||
3818 | ||
3819 | eval "$ac_cv_use_std_iostreams" | |
3820 | if test "$no_cache" != 1; then | |
3821 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3822 | fi | |
3823 | ||
3824 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3825 | echo "$ac_t""yes" 1>&6 | |
3826 | else | |
3827 | echo "$ac_t""no" 1>&6 | |
3828 | fi | |
3829 | ||
3830 | ||
3831 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 | |
3832 | echo "configure:3833: checking for --enable-filesystem" >&5 | |
3833 | no_cache=0 | |
3834 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3835 | if test "${enable_filesystem+set}" = set; then | |
3836 | enableval="$enable_filesystem" | |
3837 | ||
3838 | if test "$enableval" = yes; then | |
3839 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3840 | else | |
3841 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3842 | fi | |
3843 | ||
3844 | else | |
3845 | ||
3846 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
3847 | if test "x$LINE" != x ; then | |
3848 | eval "DEFAULT_$LINE" | |
3849 | else | |
3850 | no_cache=1 | |
3851 | fi | |
3852 | ||
3853 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
3854 | ||
3855 | fi | |
3856 | ||
3857 | ||
3858 | eval "$ac_cv_use_filesystem" | |
3859 | if test "$no_cache" != 1; then | |
3860 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3861 | fi | |
3862 | ||
3863 | if test "$wxUSE_FILESYSTEM" = yes; then | |
3864 | echo "$ac_t""yes" 1>&6 | |
3865 | else | |
3866 | echo "$ac_t""no" 1>&6 | |
3867 | fi | |
3868 | ||
3869 | ||
3870 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 | |
3871 | echo "configure:3872: checking for --enable-fs_inet" >&5 | |
3872 | no_cache=0 | |
3873 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3874 | if test "${enable_fs_inet+set}" = set; then | |
3875 | enableval="$enable_fs_inet" | |
3876 | ||
3877 | if test "$enableval" = yes; then | |
3878 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3879 | else | |
3880 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3881 | fi | |
3882 | ||
3883 | else | |
3884 | ||
3885 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3886 | if test "x$LINE" != x ; then | |
3887 | eval "DEFAULT_$LINE" | |
3888 | else | |
3889 | no_cache=1 | |
3890 | fi | |
3891 | ||
3892 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3893 | ||
3894 | fi | |
3895 | ||
3896 | ||
3897 | eval "$ac_cv_use_fs_inet" | |
3898 | if test "$no_cache" != 1; then | |
3899 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3900 | fi | |
3901 | ||
3902 | if test "$wxUSE_FS_INET" = yes; then | |
3903 | echo "$ac_t""yes" 1>&6 | |
3904 | else | |
3905 | echo "$ac_t""no" 1>&6 | |
3906 | fi | |
3907 | ||
3908 | ||
3909 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 | |
3910 | echo "configure:3911: checking for --enable-fs_zip" >&5 | |
3911 | no_cache=0 | |
3912 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3913 | if test "${enable_fs_zip+set}" = set; then | |
3914 | enableval="$enable_fs_zip" | |
3915 | ||
3916 | if test "$enableval" = yes; then | |
3917 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3918 | else | |
3919 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3920 | fi | |
3921 | ||
3922 | else | |
3923 | ||
3924 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3925 | if test "x$LINE" != x ; then | |
3926 | eval "DEFAULT_$LINE" | |
3927 | else | |
3928 | no_cache=1 | |
3929 | fi | |
3930 | ||
3931 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3932 | ||
3933 | fi | |
3934 | ||
3935 | ||
3936 | eval "$ac_cv_use_fs_zip" | |
3937 | if test "$no_cache" != 1; then | |
3938 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3939 | fi | |
3940 | ||
3941 | if test "$wxUSE_FS_ZIP" = yes; then | |
3942 | echo "$ac_t""yes" 1>&6 | |
3943 | else | |
3944 | echo "$ac_t""no" 1>&6 | |
3945 | fi | |
3946 | ||
3947 | ||
3948 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 | |
3949 | echo "configure:3950: checking for --enable-zipstream" >&5 | |
3950 | no_cache=0 | |
3951 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3952 | if test "${enable_zipstream+set}" = set; then | |
3953 | enableval="$enable_zipstream" | |
3954 | ||
3955 | if test "$enableval" = yes; then | |
3956 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3957 | else | |
3958 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3959 | fi | |
3960 | ||
3961 | else | |
3962 | ||
3963 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3964 | if test "x$LINE" != x ; then | |
3965 | eval "DEFAULT_$LINE" | |
3966 | else | |
3967 | no_cache=1 | |
3968 | fi | |
3969 | ||
3970 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3971 | ||
3972 | fi | |
3973 | ||
3974 | ||
3975 | eval "$ac_cv_use_zipstream" | |
3976 | if test "$no_cache" != 1; then | |
3977 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3978 | fi | |
3979 | ||
3980 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3981 | echo "$ac_t""yes" 1>&6 | |
3982 | else | |
3983 | echo "$ac_t""no" 1>&6 | |
3984 | fi | |
3985 | ||
3986 | ||
3987 | ||
3988 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
3989 | echo "configure:3990: checking for --enable-catch_segvs" >&5 | |
3990 | no_cache=0 | |
3991 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
3992 | if test "${enable_catch_segvs+set}" = set; then | |
3993 | enableval="$enable_catch_segvs" | |
3994 | ||
3995 | if test "$enableval" = yes; then | |
3996 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
3997 | else | |
3998 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
3999 | fi | |
4000 | ||
4001 | else | |
4002 | ||
4003 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4004 | if test "x$LINE" != x ; then | |
4005 | eval "DEFAULT_$LINE" | |
4006 | else | |
4007 | no_cache=1 | |
4008 | fi | |
4009 | ||
4010 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4011 | ||
4012 | fi | |
4013 | ||
4014 | ||
4015 | eval "$ac_cv_use_catch_segvs" | |
4016 | if test "$no_cache" != 1; then | |
4017 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4018 | fi | |
4019 | ||
4020 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4021 | echo "$ac_t""yes" 1>&6 | |
4022 | else | |
4023 | echo "$ac_t""no" 1>&6 | |
4024 | fi | |
4025 | ||
4026 | ||
4027 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 | |
4028 | echo "configure:4029: checking for --enable-snglinst" >&5 | |
4029 | no_cache=0 | |
4030 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4031 | if test "${enable_snglinst+set}" = set; then | |
4032 | enableval="$enable_snglinst" | |
4033 | ||
4034 | if test "$enableval" = yes; then | |
4035 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4036 | else | |
4037 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4038 | fi | |
4039 | ||
4040 | else | |
4041 | ||
4042 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
4043 | if test "x$LINE" != x ; then | |
4044 | eval "DEFAULT_$LINE" | |
4045 | else | |
4046 | no_cache=1 | |
4047 | fi | |
4048 | ||
4049 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
4050 | ||
4051 | fi | |
4052 | ||
4053 | ||
4054 | eval "$ac_cv_use_snglinst" | |
4055 | if test "$no_cache" != 1; then | |
4056 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4057 | fi | |
4058 | ||
4059 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
4060 | echo "$ac_t""yes" 1>&6 | |
4061 | else | |
4062 | echo "$ac_t""no" 1>&6 | |
4063 | fi | |
4064 | ||
4065 | ||
4066 | ||
4067 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 | |
4068 | echo "configure:4069: checking for --enable-mimetype" >&5 | |
4069 | no_cache=0 | |
4070 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4071 | if test "${enable_mimetype+set}" = set; then | |
4072 | enableval="$enable_mimetype" | |
4073 | ||
4074 | if test "$enableval" = yes; then | |
4075 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4076 | else | |
4077 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4078 | fi | |
4079 | ||
4080 | else | |
4081 | ||
4082 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4083 | if test "x$LINE" != x ; then | |
4084 | eval "DEFAULT_$LINE" | |
4085 | else | |
4086 | no_cache=1 | |
4087 | fi | |
4088 | ||
4089 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4090 | ||
4091 | fi | |
4092 | ||
4093 | ||
4094 | eval "$ac_cv_use_mimetype" | |
4095 | if test "$no_cache" != 1; then | |
4096 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4097 | fi | |
4098 | ||
4099 | if test "$wxUSE_MIMETYPE" = yes; then | |
4100 | echo "$ac_t""yes" 1>&6 | |
4101 | else | |
4102 | echo "$ac_t""no" 1>&6 | |
4103 | fi | |
4104 | ||
4105 | ||
4106 | ||
4107 | ||
4108 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
4109 | echo "configure:4110: checking for --enable-threads" >&5 | |
4110 | no_cache=0 | |
4111 | # Check whether --enable-threads or --disable-threads was given. | |
4112 | if test "${enable_threads+set}" = set; then | |
4113 | enableval="$enable_threads" | |
4114 | ||
4115 | if test "$enableval" = yes; then | |
4116 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4117 | else | |
4118 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4119 | fi | |
4120 | ||
4121 | else | |
4122 | ||
4123 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
4124 | if test "x$LINE" != x ; then | |
4125 | eval "DEFAULT_$LINE" | |
4126 | else | |
4127 | no_cache=1 | |
4128 | fi | |
4129 | ||
4130 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
4131 | ||
4132 | fi | |
4133 | ||
4134 | ||
4135 | eval "$ac_cv_use_threads" | |
4136 | if test "$no_cache" != 1; then | |
4137 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4138 | fi | |
4139 | ||
4140 | if test "$wxUSE_THREADS" = yes; then | |
4141 | echo "$ac_t""yes" 1>&6 | |
4142 | else | |
4143 | echo "$ac_t""no" 1>&6 | |
4144 | fi | |
4145 | ||
4146 | ||
4147 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 | |
4148 | echo "configure:4149: checking for --enable-serial" >&5 | |
4149 | no_cache=0 | |
4150 | # Check whether --enable-serial or --disable-serial was given. | |
4151 | if test "${enable_serial+set}" = set; then | |
4152 | enableval="$enable_serial" | |
4153 | ||
4154 | if test "$enableval" = yes; then | |
4155 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4156 | else | |
4157 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4158 | fi | |
4159 | ||
4160 | else | |
4161 | ||
4162 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
4163 | if test "x$LINE" != x ; then | |
4164 | eval "DEFAULT_$LINE" | |
4165 | else | |
4166 | no_cache=1 | |
4167 | fi | |
4168 | ||
4169 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
4170 | ||
4171 | fi | |
4172 | ||
4173 | ||
4174 | eval "$ac_cv_use_serial" | |
4175 | if test "$no_cache" != 1; then | |
4176 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4177 | fi | |
4178 | ||
4179 | if test "$wxUSE_SERIAL" = yes; then | |
4180 | echo "$ac_t""yes" 1>&6 | |
4181 | else | |
4182 | echo "$ac_t""no" 1>&6 | |
4183 | fi | |
4184 | ||
4185 | ||
4186 | if test "$wxUSE_GUI" = "yes"; then | |
4187 | ||
4188 | ||
4189 | ||
4190 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
4191 | echo "configure:4192: checking for --enable-docview" >&5 | |
4192 | no_cache=0 | |
4193 | # Check whether --enable-docview or --disable-docview was given. | |
4194 | if test "${enable_docview+set}" = set; then | |
4195 | enableval="$enable_docview" | |
4196 | ||
4197 | if test "$enableval" = yes; then | |
4198 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4199 | else | |
4200 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4201 | fi | |
4202 | ||
4203 | else | |
4204 | ||
4205 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
4206 | if test "x$LINE" != x ; then | |
4207 | eval "DEFAULT_$LINE" | |
4208 | else | |
4209 | no_cache=1 | |
4210 | fi | |
4211 | ||
4212 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
4213 | ||
4214 | fi | |
4215 | ||
4216 | ||
4217 | eval "$ac_cv_use_docview" | |
4218 | if test "$no_cache" != 1; then | |
4219 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4220 | fi | |
4221 | ||
4222 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
4223 | echo "$ac_t""yes" 1>&6 | |
4224 | else | |
4225 | echo "$ac_t""no" 1>&6 | |
4226 | fi | |
4227 | ||
4228 | ||
4229 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 | |
4230 | echo "configure:4231: checking for --enable-help" >&5 | |
4231 | no_cache=0 | |
4232 | # Check whether --enable-help or --disable-help was given. | |
4233 | if test "${enable_help+set}" = set; then | |
4234 | enableval="$enable_help" | |
4235 | ||
4236 | if test "$enableval" = yes; then | |
4237 | ac_cv_use_help='wxUSE_HELP=yes' | |
4238 | else | |
4239 | ac_cv_use_help='wxUSE_HELP=no' | |
4240 | fi | |
4241 | ||
4242 | else | |
4243 | ||
4244 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
4245 | if test "x$LINE" != x ; then | |
4246 | eval "DEFAULT_$LINE" | |
4247 | else | |
4248 | no_cache=1 | |
4249 | fi | |
4250 | ||
4251 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
4252 | ||
4253 | fi | |
4254 | ||
4255 | ||
4256 | eval "$ac_cv_use_help" | |
4257 | if test "$no_cache" != 1; then | |
4258 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4259 | fi | |
4260 | ||
4261 | if test "$wxUSE_HELP" = yes; then | |
4262 | echo "$ac_t""yes" 1>&6 | |
4263 | else | |
4264 | echo "$ac_t""no" 1>&6 | |
4265 | fi | |
4266 | ||
4267 | ||
4268 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 | |
4269 | echo "configure:4270: checking for --enable-constraints" >&5 | |
4270 | no_cache=0 | |
4271 | # Check whether --enable-constraints or --disable-constraints was given. | |
4272 | if test "${enable_constraints+set}" = set; then | |
4273 | enableval="$enable_constraints" | |
4274 | ||
4275 | if test "$enableval" = yes; then | |
4276 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4277 | else | |
4278 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4279 | fi | |
4280 | ||
4281 | else | |
4282 | ||
4283 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
4284 | if test "x$LINE" != x ; then | |
4285 | eval "DEFAULT_$LINE" | |
4286 | else | |
4287 | no_cache=1 | |
4288 | fi | |
4289 | ||
4290 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
4291 | ||
4292 | fi | |
4293 | ||
4294 | ||
4295 | eval "$ac_cv_use_constraints" | |
4296 | if test "$no_cache" != 1; then | |
4297 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4298 | fi | |
4299 | ||
4300 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
4301 | echo "$ac_t""yes" 1>&6 | |
4302 | else | |
4303 | echo "$ac_t""no" 1>&6 | |
4304 | fi | |
4305 | ||
4306 | ||
4307 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 | |
4308 | echo "configure:4309: checking for --enable-printarch" >&5 | |
4309 | no_cache=0 | |
4310 | # Check whether --enable-printarch or --disable-printarch was given. | |
4311 | if test "${enable_printarch+set}" = set; then | |
4312 | enableval="$enable_printarch" | |
4313 | ||
4314 | if test "$enableval" = yes; then | |
4315 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4316 | else | |
4317 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4318 | fi | |
4319 | ||
4320 | else | |
4321 | ||
4322 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
4323 | if test "x$LINE" != x ; then | |
4324 | eval "DEFAULT_$LINE" | |
4325 | else | |
4326 | no_cache=1 | |
4327 | fi | |
4328 | ||
4329 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
4330 | ||
4331 | fi | |
4332 | ||
4333 | ||
4334 | eval "$ac_cv_use_printarch" | |
4335 | if test "$no_cache" != 1; then | |
4336 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4337 | fi | |
4338 | ||
4339 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
4340 | echo "$ac_t""yes" 1>&6 | |
4341 | else | |
4342 | echo "$ac_t""no" 1>&6 | |
4343 | fi | |
4344 | ||
4345 | ||
4346 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 | |
4347 | echo "configure:4348: checking for --enable-mdi" >&5 | |
4348 | no_cache=0 | |
4349 | # Check whether --enable-mdi or --disable-mdi was given. | |
4350 | if test "${enable_mdi+set}" = set; then | |
4351 | enableval="$enable_mdi" | |
4352 | ||
4353 | if test "$enableval" = yes; then | |
4354 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4355 | else | |
4356 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4357 | fi | |
4358 | ||
4359 | else | |
4360 | ||
4361 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
4362 | if test "x$LINE" != x ; then | |
4363 | eval "DEFAULT_$LINE" | |
4364 | else | |
4365 | no_cache=1 | |
4366 | fi | |
4367 | ||
4368 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
4369 | ||
4370 | fi | |
4371 | ||
4372 | ||
4373 | eval "$ac_cv_use_mdi" | |
4374 | if test "$no_cache" != 1; then | |
4375 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4376 | fi | |
4377 | ||
4378 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
4379 | echo "$ac_t""yes" 1>&6 | |
4380 | else | |
4381 | echo "$ac_t""no" 1>&6 | |
4382 | fi | |
4383 | ||
4384 | ||
4385 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 | |
4386 | echo "configure:4387: checking for --enable-loggui" >&5 | |
4387 | no_cache=0 | |
4388 | # Check whether --enable-loggui or --disable-loggui was given. | |
4389 | if test "${enable_loggui+set}" = set; then | |
4390 | enableval="$enable_loggui" | |
4391 | ||
4392 | if test "$enableval" = yes; then | |
4393 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4394 | else | |
4395 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4396 | fi | |
4397 | ||
4398 | else | |
4399 | ||
4400 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4401 | if test "x$LINE" != x ; then | |
4402 | eval "DEFAULT_$LINE" | |
4403 | else | |
4404 | no_cache=1 | |
4405 | fi | |
4406 | ||
4407 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4408 | ||
4409 | fi | |
4410 | ||
4411 | ||
4412 | eval "$ac_cv_use_loggui" | |
4413 | if test "$no_cache" != 1; then | |
4414 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4415 | fi | |
4416 | ||
4417 | if test "$wxUSE_LOGGUI" = yes; then | |
4418 | echo "$ac_t""yes" 1>&6 | |
4419 | else | |
4420 | echo "$ac_t""no" 1>&6 | |
4421 | fi | |
4422 | ||
4423 | ||
4424 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
4425 | echo "configure:4426: checking for --enable-logwin" >&5 | |
4426 | no_cache=0 | |
4427 | # Check whether --enable-logwin or --disable-logwin was given. | |
4428 | if test "${enable_logwin+set}" = set; then | |
4429 | enableval="$enable_logwin" | |
4430 | ||
4431 | if test "$enableval" = yes; then | |
4432 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4433 | else | |
4434 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4435 | fi | |
4436 | ||
4437 | else | |
4438 | ||
4439 | LINE=`grep "wxUSE_LOGWINDOW" ${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_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4447 | ||
4448 | fi | |
4449 | ||
4450 | ||
4451 | eval "$ac_cv_use_logwin" | |
4452 | if test "$no_cache" != 1; then | |
4453 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4454 | fi | |
4455 | ||
4456 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4457 | echo "$ac_t""yes" 1>&6 | |
4458 | else | |
4459 | echo "$ac_t""no" 1>&6 | |
4460 | fi | |
4461 | ||
4462 | ||
4463 | ||
4464 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 | |
4465 | echo "configure:4466: checking for --enable-postscript" >&5 | |
4466 | no_cache=0 | |
4467 | # Check whether --enable-postscript or --disable-postscript was given. | |
4468 | if test "${enable_postscript+set}" = set; then | |
4469 | enableval="$enable_postscript" | |
4470 | ||
4471 | if test "$enableval" = yes; then | |
4472 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4473 | else | |
4474 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4475 | fi | |
4476 | ||
4477 | else | |
4478 | ||
4479 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
4480 | if test "x$LINE" != x ; then | |
4481 | eval "DEFAULT_$LINE" | |
4482 | else | |
4483 | no_cache=1 | |
4484 | fi | |
4485 | ||
4486 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
4487 | ||
4488 | fi | |
4489 | ||
4490 | ||
4491 | eval "$ac_cv_use_postscript" | |
4492 | if test "$no_cache" != 1; then | |
4493 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4494 | fi | |
4495 | ||
4496 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
4497 | echo "$ac_t""yes" 1>&6 | |
4498 | else | |
4499 | echo "$ac_t""no" 1>&6 | |
4500 | fi | |
4501 | ||
4502 | ||
4503 | ||
4504 | ||
4505 | ||
4506 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 | |
4507 | echo "configure:4508: checking for --enable-prologio" >&5 | |
4508 | no_cache=0 | |
4509 | # Check whether --enable-prologio or --disable-prologio was given. | |
4510 | if test "${enable_prologio+set}" = set; then | |
4511 | enableval="$enable_prologio" | |
4512 | ||
4513 | if test "$enableval" = yes; then | |
4514 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4515 | else | |
4516 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4517 | fi | |
4518 | ||
4519 | else | |
4520 | ||
4521 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
4522 | if test "x$LINE" != x ; then | |
4523 | eval "DEFAULT_$LINE" | |
4524 | else | |
4525 | no_cache=1 | |
4526 | fi | |
4527 | ||
4528 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
4529 | ||
4530 | fi | |
4531 | ||
4532 | ||
4533 | eval "$ac_cv_use_prologio" | |
4534 | if test "$no_cache" != 1; then | |
4535 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4536 | fi | |
4537 | ||
4538 | if test "$wxUSE_PROLOGIO" = yes; then | |
4539 | echo "$ac_t""yes" 1>&6 | |
4540 | else | |
4541 | echo "$ac_t""no" 1>&6 | |
4542 | fi | |
4543 | ||
4544 | ||
4545 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 | |
4546 | echo "configure:4547: checking for --enable-resources" >&5 | |
4547 | no_cache=0 | |
4548 | # Check whether --enable-resources or --disable-resources was given. | |
4549 | if test "${enable_resources+set}" = set; then | |
4550 | enableval="$enable_resources" | |
4551 | ||
4552 | if test "$enableval" = yes; then | |
4553 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4554 | else | |
4555 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4556 | fi | |
4557 | ||
4558 | else | |
4559 | ||
4560 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
4561 | if test "x$LINE" != x ; then | |
4562 | eval "DEFAULT_$LINE" | |
4563 | else | |
4564 | no_cache=1 | |
4565 | fi | |
4566 | ||
4567 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
4568 | ||
4569 | fi | |
4570 | ||
4571 | ||
4572 | eval "$ac_cv_use_resources" | |
4573 | if test "$no_cache" != 1; then | |
4574 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4575 | fi | |
4576 | ||
4577 | if test "$wxUSE_RESOURCES" = yes; then | |
4578 | echo "$ac_t""yes" 1>&6 | |
4579 | else | |
4580 | echo "$ac_t""no" 1>&6 | |
4581 | fi | |
4582 | ||
4583 | ||
4584 | ||
4585 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
4586 | echo "configure:4587: checking for --enable-xresources" >&5 | |
4587 | no_cache=0 | |
4588 | # Check whether --enable-xresources or --disable-xresources was given. | |
4589 | if test "${enable_xresources+set}" = set; then | |
4590 | enableval="$enable_xresources" | |
4591 | ||
4592 | if test "$enableval" = yes; then | |
4593 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4594 | else | |
4595 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4596 | fi | |
4597 | ||
4598 | else | |
4599 | ||
4600 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
4601 | if test "x$LINE" != x ; then | |
4602 | eval "DEFAULT_$LINE" | |
4603 | else | |
4604 | no_cache=1 | |
4605 | fi | |
4606 | ||
4607 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
4608 | ||
4609 | fi | |
4610 | ||
4611 | ||
4612 | eval "$ac_cv_use_xresources" | |
4613 | if test "$no_cache" != 1; then | |
4614 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4615 | fi | |
4616 | ||
4617 | if test "$wxUSE_X_RESOURCES" = yes; then | |
4618 | echo "$ac_t""yes" 1>&6 | |
4619 | else | |
4620 | echo "$ac_t""no" 1>&6 | |
4621 | fi | |
4622 | ||
4623 | ||
4624 | ||
4625 | ||
4626 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
4627 | echo "configure:4628: checking for --enable-clipboard" >&5 | |
4628 | no_cache=0 | |
4629 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4630 | if test "${enable_clipboard+set}" = set; then | |
4631 | enableval="$enable_clipboard" | |
4632 | ||
4633 | if test "$enableval" = yes; then | |
4634 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4635 | else | |
4636 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4637 | fi | |
4638 | ||
4639 | else | |
4640 | ||
4641 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
4642 | if test "x$LINE" != x ; then | |
4643 | eval "DEFAULT_$LINE" | |
4644 | else | |
4645 | no_cache=1 | |
4646 | fi | |
4647 | ||
4648 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
4649 | ||
4650 | fi | |
4651 | ||
4652 | ||
4653 | eval "$ac_cv_use_clipboard" | |
4654 | if test "$no_cache" != 1; then | |
4655 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4656 | fi | |
4657 | ||
4658 | if test "$wxUSE_CLIPBOARD" = yes; then | |
4659 | echo "$ac_t""yes" 1>&6 | |
4660 | else | |
4661 | echo "$ac_t""no" 1>&6 | |
4662 | fi | |
4663 | ||
4664 | ||
4665 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 | |
4666 | echo "configure:4667: checking for --enable-dnd" >&5 | |
4667 | no_cache=0 | |
4668 | # Check whether --enable-dnd or --disable-dnd was given. | |
4669 | if test "${enable_dnd+set}" = set; then | |
4670 | enableval="$enable_dnd" | |
4671 | ||
4672 | if test "$enableval" = yes; then | |
4673 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4674 | else | |
4675 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4676 | fi | |
4677 | ||
4678 | else | |
4679 | ||
4680 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
4681 | if test "x$LINE" != x ; then | |
4682 | eval "DEFAULT_$LINE" | |
4683 | else | |
4684 | no_cache=1 | |
4685 | fi | |
4686 | ||
4687 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
4688 | ||
4689 | fi | |
4690 | ||
4691 | ||
4692 | eval "$ac_cv_use_dnd" | |
4693 | if test "$no_cache" != 1; then | |
4694 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4695 | fi | |
4696 | ||
4697 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
4698 | echo "$ac_t""yes" 1>&6 | |
4699 | else | |
4700 | echo "$ac_t""no" 1>&6 | |
4701 | fi | |
4702 | ||
4703 | ||
4704 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 | |
4705 | echo "configure:4706: checking for --enable-metafile" >&5 | |
4706 | no_cache=0 | |
4707 | # Check whether --enable-metafile or --disable-metafile was given. | |
4708 | if test "${enable_metafile+set}" = set; then | |
4709 | enableval="$enable_metafile" | |
4710 | ||
4711 | if test "$enableval" = yes; then | |
4712 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4713 | else | |
4714 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4715 | fi | |
4716 | ||
4717 | else | |
4718 | ||
4719 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
4720 | if test "x$LINE" != x ; then | |
4721 | eval "DEFAULT_$LINE" | |
4722 | else | |
4723 | no_cache=1 | |
4724 | fi | |
4725 | ||
4726 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
4727 | ||
4728 | fi | |
4729 | ||
4730 | ||
4731 | eval "$ac_cv_use_metafile" | |
4732 | if test "$no_cache" != 1; then | |
4733 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4734 | fi | |
4735 | ||
4736 | if test "$wxUSE_METAFILE" = yes; then | |
4737 | echo "$ac_t""yes" 1>&6 | |
4738 | else | |
4739 | echo "$ac_t""no" 1>&6 | |
4740 | fi | |
4741 | ||
4742 | ||
4743 | ||
4744 | echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6 | |
4745 | echo "configure:4746: checking for --enable-wxtree" >&5 | |
4746 | no_cache=0 | |
4747 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
4748 | if test "${enable_wxtree+set}" = set; then | |
4749 | enableval="$enable_wxtree" | |
4750 | ||
4751 | if test "$enableval" = yes; then | |
4752 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
4753 | else | |
4754 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
4755 | fi | |
4756 | ||
4757 | else | |
4758 | ||
4759 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
4760 | if test "x$LINE" != x ; then | |
4761 | eval "DEFAULT_$LINE" | |
4762 | else | |
4763 | no_cache=1 | |
4764 | fi | |
4765 | ||
4766 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
4767 | ||
4768 | fi | |
4769 | ||
4770 | ||
4771 | eval "$ac_cv_use_wxtree" | |
4772 | if test "$no_cache" != 1; then | |
4773 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
4774 | fi | |
4775 | ||
4776 | if test "$wxUSE_WXTREE" = yes; then | |
4777 | echo "$ac_t""yes" 1>&6 | |
4778 | else | |
4779 | echo "$ac_t""no" 1>&6 | |
4780 | fi | |
4781 | ||
4782 | ||
4783 | ||
4784 | ||
4785 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
4786 | echo "configure:4787: checking for --enable-controls" >&5 | |
4787 | no_cache=0 | |
4788 | # Check whether --enable-controls or --disable-controls was given. | |
4789 | if test "${enable_controls+set}" = set; then | |
4790 | enableval="$enable_controls" | |
4791 | ||
4792 | if test "$enableval" = yes; then | |
4793 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4794 | else | |
4795 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4796 | fi | |
4797 | ||
4798 | else | |
4799 | ||
4800 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
4801 | if test "x$LINE" != x ; then | |
4802 | eval "DEFAULT_$LINE" | |
4803 | else | |
4804 | no_cache=1 | |
4805 | fi | |
4806 | ||
4807 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
4808 | ||
4809 | fi | |
4810 | ||
4811 | ||
4812 | eval "$ac_cv_use_controls" | |
4813 | if test "$no_cache" != 1; then | |
4814 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
4815 | fi | |
4816 | ||
4817 | if test "$wxUSE_CONTROLS" = yes; then | |
4818 | echo "$ac_t""yes" 1>&6 | |
4819 | else | |
4820 | echo "$ac_t""no" 1>&6 | |
4821 | fi | |
4822 | ||
4823 | ||
4824 | if test "$wxUSE_CONTROLS" = "yes"; then | |
4825 | DEFAULT_wxUSE_ACCEL=yes | |
4826 | DEFAULT_wxUSE_BMPBUTTON=yes | |
4827 | DEFAULT_wxUSE_BUTTON=yes | |
4828 | DEFAULT_wxUSE_CALCTRL=no | |
4829 | DEFAULT_wxUSE_CARET=yes | |
4830 | DEFAULT_wxUSE_COMBOBOX=yes | |
4831 | DEFAULT_wxUSE_CHECKBOX=yes | |
4832 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4833 | DEFAULT_wxUSE_CHOICE=yes | |
4834 | DEFAULT_wxUSE_GAUGE=yes | |
4835 | DEFAULT_wxUSE_GRID=yes | |
4836 | DEFAULT_wxUSE_NEW_GRID=yes | |
4837 | DEFAULT_wxUSE_IMAGLIST=yes | |
4838 | DEFAULT_wxUSE_LISTBOX=yes | |
4839 | DEFAULT_wxUSE_LISTCTRL=yes | |
4840 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4841 | DEFAULT_wxUSE_RADIOBOX=yes | |
4842 | DEFAULT_wxUSE_RADIOBTN=yes | |
4843 | DEFAULT_wxUSE_SASH=yes | |
4844 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4845 | DEFAULT_wxUSE_SLIDER=yes | |
4846 | DEFAULT_wxUSE_SPINBTN=yes | |
4847 | DEFAULT_wxUSE_SPINCTRL=yes | |
4848 | DEFAULT_wxUSE_SPLITTER=yes | |
4849 | DEFAULT_wxUSE_STATBMP=yes | |
4850 | DEFAULT_wxUSE_STATBOX=yes | |
4851 | DEFAULT_wxUSE_STATLINE=yes | |
4852 | DEFAULT_wxUSE_STATUSBAR=yes | |
4853 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
4854 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
4855 | DEFAULT_wxUSE_TOOLBAR=yes | |
4856 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
4857 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
4858 | DEFAULT_wxUSE_TOOLTIPS=yes | |
4859 | DEFAULT_wxUSE_TREECTRL=yes | |
4860 | elif test "$wxUSE_CONTROLS" = "no"; then | |
4861 | DEFAULT_wxUSE_ACCEL=no | |
4862 | DEFAULT_wxUSE_BMPBUTTON=no | |
4863 | DEFAULT_wxUSE_BUTTON=no | |
4864 | DEFAULT_wxUSE_CALCTRL=no | |
4865 | DEFAULT_wxUSE_CARET=no | |
4866 | DEFAULT_wxUSE_COMBOBOX=no | |
4867 | DEFAULT_wxUSE_CHECKBOX=no | |
4868 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
4869 | DEFAULT_wxUSE_CHOICE=no | |
4870 | DEFAULT_wxUSE_GAUGE=no | |
4871 | DEFAULT_wxUSE_GRID=no | |
4872 | DEFAULT_wxUSE_NEW_GRID=no | |
4873 | DEFAULT_wxUSE_IMAGLIST=no | |
4874 | DEFAULT_wxUSE_LISTBOX=no | |
4875 | DEFAULT_wxUSE_LISTCTRL=no | |
4876 | DEFAULT_wxUSE_NOTEBOOK=no | |
4877 | DEFAULT_wxUSE_RADIOBOX=no | |
4878 | DEFAULT_wxUSE_RADIOBTN=no | |
4879 | DEFAULT_wxUSE_SASH=no | |
4880 | DEFAULT_wxUSE_SCROLLBAR=no | |
4881 | DEFAULT_wxUSE_SLIDER=no | |
4882 | DEFAULT_wxUSE_SPINBTN=no | |
4883 | DEFAULT_wxUSE_SPINCTRL=no | |
4884 | DEFAULT_wxUSE_SPLITTER=no | |
4885 | DEFAULT_wxUSE_STATBMP=no | |
4886 | DEFAULT_wxUSE_STATBOX=no | |
4887 | DEFAULT_wxUSE_STATLINE=no | |
4888 | DEFAULT_wxUSE_STATUSBAR=no | |
4889 | DEFAULT_wxUSE_TAB_DIALOG=no | |
4890 | DEFAULT_wxUSE_TOGGLEBTN=no | |
4891 | DEFAULT_wxUSE_TOOLBAR=no | |
4892 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
4893 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
4894 | DEFAULT_wxUSE_TOOLTIPS=no | |
4895 | DEFAULT_wxUSE_TREECTRL=no | |
4896 | fi | |
4897 | ||
4898 | ||
4899 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
4900 | echo "configure:4901: checking for --enable-accel" >&5 | |
4901 | no_cache=0 | |
4902 | # Check whether --enable-accel or --disable-accel was given. | |
4903 | if test "${enable_accel+set}" = set; then | |
4904 | enableval="$enable_accel" | |
4905 | ||
4906 | if test "$enableval" = yes; then | |
4907 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
4908 | else | |
4909 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
4910 | fi | |
4911 | ||
4912 | else | |
4913 | ||
4914 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
4915 | if test "x$LINE" != x ; then | |
4916 | eval "DEFAULT_$LINE" | |
4917 | else | |
4918 | no_cache=1 | |
4919 | fi | |
4920 | ||
4921 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
4922 | ||
4923 | fi | |
4924 | ||
4925 | ||
4926 | eval "$ac_cv_use_accel" | |
4927 | if test "$no_cache" != 1; then | |
4928 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
4929 | fi | |
4930 | ||
4931 | if test "$wxUSE_ACCEL" = yes; then | |
4932 | echo "$ac_t""yes" 1>&6 | |
4933 | else | |
4934 | echo "$ac_t""no" 1>&6 | |
4935 | fi | |
4936 | ||
4937 | ||
4938 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 | |
4939 | echo "configure:4940: checking for --enable-button" >&5 | |
4940 | no_cache=0 | |
4941 | # Check whether --enable-button or --disable-button was given. | |
4942 | if test "${enable_button+set}" = set; then | |
4943 | enableval="$enable_button" | |
4944 | ||
4945 | if test "$enableval" = yes; then | |
4946 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
4947 | else | |
4948 | ac_cv_use_button='wxUSE_BUTTON=no' | |
4949 | fi | |
4950 | ||
4951 | else | |
4952 | ||
4953 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
4954 | if test "x$LINE" != x ; then | |
4955 | eval "DEFAULT_$LINE" | |
4956 | else | |
4957 | no_cache=1 | |
4958 | fi | |
4959 | ||
4960 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
4961 | ||
4962 | fi | |
4963 | ||
4964 | ||
4965 | eval "$ac_cv_use_button" | |
4966 | if test "$no_cache" != 1; then | |
4967 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
4968 | fi | |
4969 | ||
4970 | if test "$wxUSE_BUTTON" = yes; then | |
4971 | echo "$ac_t""yes" 1>&6 | |
4972 | else | |
4973 | echo "$ac_t""no" 1>&6 | |
4974 | fi | |
4975 | ||
4976 | ||
4977 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 | |
4978 | echo "configure:4979: checking for --enable-bmpbutton" >&5 | |
4979 | no_cache=0 | |
4980 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4981 | if test "${enable_bmpbutton+set}" = set; then | |
4982 | enableval="$enable_bmpbutton" | |
4983 | ||
4984 | if test "$enableval" = yes; then | |
4985 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4986 | else | |
4987 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4988 | fi | |
4989 | ||
4990 | else | |
4991 | ||
4992 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4993 | if test "x$LINE" != x ; then | |
4994 | eval "DEFAULT_$LINE" | |
4995 | else | |
4996 | no_cache=1 | |
4997 | fi | |
4998 | ||
4999 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
5000 | ||
5001 | fi | |
5002 | ||
5003 | ||
5004 | eval "$ac_cv_use_bmpbutton" | |
5005 | if test "$no_cache" != 1; then | |
5006 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5007 | fi | |
5008 | ||
5009 | if test "$wxUSE_BMPBUTTON" = yes; then | |
5010 | echo "$ac_t""yes" 1>&6 | |
5011 | else | |
5012 | echo "$ac_t""no" 1>&6 | |
5013 | fi | |
5014 | ||
5015 | ||
5016 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 | |
5017 | echo "configure:5018: checking for --enable-calendar" >&5 | |
5018 | no_cache=0 | |
5019 | # Check whether --enable-calendar or --disable-calendar was given. | |
5020 | if test "${enable_calendar+set}" = set; then | |
5021 | enableval="$enable_calendar" | |
5022 | ||
5023 | if test "$enableval" = yes; then | |
5024 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5025 | else | |
5026 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5027 | fi | |
5028 | ||
5029 | else | |
5030 | ||
5031 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5032 | if test "x$LINE" != x ; then | |
5033 | eval "DEFAULT_$LINE" | |
5034 | else | |
5035 | no_cache=1 | |
5036 | fi | |
5037 | ||
5038 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5039 | ||
5040 | fi | |
5041 | ||
5042 | ||
5043 | eval "$ac_cv_use_calendar" | |
5044 | if test "$no_cache" != 1; then | |
5045 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5046 | fi | |
5047 | ||
5048 | if test "$wxUSE_CALCTRL" = yes; then | |
5049 | echo "$ac_t""yes" 1>&6 | |
5050 | else | |
5051 | echo "$ac_t""no" 1>&6 | |
5052 | fi | |
5053 | ||
5054 | ||
5055 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
5056 | echo "configure:5057: checking for --enable-caret" >&5 | |
5057 | no_cache=0 | |
5058 | # Check whether --enable-caret or --disable-caret was given. | |
5059 | if test "${enable_caret+set}" = set; then | |
5060 | enableval="$enable_caret" | |
5061 | ||
5062 | if test "$enableval" = yes; then | |
5063 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5064 | else | |
5065 | ac_cv_use_caret='wxUSE_CARET=no' | |
5066 | fi | |
5067 | ||
5068 | else | |
5069 | ||
5070 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5071 | if test "x$LINE" != x ; then | |
5072 | eval "DEFAULT_$LINE" | |
5073 | else | |
5074 | no_cache=1 | |
5075 | fi | |
5076 | ||
5077 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5078 | ||
5079 | fi | |
5080 | ||
5081 | ||
5082 | eval "$ac_cv_use_caret" | |
5083 | if test "$no_cache" != 1; then | |
5084 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5085 | fi | |
5086 | ||
5087 | if test "$wxUSE_CARET" = yes; then | |
5088 | echo "$ac_t""yes" 1>&6 | |
5089 | else | |
5090 | echo "$ac_t""no" 1>&6 | |
5091 | fi | |
5092 | ||
5093 | ||
5094 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 | |
5095 | echo "configure:5096: checking for --enable-checkbox" >&5 | |
5096 | no_cache=0 | |
5097 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5098 | if test "${enable_checkbox+set}" = set; then | |
5099 | enableval="$enable_checkbox" | |
5100 | ||
5101 | if test "$enableval" = yes; then | |
5102 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5103 | else | |
5104 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5105 | fi | |
5106 | ||
5107 | else | |
5108 | ||
5109 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
5110 | if test "x$LINE" != x ; then | |
5111 | eval "DEFAULT_$LINE" | |
5112 | else | |
5113 | no_cache=1 | |
5114 | fi | |
5115 | ||
5116 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
5117 | ||
5118 | fi | |
5119 | ||
5120 | ||
5121 | eval "$ac_cv_use_checkbox" | |
5122 | if test "$no_cache" != 1; then | |
5123 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5124 | fi | |
5125 | ||
5126 | if test "$wxUSE_CHECKBOX" = yes; then | |
5127 | echo "$ac_t""yes" 1>&6 | |
5128 | else | |
5129 | echo "$ac_t""no" 1>&6 | |
5130 | fi | |
5131 | ||
5132 | ||
5133 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 | |
5134 | echo "configure:5135: checking for --enable-checklst" >&5 | |
5135 | no_cache=0 | |
5136 | # Check whether --enable-checklst or --disable-checklst was given. | |
5137 | if test "${enable_checklst+set}" = set; then | |
5138 | enableval="$enable_checklst" | |
5139 | ||
5140 | if test "$enableval" = yes; then | |
5141 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5142 | else | |
5143 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5144 | fi | |
5145 | ||
5146 | else | |
5147 | ||
5148 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
5149 | if test "x$LINE" != x ; then | |
5150 | eval "DEFAULT_$LINE" | |
5151 | else | |
5152 | no_cache=1 | |
5153 | fi | |
5154 | ||
5155 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
5156 | ||
5157 | fi | |
5158 | ||
5159 | ||
5160 | eval "$ac_cv_use_checklst" | |
5161 | if test "$no_cache" != 1; then | |
5162 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5163 | fi | |
5164 | ||
5165 | if test "$wxUSE_CHECKLST" = yes; then | |
5166 | echo "$ac_t""yes" 1>&6 | |
5167 | else | |
5168 | echo "$ac_t""no" 1>&6 | |
5169 | fi | |
5170 | ||
5171 | ||
5172 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 | |
5173 | echo "configure:5174: checking for --enable-choice" >&5 | |
5174 | no_cache=0 | |
5175 | # Check whether --enable-choice or --disable-choice was given. | |
5176 | if test "${enable_choice+set}" = set; then | |
5177 | enableval="$enable_choice" | |
5178 | ||
5179 | if test "$enableval" = yes; then | |
5180 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5181 | else | |
5182 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5183 | fi | |
5184 | ||
5185 | else | |
5186 | ||
5187 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
5188 | if test "x$LINE" != x ; then | |
5189 | eval "DEFAULT_$LINE" | |
5190 | else | |
5191 | no_cache=1 | |
5192 | fi | |
5193 | ||
5194 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
5195 | ||
5196 | fi | |
5197 | ||
5198 | ||
5199 | eval "$ac_cv_use_choice" | |
5200 | if test "$no_cache" != 1; then | |
5201 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5202 | fi | |
5203 | ||
5204 | if test "$wxUSE_CHOICE" = yes; then | |
5205 | echo "$ac_t""yes" 1>&6 | |
5206 | else | |
5207 | echo "$ac_t""no" 1>&6 | |
5208 | fi | |
5209 | ||
5210 | ||
5211 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 | |
5212 | echo "configure:5213: checking for --enable-combobox" >&5 | |
5213 | no_cache=0 | |
5214 | # Check whether --enable-combobox or --disable-combobox was given. | |
5215 | if test "${enable_combobox+set}" = set; then | |
5216 | enableval="$enable_combobox" | |
5217 | ||
5218 | if test "$enableval" = yes; then | |
5219 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5220 | else | |
5221 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5222 | fi | |
5223 | ||
5224 | else | |
5225 | ||
5226 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
5227 | if test "x$LINE" != x ; then | |
5228 | eval "DEFAULT_$LINE" | |
5229 | else | |
5230 | no_cache=1 | |
5231 | fi | |
5232 | ||
5233 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
5234 | ||
5235 | fi | |
5236 | ||
5237 | ||
5238 | eval "$ac_cv_use_combobox" | |
5239 | if test "$no_cache" != 1; then | |
5240 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5241 | fi | |
5242 | ||
5243 | if test "$wxUSE_COMBOBOX" = yes; then | |
5244 | echo "$ac_t""yes" 1>&6 | |
5245 | else | |
5246 | echo "$ac_t""no" 1>&6 | |
5247 | fi | |
5248 | ||
5249 | ||
5250 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 | |
5251 | echo "configure:5252: checking for --enable-gauge" >&5 | |
5252 | no_cache=0 | |
5253 | # Check whether --enable-gauge or --disable-gauge was given. | |
5254 | if test "${enable_gauge+set}" = set; then | |
5255 | enableval="$enable_gauge" | |
5256 | ||
5257 | if test "$enableval" = yes; then | |
5258 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5259 | else | |
5260 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5261 | fi | |
5262 | ||
5263 | else | |
5264 | ||
5265 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
5266 | if test "x$LINE" != x ; then | |
5267 | eval "DEFAULT_$LINE" | |
5268 | else | |
5269 | no_cache=1 | |
5270 | fi | |
5271 | ||
5272 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
5273 | ||
5274 | fi | |
5275 | ||
5276 | ||
5277 | eval "$ac_cv_use_gauge" | |
5278 | if test "$no_cache" != 1; then | |
5279 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5280 | fi | |
5281 | ||
5282 | if test "$wxUSE_GAUGE" = yes; then | |
5283 | echo "$ac_t""yes" 1>&6 | |
5284 | else | |
5285 | echo "$ac_t""no" 1>&6 | |
5286 | fi | |
5287 | ||
5288 | ||
5289 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 | |
5290 | echo "configure:5291: checking for --enable-grid" >&5 | |
5291 | no_cache=0 | |
5292 | # Check whether --enable-grid or --disable-grid was given. | |
5293 | if test "${enable_grid+set}" = set; then | |
5294 | enableval="$enable_grid" | |
5295 | ||
5296 | if test "$enableval" = yes; then | |
5297 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5298 | else | |
5299 | ac_cv_use_grid='wxUSE_GRID=no' | |
5300 | fi | |
5301 | ||
5302 | else | |
5303 | ||
5304 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
5305 | if test "x$LINE" != x ; then | |
5306 | eval "DEFAULT_$LINE" | |
5307 | else | |
5308 | no_cache=1 | |
5309 | fi | |
5310 | ||
5311 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
5312 | ||
5313 | fi | |
5314 | ||
5315 | ||
5316 | eval "$ac_cv_use_grid" | |
5317 | if test "$no_cache" != 1; then | |
5318 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5319 | fi | |
5320 | ||
5321 | if test "$wxUSE_GRID" = yes; then | |
5322 | echo "$ac_t""yes" 1>&6 | |
5323 | else | |
5324 | echo "$ac_t""no" 1>&6 | |
5325 | fi | |
5326 | ||
5327 | ||
5328 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 | |
5329 | echo "configure:5330: checking for --enable-newgrid" >&5 | |
5330 | no_cache=0 | |
5331 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5332 | if test "${enable_newgrid+set}" = set; then | |
5333 | enableval="$enable_newgrid" | |
5334 | ||
5335 | if test "$enableval" = yes; then | |
5336 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5337 | else | |
5338 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5339 | fi | |
5340 | ||
5341 | else | |
5342 | ||
5343 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
5344 | if test "x$LINE" != x ; then | |
5345 | eval "DEFAULT_$LINE" | |
5346 | else | |
5347 | no_cache=1 | |
5348 | fi | |
5349 | ||
5350 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
5351 | ||
5352 | fi | |
5353 | ||
5354 | ||
5355 | eval "$ac_cv_use_newgrid" | |
5356 | if test "$no_cache" != 1; then | |
5357 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5358 | fi | |
5359 | ||
5360 | if test "$wxUSE_NEW_GRID" = yes; then | |
5361 | echo "$ac_t""yes" 1>&6 | |
5362 | else | |
5363 | echo "$ac_t""no" 1>&6 | |
5364 | fi | |
5365 | ||
5366 | ||
5367 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 | |
5368 | echo "configure:5369: checking for --enable-imaglist" >&5 | |
5369 | no_cache=0 | |
5370 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5371 | if test "${enable_imaglist+set}" = set; then | |
5372 | enableval="$enable_imaglist" | |
5373 | ||
5374 | if test "$enableval" = yes; then | |
5375 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5376 | else | |
5377 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5378 | fi | |
5379 | ||
5380 | else | |
5381 | ||
5382 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
5383 | if test "x$LINE" != x ; then | |
5384 | eval "DEFAULT_$LINE" | |
5385 | else | |
5386 | no_cache=1 | |
5387 | fi | |
5388 | ||
5389 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
5390 | ||
5391 | fi | |
5392 | ||
5393 | ||
5394 | eval "$ac_cv_use_imaglist" | |
5395 | if test "$no_cache" != 1; then | |
5396 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5397 | fi | |
5398 | ||
5399 | if test "$wxUSE_IMAGLIST" = yes; then | |
5400 | echo "$ac_t""yes" 1>&6 | |
5401 | else | |
5402 | echo "$ac_t""no" 1>&6 | |
5403 | fi | |
5404 | ||
5405 | ||
5406 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 | |
5407 | echo "configure:5408: checking for --enable-listbox" >&5 | |
5408 | no_cache=0 | |
5409 | # Check whether --enable-listbox or --disable-listbox was given. | |
5410 | if test "${enable_listbox+set}" = set; then | |
5411 | enableval="$enable_listbox" | |
5412 | ||
5413 | if test "$enableval" = yes; then | |
5414 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5415 | else | |
5416 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5417 | fi | |
5418 | ||
5419 | else | |
5420 | ||
5421 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
5422 | if test "x$LINE" != x ; then | |
5423 | eval "DEFAULT_$LINE" | |
5424 | else | |
5425 | no_cache=1 | |
5426 | fi | |
5427 | ||
5428 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
5429 | ||
5430 | fi | |
5431 | ||
5432 | ||
5433 | eval "$ac_cv_use_listbox" | |
5434 | if test "$no_cache" != 1; then | |
5435 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5436 | fi | |
5437 | ||
5438 | if test "$wxUSE_LISTBOX" = yes; then | |
5439 | echo "$ac_t""yes" 1>&6 | |
5440 | else | |
5441 | echo "$ac_t""no" 1>&6 | |
5442 | fi | |
5443 | ||
5444 | ||
5445 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 | |
5446 | echo "configure:5447: checking for --enable-listctrl" >&5 | |
5447 | no_cache=0 | |
5448 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5449 | if test "${enable_listctrl+set}" = set; then | |
5450 | enableval="$enable_listctrl" | |
5451 | ||
5452 | if test "$enableval" = yes; then | |
5453 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5454 | else | |
5455 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5456 | fi | |
5457 | ||
5458 | else | |
5459 | ||
5460 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
5461 | if test "x$LINE" != x ; then | |
5462 | eval "DEFAULT_$LINE" | |
5463 | else | |
5464 | no_cache=1 | |
5465 | fi | |
5466 | ||
5467 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
5468 | ||
5469 | fi | |
5470 | ||
5471 | ||
5472 | eval "$ac_cv_use_listctrl" | |
5473 | if test "$no_cache" != 1; then | |
5474 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5475 | fi | |
5476 | ||
5477 | if test "$wxUSE_LISTCTRL" = yes; then | |
5478 | echo "$ac_t""yes" 1>&6 | |
5479 | else | |
5480 | echo "$ac_t""no" 1>&6 | |
5481 | fi | |
5482 | ||
5483 | ||
5484 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 | |
5485 | echo "configure:5486: checking for --enable-notebook" >&5 | |
5486 | no_cache=0 | |
5487 | # Check whether --enable-notebook or --disable-notebook was given. | |
5488 | if test "${enable_notebook+set}" = set; then | |
5489 | enableval="$enable_notebook" | |
5490 | ||
5491 | if test "$enableval" = yes; then | |
5492 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5493 | else | |
5494 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5495 | fi | |
5496 | ||
5497 | else | |
5498 | ||
5499 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
5500 | if test "x$LINE" != x ; then | |
5501 | eval "DEFAULT_$LINE" | |
5502 | else | |
5503 | no_cache=1 | |
5504 | fi | |
5505 | ||
5506 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
5507 | ||
5508 | fi | |
5509 | ||
5510 | ||
5511 | eval "$ac_cv_use_notebook" | |
5512 | if test "$no_cache" != 1; then | |
5513 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5514 | fi | |
5515 | ||
5516 | if test "$wxUSE_NOTEBOOK" = yes; then | |
5517 | echo "$ac_t""yes" 1>&6 | |
5518 | else | |
5519 | echo "$ac_t""no" 1>&6 | |
5520 | fi | |
5521 | ||
5522 | ||
5523 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 | |
5524 | echo "configure:5525: checking for --enable-radiobox" >&5 | |
5525 | no_cache=0 | |
5526 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5527 | if test "${enable_radiobox+set}" = set; then | |
5528 | enableval="$enable_radiobox" | |
5529 | ||
5530 | if test "$enableval" = yes; then | |
5531 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5532 | else | |
5533 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5534 | fi | |
5535 | ||
5536 | else | |
5537 | ||
5538 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
5539 | if test "x$LINE" != x ; then | |
5540 | eval "DEFAULT_$LINE" | |
5541 | else | |
5542 | no_cache=1 | |
5543 | fi | |
5544 | ||
5545 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
5546 | ||
5547 | fi | |
5548 | ||
5549 | ||
5550 | eval "$ac_cv_use_radiobox" | |
5551 | if test "$no_cache" != 1; then | |
5552 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5553 | fi | |
5554 | ||
5555 | if test "$wxUSE_RADIOBOX" = yes; then | |
5556 | echo "$ac_t""yes" 1>&6 | |
5557 | else | |
5558 | echo "$ac_t""no" 1>&6 | |
5559 | fi | |
5560 | ||
5561 | ||
5562 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 | |
5563 | echo "configure:5564: checking for --enable-radiobtn" >&5 | |
5564 | no_cache=0 | |
5565 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5566 | if test "${enable_radiobtn+set}" = set; then | |
5567 | enableval="$enable_radiobtn" | |
5568 | ||
5569 | if test "$enableval" = yes; then | |
5570 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5571 | else | |
5572 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5573 | fi | |
5574 | ||
5575 | else | |
5576 | ||
5577 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
5578 | if test "x$LINE" != x ; then | |
5579 | eval "DEFAULT_$LINE" | |
5580 | else | |
5581 | no_cache=1 | |
5582 | fi | |
5583 | ||
5584 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
5585 | ||
5586 | fi | |
5587 | ||
5588 | ||
5589 | eval "$ac_cv_use_radiobtn" | |
5590 | if test "$no_cache" != 1; then | |
5591 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5592 | fi | |
5593 | ||
5594 | if test "$wxUSE_RADIOBTN" = yes; then | |
5595 | echo "$ac_t""yes" 1>&6 | |
5596 | else | |
5597 | echo "$ac_t""no" 1>&6 | |
5598 | fi | |
5599 | ||
5600 | ||
5601 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 | |
5602 | echo "configure:5603: checking for --enable-sash" >&5 | |
5603 | no_cache=0 | |
5604 | # Check whether --enable-sash or --disable-sash was given. | |
5605 | if test "${enable_sash+set}" = set; then | |
5606 | enableval="$enable_sash" | |
5607 | ||
5608 | if test "$enableval" = yes; then | |
5609 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5610 | else | |
5611 | ac_cv_use_sash='wxUSE_SASH=no' | |
5612 | fi | |
5613 | ||
5614 | else | |
5615 | ||
5616 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
5617 | if test "x$LINE" != x ; then | |
5618 | eval "DEFAULT_$LINE" | |
5619 | else | |
5620 | no_cache=1 | |
5621 | fi | |
5622 | ||
5623 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
5624 | ||
5625 | fi | |
5626 | ||
5627 | ||
5628 | eval "$ac_cv_use_sash" | |
5629 | if test "$no_cache" != 1; then | |
5630 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5631 | fi | |
5632 | ||
5633 | if test "$wxUSE_SASH" = yes; then | |
5634 | echo "$ac_t""yes" 1>&6 | |
5635 | else | |
5636 | echo "$ac_t""no" 1>&6 | |
5637 | fi | |
5638 | ||
5639 | ||
5640 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 | |
5641 | echo "configure:5642: checking for --enable-scrollbar" >&5 | |
5642 | no_cache=0 | |
5643 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5644 | if test "${enable_scrollbar+set}" = set; then | |
5645 | enableval="$enable_scrollbar" | |
5646 | ||
5647 | if test "$enableval" = yes; then | |
5648 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5649 | else | |
5650 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5651 | fi | |
5652 | ||
5653 | else | |
5654 | ||
5655 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
5656 | if test "x$LINE" != x ; then | |
5657 | eval "DEFAULT_$LINE" | |
5658 | else | |
5659 | no_cache=1 | |
5660 | fi | |
5661 | ||
5662 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
5663 | ||
5664 | fi | |
5665 | ||
5666 | ||
5667 | eval "$ac_cv_use_scrollbar" | |
5668 | if test "$no_cache" != 1; then | |
5669 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5670 | fi | |
5671 | ||
5672 | if test "$wxUSE_SCROLLBAR" = yes; then | |
5673 | echo "$ac_t""yes" 1>&6 | |
5674 | else | |
5675 | echo "$ac_t""no" 1>&6 | |
5676 | fi | |
5677 | ||
5678 | ||
5679 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 | |
5680 | echo "configure:5681: checking for --enable-slider" >&5 | |
5681 | no_cache=0 | |
5682 | # Check whether --enable-slider or --disable-slider was given. | |
5683 | if test "${enable_slider+set}" = set; then | |
5684 | enableval="$enable_slider" | |
5685 | ||
5686 | if test "$enableval" = yes; then | |
5687 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5688 | else | |
5689 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5690 | fi | |
5691 | ||
5692 | else | |
5693 | ||
5694 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
5695 | if test "x$LINE" != x ; then | |
5696 | eval "DEFAULT_$LINE" | |
5697 | else | |
5698 | no_cache=1 | |
5699 | fi | |
5700 | ||
5701 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
5702 | ||
5703 | fi | |
5704 | ||
5705 | ||
5706 | eval "$ac_cv_use_slider" | |
5707 | if test "$no_cache" != 1; then | |
5708 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5709 | fi | |
5710 | ||
5711 | if test "$wxUSE_SLIDER" = yes; then | |
5712 | echo "$ac_t""yes" 1>&6 | |
5713 | else | |
5714 | echo "$ac_t""no" 1>&6 | |
5715 | fi | |
5716 | ||
5717 | ||
5718 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 | |
5719 | echo "configure:5720: checking for --enable-spinbtn" >&5 | |
5720 | no_cache=0 | |
5721 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5722 | if test "${enable_spinbtn+set}" = set; then | |
5723 | enableval="$enable_spinbtn" | |
5724 | ||
5725 | if test "$enableval" = yes; then | |
5726 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5727 | else | |
5728 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5729 | fi | |
5730 | ||
5731 | else | |
5732 | ||
5733 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
5734 | if test "x$LINE" != x ; then | |
5735 | eval "DEFAULT_$LINE" | |
5736 | else | |
5737 | no_cache=1 | |
5738 | fi | |
5739 | ||
5740 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
5741 | ||
5742 | fi | |
5743 | ||
5744 | ||
5745 | eval "$ac_cv_use_spinbtn" | |
5746 | if test "$no_cache" != 1; then | |
5747 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5748 | fi | |
5749 | ||
5750 | if test "$wxUSE_SPINBTN" = yes; then | |
5751 | echo "$ac_t""yes" 1>&6 | |
5752 | else | |
5753 | echo "$ac_t""no" 1>&6 | |
5754 | fi | |
5755 | ||
5756 | ||
5757 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 | |
5758 | echo "configure:5759: checking for --enable-spinctrl" >&5 | |
5759 | no_cache=0 | |
5760 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5761 | if test "${enable_spinctrl+set}" = set; then | |
5762 | enableval="$enable_spinctrl" | |
5763 | ||
5764 | if test "$enableval" = yes; then | |
5765 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5766 | else | |
5767 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
5768 | fi | |
5769 | ||
5770 | else | |
5771 | ||
5772 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
5773 | if test "x$LINE" != x ; then | |
5774 | eval "DEFAULT_$LINE" | |
5775 | else | |
5776 | no_cache=1 | |
5777 | fi | |
5778 | ||
5779 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
5780 | ||
5781 | fi | |
5782 | ||
5783 | ||
5784 | eval "$ac_cv_use_spinctrl" | |
5785 | if test "$no_cache" != 1; then | |
5786 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
5787 | fi | |
5788 | ||
5789 | if test "$wxUSE_SPINCTRL" = yes; then | |
5790 | echo "$ac_t""yes" 1>&6 | |
5791 | else | |
5792 | echo "$ac_t""no" 1>&6 | |
5793 | fi | |
5794 | ||
5795 | ||
5796 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 | |
5797 | echo "configure:5798: checking for --enable-splitter" >&5 | |
5798 | no_cache=0 | |
5799 | # Check whether --enable-splitter or --disable-splitter was given. | |
5800 | if test "${enable_splitter+set}" = set; then | |
5801 | enableval="$enable_splitter" | |
5802 | ||
5803 | if test "$enableval" = yes; then | |
5804 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
5805 | else | |
5806 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
5807 | fi | |
5808 | ||
5809 | else | |
5810 | ||
5811 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
5812 | if test "x$LINE" != x ; then | |
5813 | eval "DEFAULT_$LINE" | |
5814 | else | |
5815 | no_cache=1 | |
5816 | fi | |
5817 | ||
5818 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
5819 | ||
5820 | fi | |
5821 | ||
5822 | ||
5823 | eval "$ac_cv_use_splitter" | |
5824 | if test "$no_cache" != 1; then | |
5825 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
5826 | fi | |
5827 | ||
5828 | if test "$wxUSE_SPLITTER" = yes; then | |
5829 | echo "$ac_t""yes" 1>&6 | |
5830 | else | |
5831 | echo "$ac_t""no" 1>&6 | |
5832 | fi | |
5833 | ||
5834 | ||
5835 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 | |
5836 | echo "configure:5837: checking for --enable-statbmp" >&5 | |
5837 | no_cache=0 | |
5838 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
5839 | if test "${enable_statbmp+set}" = set; then | |
5840 | enableval="$enable_statbmp" | |
5841 | ||
5842 | if test "$enableval" = yes; then | |
5843 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
5844 | else | |
5845 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
5846 | fi | |
5847 | ||
5848 | else | |
5849 | ||
5850 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
5851 | if test "x$LINE" != x ; then | |
5852 | eval "DEFAULT_$LINE" | |
5853 | else | |
5854 | no_cache=1 | |
5855 | fi | |
5856 | ||
5857 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
5858 | ||
5859 | fi | |
5860 | ||
5861 | ||
5862 | eval "$ac_cv_use_statbmp" | |
5863 | if test "$no_cache" != 1; then | |
5864 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
5865 | fi | |
5866 | ||
5867 | if test "$wxUSE_STATBMP" = yes; then | |
5868 | echo "$ac_t""yes" 1>&6 | |
5869 | else | |
5870 | echo "$ac_t""no" 1>&6 | |
5871 | fi | |
5872 | ||
5873 | ||
5874 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 | |
5875 | echo "configure:5876: checking for --enable-statbox" >&5 | |
5876 | no_cache=0 | |
5877 | # Check whether --enable-statbox or --disable-statbox was given. | |
5878 | if test "${enable_statbox+set}" = set; then | |
5879 | enableval="$enable_statbox" | |
5880 | ||
5881 | if test "$enableval" = yes; then | |
5882 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
5883 | else | |
5884 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
5885 | fi | |
5886 | ||
5887 | else | |
5888 | ||
5889 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
5890 | if test "x$LINE" != x ; then | |
5891 | eval "DEFAULT_$LINE" | |
5892 | else | |
5893 | no_cache=1 | |
5894 | fi | |
5895 | ||
5896 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
5897 | ||
5898 | fi | |
5899 | ||
5900 | ||
5901 | eval "$ac_cv_use_statbox" | |
5902 | if test "$no_cache" != 1; then | |
5903 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
5904 | fi | |
5905 | ||
5906 | if test "$wxUSE_STATBOX" = yes; then | |
5907 | echo "$ac_t""yes" 1>&6 | |
5908 | else | |
5909 | echo "$ac_t""no" 1>&6 | |
5910 | fi | |
5911 | ||
5912 | ||
5913 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 | |
5914 | echo "configure:5915: checking for --enable-statline" >&5 | |
5915 | no_cache=0 | |
5916 | # Check whether --enable-statline or --disable-statline was given. | |
5917 | if test "${enable_statline+set}" = set; then | |
5918 | enableval="$enable_statline" | |
5919 | ||
5920 | if test "$enableval" = yes; then | |
5921 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
5922 | else | |
5923 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
5924 | fi | |
5925 | ||
5926 | else | |
5927 | ||
5928 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
5929 | if test "x$LINE" != x ; then | |
5930 | eval "DEFAULT_$LINE" | |
5931 | else | |
5932 | no_cache=1 | |
5933 | fi | |
5934 | ||
5935 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
5936 | ||
5937 | fi | |
5938 | ||
5939 | ||
5940 | eval "$ac_cv_use_statline" | |
5941 | if test "$no_cache" != 1; then | |
5942 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
5943 | fi | |
5944 | ||
5945 | if test "$wxUSE_STATLINE" = yes; then | |
5946 | echo "$ac_t""yes" 1>&6 | |
5947 | else | |
5948 | echo "$ac_t""no" 1>&6 | |
5949 | fi | |
5950 | ||
5951 | ||
5952 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 | |
5953 | echo "configure:5954: checking for --enable-stattext" >&5 | |
5954 | no_cache=0 | |
5955 | # Check whether --enable-stattext or --disable-stattext was given. | |
5956 | if test "${enable_stattext+set}" = set; then | |
5957 | enableval="$enable_stattext" | |
5958 | ||
5959 | if test "$enableval" = yes; then | |
5960 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
5961 | else | |
5962 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
5963 | fi | |
5964 | ||
5965 | else | |
5966 | ||
5967 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
5968 | if test "x$LINE" != x ; then | |
5969 | eval "DEFAULT_$LINE" | |
5970 | else | |
5971 | no_cache=1 | |
5972 | fi | |
5973 | ||
5974 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
5975 | ||
5976 | fi | |
5977 | ||
5978 | ||
5979 | eval "$ac_cv_use_stattext" | |
5980 | if test "$no_cache" != 1; then | |
5981 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
5982 | fi | |
5983 | ||
5984 | if test "$wxUSE_STATTEXT" = yes; then | |
5985 | echo "$ac_t""yes" 1>&6 | |
5986 | else | |
5987 | echo "$ac_t""no" 1>&6 | |
5988 | fi | |
5989 | ||
5990 | ||
5991 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 | |
5992 | echo "configure:5993: checking for --enable-statusbar" >&5 | |
5993 | no_cache=0 | |
5994 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
5995 | if test "${enable_statusbar+set}" = set; then | |
5996 | enableval="$enable_statusbar" | |
5997 | ||
5998 | if test "$enableval" = yes; then | |
5999 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6000 | else | |
6001 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6002 | fi | |
6003 | ||
6004 | else | |
6005 | ||
6006 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
6007 | if test "x$LINE" != x ; then | |
6008 | eval "DEFAULT_$LINE" | |
6009 | else | |
6010 | no_cache=1 | |
6011 | fi | |
6012 | ||
6013 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
6014 | ||
6015 | fi | |
6016 | ||
6017 | ||
6018 | eval "$ac_cv_use_statusbar" | |
6019 | if test "$no_cache" != 1; then | |
6020 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6021 | fi | |
6022 | ||
6023 | if test "$wxUSE_STATUSBAR" = yes; then | |
6024 | echo "$ac_t""yes" 1>&6 | |
6025 | else | |
6026 | echo "$ac_t""no" 1>&6 | |
6027 | fi | |
6028 | ||
6029 | ||
6030 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 | |
6031 | echo "configure:6032: checking for --enable-tabdialog" >&5 | |
6032 | no_cache=0 | |
6033 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6034 | if test "${enable_tabdialog+set}" = set; then | |
6035 | enableval="$enable_tabdialog" | |
6036 | ||
6037 | if test "$enableval" = yes; then | |
6038 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6039 | else | |
6040 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6041 | fi | |
6042 | ||
6043 | else | |
6044 | ||
6045 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
6046 | if test "x$LINE" != x ; then | |
6047 | eval "DEFAULT_$LINE" | |
6048 | else | |
6049 | no_cache=1 | |
6050 | fi | |
6051 | ||
6052 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
6053 | ||
6054 | fi | |
6055 | ||
6056 | ||
6057 | eval "$ac_cv_use_tabdialog" | |
6058 | if test "$no_cache" != 1; then | |
6059 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6060 | fi | |
6061 | ||
6062 | if test "$wxUSE_TABDIALOG" = yes; then | |
6063 | echo "$ac_t""yes" 1>&6 | |
6064 | else | |
6065 | echo "$ac_t""no" 1>&6 | |
6066 | fi | |
6067 | ||
6068 | ||
6069 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 | |
6070 | echo "configure:6071: checking for --enable-textctrl" >&5 | |
6071 | no_cache=0 | |
6072 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6073 | if test "${enable_textctrl+set}" = set; then | |
6074 | enableval="$enable_textctrl" | |
6075 | ||
6076 | if test "$enableval" = yes; then | |
6077 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6078 | else | |
6079 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6080 | fi | |
6081 | ||
6082 | else | |
6083 | ||
6084 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6085 | if test "x$LINE" != x ; then | |
6086 | eval "DEFAULT_$LINE" | |
6087 | else | |
6088 | no_cache=1 | |
6089 | fi | |
6090 | ||
6091 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6092 | ||
6093 | fi | |
6094 | ||
6095 | ||
6096 | eval "$ac_cv_use_textctrl" | |
6097 | if test "$no_cache" != 1; then | |
6098 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6099 | fi | |
6100 | ||
6101 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6102 | echo "$ac_t""yes" 1>&6 | |
6103 | else | |
6104 | echo "$ac_t""no" 1>&6 | |
6105 | fi | |
6106 | ||
6107 | ||
6108 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 | |
6109 | echo "configure:6110: checking for --enable-togglebtn" >&5 | |
6110 | no_cache=0 | |
6111 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6112 | if test "${enable_togglebtn+set}" = set; then | |
6113 | enableval="$enable_togglebtn" | |
6114 | ||
6115 | if test "$enableval" = yes; then | |
6116 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6117 | else | |
6118 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6119 | fi | |
6120 | ||
6121 | else | |
6122 | ||
6123 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
6124 | if test "x$LINE" != x ; then | |
6125 | eval "DEFAULT_$LINE" | |
6126 | else | |
6127 | no_cache=1 | |
6128 | fi | |
6129 | ||
6130 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
6131 | ||
6132 | fi | |
6133 | ||
6134 | ||
6135 | eval "$ac_cv_use_togglebtn" | |
6136 | if test "$no_cache" != 1; then | |
6137 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6138 | fi | |
6139 | ||
6140 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
6141 | echo "$ac_t""yes" 1>&6 | |
6142 | else | |
6143 | echo "$ac_t""no" 1>&6 | |
6144 | fi | |
6145 | ||
6146 | ||
6147 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 | |
6148 | echo "configure:6149: checking for --enable-toolbar" >&5 | |
6149 | no_cache=0 | |
6150 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6151 | if test "${enable_toolbar+set}" = set; then | |
6152 | enableval="$enable_toolbar" | |
6153 | ||
6154 | if test "$enableval" = yes; then | |
6155 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6156 | else | |
6157 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6158 | fi | |
6159 | ||
6160 | else | |
6161 | ||
6162 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
6163 | if test "x$LINE" != x ; then | |
6164 | eval "DEFAULT_$LINE" | |
6165 | else | |
6166 | no_cache=1 | |
6167 | fi | |
6168 | ||
6169 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
6170 | ||
6171 | fi | |
6172 | ||
6173 | ||
6174 | eval "$ac_cv_use_toolbar" | |
6175 | if test "$no_cache" != 1; then | |
6176 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6177 | fi | |
6178 | ||
6179 | if test "$wxUSE_TOOLBAR" = yes; then | |
6180 | echo "$ac_t""yes" 1>&6 | |
6181 | else | |
6182 | echo "$ac_t""no" 1>&6 | |
6183 | fi | |
6184 | ||
6185 | ||
6186 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 | |
6187 | echo "configure:6188: checking for --enable-tbarnative" >&5 | |
6188 | no_cache=0 | |
6189 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6190 | if test "${enable_tbarnative+set}" = set; then | |
6191 | enableval="$enable_tbarnative" | |
6192 | ||
6193 | if test "$enableval" = yes; then | |
6194 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6195 | else | |
6196 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6197 | fi | |
6198 | ||
6199 | else | |
6200 | ||
6201 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
6202 | if test "x$LINE" != x ; then | |
6203 | eval "DEFAULT_$LINE" | |
6204 | else | |
6205 | no_cache=1 | |
6206 | fi | |
6207 | ||
6208 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
6209 | ||
6210 | fi | |
6211 | ||
6212 | ||
6213 | eval "$ac_cv_use_tbarnative" | |
6214 | if test "$no_cache" != 1; then | |
6215 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6216 | fi | |
6217 | ||
6218 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
6219 | echo "$ac_t""yes" 1>&6 | |
6220 | else | |
6221 | echo "$ac_t""no" 1>&6 | |
6222 | fi | |
6223 | ||
6224 | ||
6225 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 | |
6226 | echo "configure:6227: checking for --enable-tbarsmpl" >&5 | |
6227 | no_cache=0 | |
6228 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6229 | if test "${enable_tbarsmpl+set}" = set; then | |
6230 | enableval="$enable_tbarsmpl" | |
6231 | ||
6232 | if test "$enableval" = yes; then | |
6233 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6234 | else | |
6235 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6236 | fi | |
6237 | ||
6238 | else | |
6239 | ||
6240 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
6241 | if test "x$LINE" != x ; then | |
6242 | eval "DEFAULT_$LINE" | |
6243 | else | |
6244 | no_cache=1 | |
6245 | fi | |
6246 | ||
6247 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
6248 | ||
6249 | fi | |
6250 | ||
6251 | ||
6252 | eval "$ac_cv_use_tbarsmpl" | |
6253 | if test "$no_cache" != 1; then | |
6254 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6255 | fi | |
6256 | ||
6257 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
6258 | echo "$ac_t""yes" 1>&6 | |
6259 | else | |
6260 | echo "$ac_t""no" 1>&6 | |
6261 | fi | |
6262 | ||
6263 | ||
6264 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 | |
6265 | echo "configure:6266: checking for --enable-treectrl" >&5 | |
6266 | no_cache=0 | |
6267 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6268 | if test "${enable_treectrl+set}" = set; then | |
6269 | enableval="$enable_treectrl" | |
6270 | ||
6271 | if test "$enableval" = yes; then | |
6272 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6273 | else | |
6274 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6275 | fi | |
6276 | ||
6277 | else | |
6278 | ||
6279 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
6280 | if test "x$LINE" != x ; then | |
6281 | eval "DEFAULT_$LINE" | |
6282 | else | |
6283 | no_cache=1 | |
6284 | fi | |
6285 | ||
6286 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
6287 | ||
6288 | fi | |
6289 | ||
6290 | ||
6291 | eval "$ac_cv_use_treectrl" | |
6292 | if test "$no_cache" != 1; then | |
6293 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6294 | fi | |
6295 | ||
6296 | if test "$wxUSE_TREECTRL" = yes; then | |
6297 | echo "$ac_t""yes" 1>&6 | |
6298 | else | |
6299 | echo "$ac_t""no" 1>&6 | |
6300 | fi | |
6301 | ||
6302 | ||
6303 | ||
6304 | ||
6305 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
6306 | echo "configure:6307: checking for --enable-commondlg" >&5 | |
6307 | no_cache=0 | |
6308 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6309 | if test "${enable_commondlg+set}" = set; then | |
6310 | enableval="$enable_commondlg" | |
6311 | ||
6312 | if test "$enableval" = yes; then | |
6313 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6314 | else | |
6315 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6316 | fi | |
6317 | ||
6318 | else | |
6319 | ||
6320 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6321 | if test "x$LINE" != x ; then | |
6322 | eval "DEFAULT_$LINE" | |
6323 | else | |
6324 | no_cache=1 | |
6325 | fi | |
6326 | ||
6327 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6328 | ||
6329 | fi | |
6330 | ||
6331 | ||
6332 | eval "$ac_cv_use_commondlg" | |
6333 | if test "$no_cache" != 1; then | |
6334 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6335 | fi | |
6336 | ||
6337 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6338 | echo "$ac_t""yes" 1>&6 | |
6339 | else | |
6340 | echo "$ac_t""no" 1>&6 | |
6341 | fi | |
6342 | ||
6343 | ||
6344 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
6345 | echo "configure:6346: checking for --enable-choicedlg" >&5 | |
6346 | no_cache=0 | |
6347 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6348 | if test "${enable_choicedlg+set}" = set; then | |
6349 | enableval="$enable_choicedlg" | |
6350 | ||
6351 | if test "$enableval" = yes; then | |
6352 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6353 | else | |
6354 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6355 | fi | |
6356 | ||
6357 | else | |
6358 | ||
6359 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6360 | if test "x$LINE" != x ; then | |
6361 | eval "DEFAULT_$LINE" | |
6362 | else | |
6363 | no_cache=1 | |
6364 | fi | |
6365 | ||
6366 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6367 | ||
6368 | fi | |
6369 | ||
6370 | ||
6371 | eval "$ac_cv_use_choicedlg" | |
6372 | if test "$no_cache" != 1; then | |
6373 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6374 | fi | |
6375 | ||
6376 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6377 | echo "$ac_t""yes" 1>&6 | |
6378 | else | |
6379 | echo "$ac_t""no" 1>&6 | |
6380 | fi | |
6381 | ||
6382 | ||
6383 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
6384 | echo "configure:6385: checking for --enable-coldlg" >&5 | |
6385 | no_cache=0 | |
6386 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6387 | if test "${enable_coldlg+set}" = set; then | |
6388 | enableval="$enable_coldlg" | |
6389 | ||
6390 | if test "$enableval" = yes; then | |
6391 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6392 | else | |
6393 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6394 | fi | |
6395 | ||
6396 | else | |
6397 | ||
6398 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6399 | if test "x$LINE" != x ; then | |
6400 | eval "DEFAULT_$LINE" | |
6401 | else | |
6402 | no_cache=1 | |
6403 | fi | |
6404 | ||
6405 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6406 | ||
6407 | fi | |
6408 | ||
6409 | ||
6410 | eval "$ac_cv_use_coldlg" | |
6411 | if test "$no_cache" != 1; then | |
6412 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6413 | fi | |
6414 | ||
6415 | if test "$wxUSE_COLOURDLG" = yes; then | |
6416 | echo "$ac_t""yes" 1>&6 | |
6417 | else | |
6418 | echo "$ac_t""no" 1>&6 | |
6419 | fi | |
6420 | ||
6421 | ||
6422 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
6423 | echo "configure:6424: checking for --enable-filedlg" >&5 | |
6424 | no_cache=0 | |
6425 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6426 | if test "${enable_filedlg+set}" = set; then | |
6427 | enableval="$enable_filedlg" | |
6428 | ||
6429 | if test "$enableval" = yes; then | |
6430 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6431 | else | |
6432 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6433 | fi | |
6434 | ||
6435 | else | |
6436 | ||
6437 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6438 | if test "x$LINE" != x ; then | |
6439 | eval "DEFAULT_$LINE" | |
6440 | else | |
6441 | no_cache=1 | |
6442 | fi | |
6443 | ||
6444 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6445 | ||
6446 | fi | |
6447 | ||
6448 | ||
6449 | eval "$ac_cv_use_filedlg" | |
6450 | if test "$no_cache" != 1; then | |
6451 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6452 | fi | |
6453 | ||
6454 | if test "$wxUSE_FILEDLG" = yes; then | |
6455 | echo "$ac_t""yes" 1>&6 | |
6456 | else | |
6457 | echo "$ac_t""no" 1>&6 | |
6458 | fi | |
6459 | ||
6460 | ||
6461 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 | |
6462 | echo "configure:6463: checking for --enable-fontdlg" >&5 | |
6463 | no_cache=0 | |
6464 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6465 | if test "${enable_fontdlg+set}" = set; then | |
6466 | enableval="$enable_fontdlg" | |
6467 | ||
6468 | if test "$enableval" = yes; then | |
6469 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6470 | else | |
6471 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6472 | fi | |
6473 | ||
6474 | else | |
6475 | ||
6476 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6477 | if test "x$LINE" != x ; then | |
6478 | eval "DEFAULT_$LINE" | |
6479 | else | |
6480 | no_cache=1 | |
6481 | fi | |
6482 | ||
6483 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6484 | ||
6485 | fi | |
6486 | ||
6487 | ||
6488 | eval "$ac_cv_use_fontdlg" | |
6489 | if test "$no_cache" != 1; then | |
6490 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6491 | fi | |
6492 | ||
6493 | if test "$wxUSE_FONTDLG" = yes; then | |
6494 | echo "$ac_t""yes" 1>&6 | |
6495 | else | |
6496 | echo "$ac_t""no" 1>&6 | |
6497 | fi | |
6498 | ||
6499 | ||
6500 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
6501 | echo "configure:6502: checking for --enable-dirdlg" >&5 | |
6502 | no_cache=0 | |
6503 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6504 | if test "${enable_dirdlg+set}" = set; then | |
6505 | enableval="$enable_dirdlg" | |
6506 | ||
6507 | if test "$enableval" = yes; then | |
6508 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6509 | else | |
6510 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6511 | fi | |
6512 | ||
6513 | else | |
6514 | ||
6515 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6516 | if test "x$LINE" != x ; then | |
6517 | eval "DEFAULT_$LINE" | |
6518 | else | |
6519 | no_cache=1 | |
6520 | fi | |
6521 | ||
6522 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6523 | ||
6524 | fi | |
6525 | ||
6526 | ||
6527 | eval "$ac_cv_use_dirdlg" | |
6528 | if test "$no_cache" != 1; then | |
6529 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
6530 | fi | |
6531 | ||
6532 | if test "$wxUSE_DIRDLG" = yes; then | |
6533 | echo "$ac_t""yes" 1>&6 | |
6534 | else | |
6535 | echo "$ac_t""no" 1>&6 | |
6536 | fi | |
6537 | ||
6538 | ||
6539 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 | |
6540 | echo "configure:6541: checking for --enable-msgdlg" >&5 | |
6541 | no_cache=0 | |
6542 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
6543 | if test "${enable_msgdlg+set}" = set; then | |
6544 | enableval="$enable_msgdlg" | |
6545 | ||
6546 | if test "$enableval" = yes; then | |
6547 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
6548 | else | |
6549 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
6550 | fi | |
6551 | ||
6552 | else | |
6553 | ||
6554 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
6555 | if test "x$LINE" != x ; then | |
6556 | eval "DEFAULT_$LINE" | |
6557 | else | |
6558 | no_cache=1 | |
6559 | fi | |
6560 | ||
6561 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
6562 | ||
6563 | fi | |
6564 | ||
6565 | ||
6566 | eval "$ac_cv_use_msgdlg" | |
6567 | if test "$no_cache" != 1; then | |
6568 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
6569 | fi | |
6570 | ||
6571 | if test "$wxUSE_MSGDLG" = yes; then | |
6572 | echo "$ac_t""yes" 1>&6 | |
6573 | else | |
6574 | echo "$ac_t""no" 1>&6 | |
6575 | fi | |
6576 | ||
6577 | ||
6578 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 | |
6579 | echo "configure:6580: checking for --enable-numberdlg" >&5 | |
6580 | no_cache=0 | |
6581 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
6582 | if test "${enable_numberdlg+set}" = set; then | |
6583 | enableval="$enable_numberdlg" | |
6584 | ||
6585 | if test "$enableval" = yes; then | |
6586 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
6587 | else | |
6588 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
6589 | fi | |
6590 | ||
6591 | else | |
6592 | ||
6593 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
6594 | if test "x$LINE" != x ; then | |
6595 | eval "DEFAULT_$LINE" | |
6596 | else | |
6597 | no_cache=1 | |
6598 | fi | |
6599 | ||
6600 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
6601 | ||
6602 | fi | |
6603 | ||
6604 | ||
6605 | eval "$ac_cv_use_numberdlg" | |
6606 | if test "$no_cache" != 1; then | |
6607 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
6608 | fi | |
6609 | ||
6610 | if test "$wxUSE_NUMBERDLG" = yes; then | |
6611 | echo "$ac_t""yes" 1>&6 | |
6612 | else | |
6613 | echo "$ac_t""no" 1>&6 | |
6614 | fi | |
6615 | ||
6616 | ||
6617 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 | |
6618 | echo "configure:6619: checking for --enable-textdlg" >&5 | |
6619 | no_cache=0 | |
6620 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
6621 | if test "${enable_textdlg+set}" = set; then | |
6622 | enableval="$enable_textdlg" | |
6623 | ||
6624 | if test "$enableval" = yes; then | |
6625 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
6626 | else | |
6627 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
6628 | fi | |
6629 | ||
6630 | else | |
6631 | ||
6632 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
6633 | if test "x$LINE" != x ; then | |
6634 | eval "DEFAULT_$LINE" | |
6635 | else | |
6636 | no_cache=1 | |
6637 | fi | |
6638 | ||
6639 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
6640 | ||
6641 | fi | |
6642 | ||
6643 | ||
6644 | eval "$ac_cv_use_textdlg" | |
6645 | if test "$no_cache" != 1; then | |
6646 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
6647 | fi | |
6648 | ||
6649 | if test "$wxUSE_TEXTDLG" = yes; then | |
6650 | echo "$ac_t""yes" 1>&6 | |
6651 | else | |
6652 | echo "$ac_t""no" 1>&6 | |
6653 | fi | |
6654 | ||
6655 | ||
6656 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 | |
6657 | echo "configure:6658: checking for --enable-tipdlg" >&5 | |
6658 | no_cache=0 | |
6659 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
6660 | if test "${enable_tipdlg+set}" = set; then | |
6661 | enableval="$enable_tipdlg" | |
6662 | ||
6663 | if test "$enableval" = yes; then | |
6664 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
6665 | else | |
6666 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
6667 | fi | |
6668 | ||
6669 | else | |
6670 | ||
6671 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
6672 | if test "x$LINE" != x ; then | |
6673 | eval "DEFAULT_$LINE" | |
6674 | else | |
6675 | no_cache=1 | |
6676 | fi | |
6677 | ||
6678 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
6679 | ||
6680 | fi | |
6681 | ||
6682 | ||
6683 | eval "$ac_cv_use_tipdlg" | |
6684 | if test "$no_cache" != 1; then | |
6685 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
6686 | fi | |
6687 | ||
6688 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
6689 | echo "$ac_t""yes" 1>&6 | |
6690 | else | |
6691 | echo "$ac_t""no" 1>&6 | |
6692 | fi | |
6693 | ||
6694 | ||
6695 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 | |
6696 | echo "configure:6697: checking for --enable-progressdlg" >&5 | |
6697 | no_cache=0 | |
6698 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
6699 | if test "${enable_progressdlg+set}" = set; then | |
6700 | enableval="$enable_progressdlg" | |
6701 | ||
6702 | if test "$enableval" = yes; then | |
6703 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
6704 | else | |
6705 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
6706 | fi | |
6707 | ||
6708 | else | |
6709 | ||
6710 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
6711 | if test "x$LINE" != x ; then | |
6712 | eval "DEFAULT_$LINE" | |
6713 | else | |
6714 | no_cache=1 | |
6715 | fi | |
6716 | ||
6717 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
6718 | ||
6719 | fi | |
6720 | ||
6721 | ||
6722 | eval "$ac_cv_use_progressdlg" | |
6723 | if test "$no_cache" != 1; then | |
6724 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
6725 | fi | |
6726 | ||
6727 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
6728 | echo "$ac_t""yes" 1>&6 | |
6729 | else | |
6730 | echo "$ac_t""no" 1>&6 | |
6731 | fi | |
6732 | ||
6733 | ||
6734 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 | |
6735 | echo "configure:6736: checking for --enable-wizarddlg" >&5 | |
6736 | no_cache=0 | |
6737 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
6738 | if test "${enable_wizarddlg+set}" = set; then | |
6739 | enableval="$enable_wizarddlg" | |
6740 | ||
6741 | if test "$enableval" = yes; then | |
6742 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
6743 | else | |
6744 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
6745 | fi | |
6746 | ||
6747 | else | |
6748 | ||
6749 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
6750 | if test "x$LINE" != x ; then | |
6751 | eval "DEFAULT_$LINE" | |
6752 | else | |
6753 | no_cache=1 | |
6754 | fi | |
6755 | ||
6756 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
6757 | ||
6758 | fi | |
6759 | ||
6760 | ||
6761 | eval "$ac_cv_use_wizarddlg" | |
6762 | if test "$no_cache" != 1; then | |
6763 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
6764 | fi | |
6765 | ||
6766 | if test "$wxUSE_WIZARDDLG" = yes; then | |
6767 | echo "$ac_t""yes" 1>&6 | |
6768 | else | |
6769 | echo "$ac_t""no" 1>&6 | |
6770 | fi | |
6771 | ||
6772 | ||
6773 | ||
6774 | ||
6775 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 | |
6776 | echo "configure:6777: checking for --enable-menus" >&5 | |
6777 | no_cache=0 | |
6778 | # Check whether --enable-menus or --disable-menus was given. | |
6779 | if test "${enable_menus+set}" = set; then | |
6780 | enableval="$enable_menus" | |
6781 | ||
6782 | if test "$enableval" = yes; then | |
6783 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
6784 | else | |
6785 | ac_cv_use_menus='wxUSE_MENUS=no' | |
6786 | fi | |
6787 | ||
6788 | else | |
6789 | ||
6790 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
6791 | if test "x$LINE" != x ; then | |
6792 | eval "DEFAULT_$LINE" | |
6793 | else | |
6794 | no_cache=1 | |
6795 | fi | |
6796 | ||
6797 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
6798 | ||
6799 | fi | |
6800 | ||
6801 | ||
6802 | eval "$ac_cv_use_menus" | |
6803 | if test "$no_cache" != 1; then | |
6804 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
6805 | fi | |
6806 | ||
6807 | if test "$wxUSE_MENUS" = yes; then | |
6808 | echo "$ac_t""yes" 1>&6 | |
6809 | else | |
6810 | echo "$ac_t""no" 1>&6 | |
6811 | fi | |
6812 | ||
6813 | ||
6814 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 | |
6815 | echo "configure:6816: checking for --enable-miniframe" >&5 | |
6816 | no_cache=0 | |
6817 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
6818 | if test "${enable_miniframe+set}" = set; then | |
6819 | enableval="$enable_miniframe" | |
6820 | ||
6821 | if test "$enableval" = yes; then | |
6822 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
6823 | else | |
6824 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
6825 | fi | |
6826 | ||
6827 | else | |
6828 | ||
6829 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
6830 | if test "x$LINE" != x ; then | |
6831 | eval "DEFAULT_$LINE" | |
6832 | else | |
6833 | no_cache=1 | |
6834 | fi | |
6835 | ||
6836 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
6837 | ||
6838 | fi | |
6839 | ||
6840 | ||
6841 | eval "$ac_cv_use_miniframe" | |
6842 | if test "$no_cache" != 1; then | |
6843 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
6844 | fi | |
6845 | ||
6846 | if test "$wxUSE_MINIFRAME" = yes; then | |
6847 | echo "$ac_t""yes" 1>&6 | |
6848 | else | |
6849 | echo "$ac_t""no" 1>&6 | |
6850 | fi | |
6851 | ||
6852 | ||
6853 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 | |
6854 | echo "configure:6855: checking for --enable-html" >&5 | |
6855 | no_cache=0 | |
6856 | # Check whether --enable-html or --disable-html was given. | |
6857 | if test "${enable_html+set}" = set; then | |
6858 | enableval="$enable_html" | |
6859 | ||
6860 | if test "$enableval" = yes; then | |
6861 | ac_cv_use_html='wxUSE_HTML=yes' | |
6862 | else | |
6863 | ac_cv_use_html='wxUSE_HTML=no' | |
6864 | fi | |
6865 | ||
6866 | else | |
6867 | ||
6868 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6869 | if test "x$LINE" != x ; then | |
6870 | eval "DEFAULT_$LINE" | |
6871 | else | |
6872 | no_cache=1 | |
6873 | fi | |
6874 | ||
6875 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6876 | ||
6877 | fi | |
6878 | ||
6879 | ||
6880 | eval "$ac_cv_use_html" | |
6881 | if test "$no_cache" != 1; then | |
6882 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6883 | fi | |
6884 | ||
6885 | if test "$wxUSE_HTML" = yes; then | |
6886 | echo "$ac_t""yes" 1>&6 | |
6887 | else | |
6888 | echo "$ac_t""no" 1>&6 | |
6889 | fi | |
6890 | ||
6891 | ||
6892 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 | |
6893 | echo "configure:6894: checking for --enable-tooltips" >&5 | |
6894 | no_cache=0 | |
6895 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
6896 | if test "${enable_tooltips+set}" = set; then | |
6897 | enableval="$enable_tooltips" | |
6898 | ||
6899 | if test "$enableval" = yes; then | |
6900 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
6901 | else | |
6902 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
6903 | fi | |
6904 | ||
6905 | else | |
6906 | ||
6907 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
6908 | if test "x$LINE" != x ; then | |
6909 | eval "DEFAULT_$LINE" | |
6910 | else | |
6911 | no_cache=1 | |
6912 | fi | |
6913 | ||
6914 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
6915 | ||
6916 | fi | |
6917 | ||
6918 | ||
6919 | eval "$ac_cv_use_tooltips" | |
6920 | if test "$no_cache" != 1; then | |
6921 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
6922 | fi | |
6923 | ||
6924 | if test "$wxUSE_TOOLTIPS" = yes; then | |
6925 | echo "$ac_t""yes" 1>&6 | |
6926 | else | |
6927 | echo "$ac_t""no" 1>&6 | |
6928 | fi | |
6929 | ||
6930 | ||
6931 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 | |
6932 | echo "configure:6933: checking for --enable-splines" >&5 | |
6933 | no_cache=0 | |
6934 | # Check whether --enable-splines or --disable-splines was given. | |
6935 | if test "${enable_splines+set}" = set; then | |
6936 | enableval="$enable_splines" | |
6937 | ||
6938 | if test "$enableval" = yes; then | |
6939 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
6940 | else | |
6941 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
6942 | fi | |
6943 | ||
6944 | else | |
6945 | ||
6946 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
6947 | if test "x$LINE" != x ; then | |
6948 | eval "DEFAULT_$LINE" | |
6949 | else | |
6950 | no_cache=1 | |
6951 | fi | |
6952 | ||
6953 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
6954 | ||
6955 | fi | |
6956 | ||
6957 | ||
6958 | eval "$ac_cv_use_splines" | |
6959 | if test "$no_cache" != 1; then | |
6960 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
6961 | fi | |
6962 | ||
6963 | if test "$wxUSE_SPLINES" = yes; then | |
6964 | echo "$ac_t""yes" 1>&6 | |
6965 | else | |
6966 | echo "$ac_t""no" 1>&6 | |
6967 | fi | |
6968 | ||
6969 | ||
6970 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 | |
6971 | echo "configure:6972: checking for --enable-validators" >&5 | |
6972 | no_cache=0 | |
6973 | # Check whether --enable-validators or --disable-validators was given. | |
6974 | if test "${enable_validators+set}" = set; then | |
6975 | enableval="$enable_validators" | |
6976 | ||
6977 | if test "$enableval" = yes; then | |
6978 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
6979 | else | |
6980 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
6981 | fi | |
6982 | ||
6983 | else | |
6984 | ||
6985 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
6986 | if test "x$LINE" != x ; then | |
6987 | eval "DEFAULT_$LINE" | |
6988 | else | |
6989 | no_cache=1 | |
6990 | fi | |
6991 | ||
6992 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
6993 | ||
6994 | fi | |
6995 | ||
6996 | ||
6997 | eval "$ac_cv_use_validators" | |
6998 | if test "$no_cache" != 1; then | |
6999 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7000 | fi | |
7001 | ||
7002 | if test "$wxUSE_VALIDATORS" = yes; then | |
7003 | echo "$ac_t""yes" 1>&6 | |
7004 | else | |
7005 | echo "$ac_t""no" 1>&6 | |
7006 | fi | |
7007 | ||
7008 | ||
7009 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 | |
7010 | echo "configure:7011: checking for --enable-busyinfo" >&5 | |
7011 | no_cache=0 | |
7012 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7013 | if test "${enable_busyinfo+set}" = set; then | |
7014 | enableval="$enable_busyinfo" | |
7015 | ||
7016 | if test "$enableval" = yes; then | |
7017 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7018 | else | |
7019 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7020 | fi | |
7021 | ||
7022 | else | |
7023 | ||
7024 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
7025 | if test "x$LINE" != x ; then | |
7026 | eval "DEFAULT_$LINE" | |
7027 | else | |
7028 | no_cache=1 | |
7029 | fi | |
7030 | ||
7031 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
7032 | ||
7033 | fi | |
7034 | ||
7035 | ||
7036 | eval "$ac_cv_use_busyinfo" | |
7037 | if test "$no_cache" != 1; then | |
7038 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7039 | fi | |
7040 | ||
7041 | if test "$wxUSE_BUSYINFO" = yes; then | |
7042 | echo "$ac_t""yes" 1>&6 | |
7043 | else | |
7044 | echo "$ac_t""no" 1>&6 | |
7045 | fi | |
7046 | ||
7047 | ||
7048 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 | |
7049 | echo "configure:7050: checking for --enable-joystick" >&5 | |
7050 | no_cache=0 | |
7051 | # Check whether --enable-joystick or --disable-joystick was given. | |
7052 | if test "${enable_joystick+set}" = set; then | |
7053 | enableval="$enable_joystick" | |
7054 | ||
7055 | if test "$enableval" = yes; then | |
7056 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7057 | else | |
7058 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7059 | fi | |
7060 | ||
7061 | else | |
7062 | ||
7063 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
7064 | if test "x$LINE" != x ; then | |
7065 | eval "DEFAULT_$LINE" | |
7066 | else | |
7067 | no_cache=1 | |
7068 | fi | |
7069 | ||
7070 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
7071 | ||
7072 | fi | |
7073 | ||
7074 | ||
7075 | eval "$ac_cv_use_joystick" | |
7076 | if test "$no_cache" != 1; then | |
7077 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7078 | fi | |
7079 | ||
7080 | if test "$wxUSE_JOYSTICK" = yes; then | |
7081 | echo "$ac_t""yes" 1>&6 | |
7082 | else | |
7083 | echo "$ac_t""no" 1>&6 | |
7084 | fi | |
7085 | ||
7086 | ||
7087 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 | |
7088 | echo "configure:7089: checking for --enable-metafile" >&5 | |
7089 | no_cache=0 | |
7090 | # Check whether --enable-metafile or --disable-metafile was given. | |
7091 | if test "${enable_metafile+set}" = set; then | |
7092 | enableval="$enable_metafile" | |
7093 | ||
7094 | if test "$enableval" = yes; then | |
7095 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7096 | else | |
7097 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7098 | fi | |
7099 | ||
7100 | else | |
7101 | ||
7102 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7103 | if test "x$LINE" != x ; then | |
7104 | eval "DEFAULT_$LINE" | |
7105 | else | |
7106 | no_cache=1 | |
7107 | fi | |
7108 | ||
7109 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7110 | ||
7111 | fi | |
7112 | ||
7113 | ||
7114 | eval "$ac_cv_use_metafile" | |
7115 | if test "$no_cache" != 1; then | |
7116 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7117 | fi | |
7118 | ||
7119 | if test "$wxUSE_METAFILE" = yes; then | |
7120 | echo "$ac_t""yes" 1>&6 | |
7121 | else | |
7122 | echo "$ac_t""no" 1>&6 | |
7123 | fi | |
7124 | ||
7125 | ||
7126 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 | |
7127 | echo "configure:7128: checking for --enable-dragimage" >&5 | |
7128 | no_cache=0 | |
7129 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7130 | if test "${enable_dragimage+set}" = set; then | |
7131 | enableval="$enable_dragimage" | |
7132 | ||
7133 | if test "$enableval" = yes; then | |
7134 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7135 | else | |
7136 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7137 | fi | |
7138 | ||
7139 | else | |
7140 | ||
7141 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7142 | if test "x$LINE" != x ; then | |
7143 | eval "DEFAULT_$LINE" | |
7144 | else | |
7145 | no_cache=1 | |
7146 | fi | |
7147 | ||
7148 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7149 | ||
7150 | fi | |
7151 | ||
7152 | ||
7153 | eval "$ac_cv_use_dragimage" | |
7154 | if test "$no_cache" != 1; then | |
7155 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7156 | fi | |
7157 | ||
7158 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7159 | echo "$ac_t""yes" 1>&6 | |
7160 | else | |
7161 | echo "$ac_t""no" 1>&6 | |
7162 | fi | |
7163 | ||
7164 | ||
7165 | ||
7166 | ||
7167 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
7168 | echo "configure:7169: checking for --enable-image" >&5 | |
7169 | no_cache=0 | |
7170 | # Check whether --enable-image or --disable-image was given. | |
7171 | if test "${enable_image+set}" = set; then | |
7172 | enableval="$enable_image" | |
7173 | ||
7174 | if test "$enableval" = yes; then | |
7175 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7176 | else | |
7177 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7178 | fi | |
7179 | ||
7180 | else | |
7181 | ||
7182 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
7183 | if test "x$LINE" != x ; then | |
7184 | eval "DEFAULT_$LINE" | |
7185 | else | |
7186 | no_cache=1 | |
7187 | fi | |
7188 | ||
7189 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
7190 | ||
7191 | fi | |
7192 | ||
7193 | ||
7194 | eval "$ac_cv_use_image" | |
7195 | if test "$no_cache" != 1; then | |
7196 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7197 | fi | |
7198 | ||
7199 | if test "$wxUSE_IMAGE" = yes; then | |
7200 | echo "$ac_t""yes" 1>&6 | |
7201 | else | |
7202 | echo "$ac_t""no" 1>&6 | |
7203 | fi | |
7204 | ||
7205 | ||
7206 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 | |
7207 | echo "configure:7208: checking for --enable-gif" >&5 | |
7208 | no_cache=0 | |
7209 | # Check whether --enable-gif or --disable-gif was given. | |
7210 | if test "${enable_gif+set}" = set; then | |
7211 | enableval="$enable_gif" | |
7212 | ||
7213 | if test "$enableval" = yes; then | |
7214 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7215 | else | |
7216 | ac_cv_use_gif='wxUSE_GIF=no' | |
7217 | fi | |
7218 | ||
7219 | else | |
7220 | ||
7221 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
7222 | if test "x$LINE" != x ; then | |
7223 | eval "DEFAULT_$LINE" | |
7224 | else | |
7225 | no_cache=1 | |
7226 | fi | |
7227 | ||
7228 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
7229 | ||
7230 | fi | |
7231 | ||
7232 | ||
7233 | eval "$ac_cv_use_gif" | |
7234 | if test "$no_cache" != 1; then | |
7235 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7236 | fi | |
7237 | ||
7238 | if test "$wxUSE_GIF" = yes; then | |
7239 | echo "$ac_t""yes" 1>&6 | |
7240 | else | |
7241 | echo "$ac_t""no" 1>&6 | |
7242 | fi | |
7243 | ||
7244 | ||
7245 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 | |
7246 | echo "configure:7247: checking for --enable-pcx" >&5 | |
7247 | no_cache=0 | |
7248 | # Check whether --enable-pcx or --disable-pcx was given. | |
7249 | if test "${enable_pcx+set}" = set; then | |
7250 | enableval="$enable_pcx" | |
7251 | ||
7252 | if test "$enableval" = yes; then | |
7253 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7254 | else | |
7255 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7256 | fi | |
7257 | ||
7258 | else | |
7259 | ||
7260 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
7261 | if test "x$LINE" != x ; then | |
7262 | eval "DEFAULT_$LINE" | |
7263 | else | |
7264 | no_cache=1 | |
7265 | fi | |
7266 | ||
7267 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
7268 | ||
7269 | fi | |
7270 | ||
7271 | ||
7272 | eval "$ac_cv_use_pcx" | |
7273 | if test "$no_cache" != 1; then | |
7274 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7275 | fi | |
7276 | ||
7277 | if test "$wxUSE_PCX" = yes; then | |
7278 | echo "$ac_t""yes" 1>&6 | |
7279 | else | |
7280 | echo "$ac_t""no" 1>&6 | |
7281 | fi | |
7282 | ||
7283 | ||
7284 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 | |
7285 | echo "configure:7286: checking for --enable-pnm" >&5 | |
7286 | no_cache=0 | |
7287 | # Check whether --enable-pnm or --disable-pnm was given. | |
7288 | if test "${enable_pnm+set}" = set; then | |
7289 | enableval="$enable_pnm" | |
7290 | ||
7291 | if test "$enableval" = yes; then | |
7292 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7293 | else | |
7294 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7295 | fi | |
7296 | ||
7297 | else | |
7298 | ||
7299 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
7300 | if test "x$LINE" != x ; then | |
7301 | eval "DEFAULT_$LINE" | |
7302 | else | |
7303 | no_cache=1 | |
7304 | fi | |
7305 | ||
7306 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
7307 | ||
7308 | fi | |
7309 | ||
7310 | ||
7311 | eval "$ac_cv_use_pnm" | |
7312 | if test "$no_cache" != 1; then | |
7313 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7314 | fi | |
7315 | ||
7316 | if test "$wxUSE_PNM" = yes; then | |
7317 | echo "$ac_t""yes" 1>&6 | |
7318 | else | |
7319 | echo "$ac_t""no" 1>&6 | |
7320 | fi | |
7321 | ||
7322 | ||
7323 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 | |
7324 | echo "configure:7325: checking for --enable-pnm" >&5 | |
7325 | no_cache=0 | |
7326 | # Check whether --enable-pnm or --disable-pnm was given. | |
7327 | if test "${enable_pnm+set}" = set; then | |
7328 | enableval="$enable_pnm" | |
7329 | ||
7330 | if test "$enableval" = yes; then | |
7331 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7332 | else | |
7333 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7334 | fi | |
7335 | ||
7336 | else | |
7337 | ||
7338 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
7339 | if test "x$LINE" != x ; then | |
7340 | eval "DEFAULT_$LINE" | |
7341 | else | |
7342 | no_cache=1 | |
7343 | fi | |
7344 | ||
7345 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
7346 | ||
7347 | fi | |
7348 | ||
7349 | ||
7350 | eval "$ac_cv_use_pnm" | |
7351 | if test "$no_cache" != 1; then | |
7352 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7353 | fi | |
7354 | ||
7355 | if test "$wxUSE_XPM" = yes; then | |
7356 | echo "$ac_t""yes" 1>&6 | |
7357 | else | |
7358 | echo "$ac_t""no" 1>&6 | |
7359 | fi | |
7360 | ||
7361 | ||
7362 | fi | |
7363 | ||
7364 | ||
7365 | echo "saving argument cache $wx_arg_cache_file" | |
7366 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
7367 | ||
7368 | ||
7369 | ||
7370 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
7371 | echo "configure:7372: checking for toolkit" >&5 | |
7372 | ||
7373 | if test "$wxUSE_GUI" = "yes"; then | |
7374 | ||
7375 | if test "$USE_BEOS" = 1; then | |
7376 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
7377 | fi | |
7378 | ||
7379 | if test "$TOOLKIT_GIVEN" = 1; then | |
7380 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7381 | var=wxUSE_$toolkit | |
7382 | eval "value=\$${var}" | |
7383 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7384 | done | |
7385 | else | |
7386 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7387 | if test "$has_toolkit_in_cache" != 1; then | |
7388 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7389 | else | |
7390 | var=DEFAULT_wxUSE_$toolkit | |
7391 | fi | |
7392 | eval "wxUSE_$toolkit=\$${var}" | |
7393 | done | |
7394 | fi | |
7395 | ||
7396 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}` | |
7397 | ||
7398 | case "${host}" in | |
7399 | *-pc-os2_emx ) | |
7400 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7401 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7402 | LEX_STEM="lexyy" | |
7403 | ;; | |
7404 | *) | |
7405 | PATH_IFS=':' | |
7406 | LEX_STEM="lex.yy" | |
7407 | ;; | |
7408 | esac | |
7409 | ||
7410 | case "$NUM_TOOLKITS" in | |
7411 | 1) | |
7412 | ;; | |
7413 | 0) | |
7414 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
7415 | ;; | |
7416 | *) | |
7417 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
7418 | esac | |
7419 | ||
7420 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7421 | var=wxUSE_$toolkit | |
7422 | eval "value=\$${var}" | |
7423 | if test "x$value" != x; then | |
7424 | cache_var=CACHE_$toolkit | |
7425 | eval "cache=\$${cache_var}" | |
7426 | if test "$cache" = 1; then | |
7427 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7428 | fi | |
7429 | if test "$value" = 1; then | |
7430 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
7431 | echo "$ac_t""$toolkit_echo" 1>&6 | |
7432 | fi | |
7433 | fi | |
7434 | done | |
7435 | ||
7436 | else | |
7437 | PATH_IFS=':' | |
7438 | echo "$ac_t""base only" 1>&6 | |
7439 | fi | |
7440 | ||
7441 | ||
7442 | cat > confcache <<\EOF | |
7443 | # This file is a shell script that caches the results of configure | |
7444 | # tests run on this system so they can be shared between configure | |
7445 | # scripts and configure runs. It is not useful on other systems. | |
7446 | # If it contains results you don't want to keep, you may remove or edit it. | |
7447 | # | |
7448 | # By default, configure uses ./config.cache as the cache file, | |
7449 | # creating it if it does not exist already. You can give configure | |
7450 | # the --cache-file=FILE option to use a different cache file; that is | |
7451 | # what configure does when it calls configure scripts in | |
7452 | # subdirectories, so they share the cache. | |
7453 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7454 | # config.status only pays attention to the cache file if you give it the | |
7455 | # --recheck option to rerun configure. | |
7456 | # | |
7457 | EOF | |
7458 | # The following way of writing the cache mishandles newlines in values, | |
7459 | # but we know of no workaround that is simple, portable, and efficient. | |
7460 | # So, don't put newlines in cache variables' values. | |
7461 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7462 | # and sets the high bit in the cache file unless we assign to the vars. | |
7463 | (set) 2>&1 | | |
7464 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7465 | *ac_space=\ *) | |
7466 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7467 | # turns \\\\ into \\, and sed turns \\ into \). | |
7468 | sed -n \ | |
7469 | -e "s/'/'\\\\''/g" \ | |
7470 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7471 | ;; | |
7472 | *) | |
7473 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7474 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7475 | ;; | |
7476 | esac >> confcache | |
7477 | if cmp -s $cache_file confcache; then | |
7478 | : | |
7479 | else | |
7480 | if test -w $cache_file; then | |
7481 | echo "updating cache $cache_file" | |
7482 | cat confcache > $cache_file | |
7483 | else | |
7484 | echo "not updating unwritable cache $cache_file" | |
7485 | fi | |
7486 | fi | |
7487 | rm -f confcache | |
7488 | ||
7489 | ||
7490 | if test "$build" != "$host" ; then | |
7491 | CC=$host_alias-gcc | |
7492 | CXX=$host_alias-c++ | |
7493 | AR=$host_alias-ar | |
7494 | RANLIB=$host_alias-ranlib | |
7495 | DLLTOOL=$host_alias-dlltool | |
7496 | RESCOMP=$host_alias-windres | |
7497 | LD=$host_alias-ld | |
7498 | NM=$host_alias-nm | |
7499 | STRIP=$host_alias-strip | |
7500 | fi | |
7501 | ||
7502 | # Extract the first word of "gcc", so it can be a program name with args. | |
7503 | set dummy gcc; ac_word=$2 | |
7504 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7505 | echo "configure:7506: checking for $ac_word" >&5 | |
7506 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
7507 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7508 | else | |
7509 | if test -n "$CC"; then | |
7510 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7511 | else | |
7512 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7513 | ac_dummy="$PATH" | |
7514 | for ac_dir in $ac_dummy; do | |
7515 | test -z "$ac_dir" && ac_dir=. | |
7516 | if test -f $ac_dir/$ac_word; then | |
7517 | ac_cv_prog_CC="gcc" | |
7518 | break | |
7519 | fi | |
7520 | done | |
7521 | IFS="$ac_save_ifs" | |
7522 | fi | |
7523 | fi | |
7524 | CC="$ac_cv_prog_CC" | |
7525 | if test -n "$CC"; then | |
7526 | echo "$ac_t""$CC" 1>&6 | |
7527 | else | |
7528 | echo "$ac_t""no" 1>&6 | |
7529 | fi | |
7530 | ||
7531 | if test -z "$CC"; then | |
7532 | # Extract the first word of "cc", so it can be a program name with args. | |
7533 | set dummy cc; ac_word=$2 | |
7534 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7535 | echo "configure:7536: checking for $ac_word" >&5 | |
7536 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
7537 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7538 | else | |
7539 | if test -n "$CC"; then | |
7540 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7541 | else | |
7542 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7543 | ac_prog_rejected=no | |
7544 | ac_dummy="$PATH" | |
7545 | for ac_dir in $ac_dummy; do | |
7546 | test -z "$ac_dir" && ac_dir=. | |
7547 | if test -f $ac_dir/$ac_word; then | |
7548 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7549 | ac_prog_rejected=yes | |
7550 | continue | |
7551 | fi | |
7552 | ac_cv_prog_CC="cc" | |
7553 | break | |
7554 | fi | |
7555 | done | |
7556 | IFS="$ac_save_ifs" | |
7557 | if test $ac_prog_rejected = yes; then | |
7558 | # We found a bogon in the path, so make sure we never use it. | |
7559 | set dummy $ac_cv_prog_CC | |
7560 | shift | |
7561 | if test $# -gt 0; then | |
7562 | # We chose a different compiler from the bogus one. | |
7563 | # However, it has the same basename, so the bogon will be chosen | |
7564 | # first if we set CC to just the basename; use the full file name. | |
7565 | shift | |
7566 | set dummy "$ac_dir/$ac_word" "$@" | |
7567 | shift | |
7568 | ac_cv_prog_CC="$@" | |
7569 | fi | |
7570 | fi | |
7571 | fi | |
7572 | fi | |
7573 | CC="$ac_cv_prog_CC" | |
7574 | if test -n "$CC"; then | |
7575 | echo "$ac_t""$CC" 1>&6 | |
7576 | else | |
7577 | echo "$ac_t""no" 1>&6 | |
7578 | fi | |
7579 | ||
7580 | if test -z "$CC"; then | |
7581 | case "`uname -s`" in | |
7582 | *win32* | *WIN32*) | |
7583 | # Extract the first word of "cl", so it can be a program name with args. | |
7584 | set dummy cl; ac_word=$2 | |
7585 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7586 | echo "configure:7587: checking for $ac_word" >&5 | |
7587 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
7588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7589 | else | |
7590 | if test -n "$CC"; then | |
7591 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7592 | else | |
7593 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7594 | ac_dummy="$PATH" | |
7595 | for ac_dir in $ac_dummy; do | |
7596 | test -z "$ac_dir" && ac_dir=. | |
7597 | if test -f $ac_dir/$ac_word; then | |
7598 | ac_cv_prog_CC="cl" | |
7599 | break | |
7600 | fi | |
7601 | done | |
7602 | IFS="$ac_save_ifs" | |
7603 | fi | |
7604 | fi | |
7605 | CC="$ac_cv_prog_CC" | |
7606 | if test -n "$CC"; then | |
7607 | echo "$ac_t""$CC" 1>&6 | |
7608 | else | |
7609 | echo "$ac_t""no" 1>&6 | |
7610 | fi | |
7611 | ;; | |
7612 | esac | |
7613 | fi | |
7614 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
7615 | fi | |
7616 | ||
7617 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
7618 | echo "configure:7619: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
7619 | ||
7620 | ac_ext=c | |
7621 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7622 | ac_cpp='$CPP $CPPFLAGS' | |
7623 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7624 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7625 | cross_compiling=$ac_cv_prog_cc_cross | |
7626 | ||
7627 | cat > conftest.$ac_ext << EOF | |
7628 | ||
7629 | #line 7630 "configure" | |
7630 | #include "confdefs.h" | |
7631 | ||
7632 | main(){return(0);} | |
7633 | EOF | |
7634 | if { (eval echo configure:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7635 | ac_cv_prog_cc_works=yes | |
7636 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7637 | if (./conftest; exit) 2>/dev/null; then | |
7638 | ac_cv_prog_cc_cross=no | |
7639 | else | |
7640 | ac_cv_prog_cc_cross=yes | |
7641 | fi | |
7642 | else | |
7643 | echo "configure: failed program was:" >&5 | |
7644 | cat conftest.$ac_ext >&5 | |
7645 | ac_cv_prog_cc_works=no | |
7646 | fi | |
7647 | rm -fr conftest* | |
7648 | ac_ext=c | |
7649 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7650 | ac_cpp='$CPP $CPPFLAGS' | |
7651 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7652 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7653 | cross_compiling=$ac_cv_prog_cc_cross | |
7654 | ||
7655 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
7656 | if test $ac_cv_prog_cc_works = no; then | |
7657 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
7658 | fi | |
7659 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
7660 | echo "configure:7661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
7661 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
7662 | cross_compiling=$ac_cv_prog_cc_cross | |
7663 | ||
7664 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
7665 | echo "configure:7666: checking whether we are using GNU C" >&5 | |
7666 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
7667 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7668 | else | |
7669 | cat > conftest.c <<EOF | |
7670 | #ifdef __GNUC__ | |
7671 | yes; | |
7672 | #endif | |
7673 | EOF | |
7674 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
7675 | ac_cv_prog_gcc=yes | |
7676 | else | |
7677 | ac_cv_prog_gcc=no | |
7678 | fi | |
7679 | fi | |
7680 | ||
7681 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
7682 | ||
7683 | if test $ac_cv_prog_gcc = yes; then | |
7684 | GCC=yes | |
7685 | else | |
7686 | GCC= | |
7687 | fi | |
7688 | ||
7689 | ac_test_CFLAGS="${CFLAGS+set}" | |
7690 | ac_save_CFLAGS="$CFLAGS" | |
7691 | CFLAGS= | |
7692 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
7693 | echo "configure:7694: checking whether ${CC-cc} accepts -g" >&5 | |
7694 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
7695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7696 | else | |
7697 | echo 'void f(){}' > conftest.c | |
7698 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
7699 | ac_cv_prog_cc_g=yes | |
7700 | else | |
7701 | ac_cv_prog_cc_g=no | |
7702 | fi | |
7703 | rm -f conftest* | |
7704 | ||
7705 | fi | |
7706 | ||
7707 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
7708 | if test "$ac_test_CFLAGS" = set; then | |
7709 | CFLAGS="$ac_save_CFLAGS" | |
7710 | elif test $ac_cv_prog_cc_g = yes; then | |
7711 | if test "$GCC" = yes; then | |
7712 | CFLAGS="-g -O2" | |
7713 | else | |
7714 | CFLAGS="-g" | |
7715 | fi | |
7716 | else | |
7717 | if test "$GCC" = yes; then | |
7718 | CFLAGS="-O2" | |
7719 | else | |
7720 | CFLAGS= | |
7721 | fi | |
7722 | fi | |
7723 | ||
7724 | ||
7725 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
7726 | ||
7727 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
7728 | echo "configure:7729: checking how to run the C preprocessor" >&5 | |
7729 | # On Suns, sometimes $CPP names a directory. | |
7730 | if test -n "$CPP" && test -d "$CPP"; then | |
7731 | CPP= | |
7732 | fi | |
7733 | if test -z "$CPP"; then | |
7734 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
7735 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7736 | else | |
7737 | # This must be in double quotes, not single quotes, because CPP may get | |
7738 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
7739 | CPP="${CC-cc} -E" | |
7740 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7741 | # not just through cpp. | |
7742 | cat > conftest.$ac_ext <<EOF | |
7743 | #line 7744 "configure" | |
7744 | #include "confdefs.h" | |
7745 | #include <assert.h> | |
7746 | Syntax Error | |
7747 | EOF | |
7748 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7749 | { (eval echo configure:7750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7750 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7751 | if test -z "$ac_err"; then | |
7752 | : | |
7753 | else | |
7754 | echo "$ac_err" >&5 | |
7755 | echo "configure: failed program was:" >&5 | |
7756 | cat conftest.$ac_ext >&5 | |
7757 | rm -rf conftest* | |
7758 | CPP="${CC-cc} -E -traditional-cpp" | |
7759 | cat > conftest.$ac_ext <<EOF | |
7760 | #line 7761 "configure" | |
7761 | #include "confdefs.h" | |
7762 | #include <assert.h> | |
7763 | Syntax Error | |
7764 | EOF | |
7765 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7766 | { (eval echo configure:7767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7767 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7768 | if test -z "$ac_err"; then | |
7769 | : | |
7770 | else | |
7771 | echo "$ac_err" >&5 | |
7772 | echo "configure: failed program was:" >&5 | |
7773 | cat conftest.$ac_ext >&5 | |
7774 | rm -rf conftest* | |
7775 | CPP="${CC-cc} -nologo -E" | |
7776 | cat > conftest.$ac_ext <<EOF | |
7777 | #line 7778 "configure" | |
7778 | #include "confdefs.h" | |
7779 | #include <assert.h> | |
7780 | Syntax Error | |
7781 | EOF | |
7782 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7783 | { (eval echo configure:7784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7784 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7785 | if test -z "$ac_err"; then | |
7786 | : | |
7787 | else | |
7788 | echo "$ac_err" >&5 | |
7789 | echo "configure: failed program was:" >&5 | |
7790 | cat conftest.$ac_ext >&5 | |
7791 | rm -rf conftest* | |
7792 | CPP=/lib/cpp | |
7793 | fi | |
7794 | rm -f conftest* | |
7795 | fi | |
7796 | rm -f conftest* | |
7797 | fi | |
7798 | rm -f conftest* | |
7799 | ac_cv_prog_CPP="$CPP" | |
7800 | fi | |
7801 | CPP="$ac_cv_prog_CPP" | |
7802 | else | |
7803 | ac_cv_prog_CPP="$CPP" | |
7804 | fi | |
7805 | echo "$ac_t""$CPP" 1>&6 | |
7806 | ||
7807 | ||
7808 | if test $ac_cv_prog_gcc = yes; then | |
7809 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
7810 | echo "configure:7811: checking whether ${CC-cc} needs -traditional" >&5 | |
7811 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then | |
7812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7813 | else | |
7814 | ac_pattern="Autoconf.*'x'" | |
7815 | cat > conftest.$ac_ext <<EOF | |
7816 | #line 7817 "configure" | |
7817 | #include "confdefs.h" | |
7818 | #include <sgtty.h> | |
7819 | Autoconf TIOCGETP | |
7820 | EOF | |
7821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7822 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
7823 | rm -rf conftest* | |
7824 | ac_cv_prog_gcc_traditional=yes | |
7825 | else | |
7826 | rm -rf conftest* | |
7827 | ac_cv_prog_gcc_traditional=no | |
7828 | fi | |
7829 | rm -f conftest* | |
7830 | ||
7831 | ||
7832 | if test $ac_cv_prog_gcc_traditional = no; then | |
7833 | cat > conftest.$ac_ext <<EOF | |
7834 | #line 7835 "configure" | |
7835 | #include "confdefs.h" | |
7836 | #include <termio.h> | |
7837 | Autoconf TCGETA | |
7838 | EOF | |
7839 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7840 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
7841 | rm -rf conftest* | |
7842 | ac_cv_prog_gcc_traditional=yes | |
7843 | fi | |
7844 | rm -f conftest* | |
7845 | ||
7846 | fi | |
7847 | fi | |
7848 | ||
7849 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
7850 | if test $ac_cv_prog_gcc_traditional = yes; then | |
7851 | CC="$CC -traditional" | |
7852 | fi | |
7853 | fi | |
7854 | ||
7855 | ||
7856 | ||
7857 | ac_ext=C | |
7858 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7859 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7860 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7861 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7862 | cross_compiling=$ac_cv_prog_cxx_cross | |
7863 | ||
7864 | ||
7865 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
7866 | do | |
7867 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7868 | set dummy $ac_prog; ac_word=$2 | |
7869 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7870 | echo "configure:7871: checking for $ac_word" >&5 | |
7871 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | |
7872 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7873 | else | |
7874 | if test -n "$CXX"; then | |
7875 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
7876 | else | |
7877 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7878 | ac_dummy="$PATH" | |
7879 | for ac_dir in $ac_dummy; do | |
7880 | test -z "$ac_dir" && ac_dir=. | |
7881 | if test -f $ac_dir/$ac_word; then | |
7882 | ac_cv_prog_CXX="$ac_prog" | |
7883 | break | |
7884 | fi | |
7885 | done | |
7886 | IFS="$ac_save_ifs" | |
7887 | fi | |
7888 | fi | |
7889 | CXX="$ac_cv_prog_CXX" | |
7890 | if test -n "$CXX"; then | |
7891 | echo "$ac_t""$CXX" 1>&6 | |
7892 | else | |
7893 | echo "$ac_t""no" 1>&6 | |
7894 | fi | |
7895 | ||
7896 | test -n "$CXX" && break | |
7897 | done | |
7898 | test -n "$CXX" || CXX="gcc" | |
7899 | ||
7900 | ||
7901 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
7902 | echo "configure:7903: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | |
7903 | ||
7904 | ac_ext=C | |
7905 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7906 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7907 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7908 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7909 | cross_compiling=$ac_cv_prog_cxx_cross | |
7910 | ||
7911 | cat > conftest.$ac_ext << EOF | |
7912 | ||
7913 | #line 7914 "configure" | |
7914 | #include "confdefs.h" | |
7915 | ||
7916 | int main(){return(0);} | |
7917 | EOF | |
7918 | if { (eval echo configure:7919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7919 | ac_cv_prog_cxx_works=yes | |
7920 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7921 | if (./conftest; exit) 2>/dev/null; then | |
7922 | ac_cv_prog_cxx_cross=no | |
7923 | else | |
7924 | ac_cv_prog_cxx_cross=yes | |
7925 | fi | |
7926 | else | |
7927 | echo "configure: failed program was:" >&5 | |
7928 | cat conftest.$ac_ext >&5 | |
7929 | ac_cv_prog_cxx_works=no | |
7930 | fi | |
7931 | rm -fr conftest* | |
7932 | ac_ext=C | |
7933 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7934 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7935 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7936 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7937 | cross_compiling=$ac_cv_prog_cxx_cross | |
7938 | ||
7939 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
7940 | if test $ac_cv_prog_cxx_works = no; then | |
7941 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
7942 | fi | |
7943 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
7944 | echo "configure:7945: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
7945 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | |
7946 | cross_compiling=$ac_cv_prog_cxx_cross | |
7947 | ||
7948 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
7949 | echo "configure:7950: checking whether we are using GNU C++" >&5 | |
7950 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then | |
7951 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7952 | else | |
7953 | cat > conftest.C <<EOF | |
7954 | #ifdef __GNUC__ | |
7955 | yes; | |
7956 | #endif | |
7957 | EOF | |
7958 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
7959 | ac_cv_prog_gxx=yes | |
7960 | else | |
7961 | ac_cv_prog_gxx=no | |
7962 | fi | |
7963 | fi | |
7964 | ||
7965 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
7966 | ||
7967 | if test $ac_cv_prog_gxx = yes; then | |
7968 | GXX=yes | |
7969 | else | |
7970 | GXX= | |
7971 | fi | |
7972 | ||
7973 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
7974 | ac_save_CXXFLAGS="$CXXFLAGS" | |
7975 | CXXFLAGS= | |
7976 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
7977 | echo "configure:7978: checking whether ${CXX-g++} accepts -g" >&5 | |
7978 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then | |
7979 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7980 | else | |
7981 | echo 'void f(){}' > conftest.cc | |
7982 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
7983 | ac_cv_prog_cxx_g=yes | |
7984 | else | |
7985 | ac_cv_prog_cxx_g=no | |
7986 | fi | |
7987 | rm -f conftest* | |
7988 | ||
7989 | fi | |
7990 | ||
7991 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
7992 | if test "$ac_test_CXXFLAGS" = set; then | |
7993 | CXXFLAGS="$ac_save_CXXFLAGS" | |
7994 | elif test $ac_cv_prog_cxx_g = yes; then | |
7995 | if test "$GXX" = yes; then | |
7996 | CXXFLAGS="-g -O2" | |
7997 | else | |
7998 | CXXFLAGS="-g" | |
7999 | fi | |
8000 | else | |
8001 | if test "$GXX" = yes; then | |
8002 | CXXFLAGS="-O2" | |
8003 | else | |
8004 | CXXFLAGS= | |
8005 | fi | |
8006 | fi | |
8007 | ||
8008 | ||
8009 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
8010 | echo "configure:8011: checking how to run the C++ preprocessor" >&5 | |
8011 | if test -z "$CXXCPP"; then | |
8012 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
8013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8014 | else | |
8015 | ac_ext=C | |
8016 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8017 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8018 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8019 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8020 | cross_compiling=$ac_cv_prog_cxx_cross | |
8021 | CXXCPP="${CXX-g++} -E" | |
8022 | cat > conftest.$ac_ext <<EOF | |
8023 | #line 8024 "configure" | |
8024 | #include "confdefs.h" | |
8025 | #include <stdlib.h> | |
8026 | EOF | |
8027 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8028 | { (eval echo configure:8029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8029 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8030 | if test -z "$ac_err"; then | |
8031 | : | |
8032 | else | |
8033 | echo "$ac_err" >&5 | |
8034 | echo "configure: failed program was:" >&5 | |
8035 | cat conftest.$ac_ext >&5 | |
8036 | rm -rf conftest* | |
8037 | CXXCPP=/lib/cpp | |
8038 | fi | |
8039 | rm -f conftest* | |
8040 | ac_cv_prog_CXXCPP="$CXXCPP" | |
8041 | ac_ext=C | |
8042 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8043 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8044 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8045 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8046 | cross_compiling=$ac_cv_prog_cxx_cross | |
8047 | fi | |
8048 | fi | |
8049 | CXXCPP="$ac_cv_prog_CXXCPP" | |
8050 | echo "$ac_t""$CXXCPP" 1>&6 | |
8051 | ||
8052 | ||
8053 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
8054 | ||
8055 | ac_ext=c | |
8056 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8057 | ac_cpp='$CPP $CPPFLAGS' | |
8058 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8059 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8060 | cross_compiling=$ac_cv_prog_cc_cross | |
8061 | ||
8062 | ||
8063 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8064 | set dummy ranlib; ac_word=$2 | |
8065 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8066 | echo "configure:8067: checking for $ac_word" >&5 | |
8067 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
8068 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8069 | else | |
8070 | if test -n "$RANLIB"; then | |
8071 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8072 | else | |
8073 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8074 | ac_dummy="$PATH" | |
8075 | for ac_dir in $ac_dummy; do | |
8076 | test -z "$ac_dir" && ac_dir=. | |
8077 | if test -f $ac_dir/$ac_word; then | |
8078 | ac_cv_prog_RANLIB="ranlib" | |
8079 | break | |
8080 | fi | |
8081 | done | |
8082 | IFS="$ac_save_ifs" | |
8083 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
8084 | fi | |
8085 | fi | |
8086 | RANLIB="$ac_cv_prog_RANLIB" | |
8087 | if test -n "$RANLIB"; then | |
8088 | echo "$ac_t""$RANLIB" 1>&6 | |
8089 | else | |
8090 | echo "$ac_t""no" 1>&6 | |
8091 | fi | |
8092 | ||
8093 | ||
8094 | # Extract the first word of "ar", so it can be a program name with args. | |
8095 | set dummy ar; ac_word=$2 | |
8096 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8097 | echo "configure:8098: checking for $ac_word" >&5 | |
8098 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | |
8099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8100 | else | |
8101 | if test -n "$AR"; then | |
8102 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8103 | else | |
8104 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8105 | ac_dummy="$PATH" | |
8106 | for ac_dir in $ac_dummy; do | |
8107 | test -z "$ac_dir" && ac_dir=. | |
8108 | if test -f $ac_dir/$ac_word; then | |
8109 | ac_cv_prog_AR="ar" | |
8110 | break | |
8111 | fi | |
8112 | done | |
8113 | IFS="$ac_save_ifs" | |
8114 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
8115 | fi | |
8116 | fi | |
8117 | AR="$ac_cv_prog_AR" | |
8118 | if test -n "$AR"; then | |
8119 | echo "$ac_t""$AR" 1>&6 | |
8120 | else | |
8121 | echo "$ac_t""no" 1>&6 | |
8122 | fi | |
8123 | ||
8124 | ||
8125 | # Find a good install program. We prefer a C program (faster), | |
8126 | # so one script is as good as another. But avoid the broken or | |
8127 | # incompatible versions: | |
8128 | # SysV /etc/install, /usr/sbin/install | |
8129 | # SunOS /usr/etc/install | |
8130 | # IRIX /sbin/install | |
8131 | # AIX /bin/install | |
8132 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8133 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8134 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8135 | # ./install, which can be erroneously created by make from ./install.sh. | |
8136 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
8137 | echo "configure:8138: checking for a BSD compatible install" >&5 | |
8138 | if test -z "$INSTALL"; then | |
8139 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
8140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8141 | else | |
8142 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
8143 | for ac_dir in $PATH; do | |
8144 | # Account for people who put trailing slashes in PATH elements. | |
8145 | case "$ac_dir/" in | |
8146 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
8147 | *) | |
8148 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8149 | # Don't use installbsd from OSF since it installs stuff as root | |
8150 | # by default. | |
8151 | for ac_prog in ginstall scoinst install; do | |
8152 | if test -f $ac_dir/$ac_prog; then | |
8153 | if test $ac_prog = install && | |
8154 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
8155 | # AIX install. It has an incompatible calling convention. | |
8156 | : | |
8157 | else | |
8158 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8159 | break 2 | |
8160 | fi | |
8161 | fi | |
8162 | done | |
8163 | ;; | |
8164 | esac | |
8165 | done | |
8166 | IFS="$ac_save_IFS" | |
8167 | ||
8168 | fi | |
8169 | if test "${ac_cv_path_install+set}" = set; then | |
8170 | INSTALL="$ac_cv_path_install" | |
8171 | else | |
8172 | # As a last resort, use the slow shell script. We don't cache a | |
8173 | # path for INSTALL within a source directory, because that will | |
8174 | # break other packages using the cache if that directory is | |
8175 | # removed, or if the path is relative. | |
8176 | INSTALL="$ac_install_sh" | |
8177 | fi | |
8178 | fi | |
8179 | echo "$ac_t""$INSTALL" 1>&6 | |
8180 | ||
8181 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8182 | # It thinks the first close brace ends the variable substitution. | |
8183 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8184 | ||
8185 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
8186 | ||
8187 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8188 | ||
8189 | ||
8190 | # Extract the first word of "strip", so it can be a program name with args. | |
8191 | set dummy strip; ac_word=$2 | |
8192 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8193 | echo "configure:8194: checking for $ac_word" >&5 | |
8194 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
8195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8196 | else | |
8197 | if test -n "$STRIP"; then | |
8198 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8199 | else | |
8200 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8201 | ac_dummy="$PATH" | |
8202 | for ac_dir in $ac_dummy; do | |
8203 | test -z "$ac_dir" && ac_dir=. | |
8204 | if test -f $ac_dir/$ac_word; then | |
8205 | ac_cv_prog_STRIP="strip" | |
8206 | break | |
8207 | fi | |
8208 | done | |
8209 | IFS="$ac_save_ifs" | |
8210 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
8211 | fi | |
8212 | fi | |
8213 | STRIP="$ac_cv_prog_STRIP" | |
8214 | if test -n "$STRIP"; then | |
8215 | echo "$ac_t""$STRIP" 1>&6 | |
8216 | else | |
8217 | echo "$ac_t""no" 1>&6 | |
8218 | fi | |
8219 | ||
8220 | ||
8221 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
8222 | echo "configure:8223: checking make for VPATH support" >&5 | |
8223 | cat - << EOF > confMake | |
8224 | check : file | |
8225 | cp \$? \$@ | |
8226 | cp \$? final_file | |
8227 | EOF | |
8228 | ||
8229 | if test ! -d sub ; then | |
8230 | mkdir sub | |
8231 | fi | |
8232 | echo dummy > sub/file | |
8233 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
8234 | RESULT=$? | |
8235 | rm -f sub/file check final_file confMake | |
8236 | rmdir sub | |
8237 | if test "$RESULT" = 0; then | |
8238 | echo "$ac_t""yes" 1>&6 | |
8239 | else | |
8240 | echo "$ac_t""no" 1>&6 | |
8241 | { echo "configure: error: | |
8242 | You need a make-utility that is able to use the variable | |
8243 | VPATH correctly. | |
8244 | If your version of make does not support VPATH correctly, | |
8245 | please install GNU-make (possibly as gmake), and start | |
8246 | configure with the following command: | |
8247 | export MAKE=gmake; ./configure for sh-type shells | |
8248 | setenv MAKE gmake; ./configure for csh-type shells | |
8249 | Also please do remember to use gmake in this case every time | |
8250 | you are trying to compile. | |
8251 | " 1>&2; exit 1; } | |
8252 | fi | |
8253 | ||
8254 | for ac_prog in 'bison -y' byacc | |
8255 | do | |
8256 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8257 | set dummy $ac_prog; ac_word=$2 | |
8258 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8259 | echo "configure:8260: checking for $ac_word" >&5 | |
8260 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | |
8261 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8262 | else | |
8263 | if test -n "$YACC"; then | |
8264 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8265 | else | |
8266 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8267 | ac_dummy="$PATH" | |
8268 | for ac_dir in $ac_dummy; do | |
8269 | test -z "$ac_dir" && ac_dir=. | |
8270 | if test -f $ac_dir/$ac_word; then | |
8271 | ac_cv_prog_YACC="$ac_prog" | |
8272 | break | |
8273 | fi | |
8274 | done | |
8275 | IFS="$ac_save_ifs" | |
8276 | fi | |
8277 | fi | |
8278 | YACC="$ac_cv_prog_YACC" | |
8279 | if test -n "$YACC"; then | |
8280 | echo "$ac_t""$YACC" 1>&6 | |
8281 | else | |
8282 | echo "$ac_t""no" 1>&6 | |
8283 | fi | |
8284 | ||
8285 | test -n "$YACC" && break | |
8286 | done | |
8287 | test -n "$YACC" || YACC="yacc" | |
8288 | ||
8289 | ||
8290 | # Extract the first word of "flex", so it can be a program name with args. | |
8291 | set dummy flex; ac_word=$2 | |
8292 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8293 | echo "configure:8294: checking for $ac_word" >&5 | |
8294 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then | |
8295 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8296 | else | |
8297 | if test -n "$LEX"; then | |
8298 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8299 | else | |
8300 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8301 | ac_dummy="$PATH" | |
8302 | for ac_dir in $ac_dummy; do | |
8303 | test -z "$ac_dir" && ac_dir=. | |
8304 | if test -f $ac_dir/$ac_word; then | |
8305 | ac_cv_prog_LEX="flex" | |
8306 | break | |
8307 | fi | |
8308 | done | |
8309 | IFS="$ac_save_ifs" | |
8310 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
8311 | fi | |
8312 | fi | |
8313 | LEX="$ac_cv_prog_LEX" | |
8314 | if test -n "$LEX"; then | |
8315 | echo "$ac_t""$LEX" 1>&6 | |
8316 | else | |
8317 | echo "$ac_t""no" 1>&6 | |
8318 | fi | |
8319 | ||
8320 | if test -z "$LEXLIB" | |
8321 | then | |
8322 | case "$LEX" in | |
8323 | flex*) ac_lib=fl ;; | |
8324 | *) ac_lib=l ;; | |
8325 | esac | |
8326 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
8327 | echo "configure:8328: checking for yywrap in -l$ac_lib" >&5 | |
8328 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` | |
8329 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8331 | else | |
8332 | ac_save_LIBS="$LIBS" | |
8333 | LIBS="-l$ac_lib $LIBS" | |
8334 | cat > conftest.$ac_ext <<EOF | |
8335 | #line 8336 "configure" | |
8336 | #include "confdefs.h" | |
8337 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8338 | /* We use char because int might match the return type of a gcc2 | |
8339 | builtin and then its argument prototype would still apply. */ | |
8340 | char yywrap(); | |
8341 | ||
8342 | int main() { | |
8343 | yywrap() | |
8344 | ; return 0; } | |
8345 | EOF | |
8346 | if { (eval echo configure:8347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8347 | rm -rf conftest* | |
8348 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8349 | else | |
8350 | echo "configure: failed program was:" >&5 | |
8351 | cat conftest.$ac_ext >&5 | |
8352 | rm -rf conftest* | |
8353 | eval "ac_cv_lib_$ac_lib_var=no" | |
8354 | fi | |
8355 | rm -f conftest* | |
8356 | LIBS="$ac_save_LIBS" | |
8357 | ||
8358 | fi | |
8359 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8360 | echo "$ac_t""yes" 1>&6 | |
8361 | LEXLIB="-l$ac_lib" | |
8362 | else | |
8363 | echo "$ac_t""no" 1>&6 | |
8364 | fi | |
8365 | ||
8366 | fi | |
8367 | ||
8368 | ||
8369 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
8370 | echo "configure:8371: checking whether ln -s works" >&5 | |
8371 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | |
8372 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8373 | else | |
8374 | rm -f conftestdata | |
8375 | if ln -s X conftestdata 2>/dev/null | |
8376 | then | |
8377 | rm -f conftestdata | |
8378 | ac_cv_prog_LN_S="ln -s" | |
8379 | else | |
8380 | ac_cv_prog_LN_S=ln | |
8381 | fi | |
8382 | fi | |
8383 | LN_S="$ac_cv_prog_LN_S" | |
8384 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8385 | echo "$ac_t""yes" 1>&6 | |
8386 | else | |
8387 | echo "$ac_t""no" 1>&6 | |
8388 | fi | |
8389 | ||
8390 | ||
8391 | ||
8392 | SEARCH_INCLUDE="\ | |
8393 | /usr/local/include \ | |
8394 | \ | |
8395 | /usr/Motif-1.2/include \ | |
8396 | /usr/Motif-2.1/include \ | |
8397 | \ | |
8398 | /usr/include/Motif1.2 \ | |
8399 | /opt/xpm/include/X11 \ | |
8400 | /opt/GBxpm/include/ \ | |
8401 | /opt/GBxpm/X11/include/ \ | |
8402 | \ | |
8403 | /usr/Motif1.2/include \ | |
8404 | /usr/dt/include \ | |
8405 | /usr/openwin/include \ | |
8406 | \ | |
8407 | /usr/include/Xm \ | |
8408 | \ | |
8409 | /usr/X11R6/include \ | |
8410 | /usr/X11R6.4/include \ | |
8411 | /usr/X11R5/include \ | |
8412 | /usr/X11R4/include \ | |
8413 | \ | |
8414 | /usr/include/X11R6 \ | |
8415 | /usr/include/X11R5 \ | |
8416 | /usr/include/X11R4 \ | |
8417 | \ | |
8418 | /usr/local/X11R6/include \ | |
8419 | /usr/local/X11R5/include \ | |
8420 | /usr/local/X11R4/include \ | |
8421 | \ | |
8422 | /usr/local/include/X11R6 \ | |
8423 | /usr/local/include/X11R5 \ | |
8424 | /usr/local/include/X11R4 \ | |
8425 | \ | |
8426 | /usr/X11/include \ | |
8427 | /usr/include/X11 \ | |
8428 | /usr/local/X11/include \ | |
8429 | /usr/local/include/X11 \ | |
8430 | \ | |
8431 | /usr/X386/include \ | |
8432 | /usr/x386/include \ | |
8433 | /usr/XFree86/include/X11 \ | |
8434 | \ | |
8435 | X:/XFree86/include \ | |
8436 | X:/XFree86/include/X11 \ | |
8437 | \ | |
8438 | /usr/include/gtk \ | |
8439 | /usr/local/include/gtk \ | |
8440 | /usr/include/glib \ | |
8441 | /usr/local/include/glib \ | |
8442 | \ | |
8443 | /usr/include/qt \ | |
8444 | /usr/local/include/qt \ | |
8445 | \ | |
8446 | /usr/include/windows \ | |
8447 | /usr/include/wine \ | |
8448 | /usr/local/include/wine \ | |
8449 | \ | |
8450 | /usr/unsupported/include \ | |
8451 | /usr/athena/include \ | |
8452 | /usr/local/x11r5/include \ | |
8453 | /usr/lpp/Xamples/include \ | |
8454 | \ | |
8455 | /usr/openwin/share/include \ | |
8456 | \ | |
8457 | /usr/include" | |
8458 | ||
8459 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8460 | ||
8461 | ||
8462 | cat > confcache <<\EOF | |
8463 | # This file is a shell script that caches the results of configure | |
8464 | # tests run on this system so they can be shared between configure | |
8465 | # scripts and configure runs. It is not useful on other systems. | |
8466 | # If it contains results you don't want to keep, you may remove or edit it. | |
8467 | # | |
8468 | # By default, configure uses ./config.cache as the cache file, | |
8469 | # creating it if it does not exist already. You can give configure | |
8470 | # the --cache-file=FILE option to use a different cache file; that is | |
8471 | # what configure does when it calls configure scripts in | |
8472 | # subdirectories, so they share the cache. | |
8473 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8474 | # config.status only pays attention to the cache file if you give it the | |
8475 | # --recheck option to rerun configure. | |
8476 | # | |
8477 | EOF | |
8478 | # The following way of writing the cache mishandles newlines in values, | |
8479 | # but we know of no workaround that is simple, portable, and efficient. | |
8480 | # So, don't put newlines in cache variables' values. | |
8481 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8482 | # and sets the high bit in the cache file unless we assign to the vars. | |
8483 | (set) 2>&1 | | |
8484 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8485 | *ac_space=\ *) | |
8486 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8487 | # turns \\\\ into \\, and sed turns \\ into \). | |
8488 | sed -n \ | |
8489 | -e "s/'/'\\\\''/g" \ | |
8490 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8491 | ;; | |
8492 | *) | |
8493 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8494 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8495 | ;; | |
8496 | esac >> confcache | |
8497 | if cmp -s $cache_file confcache; then | |
8498 | : | |
8499 | else | |
8500 | if test -w $cache_file; then | |
8501 | echo "updating cache $cache_file" | |
8502 | cat confcache > $cache_file | |
8503 | else | |
8504 | echo "not updating unwritable cache $cache_file" | |
8505 | fi | |
8506 | fi | |
8507 | rm -f confcache | |
8508 | ||
8509 | ||
8510 | ||
8511 | AFMINSTALL= | |
8512 | ||
8513 | if test "$wxUSE_GUI" = "yes"; then | |
8514 | USE_GUI=1 | |
8515 | ||
8516 | TOOLKIT= | |
8517 | TOOLKIT_INCLUDE= | |
8518 | ||
8519 | GUI_TK_LIBRARY= | |
8520 | GUI_TK_LINK= | |
8521 | ||
8522 | WXGTK12= | |
8523 | WXGTK127= | |
8524 | WXGTK20= | |
8525 | ||
8526 | WXWINE= | |
8527 | ||
8528 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then | |
8529 | if test "$cross_compiling" = "yes" ; then | |
8530 | echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2 | |
8531 | else | |
8532 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
8533 | echo "configure:8534: checking for Windows headers" >&5 | |
8534 | ||
8535 | ac_find_includes= | |
8536 | for ac_dir in $SEARCH_INCLUDE; | |
8537 | do | |
8538 | if test -f "$ac_dir/windows.h"; then | |
8539 | ac_find_includes=$ac_dir | |
8540 | break | |
8541 | fi | |
8542 | done | |
8543 | ||
8544 | if test "$ac_find_includes" != "" ; then | |
8545 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8546 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
8547 | else | |
8548 | echo "$ac_t""no" 1>&6 | |
8549 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
8550 | fi | |
8551 | fi | |
8552 | ||
8553 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
8554 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
8555 | ||
8556 | if test "$wxUSE_ODBC" = "yes" ; then | |
8557 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
8558 | fi | |
8559 | ||
8560 | if test "$wxUSE_MINGW" = 1; then | |
8561 | LDFLAGS="$LDFLAGS -mwindows" | |
8562 | fi | |
8563 | ||
8564 | TOOLKIT=MSW | |
8565 | GUIDIST=MSW_DIST | |
8566 | ||
8567 | RCINCSWITCH="--include-dir" | |
8568 | RCDEFSWITCH="--define" | |
8569 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
8570 | RCINPUTSWITCH="-i" | |
8571 | RCOUTPUTSWITCH="-o" | |
8572 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
8573 | ||
8574 | RESPROGRAM="\$(RES_PROGRAM)" | |
8575 | fi | |
8576 | ||
8577 | if test "$wxUSE_GTK" = 1; then | |
8578 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
8579 | echo "configure:8580: checking for GTK+ version" >&5 | |
8580 | ||
8581 | gtk_version_cached=1 | |
8582 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
8583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8584 | else | |
8585 | ||
8586 | gtk_version_cached=0 | |
8587 | echo "$ac_t""""" 1>&6 | |
8588 | ||
8589 | wx_cv_lib_gtk= | |
8590 | if test "x$wxUSE_GTK2" = "xyes"; then | |
8591 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
8592 | if test "${with_gtk_prefix+set}" = set; then | |
8593 | withval="$with_gtk_prefix" | |
8594 | gtk_config_prefix="$withval" | |
8595 | else | |
8596 | gtk_config_prefix="" | |
8597 | fi | |
8598 | ||
8599 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
8600 | if test "${with_gtk_exec_prefix+set}" = set; then | |
8601 | withval="$with_gtk_exec_prefix" | |
8602 | gtk_config_exec_prefix="$withval" | |
8603 | else | |
8604 | gtk_config_exec_prefix="" | |
8605 | fi | |
8606 | ||
8607 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
8608 | if test "${enable_gtktest+set}" = set; then | |
8609 | enableval="$enable_gtktest" | |
8610 | : | |
8611 | else | |
8612 | enable_gtktest=yes | |
8613 | fi | |
8614 | ||
8615 | ||
8616 | for module in . | |
8617 | do | |
8618 | case "$module" in | |
8619 | gthread) | |
8620 | gtk_config_args="$gtk_config_args gthread" | |
8621 | ;; | |
8622 | esac | |
8623 | done | |
8624 | ||
8625 | if test x$gtk_config_exec_prefix != x ; then | |
8626 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8627 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8628 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
8629 | fi | |
8630 | fi | |
8631 | if test x$gtk_config_prefix != x ; then | |
8632 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8633 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8634 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
8635 | fi | |
8636 | fi | |
8637 | ||
8638 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
8639 | set dummy gtk-config-2.0; ac_word=$2 | |
8640 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8641 | echo "configure:8642: checking for $ac_word" >&5 | |
8642 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then | |
8643 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8644 | else | |
8645 | case "$GTK_CONFIG_2_0" in | |
8646 | /*) | |
8647 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. | |
8648 | ;; | |
8649 | ?:/*) | |
8650 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
8651 | ;; | |
8652 | *) | |
8653 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8654 | ac_dummy="$PATH" | |
8655 | for ac_dir in $ac_dummy; do | |
8656 | test -z "$ac_dir" && ac_dir=. | |
8657 | if test -f $ac_dir/$ac_word; then | |
8658 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
8659 | break | |
8660 | fi | |
8661 | done | |
8662 | IFS="$ac_save_ifs" | |
8663 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" | |
8664 | ;; | |
8665 | esac | |
8666 | fi | |
8667 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" | |
8668 | if test -n "$GTK_CONFIG_2_0"; then | |
8669 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 | |
8670 | else | |
8671 | echo "$ac_t""no" 1>&6 | |
8672 | fi | |
8673 | ||
8674 | min_gtk_version=1.3.1 | |
8675 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
8676 | echo "configure:8677: checking for GTK - version >= $min_gtk_version" >&5 | |
8677 | no_gtk="" | |
8678 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
8679 | no_gtk=yes | |
8680 | else | |
8681 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
8682 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
8683 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8684 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
8685 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8686 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
8687 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8688 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
8689 | if test "x$enable_gtktest" = "xyes" ; then | |
8690 | ac_save_CFLAGS="$CFLAGS" | |
8691 | ac_save_LIBS="$LIBS" | |
8692 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8693 | LIBS="$GTK_LIBS $LIBS" | |
8694 | rm -f conf.gtktest | |
8695 | if test "$cross_compiling" = yes; then | |
8696 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8697 | else | |
8698 | cat > conftest.$ac_ext <<EOF | |
8699 | #line 8700 "configure" | |
8700 | #include "confdefs.h" | |
8701 | ||
8702 | #include <gtk/gtk.h> | |
8703 | #include <stdio.h> | |
8704 | #include <stdlib.h> | |
8705 | ||
8706 | int | |
8707 | main () | |
8708 | { | |
8709 | int major, minor, micro; | |
8710 | char *tmp_version; | |
8711 | ||
8712 | system ("touch conf.gtktest"); | |
8713 | ||
8714 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
8715 | tmp_version = g_strdup("$min_gtk_version"); | |
8716 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
8717 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8718 | exit(1); | |
8719 | } | |
8720 | ||
8721 | if ((gtk_major_version != $gtk_config_major_version) || | |
8722 | (gtk_minor_version != $gtk_config_minor_version) || | |
8723 | (gtk_micro_version != $gtk_config_micro_version)) | |
8724 | { | |
8725 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
8726 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
8727 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8728 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
8729 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
8730 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
8731 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
8732 | printf("*** required on your system.\n"); | |
8733 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
8734 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
8735 | printf("*** before re-running configure\n"); | |
8736 | } | |
8737 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
8738 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8739 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
8740 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
8741 | { | |
8742 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8743 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
8744 | printf("*** library (version %d.%d.%d)\n", | |
8745 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8746 | } | |
8747 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
8748 | else | |
8749 | { | |
8750 | if ((gtk_major_version > major) || | |
8751 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8752 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
8753 | { | |
8754 | return 0; | |
8755 | } | |
8756 | else | |
8757 | { | |
8758 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
8759 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8760 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8761 | major, minor, micro); | |
8762 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
8763 | printf("***\n"); | |
8764 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
8765 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
8766 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
8767 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
8768 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
8769 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
8770 | printf("*** so that the correct libraries are found at run-time))\n"); | |
8771 | } | |
8772 | } | |
8773 | return 1; | |
8774 | } | |
8775 | ||
8776 | EOF | |
8777 | if { (eval echo configure:8778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
8778 | then | |
8779 | : | |
8780 | else | |
8781 | echo "configure: failed program was:" >&5 | |
8782 | cat conftest.$ac_ext >&5 | |
8783 | rm -fr conftest* | |
8784 | no_gtk=yes | |
8785 | fi | |
8786 | rm -fr conftest* | |
8787 | fi | |
8788 | ||
8789 | CFLAGS="$ac_save_CFLAGS" | |
8790 | LIBS="$ac_save_LIBS" | |
8791 | fi | |
8792 | fi | |
8793 | if test "x$no_gtk" = x ; then | |
8794 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 | |
8795 | wx_cv_lib_gtk=2.0 | |
8796 | else | |
8797 | echo "$ac_t""no" 1>&6 | |
8798 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
8799 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
8800 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
8801 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
8802 | echo "*** full path to gtk-config-2.0." | |
8803 | else | |
8804 | if test -f conf.gtktest ; then | |
8805 | : | |
8806 | else | |
8807 | echo "*** Could not run GTK test program, checking why..." | |
8808 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8809 | LIBS="$LIBS $GTK_LIBS" | |
8810 | cat > conftest.$ac_ext <<EOF | |
8811 | #line 8812 "configure" | |
8812 | #include "confdefs.h" | |
8813 | ||
8814 | #include <gtk/gtk.h> | |
8815 | #include <stdio.h> | |
8816 | ||
8817 | int main() { | |
8818 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
8819 | ; return 0; } | |
8820 | EOF | |
8821 | if { (eval echo configure:8822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8822 | rm -rf conftest* | |
8823 | echo "*** The test program compiled, but did not run. This usually means" | |
8824 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
8825 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
8826 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
8827 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
8828 | echo "*** is required on your system" | |
8829 | echo "***" | |
8830 | echo "*** If you have an old version installed, it is best to remove it, although" | |
8831 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
8832 | echo "***" | |
8833 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
8834 | echo "*** came with the system with the command" | |
8835 | echo "***" | |
8836 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
8837 | else | |
8838 | echo "configure: failed program was:" >&5 | |
8839 | cat conftest.$ac_ext >&5 | |
8840 | rm -rf conftest* | |
8841 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
8842 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
8843 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
8844 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" | |
8845 | fi | |
8846 | rm -f conftest* | |
8847 | CFLAGS="$ac_save_CFLAGS" | |
8848 | LIBS="$ac_save_LIBS" | |
8849 | fi | |
8850 | fi | |
8851 | GTK_CFLAGS="" | |
8852 | GTK_LIBS="" | |
8853 | gthread | |
8854 | fi | |
8855 | ||
8856 | ||
8857 | rm -f conf.gtktest | |
8858 | ||
8859 | fi | |
8860 | ||
8861 | if test -z "$wx_cv_lib_gtk"; then | |
8862 | ||
8863 | if test x$gtk_config_exec_prefix != x ; then | |
8864 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8865 | if test x${GTK_CONFIG+set} != xset ; then | |
8866 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
8867 | fi | |
8868 | fi | |
8869 | if test x$gtk_config_prefix != x ; then | |
8870 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8871 | if test x${GTK_CONFIG+set} != xset ; then | |
8872 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
8873 | fi | |
8874 | fi | |
8875 | ||
8876 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
8877 | set dummy gtk-config; ac_word=$2 | |
8878 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8879 | echo "configure:8880: checking for $ac_word" >&5 | |
8880 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
8881 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8882 | else | |
8883 | case "$GTK_CONFIG" in | |
8884 | /*) | |
8885 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
8886 | ;; | |
8887 | ?:/*) | |
8888 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
8889 | ;; | |
8890 | *) | |
8891 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8892 | ac_dummy="$PATH" | |
8893 | for ac_dir in $ac_dummy; do | |
8894 | test -z "$ac_dir" && ac_dir=. | |
8895 | if test -f $ac_dir/$ac_word; then | |
8896 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
8897 | break | |
8898 | fi | |
8899 | done | |
8900 | IFS="$ac_save_ifs" | |
8901 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
8902 | ;; | |
8903 | esac | |
8904 | fi | |
8905 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
8906 | if test -n "$GTK_CONFIG"; then | |
8907 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
8908 | else | |
8909 | echo "$ac_t""no" 1>&6 | |
8910 | fi | |
8911 | ||
8912 | min_gtk_version=1.2.7 | |
8913 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
8914 | echo "configure:8915: checking for GTK - version >= $min_gtk_version" >&5 | |
8915 | no_gtk="" | |
8916 | if test "$GTK_CONFIG" != "no" ; then | |
8917 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
8918 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
8919 | ac_save_CFLAGS="$CFLAGS" | |
8920 | ac_save_LIBS="$LIBS" | |
8921 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8922 | LIBS="$LIBS $GTK_LIBS" | |
8923 | if test "$cross_compiling" = yes; then | |
8924 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8925 | else | |
8926 | cat > conftest.$ac_ext <<EOF | |
8927 | #line 8928 "configure" | |
8928 | #include "confdefs.h" | |
8929 | ||
8930 | #include <gtk/gtk.h> | |
8931 | #include <gtk/gtkfeatures.h> | |
8932 | #include <stdio.h> | |
8933 | #include <stdlib.h> | |
8934 | ||
8935 | int | |
8936 | main () | |
8937 | { | |
8938 | int major, minor, micro; | |
8939 | ||
8940 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
8941 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8942 | exit(1); | |
8943 | } | |
8944 | ||
8945 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
8946 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
8947 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
8948 | printf("Headers vs. library version mismatch!\n"); | |
8949 | exit(1); | |
8950 | } | |
8951 | ||
8952 | if (gtk_minor_version == 1) return FALSE; | |
8953 | ||
8954 | return !((gtk_major_version > major) || | |
8955 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8956 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
8957 | } | |
8958 | ||
8959 | EOF | |
8960 | if { (eval echo configure:8961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
8961 | then | |
8962 | : | |
8963 | else | |
8964 | echo "configure: failed program was:" >&5 | |
8965 | cat conftest.$ac_ext >&5 | |
8966 | rm -fr conftest* | |
8967 | no_gtk=yes | |
8968 | fi | |
8969 | rm -fr conftest* | |
8970 | fi | |
8971 | ||
8972 | CFLAGS="$ac_save_CFLAGS" | |
8973 | LIBS="$ac_save_LIBS" | |
8974 | else | |
8975 | no_gtk=yes | |
8976 | fi | |
8977 | if test "x$no_gtk" = x ; then | |
8978 | echo "$ac_t""yes" 1>&6 | |
8979 | wx_cv_lib_gtk=1.2.7 | |
8980 | else | |
8981 | echo "$ac_t""no" 1>&6 | |
8982 | GTK_CFLAGS="" | |
8983 | GTK_LIBS="" | |
8984 | : | |
8985 | fi | |
8986 | ||
8987 | ||
8988 | ||
8989 | fi | |
8990 | ||
8991 | if test -z "$wx_cv_lib_gtk"; then | |
8992 | ||
8993 | if test x$gtk_config_exec_prefix != x ; then | |
8994 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8995 | if test x${GTK_CONFIG+set} != xset ; then | |
8996 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
8997 | fi | |
8998 | fi | |
8999 | if test x$gtk_config_prefix != x ; then | |
9000 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9001 | if test x${GTK_CONFIG+set} != xset ; then | |
9002 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9003 | fi | |
9004 | fi | |
9005 | ||
9006 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9007 | set dummy gtk-config; ac_word=$2 | |
9008 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9009 | echo "configure:9010: checking for $ac_word" >&5 | |
9010 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
9011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9012 | else | |
9013 | case "$GTK_CONFIG" in | |
9014 | /*) | |
9015 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
9016 | ;; | |
9017 | ?:/*) | |
9018 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9019 | ;; | |
9020 | *) | |
9021 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9022 | ac_dummy="$PATH" | |
9023 | for ac_dir in $ac_dummy; do | |
9024 | test -z "$ac_dir" && ac_dir=. | |
9025 | if test -f $ac_dir/$ac_word; then | |
9026 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9027 | break | |
9028 | fi | |
9029 | done | |
9030 | IFS="$ac_save_ifs" | |
9031 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
9032 | ;; | |
9033 | esac | |
9034 | fi | |
9035 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
9036 | if test -n "$GTK_CONFIG"; then | |
9037 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
9038 | else | |
9039 | echo "$ac_t""no" 1>&6 | |
9040 | fi | |
9041 | ||
9042 | min_gtk_version=1.2.3 | |
9043 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
9044 | echo "configure:9045: checking for GTK - version >= $min_gtk_version" >&5 | |
9045 | no_gtk="" | |
9046 | if test "$GTK_CONFIG" != "no" ; then | |
9047 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
9048 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
9049 | ac_save_CFLAGS="$CFLAGS" | |
9050 | ac_save_LIBS="$LIBS" | |
9051 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9052 | LIBS="$LIBS $GTK_LIBS" | |
9053 | if test "$cross_compiling" = yes; then | |
9054 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9055 | else | |
9056 | cat > conftest.$ac_ext <<EOF | |
9057 | #line 9058 "configure" | |
9058 | #include "confdefs.h" | |
9059 | ||
9060 | #include <gtk/gtk.h> | |
9061 | #include <gtk/gtkfeatures.h> | |
9062 | #include <stdio.h> | |
9063 | #include <stdlib.h> | |
9064 | ||
9065 | int | |
9066 | main () | |
9067 | { | |
9068 | int major, minor, micro; | |
9069 | ||
9070 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9071 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9072 | exit(1); | |
9073 | } | |
9074 | ||
9075 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
9076 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9077 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9078 | printf("Headers vs. library version mismatch!\n"); | |
9079 | exit(1); | |
9080 | } | |
9081 | ||
9082 | if (gtk_minor_version == 1) return FALSE; | |
9083 | ||
9084 | return !((gtk_major_version > major) || | |
9085 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9086 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9087 | } | |
9088 | ||
9089 | EOF | |
9090 | if { (eval echo configure:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9091 | then | |
9092 | : | |
9093 | else | |
9094 | echo "configure: failed program was:" >&5 | |
9095 | cat conftest.$ac_ext >&5 | |
9096 | rm -fr conftest* | |
9097 | no_gtk=yes | |
9098 | fi | |
9099 | rm -fr conftest* | |
9100 | fi | |
9101 | ||
9102 | CFLAGS="$ac_save_CFLAGS" | |
9103 | LIBS="$ac_save_LIBS" | |
9104 | else | |
9105 | no_gtk=yes | |
9106 | fi | |
9107 | if test "x$no_gtk" = x ; then | |
9108 | echo "$ac_t""yes" 1>&6 | |
9109 | wx_cv_lib_gtk=1.2.3 | |
9110 | else | |
9111 | echo "$ac_t""no" 1>&6 | |
9112 | GTK_CFLAGS="" | |
9113 | GTK_LIBS="" | |
9114 | : | |
9115 | fi | |
9116 | ||
9117 | ||
9118 | ||
9119 | fi | |
9120 | ||
9121 | if test -z "$wx_cv_lib_gtk"; then | |
9122 | wx_cv_lib_gtk=none | |
9123 | else | |
9124 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
9125 | wx_cv_libs_gtk=$GTK_LIBS | |
9126 | fi | |
9127 | ||
9128 | ||
9129 | fi | |
9130 | ||
9131 | ||
9132 | if test "$gtk_version_cached" = 1; then | |
9133 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
9134 | fi | |
9135 | ||
9136 | case "$wx_cv_lib_gtk" in | |
9137 | 2.0) WXGTK20=1 | |
9138 | ;; | |
9139 | 1.2.7) WXGTK127=1 | |
9140 | ;; | |
9141 | 1.2.3) WXGTK12=1 | |
9142 | ;; | |
9143 | *) { echo "configure: error: | |
9144 | Please check that gtk-config is in path, the directory | |
9145 | where GTK+ libraries are installed (returned by | |
9146 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9147 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9148 | " 1>&2; exit 1; } | |
9149 | ;; | |
9150 | esac | |
9151 | ||
9152 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
9153 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
9154 | ||
9155 | AFMINSTALL=afminstall | |
9156 | TOOLKIT=GTK | |
9157 | GUIDIST=GTK_DIST | |
9158 | ||
9159 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 | |
9160 | echo "configure:9161: checking for gdk_im_open in -lgdk" >&5 | |
9161 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` | |
9162 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9163 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9164 | else | |
9165 | ac_save_LIBS="$LIBS" | |
9166 | LIBS="-lgdk $LIBS" | |
9167 | cat > conftest.$ac_ext <<EOF | |
9168 | #line 9169 "configure" | |
9169 | #include "confdefs.h" | |
9170 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9171 | /* We use char because int might match the return type of a gcc2 | |
9172 | builtin and then its argument prototype would still apply. */ | |
9173 | char gdk_im_open(); | |
9174 | ||
9175 | int main() { | |
9176 | gdk_im_open() | |
9177 | ; return 0; } | |
9178 | EOF | |
9179 | if { (eval echo configure:9180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9180 | rm -rf conftest* | |
9181 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9182 | else | |
9183 | echo "configure: failed program was:" >&5 | |
9184 | cat conftest.$ac_ext >&5 | |
9185 | rm -rf conftest* | |
9186 | eval "ac_cv_lib_$ac_lib_var=no" | |
9187 | fi | |
9188 | rm -f conftest* | |
9189 | LIBS="$ac_save_LIBS" | |
9190 | ||
9191 | fi | |
9192 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9193 | echo "$ac_t""yes" 1>&6 | |
9194 | cat >> confdefs.h <<\EOF | |
9195 | #define HAVE_XIM 1 | |
9196 | EOF | |
9197 | ||
9198 | else | |
9199 | echo "$ac_t""no" 1>&6 | |
9200 | fi | |
9201 | ||
9202 | fi | |
9203 | ||
9204 | if test "$wxUSE_MGL" = 1; then | |
9205 | ||
9206 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
9207 | echo "configure:9208: checking for SciTech MGL library" >&5 | |
9208 | if test "x$MGL_ROOT" = x ; then | |
9209 | echo "$ac_t""not found" 1>&6 | |
9210 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
9211 | else | |
9212 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
9213 | fi | |
9214 | ||
9215 | MGL_OS=linux/gcc/glibc | |
9216 | MGL_LIB_TYPE="" | |
9217 | ||
9218 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
9219 | if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then | |
9220 | MGL_LIB_TYPE=debug | |
9221 | fi | |
9222 | fi | |
9223 | if test "x$MGL_LIB_TYPE" = x ; then | |
9224 | if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then | |
9225 | MGL_LIB_TYPE=release | |
9226 | else | |
9227 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
9228 | fi | |
9229 | fi | |
9230 | ||
9231 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
9232 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm" | |
9233 | ||
9234 | AFMINSTALL=afminstall | |
9235 | TOOLKIT=MGL | |
9236 | GUIDIST=MGL_DIST | |
9237 | fi | |
9238 | ||
9239 | if test "$wxUSE_WINE" = 1; then | |
9240 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
9241 | echo "configure:9242: checking for WINE includes" >&5 | |
9242 | ||
9243 | ac_find_includes= | |
9244 | for ac_dir in $SEARCH_INCLUDE; | |
9245 | do | |
9246 | if test -f "$ac_dir/windows.h"; then | |
9247 | ac_find_includes=$ac_dir | |
9248 | break | |
9249 | fi | |
9250 | done | |
9251 | ||
9252 | if test "$ac_find_includes" != "" ; then | |
9253 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
9254 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
9255 | else | |
9256 | echo "$ac_t""no" 1>&6 | |
9257 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9258 | fi | |
9259 | ||
9260 | XPM_LINK="" | |
9261 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
9262 | echo "configure:9263: checking for Xpm library" >&5 | |
9263 | ||
9264 | ac_find_libraries= | |
9265 | for ac_dir in $SEARCH_LIB; | |
9266 | do | |
9267 | for ac_extension in a so sl; do | |
9268 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
9269 | ac_find_libraries=$ac_dir | |
9270 | break 2 | |
9271 | fi | |
9272 | done | |
9273 | done | |
9274 | ||
9275 | if test "$ac_find_libraries" != "" ; then | |
9276 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
9277 | XPM_LINK="-lXpm" | |
9278 | cat >> confdefs.h <<\EOF | |
9279 | #define wxHAVE_LIB_XPM 1 | |
9280 | EOF | |
9281 | ||
9282 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
9283 | else | |
9284 | echo "$ac_t""no" 1>&6 | |
9285 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9286 | fi | |
9287 | ||
9288 | MESA_LINK="" | |
9289 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
9290 | echo "configure:9291: checking for Mesa library" >&5 | |
9291 | ||
9292 | ac_find_libraries= | |
9293 | for ac_dir in $SEARCH_LIB; | |
9294 | do | |
9295 | for ac_extension in a so sl; do | |
9296 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
9297 | ac_find_libraries=$ac_dir | |
9298 | break 2 | |
9299 | fi | |
9300 | done | |
9301 | done | |
9302 | ||
9303 | if test "$ac_find_libraries" != "" ; then | |
9304 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
9305 | MESA_LINK="-lMesaGL" | |
9306 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
9307 | else | |
9308 | { echo "configure: error: no" 1>&2; exit 1; } | |
9309 | fi | |
9310 | ||
9311 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
9312 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
9313 | WXWINE=1 | |
9314 | TOOLKIT=MSW | |
9315 | GUIDIST=MSW_DIST | |
9316 | fi | |
9317 | ||
9318 | ||
9319 | # If we find X, set shell vars x_includes and x_libraries to the | |
9320 | # paths, otherwise set no_x=yes. | |
9321 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
9322 | # --without-x overrides everything else, but does not touch the cache. | |
9323 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
9324 | echo "configure:9325: checking for X" >&5 | |
9325 | ||
9326 | # Check whether --with-x or --without-x was given. | |
9327 | if test "${with_x+set}" = set; then | |
9328 | withval="$with_x" | |
9329 | : | |
9330 | fi | |
9331 | ||
9332 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
9333 | if test "x$with_x" = xno; then | |
9334 | # The user explicitly disabled X. | |
9335 | have_x=disabled | |
9336 | else | |
9337 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
9338 | # Both variables are already set. | |
9339 | have_x=yes | |
9340 | else | |
9341 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
9342 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9343 | else | |
9344 | # One or both of the vars are not set, and there is no cached value. | |
9345 | ac_x_includes=NO ac_x_libraries=NO | |
9346 | rm -fr conftestdir | |
9347 | if mkdir conftestdir; then | |
9348 | cd conftestdir | |
9349 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
9350 | cat > Imakefile <<'EOF' | |
9351 | acfindx: | |
9352 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
9353 | EOF | |
9354 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
9355 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9356 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
9357 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
9358 | for ac_extension in a so sl; do | |
9359 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
9360 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
9361 | ac_im_usrlibdir=$ac_im_libdir; break | |
9362 | fi | |
9363 | done | |
9364 | # Screen out bogus values from the imake configuration. They are | |
9365 | # bogus both because they are the default anyway, and because | |
9366 | # using them would break gcc on systems where it needs fixed includes. | |
9367 | case "$ac_im_incroot" in | |
9368 | /usr/include) ;; | |
9369 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
9370 | esac | |
9371 | case "$ac_im_usrlibdir" in | |
9372 | /usr/lib | /lib) ;; | |
9373 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
9374 | esac | |
9375 | fi | |
9376 | cd .. | |
9377 | rm -fr conftestdir | |
9378 | fi | |
9379 | ||
9380 | if test "$ac_x_includes" = NO; then | |
9381 | # Guess where to find include files, by looking for this one X11 .h file. | |
9382 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
9383 | ||
9384 | # First, try using that file with no special directory specified. | |
9385 | cat > conftest.$ac_ext <<EOF | |
9386 | #line 9387 "configure" | |
9387 | #include "confdefs.h" | |
9388 | #include <$x_direct_test_include> | |
9389 | EOF | |
9390 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9391 | { (eval echo configure:9392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9392 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9393 | if test -z "$ac_err"; then | |
9394 | rm -rf conftest* | |
9395 | # We can compile using X headers with no special include directory. | |
9396 | ac_x_includes= | |
9397 | else | |
9398 | echo "$ac_err" >&5 | |
9399 | echo "configure: failed program was:" >&5 | |
9400 | cat conftest.$ac_ext >&5 | |
9401 | rm -rf conftest* | |
9402 | # Look for the header file in a standard set of common directories. | |
9403 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9404 | for ac_dir in \ | |
9405 | /usr/X11/include \ | |
9406 | /usr/X11R6/include \ | |
9407 | /usr/X11R5/include \ | |
9408 | /usr/X11R4/include \ | |
9409 | \ | |
9410 | /usr/include/X11 \ | |
9411 | /usr/include/X11R6 \ | |
9412 | /usr/include/X11R5 \ | |
9413 | /usr/include/X11R4 \ | |
9414 | \ | |
9415 | /usr/local/X11/include \ | |
9416 | /usr/local/X11R6/include \ | |
9417 | /usr/local/X11R5/include \ | |
9418 | /usr/local/X11R4/include \ | |
9419 | \ | |
9420 | /usr/local/include/X11 \ | |
9421 | /usr/local/include/X11R6 \ | |
9422 | /usr/local/include/X11R5 \ | |
9423 | /usr/local/include/X11R4 \ | |
9424 | \ | |
9425 | /usr/X386/include \ | |
9426 | /usr/x386/include \ | |
9427 | /usr/XFree86/include/X11 \ | |
9428 | \ | |
9429 | /usr/include \ | |
9430 | /usr/local/include \ | |
9431 | /usr/unsupported/include \ | |
9432 | /usr/athena/include \ | |
9433 | /usr/local/x11r5/include \ | |
9434 | /usr/lpp/Xamples/include \ | |
9435 | \ | |
9436 | /usr/openwin/include \ | |
9437 | /usr/openwin/share/include \ | |
9438 | ; \ | |
9439 | do | |
9440 | if test -r "$ac_dir/$x_direct_test_include"; then | |
9441 | ac_x_includes=$ac_dir | |
9442 | break | |
9443 | fi | |
9444 | done | |
9445 | fi | |
9446 | rm -f conftest* | |
9447 | fi # $ac_x_includes = NO | |
9448 | ||
9449 | if test "$ac_x_libraries" = NO; then | |
9450 | # Check for the libraries. | |
9451 | ||
9452 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
9453 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
9454 | ||
9455 | # See if we find them without any special options. | |
9456 | # Don't add to $LIBS permanently. | |
9457 | ac_save_LIBS="$LIBS" | |
9458 | LIBS="-l$x_direct_test_library $LIBS" | |
9459 | cat > conftest.$ac_ext <<EOF | |
9460 | #line 9461 "configure" | |
9461 | #include "confdefs.h" | |
9462 | ||
9463 | int main() { | |
9464 | ${x_direct_test_function}() | |
9465 | ; return 0; } | |
9466 | EOF | |
9467 | if { (eval echo configure:9468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9468 | rm -rf conftest* | |
9469 | LIBS="$ac_save_LIBS" | |
9470 | # We can link X programs with no special library path. | |
9471 | ac_x_libraries= | |
9472 | else | |
9473 | echo "configure: failed program was:" >&5 | |
9474 | cat conftest.$ac_ext >&5 | |
9475 | rm -rf conftest* | |
9476 | LIBS="$ac_save_LIBS" | |
9477 | # First see if replacing the include by lib works. | |
9478 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9479 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
9480 | /usr/X11/lib \ | |
9481 | /usr/X11R6/lib \ | |
9482 | /usr/X11R5/lib \ | |
9483 | /usr/X11R4/lib \ | |
9484 | \ | |
9485 | /usr/lib/X11 \ | |
9486 | /usr/lib/X11R6 \ | |
9487 | /usr/lib/X11R5 \ | |
9488 | /usr/lib/X11R4 \ | |
9489 | \ | |
9490 | /usr/local/X11/lib \ | |
9491 | /usr/local/X11R6/lib \ | |
9492 | /usr/local/X11R5/lib \ | |
9493 | /usr/local/X11R4/lib \ | |
9494 | \ | |
9495 | /usr/local/lib/X11 \ | |
9496 | /usr/local/lib/X11R6 \ | |
9497 | /usr/local/lib/X11R5 \ | |
9498 | /usr/local/lib/X11R4 \ | |
9499 | \ | |
9500 | /usr/X386/lib \ | |
9501 | /usr/x386/lib \ | |
9502 | /usr/XFree86/lib/X11 \ | |
9503 | \ | |
9504 | /usr/lib \ | |
9505 | /usr/local/lib \ | |
9506 | /usr/unsupported/lib \ | |
9507 | /usr/athena/lib \ | |
9508 | /usr/local/x11r5/lib \ | |
9509 | /usr/lpp/Xamples/lib \ | |
9510 | /lib/usr/lib/X11 \ | |
9511 | \ | |
9512 | /usr/openwin/lib \ | |
9513 | /usr/openwin/share/lib \ | |
9514 | ; \ | |
9515 | do | |
9516 | for ac_extension in a so sl; do | |
9517 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
9518 | ac_x_libraries=$ac_dir | |
9519 | break 2 | |
9520 | fi | |
9521 | done | |
9522 | done | |
9523 | fi | |
9524 | rm -f conftest* | |
9525 | fi # $ac_x_libraries = NO | |
9526 | ||
9527 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
9528 | # Didn't find X anywhere. Cache the known absence of X. | |
9529 | ac_cv_have_x="have_x=no" | |
9530 | else | |
9531 | # Record where we found X for the cache. | |
9532 | ac_cv_have_x="have_x=yes \ | |
9533 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
9534 | fi | |
9535 | fi | |
9536 | fi | |
9537 | eval "$ac_cv_have_x" | |
9538 | fi # $with_x != no | |
9539 | ||
9540 | if test "$have_x" != yes; then | |
9541 | echo "$ac_t""$have_x" 1>&6 | |
9542 | no_x=yes | |
9543 | else | |
9544 | # If each of the values was on the command line, it overrides each guess. | |
9545 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9546 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9547 | # Update the cache value to reflect the command line values. | |
9548 | ac_cv_have_x="have_x=yes \ | |
9549 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
9550 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
9551 | fi | |
9552 | ||
9553 | if test "$no_x" = yes; then | |
9554 | # Not all programs may use this symbol, but it does not hurt to define it. | |
9555 | cat >> confdefs.h <<\EOF | |
9556 | #define X_DISPLAY_MISSING 1 | |
9557 | EOF | |
9558 | ||
9559 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
9560 | else | |
9561 | if test -n "$x_includes"; then | |
9562 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
9563 | fi | |
9564 | ||
9565 | # It would also be nice to do this for all -L options, not just this one. | |
9566 | if test -n "$x_libraries"; then | |
9567 | X_LIBS="$X_LIBS -L$x_libraries" | |
9568 | # For Solaris; some versions of Sun CC require a space after -R and | |
9569 | # others require no space. Words are not sufficient . . . . | |
9570 | case "`(uname -sr) 2>/dev/null`" in | |
9571 | "SunOS 5"*) | |
9572 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
9573 | echo "configure:9574: checking whether -R must be followed by a space" >&5 | |
9574 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
9575 | cat > conftest.$ac_ext <<EOF | |
9576 | #line 9577 "configure" | |
9577 | #include "confdefs.h" | |
9578 | ||
9579 | int main() { | |
9580 | ||
9581 | ; return 0; } | |
9582 | EOF | |
9583 | if { (eval echo configure:9584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9584 | rm -rf conftest* | |
9585 | ac_R_nospace=yes | |
9586 | else | |
9587 | echo "configure: failed program was:" >&5 | |
9588 | cat conftest.$ac_ext >&5 | |
9589 | rm -rf conftest* | |
9590 | ac_R_nospace=no | |
9591 | fi | |
9592 | rm -f conftest* | |
9593 | if test $ac_R_nospace = yes; then | |
9594 | echo "$ac_t""no" 1>&6 | |
9595 | X_LIBS="$X_LIBS -R$x_libraries" | |
9596 | else | |
9597 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
9598 | cat > conftest.$ac_ext <<EOF | |
9599 | #line 9600 "configure" | |
9600 | #include "confdefs.h" | |
9601 | ||
9602 | int main() { | |
9603 | ||
9604 | ; return 0; } | |
9605 | EOF | |
9606 | if { (eval echo configure:9607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9607 | rm -rf conftest* | |
9608 | ac_R_space=yes | |
9609 | else | |
9610 | echo "configure: failed program was:" >&5 | |
9611 | cat conftest.$ac_ext >&5 | |
9612 | rm -rf conftest* | |
9613 | ac_R_space=no | |
9614 | fi | |
9615 | rm -f conftest* | |
9616 | if test $ac_R_space = yes; then | |
9617 | echo "$ac_t""yes" 1>&6 | |
9618 | X_LIBS="$X_LIBS -R $x_libraries" | |
9619 | else | |
9620 | echo "$ac_t""neither works" 1>&6 | |
9621 | fi | |
9622 | fi | |
9623 | LIBS="$ac_xsave_LIBS" | |
9624 | esac | |
9625 | fi | |
9626 | ||
9627 | # Check for system-dependent libraries X programs must link with. | |
9628 | # Do this before checking for the system-independent R6 libraries | |
9629 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
9630 | ||
9631 | if test "$ISC" = yes; then | |
9632 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
9633 | else | |
9634 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
9635 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
9636 | # the Alpha needs dnet_stub (dnet does not exist). | |
9637 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
9638 | echo "configure:9639: checking for dnet_ntoa in -ldnet" >&5 | |
9639 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
9640 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9642 | else | |
9643 | ac_save_LIBS="$LIBS" | |
9644 | LIBS="-ldnet $LIBS" | |
9645 | cat > conftest.$ac_ext <<EOF | |
9646 | #line 9647 "configure" | |
9647 | #include "confdefs.h" | |
9648 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9649 | /* We use char because int might match the return type of a gcc2 | |
9650 | builtin and then its argument prototype would still apply. */ | |
9651 | char dnet_ntoa(); | |
9652 | ||
9653 | int main() { | |
9654 | dnet_ntoa() | |
9655 | ; return 0; } | |
9656 | EOF | |
9657 | if { (eval echo configure:9658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9658 | rm -rf conftest* | |
9659 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9660 | else | |
9661 | echo "configure: failed program was:" >&5 | |
9662 | cat conftest.$ac_ext >&5 | |
9663 | rm -rf conftest* | |
9664 | eval "ac_cv_lib_$ac_lib_var=no" | |
9665 | fi | |
9666 | rm -f conftest* | |
9667 | LIBS="$ac_save_LIBS" | |
9668 | ||
9669 | fi | |
9670 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9671 | echo "$ac_t""yes" 1>&6 | |
9672 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
9673 | else | |
9674 | echo "$ac_t""no" 1>&6 | |
9675 | fi | |
9676 | ||
9677 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
9678 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
9679 | echo "configure:9680: checking for dnet_ntoa in -ldnet_stub" >&5 | |
9680 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
9681 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9683 | else | |
9684 | ac_save_LIBS="$LIBS" | |
9685 | LIBS="-ldnet_stub $LIBS" | |
9686 | cat > conftest.$ac_ext <<EOF | |
9687 | #line 9688 "configure" | |
9688 | #include "confdefs.h" | |
9689 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9690 | /* We use char because int might match the return type of a gcc2 | |
9691 | builtin and then its argument prototype would still apply. */ | |
9692 | char dnet_ntoa(); | |
9693 | ||
9694 | int main() { | |
9695 | dnet_ntoa() | |
9696 | ; return 0; } | |
9697 | EOF | |
9698 | if { (eval echo configure:9699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9699 | rm -rf conftest* | |
9700 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9701 | else | |
9702 | echo "configure: failed program was:" >&5 | |
9703 | cat conftest.$ac_ext >&5 | |
9704 | rm -rf conftest* | |
9705 | eval "ac_cv_lib_$ac_lib_var=no" | |
9706 | fi | |
9707 | rm -f conftest* | |
9708 | LIBS="$ac_save_LIBS" | |
9709 | ||
9710 | fi | |
9711 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9712 | echo "$ac_t""yes" 1>&6 | |
9713 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
9714 | else | |
9715 | echo "$ac_t""no" 1>&6 | |
9716 | fi | |
9717 | ||
9718 | fi | |
9719 | ||
9720 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
9721 | # to get the SysV transport functions. | |
9722 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
9723 | # needs -lnsl. | |
9724 | # The nsl library prevents programs from opening the X display | |
9725 | # on Irix 5.2, according to dickey@clark.net. | |
9726 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
9727 | echo "configure:9728: checking for gethostbyname" >&5 | |
9728 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
9729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9730 | else | |
9731 | cat > conftest.$ac_ext <<EOF | |
9732 | #line 9733 "configure" | |
9733 | #include "confdefs.h" | |
9734 | /* System header to define __stub macros and hopefully few prototypes, | |
9735 | which can conflict with char gethostbyname(); below. */ | |
9736 | #include <assert.h> | |
9737 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9738 | /* We use char because int might match the return type of a gcc2 | |
9739 | builtin and then its argument prototype would still apply. */ | |
9740 | char gethostbyname(); | |
9741 | ||
9742 | int main() { | |
9743 | ||
9744 | /* The GNU C library defines this for functions which it implements | |
9745 | to always fail with ENOSYS. Some functions are actually named | |
9746 | something starting with __ and the normal name is an alias. */ | |
9747 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
9748 | choke me | |
9749 | #else | |
9750 | gethostbyname(); | |
9751 | #endif | |
9752 | ||
9753 | ; return 0; } | |
9754 | EOF | |
9755 | if { (eval echo configure:9756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9756 | rm -rf conftest* | |
9757 | eval "ac_cv_func_gethostbyname=yes" | |
9758 | else | |
9759 | echo "configure: failed program was:" >&5 | |
9760 | cat conftest.$ac_ext >&5 | |
9761 | rm -rf conftest* | |
9762 | eval "ac_cv_func_gethostbyname=no" | |
9763 | fi | |
9764 | rm -f conftest* | |
9765 | fi | |
9766 | ||
9767 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
9768 | echo "$ac_t""yes" 1>&6 | |
9769 | : | |
9770 | else | |
9771 | echo "$ac_t""no" 1>&6 | |
9772 | fi | |
9773 | ||
9774 | if test $ac_cv_func_gethostbyname = no; then | |
9775 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
9776 | echo "configure:9777: checking for gethostbyname in -lnsl" >&5 | |
9777 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
9778 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9779 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9780 | else | |
9781 | ac_save_LIBS="$LIBS" | |
9782 | LIBS="-lnsl $LIBS" | |
9783 | cat > conftest.$ac_ext <<EOF | |
9784 | #line 9785 "configure" | |
9785 | #include "confdefs.h" | |
9786 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9787 | /* We use char because int might match the return type of a gcc2 | |
9788 | builtin and then its argument prototype would still apply. */ | |
9789 | char gethostbyname(); | |
9790 | ||
9791 | int main() { | |
9792 | gethostbyname() | |
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_lib_$ac_lib_var=yes" | |
9798 | else | |
9799 | echo "configure: failed program was:" >&5 | |
9800 | cat conftest.$ac_ext >&5 | |
9801 | rm -rf conftest* | |
9802 | eval "ac_cv_lib_$ac_lib_var=no" | |
9803 | fi | |
9804 | rm -f conftest* | |
9805 | LIBS="$ac_save_LIBS" | |
9806 | ||
9807 | fi | |
9808 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9809 | echo "$ac_t""yes" 1>&6 | |
9810 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
9811 | else | |
9812 | echo "$ac_t""no" 1>&6 | |
9813 | fi | |
9814 | ||
9815 | fi | |
9816 | ||
9817 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
9818 | # socket/setsockopt and other routines are undefined under SCO ODT | |
9819 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
9820 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
9821 | # gethostby* variants that don't use the nameserver (or something). | |
9822 | # -lsocket must be given before -lnsl if both are needed. | |
9823 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
9824 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
9825 | echo "configure:9826: checking for connect" >&5 | |
9826 | if eval "test \"`echo '$''{'ac_cv_func_connect'+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 | /* System header to define __stub macros and hopefully few prototypes, | |
9833 | which can conflict with char connect(); below. */ | |
9834 | #include <assert.h> | |
9835 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9836 | /* We use char because int might match the return type of a gcc2 | |
9837 | builtin and then its argument prototype would still apply. */ | |
9838 | char connect(); | |
9839 | ||
9840 | int main() { | |
9841 | ||
9842 | /* The GNU C library defines this for functions which it implements | |
9843 | to always fail with ENOSYS. Some functions are actually named | |
9844 | something starting with __ and the normal name is an alias. */ | |
9845 | #if defined (__stub_connect) || defined (__stub___connect) | |
9846 | choke me | |
9847 | #else | |
9848 | connect(); | |
9849 | #endif | |
9850 | ||
9851 | ; return 0; } | |
9852 | EOF | |
9853 | if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9854 | rm -rf conftest* | |
9855 | eval "ac_cv_func_connect=yes" | |
9856 | else | |
9857 | echo "configure: failed program was:" >&5 | |
9858 | cat conftest.$ac_ext >&5 | |
9859 | rm -rf conftest* | |
9860 | eval "ac_cv_func_connect=no" | |
9861 | fi | |
9862 | rm -f conftest* | |
9863 | fi | |
9864 | ||
9865 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
9866 | echo "$ac_t""yes" 1>&6 | |
9867 | : | |
9868 | else | |
9869 | echo "$ac_t""no" 1>&6 | |
9870 | fi | |
9871 | ||
9872 | if test $ac_cv_func_connect = no; then | |
9873 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
9874 | echo "configure:9875: checking for connect in -lsocket" >&5 | |
9875 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
9876 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9878 | else | |
9879 | ac_save_LIBS="$LIBS" | |
9880 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
9881 | cat > conftest.$ac_ext <<EOF | |
9882 | #line 9883 "configure" | |
9883 | #include "confdefs.h" | |
9884 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9885 | /* We use char because int might match the return type of a gcc2 | |
9886 | builtin and then its argument prototype would still apply. */ | |
9887 | char connect(); | |
9888 | ||
9889 | int main() { | |
9890 | connect() | |
9891 | ; return 0; } | |
9892 | EOF | |
9893 | if { (eval echo configure:9894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9894 | rm -rf conftest* | |
9895 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9896 | else | |
9897 | echo "configure: failed program was:" >&5 | |
9898 | cat conftest.$ac_ext >&5 | |
9899 | rm -rf conftest* | |
9900 | eval "ac_cv_lib_$ac_lib_var=no" | |
9901 | fi | |
9902 | rm -f conftest* | |
9903 | LIBS="$ac_save_LIBS" | |
9904 | ||
9905 | fi | |
9906 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9907 | echo "$ac_t""yes" 1>&6 | |
9908 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
9909 | else | |
9910 | echo "$ac_t""no" 1>&6 | |
9911 | fi | |
9912 | ||
9913 | fi | |
9914 | ||
9915 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
9916 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
9917 | echo "configure:9918: checking for remove" >&5 | |
9918 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
9919 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9920 | else | |
9921 | cat > conftest.$ac_ext <<EOF | |
9922 | #line 9923 "configure" | |
9923 | #include "confdefs.h" | |
9924 | /* System header to define __stub macros and hopefully few prototypes, | |
9925 | which can conflict with char remove(); below. */ | |
9926 | #include <assert.h> | |
9927 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9928 | /* We use char because int might match the return type of a gcc2 | |
9929 | builtin and then its argument prototype would still apply. */ | |
9930 | char remove(); | |
9931 | ||
9932 | int main() { | |
9933 | ||
9934 | /* The GNU C library defines this for functions which it implements | |
9935 | to always fail with ENOSYS. Some functions are actually named | |
9936 | something starting with __ and the normal name is an alias. */ | |
9937 | #if defined (__stub_remove) || defined (__stub___remove) | |
9938 | choke me | |
9939 | #else | |
9940 | remove(); | |
9941 | #endif | |
9942 | ||
9943 | ; return 0; } | |
9944 | EOF | |
9945 | if { (eval echo configure:9946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9946 | rm -rf conftest* | |
9947 | eval "ac_cv_func_remove=yes" | |
9948 | else | |
9949 | echo "configure: failed program was:" >&5 | |
9950 | cat conftest.$ac_ext >&5 | |
9951 | rm -rf conftest* | |
9952 | eval "ac_cv_func_remove=no" | |
9953 | fi | |
9954 | rm -f conftest* | |
9955 | fi | |
9956 | ||
9957 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
9958 | echo "$ac_t""yes" 1>&6 | |
9959 | : | |
9960 | else | |
9961 | echo "$ac_t""no" 1>&6 | |
9962 | fi | |
9963 | ||
9964 | if test $ac_cv_func_remove = no; then | |
9965 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
9966 | echo "configure:9967: checking for remove in -lposix" >&5 | |
9967 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
9968 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9969 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9970 | else | |
9971 | ac_save_LIBS="$LIBS" | |
9972 | LIBS="-lposix $LIBS" | |
9973 | cat > conftest.$ac_ext <<EOF | |
9974 | #line 9975 "configure" | |
9975 | #include "confdefs.h" | |
9976 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9977 | /* We use char because int might match the return type of a gcc2 | |
9978 | builtin and then its argument prototype would still apply. */ | |
9979 | char remove(); | |
9980 | ||
9981 | int main() { | |
9982 | remove() | |
9983 | ; return 0; } | |
9984 | EOF | |
9985 | if { (eval echo configure:9986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9986 | rm -rf conftest* | |
9987 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9988 | else | |
9989 | echo "configure: failed program was:" >&5 | |
9990 | cat conftest.$ac_ext >&5 | |
9991 | rm -rf conftest* | |
9992 | eval "ac_cv_lib_$ac_lib_var=no" | |
9993 | fi | |
9994 | rm -f conftest* | |
9995 | LIBS="$ac_save_LIBS" | |
9996 | ||
9997 | fi | |
9998 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9999 | echo "$ac_t""yes" 1>&6 | |
10000 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
10001 | else | |
10002 | echo "$ac_t""no" 1>&6 | |
10003 | fi | |
10004 | ||
10005 | fi | |
10006 | ||
10007 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
10008 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
10009 | echo "configure:10010: checking for shmat" >&5 | |
10010 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
10011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10012 | else | |
10013 | cat > conftest.$ac_ext <<EOF | |
10014 | #line 10015 "configure" | |
10015 | #include "confdefs.h" | |
10016 | /* System header to define __stub macros and hopefully few prototypes, | |
10017 | which can conflict with char shmat(); below. */ | |
10018 | #include <assert.h> | |
10019 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10020 | /* We use char because int might match the return type of a gcc2 | |
10021 | builtin and then its argument prototype would still apply. */ | |
10022 | char shmat(); | |
10023 | ||
10024 | int main() { | |
10025 | ||
10026 | /* The GNU C library defines this for functions which it implements | |
10027 | to always fail with ENOSYS. Some functions are actually named | |
10028 | something starting with __ and the normal name is an alias. */ | |
10029 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
10030 | choke me | |
10031 | #else | |
10032 | shmat(); | |
10033 | #endif | |
10034 | ||
10035 | ; return 0; } | |
10036 | EOF | |
10037 | if { (eval echo configure:10038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10038 | rm -rf conftest* | |
10039 | eval "ac_cv_func_shmat=yes" | |
10040 | else | |
10041 | echo "configure: failed program was:" >&5 | |
10042 | cat conftest.$ac_ext >&5 | |
10043 | rm -rf conftest* | |
10044 | eval "ac_cv_func_shmat=no" | |
10045 | fi | |
10046 | rm -f conftest* | |
10047 | fi | |
10048 | ||
10049 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
10050 | echo "$ac_t""yes" 1>&6 | |
10051 | : | |
10052 | else | |
10053 | echo "$ac_t""no" 1>&6 | |
10054 | fi | |
10055 | ||
10056 | if test $ac_cv_func_shmat = no; then | |
10057 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
10058 | echo "configure:10059: checking for shmat in -lipc" >&5 | |
10059 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
10060 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10061 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10062 | else | |
10063 | ac_save_LIBS="$LIBS" | |
10064 | LIBS="-lipc $LIBS" | |
10065 | cat > conftest.$ac_ext <<EOF | |
10066 | #line 10067 "configure" | |
10067 | #include "confdefs.h" | |
10068 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10069 | /* We use char because int might match the return type of a gcc2 | |
10070 | builtin and then its argument prototype would still apply. */ | |
10071 | char shmat(); | |
10072 | ||
10073 | int main() { | |
10074 | shmat() | |
10075 | ; return 0; } | |
10076 | EOF | |
10077 | if { (eval echo configure:10078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10078 | rm -rf conftest* | |
10079 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10080 | else | |
10081 | echo "configure: failed program was:" >&5 | |
10082 | cat conftest.$ac_ext >&5 | |
10083 | rm -rf conftest* | |
10084 | eval "ac_cv_lib_$ac_lib_var=no" | |
10085 | fi | |
10086 | rm -f conftest* | |
10087 | LIBS="$ac_save_LIBS" | |
10088 | ||
10089 | fi | |
10090 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10091 | echo "$ac_t""yes" 1>&6 | |
10092 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
10093 | else | |
10094 | echo "$ac_t""no" 1>&6 | |
10095 | fi | |
10096 | ||
10097 | fi | |
10098 | fi | |
10099 | ||
10100 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
10101 | ac_save_LDFLAGS="$LDFLAGS" | |
10102 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
10103 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10104 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10105 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10106 | # These have to be linked with before -lX11, unlike the other | |
10107 | # libraries we check for below, so use a different variable. | |
10108 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
10109 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
10110 | echo "configure:10111: checking for IceConnectionNumber in -lICE" >&5 | |
10111 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
10112 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10113 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10114 | else | |
10115 | ac_save_LIBS="$LIBS" | |
10116 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
10117 | cat > conftest.$ac_ext <<EOF | |
10118 | #line 10119 "configure" | |
10119 | #include "confdefs.h" | |
10120 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10121 | /* We use char because int might match the return type of a gcc2 | |
10122 | builtin and then its argument prototype would still apply. */ | |
10123 | char IceConnectionNumber(); | |
10124 | ||
10125 | int main() { | |
10126 | IceConnectionNumber() | |
10127 | ; return 0; } | |
10128 | EOF | |
10129 | if { (eval echo configure:10130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10130 | rm -rf conftest* | |
10131 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10132 | else | |
10133 | echo "configure: failed program was:" >&5 | |
10134 | cat conftest.$ac_ext >&5 | |
10135 | rm -rf conftest* | |
10136 | eval "ac_cv_lib_$ac_lib_var=no" | |
10137 | fi | |
10138 | rm -f conftest* | |
10139 | LIBS="$ac_save_LIBS" | |
10140 | ||
10141 | fi | |
10142 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10143 | echo "$ac_t""yes" 1>&6 | |
10144 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
10145 | else | |
10146 | echo "$ac_t""no" 1>&6 | |
10147 | fi | |
10148 | ||
10149 | LDFLAGS="$ac_save_LDFLAGS" | |
10150 | ||
10151 | fi | |
10152 | ||
10153 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" | |
10154 | LDFLAGS="$LDFLAGS $X_LIBS" | |
10155 | ||
10156 | if test "$wxUSE_MOTIF" = 1; then | |
10157 | if test "$no_x" = "yes"; then | |
10158 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
10159 | fi | |
10160 | ||
10161 | GUI_TK_LIBRARY="$X_LIBS" | |
10162 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
10163 | ||
10164 | AFMINSTALL=afminstall | |
10165 | ||
10166 | ||
10167 | COMPILED_X_PROGRAM=0 | |
10168 | ||
10169 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
10170 | echo "configure:10171: checking for Motif/Lesstif headers" >&5 | |
10171 | ||
10172 | ac_find_includes= | |
10173 | for ac_dir in $SEARCH_INCLUDE; | |
10174 | do | |
10175 | if test -f "$ac_dir/Xm/Xm.h"; then | |
10176 | ac_find_includes=$ac_dir | |
10177 | break | |
10178 | fi | |
10179 | done | |
10180 | ||
10181 | if test "$ac_find_includes" != "" ; then | |
10182 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
10183 | else | |
10184 | cat > conftest.$ac_ext <<EOF | |
10185 | #line 10186 "configure" | |
10186 | #include "confdefs.h" | |
10187 | ||
10188 | #include <Xm/Xm.h> | |
10189 | ||
10190 | int main() { | |
10191 | ||
10192 | int version; | |
10193 | ||
10194 | version = xmUseVersion; | |
10195 | ||
10196 | ; return 0; } | |
10197 | EOF | |
10198 | if { (eval echo configure:10199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10199 | rm -rf conftest* | |
10200 | ||
10201 | echo "$ac_t""found in default search path" 1>&6 | |
10202 | COMPILED_X_PROGRAM=1 | |
10203 | ||
10204 | else | |
10205 | echo "configure: failed program was:" >&5 | |
10206 | cat conftest.$ac_ext >&5 | |
10207 | rm -rf conftest* | |
10208 | ||
10209 | echo "$ac_t""no" 1>&6 | |
10210 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
10211 | ||
10212 | ||
10213 | fi | |
10214 | rm -f conftest* | |
10215 | fi | |
10216 | ||
10217 | if test "$COMPILED_X_PROGRAM" = 0; then | |
10218 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
10219 | echo "configure:10220: checking for Motif/Lesstif library" >&5 | |
10220 | ||
10221 | ac_find_libraries= | |
10222 | for ac_dir in $SEARCH_LIB; | |
10223 | do | |
10224 | for ac_extension in a so sl; do | |
10225 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
10226 | ac_find_libraries=$ac_dir | |
10227 | break 2 | |
10228 | fi | |
10229 | done | |
10230 | done | |
10231 | ||
10232 | if test "$ac_find_libraries" != "" ; then | |
10233 | ||
10234 | ac_path_to_include=$ac_find_includes | |
10235 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
10236 | result=$? | |
10237 | if test $result = 0; then | |
10238 | ac_path_to_include="" | |
10239 | else | |
10240 | ac_path_to_include="-I$ac_find_includes" | |
10241 | fi | |
10242 | ||
10243 | ||
10244 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
10245 | result=$? | |
10246 | if test $result = 0; then | |
10247 | ac_path_to_link="" | |
10248 | else | |
10249 | ac_path_to_link="-L$ac_find_libraries" | |
10250 | fi | |
10251 | ||
10252 | ||
10253 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
10254 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
10255 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10256 | else | |
10257 | cat > conftest.$ac_ext <<EOF | |
10258 | #line 10259 "configure" | |
10259 | #include "confdefs.h" | |
10260 | ||
10261 | #include <Xm/Xm.h> | |
10262 | ||
10263 | int main() { | |
10264 | ||
10265 | int version; | |
10266 | ||
10267 | version = xmUseVersion; | |
10268 | ||
10269 | ; return 0; } | |
10270 | EOF | |
10271 | if { (eval echo configure:10272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10272 | rm -rf conftest* | |
10273 | ||
10274 | echo "$ac_t""found in default search path" 1>&6 | |
10275 | COMPILED_X_PROGRAM=1 | |
10276 | ||
10277 | else | |
10278 | echo "configure: failed program was:" >&5 | |
10279 | cat conftest.$ac_ext >&5 | |
10280 | rm -rf conftest* | |
10281 | ||
10282 | echo "$ac_t""no" 1>&6 | |
10283 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
10284 | ||
10285 | ||
10286 | fi | |
10287 | rm -f conftest* | |
10288 | fi | |
10289 | fi | |
10290 | ||
10291 | ||
10292 | XPM_LINK="" | |
10293 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
10294 | echo "configure:10295: checking for Xpm library" >&5 | |
10295 | ||
10296 | ac_find_libraries= | |
10297 | for ac_dir in $SEARCH_LIB; | |
10298 | do | |
10299 | for ac_extension in a so sl; do | |
10300 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
10301 | ac_find_libraries=$ac_dir | |
10302 | break 2 | |
10303 | fi | |
10304 | done | |
10305 | done | |
10306 | ||
10307 | if test "$ac_find_libraries" != "" ; then | |
10308 | ||
10309 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
10310 | result=$? | |
10311 | if test $result = 0; then | |
10312 | ac_path_to_link="" | |
10313 | else | |
10314 | ac_path_to_link="-L$ac_find_libraries" | |
10315 | fi | |
10316 | ||
10317 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
10318 | XPM_LINK="-lXpm " | |
10319 | cat >> confdefs.h <<\EOF | |
10320 | #define wxHAVE_LIB_XPM 1 | |
10321 | EOF | |
10322 | ||
10323 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10324 | else | |
10325 | cat > conftest.$ac_ext <<EOF | |
10326 | #line 10327 "configure" | |
10327 | #include "confdefs.h" | |
10328 | ||
10329 | #include <X11/xpm.h> | |
10330 | ||
10331 | int main() { | |
10332 | ||
10333 | int version; | |
10334 | ||
10335 | version = XpmLibraryVersion(); | |
10336 | ||
10337 | ; return 0; } | |
10338 | EOF | |
10339 | if { (eval echo configure:10340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10340 | rm -rf conftest* | |
10341 | ||
10342 | XPM_LINK="-lXpm " | |
10343 | cat >> confdefs.h <<\EOF | |
10344 | #define wxHAVE_LIB_XPM 1 | |
10345 | EOF | |
10346 | ||
10347 | echo "$ac_t""found in default search path" 1>&6 | |
10348 | COMPILED_X_PROGRAM=0 | |
10349 | ||
10350 | else | |
10351 | echo "configure: failed program was:" >&5 | |
10352 | cat conftest.$ac_ext >&5 | |
10353 | rm -rf conftest* | |
10354 | ||
10355 | echo "$ac_t""no" 1>&6 | |
10356 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10357 | ||
10358 | ||
10359 | fi | |
10360 | rm -f conftest* | |
10361 | fi | |
10362 | ||
10363 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" | |
10364 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
10365 | TOOLKIT=MOTIF | |
10366 | GUIDIST=MOTIF_DIST | |
10367 | fi | |
10368 | ||
10369 | if test "$wxUSE_MAC" = 1; then | |
10370 | TOOLKIT=MAC | |
10371 | GUIDIST=MACX_DIST | |
10372 | fi | |
10373 | ||
10374 | if test "$wxUSE_PM" = 1; then | |
10375 | TOOLKIT=PM | |
10376 | GUIDIST=GTK_DIST | |
10377 | fi | |
10378 | ||
10379 | if test "$TOOLKIT" != "PM" ; then | |
10380 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
10381 | else | |
10382 | TOOLKIT_DIR="os2" | |
10383 | fi | |
10384 | ||
10385 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
10386 | ||
10387 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10388 | ||
10389 | if test "$TOOLKIT_NAME" = "motif"; then | |
10390 | TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
10391 | fi | |
10392 | ||
10393 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10394 | TOOLKIT_NAME="${TOOLKIT_NAME}univ" | |
10395 | UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
10396 | TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}" | |
10397 | SETUPH_DIR="univ" | |
10398 | else | |
10399 | SETUPH_DIR="${TOOLKIT_DIR}" | |
10400 | fi | |
10401 | ||
10402 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10403 | TOOLKIT_NAME="${TOOLKIT_NAME}d" | |
10404 | fi | |
10405 | ||
10406 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" | |
10407 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10408 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__" | |
10409 | fi | |
10410 | ||
10411 | WX_LIBRARY="wx_${TOOLKIT_NAME}" | |
10412 | ||
10413 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10414 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
10415 | else | |
10416 | ALL_OBJECTS="\$(GUIOBJS)" | |
10417 | fi | |
10418 | ||
10419 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
10420 | ||
10421 | if test "$TOOLKIT" != "MSW"; then | |
10422 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
10423 | fi | |
10424 | ||
10425 | if test "$wxUSE_HTML" = "yes"; then | |
10426 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
10427 | fi | |
10428 | ||
10429 | if test "$TOOLKIT" != "MSW"; then | |
10430 | if test "$wxUSE_ODBC" = "yes" ; then | |
10431 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
10432 | fi | |
10433 | fi | |
10434 | ||
10435 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
10436 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
10437 | fi | |
10438 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
10439 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
10440 | fi | |
10441 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10442 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
10443 | fi | |
10444 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10445 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10446 | fi | |
10447 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
10448 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
10449 | fi | |
10450 | ||
10451 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10452 | ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)" | |
10453 | else | |
10454 | ALL_DEPFILES="\$(GUIDEPS)" | |
10455 | fi | |
10456 | ||
10457 | ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)" | |
10458 | ||
10459 | if test "$TOOLKIT" != "MSW"; then | |
10460 | ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)" | |
10461 | fi | |
10462 | ||
10463 | if test "$wxUSE_HTML" = "yes"; then | |
10464 | ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)" | |
10465 | fi | |
10466 | ||
10467 | PORT_FILES="src/\$(TOOLKITDIR)/files.lst" | |
10468 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10469 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
10470 | fi | |
10471 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" | |
10472 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
10473 | ||
10474 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
10475 | DISTDIR="wx\$(TOOLKIT)" | |
10476 | else | |
10477 | USE_GUI=0 | |
10478 | ||
10479 | TOOLKIT_DIR="base" | |
10480 | ||
10481 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10482 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
10483 | else | |
10484 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
10485 | fi | |
10486 | ||
10487 | TOOLKIT_DEF="-D__WXBASE__" | |
10488 | ||
10489 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" | |
10490 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10491 | ||
10492 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10493 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10494 | fi | |
10495 | ||
10496 | WX_LIBRARY="wx_${TOOLKIT_NAME}" | |
10497 | ||
10498 | PORT_FILES="src/files.lst" | |
10499 | RPM_FILES="src/rpmfiles.lst" | |
10500 | RPM_SPEC="wxBase.spec" | |
10501 | ||
10502 | GUIDIST="BASE_DIST" | |
10503 | DISTDIR="wxBase" | |
10504 | fi | |
10505 | ||
10506 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
10507 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" | |
10508 | ||
10509 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
10510 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" | |
10511 | ||
10512 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10513 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10514 | ||
10515 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
10516 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
10517 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
10518 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" | |
10519 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
10520 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10521 | ||
10522 | SHARED_LD= | |
10523 | PIC_FLAG= | |
10524 | WX_ALL= | |
10525 | WX_ALL_INSTALLED= | |
10526 | BURNT_LIBRARY_NAME= | |
10527 | WX_TARGET_LIBRARY_SONAME= | |
10528 | ||
10529 | ||
10530 | if test "$wxUSE_SHARED" = "yes"; then | |
10531 | case "${host}" in | |
10532 | *-hp-hpux* ) | |
10533 | if test "$GCC" = yes ; then | |
10534 | SHARED_LD="${CC} -shared -fPIC -o" | |
10535 | PIC_FLAG="-fPIC" | |
10536 | else | |
10537 | LDFLAGS="-L/usr/lib" | |
10538 | ||
10539 | SHARED_LD="${CXX} -b -o" | |
10540 | PIC_FLAG="+Z" | |
10541 | fi | |
10542 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" | |
10543 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
10544 | if test "$wxUSE_OPENGL" = "yes"; then | |
10545 | WX_ALL_INSTALLED="preinstall_gl" | |
10546 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" | |
10547 | else | |
10548 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
10549 | fi | |
10550 | ;; | |
10551 | ||
10552 | *-*-linux* ) | |
10553 | SHARED_LD="${CC} -shared -o" | |
10554 | PIC_FLAG="-fPIC" | |
10555 | if test "$wxUSE_BURNT_NAME" = "yes" ; then | |
10556 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
10557 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
10558 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
10559 | fi | |
10560 | if test "$wxUSE_OPENGL" = "yes"; then | |
10561 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10562 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10563 | else | |
10564 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10565 | WX_ALL="CREATE_LINKS" | |
10566 | fi | |
10567 | ;; | |
10568 | *-*-irix5* | *-*-irix6* ) | |
10569 | if test "$GCC" = yes ; then | |
10570 | SHARED_LD="${CC} -shared -o" | |
10571 | PIC_FLAG="-fPIC" | |
10572 | else | |
10573 | SHARED_LD="${CXX} -shared -o" | |
10574 | fi | |
10575 | if test "$wxUSE_OPENGL" = "yes"; then | |
10576 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10577 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10578 | else | |
10579 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10580 | WX_ALL="CREATE_LINKS" | |
10581 | fi | |
10582 | ;; | |
10583 | *-*-solaris2* ) | |
10584 | if test "$GCC" = yes ; then | |
10585 | SHARED_LD="${CC} -shared -o" | |
10586 | PIC_FLAG="-fPIC" | |
10587 | ||
10588 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10589 | else | |
10590 | SHARED_LD="${CXX} -G -o" | |
10591 | PIC_FLAG="-KPIC" | |
10592 | fi | |
10593 | if test "$wxUSE_OPENGL" = "yes"; then | |
10594 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10595 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10596 | else | |
10597 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10598 | WX_ALL="CREATE_LINKS" | |
10599 | fi | |
10600 | ;; | |
10601 | *-*-sunos4* ) | |
10602 | SHARED_LD="${CC} -shared -o" | |
10603 | PIC_FLAG="-fPIC" | |
10604 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10605 | WX_ALL="CREATE_LINKS" | |
10606 | ;; | |
10607 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* ) | |
10608 | SHARED_LD="${CC} -shared -o" | |
10609 | PIC_FLAG="-fPIC" | |
10610 | if test "$wxUSE_OPENGL" = "yes"; then | |
10611 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10612 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10613 | else | |
10614 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10615 | WX_ALL="CREATE_LINKS" | |
10616 | fi | |
10617 | ;; | |
10618 | *-*-darwin* ) | |
10619 | SHARED_LD="${CXX} -dynamiclib -o" | |
10620 | PIC_FLAG="-dynamic -fPIC" | |
10621 | if test "$wxUSE_OPENGL" = "yes"; then | |
10622 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10623 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10624 | else | |
10625 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10626 | WX_ALL="CREATE_LINKS" | |
10627 | fi | |
10628 | WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r" | |
10629 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10630 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10631 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10632 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" | |
10633 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
10634 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10635 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" | |
10636 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
10637 | ;; | |
10638 | *-*-osf* ) | |
10639 | SHARED_LD="${CXX} -shared -o" | |
10640 | PIC_FLAG="-fPIC" | |
10641 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10642 | WX_ALL="CREATE_LINKS" | |
10643 | ;; | |
10644 | *-*-dgux5* ) | |
10645 | SHARED_LD="${CXX} -shared -o" | |
10646 | PIC_FLAG="-fPIC" | |
10647 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10648 | WX_ALL="CREATE_LINKS" | |
10649 | ;; | |
10650 | *-*-sysv5* ) | |
10651 | SHARED_LD="${CC} -shared -o" | |
10652 | PIC_FLAG="-fPIC" | |
10653 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10654 | WX_ALL="CREATE_LINKS" | |
10655 | ;; | |
10656 | *-*-aix* ) | |
10657 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10658 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
10659 | ;; | |
10660 | *-*-cygwin* ) | |
10661 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
10662 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
10663 | if test "$wxUSE_OPENGL" = "yes"; then | |
10664 | WX_ALL_INSTALLED="preinstall_gl" | |
10665 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10666 | else | |
10667 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10668 | fi | |
10669 | ;; | |
10670 | *-*-mingw32* ) | |
10671 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
10672 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
10673 | if test "$wxUSE_OPENGL" = "yes"; then | |
10674 | WX_ALL_INSTALLED="preinstall_gl" | |
10675 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10676 | else | |
10677 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10678 | fi | |
10679 | ;; | |
10680 | *-pc-os2_emx ) | |
10681 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
10682 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10683 | ;; | |
10684 | *-*-beos* ) | |
10685 | SHARED_LD="${LD} -shared -o" | |
10686 | PIC_FLAG="-fPIC" | |
10687 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10688 | WX_ALL="CREATE_LINKS" | |
10689 | ;; | |
10690 | *) | |
10691 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
10692 | esac | |
10693 | ||
10694 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
10695 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
10696 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
10697 | fi | |
10698 | WX_TARGET_LIBRARY_TYPE="so" | |
10699 | else | |
10700 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
10701 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
10702 | ||
10703 | if test "$wxUSE_OPENGL" = "yes"; then | |
10704 | WX_ALL_INSTALLED="preinstall_gl" | |
10705 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10706 | else | |
10707 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10708 | fi | |
10709 | ||
10710 | if test "$wxUSE_GUI" = "no"; then | |
10711 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
10712 | fi | |
10713 | ||
10714 | WX_TARGET_LIBRARY_TYPE="a" | |
10715 | fi | |
10716 | ||
10717 | ||
10718 | for ac_hdr in strings.h | |
10719 | do | |
10720 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10721 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10722 | echo "configure:10723: checking for $ac_hdr" >&5 | |
10723 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10724 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10725 | else | |
10726 | cat > conftest.$ac_ext <<EOF | |
10727 | #line 10728 "configure" | |
10728 | #include "confdefs.h" | |
10729 | #include <$ac_hdr> | |
10730 | EOF | |
10731 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10732 | { (eval echo configure:10733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10733 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10734 | if test -z "$ac_err"; then | |
10735 | rm -rf conftest* | |
10736 | eval "ac_cv_header_$ac_safe=yes" | |
10737 | else | |
10738 | echo "$ac_err" >&5 | |
10739 | echo "configure: failed program was:" >&5 | |
10740 | cat conftest.$ac_ext >&5 | |
10741 | rm -rf conftest* | |
10742 | eval "ac_cv_header_$ac_safe=no" | |
10743 | fi | |
10744 | rm -f conftest* | |
10745 | fi | |
10746 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10747 | echo "$ac_t""yes" 1>&6 | |
10748 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10749 | cat >> confdefs.h <<EOF | |
10750 | #define $ac_tr_hdr 1 | |
10751 | EOF | |
10752 | ||
10753 | else | |
10754 | echo "$ac_t""no" 1>&6 | |
10755 | fi | |
10756 | done | |
10757 | ||
10758 | for ac_hdr in stdlib.h | |
10759 | do | |
10760 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10761 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10762 | echo "configure:10763: checking for $ac_hdr" >&5 | |
10763 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10764 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10765 | else | |
10766 | cat > conftest.$ac_ext <<EOF | |
10767 | #line 10768 "configure" | |
10768 | #include "confdefs.h" | |
10769 | #include <$ac_hdr> | |
10770 | EOF | |
10771 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10772 | { (eval echo configure:10773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10773 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10774 | if test -z "$ac_err"; then | |
10775 | rm -rf conftest* | |
10776 | eval "ac_cv_header_$ac_safe=yes" | |
10777 | else | |
10778 | echo "$ac_err" >&5 | |
10779 | echo "configure: failed program was:" >&5 | |
10780 | cat conftest.$ac_ext >&5 | |
10781 | rm -rf conftest* | |
10782 | eval "ac_cv_header_$ac_safe=no" | |
10783 | fi | |
10784 | rm -f conftest* | |
10785 | fi | |
10786 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10787 | echo "$ac_t""yes" 1>&6 | |
10788 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10789 | cat >> confdefs.h <<EOF | |
10790 | #define $ac_tr_hdr 1 | |
10791 | EOF | |
10792 | ||
10793 | else | |
10794 | echo "$ac_t""no" 1>&6 | |
10795 | fi | |
10796 | done | |
10797 | ||
10798 | for ac_hdr in unistd.h | |
10799 | do | |
10800 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10801 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10802 | echo "configure:10803: checking for $ac_hdr" >&5 | |
10803 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10804 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10805 | else | |
10806 | cat > conftest.$ac_ext <<EOF | |
10807 | #line 10808 "configure" | |
10808 | #include "confdefs.h" | |
10809 | #include <$ac_hdr> | |
10810 | EOF | |
10811 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10812 | { (eval echo configure:10813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10813 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10814 | if test -z "$ac_err"; then | |
10815 | rm -rf conftest* | |
10816 | eval "ac_cv_header_$ac_safe=yes" | |
10817 | else | |
10818 | echo "$ac_err" >&5 | |
10819 | echo "configure: failed program was:" >&5 | |
10820 | cat conftest.$ac_ext >&5 | |
10821 | rm -rf conftest* | |
10822 | eval "ac_cv_header_$ac_safe=no" | |
10823 | fi | |
10824 | rm -f conftest* | |
10825 | fi | |
10826 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10827 | echo "$ac_t""yes" 1>&6 | |
10828 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10829 | cat >> confdefs.h <<EOF | |
10830 | #define $ac_tr_hdr 1 | |
10831 | EOF | |
10832 | ||
10833 | else | |
10834 | echo "$ac_t""no" 1>&6 | |
10835 | fi | |
10836 | done | |
10837 | ||
10838 | for ac_hdr in wchar.h | |
10839 | do | |
10840 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10841 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10842 | echo "configure:10843: checking for $ac_hdr" >&5 | |
10843 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10844 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10845 | else | |
10846 | cat > conftest.$ac_ext <<EOF | |
10847 | #line 10848 "configure" | |
10848 | #include "confdefs.h" | |
10849 | #include <$ac_hdr> | |
10850 | EOF | |
10851 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10852 | { (eval echo configure:10853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10853 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10854 | if test -z "$ac_err"; then | |
10855 | rm -rf conftest* | |
10856 | eval "ac_cv_header_$ac_safe=yes" | |
10857 | else | |
10858 | echo "$ac_err" >&5 | |
10859 | echo "configure: failed program was:" >&5 | |
10860 | cat conftest.$ac_ext >&5 | |
10861 | rm -rf conftest* | |
10862 | eval "ac_cv_header_$ac_safe=no" | |
10863 | fi | |
10864 | rm -f conftest* | |
10865 | fi | |
10866 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10867 | echo "$ac_t""yes" 1>&6 | |
10868 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10869 | cat >> confdefs.h <<EOF | |
10870 | #define $ac_tr_hdr 1 | |
10871 | EOF | |
10872 | ||
10873 | else | |
10874 | echo "$ac_t""no" 1>&6 | |
10875 | fi | |
10876 | done | |
10877 | ||
10878 | for ac_hdr in wcstr.h | |
10879 | do | |
10880 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10881 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10882 | echo "configure:10883: checking for $ac_hdr" >&5 | |
10883 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10884 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10885 | else | |
10886 | cat > conftest.$ac_ext <<EOF | |
10887 | #line 10888 "configure" | |
10888 | #include "confdefs.h" | |
10889 | #include <$ac_hdr> | |
10890 | EOF | |
10891 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10892 | { (eval echo configure:10893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10893 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10894 | if test -z "$ac_err"; then | |
10895 | rm -rf conftest* | |
10896 | eval "ac_cv_header_$ac_safe=yes" | |
10897 | else | |
10898 | echo "$ac_err" >&5 | |
10899 | echo "configure: failed program was:" >&5 | |
10900 | cat conftest.$ac_ext >&5 | |
10901 | rm -rf conftest* | |
10902 | eval "ac_cv_header_$ac_safe=no" | |
10903 | fi | |
10904 | rm -f conftest* | |
10905 | fi | |
10906 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10907 | echo "$ac_t""yes" 1>&6 | |
10908 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10909 | cat >> confdefs.h <<EOF | |
10910 | #define $ac_tr_hdr 1 | |
10911 | EOF | |
10912 | ||
10913 | else | |
10914 | echo "$ac_t""no" 1>&6 | |
10915 | fi | |
10916 | done | |
10917 | ||
10918 | for ac_hdr in fnmatch.h | |
10919 | do | |
10920 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10921 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10922 | echo "configure:10923: checking for $ac_hdr" >&5 | |
10923 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10924 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10925 | else | |
10926 | cat > conftest.$ac_ext <<EOF | |
10927 | #line 10928 "configure" | |
10928 | #include "confdefs.h" | |
10929 | #include <$ac_hdr> | |
10930 | EOF | |
10931 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10932 | { (eval echo configure:10933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10933 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10934 | if test -z "$ac_err"; then | |
10935 | rm -rf conftest* | |
10936 | eval "ac_cv_header_$ac_safe=yes" | |
10937 | else | |
10938 | echo "$ac_err" >&5 | |
10939 | echo "configure: failed program was:" >&5 | |
10940 | cat conftest.$ac_ext >&5 | |
10941 | rm -rf conftest* | |
10942 | eval "ac_cv_header_$ac_safe=no" | |
10943 | fi | |
10944 | rm -f conftest* | |
10945 | fi | |
10946 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10947 | echo "$ac_t""yes" 1>&6 | |
10948 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10949 | cat >> confdefs.h <<EOF | |
10950 | #define $ac_tr_hdr 1 | |
10951 | EOF | |
10952 | ||
10953 | else | |
10954 | echo "$ac_t""no" 1>&6 | |
10955 | fi | |
10956 | done | |
10957 | ||
10958 | for ac_hdr in iconv.h | |
10959 | do | |
10960 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10961 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10962 | echo "configure:10963: checking for $ac_hdr" >&5 | |
10963 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10965 | else | |
10966 | cat > conftest.$ac_ext <<EOF | |
10967 | #line 10968 "configure" | |
10968 | #include "confdefs.h" | |
10969 | #include <$ac_hdr> | |
10970 | EOF | |
10971 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10972 | { (eval echo configure:10973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10973 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10974 | if test -z "$ac_err"; then | |
10975 | rm -rf conftest* | |
10976 | eval "ac_cv_header_$ac_safe=yes" | |
10977 | else | |
10978 | echo "$ac_err" >&5 | |
10979 | echo "configure: failed program was:" >&5 | |
10980 | cat conftest.$ac_ext >&5 | |
10981 | rm -rf conftest* | |
10982 | eval "ac_cv_header_$ac_safe=no" | |
10983 | fi | |
10984 | rm -f conftest* | |
10985 | fi | |
10986 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10987 | echo "$ac_t""yes" 1>&6 | |
10988 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10989 | cat >> confdefs.h <<EOF | |
10990 | #define $ac_tr_hdr 1 | |
10991 | EOF | |
10992 | ||
10993 | else | |
10994 | echo "$ac_t""no" 1>&6 | |
10995 | fi | |
10996 | done | |
10997 | ||
10998 | for ac_hdr in langinfo.h | |
10999 | do | |
11000 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11001 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
11002 | echo "configure:11003: checking for $ac_hdr" >&5 | |
11003 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11004 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11005 | else | |
11006 | cat > conftest.$ac_ext <<EOF | |
11007 | #line 11008 "configure" | |
11008 | #include "confdefs.h" | |
11009 | #include <$ac_hdr> | |
11010 | EOF | |
11011 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11012 | { (eval echo configure:11013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11013 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11014 | if test -z "$ac_err"; then | |
11015 | rm -rf conftest* | |
11016 | eval "ac_cv_header_$ac_safe=yes" | |
11017 | else | |
11018 | echo "$ac_err" >&5 | |
11019 | echo "configure: failed program was:" >&5 | |
11020 | cat conftest.$ac_ext >&5 | |
11021 | rm -rf conftest* | |
11022 | eval "ac_cv_header_$ac_safe=no" | |
11023 | fi | |
11024 | rm -f conftest* | |
11025 | fi | |
11026 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11027 | echo "$ac_t""yes" 1>&6 | |
11028 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11029 | cat >> confdefs.h <<EOF | |
11030 | #define $ac_tr_hdr 1 | |
11031 | EOF | |
11032 | ||
11033 | else | |
11034 | echo "$ac_t""no" 1>&6 | |
11035 | fi | |
11036 | done | |
11037 | ||
11038 | ||
11039 | if test "$wxUSE_GUI" = "yes"; then | |
11040 | if test "$wxUSE_UNIX" = "yes"; then | |
11041 | for ac_hdr in X11/XKBlib.h | |
11042 | do | |
11043 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11044 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
11045 | echo "configure:11046: checking for $ac_hdr" >&5 | |
11046 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11047 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11048 | else | |
11049 | cat > conftest.$ac_ext <<EOF | |
11050 | #line 11051 "configure" | |
11051 | #include "confdefs.h" | |
11052 | #include <$ac_hdr> | |
11053 | EOF | |
11054 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11055 | { (eval echo configure:11056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11056 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11057 | if test -z "$ac_err"; then | |
11058 | rm -rf conftest* | |
11059 | eval "ac_cv_header_$ac_safe=yes" | |
11060 | else | |
11061 | echo "$ac_err" >&5 | |
11062 | echo "configure: failed program was:" >&5 | |
11063 | cat conftest.$ac_ext >&5 | |
11064 | rm -rf conftest* | |
11065 | eval "ac_cv_header_$ac_safe=no" | |
11066 | fi | |
11067 | rm -f conftest* | |
11068 | fi | |
11069 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11070 | echo "$ac_t""yes" 1>&6 | |
11071 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11072 | cat >> confdefs.h <<EOF | |
11073 | #define $ac_tr_hdr 1 | |
11074 | EOF | |
11075 | ||
11076 | else | |
11077 | echo "$ac_t""no" 1>&6 | |
11078 | fi | |
11079 | done | |
11080 | ||
11081 | fi | |
11082 | fi | |
11083 | ||
11084 | ||
11085 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
11086 | echo "configure:11087: checking for ANSI C header files" >&5 | |
11087 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | |
11088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11089 | else | |
11090 | cat > conftest.$ac_ext <<EOF | |
11091 | #line 11092 "configure" | |
11092 | #include "confdefs.h" | |
11093 | #include <stdlib.h> | |
11094 | #include <stdarg.h> | |
11095 | #include <string.h> | |
11096 | #include <float.h> | |
11097 | EOF | |
11098 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11099 | { (eval echo configure:11100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11100 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11101 | if test -z "$ac_err"; then | |
11102 | rm -rf conftest* | |
11103 | ac_cv_header_stdc=yes | |
11104 | else | |
11105 | echo "$ac_err" >&5 | |
11106 | echo "configure: failed program was:" >&5 | |
11107 | cat conftest.$ac_ext >&5 | |
11108 | rm -rf conftest* | |
11109 | ac_cv_header_stdc=no | |
11110 | fi | |
11111 | rm -f conftest* | |
11112 | ||
11113 | if test $ac_cv_header_stdc = yes; then | |
11114 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11115 | cat > conftest.$ac_ext <<EOF | |
11116 | #line 11117 "configure" | |
11117 | #include "confdefs.h" | |
11118 | #include <string.h> | |
11119 | EOF | |
11120 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11121 | egrep "memchr" >/dev/null 2>&1; then | |
11122 | : | |
11123 | else | |
11124 | rm -rf conftest* | |
11125 | ac_cv_header_stdc=no | |
11126 | fi | |
11127 | rm -f conftest* | |
11128 | ||
11129 | fi | |
11130 | ||
11131 | if test $ac_cv_header_stdc = yes; then | |
11132 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11133 | cat > conftest.$ac_ext <<EOF | |
11134 | #line 11135 "configure" | |
11135 | #include "confdefs.h" | |
11136 | #include <stdlib.h> | |
11137 | EOF | |
11138 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11139 | egrep "free" >/dev/null 2>&1; then | |
11140 | : | |
11141 | else | |
11142 | rm -rf conftest* | |
11143 | ac_cv_header_stdc=no | |
11144 | fi | |
11145 | rm -f conftest* | |
11146 | ||
11147 | fi | |
11148 | ||
11149 | if test $ac_cv_header_stdc = yes; then | |
11150 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11151 | if test "$cross_compiling" = yes; then | |
11152 | : | |
11153 | else | |
11154 | cat > conftest.$ac_ext <<EOF | |
11155 | #line 11156 "configure" | |
11156 | #include "confdefs.h" | |
11157 | #include <ctype.h> | |
11158 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11159 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11160 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
11161 | int main () { int i; for (i = 0; i < 256; i++) | |
11162 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
11163 | exit (0); } | |
11164 | ||
11165 | EOF | |
11166 | if { (eval echo configure:11167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11167 | then | |
11168 | : | |
11169 | else | |
11170 | echo "configure: failed program was:" >&5 | |
11171 | cat conftest.$ac_ext >&5 | |
11172 | rm -fr conftest* | |
11173 | ac_cv_header_stdc=no | |
11174 | fi | |
11175 | rm -fr conftest* | |
11176 | fi | |
11177 | ||
11178 | fi | |
11179 | fi | |
11180 | ||
11181 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
11182 | if test $ac_cv_header_stdc = yes; then | |
11183 | cat >> confdefs.h <<\EOF | |
11184 | #define STDC_HEADERS 1 | |
11185 | EOF | |
11186 | ||
11187 | fi | |
11188 | ||
11189 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
11190 | echo "configure:11191: checking for mode_t" >&5 | |
11191 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then | |
11192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11193 | else | |
11194 | cat > conftest.$ac_ext <<EOF | |
11195 | #line 11196 "configure" | |
11196 | #include "confdefs.h" | |
11197 | #include <sys/types.h> | |
11198 | #if STDC_HEADERS | |
11199 | #include <stdlib.h> | |
11200 | #include <stddef.h> | |
11201 | #endif | |
11202 | EOF | |
11203 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11204 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11205 | rm -rf conftest* | |
11206 | ac_cv_type_mode_t=yes | |
11207 | else | |
11208 | rm -rf conftest* | |
11209 | ac_cv_type_mode_t=no | |
11210 | fi | |
11211 | rm -f conftest* | |
11212 | ||
11213 | fi | |
11214 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
11215 | if test $ac_cv_type_mode_t = no; then | |
11216 | cat >> confdefs.h <<\EOF | |
11217 | #define mode_t int | |
11218 | EOF | |
11219 | ||
11220 | fi | |
11221 | ||
11222 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
11223 | echo "configure:11224: checking for off_t" >&5 | |
11224 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | |
11225 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11226 | else | |
11227 | cat > conftest.$ac_ext <<EOF | |
11228 | #line 11229 "configure" | |
11229 | #include "confdefs.h" | |
11230 | #include <sys/types.h> | |
11231 | #if STDC_HEADERS | |
11232 | #include <stdlib.h> | |
11233 | #include <stddef.h> | |
11234 | #endif | |
11235 | EOF | |
11236 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11237 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11238 | rm -rf conftest* | |
11239 | ac_cv_type_off_t=yes | |
11240 | else | |
11241 | rm -rf conftest* | |
11242 | ac_cv_type_off_t=no | |
11243 | fi | |
11244 | rm -f conftest* | |
11245 | ||
11246 | fi | |
11247 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
11248 | if test $ac_cv_type_off_t = no; then | |
11249 | cat >> confdefs.h <<\EOF | |
11250 | #define off_t long | |
11251 | EOF | |
11252 | ||
11253 | fi | |
11254 | ||
11255 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
11256 | echo "configure:11257: checking for pid_t" >&5 | |
11257 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | |
11258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11259 | else | |
11260 | cat > conftest.$ac_ext <<EOF | |
11261 | #line 11262 "configure" | |
11262 | #include "confdefs.h" | |
11263 | #include <sys/types.h> | |
11264 | #if STDC_HEADERS | |
11265 | #include <stdlib.h> | |
11266 | #include <stddef.h> | |
11267 | #endif | |
11268 | EOF | |
11269 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11270 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11271 | rm -rf conftest* | |
11272 | ac_cv_type_pid_t=yes | |
11273 | else | |
11274 | rm -rf conftest* | |
11275 | ac_cv_type_pid_t=no | |
11276 | fi | |
11277 | rm -f conftest* | |
11278 | ||
11279 | fi | |
11280 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
11281 | if test $ac_cv_type_pid_t = no; then | |
11282 | cat >> confdefs.h <<\EOF | |
11283 | #define pid_t int | |
11284 | EOF | |
11285 | ||
11286 | fi | |
11287 | ||
11288 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
11289 | echo "configure:11290: checking for size_t" >&5 | |
11290 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | |
11291 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11292 | else | |
11293 | cat > conftest.$ac_ext <<EOF | |
11294 | #line 11295 "configure" | |
11295 | #include "confdefs.h" | |
11296 | #include <sys/types.h> | |
11297 | #if STDC_HEADERS | |
11298 | #include <stdlib.h> | |
11299 | #include <stddef.h> | |
11300 | #endif | |
11301 | EOF | |
11302 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11303 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11304 | rm -rf conftest* | |
11305 | ac_cv_type_size_t=yes | |
11306 | else | |
11307 | rm -rf conftest* | |
11308 | ac_cv_type_size_t=no | |
11309 | fi | |
11310 | rm -f conftest* | |
11311 | ||
11312 | fi | |
11313 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
11314 | if test $ac_cv_type_size_t = no; then | |
11315 | cat >> confdefs.h <<\EOF | |
11316 | #define size_t unsigned | |
11317 | EOF | |
11318 | ||
11319 | fi | |
11320 | ||
11321 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
11322 | echo "configure:11323: checking for uid_t in sys/types.h" >&5 | |
11323 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then | |
11324 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11325 | else | |
11326 | cat > conftest.$ac_ext <<EOF | |
11327 | #line 11328 "configure" | |
11328 | #include "confdefs.h" | |
11329 | #include <sys/types.h> | |
11330 | EOF | |
11331 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11332 | egrep "uid_t" >/dev/null 2>&1; then | |
11333 | rm -rf conftest* | |
11334 | ac_cv_type_uid_t=yes | |
11335 | else | |
11336 | rm -rf conftest* | |
11337 | ac_cv_type_uid_t=no | |
11338 | fi | |
11339 | rm -f conftest* | |
11340 | ||
11341 | fi | |
11342 | ||
11343 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
11344 | if test $ac_cv_type_uid_t = no; then | |
11345 | cat >> confdefs.h <<\EOF | |
11346 | #define uid_t int | |
11347 | EOF | |
11348 | ||
11349 | cat >> confdefs.h <<\EOF | |
11350 | #define gid_t int | |
11351 | EOF | |
11352 | ||
11353 | fi | |
11354 | ||
11355 | ||
11356 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 | |
11357 | echo "configure:11358: checking for wchar_t" >&5 | |
11358 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then | |
11359 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11360 | else | |
11361 | ||
11362 | cat > conftest.$ac_ext <<EOF | |
11363 | #line 11364 "configure" | |
11364 | #include "confdefs.h" | |
11365 | #include <wchar.h> | |
11366 | int main() { | |
11367 | ||
11368 | wchar_t wc, *ws; | |
11369 | wc = L'a'; | |
11370 | ws = L"Hello, world!"; | |
11371 | ||
11372 | ; return 0; } | |
11373 | EOF | |
11374 | if { (eval echo configure:11375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11375 | rm -rf conftest* | |
11376 | wx_cv_type_wchar_t=yes | |
11377 | else | |
11378 | echo "configure: failed program was:" >&5 | |
11379 | cat conftest.$ac_ext >&5 | |
11380 | rm -rf conftest* | |
11381 | cat > conftest.$ac_ext <<EOF | |
11382 | #line 11383 "configure" | |
11383 | #include "confdefs.h" | |
11384 | #include <stdlib.h> | |
11385 | int main() { | |
11386 | ||
11387 | wchar_t wc, *ws; | |
11388 | wc = L'a'; | |
11389 | ws = L"Hello, world!"; | |
11390 | ||
11391 | ; return 0; } | |
11392 | EOF | |
11393 | if { (eval echo configure:11394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11394 | rm -rf conftest* | |
11395 | wx_cv_type_wchar_t=yes | |
11396 | else | |
11397 | echo "configure: failed program was:" >&5 | |
11398 | cat conftest.$ac_ext >&5 | |
11399 | rm -rf conftest* | |
11400 | wx_cv_type_wchar_t=no | |
11401 | fi | |
11402 | rm -f conftest* | |
11403 | ||
11404 | fi | |
11405 | rm -f conftest* | |
11406 | ||
11407 | fi | |
11408 | ||
11409 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
11410 | ||
11411 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
11412 | cat >> confdefs.h <<\EOF | |
11413 | #define wxUSE_WCHAR_T 1 | |
11414 | EOF | |
11415 | ||
11416 | fi | |
11417 | ||
11418 | ||
11419 | ac_ext=C | |
11420 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11421 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11422 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11423 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11424 | cross_compiling=$ac_cv_prog_cxx_cross | |
11425 | ||
11426 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 | |
11427 | echo "configure:11428: checking if size_t is unsigned int" >&5 | |
11428 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then | |
11429 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11430 | else | |
11431 | cat > conftest.$ac_ext <<EOF | |
11432 | #line 11433 "configure" | |
11433 | #include "confdefs.h" | |
11434 | #include <stddef.h> | |
11435 | int main() { | |
11436 | ||
11437 | return 0; } | |
11438 | ||
11439 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
11440 | ||
11441 | int bar() { | |
11442 | ||
11443 | ; return 0; } | |
11444 | EOF | |
11445 | if { (eval echo configure:11446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11446 | rm -rf conftest* | |
11447 | wx_cv_size_t_is_uint=no | |
11448 | else | |
11449 | echo "configure: failed program was:" >&5 | |
11450 | cat conftest.$ac_ext >&5 | |
11451 | rm -rf conftest* | |
11452 | wx_cv_size_t_is_uint=yes | |
11453 | ||
11454 | fi | |
11455 | rm -f conftest* | |
11456 | ||
11457 | fi | |
11458 | ||
11459 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
11460 | ||
11461 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
11462 | cat >> confdefs.h <<\EOF | |
11463 | #define wxSIZE_T_IS_UINT 1 | |
11464 | EOF | |
11465 | ||
11466 | else | |
11467 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
11468 | echo "configure:11469: checking if size_t is unsigned long" >&5 | |
11469 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then | |
11470 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11471 | else | |
11472 | cat > conftest.$ac_ext <<EOF | |
11473 | #line 11474 "configure" | |
11474 | #include "confdefs.h" | |
11475 | #include <stddef.h> | |
11476 | int main() { | |
11477 | ||
11478 | return 0; } | |
11479 | ||
11480 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
11481 | ||
11482 | int bar() { | |
11483 | ||
11484 | ; return 0; } | |
11485 | EOF | |
11486 | if { (eval echo configure:11487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11487 | rm -rf conftest* | |
11488 | wx_cv_size_t_is_ulong=no | |
11489 | else | |
11490 | echo "configure: failed program was:" >&5 | |
11491 | cat conftest.$ac_ext >&5 | |
11492 | rm -rf conftest* | |
11493 | wx_cv_size_t_is_ulong=yes | |
11494 | ||
11495 | fi | |
11496 | rm -f conftest* | |
11497 | ||
11498 | fi | |
11499 | ||
11500 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
11501 | ||
11502 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
11503 | cat >> confdefs.h <<\EOF | |
11504 | #define wxSIZE_T_IS_ULONG 1 | |
11505 | EOF | |
11506 | ||
11507 | fi | |
11508 | fi | |
11509 | ||
11510 | ac_ext=c | |
11511 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11512 | ac_cpp='$CPP $CPPFLAGS' | |
11513 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11514 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11515 | cross_compiling=$ac_cv_prog_cc_cross | |
11516 | ||
11517 | ||
11518 | ||
11519 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 | |
11520 | echo "configure:11521: checking for pw_gecos in struct passwd" >&5 | |
11521 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then | |
11522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11523 | else | |
11524 | ||
11525 | cat > conftest.$ac_ext <<EOF | |
11526 | #line 11527 "configure" | |
11527 | #include "confdefs.h" | |
11528 | #include <pwd.h> | |
11529 | int main() { | |
11530 | ||
11531 | char *p; | |
11532 | struct passwd *pw; | |
11533 | p = pw->pw_gecos; | |
11534 | ||
11535 | ; return 0; } | |
11536 | EOF | |
11537 | if { (eval echo configure:11538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11538 | rm -rf conftest* | |
11539 | ||
11540 | wx_cv_struct_pw_gecos=yes | |
11541 | ||
11542 | else | |
11543 | echo "configure: failed program was:" >&5 | |
11544 | cat conftest.$ac_ext >&5 | |
11545 | rm -rf conftest* | |
11546 | ||
11547 | wx_cv_struct_pw_gecos=no | |
11548 | ||
11549 | ||
11550 | fi | |
11551 | rm -f conftest* | |
11552 | ||
11553 | ||
11554 | fi | |
11555 | ||
11556 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
11557 | ||
11558 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
11559 | cat >> confdefs.h <<\EOF | |
11560 | #define HAVE_PW_GECOS 1 | |
11561 | EOF | |
11562 | ||
11563 | fi | |
11564 | ||
11565 | ||
11566 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
11567 | echo "configure:11568: checking for working const" >&5 | |
11568 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | |
11569 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11570 | else | |
11571 | cat > conftest.$ac_ext <<EOF | |
11572 | #line 11573 "configure" | |
11573 | #include "confdefs.h" | |
11574 | ||
11575 | int main() { | |
11576 | ||
11577 | /* Ultrix mips cc rejects this. */ | |
11578 | typedef int charset[2]; const charset x; | |
11579 | /* SunOS 4.1.1 cc rejects this. */ | |
11580 | char const *const *ccp; | |
11581 | char **p; | |
11582 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11583 | struct point {int x, y;}; | |
11584 | static struct point const zero = {0,0}; | |
11585 | /* AIX XL C 1.02.0.0 rejects this. | |
11586 | It does not let you subtract one const X* pointer from another in an arm | |
11587 | of an if-expression whose if-part is not a constant expression */ | |
11588 | const char *g = "string"; | |
11589 | ccp = &g + (g ? g-g : 0); | |
11590 | /* HPUX 7.0 cc rejects these. */ | |
11591 | ++ccp; | |
11592 | p = (char**) ccp; | |
11593 | ccp = (char const *const *) p; | |
11594 | { /* SCO 3.2v4 cc rejects this. */ | |
11595 | char *t; | |
11596 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11597 | ||
11598 | *t++ = 0; | |
11599 | } | |
11600 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
11601 | int x[] = {25, 17}; | |
11602 | const int *foo = &x[0]; | |
11603 | ++foo; | |
11604 | } | |
11605 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
11606 | typedef const int *iptr; | |
11607 | iptr p = 0; | |
11608 | ++p; | |
11609 | } | |
11610 | { /* AIX XL C 1.02.0.0 rejects this saying | |
11611 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11612 | struct s { int j; const int *ap[3]; }; | |
11613 | struct s *b; b->j = 5; | |
11614 | } | |
11615 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
11616 | const int foo = 10; | |
11617 | } | |
11618 | ||
11619 | ; return 0; } | |
11620 | EOF | |
11621 | if { (eval echo configure:11622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11622 | rm -rf conftest* | |
11623 | ac_cv_c_const=yes | |
11624 | else | |
11625 | echo "configure: failed program was:" >&5 | |
11626 | cat conftest.$ac_ext >&5 | |
11627 | rm -rf conftest* | |
11628 | ac_cv_c_const=no | |
11629 | fi | |
11630 | rm -f conftest* | |
11631 | fi | |
11632 | ||
11633 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
11634 | if test $ac_cv_c_const = no; then | |
11635 | cat >> confdefs.h <<\EOF | |
11636 | #define const | |
11637 | EOF | |
11638 | ||
11639 | fi | |
11640 | ||
11641 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
11642 | echo "configure:11643: checking for inline" >&5 | |
11643 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
11644 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11645 | else | |
11646 | ac_cv_c_inline=no | |
11647 | for ac_kw in inline __inline__ __inline; do | |
11648 | cat > conftest.$ac_ext <<EOF | |
11649 | #line 11650 "configure" | |
11650 | #include "confdefs.h" | |
11651 | ||
11652 | int main() { | |
11653 | } $ac_kw foo() { | |
11654 | ; return 0; } | |
11655 | EOF | |
11656 | if { (eval echo configure:11657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11657 | rm -rf conftest* | |
11658 | ac_cv_c_inline=$ac_kw; break | |
11659 | else | |
11660 | echo "configure: failed program was:" >&5 | |
11661 | cat conftest.$ac_ext >&5 | |
11662 | fi | |
11663 | rm -f conftest* | |
11664 | done | |
11665 | ||
11666 | fi | |
11667 | ||
11668 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
11669 | case "$ac_cv_c_inline" in | |
11670 | inline | yes) ;; | |
11671 | no) cat >> confdefs.h <<\EOF | |
11672 | #define inline | |
11673 | EOF | |
11674 | ;; | |
11675 | *) cat >> confdefs.h <<EOF | |
11676 | #define inline $ac_cv_c_inline | |
11677 | EOF | |
11678 | ;; | |
11679 | esac | |
11680 | ||
11681 | ||
11682 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
11683 | echo "configure:11684: checking size of char" >&5 | |
11684 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | |
11685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11686 | else | |
11687 | if test "$cross_compiling" = yes; then | |
11688 | ac_cv_sizeof_char=1 | |
11689 | else | |
11690 | cat > conftest.$ac_ext <<EOF | |
11691 | #line 11692 "configure" | |
11692 | #include "confdefs.h" | |
11693 | #include <stdio.h> | |
11694 | main() | |
11695 | { | |
11696 | FILE *f=fopen("conftestval", "w"); | |
11697 | if (!f) exit(1); | |
11698 | fprintf(f, "%d\n", sizeof(char)); | |
11699 | exit(0); | |
11700 | } | |
11701 | EOF | |
11702 | if { (eval echo configure:11703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11703 | then | |
11704 | ac_cv_sizeof_char=`cat conftestval` | |
11705 | else | |
11706 | echo "configure: failed program was:" >&5 | |
11707 | cat conftest.$ac_ext >&5 | |
11708 | rm -fr conftest* | |
11709 | ac_cv_sizeof_char=0 | |
11710 | fi | |
11711 | rm -fr conftest* | |
11712 | fi | |
11713 | ||
11714 | fi | |
11715 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
11716 | cat >> confdefs.h <<EOF | |
11717 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
11718 | EOF | |
11719 | ||
11720 | ||
11721 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
11722 | echo "configure:11723: checking size of short" >&5 | |
11723 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | |
11724 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11725 | else | |
11726 | if test "$cross_compiling" = yes; then | |
11727 | ac_cv_sizeof_short=2 | |
11728 | else | |
11729 | cat > conftest.$ac_ext <<EOF | |
11730 | #line 11731 "configure" | |
11731 | #include "confdefs.h" | |
11732 | #include <stdio.h> | |
11733 | main() | |
11734 | { | |
11735 | FILE *f=fopen("conftestval", "w"); | |
11736 | if (!f) exit(1); | |
11737 | fprintf(f, "%d\n", sizeof(short)); | |
11738 | exit(0); | |
11739 | } | |
11740 | EOF | |
11741 | if { (eval echo configure:11742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11742 | then | |
11743 | ac_cv_sizeof_short=`cat conftestval` | |
11744 | else | |
11745 | echo "configure: failed program was:" >&5 | |
11746 | cat conftest.$ac_ext >&5 | |
11747 | rm -fr conftest* | |
11748 | ac_cv_sizeof_short=0 | |
11749 | fi | |
11750 | rm -fr conftest* | |
11751 | fi | |
11752 | ||
11753 | fi | |
11754 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
11755 | cat >> confdefs.h <<EOF | |
11756 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
11757 | EOF | |
11758 | ||
11759 | ||
11760 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
11761 | echo "configure:11762: checking size of int *" >&5 | |
11762 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then | |
11763 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11764 | else | |
11765 | if test "$cross_compiling" = yes; then | |
11766 | ac_cv_sizeof_int_p=4 | |
11767 | else | |
11768 | cat > conftest.$ac_ext <<EOF | |
11769 | #line 11770 "configure" | |
11770 | #include "confdefs.h" | |
11771 | #include <stdio.h> | |
11772 | main() | |
11773 | { | |
11774 | FILE *f=fopen("conftestval", "w"); | |
11775 | if (!f) exit(1); | |
11776 | fprintf(f, "%d\n", sizeof(int *)); | |
11777 | exit(0); | |
11778 | } | |
11779 | EOF | |
11780 | if { (eval echo configure:11781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11781 | then | |
11782 | ac_cv_sizeof_int_p=`cat conftestval` | |
11783 | else | |
11784 | echo "configure: failed program was:" >&5 | |
11785 | cat conftest.$ac_ext >&5 | |
11786 | rm -fr conftest* | |
11787 | ac_cv_sizeof_int_p=0 | |
11788 | fi | |
11789 | rm -fr conftest* | |
11790 | fi | |
11791 | ||
11792 | fi | |
11793 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
11794 | cat >> confdefs.h <<EOF | |
11795 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
11796 | EOF | |
11797 | ||
11798 | ||
11799 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
11800 | echo "configure:11801: checking size of int" >&5 | |
11801 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | |
11802 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11803 | else | |
11804 | if test "$cross_compiling" = yes; then | |
11805 | ac_cv_sizeof_int=4 | |
11806 | else | |
11807 | cat > conftest.$ac_ext <<EOF | |
11808 | #line 11809 "configure" | |
11809 | #include "confdefs.h" | |
11810 | #include <stdio.h> | |
11811 | main() | |
11812 | { | |
11813 | FILE *f=fopen("conftestval", "w"); | |
11814 | if (!f) exit(1); | |
11815 | fprintf(f, "%d\n", sizeof(int)); | |
11816 | exit(0); | |
11817 | } | |
11818 | EOF | |
11819 | if { (eval echo configure:11820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11820 | then | |
11821 | ac_cv_sizeof_int=`cat conftestval` | |
11822 | else | |
11823 | echo "configure: failed program was:" >&5 | |
11824 | cat conftest.$ac_ext >&5 | |
11825 | rm -fr conftest* | |
11826 | ac_cv_sizeof_int=0 | |
11827 | fi | |
11828 | rm -fr conftest* | |
11829 | fi | |
11830 | ||
11831 | fi | |
11832 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
11833 | cat >> confdefs.h <<EOF | |
11834 | #define SIZEOF_INT $ac_cv_sizeof_int | |
11835 | EOF | |
11836 | ||
11837 | ||
11838 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
11839 | echo "configure:11840: checking size of long" >&5 | |
11840 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | |
11841 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11842 | else | |
11843 | if test "$cross_compiling" = yes; then | |
11844 | ac_cv_sizeof_long=4 | |
11845 | else | |
11846 | cat > conftest.$ac_ext <<EOF | |
11847 | #line 11848 "configure" | |
11848 | #include "confdefs.h" | |
11849 | #include <stdio.h> | |
11850 | main() | |
11851 | { | |
11852 | FILE *f=fopen("conftestval", "w"); | |
11853 | if (!f) exit(1); | |
11854 | fprintf(f, "%d\n", sizeof(long)); | |
11855 | exit(0); | |
11856 | } | |
11857 | EOF | |
11858 | if { (eval echo configure:11859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11859 | then | |
11860 | ac_cv_sizeof_long=`cat conftestval` | |
11861 | else | |
11862 | echo "configure: failed program was:" >&5 | |
11863 | cat conftest.$ac_ext >&5 | |
11864 | rm -fr conftest* | |
11865 | ac_cv_sizeof_long=0 | |
11866 | fi | |
11867 | rm -fr conftest* | |
11868 | fi | |
11869 | ||
11870 | fi | |
11871 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
11872 | cat >> confdefs.h <<EOF | |
11873 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
11874 | EOF | |
11875 | ||
11876 | ||
11877 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
11878 | echo "configure:11879: checking size of long long" >&5 | |
11879 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
11880 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11881 | else | |
11882 | if test "$cross_compiling" = yes; then | |
11883 | ac_cv_sizeof_long_long=0 | |
11884 | else | |
11885 | cat > conftest.$ac_ext <<EOF | |
11886 | #line 11887 "configure" | |
11887 | #include "confdefs.h" | |
11888 | #include <stdio.h> | |
11889 | main() | |
11890 | { | |
11891 | FILE *f=fopen("conftestval", "w"); | |
11892 | if (!f) exit(1); | |
11893 | fprintf(f, "%d\n", sizeof(long long)); | |
11894 | exit(0); | |
11895 | } | |
11896 | EOF | |
11897 | if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11898 | then | |
11899 | ac_cv_sizeof_long_long=`cat conftestval` | |
11900 | else | |
11901 | echo "configure: failed program was:" >&5 | |
11902 | cat conftest.$ac_ext >&5 | |
11903 | rm -fr conftest* | |
11904 | ac_cv_sizeof_long_long=0 | |
11905 | fi | |
11906 | rm -fr conftest* | |
11907 | fi | |
11908 | ||
11909 | fi | |
11910 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
11911 | cat >> confdefs.h <<EOF | |
11912 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
11913 | EOF | |
11914 | ||
11915 | ||
11916 | ||
11917 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
11918 | echo "configure:11919: checking size of wchar_t" >&5 | |
11919 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then | |
11920 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11921 | else | |
11922 | ||
11923 | if test "$cross_compiling" = yes; then | |
11924 | wx_cv_sizeof_wchar_t=4 | |
11925 | ||
11926 | else | |
11927 | cat > conftest.$ac_ext <<EOF | |
11928 | #line 11929 "configure" | |
11929 | #include "confdefs.h" | |
11930 | ||
11931 | #ifdef HAVE_WCHAR_H | |
11932 | # include <wchar.h> | |
11933 | #endif | |
11934 | #ifdef HAVE_STDLIB_H | |
11935 | # include <stdlib.h> | |
11936 | #endif | |
11937 | #include <stdio.h> | |
11938 | int main() | |
11939 | { | |
11940 | FILE *f=fopen("conftestval", "w"); | |
11941 | if (!f) exit(1); | |
11942 | fprintf(f, "%i", sizeof(wchar_t)); | |
11943 | exit(0); | |
11944 | } | |
11945 | ||
11946 | EOF | |
11947 | if { (eval echo configure:11948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
11948 | then | |
11949 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
11950 | else | |
11951 | echo "configure: failed program was:" >&5 | |
11952 | cat conftest.$ac_ext >&5 | |
11953 | rm -fr conftest* | |
11954 | wx_cv_sizeof_wchar_t=0 | |
11955 | fi | |
11956 | rm -fr conftest* | |
11957 | fi | |
11958 | ||
11959 | ||
11960 | fi | |
11961 | ||
11962 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
11963 | ||
11964 | cat >> confdefs.h <<EOF | |
11965 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
11966 | EOF | |
11967 | ||
11968 | ||
11969 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
11970 | echo "configure:11971: checking whether byte ordering is bigendian" >&5 | |
11971 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then | |
11972 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11973 | else | |
11974 | ac_cv_c_bigendian=unknown | |
11975 | # See if sys/param.h defines the BYTE_ORDER macro. | |
11976 | cat > conftest.$ac_ext <<EOF | |
11977 | #line 11978 "configure" | |
11978 | #include "confdefs.h" | |
11979 | #include <sys/types.h> | |
11980 | #include <sys/param.h> | |
11981 | int main() { | |
11982 | ||
11983 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
11984 | bogus endian macros | |
11985 | #endif | |
11986 | ; return 0; } | |
11987 | EOF | |
11988 | if { (eval echo configure:11989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11989 | rm -rf conftest* | |
11990 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
11991 | cat > conftest.$ac_ext <<EOF | |
11992 | #line 11993 "configure" | |
11993 | #include "confdefs.h" | |
11994 | #include <sys/types.h> | |
11995 | #include <sys/param.h> | |
11996 | int main() { | |
11997 | ||
11998 | #if BYTE_ORDER != BIG_ENDIAN | |
11999 | not big endian | |
12000 | #endif | |
12001 | ; return 0; } | |
12002 | EOF | |
12003 | if { (eval echo configure:12004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12004 | rm -rf conftest* | |
12005 | ac_cv_c_bigendian=yes | |
12006 | else | |
12007 | echo "configure: failed program was:" >&5 | |
12008 | cat conftest.$ac_ext >&5 | |
12009 | rm -rf conftest* | |
12010 | ac_cv_c_bigendian=no | |
12011 | fi | |
12012 | rm -f conftest* | |
12013 | else | |
12014 | echo "configure: failed program was:" >&5 | |
12015 | cat conftest.$ac_ext >&5 | |
12016 | fi | |
12017 | rm -f conftest* | |
12018 | if test $ac_cv_c_bigendian = unknown; then | |
12019 | if test "$cross_compiling" = yes; then | |
12020 | ac_cv_c_bigendian=unknown | |
12021 | else | |
12022 | cat > conftest.$ac_ext <<EOF | |
12023 | #line 12024 "configure" | |
12024 | #include "confdefs.h" | |
12025 | main () { | |
12026 | /* Are we little or big endian? From Harbison&Steele. */ | |
12027 | union | |
12028 | { | |
12029 | long l; | |
12030 | char c[sizeof (long)]; | |
12031 | } u; | |
12032 | u.l = 1; | |
12033 | exit (u.c[sizeof (long) - 1] == 1); | |
12034 | } | |
12035 | EOF | |
12036 | if { (eval echo configure:12037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
12037 | then | |
12038 | ac_cv_c_bigendian=no | |
12039 | else | |
12040 | echo "configure: failed program was:" >&5 | |
12041 | cat conftest.$ac_ext >&5 | |
12042 | rm -fr conftest* | |
12043 | ac_cv_c_bigendian=yes | |
12044 | fi | |
12045 | rm -fr conftest* | |
12046 | fi | |
12047 | ||
12048 | fi | |
12049 | fi | |
12050 | ||
12051 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
12052 | if test $ac_cv_c_bigendian = unknown; then | |
12053 | 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 | |
12054 | fi | |
12055 | if test $ac_cv_c_bigendian = yes; then | |
12056 | cat >> confdefs.h <<\EOF | |
12057 | #define WORDS_BIGENDIAN 1 | |
12058 | EOF | |
12059 | ||
12060 | fi | |
12061 | ||
12062 | ||
12063 | ||
12064 | if test "$cross_compiling" = "yes"; then | |
12065 | cat >> confdefs.h <<\EOF | |
12066 | #define wxUSE_IOSTREAMH 1 | |
12067 | EOF | |
12068 | ||
12069 | else | |
12070 | ||
12071 | ac_ext=C | |
12072 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12073 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12074 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12075 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12076 | cross_compiling=$ac_cv_prog_cxx_cross | |
12077 | ||
12078 | ||
12079 | for ac_hdr in iostream | |
12080 | do | |
12081 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12082 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12083 | echo "configure:12084: checking for $ac_hdr" >&5 | |
12084 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12085 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12086 | else | |
12087 | cat > conftest.$ac_ext <<EOF | |
12088 | #line 12089 "configure" | |
12089 | #include "confdefs.h" | |
12090 | #include <$ac_hdr> | |
12091 | EOF | |
12092 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12093 | { (eval echo configure:12094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12094 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12095 | if test -z "$ac_err"; then | |
12096 | rm -rf conftest* | |
12097 | eval "ac_cv_header_$ac_safe=yes" | |
12098 | else | |
12099 | echo "$ac_err" >&5 | |
12100 | echo "configure: failed program was:" >&5 | |
12101 | cat conftest.$ac_ext >&5 | |
12102 | rm -rf conftest* | |
12103 | eval "ac_cv_header_$ac_safe=no" | |
12104 | fi | |
12105 | rm -f conftest* | |
12106 | fi | |
12107 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12108 | echo "$ac_t""yes" 1>&6 | |
12109 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12110 | cat >> confdefs.h <<EOF | |
12111 | #define $ac_tr_hdr 1 | |
12112 | EOF | |
12113 | ||
12114 | else | |
12115 | echo "$ac_t""no" 1>&6 | |
12116 | fi | |
12117 | done | |
12118 | ||
12119 | ||
12120 | if test "$ac_cv_header_iostream" = "yes" ; then | |
12121 | : | |
12122 | else | |
12123 | cat >> confdefs.h <<\EOF | |
12124 | #define wxUSE_IOSTREAMH 1 | |
12125 | EOF | |
12126 | ||
12127 | fi | |
12128 | ||
12129 | ac_ext=c | |
12130 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12131 | ac_cpp='$CPP $CPPFLAGS' | |
12132 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12133 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12134 | cross_compiling=$ac_cv_prog_cc_cross | |
12135 | ||
12136 | fi | |
12137 | ||
12138 | ||
12139 | ||
12140 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
12141 | echo "configure:12142: checking if C++ compiler supports bool" >&5 | |
12142 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then | |
12143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12144 | else | |
12145 | ||
12146 | ||
12147 | ac_ext=C | |
12148 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12149 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12150 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12151 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12152 | cross_compiling=$ac_cv_prog_cxx_cross | |
12153 | ||
12154 | ||
12155 | cat > conftest.$ac_ext <<EOF | |
12156 | #line 12157 "configure" | |
12157 | #include "confdefs.h" | |
12158 | ||
12159 | ||
12160 | int main() { | |
12161 | ||
12162 | bool b = true; | |
12163 | ||
12164 | return 0; | |
12165 | ||
12166 | ; return 0; } | |
12167 | EOF | |
12168 | if { (eval echo configure:12169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12169 | rm -rf conftest* | |
12170 | ||
12171 | wx_cv_cpp_bool=yes | |
12172 | ||
12173 | else | |
12174 | echo "configure: failed program was:" >&5 | |
12175 | cat conftest.$ac_ext >&5 | |
12176 | rm -rf conftest* | |
12177 | ||
12178 | wx_cv_cpp_bool=no | |
12179 | ||
12180 | ||
12181 | fi | |
12182 | rm -f conftest* | |
12183 | ||
12184 | ac_ext=c | |
12185 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12186 | ac_cpp='$CPP $CPPFLAGS' | |
12187 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12188 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12189 | cross_compiling=$ac_cv_prog_cc_cross | |
12190 | ||
12191 | ||
12192 | fi | |
12193 | ||
12194 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
12195 | ||
12196 | if test "$wx_cv_cpp_bool" = "yes"; then | |
12197 | cat >> confdefs.h <<\EOF | |
12198 | #define HAVE_BOOL 1 | |
12199 | EOF | |
12200 | ||
12201 | fi | |
12202 | ||
12203 | ||
12204 | ||
12205 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
12206 | echo "configure:12207: checking for wcslen in -lc" >&5 | |
12207 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` | |
12208 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12209 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12210 | else | |
12211 | ac_save_LIBS="$LIBS" | |
12212 | LIBS="-lc $LIBS" | |
12213 | cat > conftest.$ac_ext <<EOF | |
12214 | #line 12215 "configure" | |
12215 | #include "confdefs.h" | |
12216 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12217 | /* We use char because int might match the return type of a gcc2 | |
12218 | builtin and then its argument prototype would still apply. */ | |
12219 | char wcslen(); | |
12220 | ||
12221 | int main() { | |
12222 | wcslen() | |
12223 | ; return 0; } | |
12224 | EOF | |
12225 | if { (eval echo configure:12226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12226 | rm -rf conftest* | |
12227 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12228 | else | |
12229 | echo "configure: failed program was:" >&5 | |
12230 | cat conftest.$ac_ext >&5 | |
12231 | rm -rf conftest* | |
12232 | eval "ac_cv_lib_$ac_lib_var=no" | |
12233 | fi | |
12234 | rm -f conftest* | |
12235 | LIBS="$ac_save_LIBS" | |
12236 | ||
12237 | fi | |
12238 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12239 | echo "$ac_t""yes" 1>&6 | |
12240 | ||
12241 | cat >> confdefs.h <<\EOF | |
12242 | #define HAVE_WCSLEN 1 | |
12243 | EOF | |
12244 | ||
12245 | WCHAR_LINK="" | |
12246 | ||
12247 | else | |
12248 | echo "$ac_t""no" 1>&6 | |
12249 | ||
12250 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
12251 | echo "configure:12252: checking for wcslen in -lw" >&5 | |
12252 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` | |
12253 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12255 | else | |
12256 | ac_save_LIBS="$LIBS" | |
12257 | LIBS="-lw $LIBS" | |
12258 | cat > conftest.$ac_ext <<EOF | |
12259 | #line 12260 "configure" | |
12260 | #include "confdefs.h" | |
12261 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12262 | /* We use char because int might match the return type of a gcc2 | |
12263 | builtin and then its argument prototype would still apply. */ | |
12264 | char wcslen(); | |
12265 | ||
12266 | int main() { | |
12267 | wcslen() | |
12268 | ; return 0; } | |
12269 | EOF | |
12270 | if { (eval echo configure:12271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12271 | rm -rf conftest* | |
12272 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12273 | else | |
12274 | echo "configure: failed program was:" >&5 | |
12275 | cat conftest.$ac_ext >&5 | |
12276 | rm -rf conftest* | |
12277 | eval "ac_cv_lib_$ac_lib_var=no" | |
12278 | fi | |
12279 | rm -f conftest* | |
12280 | LIBS="$ac_save_LIBS" | |
12281 | ||
12282 | fi | |
12283 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12284 | echo "$ac_t""yes" 1>&6 | |
12285 | ||
12286 | cat >> confdefs.h <<\EOF | |
12287 | #define HAVE_WCSLEN 1 | |
12288 | EOF | |
12289 | ||
12290 | WCHAR_LINK="-lw" | |
12291 | ||
12292 | else | |
12293 | echo "$ac_t""no" 1>&6 | |
12294 | fi | |
12295 | ||
12296 | ||
12297 | fi | |
12298 | ||
12299 | ||
12300 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
12301 | echo "configure:12302: checking for vprintf" >&5 | |
12302 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then | |
12303 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12304 | else | |
12305 | cat > conftest.$ac_ext <<EOF | |
12306 | #line 12307 "configure" | |
12307 | #include "confdefs.h" | |
12308 | /* System header to define __stub macros and hopefully few prototypes, | |
12309 | which can conflict with char vprintf(); below. */ | |
12310 | #include <assert.h> | |
12311 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12312 | /* We use char because int might match the return type of a gcc2 | |
12313 | builtin and then its argument prototype would still apply. */ | |
12314 | char vprintf(); | |
12315 | ||
12316 | int main() { | |
12317 | ||
12318 | /* The GNU C library defines this for functions which it implements | |
12319 | to always fail with ENOSYS. Some functions are actually named | |
12320 | something starting with __ and the normal name is an alias. */ | |
12321 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
12322 | choke me | |
12323 | #else | |
12324 | vprintf(); | |
12325 | #endif | |
12326 | ||
12327 | ; return 0; } | |
12328 | EOF | |
12329 | if { (eval echo configure:12330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12330 | rm -rf conftest* | |
12331 | eval "ac_cv_func_vprintf=yes" | |
12332 | else | |
12333 | echo "configure: failed program was:" >&5 | |
12334 | cat conftest.$ac_ext >&5 | |
12335 | rm -rf conftest* | |
12336 | eval "ac_cv_func_vprintf=no" | |
12337 | fi | |
12338 | rm -f conftest* | |
12339 | fi | |
12340 | ||
12341 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
12342 | echo "$ac_t""yes" 1>&6 | |
12343 | cat >> confdefs.h <<\EOF | |
12344 | #define HAVE_VPRINTF 1 | |
12345 | EOF | |
12346 | ||
12347 | else | |
12348 | echo "$ac_t""no" 1>&6 | |
12349 | fi | |
12350 | ||
12351 | if test "$ac_cv_func_vprintf" != yes; then | |
12352 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
12353 | echo "configure:12354: checking for _doprnt" >&5 | |
12354 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then | |
12355 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12356 | else | |
12357 | cat > conftest.$ac_ext <<EOF | |
12358 | #line 12359 "configure" | |
12359 | #include "confdefs.h" | |
12360 | /* System header to define __stub macros and hopefully few prototypes, | |
12361 | which can conflict with char _doprnt(); below. */ | |
12362 | #include <assert.h> | |
12363 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12364 | /* We use char because int might match the return type of a gcc2 | |
12365 | builtin and then its argument prototype would still apply. */ | |
12366 | char _doprnt(); | |
12367 | ||
12368 | int main() { | |
12369 | ||
12370 | /* The GNU C library defines this for functions which it implements | |
12371 | to always fail with ENOSYS. Some functions are actually named | |
12372 | something starting with __ and the normal name is an alias. */ | |
12373 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
12374 | choke me | |
12375 | #else | |
12376 | _doprnt(); | |
12377 | #endif | |
12378 | ||
12379 | ; return 0; } | |
12380 | EOF | |
12381 | if { (eval echo configure:12382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12382 | rm -rf conftest* | |
12383 | eval "ac_cv_func__doprnt=yes" | |
12384 | else | |
12385 | echo "configure: failed program was:" >&5 | |
12386 | cat conftest.$ac_ext >&5 | |
12387 | rm -rf conftest* | |
12388 | eval "ac_cv_func__doprnt=no" | |
12389 | fi | |
12390 | rm -f conftest* | |
12391 | fi | |
12392 | ||
12393 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
12394 | echo "$ac_t""yes" 1>&6 | |
12395 | cat >> confdefs.h <<\EOF | |
12396 | #define HAVE_DOPRNT 1 | |
12397 | EOF | |
12398 | ||
12399 | else | |
12400 | echo "$ac_t""no" 1>&6 | |
12401 | fi | |
12402 | ||
12403 | fi | |
12404 | ||
12405 | ||
12406 | ||
12407 | ||
12408 | ||
12409 | ||
12410 | ||
12411 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
12412 | echo "configure:12413: checking for vsnprintf" >&5 | |
12413 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then | |
12414 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12415 | else | |
12416 | ||
12417 | cat > conftest.$ac_ext <<EOF | |
12418 | #line 12419 "configure" | |
12419 | #include "confdefs.h" | |
12420 | ||
12421 | #include <stdio.h> | |
12422 | #include <stdarg.h> | |
12423 | ||
12424 | int main() { | |
12425 | ||
12426 | int wx_test_vsnprintf(const char *, ...); | |
12427 | ||
12428 | wx_test_vsnprintf("%s"); | |
12429 | return 0; | |
12430 | } | |
12431 | ||
12432 | int wx_test_vsnprintf(const char *fmt, ...) | |
12433 | { | |
12434 | char *s; | |
12435 | ||
12436 | va_list argp; | |
12437 | va_start(argp, fmt); | |
12438 | vsnprintf(s, 42, fmt, argp); | |
12439 | va_end(argp); | |
12440 | ||
12441 | ; return 0; } | |
12442 | EOF | |
12443 | if { (eval echo configure:12444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12444 | rm -rf conftest* | |
12445 | ||
12446 | wx_cv_func_vsnprintf=yes | |
12447 | ||
12448 | else | |
12449 | echo "configure: failed program was:" >&5 | |
12450 | cat conftest.$ac_ext >&5 | |
12451 | rm -rf conftest* | |
12452 | ||
12453 | cat > conftest.$ac_ext <<EOF | |
12454 | #line 12455 "configure" | |
12455 | #include "confdefs.h" | |
12456 | ||
12457 | #include <stdio.h> | |
12458 | #include <stdarg.h> | |
12459 | ||
12460 | int main() { | |
12461 | ||
12462 | int wx_test_vsnprintf(const char *, ...); | |
12463 | ||
12464 | wx_test_vsnprintf("%s"); | |
12465 | return 0; | |
12466 | } | |
12467 | ||
12468 | int wx_test_vsnprintf(const char *fmt, ...) | |
12469 | { | |
12470 | char *s; | |
12471 | ||
12472 | va_list argp; | |
12473 | va_start(argp, fmt); | |
12474 | _vsnprintf(s, 42, fmt, argp); | |
12475 | va_end(argp); | |
12476 | ||
12477 | ; return 0; } | |
12478 | EOF | |
12479 | if { (eval echo configure:12480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12480 | rm -rf conftest* | |
12481 | ||
12482 | wx_cv_func_vsnprintf=yes | |
12483 | ||
12484 | else | |
12485 | echo "configure: failed program was:" >&5 | |
12486 | cat conftest.$ac_ext >&5 | |
12487 | rm -rf conftest* | |
12488 | ||
12489 | wx_cv_func_vsnprintf=no | |
12490 | ||
12491 | fi | |
12492 | rm -f conftest* | |
12493 | ||
12494 | fi | |
12495 | rm -f conftest* | |
12496 | ||
12497 | fi | |
12498 | ||
12499 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
12500 | ||
12501 | if test "$wx_cv_func_vsnprintf" = yes; then | |
12502 | cat >> confdefs.h <<\EOF | |
12503 | #define HAVE_VSNPRINTF 1 | |
12504 | EOF | |
12505 | ||
12506 | else | |
12507 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
12508 | fi | |
12509 | ||
12510 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
12511 | echo "configure:12512: checking for vsscanf" >&5 | |
12512 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then | |
12513 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12514 | else | |
12515 | ||
12516 | cat > conftest.$ac_ext <<EOF | |
12517 | #line 12518 "configure" | |
12518 | #include "confdefs.h" | |
12519 | ||
12520 | #include <stdio.h> | |
12521 | #include <stdarg.h> | |
12522 | ||
12523 | int main() { | |
12524 | ||
12525 | int wx_test_vsscanf(const char *, ...); | |
12526 | ||
12527 | wx_test_vsscanf("%d"); | |
12528 | return 0; | |
12529 | } | |
12530 | ||
12531 | int wx_test_vsscanf(const char *fmt, ...) | |
12532 | { | |
12533 | va_list argp; | |
12534 | va_start(argp, fmt); | |
12535 | vsscanf("42", fmt, argp); | |
12536 | va_end(argp); | |
12537 | ||
12538 | ; return 0; } | |
12539 | EOF | |
12540 | if { (eval echo configure:12541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12541 | rm -rf conftest* | |
12542 | ||
12543 | wx_cv_func_vsscanf=yes | |
12544 | ||
12545 | else | |
12546 | echo "configure: failed program was:" >&5 | |
12547 | cat conftest.$ac_ext >&5 | |
12548 | rm -rf conftest* | |
12549 | ||
12550 | wx_cv_func_vsscanf=no | |
12551 | ||
12552 | fi | |
12553 | rm -f conftest* | |
12554 | ||
12555 | fi | |
12556 | ||
12557 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
12558 | ||
12559 | if test "$wx_cv_func_vsscanf" = yes; then | |
12560 | cat >> confdefs.h <<\EOF | |
12561 | #define HAVE_VSSCANF 1 | |
12562 | EOF | |
12563 | ||
12564 | fi | |
12565 | ||
12566 | if test "$TOOLKIT" != "MSW"; then | |
12567 | ||
12568 | ||
12569 | ||
12570 | ac_ext=C | |
12571 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12572 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12573 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12574 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12575 | cross_compiling=$ac_cv_prog_cxx_cross | |
12576 | ||
12577 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
12578 | echo "configure:12579: checking if iconv() takes char**" >&5 | |
12579 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then | |
12580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12581 | else | |
12582 | ||
12583 | cat > conftest.$ac_ext <<EOF | |
12584 | #line 12585 "configure" | |
12585 | #include "confdefs.h" | |
12586 | #include <iconv.h> | |
12587 | int main() { | |
12588 | ||
12589 | char **inbuf, **outbuf; | |
12590 | iconv_t cd; | |
12591 | size_t insz, outsz; | |
12592 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
12593 | ||
12594 | ; return 0; } | |
12595 | EOF | |
12596 | if { (eval echo configure:12597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12597 | rm -rf conftest* | |
12598 | wx_cv_iconv_takes_char=yes | |
12599 | else | |
12600 | echo "configure: failed program was:" >&5 | |
12601 | cat conftest.$ac_ext >&5 | |
12602 | rm -rf conftest* | |
12603 | wx_cv_iconv_takes_char=no | |
12604 | fi | |
12605 | rm -f conftest* | |
12606 | ||
12607 | fi | |
12608 | ||
12609 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
12610 | ac_ext=c | |
12611 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12612 | ac_cpp='$CPP $CPPFLAGS' | |
12613 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12614 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12615 | cross_compiling=$ac_cv_prog_cc_cross | |
12616 | ||
12617 | if test "$wx_cv_iconv_takes_char" = yes ; then | |
12618 | cat >> confdefs.h <<\EOF | |
12619 | #define WX_ICONV_TAKES_CHAR 1 | |
12620 | EOF | |
12621 | ||
12622 | fi | |
12623 | ||
12624 | ||
12625 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
12626 | for ac_func in sigaction | |
12627 | do | |
12628 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
12629 | echo "configure:12630: checking for $ac_func" >&5 | |
12630 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
12631 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12632 | else | |
12633 | cat > conftest.$ac_ext <<EOF | |
12634 | #line 12635 "configure" | |
12635 | #include "confdefs.h" | |
12636 | /* System header to define __stub macros and hopefully few prototypes, | |
12637 | which can conflict with char $ac_func(); below. */ | |
12638 | #include <assert.h> | |
12639 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12640 | /* We use char because int might match the return type of a gcc2 | |
12641 | builtin and then its argument prototype would still apply. */ | |
12642 | char $ac_func(); | |
12643 | ||
12644 | int main() { | |
12645 | ||
12646 | /* The GNU C library defines this for functions which it implements | |
12647 | to always fail with ENOSYS. Some functions are actually named | |
12648 | something starting with __ and the normal name is an alias. */ | |
12649 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12650 | choke me | |
12651 | #else | |
12652 | $ac_func(); | |
12653 | #endif | |
12654 | ||
12655 | ; return 0; } | |
12656 | EOF | |
12657 | if { (eval echo configure:12658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12658 | rm -rf conftest* | |
12659 | eval "ac_cv_func_$ac_func=yes" | |
12660 | else | |
12661 | echo "configure: failed program was:" >&5 | |
12662 | cat conftest.$ac_ext >&5 | |
12663 | rm -rf conftest* | |
12664 | eval "ac_cv_func_$ac_func=no" | |
12665 | fi | |
12666 | rm -f conftest* | |
12667 | fi | |
12668 | ||
12669 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12670 | echo "$ac_t""yes" 1>&6 | |
12671 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12672 | cat >> confdefs.h <<EOF | |
12673 | #define $ac_tr_func 1 | |
12674 | EOF | |
12675 | ||
12676 | else | |
12677 | echo "$ac_t""no" 1>&6 | |
12678 | fi | |
12679 | done | |
12680 | ||
12681 | ||
12682 | if test "$ac_cv_func_sigaction" = "no"; then | |
12683 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
12684 | wxUSE_ON_FATAL_EXCEPTION=no | |
12685 | fi | |
12686 | ||
12687 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
12688 | ||
12689 | ac_ext=C | |
12690 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12691 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12692 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12693 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12694 | cross_compiling=$ac_cv_prog_cxx_cross | |
12695 | ||
12696 | ||
12697 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
12698 | echo "configure:12699: checking for sa_handler type" >&5 | |
12699 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then | |
12700 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12701 | else | |
12702 | ||
12703 | cat > conftest.$ac_ext <<EOF | |
12704 | #line 12705 "configure" | |
12705 | #include "confdefs.h" | |
12706 | #include <signal.h> | |
12707 | int main() { | |
12708 | ||
12709 | extern void testSigHandler(int); | |
12710 | ||
12711 | struct sigaction sa; | |
12712 | sa.sa_handler = testSigHandler; | |
12713 | ||
12714 | ; return 0; } | |
12715 | EOF | |
12716 | if { (eval echo configure:12717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12717 | rm -rf conftest* | |
12718 | ||
12719 | wx_cv_type_sa_handler=int | |
12720 | ||
12721 | else | |
12722 | echo "configure: failed program was:" >&5 | |
12723 | cat conftest.$ac_ext >&5 | |
12724 | rm -rf conftest* | |
12725 | ||
12726 | wx_cv_type_sa_handler=void | |
12727 | ||
12728 | fi | |
12729 | rm -f conftest* | |
12730 | ||
12731 | fi | |
12732 | ||
12733 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
12734 | ||
12735 | ac_ext=c | |
12736 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12737 | ac_cpp='$CPP $CPPFLAGS' | |
12738 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12739 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12740 | cross_compiling=$ac_cv_prog_cc_cross | |
12741 | ||
12742 | ||
12743 | cat >> confdefs.h <<EOF | |
12744 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
12745 | EOF | |
12746 | ||
12747 | fi | |
12748 | fi | |
12749 | ||
12750 | for ac_func in vfork | |
12751 | do | |
12752 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
12753 | echo "configure:12754: checking for $ac_func" >&5 | |
12754 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
12755 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12756 | else | |
12757 | cat > conftest.$ac_ext <<EOF | |
12758 | #line 12759 "configure" | |
12759 | #include "confdefs.h" | |
12760 | /* System header to define __stub macros and hopefully few prototypes, | |
12761 | which can conflict with char $ac_func(); below. */ | |
12762 | #include <assert.h> | |
12763 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12764 | /* We use char because int might match the return type of a gcc2 | |
12765 | builtin and then its argument prototype would still apply. */ | |
12766 | char $ac_func(); | |
12767 | ||
12768 | int main() { | |
12769 | ||
12770 | /* The GNU C library defines this for functions which it implements | |
12771 | to always fail with ENOSYS. Some functions are actually named | |
12772 | something starting with __ and the normal name is an alias. */ | |
12773 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12774 | choke me | |
12775 | #else | |
12776 | $ac_func(); | |
12777 | #endif | |
12778 | ||
12779 | ; return 0; } | |
12780 | EOF | |
12781 | if { (eval echo configure:12782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12782 | rm -rf conftest* | |
12783 | eval "ac_cv_func_$ac_func=yes" | |
12784 | else | |
12785 | echo "configure: failed program was:" >&5 | |
12786 | cat conftest.$ac_ext >&5 | |
12787 | rm -rf conftest* | |
12788 | eval "ac_cv_func_$ac_func=no" | |
12789 | fi | |
12790 | rm -f conftest* | |
12791 | fi | |
12792 | ||
12793 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12794 | echo "$ac_t""yes" 1>&6 | |
12795 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12796 | cat >> confdefs.h <<EOF | |
12797 | #define $ac_tr_func 1 | |
12798 | EOF | |
12799 | ||
12800 | else | |
12801 | echo "$ac_t""no" 1>&6 | |
12802 | fi | |
12803 | done | |
12804 | ||
12805 | ||
12806 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
12807 | for ac_func in fcntl flock | |
12808 | do | |
12809 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
12810 | echo "configure:12811: checking for $ac_func" >&5 | |
12811 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
12812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12813 | else | |
12814 | cat > conftest.$ac_ext <<EOF | |
12815 | #line 12816 "configure" | |
12816 | #include "confdefs.h" | |
12817 | /* System header to define __stub macros and hopefully few prototypes, | |
12818 | which can conflict with char $ac_func(); below. */ | |
12819 | #include <assert.h> | |
12820 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12821 | /* We use char because int might match the return type of a gcc2 | |
12822 | builtin and then its argument prototype would still apply. */ | |
12823 | char $ac_func(); | |
12824 | ||
12825 | int main() { | |
12826 | ||
12827 | /* The GNU C library defines this for functions which it implements | |
12828 | to always fail with ENOSYS. Some functions are actually named | |
12829 | something starting with __ and the normal name is an alias. */ | |
12830 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12831 | choke me | |
12832 | #else | |
12833 | $ac_func(); | |
12834 | #endif | |
12835 | ||
12836 | ; return 0; } | |
12837 | EOF | |
12838 | if { (eval echo configure:12839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12839 | rm -rf conftest* | |
12840 | eval "ac_cv_func_$ac_func=yes" | |
12841 | else | |
12842 | echo "configure: failed program was:" >&5 | |
12843 | cat conftest.$ac_ext >&5 | |
12844 | rm -rf conftest* | |
12845 | eval "ac_cv_func_$ac_func=no" | |
12846 | fi | |
12847 | rm -f conftest* | |
12848 | fi | |
12849 | ||
12850 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12851 | echo "$ac_t""yes" 1>&6 | |
12852 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12853 | cat >> confdefs.h <<EOF | |
12854 | #define $ac_tr_func 1 | |
12855 | EOF | |
12856 | break | |
12857 | else | |
12858 | echo "$ac_t""no" 1>&6 | |
12859 | fi | |
12860 | done | |
12861 | ||
12862 | ||
12863 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
12864 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
12865 | wxUSE_SNGLINST_CHECKER=no | |
12866 | fi | |
12867 | fi | |
12868 | ||
12869 | for ac_func in timegm | |
12870 | do | |
12871 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
12872 | echo "configure:12873: checking for $ac_func" >&5 | |
12873 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
12874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12875 | else | |
12876 | cat > conftest.$ac_ext <<EOF | |
12877 | #line 12878 "configure" | |
12878 | #include "confdefs.h" | |
12879 | /* System header to define __stub macros and hopefully few prototypes, | |
12880 | which can conflict with char $ac_func(); below. */ | |
12881 | #include <assert.h> | |
12882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12883 | /* We use char because int might match the return type of a gcc2 | |
12884 | builtin and then its argument prototype would still apply. */ | |
12885 | char $ac_func(); | |
12886 | ||
12887 | int main() { | |
12888 | ||
12889 | /* The GNU C library defines this for functions which it implements | |
12890 | to always fail with ENOSYS. Some functions are actually named | |
12891 | something starting with __ and the normal name is an alias. */ | |
12892 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12893 | choke me | |
12894 | #else | |
12895 | $ac_func(); | |
12896 | #endif | |
12897 | ||
12898 | ; return 0; } | |
12899 | EOF | |
12900 | if { (eval echo configure:12901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12901 | rm -rf conftest* | |
12902 | eval "ac_cv_func_$ac_func=yes" | |
12903 | else | |
12904 | echo "configure: failed program was:" >&5 | |
12905 | cat conftest.$ac_ext >&5 | |
12906 | rm -rf conftest* | |
12907 | eval "ac_cv_func_$ac_func=no" | |
12908 | fi | |
12909 | rm -f conftest* | |
12910 | fi | |
12911 | ||
12912 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12913 | echo "$ac_t""yes" 1>&6 | |
12914 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12915 | cat >> confdefs.h <<EOF | |
12916 | #define $ac_tr_func 1 | |
12917 | EOF | |
12918 | ||
12919 | else | |
12920 | echo "$ac_t""no" 1>&6 | |
12921 | fi | |
12922 | done | |
12923 | ||
12924 | ||
12925 | for ac_func in putenv setenv | |
12926 | do | |
12927 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
12928 | echo "configure:12929: checking for $ac_func" >&5 | |
12929 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
12930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12931 | else | |
12932 | cat > conftest.$ac_ext <<EOF | |
12933 | #line 12934 "configure" | |
12934 | #include "confdefs.h" | |
12935 | /* System header to define __stub macros and hopefully few prototypes, | |
12936 | which can conflict with char $ac_func(); below. */ | |
12937 | #include <assert.h> | |
12938 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12939 | /* We use char because int might match the return type of a gcc2 | |
12940 | builtin and then its argument prototype would still apply. */ | |
12941 | char $ac_func(); | |
12942 | ||
12943 | int main() { | |
12944 | ||
12945 | /* The GNU C library defines this for functions which it implements | |
12946 | to always fail with ENOSYS. Some functions are actually named | |
12947 | something starting with __ and the normal name is an alias. */ | |
12948 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12949 | choke me | |
12950 | #else | |
12951 | $ac_func(); | |
12952 | #endif | |
12953 | ||
12954 | ; return 0; } | |
12955 | EOF | |
12956 | if { (eval echo configure:12957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12957 | rm -rf conftest* | |
12958 | eval "ac_cv_func_$ac_func=yes" | |
12959 | else | |
12960 | echo "configure: failed program was:" >&5 | |
12961 | cat conftest.$ac_ext >&5 | |
12962 | rm -rf conftest* | |
12963 | eval "ac_cv_func_$ac_func=no" | |
12964 | fi | |
12965 | rm -f conftest* | |
12966 | fi | |
12967 | ||
12968 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12969 | echo "$ac_t""yes" 1>&6 | |
12970 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12971 | cat >> confdefs.h <<EOF | |
12972 | #define $ac_tr_func 1 | |
12973 | EOF | |
12974 | break | |
12975 | else | |
12976 | echo "$ac_t""no" 1>&6 | |
12977 | fi | |
12978 | done | |
12979 | ||
12980 | ||
12981 | HAVE_SOME_SLEEP_FUNC=0 | |
12982 | if test "$USE_BEOS" = 1; then | |
12983 | cat >> confdefs.h <<\EOF | |
12984 | #define HAVE_SLEEP 1 | |
12985 | EOF | |
12986 | ||
12987 | HAVE_SOME_SLEEP_FUNC=1 | |
12988 | fi | |
12989 | ||
12990 | if test "$USE_MAC" = 1; then | |
12991 | cat >> confdefs.h <<\EOF | |
12992 | #define HAVE_USLEEP 1 | |
12993 | EOF | |
12994 | ||
12995 | HAVE_SOME_SLEEP_FUNC=1 | |
12996 | fi | |
12997 | ||
12998 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
12999 | POSIX4_LINK= | |
13000 | for ac_func in nanosleep | |
13001 | do | |
13002 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
13003 | echo "configure:13004: checking for $ac_func" >&5 | |
13004 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
13005 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13006 | else | |
13007 | cat > conftest.$ac_ext <<EOF | |
13008 | #line 13009 "configure" | |
13009 | #include "confdefs.h" | |
13010 | /* System header to define __stub macros and hopefully few prototypes, | |
13011 | which can conflict with char $ac_func(); below. */ | |
13012 | #include <assert.h> | |
13013 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13014 | /* We use char because int might match the return type of a gcc2 | |
13015 | builtin and then its argument prototype would still apply. */ | |
13016 | char $ac_func(); | |
13017 | ||
13018 | int main() { | |
13019 | ||
13020 | /* The GNU C library defines this for functions which it implements | |
13021 | to always fail with ENOSYS. Some functions are actually named | |
13022 | something starting with __ and the normal name is an alias. */ | |
13023 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13024 | choke me | |
13025 | #else | |
13026 | $ac_func(); | |
13027 | #endif | |
13028 | ||
13029 | ; return 0; } | |
13030 | EOF | |
13031 | if { (eval echo configure:13032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13032 | rm -rf conftest* | |
13033 | eval "ac_cv_func_$ac_func=yes" | |
13034 | else | |
13035 | echo "configure: failed program was:" >&5 | |
13036 | cat conftest.$ac_ext >&5 | |
13037 | rm -rf conftest* | |
13038 | eval "ac_cv_func_$ac_func=no" | |
13039 | fi | |
13040 | rm -f conftest* | |
13041 | fi | |
13042 | ||
13043 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13044 | echo "$ac_t""yes" 1>&6 | |
13045 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13046 | cat >> confdefs.h <<EOF | |
13047 | #define $ac_tr_func 1 | |
13048 | EOF | |
13049 | cat >> confdefs.h <<\EOF | |
13050 | #define HAVE_NANOSLEEP 1 | |
13051 | EOF | |
13052 | ||
13053 | else | |
13054 | echo "$ac_t""no" 1>&6 | |
13055 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
13056 | echo "configure:13057: checking for nanosleep in -lposix4" >&5 | |
13057 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` | |
13058 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13059 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13060 | else | |
13061 | ac_save_LIBS="$LIBS" | |
13062 | LIBS="-lposix4 $LIBS" | |
13063 | cat > conftest.$ac_ext <<EOF | |
13064 | #line 13065 "configure" | |
13065 | #include "confdefs.h" | |
13066 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13067 | /* We use char because int might match the return type of a gcc2 | |
13068 | builtin and then its argument prototype would still apply. */ | |
13069 | char nanosleep(); | |
13070 | ||
13071 | int main() { | |
13072 | nanosleep() | |
13073 | ; return 0; } | |
13074 | EOF | |
13075 | if { (eval echo configure:13076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13076 | rm -rf conftest* | |
13077 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13078 | else | |
13079 | echo "configure: failed program was:" >&5 | |
13080 | cat conftest.$ac_ext >&5 | |
13081 | rm -rf conftest* | |
13082 | eval "ac_cv_lib_$ac_lib_var=no" | |
13083 | fi | |
13084 | rm -f conftest* | |
13085 | LIBS="$ac_save_LIBS" | |
13086 | ||
13087 | fi | |
13088 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13089 | echo "$ac_t""yes" 1>&6 | |
13090 | ||
13091 | cat >> confdefs.h <<\EOF | |
13092 | #define HAVE_NANOSLEEP 1 | |
13093 | EOF | |
13094 | ||
13095 | POSIX4_LINK="-lposix4" | |
13096 | ||
13097 | else | |
13098 | echo "$ac_t""no" 1>&6 | |
13099 | ||
13100 | for ac_func in usleep | |
13101 | do | |
13102 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
13103 | echo "configure:13104: checking for $ac_func" >&5 | |
13104 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
13105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13106 | else | |
13107 | cat > conftest.$ac_ext <<EOF | |
13108 | #line 13109 "configure" | |
13109 | #include "confdefs.h" | |
13110 | /* System header to define __stub macros and hopefully few prototypes, | |
13111 | which can conflict with char $ac_func(); below. */ | |
13112 | #include <assert.h> | |
13113 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13114 | /* We use char because int might match the return type of a gcc2 | |
13115 | builtin and then its argument prototype would still apply. */ | |
13116 | char $ac_func(); | |
13117 | ||
13118 | int main() { | |
13119 | ||
13120 | /* The GNU C library defines this for functions which it implements | |
13121 | to always fail with ENOSYS. Some functions are actually named | |
13122 | something starting with __ and the normal name is an alias. */ | |
13123 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13124 | choke me | |
13125 | #else | |
13126 | $ac_func(); | |
13127 | #endif | |
13128 | ||
13129 | ; return 0; } | |
13130 | EOF | |
13131 | if { (eval echo configure:13132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13132 | rm -rf conftest* | |
13133 | eval "ac_cv_func_$ac_func=yes" | |
13134 | else | |
13135 | echo "configure: failed program was:" >&5 | |
13136 | cat conftest.$ac_ext >&5 | |
13137 | rm -rf conftest* | |
13138 | eval "ac_cv_func_$ac_func=no" | |
13139 | fi | |
13140 | rm -f conftest* | |
13141 | fi | |
13142 | ||
13143 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13144 | echo "$ac_t""yes" 1>&6 | |
13145 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13146 | cat >> confdefs.h <<EOF | |
13147 | #define $ac_tr_func 1 | |
13148 | EOF | |
13149 | cat >> confdefs.h <<\EOF | |
13150 | #define HAVE_USLEEP 1 | |
13151 | EOF | |
13152 | ||
13153 | else | |
13154 | echo "$ac_t""no" 1>&6 | |
13155 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
13156 | ||
13157 | fi | |
13158 | done | |
13159 | ||
13160 | ||
13161 | ||
13162 | fi | |
13163 | ||
13164 | ||
13165 | ||
13166 | fi | |
13167 | done | |
13168 | ||
13169 | fi | |
13170 | ||
13171 | for ac_func in uname gethostname | |
13172 | do | |
13173 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
13174 | echo "configure:13175: checking for $ac_func" >&5 | |
13175 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
13176 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13177 | else | |
13178 | cat > conftest.$ac_ext <<EOF | |
13179 | #line 13180 "configure" | |
13180 | #include "confdefs.h" | |
13181 | /* System header to define __stub macros and hopefully few prototypes, | |
13182 | which can conflict with char $ac_func(); below. */ | |
13183 | #include <assert.h> | |
13184 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13185 | /* We use char because int might match the return type of a gcc2 | |
13186 | builtin and then its argument prototype would still apply. */ | |
13187 | char $ac_func(); | |
13188 | ||
13189 | int main() { | |
13190 | ||
13191 | /* The GNU C library defines this for functions which it implements | |
13192 | to always fail with ENOSYS. Some functions are actually named | |
13193 | something starting with __ and the normal name is an alias. */ | |
13194 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13195 | choke me | |
13196 | #else | |
13197 | $ac_func(); | |
13198 | #endif | |
13199 | ||
13200 | ; return 0; } | |
13201 | EOF | |
13202 | if { (eval echo configure:13203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13203 | rm -rf conftest* | |
13204 | eval "ac_cv_func_$ac_func=yes" | |
13205 | else | |
13206 | echo "configure: failed program was:" >&5 | |
13207 | cat conftest.$ac_ext >&5 | |
13208 | rm -rf conftest* | |
13209 | eval "ac_cv_func_$ac_func=no" | |
13210 | fi | |
13211 | rm -f conftest* | |
13212 | fi | |
13213 | ||
13214 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13215 | echo "$ac_t""yes" 1>&6 | |
13216 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13217 | cat >> confdefs.h <<EOF | |
13218 | #define $ac_tr_func 1 | |
13219 | EOF | |
13220 | break | |
13221 | else | |
13222 | echo "$ac_t""no" 1>&6 | |
13223 | fi | |
13224 | done | |
13225 | ||
13226 | ||
13227 | ||
13228 | ac_ext=C | |
13229 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13230 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13231 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13232 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13233 | cross_compiling=$ac_cv_prog_cxx_cross | |
13234 | ||
13235 | ||
13236 | for ac_func in strtok_r | |
13237 | do | |
13238 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
13239 | echo "configure:13240: checking for $ac_func" >&5 | |
13240 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
13241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13242 | else | |
13243 | cat > conftest.$ac_ext <<EOF | |
13244 | #line 13245 "configure" | |
13245 | #include "confdefs.h" | |
13246 | /* System header to define __stub macros and hopefully few prototypes, | |
13247 | which can conflict with char $ac_func(); below. */ | |
13248 | #include <assert.h> | |
13249 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13250 | #ifdef __cplusplus | |
13251 | extern "C" | |
13252 | #endif | |
13253 | /* We use char because int might match the return type of a gcc2 | |
13254 | builtin and then its argument prototype would still apply. */ | |
13255 | char $ac_func(); | |
13256 | ||
13257 | int main() { | |
13258 | ||
13259 | /* The GNU C library defines this for functions which it implements | |
13260 | to always fail with ENOSYS. Some functions are actually named | |
13261 | something starting with __ and the normal name is an alias. */ | |
13262 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13263 | choke me | |
13264 | #else | |
13265 | $ac_func(); | |
13266 | #endif | |
13267 | ||
13268 | ; return 0; } | |
13269 | EOF | |
13270 | if { (eval echo configure:13271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13271 | rm -rf conftest* | |
13272 | eval "ac_cv_func_$ac_func=yes" | |
13273 | else | |
13274 | echo "configure: failed program was:" >&5 | |
13275 | cat conftest.$ac_ext >&5 | |
13276 | rm -rf conftest* | |
13277 | eval "ac_cv_func_$ac_func=no" | |
13278 | fi | |
13279 | rm -f conftest* | |
13280 | fi | |
13281 | ||
13282 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13283 | echo "$ac_t""yes" 1>&6 | |
13284 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13285 | cat >> confdefs.h <<EOF | |
13286 | #define $ac_tr_func 1 | |
13287 | EOF | |
13288 | ||
13289 | else | |
13290 | echo "$ac_t""no" 1>&6 | |
13291 | fi | |
13292 | done | |
13293 | ||
13294 | ||
13295 | ac_ext=c | |
13296 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13297 | ac_cpp='$CPP $CPPFLAGS' | |
13298 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13299 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13300 | cross_compiling=$ac_cv_prog_cc_cross | |
13301 | ||
13302 | ||
13303 | INET_LINK= | |
13304 | for ac_func in inet_addr | |
13305 | do | |
13306 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
13307 | echo "configure:13308: checking for $ac_func" >&5 | |
13308 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
13309 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13310 | else | |
13311 | cat > conftest.$ac_ext <<EOF | |
13312 | #line 13313 "configure" | |
13313 | #include "confdefs.h" | |
13314 | /* System header to define __stub macros and hopefully few prototypes, | |
13315 | which can conflict with char $ac_func(); below. */ | |
13316 | #include <assert.h> | |
13317 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13318 | /* We use char because int might match the return type of a gcc2 | |
13319 | builtin and then its argument prototype would still apply. */ | |
13320 | char $ac_func(); | |
13321 | ||
13322 | int main() { | |
13323 | ||
13324 | /* The GNU C library defines this for functions which it implements | |
13325 | to always fail with ENOSYS. Some functions are actually named | |
13326 | something starting with __ and the normal name is an alias. */ | |
13327 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13328 | choke me | |
13329 | #else | |
13330 | $ac_func(); | |
13331 | #endif | |
13332 | ||
13333 | ; return 0; } | |
13334 | EOF | |
13335 | if { (eval echo configure:13336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13336 | rm -rf conftest* | |
13337 | eval "ac_cv_func_$ac_func=yes" | |
13338 | else | |
13339 | echo "configure: failed program was:" >&5 | |
13340 | cat conftest.$ac_ext >&5 | |
13341 | rm -rf conftest* | |
13342 | eval "ac_cv_func_$ac_func=no" | |
13343 | fi | |
13344 | rm -f conftest* | |
13345 | fi | |
13346 | ||
13347 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13348 | echo "$ac_t""yes" 1>&6 | |
13349 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13350 | cat >> confdefs.h <<EOF | |
13351 | #define $ac_tr_func 1 | |
13352 | EOF | |
13353 | cat >> confdefs.h <<\EOF | |
13354 | #define HAVE_INET_ADDR 1 | |
13355 | EOF | |
13356 | ||
13357 | else | |
13358 | echo "$ac_t""no" 1>&6 | |
13359 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
13360 | echo "configure:13361: checking for inet_addr in -lnsl" >&5 | |
13361 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` | |
13362 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13364 | else | |
13365 | ac_save_LIBS="$LIBS" | |
13366 | LIBS="-lnsl $LIBS" | |
13367 | cat > conftest.$ac_ext <<EOF | |
13368 | #line 13369 "configure" | |
13369 | #include "confdefs.h" | |
13370 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13371 | /* We use char because int might match the return type of a gcc2 | |
13372 | builtin and then its argument prototype would still apply. */ | |
13373 | char inet_addr(); | |
13374 | ||
13375 | int main() { | |
13376 | inet_addr() | |
13377 | ; return 0; } | |
13378 | EOF | |
13379 | if { (eval echo configure:13380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13380 | rm -rf conftest* | |
13381 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13382 | else | |
13383 | echo "configure: failed program was:" >&5 | |
13384 | cat conftest.$ac_ext >&5 | |
13385 | rm -rf conftest* | |
13386 | eval "ac_cv_lib_$ac_lib_var=no" | |
13387 | fi | |
13388 | rm -f conftest* | |
13389 | LIBS="$ac_save_LIBS" | |
13390 | ||
13391 | fi | |
13392 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13393 | echo "$ac_t""yes" 1>&6 | |
13394 | INET_LINK="nsl" | |
13395 | else | |
13396 | echo "$ac_t""no" 1>&6 | |
13397 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
13398 | echo "configure:13399: checking for inet_addr in -lresolv" >&5 | |
13399 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` | |
13400 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13401 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13402 | else | |
13403 | ac_save_LIBS="$LIBS" | |
13404 | LIBS="-lresolv $LIBS" | |
13405 | cat > conftest.$ac_ext <<EOF | |
13406 | #line 13407 "configure" | |
13407 | #include "confdefs.h" | |
13408 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13409 | /* We use char because int might match the return type of a gcc2 | |
13410 | builtin and then its argument prototype would still apply. */ | |
13411 | char inet_addr(); | |
13412 | ||
13413 | int main() { | |
13414 | inet_addr() | |
13415 | ; return 0; } | |
13416 | EOF | |
13417 | if { (eval echo configure:13418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13418 | rm -rf conftest* | |
13419 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13420 | else | |
13421 | echo "configure: failed program was:" >&5 | |
13422 | cat conftest.$ac_ext >&5 | |
13423 | rm -rf conftest* | |
13424 | eval "ac_cv_lib_$ac_lib_var=no" | |
13425 | fi | |
13426 | rm -f conftest* | |
13427 | LIBS="$ac_save_LIBS" | |
13428 | ||
13429 | fi | |
13430 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13431 | echo "$ac_t""yes" 1>&6 | |
13432 | INET_LINK="resolv" | |
13433 | ||
13434 | else | |
13435 | echo "$ac_t""no" 1>&6 | |
13436 | fi | |
13437 | ||
13438 | ||
13439 | fi | |
13440 | ||
13441 | ||
13442 | ||
13443 | fi | |
13444 | done | |
13445 | ||
13446 | ||
13447 | for ac_func in inet_aton | |
13448 | do | |
13449 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
13450 | echo "configure:13451: checking for $ac_func" >&5 | |
13451 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
13452 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13453 | else | |
13454 | cat > conftest.$ac_ext <<EOF | |
13455 | #line 13456 "configure" | |
13456 | #include "confdefs.h" | |
13457 | /* System header to define __stub macros and hopefully few prototypes, | |
13458 | which can conflict with char $ac_func(); below. */ | |
13459 | #include <assert.h> | |
13460 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13461 | /* We use char because int might match the return type of a gcc2 | |
13462 | builtin and then its argument prototype would still apply. */ | |
13463 | char $ac_func(); | |
13464 | ||
13465 | int main() { | |
13466 | ||
13467 | /* The GNU C library defines this for functions which it implements | |
13468 | to always fail with ENOSYS. Some functions are actually named | |
13469 | something starting with __ and the normal name is an alias. */ | |
13470 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13471 | choke me | |
13472 | #else | |
13473 | $ac_func(); | |
13474 | #endif | |
13475 | ||
13476 | ; return 0; } | |
13477 | EOF | |
13478 | if { (eval echo configure:13479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13479 | rm -rf conftest* | |
13480 | eval "ac_cv_func_$ac_func=yes" | |
13481 | else | |
13482 | echo "configure: failed program was:" >&5 | |
13483 | cat conftest.$ac_ext >&5 | |
13484 | rm -rf conftest* | |
13485 | eval "ac_cv_func_$ac_func=no" | |
13486 | fi | |
13487 | rm -f conftest* | |
13488 | fi | |
13489 | ||
13490 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13491 | echo "$ac_t""yes" 1>&6 | |
13492 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13493 | cat >> confdefs.h <<EOF | |
13494 | #define $ac_tr_func 1 | |
13495 | EOF | |
13496 | cat >> confdefs.h <<\EOF | |
13497 | #define HAVE_INET_ATON 1 | |
13498 | EOF | |
13499 | ||
13500 | else | |
13501 | echo "$ac_t""no" 1>&6 | |
13502 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
13503 | echo "configure:13504: checking for inet_aton in -l$INET_LINK" >&5 | |
13504 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` | |
13505 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13507 | else | |
13508 | ac_save_LIBS="$LIBS" | |
13509 | LIBS="-l$INET_LINK $LIBS" | |
13510 | cat > conftest.$ac_ext <<EOF | |
13511 | #line 13512 "configure" | |
13512 | #include "confdefs.h" | |
13513 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13514 | /* We use char because int might match the return type of a gcc2 | |
13515 | builtin and then its argument prototype would still apply. */ | |
13516 | char inet_aton(); | |
13517 | ||
13518 | int main() { | |
13519 | inet_aton() | |
13520 | ; return 0; } | |
13521 | EOF | |
13522 | if { (eval echo configure:13523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13523 | rm -rf conftest* | |
13524 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13525 | else | |
13526 | echo "configure: failed program was:" >&5 | |
13527 | cat conftest.$ac_ext >&5 | |
13528 | rm -rf conftest* | |
13529 | eval "ac_cv_lib_$ac_lib_var=no" | |
13530 | fi | |
13531 | rm -f conftest* | |
13532 | LIBS="$ac_save_LIBS" | |
13533 | ||
13534 | fi | |
13535 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13536 | echo "$ac_t""yes" 1>&6 | |
13537 | cat >> confdefs.h <<\EOF | |
13538 | #define HAVE_INET_ATON 1 | |
13539 | EOF | |
13540 | ||
13541 | else | |
13542 | echo "$ac_t""no" 1>&6 | |
13543 | fi | |
13544 | ||
13545 | ||
13546 | fi | |
13547 | done | |
13548 | ||
13549 | ||
13550 | if test "x$INET_LINK" != "x"; then | |
13551 | cat >> confdefs.h <<\EOF | |
13552 | #define HAVE_INET_ADDR 1 | |
13553 | EOF | |
13554 | ||
13555 | INET_LINK="-l$INET_LINK" | |
13556 | fi | |
13557 | ||
13558 | fi | |
13559 | ||
13560 | ||
13561 | cat > confcache <<\EOF | |
13562 | # This file is a shell script that caches the results of configure | |
13563 | # tests run on this system so they can be shared between configure | |
13564 | # scripts and configure runs. It is not useful on other systems. | |
13565 | # If it contains results you don't want to keep, you may remove or edit it. | |
13566 | # | |
13567 | # By default, configure uses ./config.cache as the cache file, | |
13568 | # creating it if it does not exist already. You can give configure | |
13569 | # the --cache-file=FILE option to use a different cache file; that is | |
13570 | # what configure does when it calls configure scripts in | |
13571 | # subdirectories, so they share the cache. | |
13572 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
13573 | # config.status only pays attention to the cache file if you give it the | |
13574 | # --recheck option to rerun configure. | |
13575 | # | |
13576 | EOF | |
13577 | # The following way of writing the cache mishandles newlines in values, | |
13578 | # but we know of no workaround that is simple, portable, and efficient. | |
13579 | # So, don't put newlines in cache variables' values. | |
13580 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13581 | # and sets the high bit in the cache file unless we assign to the vars. | |
13582 | (set) 2>&1 | | |
13583 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13584 | *ac_space=\ *) | |
13585 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
13586 | # turns \\\\ into \\, and sed turns \\ into \). | |
13587 | sed -n \ | |
13588 | -e "s/'/'\\\\''/g" \ | |
13589 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
13590 | ;; | |
13591 | *) | |
13592 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13593 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
13594 | ;; | |
13595 | esac >> confcache | |
13596 | if cmp -s $cache_file confcache; then | |
13597 | : | |
13598 | else | |
13599 | if test -w $cache_file; then | |
13600 | echo "updating cache $cache_file" | |
13601 | cat confcache > $cache_file | |
13602 | else | |
13603 | echo "not updating unwritable cache $cache_file" | |
13604 | fi | |
13605 | fi | |
13606 | rm -f confcache | |
13607 | ||
13608 | ||
13609 | ||
13610 | if test "$TOOLKIT" != "MSW"; then | |
13611 | ||
13612 | ||
13613 | THREADS_LINK="" | |
13614 | THREADS_OBJ="" | |
13615 | ||
13616 | if test "$wxUSE_THREADS" = "yes" ; then | |
13617 | if test "$wxUSE_WINE" = 1 ; then | |
13618 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
13619 | wxUSE_THREADS="no" | |
13620 | elif test "$USE_BEOS" = 1; then | |
13621 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 | |
13622 | wxUSE_THREADS="no" | |
13623 | fi | |
13624 | fi | |
13625 | ||
13626 | if test "$wxUSE_THREADS" = "yes" ; then | |
13627 | ||
13628 | if test "$USE_AIX" = 1; then | |
13629 | THREADS_LIB=pthreads | |
13630 | else | |
13631 | THREADS_LIB=pthread | |
13632 | fi | |
13633 | ||
13634 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 | |
13635 | echo "configure:13636: checking for pthread_create in -l$THREADS_LIB" >&5 | |
13636 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` | |
13637 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13638 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13639 | else | |
13640 | ac_save_LIBS="$LIBS" | |
13641 | LIBS="-l$THREADS_LIB $LIBS" | |
13642 | cat > conftest.$ac_ext <<EOF | |
13643 | #line 13644 "configure" | |
13644 | #include "confdefs.h" | |
13645 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13646 | /* We use char because int might match the return type of a gcc2 | |
13647 | builtin and then its argument prototype would still apply. */ | |
13648 | char pthread_create(); | |
13649 | ||
13650 | int main() { | |
13651 | pthread_create() | |
13652 | ; return 0; } | |
13653 | EOF | |
13654 | if { (eval echo configure:13655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13655 | rm -rf conftest* | |
13656 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13657 | else | |
13658 | echo "configure: failed program was:" >&5 | |
13659 | cat conftest.$ac_ext >&5 | |
13660 | rm -rf conftest* | |
13661 | eval "ac_cv_lib_$ac_lib_var=no" | |
13662 | fi | |
13663 | rm -f conftest* | |
13664 | LIBS="$ac_save_LIBS" | |
13665 | ||
13666 | fi | |
13667 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13668 | echo "$ac_t""yes" 1>&6 | |
13669 | ||
13670 | THREADS_OBJ="threadpsx.lo" | |
13671 | THREADS_LINK=$THREADS_LIB | |
13672 | ||
13673 | else | |
13674 | echo "$ac_t""no" 1>&6 | |
13675 | ||
13676 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
13677 | echo "configure:13678: checking for pthread_create in -lc_r" >&5 | |
13678 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` | |
13679 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13681 | else | |
13682 | ac_save_LIBS="$LIBS" | |
13683 | LIBS="-lc_r $LIBS" | |
13684 | cat > conftest.$ac_ext <<EOF | |
13685 | #line 13686 "configure" | |
13686 | #include "confdefs.h" | |
13687 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13688 | /* We use char because int might match the return type of a gcc2 | |
13689 | builtin and then its argument prototype would still apply. */ | |
13690 | char pthread_create(); | |
13691 | ||
13692 | int main() { | |
13693 | pthread_create() | |
13694 | ; return 0; } | |
13695 | EOF | |
13696 | if { (eval echo configure:13697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13697 | rm -rf conftest* | |
13698 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13699 | else | |
13700 | echo "configure: failed program was:" >&5 | |
13701 | cat conftest.$ac_ext >&5 | |
13702 | rm -rf conftest* | |
13703 | eval "ac_cv_lib_$ac_lib_var=no" | |
13704 | fi | |
13705 | rm -f conftest* | |
13706 | LIBS="$ac_save_LIBS" | |
13707 | ||
13708 | fi | |
13709 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13710 | echo "$ac_t""yes" 1>&6 | |
13711 | ||
13712 | THREADS_OBJ="threadpsx.lo" | |
13713 | THREADS_LINK="c_r" | |
13714 | ||
13715 | else | |
13716 | echo "$ac_t""no" 1>&6 | |
13717 | ||
13718 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
13719 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
13720 | echo "configure:13721: checking for sys/prctl.h" >&5 | |
13721 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
13722 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13723 | else | |
13724 | cat > conftest.$ac_ext <<EOF | |
13725 | #line 13726 "configure" | |
13726 | #include "confdefs.h" | |
13727 | #include <sys/prctl.h> | |
13728 | EOF | |
13729 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13730 | { (eval echo configure:13731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13731 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13732 | if test -z "$ac_err"; then | |
13733 | rm -rf conftest* | |
13734 | eval "ac_cv_header_$ac_safe=yes" | |
13735 | else | |
13736 | echo "$ac_err" >&5 | |
13737 | echo "configure: failed program was:" >&5 | |
13738 | cat conftest.$ac_ext >&5 | |
13739 | rm -rf conftest* | |
13740 | eval "ac_cv_header_$ac_safe=no" | |
13741 | fi | |
13742 | rm -f conftest* | |
13743 | fi | |
13744 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13745 | echo "$ac_t""yes" 1>&6 | |
13746 | ||
13747 | THREADS_OBJ="threadsgi.lo" | |
13748 | ||
13749 | else | |
13750 | echo "$ac_t""no" 1>&6 | |
13751 | fi | |
13752 | ||
13753 | ||
13754 | fi | |
13755 | ||
13756 | ||
13757 | fi | |
13758 | ||
13759 | ||
13760 | if test -z "$THREADS_OBJ" ; then | |
13761 | wxUSE_THREADS=no | |
13762 | echo "configure: warning: No thread support on this system" 1>&2 | |
13763 | fi | |
13764 | fi | |
13765 | ||
13766 | if test "$wxUSE_THREADS" = "yes" ; then | |
13767 | for ac_func in thr_setconcurrency | |
13768 | do | |
13769 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
13770 | echo "configure:13771: checking for $ac_func" >&5 | |
13771 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
13772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13773 | else | |
13774 | cat > conftest.$ac_ext <<EOF | |
13775 | #line 13776 "configure" | |
13776 | #include "confdefs.h" | |
13777 | /* System header to define __stub macros and hopefully few prototypes, | |
13778 | which can conflict with char $ac_func(); below. */ | |
13779 | #include <assert.h> | |
13780 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13781 | /* We use char because int might match the return type of a gcc2 | |
13782 | builtin and then its argument prototype would still apply. */ | |
13783 | char $ac_func(); | |
13784 | ||
13785 | int main() { | |
13786 | ||
13787 | /* The GNU C library defines this for functions which it implements | |
13788 | to always fail with ENOSYS. Some functions are actually named | |
13789 | something starting with __ and the normal name is an alias. */ | |
13790 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13791 | choke me | |
13792 | #else | |
13793 | $ac_func(); | |
13794 | #endif | |
13795 | ||
13796 | ; return 0; } | |
13797 | EOF | |
13798 | if { (eval echo configure:13799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13799 | rm -rf conftest* | |
13800 | eval "ac_cv_func_$ac_func=yes" | |
13801 | else | |
13802 | echo "configure: failed program was:" >&5 | |
13803 | cat conftest.$ac_ext >&5 | |
13804 | rm -rf conftest* | |
13805 | eval "ac_cv_func_$ac_func=no" | |
13806 | fi | |
13807 | rm -f conftest* | |
13808 | fi | |
13809 | ||
13810 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13811 | echo "$ac_t""yes" 1>&6 | |
13812 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13813 | cat >> confdefs.h <<EOF | |
13814 | #define $ac_tr_func 1 | |
13815 | EOF | |
13816 | ||
13817 | else | |
13818 | echo "$ac_t""no" 1>&6 | |
13819 | fi | |
13820 | done | |
13821 | ||
13822 | ||
13823 | ||
13824 | for ac_hdr in sched.h | |
13825 | do | |
13826 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13827 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
13828 | echo "configure:13829: checking for $ac_hdr" >&5 | |
13829 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
13830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13831 | else | |
13832 | cat > conftest.$ac_ext <<EOF | |
13833 | #line 13834 "configure" | |
13834 | #include "confdefs.h" | |
13835 | #include <$ac_hdr> | |
13836 | EOF | |
13837 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13838 | { (eval echo configure:13839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13839 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13840 | if test -z "$ac_err"; then | |
13841 | rm -rf conftest* | |
13842 | eval "ac_cv_header_$ac_safe=yes" | |
13843 | else | |
13844 | echo "$ac_err" >&5 | |
13845 | echo "configure: failed program was:" >&5 | |
13846 | cat conftest.$ac_ext >&5 | |
13847 | rm -rf conftest* | |
13848 | eval "ac_cv_header_$ac_safe=no" | |
13849 | fi | |
13850 | rm -f conftest* | |
13851 | fi | |
13852 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13853 | echo "$ac_t""yes" 1>&6 | |
13854 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13855 | cat >> confdefs.h <<EOF | |
13856 | #define $ac_tr_hdr 1 | |
13857 | EOF | |
13858 | ||
13859 | else | |
13860 | echo "$ac_t""no" 1>&6 | |
13861 | fi | |
13862 | done | |
13863 | ||
13864 | ||
13865 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
13866 | echo "configure:13867: checking for sched_yield in -l$THREADS_LINK" >&5 | |
13867 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` | |
13868 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13869 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13870 | else | |
13871 | ac_save_LIBS="$LIBS" | |
13872 | LIBS="-l$THREADS_LINK $LIBS" | |
13873 | cat > conftest.$ac_ext <<EOF | |
13874 | #line 13875 "configure" | |
13875 | #include "confdefs.h" | |
13876 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13877 | /* We use char because int might match the return type of a gcc2 | |
13878 | builtin and then its argument prototype would still apply. */ | |
13879 | char sched_yield(); | |
13880 | ||
13881 | int main() { | |
13882 | sched_yield() | |
13883 | ; return 0; } | |
13884 | EOF | |
13885 | if { (eval echo configure:13886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13886 | rm -rf conftest* | |
13887 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13888 | else | |
13889 | echo "configure: failed program was:" >&5 | |
13890 | cat conftest.$ac_ext >&5 | |
13891 | rm -rf conftest* | |
13892 | eval "ac_cv_lib_$ac_lib_var=no" | |
13893 | fi | |
13894 | rm -f conftest* | |
13895 | LIBS="$ac_save_LIBS" | |
13896 | ||
13897 | fi | |
13898 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13899 | echo "$ac_t""yes" 1>&6 | |
13900 | cat >> confdefs.h <<\EOF | |
13901 | #define HAVE_SCHED_YIELD 1 | |
13902 | EOF | |
13903 | ||
13904 | else | |
13905 | echo "$ac_t""no" 1>&6 | |
13906 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
13907 | echo "configure:13908: checking for sched_yield in -lposix4" >&5 | |
13908 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` | |
13909 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13910 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13911 | else | |
13912 | ac_save_LIBS="$LIBS" | |
13913 | LIBS="-lposix4 $LIBS" | |
13914 | cat > conftest.$ac_ext <<EOF | |
13915 | #line 13916 "configure" | |
13916 | #include "confdefs.h" | |
13917 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13918 | /* We use char because int might match the return type of a gcc2 | |
13919 | builtin and then its argument prototype would still apply. */ | |
13920 | char sched_yield(); | |
13921 | ||
13922 | int main() { | |
13923 | sched_yield() | |
13924 | ; return 0; } | |
13925 | EOF | |
13926 | if { (eval echo configure:13927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13927 | rm -rf conftest* | |
13928 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13929 | else | |
13930 | echo "configure: failed program was:" >&5 | |
13931 | cat conftest.$ac_ext >&5 | |
13932 | rm -rf conftest* | |
13933 | eval "ac_cv_lib_$ac_lib_var=no" | |
13934 | fi | |
13935 | rm -f conftest* | |
13936 | LIBS="$ac_save_LIBS" | |
13937 | ||
13938 | fi | |
13939 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13940 | echo "$ac_t""yes" 1>&6 | |
13941 | cat >> confdefs.h <<\EOF | |
13942 | #define HAVE_SCHED_YIELD 1 | |
13943 | EOF | |
13944 | POSIX4_LINK="-lposix4" | |
13945 | else | |
13946 | echo "$ac_t""no" 1>&6 | |
13947 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
13948 | ||
13949 | fi | |
13950 | ||
13951 | ||
13952 | fi | |
13953 | ||
13954 | ||
13955 | HAVE_PRIOR_FUNCS=0 | |
13956 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
13957 | echo "configure:13958: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 | |
13958 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` | |
13959 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13960 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13961 | else | |
13962 | ac_save_LIBS="$LIBS" | |
13963 | LIBS="-l$THREADS_LINK $LIBS" | |
13964 | cat > conftest.$ac_ext <<EOF | |
13965 | #line 13966 "configure" | |
13966 | #include "confdefs.h" | |
13967 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13968 | /* We use char because int might match the return type of a gcc2 | |
13969 | builtin and then its argument prototype would still apply. */ | |
13970 | char pthread_attr_getschedpolicy(); | |
13971 | ||
13972 | int main() { | |
13973 | pthread_attr_getschedpolicy() | |
13974 | ; return 0; } | |
13975 | EOF | |
13976 | if { (eval echo configure:13977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13977 | rm -rf conftest* | |
13978 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13979 | else | |
13980 | echo "configure: failed program was:" >&5 | |
13981 | cat conftest.$ac_ext >&5 | |
13982 | rm -rf conftest* | |
13983 | eval "ac_cv_lib_$ac_lib_var=no" | |
13984 | fi | |
13985 | rm -f conftest* | |
13986 | LIBS="$ac_save_LIBS" | |
13987 | ||
13988 | fi | |
13989 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13990 | echo "$ac_t""yes" 1>&6 | |
13991 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
13992 | echo "configure:13993: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 | |
13993 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` | |
13994 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13995 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13996 | else | |
13997 | ac_save_LIBS="$LIBS" | |
13998 | LIBS="-l$THREADS_LINK $LIBS" | |
13999 | cat > conftest.$ac_ext <<EOF | |
14000 | #line 14001 "configure" | |
14001 | #include "confdefs.h" | |
14002 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14003 | /* We use char because int might match the return type of a gcc2 | |
14004 | builtin and then its argument prototype would still apply. */ | |
14005 | char pthread_attr_setschedparam(); | |
14006 | ||
14007 | int main() { | |
14008 | pthread_attr_setschedparam() | |
14009 | ; return 0; } | |
14010 | EOF | |
14011 | if { (eval echo configure:14012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14012 | rm -rf conftest* | |
14013 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14014 | else | |
14015 | echo "configure: failed program was:" >&5 | |
14016 | cat conftest.$ac_ext >&5 | |
14017 | rm -rf conftest* | |
14018 | eval "ac_cv_lib_$ac_lib_var=no" | |
14019 | fi | |
14020 | rm -f conftest* | |
14021 | LIBS="$ac_save_LIBS" | |
14022 | ||
14023 | fi | |
14024 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14025 | echo "$ac_t""yes" 1>&6 | |
14026 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
14027 | echo "configure:14028: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 | |
14028 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` | |
14029 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14030 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14031 | else | |
14032 | ac_save_LIBS="$LIBS" | |
14033 | LIBS="-l$THREADS_LINK $LIBS" | |
14034 | cat > conftest.$ac_ext <<EOF | |
14035 | #line 14036 "configure" | |
14036 | #include "confdefs.h" | |
14037 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14038 | /* We use char because int might match the return type of a gcc2 | |
14039 | builtin and then its argument prototype would still apply. */ | |
14040 | char sched_get_priority_max(); | |
14041 | ||
14042 | int main() { | |
14043 | sched_get_priority_max() | |
14044 | ; return 0; } | |
14045 | EOF | |
14046 | if { (eval echo configure:14047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14047 | rm -rf conftest* | |
14048 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14049 | else | |
14050 | echo "configure: failed program was:" >&5 | |
14051 | cat conftest.$ac_ext >&5 | |
14052 | rm -rf conftest* | |
14053 | eval "ac_cv_lib_$ac_lib_var=no" | |
14054 | fi | |
14055 | rm -f conftest* | |
14056 | LIBS="$ac_save_LIBS" | |
14057 | ||
14058 | fi | |
14059 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14060 | echo "$ac_t""yes" 1>&6 | |
14061 | HAVE_PRIOR_FUNCS=1 | |
14062 | else | |
14063 | echo "$ac_t""no" 1>&6 | |
14064 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
14065 | echo "configure:14066: checking for sched_get_priority_max in -lposix4" >&5 | |
14066 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` | |
14067 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14068 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14069 | else | |
14070 | ac_save_LIBS="$LIBS" | |
14071 | LIBS="-lposix4 $LIBS" | |
14072 | cat > conftest.$ac_ext <<EOF | |
14073 | #line 14074 "configure" | |
14074 | #include "confdefs.h" | |
14075 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14076 | /* We use char because int might match the return type of a gcc2 | |
14077 | builtin and then its argument prototype would still apply. */ | |
14078 | char sched_get_priority_max(); | |
14079 | ||
14080 | int main() { | |
14081 | sched_get_priority_max() | |
14082 | ; return 0; } | |
14083 | EOF | |
14084 | if { (eval echo configure:14085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14085 | rm -rf conftest* | |
14086 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14087 | else | |
14088 | echo "configure: failed program was:" >&5 | |
14089 | cat conftest.$ac_ext >&5 | |
14090 | rm -rf conftest* | |
14091 | eval "ac_cv_lib_$ac_lib_var=no" | |
14092 | fi | |
14093 | rm -f conftest* | |
14094 | LIBS="$ac_save_LIBS" | |
14095 | ||
14096 | fi | |
14097 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14098 | echo "$ac_t""yes" 1>&6 | |
14099 | ||
14100 | HAVE_PRIOR_FUNCS=1 | |
14101 | POSIX4_LINK="-lposix4" | |
14102 | ||
14103 | else | |
14104 | echo "$ac_t""no" 1>&6 | |
14105 | fi | |
14106 | ||
14107 | ||
14108 | fi | |
14109 | ||
14110 | ||
14111 | else | |
14112 | echo "$ac_t""no" 1>&6 | |
14113 | fi | |
14114 | ||
14115 | ||
14116 | else | |
14117 | echo "$ac_t""no" 1>&6 | |
14118 | fi | |
14119 | ||
14120 | ||
14121 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
14122 | cat >> confdefs.h <<\EOF | |
14123 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
14124 | EOF | |
14125 | ||
14126 | else | |
14127 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
14128 | fi | |
14129 | ||
14130 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 | |
14131 | echo "configure:14132: checking for pthread_cancel in -l$THREADS_LINK" >&5 | |
14132 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` | |
14133 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14135 | else | |
14136 | ac_save_LIBS="$LIBS" | |
14137 | LIBS="-l$THREADS_LINK $LIBS" | |
14138 | cat > conftest.$ac_ext <<EOF | |
14139 | #line 14140 "configure" | |
14140 | #include "confdefs.h" | |
14141 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14142 | /* We use char because int might match the return type of a gcc2 | |
14143 | builtin and then its argument prototype would still apply. */ | |
14144 | char pthread_cancel(); | |
14145 | ||
14146 | int main() { | |
14147 | pthread_cancel() | |
14148 | ; return 0; } | |
14149 | EOF | |
14150 | if { (eval echo configure:14151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14151 | rm -rf conftest* | |
14152 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14153 | else | |
14154 | echo "configure: failed program was:" >&5 | |
14155 | cat conftest.$ac_ext >&5 | |
14156 | rm -rf conftest* | |
14157 | eval "ac_cv_lib_$ac_lib_var=no" | |
14158 | fi | |
14159 | rm -f conftest* | |
14160 | LIBS="$ac_save_LIBS" | |
14161 | ||
14162 | fi | |
14163 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14164 | echo "$ac_t""yes" 1>&6 | |
14165 | cat >> confdefs.h <<\EOF | |
14166 | #define HAVE_PTHREAD_CANCEL 1 | |
14167 | EOF | |
14168 | ||
14169 | else | |
14170 | echo "$ac_t""no" 1>&6 | |
14171 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
14172 | fi | |
14173 | ||
14174 | ||
14175 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
14176 | echo "configure:14177: checking for pthread_cleanup_push/pop" >&5 | |
14177 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then | |
14178 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14179 | else | |
14180 | ||
14181 | cat > conftest.$ac_ext <<EOF | |
14182 | #line 14183 "configure" | |
14183 | #include "confdefs.h" | |
14184 | #include <pthread.h> | |
14185 | int main() { | |
14186 | ||
14187 | pthread_cleanup_push(NULL, NULL); | |
14188 | pthread_cleanup_pop(0); | |
14189 | ||
14190 | ; return 0; } | |
14191 | EOF | |
14192 | if { (eval echo configure:14193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14193 | rm -rf conftest* | |
14194 | ||
14195 | wx_cv_func_pthread_cleanup_push=yes | |
14196 | ||
14197 | else | |
14198 | echo "configure: failed program was:" >&5 | |
14199 | cat conftest.$ac_ext >&5 | |
14200 | rm -rf conftest* | |
14201 | ||
14202 | wx_cv_func_pthread_cleanup_push=no | |
14203 | ||
14204 | fi | |
14205 | rm -f conftest* | |
14206 | ||
14207 | fi | |
14208 | ||
14209 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
14210 | ||
14211 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then | |
14212 | cat >> confdefs.h <<\EOF | |
14213 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
14214 | EOF | |
14215 | ||
14216 | fi | |
14217 | ||
14218 | ||
14219 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
14220 | echo "configure:14221: checking for pthread_mutexattr_t" >&5 | |
14221 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then | |
14222 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14223 | else | |
14224 | ||
14225 | cat > conftest.$ac_ext <<EOF | |
14226 | #line 14227 "configure" | |
14227 | #include "confdefs.h" | |
14228 | #include <pthread.h> | |
14229 | int main() { | |
14230 | ||
14231 | pthread_mutexattr_t attr; | |
14232 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
14233 | ||
14234 | ; return 0; } | |
14235 | EOF | |
14236 | if { (eval echo configure:14237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14237 | rm -rf conftest* | |
14238 | ||
14239 | wx_cv_type_pthread_mutexattr_t=yes | |
14240 | ||
14241 | else | |
14242 | echo "configure: failed program was:" >&5 | |
14243 | cat conftest.$ac_ext >&5 | |
14244 | rm -rf conftest* | |
14245 | ||
14246 | wx_cv_type_pthread_mutexattr_t=no | |
14247 | ||
14248 | ||
14249 | fi | |
14250 | rm -f conftest* | |
14251 | ||
14252 | fi | |
14253 | ||
14254 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
14255 | ||
14256 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
14257 | cat >> confdefs.h <<\EOF | |
14258 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
14259 | EOF | |
14260 | ||
14261 | else | |
14262 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
14263 | echo "configure:14264: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
14264 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then | |
14265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14266 | else | |
14267 | ||
14268 | cat > conftest.$ac_ext <<EOF | |
14269 | #line 14270 "configure" | |
14270 | #include "confdefs.h" | |
14271 | #include <pthread.h> | |
14272 | int main() { | |
14273 | ||
14274 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
14275 | ||
14276 | ; return 0; } | |
14277 | EOF | |
14278 | if { (eval echo configure:14279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14279 | rm -rf conftest* | |
14280 | ||
14281 | wx_cv_type_pthread_rec_mutex_init=yes | |
14282 | ||
14283 | else | |
14284 | echo "configure: failed program was:" >&5 | |
14285 | cat conftest.$ac_ext >&5 | |
14286 | rm -rf conftest* | |
14287 | ||
14288 | wx_cv_type_pthread_rec_mutex_init=no | |
14289 | ||
14290 | ||
14291 | fi | |
14292 | rm -f conftest* | |
14293 | ||
14294 | fi | |
14295 | ||
14296 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
14297 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
14298 | cat >> confdefs.h <<\EOF | |
14299 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
14300 | EOF | |
14301 | ||
14302 | else | |
14303 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
14304 | fi | |
14305 | fi | |
14306 | ||
14307 | THREADS_LINK="-l$THREADS_LINK" | |
14308 | ||
14309 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
14310 | CFLAGS="${CFLAGS} -mt" | |
14311 | CXXFLAGS="${CXXFLAGS} -mt" | |
14312 | LDFLAGS="${LDFLAGS} -mt" | |
14313 | fi | |
14314 | fi | |
14315 | ||
14316 | fi | |
14317 | ||
14318 | if test "$wxUSE_THREADS" = "yes"; then | |
14319 | cat >> confdefs.h <<\EOF | |
14320 | #define wxUSE_THREADS 1 | |
14321 | EOF | |
14322 | ||
14323 | ||
14324 | if test "$wxUSE_MAC" = "0"; then | |
14325 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
14326 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
14327 | fi | |
14328 | ||
14329 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
14330 | else | |
14331 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
14332 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
14333 | echo "configure:14334: checking if -D_REENTRANT is needed" >&5 | |
14334 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
14335 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
14336 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
14337 | echo "$ac_t""yes" 1>&6 | |
14338 | else | |
14339 | echo "$ac_t""no" 1>&6 | |
14340 | fi | |
14341 | fi | |
14342 | fi | |
14343 | ||
14344 | if test "$WXGTK20" = 1 ; then | |
14345 | cat >> confdefs.h <<EOF | |
14346 | #define __WXGTK20__ $WXGTK20 | |
14347 | EOF | |
14348 | ||
14349 | WXGTK12=1 | |
14350 | fi | |
14351 | ||
14352 | if test "$WXGTK12" = 1 ; then | |
14353 | cat >> confdefs.h <<EOF | |
14354 | #define __WXGTK12__ $WXGTK12 | |
14355 | EOF | |
14356 | ||
14357 | fi | |
14358 | ||
14359 | if test "$WXGTK127" = 1 ; then | |
14360 | cat >> confdefs.h <<EOF | |
14361 | #define __WXGTK127__ $WXGTK127 | |
14362 | EOF | |
14363 | ||
14364 | fi | |
14365 | ||
14366 | if test "$WXWINE" = 1 ; then | |
14367 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
14368 | fi | |
14369 | ||
14370 | if test "$wxUSE_MAC" = 1 ; then | |
14371 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON" | |
14372 | CFLAGS="${CFLAGS} -fno-common -fpascal-strings" | |
14373 | CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings" | |
14374 | # Extract the first word of "Rez", so it can be a program name with args. | |
14375 | set dummy Rez; ac_word=$2 | |
14376 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
14377 | echo "configure:14378: checking for $ac_word" >&5 | |
14378 | if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then | |
14379 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14380 | else | |
14381 | if test -n "$REZ"; then | |
14382 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
14383 | else | |
14384 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14385 | ac_dummy="$PATH" | |
14386 | for ac_dir in $ac_dummy; do | |
14387 | test -z "$ac_dir" && ac_dir=. | |
14388 | if test -f $ac_dir/$ac_word; then | |
14389 | ac_cv_prog_REZ="Rez" | |
14390 | break | |
14391 | fi | |
14392 | done | |
14393 | IFS="$ac_save_ifs" | |
14394 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" | |
14395 | fi | |
14396 | fi | |
14397 | REZ="$ac_cv_prog_REZ" | |
14398 | if test -n "$REZ"; then | |
14399 | echo "$ac_t""$REZ" 1>&6 | |
14400 | else | |
14401 | echo "$ac_t""no" 1>&6 | |
14402 | fi | |
14403 | ||
14404 | # Extract the first word of "Derez", so it can be a program name with args. | |
14405 | set dummy Derez; ac_word=$2 | |
14406 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
14407 | echo "configure:14408: checking for $ac_word" >&5 | |
14408 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then | |
14409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14410 | else | |
14411 | if test -n "$DEREZ"; then | |
14412 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
14413 | else | |
14414 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14415 | ac_dummy="$PATH" | |
14416 | for ac_dir in $ac_dummy; do | |
14417 | test -z "$ac_dir" && ac_dir=. | |
14418 | if test -f $ac_dir/$ac_word; then | |
14419 | ac_cv_prog_DEREZ="Derez" | |
14420 | break | |
14421 | fi | |
14422 | done | |
14423 | IFS="$ac_save_ifs" | |
14424 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" | |
14425 | fi | |
14426 | fi | |
14427 | DEREZ="$ac_cv_prog_DEREZ" | |
14428 | if test -n "$DEREZ"; then | |
14429 | echo "$ac_t""$DEREZ" 1>&6 | |
14430 | else | |
14431 | echo "$ac_t""no" 1>&6 | |
14432 | fi | |
14433 | ||
14434 | RESCOMP=${REZ} | |
14435 | REZFLAGS="-d __UNIX__ -useDF" | |
14436 | DEREZFLAGS="Carbon.r -useDF" | |
14437 | RESFLAGS="Carbon.r -t APPL" | |
14438 | LIBWXMACRES="\$(LIBWX_MACRES)" | |
14439 | LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)" | |
14440 | fi | |
14441 | ||
14442 | if test "$wxUSE_CYGWIN" = 1 ; then | |
14443 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
14444 | fi | |
14445 | ||
14446 | WXDEBUG= | |
14447 | ||
14448 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
14449 | WXDEBUG="-g" | |
14450 | wxUSE_OPTIMISE=no | |
14451 | fi | |
14452 | ||
14453 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
14454 | wxUSE_DEBUG_INFO=yes | |
14455 | WXDEBUG="-ggdb" | |
14456 | fi | |
14457 | ||
14458 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
14459 | cat >> confdefs.h <<\EOF | |
14460 | #define WXDEBUG 1 | |
14461 | EOF | |
14462 | ||
14463 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
14464 | else | |
14465 | if test "$wxUSE_GTK" = 1 ; then | |
14466 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
14467 | fi | |
14468 | fi | |
14469 | ||
14470 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
14471 | cat >> confdefs.h <<\EOF | |
14472 | #define wxUSE_MEMORY_TRACING 1 | |
14473 | EOF | |
14474 | ||
14475 | cat >> confdefs.h <<\EOF | |
14476 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
14477 | EOF | |
14478 | ||
14479 | cat >> confdefs.h <<\EOF | |
14480 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
14481 | EOF | |
14482 | ||
14483 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
14484 | fi | |
14485 | ||
14486 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
14487 | DMALLOC_LINK="-ldmalloc" | |
14488 | fi | |
14489 | ||
14490 | PROFILE= | |
14491 | if test "$wxUSE_PROFILE" = "yes" ; then | |
14492 | PROFILE="-pg" | |
14493 | fi | |
14494 | ||
14495 | DEP_INFO_FLAGS= | |
14496 | CODE_GEN_FLAGS= | |
14497 | CODE_GEN_FLAGS_CXX= | |
14498 | if test "$GCC" = yes ; then | |
14499 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
14500 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" | |
14501 | fi | |
14502 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
14503 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" | |
14504 | fi | |
14505 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
14506 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
14507 | fi | |
14508 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
14509 | DEP_INFO_FLAGS="-MMD" | |
14510 | fi | |
14511 | fi | |
14512 | ||
14513 | ||
14514 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
14515 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
14516 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
14517 | OPTIMISE= | |
14518 | else | |
14519 | if test "$GCC" = yes ; then | |
14520 | OPTIMISE="-O2" | |
14521 | case "${host}" in | |
14522 | i586-*-*|i686-*-* ) | |
14523 | OPTIMISE="${OPTIMISE} " | |
14524 | ;; | |
14525 | esac | |
14526 | else | |
14527 | OPTIMISE="-O" | |
14528 | fi | |
14529 | fi | |
14530 | ||
14531 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
14532 | cat >> confdefs.h <<\EOF | |
14533 | #define WXWIN_COMPATIBILITY_2 1 | |
14534 | EOF | |
14535 | ||
14536 | ||
14537 | WXWIN_COMPATIBILITY_2_2="yes" | |
14538 | fi | |
14539 | ||
14540 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
14541 | cat >> confdefs.h <<\EOF | |
14542 | #define WXWIN_COMPATIBILITY_2_2 1 | |
14543 | EOF | |
14544 | ||
14545 | fi | |
14546 | ||
14547 | ||
14548 | ZLIB_INCLUDE= | |
14549 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then | |
14550 | cat >> confdefs.h <<\EOF | |
14551 | #define wxUSE_ZLIB 1 | |
14552 | EOF | |
14553 | ||
14554 | if test "$wxUSE_ZLIB" = "yes" ; then | |
14555 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
14556 | else | |
14557 | ZLIB_LINK= | |
14558 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
14559 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
14560 | echo "configure:14561: checking for zlib.h" >&5 | |
14561 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
14562 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14563 | else | |
14564 | cat > conftest.$ac_ext <<EOF | |
14565 | #line 14566 "configure" | |
14566 | #include "confdefs.h" | |
14567 | #include <zlib.h> | |
14568 | EOF | |
14569 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14570 | { (eval echo configure:14571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14571 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14572 | if test -z "$ac_err"; then | |
14573 | rm -rf conftest* | |
14574 | eval "ac_cv_header_$ac_safe=yes" | |
14575 | else | |
14576 | echo "$ac_err" >&5 | |
14577 | echo "configure: failed program was:" >&5 | |
14578 | cat conftest.$ac_ext >&5 | |
14579 | rm -rf conftest* | |
14580 | eval "ac_cv_header_$ac_safe=no" | |
14581 | fi | |
14582 | rm -f conftest* | |
14583 | fi | |
14584 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14585 | echo "$ac_t""yes" 1>&6 | |
14586 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
14587 | echo "configure:14588: checking for deflate in -lz" >&5 | |
14588 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` | |
14589 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14590 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14591 | else | |
14592 | ac_save_LIBS="$LIBS" | |
14593 | LIBS="-lz $LIBS" | |
14594 | cat > conftest.$ac_ext <<EOF | |
14595 | #line 14596 "configure" | |
14596 | #include "confdefs.h" | |
14597 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14598 | /* We use char because int might match the return type of a gcc2 | |
14599 | builtin and then its argument prototype would still apply. */ | |
14600 | char deflate(); | |
14601 | ||
14602 | int main() { | |
14603 | deflate() | |
14604 | ; return 0; } | |
14605 | EOF | |
14606 | if { (eval echo configure:14607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14607 | rm -rf conftest* | |
14608 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14609 | else | |
14610 | echo "configure: failed program was:" >&5 | |
14611 | cat conftest.$ac_ext >&5 | |
14612 | rm -rf conftest* | |
14613 | eval "ac_cv_lib_$ac_lib_var=no" | |
14614 | fi | |
14615 | rm -f conftest* | |
14616 | LIBS="$ac_save_LIBS" | |
14617 | ||
14618 | fi | |
14619 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14620 | echo "$ac_t""yes" 1>&6 | |
14621 | ZLIB_LINK="-lz" | |
14622 | else | |
14623 | echo "$ac_t""no" 1>&6 | |
14624 | fi | |
14625 | ||
14626 | else | |
14627 | echo "$ac_t""no" 1>&6 | |
14628 | fi | |
14629 | ||
14630 | if test "x$ZLIB_LINK" = "x" ; then | |
14631 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } | |
14632 | fi | |
14633 | fi | |
14634 | fi | |
14635 | ||
14636 | PNG_INCLUDE= | |
14637 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then | |
14638 | cat >> confdefs.h <<\EOF | |
14639 | #define wxUSE_LIBPNG 1 | |
14640 | EOF | |
14641 | ||
14642 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
14643 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 | |
14644 | wxUSE_LIBPNG=yes | |
14645 | fi | |
14646 | ||
14647 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
14648 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
14649 | else | |
14650 | PNG_LINK= | |
14651 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
14652 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
14653 | echo "configure:14654: checking for png.h" >&5 | |
14654 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
14655 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14656 | else | |
14657 | cat > conftest.$ac_ext <<EOF | |
14658 | #line 14659 "configure" | |
14659 | #include "confdefs.h" | |
14660 | #include <png.h> | |
14661 | EOF | |
14662 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14663 | { (eval echo configure:14664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14664 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14665 | if test -z "$ac_err"; then | |
14666 | rm -rf conftest* | |
14667 | eval "ac_cv_header_$ac_safe=yes" | |
14668 | else | |
14669 | echo "$ac_err" >&5 | |
14670 | echo "configure: failed program was:" >&5 | |
14671 | cat conftest.$ac_ext >&5 | |
14672 | rm -rf conftest* | |
14673 | eval "ac_cv_header_$ac_safe=no" | |
14674 | fi | |
14675 | rm -f conftest* | |
14676 | fi | |
14677 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14678 | echo "$ac_t""yes" 1>&6 | |
14679 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
14680 | echo "configure:14681: checking for png_check_sig in -lpng" >&5 | |
14681 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` | |
14682 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14683 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14684 | else | |
14685 | ac_save_LIBS="$LIBS" | |
14686 | LIBS="-lpng -lz -lm $LIBS" | |
14687 | cat > conftest.$ac_ext <<EOF | |
14688 | #line 14689 "configure" | |
14689 | #include "confdefs.h" | |
14690 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14691 | /* We use char because int might match the return type of a gcc2 | |
14692 | builtin and then its argument prototype would still apply. */ | |
14693 | char png_check_sig(); | |
14694 | ||
14695 | int main() { | |
14696 | png_check_sig() | |
14697 | ; return 0; } | |
14698 | EOF | |
14699 | if { (eval echo configure:14700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14700 | rm -rf conftest* | |
14701 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14702 | else | |
14703 | echo "configure: failed program was:" >&5 | |
14704 | cat conftest.$ac_ext >&5 | |
14705 | rm -rf conftest* | |
14706 | eval "ac_cv_lib_$ac_lib_var=no" | |
14707 | fi | |
14708 | rm -f conftest* | |
14709 | LIBS="$ac_save_LIBS" | |
14710 | ||
14711 | fi | |
14712 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14713 | echo "$ac_t""yes" 1>&6 | |
14714 | PNG_LINK="-lpng" | |
14715 | else | |
14716 | echo "$ac_t""no" 1>&6 | |
14717 | fi | |
14718 | ||
14719 | ||
14720 | else | |
14721 | echo "$ac_t""no" 1>&6 | |
14722 | fi | |
14723 | ||
14724 | if test "x$PNG_LINK" = "x" ; then | |
14725 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } | |
14726 | fi | |
14727 | fi | |
14728 | ||
14729 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
14730 | fi | |
14731 | ||
14732 | JPEG_INCLUDE= | |
14733 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then | |
14734 | cat >> confdefs.h <<\EOF | |
14735 | #define wxUSE_LIBJPEG 1 | |
14736 | EOF | |
14737 | ||
14738 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
14739 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
14740 | else | |
14741 | JPEG_LINK= | |
14742 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
14743 | echo "configure:14744: checking for jpeglib.h" >&5 | |
14744 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then | |
14745 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14746 | else | |
14747 | cat > conftest.$ac_ext <<EOF | |
14748 | #line 14749 "configure" | |
14749 | #include "confdefs.h" | |
14750 | ||
14751 | #undef HAVE_STDLIB_H | |
14752 | #include <stdio.h> | |
14753 | #include <jpeglib.h> | |
14754 | ||
14755 | int main() { | |
14756 | ||
14757 | ||
14758 | ; return 0; } | |
14759 | EOF | |
14760 | if { (eval echo configure:14761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14761 | rm -rf conftest* | |
14762 | ac_cv_header_jpeglib_h=yes | |
14763 | else | |
14764 | echo "configure: failed program was:" >&5 | |
14765 | cat conftest.$ac_ext >&5 | |
14766 | rm -rf conftest* | |
14767 | ac_cv_header_jpeglib_h=no | |
14768 | ||
14769 | fi | |
14770 | rm -f conftest* | |
14771 | ||
14772 | fi | |
14773 | ||
14774 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
14775 | ||
14776 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
14777 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
14778 | echo "configure:14779: checking for jpeg_read_header in -ljpeg" >&5 | |
14779 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` | |
14780 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14781 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14782 | else | |
14783 | ac_save_LIBS="$LIBS" | |
14784 | LIBS="-ljpeg $LIBS" | |
14785 | cat > conftest.$ac_ext <<EOF | |
14786 | #line 14787 "configure" | |
14787 | #include "confdefs.h" | |
14788 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14789 | /* We use char because int might match the return type of a gcc2 | |
14790 | builtin and then its argument prototype would still apply. */ | |
14791 | char jpeg_read_header(); | |
14792 | ||
14793 | int main() { | |
14794 | jpeg_read_header() | |
14795 | ; return 0; } | |
14796 | EOF | |
14797 | if { (eval echo configure:14798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14798 | rm -rf conftest* | |
14799 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14800 | else | |
14801 | echo "configure: failed program was:" >&5 | |
14802 | cat conftest.$ac_ext >&5 | |
14803 | rm -rf conftest* | |
14804 | eval "ac_cv_lib_$ac_lib_var=no" | |
14805 | fi | |
14806 | rm -f conftest* | |
14807 | LIBS="$ac_save_LIBS" | |
14808 | ||
14809 | fi | |
14810 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14811 | echo "$ac_t""yes" 1>&6 | |
14812 | JPEG_LINK="-ljpeg" | |
14813 | else | |
14814 | echo "$ac_t""no" 1>&6 | |
14815 | fi | |
14816 | ||
14817 | fi | |
14818 | ||
14819 | if test "x$JPEG_LINK" = "x" ; then | |
14820 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } | |
14821 | fi | |
14822 | fi | |
14823 | fi | |
14824 | ||
14825 | TIFF_INCLUDE= | |
14826 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then | |
14827 | cat >> confdefs.h <<\EOF | |
14828 | #define wxUSE_LIBTIFF 1 | |
14829 | EOF | |
14830 | ||
14831 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
14832 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
14833 | else | |
14834 | TIFF_LINK= | |
14835 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
14836 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
14837 | echo "configure:14838: checking for tiffio.h" >&5 | |
14838 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
14839 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14840 | else | |
14841 | cat > conftest.$ac_ext <<EOF | |
14842 | #line 14843 "configure" | |
14843 | #include "confdefs.h" | |
14844 | #include <tiffio.h> | |
14845 | EOF | |
14846 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14847 | { (eval echo configure:14848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14848 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14849 | if test -z "$ac_err"; then | |
14850 | rm -rf conftest* | |
14851 | eval "ac_cv_header_$ac_safe=yes" | |
14852 | else | |
14853 | echo "$ac_err" >&5 | |
14854 | echo "configure: failed program was:" >&5 | |
14855 | cat conftest.$ac_ext >&5 | |
14856 | rm -rf conftest* | |
14857 | eval "ac_cv_header_$ac_safe=no" | |
14858 | fi | |
14859 | rm -f conftest* | |
14860 | fi | |
14861 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14862 | echo "$ac_t""yes" 1>&6 | |
14863 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
14864 | echo "configure:14865: checking for TIFFError in -ltiff" >&5 | |
14865 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` | |
14866 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14867 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14868 | else | |
14869 | ac_save_LIBS="$LIBS" | |
14870 | LIBS="-ltiff -lm $LIBS" | |
14871 | cat > conftest.$ac_ext <<EOF | |
14872 | #line 14873 "configure" | |
14873 | #include "confdefs.h" | |
14874 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14875 | /* We use char because int might match the return type of a gcc2 | |
14876 | builtin and then its argument prototype would still apply. */ | |
14877 | char TIFFError(); | |
14878 | ||
14879 | int main() { | |
14880 | TIFFError() | |
14881 | ; return 0; } | |
14882 | EOF | |
14883 | if { (eval echo configure:14884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14884 | rm -rf conftest* | |
14885 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14886 | else | |
14887 | echo "configure: failed program was:" >&5 | |
14888 | cat conftest.$ac_ext >&5 | |
14889 | rm -rf conftest* | |
14890 | eval "ac_cv_lib_$ac_lib_var=no" | |
14891 | fi | |
14892 | rm -f conftest* | |
14893 | LIBS="$ac_save_LIBS" | |
14894 | ||
14895 | fi | |
14896 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14897 | echo "$ac_t""yes" 1>&6 | |
14898 | TIFF_LINK="-ltiff" | |
14899 | else | |
14900 | echo "$ac_t""no" 1>&6 | |
14901 | fi | |
14902 | ||
14903 | else | |
14904 | echo "$ac_t""no" 1>&6 | |
14905 | fi | |
14906 | ||
14907 | if test "x$TIFF_LINK" = "x" ; then | |
14908 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } | |
14909 | fi | |
14910 | fi | |
14911 | fi | |
14912 | ||
14913 | FREETYPE_INCLUDE= | |
14914 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
14915 | cat >> confdefs.h <<\EOF | |
14916 | #define wxUSE_FREETYPE 1 | |
14917 | EOF | |
14918 | ||
14919 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
14920 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
14921 | else | |
14922 | FREETYPE_LINK= | |
14923 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
14924 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
14925 | echo "configure:14926: checking for freetype.h" >&5 | |
14926 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
14927 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14928 | else | |
14929 | cat > conftest.$ac_ext <<EOF | |
14930 | #line 14931 "configure" | |
14931 | #include "confdefs.h" | |
14932 | #include <freetype.h> | |
14933 | EOF | |
14934 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
14935 | { (eval echo configure:14936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
14936 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
14937 | if test -z "$ac_err"; then | |
14938 | rm -rf conftest* | |
14939 | eval "ac_cv_header_$ac_safe=yes" | |
14940 | else | |
14941 | echo "$ac_err" >&5 | |
14942 | echo "configure: failed program was:" >&5 | |
14943 | cat conftest.$ac_ext >&5 | |
14944 | rm -rf conftest* | |
14945 | eval "ac_cv_header_$ac_safe=no" | |
14946 | fi | |
14947 | rm -f conftest* | |
14948 | fi | |
14949 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14950 | echo "$ac_t""yes" 1>&6 | |
14951 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
14952 | echo "configure:14953: checking for FT_Render_Glyph in -lfreetype" >&5 | |
14953 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` | |
14954 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14955 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14956 | else | |
14957 | ac_save_LIBS="$LIBS" | |
14958 | LIBS="-lfreetype -lm $LIBS" | |
14959 | cat > conftest.$ac_ext <<EOF | |
14960 | #line 14961 "configure" | |
14961 | #include "confdefs.h" | |
14962 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14963 | /* We use char because int might match the return type of a gcc2 | |
14964 | builtin and then its argument prototype would still apply. */ | |
14965 | char FT_Render_Glyph(); | |
14966 | ||
14967 | int main() { | |
14968 | FT_Render_Glyph() | |
14969 | ; return 0; } | |
14970 | EOF | |
14971 | if { (eval echo configure:14972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14972 | rm -rf conftest* | |
14973 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14974 | else | |
14975 | echo "configure: failed program was:" >&5 | |
14976 | cat conftest.$ac_ext >&5 | |
14977 | rm -rf conftest* | |
14978 | eval "ac_cv_lib_$ac_lib_var=no" | |
14979 | fi | |
14980 | rm -f conftest* | |
14981 | LIBS="$ac_save_LIBS" | |
14982 | ||
14983 | fi | |
14984 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14985 | echo "$ac_t""yes" 1>&6 | |
14986 | FREETYPE_LINK="-lfreetype" | |
14987 | else | |
14988 | echo "$ac_t""no" 1>&6 | |
14989 | fi | |
14990 | ||
14991 | ||
14992 | else | |
14993 | echo "$ac_t""no" 1>&6 | |
14994 | fi | |
14995 | ||
14996 | if test "x$FREETYPE_LINK" = "x" ; then | |
14997 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } | |
14998 | fi | |
14999 | fi | |
15000 | fi | |
15001 | ||
15002 | if test "$wxUSE_OPENGL" = "yes"; then | |
15003 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
15004 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
15005 | echo "configure:15006: checking for GL/gl.h" >&5 | |
15006 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
15007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15008 | else | |
15009 | cat > conftest.$ac_ext <<EOF | |
15010 | #line 15011 "configure" | |
15011 | #include "confdefs.h" | |
15012 | #include <GL/gl.h> | |
15013 | EOF | |
15014 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15015 | { (eval echo configure:15016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15016 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15017 | if test -z "$ac_err"; then | |
15018 | rm -rf conftest* | |
15019 | eval "ac_cv_header_$ac_safe=yes" | |
15020 | else | |
15021 | echo "$ac_err" >&5 | |
15022 | echo "configure: failed program was:" >&5 | |
15023 | cat conftest.$ac_ext >&5 | |
15024 | rm -rf conftest* | |
15025 | eval "ac_cv_header_$ac_safe=no" | |
15026 | fi | |
15027 | rm -f conftest* | |
15028 | fi | |
15029 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15030 | echo "$ac_t""yes" 1>&6 | |
15031 | ||
15032 | cat >> confdefs.h <<\EOF | |
15033 | #define wxUSE_OPENGL 1 | |
15034 | EOF | |
15035 | ||
15036 | cat >> confdefs.h <<\EOF | |
15037 | #define wxUSE_GLCANVAS 1 | |
15038 | EOF | |
15039 | ||
15040 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 | |
15041 | echo "configure:15042: checking for glFlush in -lGL" >&5 | |
15042 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` | |
15043 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15044 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15045 | else | |
15046 | ac_save_LIBS="$LIBS" | |
15047 | LIBS="-lGL $LIBS" | |
15048 | cat > conftest.$ac_ext <<EOF | |
15049 | #line 15050 "configure" | |
15050 | #include "confdefs.h" | |
15051 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15052 | /* We use char because int might match the return type of a gcc2 | |
15053 | builtin and then its argument prototype would still apply. */ | |
15054 | char glFlush(); | |
15055 | ||
15056 | int main() { | |
15057 | glFlush() | |
15058 | ; return 0; } | |
15059 | EOF | |
15060 | if { (eval echo configure:15061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15061 | rm -rf conftest* | |
15062 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15063 | else | |
15064 | echo "configure: failed program was:" >&5 | |
15065 | cat conftest.$ac_ext >&5 | |
15066 | rm -rf conftest* | |
15067 | eval "ac_cv_lib_$ac_lib_var=no" | |
15068 | fi | |
15069 | rm -f conftest* | |
15070 | LIBS="$ac_save_LIBS" | |
15071 | ||
15072 | fi | |
15073 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15074 | echo "$ac_t""yes" 1>&6 | |
15075 | ||
15076 | OPENGL_LINK="-lGL -lGLU" | |
15077 | ||
15078 | else | |
15079 | echo "$ac_t""no" 1>&6 | |
15080 | ||
15081 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 | |
15082 | echo "configure:15083: checking for glFlush in -lMesaGL" >&5 | |
15083 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` | |
15084 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15085 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15086 | else | |
15087 | ac_save_LIBS="$LIBS" | |
15088 | LIBS="-lMesaGL $LIBS" | |
15089 | cat > conftest.$ac_ext <<EOF | |
15090 | #line 15091 "configure" | |
15091 | #include "confdefs.h" | |
15092 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15093 | /* We use char because int might match the return type of a gcc2 | |
15094 | builtin and then its argument prototype would still apply. */ | |
15095 | char glFlush(); | |
15096 | ||
15097 | int main() { | |
15098 | glFlush() | |
15099 | ; return 0; } | |
15100 | EOF | |
15101 | if { (eval echo configure:15102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15102 | rm -rf conftest* | |
15103 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15104 | else | |
15105 | echo "configure: failed program was:" >&5 | |
15106 | cat conftest.$ac_ext >&5 | |
15107 | rm -rf conftest* | |
15108 | eval "ac_cv_lib_$ac_lib_var=no" | |
15109 | fi | |
15110 | rm -f conftest* | |
15111 | LIBS="$ac_save_LIBS" | |
15112 | ||
15113 | fi | |
15114 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15115 | echo "$ac_t""yes" 1>&6 | |
15116 | ||
15117 | OPENGL_LINK="-lMesaGL -lMesaGLU" | |
15118 | ||
15119 | else | |
15120 | echo "$ac_t""no" 1>&6 | |
15121 | fi | |
15122 | ||
15123 | ||
15124 | fi | |
15125 | ||
15126 | ||
15127 | else | |
15128 | echo "$ac_t""no" 1>&6 | |
15129 | wxUSE_OPENGL=0 | |
15130 | fi | |
15131 | ||
15132 | fi | |
15133 | ||
15134 | ||
15135 | if test "$wxUSE_GUI" = "yes"; then | |
15136 | cat >> confdefs.h <<\EOF | |
15137 | #define wxUSE_GUI 1 | |
15138 | EOF | |
15139 | ||
15140 | ||
15141 | else | |
15142 | cat >> confdefs.h <<\EOF | |
15143 | #define wxUSE_NOGUI 1 | |
15144 | EOF | |
15145 | ||
15146 | fi | |
15147 | ||
15148 | ||
15149 | if test "$wxUSE_UNIX" = "yes"; then | |
15150 | cat >> confdefs.h <<\EOF | |
15151 | #define wxUSE_UNIX 1 | |
15152 | EOF | |
15153 | ||
15154 | fi | |
15155 | ||
15156 | ||
15157 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
15158 | cat >> confdefs.h <<\EOF | |
15159 | #define wxUSE_APPLE_IEEE 1 | |
15160 | EOF | |
15161 | ||
15162 | fi | |
15163 | ||
15164 | if test "$wxUSE_TIMER" = "yes"; then | |
15165 | cat >> confdefs.h <<\EOF | |
15166 | #define wxUSE_TIMER 1 | |
15167 | EOF | |
15168 | ||
15169 | fi | |
15170 | ||
15171 | if test "$wxUSE_WAVE" = "yes"; then | |
15172 | cat >> confdefs.h <<\EOF | |
15173 | #define wxUSE_WAVE 1 | |
15174 | EOF | |
15175 | ||
15176 | fi | |
15177 | ||
15178 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then | |
15179 | cat >> confdefs.h <<\EOF | |
15180 | #define wxUSE_CMDLINE_PARSER 1 | |
15181 | EOF | |
15182 | ||
15183 | fi | |
15184 | ||
15185 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
15186 | cat >> confdefs.h <<\EOF | |
15187 | #define wxUSE_STOPWATCH 1 | |
15188 | EOF | |
15189 | ||
15190 | fi | |
15191 | ||
15192 | if test "$wxUSE_DATETIME" = "yes"; then | |
15193 | cat >> confdefs.h <<\EOF | |
15194 | #define wxUSE_DATETIME 1 | |
15195 | EOF | |
15196 | ||
15197 | fi | |
15198 | ||
15199 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
15200 | cat >> confdefs.h <<\EOF | |
15201 | #define wxUSE_TIMEDATE 1 | |
15202 | EOF | |
15203 | ||
15204 | fi | |
15205 | ||
15206 | if test "$wxUSE_FILE" = "yes"; then | |
15207 | cat >> confdefs.h <<\EOF | |
15208 | #define wxUSE_FILE 1 | |
15209 | EOF | |
15210 | ||
15211 | fi | |
15212 | ||
15213 | if test "$wxUSE_FFILE" = "yes"; then | |
15214 | cat >> confdefs.h <<\EOF | |
15215 | #define wxUSE_FFILE 1 | |
15216 | EOF | |
15217 | ||
15218 | fi | |
15219 | ||
15220 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
15221 | cat >> confdefs.h <<\EOF | |
15222 | #define wxUSE_FILESYSTEM 1 | |
15223 | EOF | |
15224 | ||
15225 | fi | |
15226 | ||
15227 | if test "$wxUSE_FS_INET" = "yes"; then | |
15228 | cat >> confdefs.h <<\EOF | |
15229 | #define wxUSE_FS_INET 1 | |
15230 | EOF | |
15231 | ||
15232 | fi | |
15233 | ||
15234 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
15235 | cat >> confdefs.h <<\EOF | |
15236 | #define wxUSE_FS_ZIP 1 | |
15237 | EOF | |
15238 | ||
15239 | fi | |
15240 | ||
15241 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
15242 | cat >> confdefs.h <<\EOF | |
15243 | #define wxUSE_ZIPSTREAM 1 | |
15244 | EOF | |
15245 | ||
15246 | fi | |
15247 | ||
15248 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
15249 | cat >> confdefs.h <<\EOF | |
15250 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
15251 | EOF | |
15252 | ||
15253 | fi | |
15254 | ||
15255 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
15256 | cat >> confdefs.h <<\EOF | |
15257 | #define wxUSE_SNGLINST_CHECKER 1 | |
15258 | EOF | |
15259 | ||
15260 | fi | |
15261 | ||
15262 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
15263 | cat >> confdefs.h <<\EOF | |
15264 | #define wxUSE_BUSYINFO 1 | |
15265 | EOF | |
15266 | ||
15267 | fi | |
15268 | ||
15269 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
15270 | cat >> confdefs.h <<\EOF | |
15271 | #define wxUSE_STD_IOSTREAM 1 | |
15272 | EOF | |
15273 | ||
15274 | fi | |
15275 | ||
15276 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
15277 | if test "$wxUSE_FILE" != "yes"; then | |
15278 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
15279 | else | |
15280 | cat >> confdefs.h <<\EOF | |
15281 | #define wxUSE_TEXTFILE 1 | |
15282 | EOF | |
15283 | ||
15284 | fi | |
15285 | fi | |
15286 | ||
15287 | if test "$wxUSE_CONFIG" = "yes" ; then | |
15288 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
15289 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
15290 | else | |
15291 | cat >> confdefs.h <<\EOF | |
15292 | #define wxUSE_CONFIG 1 | |
15293 | EOF | |
15294 | ||
15295 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
15296 | fi | |
15297 | fi | |
15298 | ||
15299 | if test "$wxUSE_INTL" = "yes" ; then | |
15300 | if test "$wxUSE_FILE" != "yes"; then | |
15301 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
15302 | else | |
15303 | cat >> confdefs.h <<\EOF | |
15304 | #define wxUSE_INTL 1 | |
15305 | EOF | |
15306 | ||
15307 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
15308 | GUIDIST="$GUIDIST INTL_DIST" | |
15309 | fi | |
15310 | fi | |
15311 | ||
15312 | if test "$wxUSE_LOG" = "yes"; then | |
15313 | cat >> confdefs.h <<\EOF | |
15314 | #define wxUSE_LOG 1 | |
15315 | EOF | |
15316 | ||
15317 | ||
15318 | if test "$wxUSE_LOGGUI" = "yes"; then | |
15319 | cat >> confdefs.h <<\EOF | |
15320 | #define wxUSE_LOGGUI 1 | |
15321 | EOF | |
15322 | ||
15323 | fi | |
15324 | ||
15325 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
15326 | cat >> confdefs.h <<\EOF | |
15327 | #define wxUSE_LOGWINDOW 1 | |
15328 | EOF | |
15329 | ||
15330 | fi | |
15331 | fi | |
15332 | ||
15333 | if test "$wxUSE_LONGLONG" = "yes"; then | |
15334 | cat >> confdefs.h <<\EOF | |
15335 | #define wxUSE_LONGLONG 1 | |
15336 | EOF | |
15337 | ||
15338 | fi | |
15339 | ||
15340 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
15341 | cat >> confdefs.h <<\EOF | |
15342 | #define wxUSE_GEOMETRY 1 | |
15343 | EOF | |
15344 | ||
15345 | fi | |
15346 | ||
15347 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
15348 | cat >> confdefs.h <<\EOF | |
15349 | #define wxUSE_DIALUP_MANAGER 1 | |
15350 | EOF | |
15351 | ||
15352 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
15353 | fi | |
15354 | ||
15355 | if test "$wxUSE_STREAMS" = "yes" ; then | |
15356 | cat >> confdefs.h <<\EOF | |
15357 | #define wxUSE_STREAMS 1 | |
15358 | EOF | |
15359 | ||
15360 | fi | |
15361 | ||
15362 | ||
15363 | if test "$wxUSE_DATETIME" = "yes"; then | |
15364 | for ac_func in strptime | |
15365 | do | |
15366 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15367 | echo "configure:15368: checking for $ac_func" >&5 | |
15368 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
15369 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15370 | else | |
15371 | cat > conftest.$ac_ext <<EOF | |
15372 | #line 15373 "configure" | |
15373 | #include "confdefs.h" | |
15374 | /* System header to define __stub macros and hopefully few prototypes, | |
15375 | which can conflict with char $ac_func(); below. */ | |
15376 | #include <assert.h> | |
15377 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15378 | /* We use char because int might match the return type of a gcc2 | |
15379 | builtin and then its argument prototype would still apply. */ | |
15380 | char $ac_func(); | |
15381 | ||
15382 | int main() { | |
15383 | ||
15384 | /* The GNU C library defines this for functions which it implements | |
15385 | to always fail with ENOSYS. Some functions are actually named | |
15386 | something starting with __ and the normal name is an alias. */ | |
15387 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15388 | choke me | |
15389 | #else | |
15390 | $ac_func(); | |
15391 | #endif | |
15392 | ||
15393 | ; return 0; } | |
15394 | EOF | |
15395 | if { (eval echo configure:15396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15396 | rm -rf conftest* | |
15397 | eval "ac_cv_func_$ac_func=yes" | |
15398 | else | |
15399 | echo "configure: failed program was:" >&5 | |
15400 | cat conftest.$ac_ext >&5 | |
15401 | rm -rf conftest* | |
15402 | eval "ac_cv_func_$ac_func=no" | |
15403 | fi | |
15404 | rm -f conftest* | |
15405 | fi | |
15406 | ||
15407 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15408 | echo "$ac_t""yes" 1>&6 | |
15409 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15410 | cat >> confdefs.h <<EOF | |
15411 | #define $ac_tr_func 1 | |
15412 | EOF | |
15413 | ||
15414 | else | |
15415 | echo "$ac_t""no" 1>&6 | |
15416 | fi | |
15417 | done | |
15418 | ||
15419 | ||
15420 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 | |
15421 | echo "configure:15422: checking for timezone variable in <time.h>" >&5 | |
15422 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then | |
15423 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15424 | else | |
15425 | ||
15426 | cat > conftest.$ac_ext <<EOF | |
15427 | #line 15428 "configure" | |
15428 | #include "confdefs.h" | |
15429 | ||
15430 | #include <time.h> | |
15431 | ||
15432 | int main() { | |
15433 | ||
15434 | int tz; | |
15435 | tz = __timezone; | |
15436 | ||
15437 | ; return 0; } | |
15438 | EOF | |
15439 | if { (eval echo configure:15440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15440 | rm -rf conftest* | |
15441 | ||
15442 | wx_cv_var_timezone=__timezone | |
15443 | ||
15444 | else | |
15445 | echo "configure: failed program was:" >&5 | |
15446 | cat conftest.$ac_ext >&5 | |
15447 | rm -rf conftest* | |
15448 | ||
15449 | cat > conftest.$ac_ext <<EOF | |
15450 | #line 15451 "configure" | |
15451 | #include "confdefs.h" | |
15452 | ||
15453 | #include <time.h> | |
15454 | ||
15455 | int main() { | |
15456 | ||
15457 | int tz; | |
15458 | tz = _timezone; | |
15459 | ||
15460 | ; return 0; } | |
15461 | EOF | |
15462 | if { (eval echo configure:15463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15463 | rm -rf conftest* | |
15464 | ||
15465 | wx_cv_var_timezone=_timezone | |
15466 | ||
15467 | else | |
15468 | echo "configure: failed program was:" >&5 | |
15469 | cat conftest.$ac_ext >&5 | |
15470 | rm -rf conftest* | |
15471 | ||
15472 | cat > conftest.$ac_ext <<EOF | |
15473 | #line 15474 "configure" | |
15474 | #include "confdefs.h" | |
15475 | ||
15476 | #include <time.h> | |
15477 | ||
15478 | int main() { | |
15479 | ||
15480 | int tz; | |
15481 | tz = timezone; | |
15482 | ||
15483 | ; return 0; } | |
15484 | EOF | |
15485 | if { (eval echo configure:15486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15486 | rm -rf conftest* | |
15487 | ||
15488 | wx_cv_var_timezone=timezone | |
15489 | ||
15490 | else | |
15491 | echo "configure: failed program was:" >&5 | |
15492 | cat conftest.$ac_ext >&5 | |
15493 | rm -rf conftest* | |
15494 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
15495 | ||
15496 | fi | |
15497 | rm -f conftest* | |
15498 | ||
15499 | ||
15500 | fi | |
15501 | rm -f conftest* | |
15502 | ||
15503 | ||
15504 | fi | |
15505 | rm -f conftest* | |
15506 | ||
15507 | ||
15508 | fi | |
15509 | ||
15510 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
15511 | ||
15512 | cat >> confdefs.h <<EOF | |
15513 | #define WX_TIMEZONE $wx_cv_var_timezone | |
15514 | EOF | |
15515 | ||
15516 | ||
15517 | for ac_func in localtime | |
15518 | do | |
15519 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15520 | echo "configure:15521: checking for $ac_func" >&5 | |
15521 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
15522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15523 | else | |
15524 | cat > conftest.$ac_ext <<EOF | |
15525 | #line 15526 "configure" | |
15526 | #include "confdefs.h" | |
15527 | /* System header to define __stub macros and hopefully few prototypes, | |
15528 | which can conflict with char $ac_func(); below. */ | |
15529 | #include <assert.h> | |
15530 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15531 | /* We use char because int might match the return type of a gcc2 | |
15532 | builtin and then its argument prototype would still apply. */ | |
15533 | char $ac_func(); | |
15534 | ||
15535 | int main() { | |
15536 | ||
15537 | /* The GNU C library defines this for functions which it implements | |
15538 | to always fail with ENOSYS. Some functions are actually named | |
15539 | something starting with __ and the normal name is an alias. */ | |
15540 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15541 | choke me | |
15542 | #else | |
15543 | $ac_func(); | |
15544 | #endif | |
15545 | ||
15546 | ; return 0; } | |
15547 | EOF | |
15548 | if { (eval echo configure:15549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15549 | rm -rf conftest* | |
15550 | eval "ac_cv_func_$ac_func=yes" | |
15551 | else | |
15552 | echo "configure: failed program was:" >&5 | |
15553 | cat conftest.$ac_ext >&5 | |
15554 | rm -rf conftest* | |
15555 | eval "ac_cv_func_$ac_func=no" | |
15556 | fi | |
15557 | rm -f conftest* | |
15558 | fi | |
15559 | ||
15560 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15561 | echo "$ac_t""yes" 1>&6 | |
15562 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15563 | cat >> confdefs.h <<EOF | |
15564 | #define $ac_tr_func 1 | |
15565 | EOF | |
15566 | ||
15567 | else | |
15568 | echo "$ac_t""no" 1>&6 | |
15569 | fi | |
15570 | done | |
15571 | ||
15572 | ||
15573 | if test "$ac_cv_func_localtime" = "yes"; then | |
15574 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
15575 | echo "configure:15576: checking for tm_gmtoff in struct tm" >&5 | |
15576 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then | |
15577 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15578 | else | |
15579 | ||
15580 | cat > conftest.$ac_ext <<EOF | |
15581 | #line 15582 "configure" | |
15582 | #include "confdefs.h" | |
15583 | ||
15584 | #include <time.h> | |
15585 | ||
15586 | int main() { | |
15587 | ||
15588 | struct tm tm; | |
15589 | tm.tm_gmtoff++; | |
15590 | ||
15591 | ; return 0; } | |
15592 | EOF | |
15593 | if { (eval echo configure:15594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15594 | rm -rf conftest* | |
15595 | ||
15596 | wx_cv_struct_tm_has_gmtoff=yes | |
15597 | ||
15598 | else | |
15599 | echo "configure: failed program was:" >&5 | |
15600 | cat conftest.$ac_ext >&5 | |
15601 | rm -rf conftest* | |
15602 | wx_cv_struct_tm_has_gmtoff=no | |
15603 | ||
15604 | fi | |
15605 | rm -f conftest* | |
15606 | ||
15607 | fi | |
15608 | ||
15609 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
15610 | fi | |
15611 | ||
15612 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
15613 | cat >> confdefs.h <<\EOF | |
15614 | #define WX_GMTOFF_IN_TM 1 | |
15615 | EOF | |
15616 | ||
15617 | fi | |
15618 | ||
15619 | for ac_func in gettimeofday ftime | |
15620 | do | |
15621 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15622 | echo "configure:15623: checking for $ac_func" >&5 | |
15623 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
15624 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15625 | else | |
15626 | cat > conftest.$ac_ext <<EOF | |
15627 | #line 15628 "configure" | |
15628 | #include "confdefs.h" | |
15629 | /* System header to define __stub macros and hopefully few prototypes, | |
15630 | which can conflict with char $ac_func(); below. */ | |
15631 | #include <assert.h> | |
15632 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15633 | /* We use char because int might match the return type of a gcc2 | |
15634 | builtin and then its argument prototype would still apply. */ | |
15635 | char $ac_func(); | |
15636 | ||
15637 | int main() { | |
15638 | ||
15639 | /* The GNU C library defines this for functions which it implements | |
15640 | to always fail with ENOSYS. Some functions are actually named | |
15641 | something starting with __ and the normal name is an alias. */ | |
15642 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15643 | choke me | |
15644 | #else | |
15645 | $ac_func(); | |
15646 | #endif | |
15647 | ||
15648 | ; return 0; } | |
15649 | EOF | |
15650 | if { (eval echo configure:15651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15651 | rm -rf conftest* | |
15652 | eval "ac_cv_func_$ac_func=yes" | |
15653 | else | |
15654 | echo "configure: failed program was:" >&5 | |
15655 | cat conftest.$ac_ext >&5 | |
15656 | rm -rf conftest* | |
15657 | eval "ac_cv_func_$ac_func=no" | |
15658 | fi | |
15659 | rm -f conftest* | |
15660 | fi | |
15661 | ||
15662 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15663 | echo "$ac_t""yes" 1>&6 | |
15664 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15665 | cat >> confdefs.h <<EOF | |
15666 | #define $ac_tr_func 1 | |
15667 | EOF | |
15668 | break | |
15669 | else | |
15670 | echo "$ac_t""no" 1>&6 | |
15671 | fi | |
15672 | done | |
15673 | ||
15674 | ||
15675 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
15676 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
15677 | echo "configure:15678: checking whether gettimeofday takes two arguments" >&5 | |
15678 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then | |
15679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15680 | else | |
15681 | ||
15682 | ||
15683 | ac_ext=C | |
15684 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15685 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15686 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15687 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15688 | cross_compiling=$ac_cv_prog_cxx_cross | |
15689 | ||
15690 | ||
15691 | cat > conftest.$ac_ext <<EOF | |
15692 | #line 15693 "configure" | |
15693 | #include "confdefs.h" | |
15694 | ||
15695 | #include <sys/time.h> | |
15696 | #include <unistd.h> | |
15697 | ||
15698 | int main() { | |
15699 | ||
15700 | struct timeval tv; | |
15701 | struct timezone tz; | |
15702 | gettimeofday(&tv, &tz); | |
15703 | ||
15704 | ; return 0; } | |
15705 | EOF | |
15706 | if { (eval echo configure:15707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15707 | rm -rf conftest* | |
15708 | wx_cv_func_gettimeofday_has_2_args=yes | |
15709 | else | |
15710 | echo "configure: failed program was:" >&5 | |
15711 | cat conftest.$ac_ext >&5 | |
15712 | rm -rf conftest* | |
15713 | cat > conftest.$ac_ext <<EOF | |
15714 | #line 15715 "configure" | |
15715 | #include "confdefs.h" | |
15716 | ||
15717 | #include <sys/time.h> | |
15718 | #include <unistd.h> | |
15719 | ||
15720 | int main() { | |
15721 | ||
15722 | struct timeval tv; | |
15723 | gettimeofday(&tv); | |
15724 | ||
15725 | ; return 0; } | |
15726 | EOF | |
15727 | if { (eval echo configure:15728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15728 | rm -rf conftest* | |
15729 | wx_cv_func_gettimeofday_has_2_args=no | |
15730 | else | |
15731 | echo "configure: failed program was:" >&5 | |
15732 | cat conftest.$ac_ext >&5 | |
15733 | rm -rf conftest* | |
15734 | wx_cv_func_gettimeofday_has_2_args=unknown | |
15735 | ||
15736 | fi | |
15737 | rm -f conftest* | |
15738 | ||
15739 | fi | |
15740 | rm -f conftest* | |
15741 | ac_ext=c | |
15742 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15743 | ac_cpp='$CPP $CPPFLAGS' | |
15744 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15745 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15746 | cross_compiling=$ac_cv_prog_cc_cross | |
15747 | ||
15748 | ||
15749 | fi | |
15750 | ||
15751 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
15752 | ||
15753 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
15754 | cat >> confdefs.h <<\EOF | |
15755 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
15756 | EOF | |
15757 | ||
15758 | fi | |
15759 | fi | |
15760 | ||
15761 | cat >> confdefs.h <<\EOF | |
15762 | #define wxUSE_TIMEDATE 1 | |
15763 | EOF | |
15764 | ||
15765 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
15766 | fi | |
15767 | ||
15768 | ||
15769 | if test "$TOOLKIT" != "MSW"; then | |
15770 | ||
15771 | if test "$wxUSE_SOCKETS" = "yes"; then | |
15772 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
15773 | echo "configure:15774: checking for socket" >&5 | |
15774 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | |
15775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15776 | else | |
15777 | cat > conftest.$ac_ext <<EOF | |
15778 | #line 15779 "configure" | |
15779 | #include "confdefs.h" | |
15780 | /* System header to define __stub macros and hopefully few prototypes, | |
15781 | which can conflict with char socket(); below. */ | |
15782 | #include <assert.h> | |
15783 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15784 | /* We use char because int might match the return type of a gcc2 | |
15785 | builtin and then its argument prototype would still apply. */ | |
15786 | char socket(); | |
15787 | ||
15788 | int main() { | |
15789 | ||
15790 | /* The GNU C library defines this for functions which it implements | |
15791 | to always fail with ENOSYS. Some functions are actually named | |
15792 | something starting with __ and the normal name is an alias. */ | |
15793 | #if defined (__stub_socket) || defined (__stub___socket) | |
15794 | choke me | |
15795 | #else | |
15796 | socket(); | |
15797 | #endif | |
15798 | ||
15799 | ; return 0; } | |
15800 | EOF | |
15801 | if { (eval echo configure:15802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15802 | rm -rf conftest* | |
15803 | eval "ac_cv_func_socket=yes" | |
15804 | else | |
15805 | echo "configure: failed program was:" >&5 | |
15806 | cat conftest.$ac_ext >&5 | |
15807 | rm -rf conftest* | |
15808 | eval "ac_cv_func_socket=no" | |
15809 | fi | |
15810 | rm -f conftest* | |
15811 | fi | |
15812 | ||
15813 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
15814 | echo "$ac_t""yes" 1>&6 | |
15815 | : | |
15816 | else | |
15817 | echo "$ac_t""no" 1>&6 | |
15818 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
15819 | echo "configure:15820: checking for socket in -lsocket" >&5 | |
15820 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` | |
15821 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15822 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15823 | else | |
15824 | ac_save_LIBS="$LIBS" | |
15825 | LIBS="-lsocket $LIBS" | |
15826 | cat > conftest.$ac_ext <<EOF | |
15827 | #line 15828 "configure" | |
15828 | #include "confdefs.h" | |
15829 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15830 | /* We use char because int might match the return type of a gcc2 | |
15831 | builtin and then its argument prototype would still apply. */ | |
15832 | char socket(); | |
15833 | ||
15834 | int main() { | |
15835 | socket() | |
15836 | ; return 0; } | |
15837 | EOF | |
15838 | if { (eval echo configure:15839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15839 | rm -rf conftest* | |
15840 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15841 | else | |
15842 | echo "configure: failed program was:" >&5 | |
15843 | cat conftest.$ac_ext >&5 | |
15844 | rm -rf conftest* | |
15845 | eval "ac_cv_lib_$ac_lib_var=no" | |
15846 | fi | |
15847 | rm -f conftest* | |
15848 | LIBS="$ac_save_LIBS" | |
15849 | ||
15850 | fi | |
15851 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15852 | echo "$ac_t""yes" 1>&6 | |
15853 | INET_LINK="$INET_LINK -lsocket" | |
15854 | else | |
15855 | echo "$ac_t""no" 1>&6 | |
15856 | ||
15857 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
15858 | wxUSE_SOCKETS=no | |
15859 | ||
15860 | ||
15861 | fi | |
15862 | ||
15863 | ||
15864 | fi | |
15865 | ||
15866 | fi | |
15867 | ||
15868 | ||
15869 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
15870 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
15871 | echo "configure:15872: checking what is the type of the third argument of getsockname" >&5 | |
15872 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then | |
15873 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15874 | else | |
15875 | ||
15876 | ||
15877 | ac_ext=C | |
15878 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15879 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15880 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15881 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15882 | cross_compiling=$ac_cv_prog_cxx_cross | |
15883 | ||
15884 | ||
15885 | cat > conftest.$ac_ext <<EOF | |
15886 | #line 15887 "configure" | |
15887 | #include "confdefs.h" | |
15888 | ||
15889 | #include <sys/types.h> | |
15890 | #include <sys/socket.h> | |
15891 | ||
15892 | int main() { | |
15893 | ||
15894 | socklen_t len; | |
15895 | getsockname(0, 0, &len); | |
15896 | ||
15897 | ; return 0; } | |
15898 | EOF | |
15899 | if { (eval echo configure:15900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15900 | rm -rf conftest* | |
15901 | wx_cv_type_getsockname3=socklen_t | |
15902 | else | |
15903 | echo "configure: failed program was:" >&5 | |
15904 | cat conftest.$ac_ext >&5 | |
15905 | rm -rf conftest* | |
15906 | cat > conftest.$ac_ext <<EOF | |
15907 | #line 15908 "configure" | |
15908 | #include "confdefs.h" | |
15909 | ||
15910 | #include <sys/types.h> | |
15911 | #include <sys/socket.h> | |
15912 | ||
15913 | int main() { | |
15914 | ||
15915 | size_t len; | |
15916 | getsockname(0, 0, &len); | |
15917 | ||
15918 | ; return 0; } | |
15919 | EOF | |
15920 | if { (eval echo configure:15921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15921 | rm -rf conftest* | |
15922 | wx_cv_type_getsockname3=size_t | |
15923 | else | |
15924 | echo "configure: failed program was:" >&5 | |
15925 | cat conftest.$ac_ext >&5 | |
15926 | rm -rf conftest* | |
15927 | cat > conftest.$ac_ext <<EOF | |
15928 | #line 15929 "configure" | |
15929 | #include "confdefs.h" | |
15930 | ||
15931 | #include <sys/types.h> | |
15932 | #include <sys/socket.h> | |
15933 | ||
15934 | int main() { | |
15935 | ||
15936 | int len; | |
15937 | getsockname(0, 0, &len); | |
15938 | ||
15939 | ; return 0; } | |
15940 | EOF | |
15941 | if { (eval echo configure:15942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15942 | rm -rf conftest* | |
15943 | wx_cv_type_getsockname3=int | |
15944 | else | |
15945 | echo "configure: failed program was:" >&5 | |
15946 | cat conftest.$ac_ext >&5 | |
15947 | rm -rf conftest* | |
15948 | wx_cv_type_getsockname3=unknown | |
15949 | ||
15950 | fi | |
15951 | rm -f conftest* | |
15952 | ||
15953 | fi | |
15954 | rm -f conftest* | |
15955 | ||
15956 | fi | |
15957 | rm -f conftest* | |
15958 | ||
15959 | ac_ext=c | |
15960 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15961 | ac_cpp='$CPP $CPPFLAGS' | |
15962 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15963 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15964 | cross_compiling=$ac_cv_prog_cc_cross | |
15965 | ||
15966 | ||
15967 | fi | |
15968 | ||
15969 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
15970 | ||
15971 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
15972 | wxUSE_SOCKETS=no | |
15973 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
15974 | else | |
15975 | cat >> confdefs.h <<EOF | |
15976 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
15977 | EOF | |
15978 | ||
15979 | fi | |
15980 | fi | |
15981 | ||
15982 | fi | |
15983 | ||
15984 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
15985 | cat >> confdefs.h <<\EOF | |
15986 | #define wxUSE_SOCKETS 1 | |
15987 | EOF | |
15988 | ||
15989 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
15990 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" | |
15991 | fi | |
15992 | ||
15993 | ||
15994 | if test "$wxUSE_GUI" = "yes"; then | |
15995 | ||
15996 | if test "$TOOLKIT" != "MSW"; then | |
15997 | ||
15998 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
15999 | for ac_hdr in linux/joystick.h | |
16000 | do | |
16001 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
16002 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
16003 | echo "configure:16004: checking for $ac_hdr" >&5 | |
16004 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
16005 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16006 | else | |
16007 | cat > conftest.$ac_ext <<EOF | |
16008 | #line 16009 "configure" | |
16009 | #include "confdefs.h" | |
16010 | #include <$ac_hdr> | |
16011 | EOF | |
16012 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
16013 | { (eval echo configure:16014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
16014 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
16015 | if test -z "$ac_err"; then | |
16016 | rm -rf conftest* | |
16017 | eval "ac_cv_header_$ac_safe=yes" | |
16018 | else | |
16019 | echo "$ac_err" >&5 | |
16020 | echo "configure: failed program was:" >&5 | |
16021 | cat conftest.$ac_ext >&5 | |
16022 | rm -rf conftest* | |
16023 | eval "ac_cv_header_$ac_safe=no" | |
16024 | fi | |
16025 | rm -f conftest* | |
16026 | fi | |
16027 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
16028 | echo "$ac_t""yes" 1>&6 | |
16029 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16030 | cat >> confdefs.h <<EOF | |
16031 | #define $ac_tr_hdr 1 | |
16032 | EOF | |
16033 | ||
16034 | else | |
16035 | echo "$ac_t""no" 1>&6 | |
16036 | fi | |
16037 | done | |
16038 | ||
16039 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
16040 | wxUSE_JOYSTICK=no | |
16041 | echo "configure: warning: Joystick not supported by this system" 1>&2 | |
16042 | fi | |
16043 | fi | |
16044 | ||
16045 | fi | |
16046 | ||
16047 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
16048 | cat >> confdefs.h <<\EOF | |
16049 | #define wxUSE_JOYSTICK 1 | |
16050 | EOF | |
16051 | ||
16052 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
16053 | fi | |
16054 | ||
16055 | fi | |
16056 | ||
16057 | ||
16058 | if test "$TOOLKIT" != "MSW"; then | |
16059 | ||
16060 | HAVE_DL_FUNCS=0 | |
16061 | HAVE_SHL_FUNCS=0 | |
16062 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
16063 | if test "$USE_MAC" = 1; then | |
16064 | HAVE_DL_FUNCS=1 | |
16065 | else | |
16066 | for ac_func in dlopen | |
16067 | do | |
16068 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16069 | echo "configure:16070: checking for $ac_func" >&5 | |
16070 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16071 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16072 | else | |
16073 | cat > conftest.$ac_ext <<EOF | |
16074 | #line 16075 "configure" | |
16075 | #include "confdefs.h" | |
16076 | /* System header to define __stub macros and hopefully few prototypes, | |
16077 | which can conflict with char $ac_func(); below. */ | |
16078 | #include <assert.h> | |
16079 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16080 | /* We use char because int might match the return type of a gcc2 | |
16081 | builtin and then its argument prototype would still apply. */ | |
16082 | char $ac_func(); | |
16083 | ||
16084 | int main() { | |
16085 | ||
16086 | /* The GNU C library defines this for functions which it implements | |
16087 | to always fail with ENOSYS. Some functions are actually named | |
16088 | something starting with __ and the normal name is an alias. */ | |
16089 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16090 | choke me | |
16091 | #else | |
16092 | $ac_func(); | |
16093 | #endif | |
16094 | ||
16095 | ; return 0; } | |
16096 | EOF | |
16097 | if { (eval echo configure:16098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16098 | rm -rf conftest* | |
16099 | eval "ac_cv_func_$ac_func=yes" | |
16100 | else | |
16101 | echo "configure: failed program was:" >&5 | |
16102 | cat conftest.$ac_ext >&5 | |
16103 | rm -rf conftest* | |
16104 | eval "ac_cv_func_$ac_func=no" | |
16105 | fi | |
16106 | rm -f conftest* | |
16107 | fi | |
16108 | ||
16109 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16110 | echo "$ac_t""yes" 1>&6 | |
16111 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16112 | cat >> confdefs.h <<EOF | |
16113 | #define $ac_tr_func 1 | |
16114 | EOF | |
16115 | ||
16116 | cat >> confdefs.h <<\EOF | |
16117 | #define HAVE_DLOPEN 1 | |
16118 | EOF | |
16119 | ||
16120 | HAVE_DL_FUNCS=1 | |
16121 | ||
16122 | else | |
16123 | echo "$ac_t""no" 1>&6 | |
16124 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
16125 | echo "configure:16126: checking for dlopen in -ldl" >&5 | |
16126 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | |
16127 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16128 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16129 | else | |
16130 | ac_save_LIBS="$LIBS" | |
16131 | LIBS="-ldl $LIBS" | |
16132 | cat > conftest.$ac_ext <<EOF | |
16133 | #line 16134 "configure" | |
16134 | #include "confdefs.h" | |
16135 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16136 | /* We use char because int might match the return type of a gcc2 | |
16137 | builtin and then its argument prototype would still apply. */ | |
16138 | char dlopen(); | |
16139 | ||
16140 | int main() { | |
16141 | dlopen() | |
16142 | ; return 0; } | |
16143 | EOF | |
16144 | if { (eval echo configure:16145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16145 | rm -rf conftest* | |
16146 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16147 | else | |
16148 | echo "configure: failed program was:" >&5 | |
16149 | cat conftest.$ac_ext >&5 | |
16150 | rm -rf conftest* | |
16151 | eval "ac_cv_lib_$ac_lib_var=no" | |
16152 | fi | |
16153 | rm -f conftest* | |
16154 | LIBS="$ac_save_LIBS" | |
16155 | ||
16156 | fi | |
16157 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16158 | echo "$ac_t""yes" 1>&6 | |
16159 | ||
16160 | cat >> confdefs.h <<\EOF | |
16161 | #define HAVE_DLOPEN 1 | |
16162 | EOF | |
16163 | ||
16164 | HAVE_DL_FUNCS=1 | |
16165 | LIBS="$LIBS -ldl" | |
16166 | ||
16167 | else | |
16168 | echo "$ac_t""no" 1>&6 | |
16169 | ||
16170 | for ac_func in shl_load | |
16171 | do | |
16172 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16173 | echo "configure:16174: checking for $ac_func" >&5 | |
16174 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16175 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16176 | else | |
16177 | cat > conftest.$ac_ext <<EOF | |
16178 | #line 16179 "configure" | |
16179 | #include "confdefs.h" | |
16180 | /* System header to define __stub macros and hopefully few prototypes, | |
16181 | which can conflict with char $ac_func(); below. */ | |
16182 | #include <assert.h> | |
16183 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16184 | /* We use char because int might match the return type of a gcc2 | |
16185 | builtin and then its argument prototype would still apply. */ | |
16186 | char $ac_func(); | |
16187 | ||
16188 | int main() { | |
16189 | ||
16190 | /* The GNU C library defines this for functions which it implements | |
16191 | to always fail with ENOSYS. Some functions are actually named | |
16192 | something starting with __ and the normal name is an alias. */ | |
16193 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16194 | choke me | |
16195 | #else | |
16196 | $ac_func(); | |
16197 | #endif | |
16198 | ||
16199 | ; return 0; } | |
16200 | EOF | |
16201 | if { (eval echo configure:16202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16202 | rm -rf conftest* | |
16203 | eval "ac_cv_func_$ac_func=yes" | |
16204 | else | |
16205 | echo "configure: failed program was:" >&5 | |
16206 | cat conftest.$ac_ext >&5 | |
16207 | rm -rf conftest* | |
16208 | eval "ac_cv_func_$ac_func=no" | |
16209 | fi | |
16210 | rm -f conftest* | |
16211 | fi | |
16212 | ||
16213 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16214 | echo "$ac_t""yes" 1>&6 | |
16215 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16216 | cat >> confdefs.h <<EOF | |
16217 | #define $ac_tr_func 1 | |
16218 | EOF | |
16219 | ||
16220 | cat >> confdefs.h <<\EOF | |
16221 | #define HAVE_SHL_LOAD 1 | |
16222 | EOF | |
16223 | ||
16224 | HAVE_SHL_FUNCS=1 | |
16225 | ||
16226 | else | |
16227 | echo "$ac_t""no" 1>&6 | |
16228 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
16229 | echo "configure:16230: checking for dld in -lshl_load" >&5 | |
16230 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` | |
16231 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16233 | else | |
16234 | ac_save_LIBS="$LIBS" | |
16235 | LIBS="-lshl_load $LIBS" | |
16236 | cat > conftest.$ac_ext <<EOF | |
16237 | #line 16238 "configure" | |
16238 | #include "confdefs.h" | |
16239 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16240 | /* We use char because int might match the return type of a gcc2 | |
16241 | builtin and then its argument prototype would still apply. */ | |
16242 | char dld(); | |
16243 | ||
16244 | int main() { | |
16245 | dld() | |
16246 | ; return 0; } | |
16247 | EOF | |
16248 | if { (eval echo configure:16249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16249 | rm -rf conftest* | |
16250 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16251 | else | |
16252 | echo "configure: failed program was:" >&5 | |
16253 | cat conftest.$ac_ext >&5 | |
16254 | rm -rf conftest* | |
16255 | eval "ac_cv_lib_$ac_lib_var=no" | |
16256 | fi | |
16257 | rm -f conftest* | |
16258 | LIBS="$ac_save_LIBS" | |
16259 | ||
16260 | fi | |
16261 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16262 | echo "$ac_t""yes" 1>&6 | |
16263 | ||
16264 | HAVE_SHL_FUNCS=1 | |
16265 | LIBS="$LIBS -ldld" | |
16266 | ||
16267 | else | |
16268 | echo "$ac_t""no" 1>&6 | |
16269 | fi | |
16270 | ||
16271 | ||
16272 | fi | |
16273 | done | |
16274 | ||
16275 | ||
16276 | fi | |
16277 | ||
16278 | ||
16279 | fi | |
16280 | done | |
16281 | ||
16282 | ||
16283 | if test "$HAVE_DL_FUNCS" = 1; then | |
16284 | for ac_func in dlerror | |
16285 | do | |
16286 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16287 | echo "configure:16288: checking for $ac_func" >&5 | |
16288 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16290 | else | |
16291 | cat > conftest.$ac_ext <<EOF | |
16292 | #line 16293 "configure" | |
16293 | #include "confdefs.h" | |
16294 | /* System header to define __stub macros and hopefully few prototypes, | |
16295 | which can conflict with char $ac_func(); below. */ | |
16296 | #include <assert.h> | |
16297 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16298 | /* We use char because int might match the return type of a gcc2 | |
16299 | builtin and then its argument prototype would still apply. */ | |
16300 | char $ac_func(); | |
16301 | ||
16302 | int main() { | |
16303 | ||
16304 | /* The GNU C library defines this for functions which it implements | |
16305 | to always fail with ENOSYS. Some functions are actually named | |
16306 | something starting with __ and the normal name is an alias. */ | |
16307 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16308 | choke me | |
16309 | #else | |
16310 | $ac_func(); | |
16311 | #endif | |
16312 | ||
16313 | ; return 0; } | |
16314 | EOF | |
16315 | if { (eval echo configure:16316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16316 | rm -rf conftest* | |
16317 | eval "ac_cv_func_$ac_func=yes" | |
16318 | else | |
16319 | echo "configure: failed program was:" >&5 | |
16320 | cat conftest.$ac_ext >&5 | |
16321 | rm -rf conftest* | |
16322 | eval "ac_cv_func_$ac_func=no" | |
16323 | fi | |
16324 | rm -f conftest* | |
16325 | fi | |
16326 | ||
16327 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16328 | echo "$ac_t""yes" 1>&6 | |
16329 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16330 | cat >> confdefs.h <<EOF | |
16331 | #define $ac_tr_func 1 | |
16332 | EOF | |
16333 | cat >> confdefs.h <<\EOF | |
16334 | #define HAVE_DLERROR 1 | |
16335 | EOF | |
16336 | ||
16337 | else | |
16338 | echo "$ac_t""no" 1>&6 | |
16339 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
16340 | echo "configure:16341: checking for dlerror in -ldl" >&5 | |
16341 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` | |
16342 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16344 | else | |
16345 | ac_save_LIBS="$LIBS" | |
16346 | LIBS="-ldl $LIBS" | |
16347 | cat > conftest.$ac_ext <<EOF | |
16348 | #line 16349 "configure" | |
16349 | #include "confdefs.h" | |
16350 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16351 | /* We use char because int might match the return type of a gcc2 | |
16352 | builtin and then its argument prototype would still apply. */ | |
16353 | char dlerror(); | |
16354 | ||
16355 | int main() { | |
16356 | dlerror() | |
16357 | ; return 0; } | |
16358 | EOF | |
16359 | if { (eval echo configure:16360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16360 | rm -rf conftest* | |
16361 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16362 | else | |
16363 | echo "configure: failed program was:" >&5 | |
16364 | cat conftest.$ac_ext >&5 | |
16365 | rm -rf conftest* | |
16366 | eval "ac_cv_lib_$ac_lib_var=no" | |
16367 | fi | |
16368 | rm -f conftest* | |
16369 | LIBS="$ac_save_LIBS" | |
16370 | ||
16371 | fi | |
16372 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16373 | echo "$ac_t""yes" 1>&6 | |
16374 | cat >> confdefs.h <<\EOF | |
16375 | #define HAVE_DLERROR 1 | |
16376 | EOF | |
16377 | ||
16378 | else | |
16379 | echo "$ac_t""no" 1>&6 | |
16380 | fi | |
16381 | ||
16382 | fi | |
16383 | done | |
16384 | ||
16385 | fi | |
16386 | fi | |
16387 | ||
16388 | if test "$HAVE_DL_FUNCS" = 0; then | |
16389 | if test "$HAVE_SHL_FUNCS" = 0; then | |
16390 | if test "$USE_UNIX" = 1; then | |
16391 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
16392 | wxUSE_DYNLIB_CLASS=no | |
16393 | else | |
16394 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
16395 | fi | |
16396 | fi | |
16397 | fi | |
16398 | fi | |
16399 | ||
16400 | fi | |
16401 | ||
16402 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
16403 | cat >> confdefs.h <<\EOF | |
16404 | #define wxUSE_DYNLIB_CLASS 1 | |
16405 | EOF | |
16406 | ||
16407 | else | |
16408 | wxUSE_ODBC=no | |
16409 | wxUSE_SERIAL=no | |
16410 | fi | |
16411 | ||
16412 | ||
16413 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
16414 | cat >> confdefs.h <<\EOF | |
16415 | #define wxUSE_FONTMAP 1 | |
16416 | EOF | |
16417 | ||
16418 | fi | |
16419 | ||
16420 | if test "$wxUSE_UNICODE" = "yes" ; then | |
16421 | cat >> confdefs.h <<\EOF | |
16422 | #define wxUSE_UNICODE 1 | |
16423 | EOF | |
16424 | ||
16425 | fi | |
16426 | ||
16427 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
16428 | cat >> confdefs.h <<\EOF | |
16429 | #define wxUSE_WCSRTOMBS 1 | |
16430 | EOF | |
16431 | ||
16432 | fi | |
16433 | ||
16434 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
16435 | cat >> confdefs.h <<\EOF | |
16436 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
16437 | EOF | |
16438 | ||
16439 | fi | |
16440 | ||
16441 | ||
16442 | if test "$wxUSE_SERIAL" = "yes" ; then | |
16443 | cat >> confdefs.h <<\EOF | |
16444 | #define wxUSE_SERIAL 1 | |
16445 | EOF | |
16446 | ||
16447 | fi | |
16448 | ||
16449 | ||
16450 | IODBC_C_SRC="" | |
16451 | if test "$wxUSE_ODBC" = "yes" ; then | |
16452 | cat >> confdefs.h <<\EOF | |
16453 | #define wxUSE_ODBC 1 | |
16454 | EOF | |
16455 | ||
16456 | WXODBCFLAG="-D_IODBC_" | |
16457 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
16458 | fi | |
16459 | ||
16460 | ||
16461 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
16462 | cat >> confdefs.h <<\EOF | |
16463 | #define wxUSE_POSTSCRIPT 1 | |
16464 | EOF | |
16465 | ||
16466 | fi | |
16467 | ||
16468 | cat >> confdefs.h <<\EOF | |
16469 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
16470 | EOF | |
16471 | ||
16472 | ||
16473 | cat >> confdefs.h <<\EOF | |
16474 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
16475 | EOF | |
16476 | ||
16477 | ||
16478 | ||
16479 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
16480 | cat >> confdefs.h <<\EOF | |
16481 | #define wxUSE_CONSTRAINTS 1 | |
16482 | EOF | |
16483 | ||
16484 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
16485 | fi | |
16486 | ||
16487 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
16488 | cat >> confdefs.h <<\EOF | |
16489 | #define wxUSE_MDI_ARCHITECTURE 1 | |
16490 | EOF | |
16491 | ||
16492 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
16493 | fi | |
16494 | ||
16495 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
16496 | cat >> confdefs.h <<\EOF | |
16497 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
16498 | EOF | |
16499 | ||
16500 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
16501 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
16502 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
16503 | fi | |
16504 | fi | |
16505 | ||
16506 | if test "$wxUSE_HELP" = "yes"; then | |
16507 | cat >> confdefs.h <<\EOF | |
16508 | #define wxUSE_HELP 1 | |
16509 | EOF | |
16510 | ||
16511 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
16512 | fi | |
16513 | ||
16514 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
16515 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
16516 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
16517 | else | |
16518 | cat >> confdefs.h <<\EOF | |
16519 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
16520 | EOF | |
16521 | ||
16522 | fi | |
16523 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
16524 | fi | |
16525 | ||
16526 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
16527 | cat >> confdefs.h <<\EOF | |
16528 | #define wxUSE_PROLOGIO 1 | |
16529 | EOF | |
16530 | ||
16531 | fi | |
16532 | ||
16533 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
16534 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
16535 | cat >> confdefs.h <<\EOF | |
16536 | #define wxUSE_RESOURCES 1 | |
16537 | EOF | |
16538 | ||
16539 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
16540 | else | |
16541 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
16542 | fi | |
16543 | fi | |
16544 | ||
16545 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
16546 | cat >> confdefs.h <<\EOF | |
16547 | #define wxUSE_X_RESOURCES 1 | |
16548 | EOF | |
16549 | ||
16550 | fi | |
16551 | ||
16552 | ||
16553 | if test "$wxUSE_IPC" = "yes"; then | |
16554 | if test "$wxUSE_SOCKETS" != "yes"; then | |
16555 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 | |
16556 | fi | |
16557 | ||
16558 | cat >> confdefs.h <<\EOF | |
16559 | #define wxUSE_IPC 1 | |
16560 | EOF | |
16561 | ||
16562 | fi | |
16563 | ||
16564 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
16565 | cat >> confdefs.h <<\EOF | |
16566 | #define wxUSE_CLIPBOARD 1 | |
16567 | EOF | |
16568 | ||
16569 | cat >> confdefs.h <<\EOF | |
16570 | #define wxUSE_DATAOBJ 1 | |
16571 | EOF | |
16572 | ||
16573 | fi | |
16574 | ||
16575 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
16576 | if test "$wxUSE_GTK" = 1; then | |
16577 | if test "$WXGTK12" != 1; then | |
16578 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
16579 | wxUSE_DRAG_AND_DROP=no | |
16580 | fi | |
16581 | fi | |
16582 | ||
16583 | if test "$wxUSE_MOTIF" = 1; then | |
16584 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
16585 | wxUSE_DRAG_AND_DROP=no | |
16586 | fi | |
16587 | ||
16588 | if test "$wxUSE_MAC" = 1; then | |
16589 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 | |
16590 | wxUSE_DRAG_AND_DROP=no | |
16591 | fi | |
16592 | ||
16593 | if test "$USE_WIN32" = 1; then | |
16594 | ||
16595 | for ac_hdr in ole2.h | |
16596 | do | |
16597 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
16598 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
16599 | echo "configure:16600: checking for $ac_hdr" >&5 | |
16600 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
16601 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16602 | else | |
16603 | cat > conftest.$ac_ext <<EOF | |
16604 | #line 16605 "configure" | |
16605 | #include "confdefs.h" | |
16606 | #include <$ac_hdr> | |
16607 | EOF | |
16608 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
16609 | { (eval echo configure:16610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
16610 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
16611 | if test -z "$ac_err"; then | |
16612 | rm -rf conftest* | |
16613 | eval "ac_cv_header_$ac_safe=yes" | |
16614 | else | |
16615 | echo "$ac_err" >&5 | |
16616 | echo "configure: failed program was:" >&5 | |
16617 | cat conftest.$ac_ext >&5 | |
16618 | rm -rf conftest* | |
16619 | eval "ac_cv_header_$ac_safe=no" | |
16620 | fi | |
16621 | rm -f conftest* | |
16622 | fi | |
16623 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
16624 | echo "$ac_t""yes" 1>&6 | |
16625 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16626 | cat >> confdefs.h <<EOF | |
16627 | #define $ac_tr_hdr 1 | |
16628 | EOF | |
16629 | ||
16630 | else | |
16631 | echo "$ac_t""no" 1>&6 | |
16632 | fi | |
16633 | done | |
16634 | ||
16635 | ||
16636 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
16637 | if test "$GCC" = yes ; then | |
16638 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
16639 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
16640 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
16641 | LIBS="$LIBS -lole32 -luuid" | |
16642 | ||
16643 | if test "$wxUSE_METAFILE" = "yes"; then | |
16644 | cat >> confdefs.h <<\EOF | |
16645 | #define wxUSE_METAFILE 1 | |
16646 | EOF | |
16647 | ||
16648 | cat >> confdefs.h <<\EOF | |
16649 | #define wxUSE_ENH_METAFILE 1 | |
16650 | EOF | |
16651 | ||
16652 | fi | |
16653 | fi | |
16654 | else | |
16655 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 | |
16656 | wxUSE_DRAG_AND_DROP=no | |
16657 | fi | |
16658 | fi | |
16659 | ||
16660 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
16661 | cat >> confdefs.h <<\EOF | |
16662 | #define wxUSE_DRAG_AND_DROP 1 | |
16663 | EOF | |
16664 | ||
16665 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
16666 | fi | |
16667 | ||
16668 | fi | |
16669 | ||
16670 | if test "$wxUSE_SPLINES" = "yes" ; then | |
16671 | cat >> confdefs.h <<\EOF | |
16672 | #define wxUSE_SPLINES 1 | |
16673 | EOF | |
16674 | ||
16675 | fi | |
16676 | ||
16677 | ||
16678 | USES_CONTROLS=0 | |
16679 | if test "$wxUSE_CONTROLS" = "yes"; then | |
16680 | USES_CONTROLS=1 | |
16681 | fi | |
16682 | ||
16683 | if test "$wxUSE_ACCEL" = "yes"; then | |
16684 | cat >> confdefs.h <<\EOF | |
16685 | #define wxUSE_ACCEL 1 | |
16686 | EOF | |
16687 | ||
16688 | USES_CONTROLS=1 | |
16689 | fi | |
16690 | ||
16691 | if test "$wxUSE_BUTTON" = "yes"; then | |
16692 | cat >> confdefs.h <<\EOF | |
16693 | #define wxUSE_BUTTON 1 | |
16694 | EOF | |
16695 | ||
16696 | USES_CONTROLS=1 | |
16697 | fi | |
16698 | ||
16699 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
16700 | cat >> confdefs.h <<\EOF | |
16701 | #define wxUSE_BMPBUTTON 1 | |
16702 | EOF | |
16703 | ||
16704 | USES_CONTROLS=1 | |
16705 | fi | |
16706 | ||
16707 | if test "$wxUSE_CALCTRL" = "yes"; then | |
16708 | cat >> confdefs.h <<\EOF | |
16709 | #define wxUSE_CALENDARCTRL 1 | |
16710 | EOF | |
16711 | ||
16712 | USES_CONTROLS=1 | |
16713 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
16714 | fi | |
16715 | ||
16716 | if test "$wxUSE_CARET" = "yes"; then | |
16717 | cat >> confdefs.h <<\EOF | |
16718 | #define wxUSE_CARET 1 | |
16719 | EOF | |
16720 | ||
16721 | USES_CONTROLS=1 | |
16722 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
16723 | fi | |
16724 | ||
16725 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
16726 | cat >> confdefs.h <<\EOF | |
16727 | #define wxUSE_COMBOBOX 1 | |
16728 | EOF | |
16729 | ||
16730 | USES_CONTROLS=1 | |
16731 | fi | |
16732 | ||
16733 | if test "$wxUSE_CHOICE" = "yes"; then | |
16734 | cat >> confdefs.h <<\EOF | |
16735 | #define wxUSE_CHOICE 1 | |
16736 | EOF | |
16737 | ||
16738 | USES_CONTROLS=1 | |
16739 | fi | |
16740 | ||
16741 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
16742 | cat >> confdefs.h <<\EOF | |
16743 | #define wxUSE_CHECKBOX 1 | |
16744 | EOF | |
16745 | ||
16746 | USES_CONTROLS=1 | |
16747 | fi | |
16748 | ||
16749 | if test "$wxUSE_CHECKLST" = "yes"; then | |
16750 | cat >> confdefs.h <<\EOF | |
16751 | #define wxUSE_CHECKLISTBOX 1 | |
16752 | EOF | |
16753 | ||
16754 | USES_CONTROLS=1 | |
16755 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
16756 | fi | |
16757 | ||
16758 | if test "$wxUSE_GAUGE" = "yes"; then | |
16759 | cat >> confdefs.h <<\EOF | |
16760 | #define wxUSE_GAUGE 1 | |
16761 | EOF | |
16762 | ||
16763 | USES_CONTROLS=1 | |
16764 | fi | |
16765 | ||
16766 | if test "$wxUSE_NEW_GRID" = "yes"; then | |
16767 | wxUSE_GRID="yes" | |
16768 | cat >> confdefs.h <<\EOF | |
16769 | #define wxUSE_NEW_GRID 1 | |
16770 | EOF | |
16771 | ||
16772 | USES_CONTROLS=1 | |
16773 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" | |
16774 | fi | |
16775 | ||
16776 | if test "$wxUSE_GRID" = "yes"; then | |
16777 | cat >> confdefs.h <<\EOF | |
16778 | #define wxUSE_GRID 1 | |
16779 | EOF | |
16780 | ||
16781 | USES_CONTROLS=1 | |
16782 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
16783 | fi | |
16784 | ||
16785 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
16786 | cat >> confdefs.h <<\EOF | |
16787 | #define wxUSE_IMAGLIST 1 | |
16788 | EOF | |
16789 | ||
16790 | fi | |
16791 | ||
16792 | if test "$wxUSE_LISTBOX" = "yes"; then | |
16793 | cat >> confdefs.h <<\EOF | |
16794 | #define wxUSE_LISTBOX 1 | |
16795 | EOF | |
16796 | ||
16797 | USES_CONTROLS=1 | |
16798 | fi | |
16799 | ||
16800 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
16801 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
16802 | cat >> confdefs.h <<\EOF | |
16803 | #define wxUSE_LISTCTRL 1 | |
16804 | EOF | |
16805 | ||
16806 | USES_CONTROLS=1 | |
16807 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
16808 | else | |
16809 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
16810 | fi | |
16811 | fi | |
16812 | ||
16813 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
16814 | cat >> confdefs.h <<\EOF | |
16815 | #define wxUSE_NOTEBOOK 1 | |
16816 | EOF | |
16817 | ||
16818 | USES_CONTROLS=1 | |
16819 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
16820 | fi | |
16821 | ||
16822 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
16823 | cat >> confdefs.h <<\EOF | |
16824 | #define wxUSE_RADIOBOX 1 | |
16825 | EOF | |
16826 | ||
16827 | USES_CONTROLS=1 | |
16828 | fi | |
16829 | ||
16830 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
16831 | cat >> confdefs.h <<\EOF | |
16832 | #define wxUSE_RADIOBTN 1 | |
16833 | EOF | |
16834 | ||
16835 | USES_CONTROLS=1 | |
16836 | fi | |
16837 | ||
16838 | if test "$wxUSE_SASH" = "yes"; then | |
16839 | cat >> confdefs.h <<\EOF | |
16840 | #define wxUSE_SASH 1 | |
16841 | EOF | |
16842 | ||
16843 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
16844 | fi | |
16845 | ||
16846 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
16847 | cat >> confdefs.h <<\EOF | |
16848 | #define wxUSE_SCROLLBAR 1 | |
16849 | EOF | |
16850 | ||
16851 | USES_CONTROLS=1 | |
16852 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
16853 | fi | |
16854 | ||
16855 | if test "$wxUSE_SLIDER" = "yes"; then | |
16856 | cat >> confdefs.h <<\EOF | |
16857 | #define wxUSE_SLIDER 1 | |
16858 | EOF | |
16859 | ||
16860 | USES_CONTROLS=1 | |
16861 | fi | |
16862 | ||
16863 | if test "$wxUSE_SPINBTN" = "yes"; then | |
16864 | cat >> confdefs.h <<\EOF | |
16865 | #define wxUSE_SPINBTN 1 | |
16866 | EOF | |
16867 | ||
16868 | USES_CONTROLS=1 | |
16869 | fi | |
16870 | ||
16871 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
16872 | cat >> confdefs.h <<\EOF | |
16873 | #define wxUSE_SPINCTRL 1 | |
16874 | EOF | |
16875 | ||
16876 | USES_CONTROLS=1 | |
16877 | fi | |
16878 | ||
16879 | if test "$wxUSE_SPLITTER" = "yes"; then | |
16880 | cat >> confdefs.h <<\EOF | |
16881 | #define wxUSE_SPLITTER 1 | |
16882 | EOF | |
16883 | ||
16884 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
16885 | fi | |
16886 | ||
16887 | if test "$wxUSE_STATBMP" = "yes"; then | |
16888 | cat >> confdefs.h <<\EOF | |
16889 | #define wxUSE_STATBMP 1 | |
16890 | EOF | |
16891 | ||
16892 | USES_CONTROLS=1 | |
16893 | fi | |
16894 | ||
16895 | if test "$wxUSE_STATBOX" = "yes"; then | |
16896 | cat >> confdefs.h <<\EOF | |
16897 | #define wxUSE_STATBOX 1 | |
16898 | EOF | |
16899 | ||
16900 | USES_CONTROLS=1 | |
16901 | fi | |
16902 | ||
16903 | if test "$wxUSE_STATTEXT" = "yes"; then | |
16904 | cat >> confdefs.h <<\EOF | |
16905 | #define wxUSE_STATTEXT 1 | |
16906 | EOF | |
16907 | ||
16908 | USES_CONTROLS=1 | |
16909 | fi | |
16910 | ||
16911 | if test "$wxUSE_STATLINE" = "yes"; then | |
16912 | if test "$wxUSE_WINE" = 1 ; then | |
16913 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
16914 | else | |
16915 | cat >> confdefs.h <<\EOF | |
16916 | #define wxUSE_STATLINE 1 | |
16917 | EOF | |
16918 | ||
16919 | USES_CONTROLS=1 | |
16920 | fi | |
16921 | fi | |
16922 | ||
16923 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
16924 | cat >> confdefs.h <<\EOF | |
16925 | #define wxUSE_STATUSBAR 1 | |
16926 | EOF | |
16927 | ||
16928 | USES_CONTROLS=1 | |
16929 | ||
16930 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
16931 | fi | |
16932 | ||
16933 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
16934 | cat >> confdefs.h <<\EOF | |
16935 | #define wxUSE_TAB_DIALOG 1 | |
16936 | EOF | |
16937 | ||
16938 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
16939 | fi | |
16940 | ||
16941 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
16942 | cat >> confdefs.h <<\EOF | |
16943 | #define wxUSE_TEXTCTRL 1 | |
16944 | EOF | |
16945 | ||
16946 | USES_CONTROLS=1 | |
16947 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
16948 | fi | |
16949 | ||
16950 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
16951 | if test "$wxUSE_MAC" = 1; then | |
16952 | echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2 | |
16953 | wxUSE_TOGGLEBTN=no | |
16954 | fi | |
16955 | ||
16956 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
16957 | cat >> confdefs.h <<\EOF | |
16958 | #define wxUSE_TOGGLEBTN 1 | |
16959 | EOF | |
16960 | ||
16961 | USES_CONTROLS=1 | |
16962 | fi | |
16963 | fi | |
16964 | ||
16965 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
16966 | cat >> confdefs.h <<\EOF | |
16967 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
16968 | EOF | |
16969 | ||
16970 | wxUSE_TOOLBAR="yes" | |
16971 | USES_CONTROLS=1 | |
16972 | fi | |
16973 | ||
16974 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
16975 | cat >> confdefs.h <<\EOF | |
16976 | #define wxUSE_TOOLBAR 1 | |
16977 | EOF | |
16978 | ||
16979 | USES_CONTROLS=1 | |
16980 | ||
16981 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
16982 | wxUSE_TOOLBAR_NATIVE="yes" | |
16983 | fi | |
16984 | ||
16985 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
16986 | cat >> confdefs.h <<\EOF | |
16987 | #define wxUSE_TOOLBAR_NATIVE 1 | |
16988 | EOF | |
16989 | ||
16990 | USES_CONTROLS=1 | |
16991 | fi | |
16992 | ||
16993 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
16994 | fi | |
16995 | ||
16996 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
16997 | if test "$wxUSE_MOTIF" = 1; then | |
16998 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
16999 | else | |
17000 | if test "$wxUSE_WINE" = 1; then | |
17001 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
17002 | else | |
17003 | cat >> confdefs.h <<\EOF | |
17004 | #define wxUSE_TOOLTIPS 1 | |
17005 | EOF | |
17006 | ||
17007 | fi | |
17008 | fi | |
17009 | fi | |
17010 | ||
17011 | if test "$wxUSE_TREECTRL" = "yes"; then | |
17012 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
17013 | cat >> confdefs.h <<\EOF | |
17014 | #define wxUSE_TREECTRL 1 | |
17015 | EOF | |
17016 | ||
17017 | USES_CONTROLS=1 | |
17018 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
17019 | else | |
17020 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
17021 | fi | |
17022 | fi | |
17023 | ||
17024 | if test "$USES_CONTROLS" = 1; then | |
17025 | cat >> confdefs.h <<\EOF | |
17026 | #define wxUSE_CONTROLS 1 | |
17027 | EOF | |
17028 | ||
17029 | fi | |
17030 | ||
17031 | ||
17032 | ||
17033 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
17034 | cat >> confdefs.h <<\EOF | |
17035 | #define wxUSE_DRAGIMAGE 1 | |
17036 | EOF | |
17037 | ||
17038 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
17039 | fi | |
17040 | ||
17041 | if test "$wxUSE_MENUS" = "yes"; then | |
17042 | cat >> confdefs.h <<\EOF | |
17043 | #define wxUSE_MENUS 1 | |
17044 | EOF | |
17045 | ||
17046 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
17047 | fi | |
17048 | ||
17049 | if test "$wxUSE_METAFILE" = "yes"; then | |
17050 | cat >> confdefs.h <<\EOF | |
17051 | #define wxUSE_METAFILE 1 | |
17052 | EOF | |
17053 | ||
17054 | fi | |
17055 | ||
17056 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
17057 | cat >> confdefs.h <<\EOF | |
17058 | #define wxUSE_MIMETYPE 1 | |
17059 | EOF | |
17060 | ||
17061 | fi | |
17062 | ||
17063 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
17064 | cat >> confdefs.h <<\EOF | |
17065 | #define wxUSE_MINIFRAME 1 | |
17066 | EOF | |
17067 | ||
17068 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
17069 | fi | |
17070 | ||
17071 | if test "$wxUSE_HTML" = "yes"; then | |
17072 | cat >> confdefs.h <<\EOF | |
17073 | #define wxUSE_HTML 1 | |
17074 | EOF | |
17075 | ||
17076 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
17077 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
17078 | fi | |
17079 | ||
17080 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
17081 | cat >> confdefs.h <<\EOF | |
17082 | #define wxUSE_VALIDATORS 1 | |
17083 | EOF | |
17084 | ||
17085 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
17086 | fi | |
17087 | ||
17088 | if test "$wxUSE_IMAGE" = "yes" ; then | |
17089 | cat >> confdefs.h <<\EOF | |
17090 | #define wxUSE_IMAGE 1 | |
17091 | EOF | |
17092 | ||
17093 | fi | |
17094 | ||
17095 | if test "$wxUSE_GIF" = "yes" ; then | |
17096 | cat >> confdefs.h <<\EOF | |
17097 | #define wxUSE_GIF 1 | |
17098 | EOF | |
17099 | ||
17100 | fi | |
17101 | ||
17102 | if test "$wxUSE_PCX" = "yes" ; then | |
17103 | cat >> confdefs.h <<\EOF | |
17104 | #define wxUSE_PCX 1 | |
17105 | EOF | |
17106 | ||
17107 | fi | |
17108 | ||
17109 | if test "$wxUSE_PNM" = "yes" ; then | |
17110 | cat >> confdefs.h <<\EOF | |
17111 | #define wxUSE_PNM 1 | |
17112 | EOF | |
17113 | ||
17114 | fi | |
17115 | ||
17116 | if test "$wxUSE_XPM" = "yes" ; then | |
17117 | cat >> confdefs.h <<\EOF | |
17118 | #define wxUSE_XPM 1 | |
17119 | EOF | |
17120 | ||
17121 | fi | |
17122 | ||
17123 | ||
17124 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
17125 | cat >> confdefs.h <<\EOF | |
17126 | #define wxUSE_CHOICEDLG 1 | |
17127 | EOF | |
17128 | ||
17129 | fi | |
17130 | ||
17131 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
17132 | cat >> confdefs.h <<\EOF | |
17133 | #define wxUSE_COLOURDLG 1 | |
17134 | EOF | |
17135 | ||
17136 | fi | |
17137 | ||
17138 | if test "$wxUSE_FILEDLG" = "yes"; then | |
17139 | cat >> confdefs.h <<\EOF | |
17140 | #define wxUSE_FILEDLG 1 | |
17141 | EOF | |
17142 | ||
17143 | fi | |
17144 | ||
17145 | if test "$wxUSE_FONTDLG" = "yes"; then | |
17146 | cat >> confdefs.h <<\EOF | |
17147 | #define wxUSE_FONTDLG 1 | |
17148 | EOF | |
17149 | ||
17150 | fi | |
17151 | ||
17152 | if test "$wxUSE_DIRDLG" = "yes"; then | |
17153 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17154 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
17155 | else | |
17156 | if test "$wxUSE_TREECTRL" != "yes"; then | |
17157 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
17158 | else | |
17159 | cat >> confdefs.h <<\EOF | |
17160 | #define wxUSE_DIRDLG 1 | |
17161 | EOF | |
17162 | ||
17163 | fi | |
17164 | fi | |
17165 | fi | |
17166 | ||
17167 | if test "$wxUSE_MSGDLG" = "yes"; then | |
17168 | cat >> confdefs.h <<\EOF | |
17169 | #define wxUSE_MSGDLG 1 | |
17170 | EOF | |
17171 | ||
17172 | fi | |
17173 | ||
17174 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
17175 | cat >> confdefs.h <<\EOF | |
17176 | #define wxUSE_NUMBERDLG 1 | |
17177 | EOF | |
17178 | ||
17179 | fi | |
17180 | ||
17181 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
17182 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17183 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
17184 | else | |
17185 | cat >> confdefs.h <<\EOF | |
17186 | #define wxUSE_PROGRESSDLG 1 | |
17187 | EOF | |
17188 | ||
17189 | fi | |
17190 | fi | |
17191 | ||
17192 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
17193 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17194 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
17195 | else | |
17196 | cat >> confdefs.h <<\EOF | |
17197 | #define wxUSE_STARTUP_TIPS 1 | |
17198 | EOF | |
17199 | ||
17200 | fi | |
17201 | fi | |
17202 | ||
17203 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
17204 | cat >> confdefs.h <<\EOF | |
17205 | #define wxUSE_TEXTDLG 1 | |
17206 | EOF | |
17207 | ||
17208 | fi | |
17209 | ||
17210 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
17211 | cat >> confdefs.h <<\EOF | |
17212 | #define wxUSE_WIZARDDLG 1 | |
17213 | EOF | |
17214 | ||
17215 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
17216 | fi | |
17217 | ||
17218 | ||
17219 | if test "$cross_compiling" = "yes"; then | |
17220 | OSINFO="\"$host\"" | |
17221 | else | |
17222 | OSINFO=`uname -s -r -m` | |
17223 | OSINFO="\"$OSINFO\"" | |
17224 | fi | |
17225 | ||
17226 | cat >> confdefs.h <<EOF | |
17227 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
17228 | EOF | |
17229 | ||
17230 | ||
17231 | ||
17232 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" | |
17233 | OPENGL_LIBS="$OPENGL_LINK" | |
17234 | ||
17235 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
17236 | if test "$USE_MAC" = 1 ; then | |
17237 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" | |
17238 | fi | |
17239 | if test "$wxUSE_GUI" = "yes"; then | |
17240 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
17241 | fi | |
17242 | ||
17243 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
17244 | ||
17245 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
17246 | ||
17247 | if test "$wxUSE_GTK" = 1; then | |
17248 | WXCONFIG_INCLUDE="" | |
17249 | else | |
17250 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
17251 | fi | |
17252 | ||
17253 | if test "$GXX" = yes ; then | |
17254 | CXXWARNINGS="-Wall" | |
17255 | fi | |
17256 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
17257 | ||
17258 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
17259 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
17260 | ||
17261 | LDFLAGS="$LDFLAGS $PROFILE" | |
17262 | ||
17263 | if test "$wxUSE_GUI" = "yes"; then | |
17264 | ||
17265 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
17266 | drawing dynamic event font fractal image \ | |
17267 | minimal richedit widgets" | |
17268 | ||
17269 | if test "$wxUSE_UNIVERSAL" = "yes" ; then | |
17270 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" | |
17271 | fi | |
17272 | ||
17273 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
17274 | else | |
17275 | SAMPLES_SUBDIRS="" | |
17276 | fi | |
17277 | ||
17278 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
17279 | ||
17280 | ||
17281 | ||
17282 | ||
17283 | ||
17284 | ||
17285 | ||
17286 | ||
17287 | ||
17288 | ||
17289 | ||
17290 | ||
17291 | ||
17292 | ||
17293 | ||
17294 | ||
17295 | ||
17296 | ||
17297 | ||
17298 | ||
17299 | ||
17300 | ||
17301 | ||
17302 | ||
17303 | ||
17304 | ||
17305 | ||
17306 | ||
17307 | ||
17308 | ||
17309 | ||
17310 | ||
17311 | ||
17312 | ||
17313 | ||
17314 | ||
17315 | ||
17316 | ||
17317 | ||
17318 | ||
17319 | ||
17320 | ||
17321 | ||
17322 | ||
17323 | ||
17324 | ||
17325 | ||
17326 | ||
17327 | ||
17328 | ||
17329 | ||
17330 | ||
17331 | ||
17332 | ||
17333 | ||
17334 | ||
17335 | ||
17336 | ||
17337 | ||
17338 | ||
17339 | ||
17340 | ||
17341 | ||
17342 | ||
17343 | ||
17344 | ||
17345 | ||
17346 | ||
17347 | ||
17348 | ||
17349 | ||
17350 | ||
17351 | ||
17352 | ||
17353 | ||
17354 | ||
17355 | ||
17356 | ||
17357 | ||
17358 | ||
17359 | ||
17360 | ||
17361 | ||
17362 | ||
17363 | ||
17364 | ||
17365 | ||
17366 | ||
17367 | ||
17368 | ||
17369 | ||
17370 | ||
17371 | ||
17372 | ||
17373 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
17374 | echo "configure:17375: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
17375 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
17376 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
17377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17378 | else | |
17379 | cat > conftestmake <<\EOF | |
17380 | all: | |
17381 | @echo 'ac_maketemp="${MAKE}"' | |
17382 | EOF | |
17383 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
17384 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
17385 | if test -n "$ac_maketemp"; then | |
17386 | eval ac_cv_prog_make_${ac_make}_set=yes | |
17387 | else | |
17388 | eval ac_cv_prog_make_${ac_make}_set=no | |
17389 | fi | |
17390 | rm -f conftestmake | |
17391 | fi | |
17392 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
17393 | echo "$ac_t""yes" 1>&6 | |
17394 | SET_MAKE= | |
17395 | else | |
17396 | echo "$ac_t""no" 1>&6 | |
17397 | SET_MAKE="MAKE=${MAKE-make}" | |
17398 | fi | |
17399 | ||
17400 | ||
17401 | if test -d include; then | |
17402 | if test -d include/wx; then | |
17403 | if test -d include/wx/${SETUPH_DIR}; then | |
17404 | if test -f include/wx/${SETUPH_DIR}/setup.h; then | |
17405 | mv -f include/wx/${SETUPH_DIR}/setup.h setup.h | |
17406 | fi | |
17407 | fi | |
17408 | fi | |
17409 | fi | |
17410 | ||
17411 | ||
17412 | ||
17413 | if test "$wxUSE_GUI" = "yes"; then | |
17414 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS | |
17415 | wx_cv_path_ifs=$PATH_IFS | |
17416 | wx_cv_program_ext=$PROGRAM_EXT | |
17417 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
17418 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
17419 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ | |
17420 | wx_cv_target_library wx_cv_target_libtype | |
17421 | subdirs="demos samples utils contrib" | |
17422 | ||
17423 | fi | |
17424 | ||
17425 | trap '' 1 2 15 | |
17426 | cat > confcache <<\EOF | |
17427 | # This file is a shell script that caches the results of configure | |
17428 | # tests run on this system so they can be shared between configure | |
17429 | # scripts and configure runs. It is not useful on other systems. | |
17430 | # If it contains results you don't want to keep, you may remove or edit it. | |
17431 | # | |
17432 | # By default, configure uses ./config.cache as the cache file, | |
17433 | # creating it if it does not exist already. You can give configure | |
17434 | # the --cache-file=FILE option to use a different cache file; that is | |
17435 | # what configure does when it calls configure scripts in | |
17436 | # subdirectories, so they share the cache. | |
17437 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17438 | # config.status only pays attention to the cache file if you give it the | |
17439 | # --recheck option to rerun configure. | |
17440 | # | |
17441 | EOF | |
17442 | # The following way of writing the cache mishandles newlines in values, | |
17443 | # but we know of no workaround that is simple, portable, and efficient. | |
17444 | # So, don't put newlines in cache variables' values. | |
17445 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17446 | # and sets the high bit in the cache file unless we assign to the vars. | |
17447 | (set) 2>&1 | | |
17448 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17449 | *ac_space=\ *) | |
17450 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17451 | # turns \\\\ into \\, and sed turns \\ into \). | |
17452 | sed -n \ | |
17453 | -e "s/'/'\\\\''/g" \ | |
17454 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17455 | ;; | |
17456 | *) | |
17457 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17458 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17459 | ;; | |
17460 | esac >> confcache | |
17461 | if cmp -s $cache_file confcache; then | |
17462 | : | |
17463 | else | |
17464 | if test -w $cache_file; then | |
17465 | echo "updating cache $cache_file" | |
17466 | cat confcache > $cache_file | |
17467 | else | |
17468 | echo "not updating unwritable cache $cache_file" | |
17469 | fi | |
17470 | fi | |
17471 | rm -f confcache | |
17472 | ||
17473 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
17474 | ||
17475 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17476 | # Let make expand exec_prefix. | |
17477 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17478 | ||
17479 | # Any assignment to VPATH causes Sun make to only execute | |
17480 | # the first set of double-colon rules, so remove it if not needed. | |
17481 | # If there is a colon in the path, we need to keep it. | |
17482 | if test "x$srcdir" = x.; then | |
17483 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
17484 | fi | |
17485 | ||
17486 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
17487 | ||
17488 | DEFS=-DHAVE_CONFIG_H | |
17489 | ||
17490 | # Without the "./", some shells look in PATH for config.status. | |
17491 | : ${CONFIG_STATUS=./config.status} | |
17492 | ||
17493 | echo creating $CONFIG_STATUS | |
17494 | rm -f $CONFIG_STATUS | |
17495 | cat > $CONFIG_STATUS <<EOF | |
17496 | #! /bin/sh | |
17497 | # Generated automatically by configure. | |
17498 | # Run this file to recreate the current configuration. | |
17499 | # This directory was configured as follows, | |
17500 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17501 | # | |
17502 | # $0 $ac_configure_args | |
17503 | # | |
17504 | # Compiler output produced by configure, useful for debugging | |
17505 | # configure, is in ./config.log if it exists. | |
17506 | ||
17507 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
17508 | for ac_option | |
17509 | do | |
17510 | case "\$ac_option" in | |
17511 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
17512 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
17513 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
17514 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
17515 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
17516 | exit 0 ;; | |
17517 | -help | --help | --hel | --he | --h) | |
17518 | echo "\$ac_cs_usage"; exit 0 ;; | |
17519 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
17520 | esac | |
17521 | done | |
17522 | ||
17523 | ac_given_srcdir=$srcdir | |
17524 | ac_given_INSTALL="$INSTALL" | |
17525 | ||
17526 | trap 'rm -fr `echo " | |
17527 | wx-config | |
17528 | src/make.env | |
17529 | src/makeprog.env | |
17530 | src/makelib.env | |
17531 | Makefile | |
17532 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
17533 | EOF | |
17534 | cat >> $CONFIG_STATUS <<EOF | |
17535 | ||
17536 | # Protect against being on the right side of a sed subst in config.status. | |
17537 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
17538 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
17539 | $ac_vpsub | |
17540 | $extrasub | |
17541 | s%@SHELL@%$SHELL%g | |
17542 | s%@CFLAGS@%$CFLAGS%g | |
17543 | s%@CPPFLAGS@%$CPPFLAGS%g | |
17544 | s%@CXXFLAGS@%$CXXFLAGS%g | |
17545 | s%@FFLAGS@%$FFLAGS%g | |
17546 | s%@DEFS@%$DEFS%g | |
17547 | s%@LDFLAGS@%$LDFLAGS%g | |
17548 | s%@LIBS@%$LIBS%g | |
17549 | s%@exec_prefix@%$exec_prefix%g | |
17550 | s%@prefix@%$prefix%g | |
17551 | s%@program_transform_name@%$program_transform_name%g | |
17552 | s%@bindir@%$bindir%g | |
17553 | s%@sbindir@%$sbindir%g | |
17554 | s%@libexecdir@%$libexecdir%g | |
17555 | s%@datadir@%$datadir%g | |
17556 | s%@sysconfdir@%$sysconfdir%g | |
17557 | s%@sharedstatedir@%$sharedstatedir%g | |
17558 | s%@localstatedir@%$localstatedir%g | |
17559 | s%@libdir@%$libdir%g | |
17560 | s%@includedir@%$includedir%g | |
17561 | s%@oldincludedir@%$oldincludedir%g | |
17562 | s%@infodir@%$infodir%g | |
17563 | s%@mandir@%$mandir%g | |
17564 | s%@host@%$host%g | |
17565 | s%@host_alias@%$host_alias%g | |
17566 | s%@host_cpu@%$host_cpu%g | |
17567 | s%@host_vendor@%$host_vendor%g | |
17568 | s%@host_os@%$host_os%g | |
17569 | s%@target@%$target%g | |
17570 | s%@target_alias@%$target_alias%g | |
17571 | s%@target_cpu@%$target_cpu%g | |
17572 | s%@target_vendor@%$target_vendor%g | |
17573 | s%@target_os@%$target_os%g | |
17574 | s%@build@%$build%g | |
17575 | s%@build_alias@%$build_alias%g | |
17576 | s%@build_cpu@%$build_cpu%g | |
17577 | s%@build_vendor@%$build_vendor%g | |
17578 | s%@build_os@%$build_os%g | |
17579 | s%@CC@%$CC%g | |
17580 | s%@CPP@%$CPP%g | |
17581 | s%@CXX@%$CXX%g | |
17582 | s%@CXXCPP@%$CXXCPP%g | |
17583 | s%@RANLIB@%$RANLIB%g | |
17584 | s%@AR@%$AR%g | |
17585 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
17586 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
17587 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
17588 | s%@STRIP@%$STRIP%g | |
17589 | s%@YACC@%$YACC%g | |
17590 | s%@LEX@%$LEX%g | |
17591 | s%@LEXLIB@%$LEXLIB%g | |
17592 | s%@LN_S@%$LN_S%g | |
17593 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
17594 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
17595 | s%@GTK_LIBS@%$GTK_LIBS%g | |
17596 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
17597 | s%@X_CFLAGS@%$X_CFLAGS%g | |
17598 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
17599 | s%@X_LIBS@%$X_LIBS%g | |
17600 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
17601 | s%@REZ@%$REZ%g | |
17602 | s%@DEREZ@%$DEREZ%g | |
17603 | s%@LEX_STEM@%$LEX_STEM%g | |
17604 | s%@PATH_IFS@%$PATH_IFS%g | |
17605 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
17606 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
17607 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
17608 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
17609 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
17610 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
17611 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
17612 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
17613 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
17614 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
17615 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
17616 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
17617 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g | |
17618 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
17619 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
17620 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
17621 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
17622 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
17623 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
17624 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
17625 | s%@WX_ALL@%$WX_ALL%g | |
17626 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
17627 | s%@SHARED_LD@%$SHARED_LD%g | |
17628 | s%@PIC_FLAG@%$PIC_FLAG%g | |
17629 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
17630 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
17631 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
17632 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g | |
17633 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g | |
17634 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
17635 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
17636 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
17637 | s%@USE_GUI@%$USE_GUI%g | |
17638 | s%@AFMINSTALL@%$AFMINSTALL%g | |
17639 | s%@SETUPH_DIR@%$SETUPH_DIR%g | |
17640 | s%@TOOLKIT@%$TOOLKIT%g | |
17641 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
17642 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
17643 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g | |
17644 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
17645 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
17646 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
17647 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
17648 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
17649 | s%@GUIDIST@%$GUIDIST%g | |
17650 | s%@PORT_FILES@%$PORT_FILES%g | |
17651 | s%@DISTDIR@%$DISTDIR%g | |
17652 | s%@RPM_SPEC@%$RPM_SPEC%g | |
17653 | s%@RPM_FILES@%$RPM_FILES%g | |
17654 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
17655 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
17656 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
17657 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
17658 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
17659 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
17660 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
17661 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
17662 | s%@EXTRADEFS@%$EXTRADEFS%g | |
17663 | s%@LD_LIBS@%$LD_LIBS%g | |
17664 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g | |
17665 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
17666 | s%@RESPROGRAM@%$RESPROGRAM%g | |
17667 | s%@RESCOMP@%$RESCOMP%g | |
17668 | s%@RESFLAGS@%$RESFLAGS%g | |
17669 | s%@REZFLAGS@%$REZFLAGS%g | |
17670 | s%@DEREZFLAGS@%$DEREZFLAGS%g | |
17671 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
17672 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
17673 | s%@DLLTOOL@%$DLLTOOL%g | |
17674 | s%@AS@%$AS%g | |
17675 | s%@NM@%$NM%g | |
17676 | s%@LD@%$LD%g | |
17677 | s%@MAKEINFO@%$MAKEINFO%g | |
17678 | s%@SET_MAKE@%$SET_MAKE%g | |
17679 | s%@subdirs@%$subdirs%g | |
17680 | ||
17681 | CEOF | |
17682 | EOF | |
17683 | ||
17684 | cat >> $CONFIG_STATUS <<\EOF | |
17685 | ||
17686 | # Split the substitutions into bite-sized pieces for seds with | |
17687 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
17688 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
17689 | ac_file=1 # Number of current file. | |
17690 | ac_beg=1 # First line for current file. | |
17691 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
17692 | ac_more_lines=: | |
17693 | ac_sed_cmds="" | |
17694 | while $ac_more_lines; do | |
17695 | if test $ac_beg -gt 1; then | |
17696 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
17697 | else | |
17698 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
17699 | fi | |
17700 | if test ! -s conftest.s$ac_file; then | |
17701 | ac_more_lines=false | |
17702 | rm -f conftest.s$ac_file | |
17703 | else | |
17704 | if test -z "$ac_sed_cmds"; then | |
17705 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
17706 | else | |
17707 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
17708 | fi | |
17709 | ac_file=`expr $ac_file + 1` | |
17710 | ac_beg=$ac_end | |
17711 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
17712 | fi | |
17713 | done | |
17714 | if test -z "$ac_sed_cmds"; then | |
17715 | ac_sed_cmds=cat | |
17716 | fi | |
17717 | EOF | |
17718 | ||
17719 | cat >> $CONFIG_STATUS <<EOF | |
17720 | ||
17721 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
17722 | src/make.env | |
17723 | src/makeprog.env | |
17724 | src/makelib.env | |
17725 | Makefile | |
17726 | "} | |
17727 | EOF | |
17728 | cat >> $CONFIG_STATUS <<\EOF | |
17729 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
17730 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
17731 | case "$ac_file" in | |
17732 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17733 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17734 | *) ac_file_in="${ac_file}.in" ;; | |
17735 | esac | |
17736 | ||
17737 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
17738 | ||
17739 | # Remove last slash and all that follows it. Not all systems have dirname. | |
17740 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
17741 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
17742 | # The file is in a subdirectory. | |
17743 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
17744 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
17745 | # A "../" for each directory in $ac_dir_suffix. | |
17746 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
17747 | else | |
17748 | ac_dir_suffix= ac_dots= | |
17749 | fi | |
17750 | ||
17751 | case "$ac_given_srcdir" in | |
17752 | .) srcdir=. | |
17753 | if test -z "$ac_dots"; then top_srcdir=. | |
17754 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
17755 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
17756 | *) # Relative path. | |
17757 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
17758 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
17759 | esac | |
17760 | ||
17761 | case "$ac_given_INSTALL" in | |
17762 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
17763 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
17764 | esac | |
17765 | ||
17766 | echo creating "$ac_file" | |
17767 | rm -f "$ac_file" | |
17768 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
17769 | case "$ac_file" in | |
17770 | *Makefile*) ac_comsub="1i\\ | |
17771 | # $configure_input" ;; | |
17772 | *) ac_comsub= ;; | |
17773 | esac | |
17774 | ||
17775 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
17776 | sed -e "$ac_comsub | |
17777 | s%@configure_input@%$configure_input%g | |
17778 | s%@srcdir@%$srcdir%g | |
17779 | s%@top_srcdir@%$top_srcdir%g | |
17780 | s%@INSTALL@%$INSTALL%g | |
17781 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
17782 | fi; done | |
17783 | rm -f conftest.s* | |
17784 | ||
17785 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
17786 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
17787 | # | |
17788 | # ac_d sets the value in "#define NAME VALUE" lines. | |
17789 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
17790 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
17791 | ac_dC='\3' | |
17792 | ac_dD='%g' | |
17793 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
17794 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17795 | ac_uB='\([ ]\)%\1#\2define\3' | |
17796 | ac_uC=' ' | |
17797 | ac_uD='\4%g' | |
17798 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
17799 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17800 | ac_eB='$%\1#\2define\3' | |
17801 | ac_eC=' ' | |
17802 | ac_eD='%g' | |
17803 | ||
17804 | if test "${CONFIG_HEADERS+set}" != set; then | |
17805 | EOF | |
17806 | cat >> $CONFIG_STATUS <<EOF | |
17807 | CONFIG_HEADERS="setup.h:setup.h.in" | |
17808 | EOF | |
17809 | cat >> $CONFIG_STATUS <<\EOF | |
17810 | fi | |
17811 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
17812 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
17813 | case "$ac_file" in | |
17814 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17815 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17816 | *) ac_file_in="${ac_file}.in" ;; | |
17817 | esac | |
17818 | ||
17819 | echo creating $ac_file | |
17820 | ||
17821 | rm -f conftest.frag conftest.in conftest.out | |
17822 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
17823 | cat $ac_file_inputs > conftest.in | |
17824 | ||
17825 | EOF | |
17826 | ||
17827 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
17828 | # the proper values into config.h.in to produce config.h. And first: | |
17829 | # Protect against being on the right side of a sed subst in config.status. | |
17830 | # Protect against being in an unquoted here document in config.status. | |
17831 | rm -f conftest.vals | |
17832 | cat > conftest.hdr <<\EOF | |
17833 | s/[\\&%]/\\&/g | |
17834 | s%[\\$`]%\\&%g | |
17835 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
17836 | s%ac_d%ac_u%gp | |
17837 | s%ac_u%ac_e%gp | |
17838 | EOF | |
17839 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
17840 | rm -f conftest.hdr | |
17841 | ||
17842 | # This sed command replaces #undef with comments. This is necessary, for | |
17843 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
17844 | # on some systems where configure will not decide to define it. | |
17845 | cat >> conftest.vals <<\EOF | |
17846 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
17847 | EOF | |
17848 | ||
17849 | # Break up conftest.vals because some shells have a limit on | |
17850 | # the size of here documents, and old seds have small limits too. | |
17851 | ||
17852 | rm -f conftest.tail | |
17853 | while : | |
17854 | do | |
17855 | ac_lines=`grep -c . conftest.vals` | |
17856 | # grep -c gives empty output for an empty file on some AIX systems. | |
17857 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
17858 | # Write a limited-size here document to conftest.frag. | |
17859 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
17860 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
17861 | echo 'CEOF | |
17862 | sed -f conftest.frag conftest.in > conftest.out | |
17863 | rm -f conftest.in | |
17864 | mv conftest.out conftest.in | |
17865 | ' >> $CONFIG_STATUS | |
17866 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
17867 | rm -f conftest.vals | |
17868 | mv conftest.tail conftest.vals | |
17869 | done | |
17870 | rm -f conftest.vals | |
17871 | ||
17872 | cat >> $CONFIG_STATUS <<\EOF | |
17873 | rm -f conftest.frag conftest.h | |
17874 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
17875 | cat conftest.in >> conftest.h | |
17876 | rm -f conftest.in | |
17877 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
17878 | echo "$ac_file is unchanged" | |
17879 | rm -f conftest.h | |
17880 | else | |
17881 | # Remove last slash and all that follows it. Not all systems have dirname. | |
17882 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
17883 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
17884 | # The file is in a subdirectory. | |
17885 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
17886 | fi | |
17887 | rm -f $ac_file | |
17888 | mv conftest.h $ac_file | |
17889 | fi | |
17890 | fi; done | |
17891 | ||
17892 | EOF | |
17893 | cat >> $CONFIG_STATUS <<EOF | |
17894 | ||
17895 | SETUPH_DIR="${SETUPH_DIR}" | |
17896 | TOOLKIT_NAME="${TOOLKIT_NAME}" | |
17897 | LN_S="${LN_S}" | |
17898 | ||
17899 | ||
17900 | EOF | |
17901 | cat >> $CONFIG_STATUS <<\EOF | |
17902 | ||
17903 | if test ! -f wx${TOOLKIT_NAME}-config; then | |
17904 | chmod +x wx-config | |
17905 | mv wx-config wx${TOOLKIT_NAME}-config | |
17906 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
17907 | fi | |
17908 | ||
17909 | ||
17910 | if test ! -d lib; then | |
17911 | mkdir lib | |
17912 | fi | |
17913 | if test ! -d lib/wx; then | |
17914 | mkdir lib/wx | |
17915 | fi | |
17916 | if test ! -d lib/wx/include; then | |
17917 | mkdir lib/wx/include | |
17918 | fi | |
17919 | if test ! -d lib/wx/include/wx; then | |
17920 | mkdir lib/wx/include/wx | |
17921 | fi | |
17922 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then | |
17923 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
17924 | fi | |
17925 | if test -f setup.h; then | |
17926 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h | |
17927 | fi | |
17928 | ||
17929 | ||
17930 | if test ! -d include; then | |
17931 | mkdir include | |
17932 | fi | |
17933 | if test ! -d include/wx; then | |
17934 | mkdir include/wx | |
17935 | fi | |
17936 | if test ! -d include/wx/${SETUPH_DIR}; then | |
17937 | mkdir include/wx/${SETUPH_DIR} | |
17938 | fi | |
17939 | if test -f setup.h; then | |
17940 | cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h | |
17941 | fi | |
17942 | ||
17943 | ||
17944 | exit 0 | |
17945 | EOF | |
17946 | chmod +x $CONFIG_STATUS | |
17947 | rm -fr confdefs* $ac_clean_files | |
17948 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
17949 | ||
17950 | if test "$no_recursion" != yes; then | |
17951 | ||
17952 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
17953 | ac_sub_configure_args= | |
17954 | ac_prev= | |
17955 | for ac_arg in $ac_configure_args; do | |
17956 | if test -n "$ac_prev"; then | |
17957 | ac_prev= | |
17958 | continue | |
17959 | fi | |
17960 | case "$ac_arg" in | |
17961 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
17962 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
17963 | ac_prev=cache_file ;; | |
17964 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
17965 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
17966 | ;; | |
17967 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
17968 | ac_prev=srcdir ;; | |
17969 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
17970 | ;; | |
17971 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
17972 | esac | |
17973 | done | |
17974 | ||
17975 | for ac_config_dir in demos samples utils contrib; do | |
17976 | ||
17977 | # Do not complain, so a configure script can configure whichever | |
17978 | # parts of a large source tree are present. | |
17979 | if test ! -d $srcdir/$ac_config_dir; then | |
17980 | continue | |
17981 | fi | |
17982 | ||
17983 | echo configuring in $ac_config_dir | |
17984 | ||
17985 | case "$srcdir" in | |
17986 | .) ;; | |
17987 | *) | |
17988 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
17989 | else | |
17990 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
17991 | fi | |
17992 | ;; | |
17993 | esac | |
17994 | ||
17995 | ac_popdir=`pwd` | |
17996 | cd $ac_config_dir | |
17997 | ||
17998 | # A "../" for each directory in /$ac_config_dir. | |
17999 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
18000 | ||
18001 | case "$srcdir" in | |
18002 | .) # No --srcdir option. We are building in place. | |
18003 | ac_sub_srcdir=$srcdir ;; | |
18004 | /*) # Absolute path. | |
18005 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
18006 | *) # Relative path. | |
18007 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
18008 | esac | |
18009 | ||
18010 | # Check for guested configure; otherwise get Cygnus style configure. | |
18011 | if test -f $ac_sub_srcdir/configure; then | |
18012 | ac_sub_configure=$ac_sub_srcdir/configure | |
18013 | elif test -f $ac_sub_srcdir/configure.in; then | |
18014 | ac_sub_configure=$ac_configure | |
18015 | else | |
18016 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
18017 | ac_sub_configure= | |
18018 | fi | |
18019 | ||
18020 | # The recursion is here. | |
18021 | if test -n "$ac_sub_configure"; then | |
18022 | ||
18023 | # Make the cache file name correct relative to the subdirectory. | |
18024 | case "$cache_file" in | |
18025 | /*) ac_sub_cache_file=$cache_file ;; | |
18026 | *) # Relative path. | |
18027 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
18028 | esac | |
18029 | case "$ac_given_INSTALL" in | |
18030 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18031 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
18032 | esac | |
18033 | ||
18034 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
18035 | # The eval makes quoting arguments work. | |
18036 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
18037 | then : | |
18038 | else | |
18039 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
18040 | fi | |
18041 | fi | |
18042 | ||
18043 | cd $ac_popdir | |
18044 | done | |
18045 | fi | |
18046 | ||
18047 |