]> git.saurik.com Git - wxWidgets.git/blob - configure
85c5cd22219dcf4b4b3c6f7e2aafaf20b207d435
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59 # Configure paths for GTK+
60 # Owen Taylor 1997-2001
61
62
63
64
65
66
67
68
69 # Configure paths for GTK+
70 # Owen Taylor 97-11-3
71
72
73
74 # Guess values for system-dependent variables and create Makefiles.
75 # Generated automatically using autoconf version 2.13
76 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
77 #
78 # This configure script is free software; the Free Software Foundation
79 # gives unlimited permission to copy, distribute and modify it.
80
81 # Defaults:
82 ac_help=
83 ac_default_prefix=/usr/local
84 # Any additions from configure.in:
85 ac_help="$ac_help
86 --enable-gui use GUI classes"
87 ac_help="$ac_help
88 --enable-universal use wxWindows GUI controls instead of native ones"
89 ac_help="$ac_help
90 --with-gtk use GTK+"
91 ac_help="$ac_help
92 --with-motif use Motif/Lesstif"
93 ac_help="$ac_help
94 --with-mac use Mac OS X"
95 ac_help="$ac_help
96 --with-wine use WINE"
97 ac_help="$ac_help
98 --with-msw use MS-Windows"
99 ac_help="$ac_help
100 --with-pm use OS/2 Presentation Manager"
101 ac_help="$ac_help
102 --with-mgl use SciTech MGL"
103 ac_help="$ac_help
104 --with-microwin use MicroWindows"
105 ac_help="$ac_help
106 --with-x11 use X11"
107 ac_help="$ac_help
108 --enable-nanox use NanoX"
109 ac_help="$ac_help
110 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
111 ac_help="$ac_help
112 --with-libpng use libpng (PNG image format)"
113 ac_help="$ac_help
114 --with-libjpeg use libjpeg (JPEG file format)"
115 ac_help="$ac_help
116 --with-libtiff use libtiff (TIFF file format)"
117 ac_help="$ac_help
118 --with-opengl use OpenGL (or Mesa)"
119 ac_help="$ac_help
120 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
121 ac_help="$ac_help
122 --with-regex enable support for wxRegEx class"
123 ac_help="$ac_help
124 --with-zlib use zlib for LZW compression"
125 ac_help="$ac_help
126 --with-odbc use the IODBC and wxODBC classes"
127 ac_help="$ac_help
128 --enable-shared create shared library code"
129 ac_help="$ac_help
130 --enable-soname set the DT_SONAME field in ELF shared libraries"
131 ac_help="$ac_help
132 --enable-optimise create optimised code"
133 ac_help="$ac_help
134 --enable-debug same as debug_flag and debug_info"
135 ac_help="$ac_help
136 --enable-precomp enable use of precompiled headers (Mac OS X)"
137 ac_help="$ac_help
138 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
139 ac_help="$ac_help
140 --enable-debug_info create code with debugging information"
141 ac_help="$ac_help
142 --enable-debug_gdb create code with extra GDB debugging information"
143 ac_help="$ac_help
144 --enable-debug_cntxt use wxDebugContext"
145 ac_help="$ac_help
146 --enable-mem_tracing create code with memory tracing"
147 ac_help="$ac_help
148 --enable-profile create code with profiling information"
149 ac_help="$ac_help
150 --enable-no_rtti create code without RTTI information"
151 ac_help="$ac_help
152 --enable-no_exceptions create code without C++ exceptions handling"
153 ac_help="$ac_help
154 --enable-permissive compile code disregarding strict ANSI"
155 ac_help="$ac_help
156 --enable-no_deps create code without dependency information"
157 ac_help="$ac_help
158 --enable-compat20 enable wxWindows 2.0 compatibility"
159 ac_help="$ac_help
160 --disable-compat22 disable wxWindows 2.2 compatibility"
161 ac_help="$ac_help
162 --enable-rpath=DIR output the rpath flag from wx-config"
163 ac_help="$ac_help
164 --enable-intl use internationalization system"
165 ac_help="$ac_help
166 --enable-config use wxConfig (and derived) classes"
167 ac_help="$ac_help
168 --enable-protocols use wxProtocol and derived classes"
169 ac_help="$ac_help
170 --enable-ftp use wxFTP (requires wxProtocol"
171 ac_help="$ac_help
172 --enable-http use wxHTTP (requires wxProtocol"
173 ac_help="$ac_help
174 --enable-fileproto use wxFileProto class (requires wxProtocol"
175 ac_help="$ac_help
176 --enable-sockets use socket/network classes"
177 ac_help="$ac_help
178 --enable-ipc use interprocess communication (wxSocket etc.)"
179 ac_help="$ac_help
180 --enable-cmdline use wxCmdLineParser class"
181 ac_help="$ac_help
182 --enable-datetime use wxDateTime class"
183 ac_help="$ac_help
184 --enable-timedate use obsolete wxDate/wxTime classes"
185 ac_help="$ac_help
186 --enable-stopwatch use wxStopWatch class"
187 ac_help="$ac_help
188 --enable-dialupman use dialup network classes"
189 ac_help="$ac_help
190 --enable-apple_ieee use the Apple IEEE codec"
191 ac_help="$ac_help
192 --enable-timer use wxTimer class"
193 ac_help="$ac_help
194 --enable-wave use wxWave class"
195 ac_help="$ac_help
196 --enable-fraction use wxFraction class"
197 ac_help="$ac_help
198 --enable-dynlib use wxLibrary class for DLL loading"
199 ac_help="$ac_help
200 --enable-dynamicloader use (new) wxDynamicLibrary class"
201 ac_help="$ac_help
202 --enable-longlong use wxLongLong class"
203 ac_help="$ac_help
204 --enable-geometry use geometry class"
205 ac_help="$ac_help
206 --enable-log use logging system"
207 ac_help="$ac_help
208 --enable-streams use wxStream etc classes"
209 ac_help="$ac_help
210 --enable-file use wxFile classes"
211 ac_help="$ac_help
212 --enable-ffile use wxFFile classes"
213 ac_help="$ac_help
214 --enable-textbuf use wxTextBuffer class"
215 ac_help="$ac_help
216 --enable-textfile use wxTextFile class"
217 ac_help="$ac_help
218 --enable-fontmap use font encodings conversion classes"
219 ac_help="$ac_help
220 --enable-unicode compile wxString with Unicode support"
221 ac_help="$ac_help
222 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
223 ac_help="$ac_help
224 --enable-wxprintfv use wxWindows implementation of vprintf()"
225 ac_help="$ac_help
226 --enable-std_iostreams use standard C++ stream classes"
227 ac_help="$ac_help
228 --enable-filesystem use virtual file systems classes"
229 ac_help="$ac_help
230 --enable-fs_inet use virtual HTTP/FTP filesystems"
231 ac_help="$ac_help
232 --enable-fs_zip use virtual ZIP filesystems"
233 ac_help="$ac_help
234 --enable-zipstream use wxZipInputStream"
235 ac_help="$ac_help
236 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
237 ac_help="$ac_help
238 --enable-snglinst use wxSingleInstanceChecker class"
239 ac_help="$ac_help
240 --enable-mimetype use wxMimeTypesManager"
241 ac_help="$ac_help
242 --enable-sysoptions use wxSystemOptions"
243 ac_help="$ac_help
244 --enable-url use wxURL class"
245 ac_help="$ac_help
246 --enable-protocol use wxProtocol class"
247 ac_help="$ac_help
248 --enable-protocol-http HTTP support in wxProtocol"
249 ac_help="$ac_help
250 --enable-protocol-ftp FTP support in wxProtocol"
251 ac_help="$ac_help
252 --enable-protocol-file FILE support in wxProtocol"
253 ac_help="$ac_help
254 --enable-threads use threads"
255 ac_help="$ac_help
256 --enable-docview use document view architecture"
257 ac_help="$ac_help
258 --enable-help use help subsystem"
259 ac_help="$ac_help
260 --enable-mshtmlhelp use MS HTML Help (win32)"
261 ac_help="$ac_help
262 --enable-html use wxHTML sub-library"
263 ac_help="$ac_help
264 --enable-htmlhelp use wxHTML-based help"
265 ac_help="$ac_help
266 --enable-constraints use layout-constraints system"
267 ac_help="$ac_help
268 --enable-printarch use printing architecture"
269 ac_help="$ac_help
270 --enable-mdi use multiple document interface architecture"
271 ac_help="$ac_help
272 --enable-loggui use standard GUI logger"
273 ac_help="$ac_help
274 --enable-logwin use wxLogWindow"
275 ac_help="$ac_help
276 --enable-logdialog use wxLogDialog"
277 ac_help="$ac_help
278 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
279 ac_help="$ac_help
280 --enable-prologio use Prolog IO library"
281 ac_help="$ac_help
282 --enable-resources use wxWindows resources"
283 ac_help="$ac_help
284 --enable-xresources use X resources for save (default for gtk+)"
285 ac_help="$ac_help
286 --enable-clipboard use wxClipboard classes"
287 ac_help="$ac_help
288 --enable-dnd use Drag'n'Drop classes"
289 ac_help="$ac_help
290 --enable-metafile use win32 metafiles"
291 ac_help="$ac_help
292 --enable-treelayout use wxTreeLayout classes"
293 ac_help="$ac_help
294 --enable-controls use all usual controls"
295 ac_help="$ac_help
296 --enable-accel use accelerators"
297 ac_help="$ac_help
298 --enable-button use wxButton class"
299 ac_help="$ac_help
300 --enable-bmpbutton use wxBitmapButton class"
301 ac_help="$ac_help
302 --enable-calendar use wxCalendarCtrl class"
303 ac_help="$ac_help
304 --enable-caret use wxCaret class"
305 ac_help="$ac_help
306 --enable-checkbox use wxCheckBox class"
307 ac_help="$ac_help
308 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
309 ac_help="$ac_help
310 --enable-choice use wxChoice class"
311 ac_help="$ac_help
312 --enable-combobox use wxComboBox classes"
313 ac_help="$ac_help
314 --enable-gauge use wxGauge class"
315 ac_help="$ac_help
316 --enable-grid use wxGrid class"
317 ac_help="$ac_help
318 --enable-newgrid use new wxGrid class"
319 ac_help="$ac_help
320 --enable-imaglist use wxImageList class"
321 ac_help="$ac_help
322 --enable-listbox use wxListBox class"
323 ac_help="$ac_help
324 --enable-listctrl use wxListCtrl class"
325 ac_help="$ac_help
326 --enable-notebook use wxNotebook class"
327 ac_help="$ac_help
328 --enable-propsheet use wxPropertySheet class"
329 ac_help="$ac_help
330 --enable-radiobox use wxRadioBox class"
331 ac_help="$ac_help
332 --enable-radiobtn use wxRadioButton class"
333 ac_help="$ac_help
334 --enable-sash use wxSashWindow class"
335 ac_help="$ac_help
336 --enable-scrollbar use wxScrollBar class and scrollable windows"
337 ac_help="$ac_help
338 --enable-slider use wxSlider class"
339 ac_help="$ac_help
340 --enable-spinbtn use wxSpinButton class"
341 ac_help="$ac_help
342 --enable-spinctrl use wxSpinCtrl class"
343 ac_help="$ac_help
344 --enable-splitter use wxSplitterWindow class"
345 ac_help="$ac_help
346 --enable-statbmp use wxStaticBitmap class"
347 ac_help="$ac_help
348 --enable-statbox use wxStaticBox class"
349 ac_help="$ac_help
350 --enable-statline use wxStaticLine class"
351 ac_help="$ac_help
352 --enable-stattext use wxStaticText class"
353 ac_help="$ac_help
354 --enable-statusbar use wxStatusBar class"
355 ac_help="$ac_help
356 --enable-tabdialog use wxTabControl class"
357 ac_help="$ac_help
358 --enable-textctrl use wxTextCtrl class"
359 ac_help="$ac_help
360 --enable-togglebtn use wxToggleButton class"
361 ac_help="$ac_help
362 --enable-toolbar use wxToolBar class"
363 ac_help="$ac_help
364 --enable-tbarnative use native wxToolBar class"
365 ac_help="$ac_help
366 --enable-tbarsmpl use wxToolBarSimple class"
367 ac_help="$ac_help
368 --enable-treectrl use wxTreeCtrl class"
369 ac_help="$ac_help
370 --enable-tipwindow use wxTipWindow class"
371 ac_help="$ac_help
372 --enable-popupwin use wxPopUpWindow class"
373 ac_help="$ac_help
374 --enable-commondlg use all common dialogs"
375 ac_help="$ac_help
376 --enable-choicedlg use wxChoiceDialog"
377 ac_help="$ac_help
378 --enable-coldlg use wxColourDialog"
379 ac_help="$ac_help
380 --enable-filedlg use wxFileDialog"
381 ac_help="$ac_help
382 --enable-finddlg use wxFindReplaceDialog"
383 ac_help="$ac_help
384 --enable-fontdlg use wxFontDialog"
385 ac_help="$ac_help
386 --enable-dirdlg use wxDirDialog"
387 ac_help="$ac_help
388 --enable-msgdlg use wxMessageDialog"
389 ac_help="$ac_help
390 --enable-numberdlg use wxNumberEntryDialog"
391 ac_help="$ac_help
392 --enable-splash use wxSplashScreen"
393 ac_help="$ac_help
394 --enable-textdlg use wxTextDialog"
395 ac_help="$ac_help
396 --enable-tipdlg use startup tips"
397 ac_help="$ac_help
398 --enable-progressdlg use wxProgressDialog"
399 ac_help="$ac_help
400 --enable-wizarddlg use wxWizard"
401 ac_help="$ac_help
402 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
403 ac_help="$ac_help
404 --enable-miniframe use wxMiniFrame class"
405 ac_help="$ac_help
406 --enable-tooltips use wxToolTip class"
407 ac_help="$ac_help
408 --enable-splines use spline drawing code"
409 ac_help="$ac_help
410 --enable-validators use wxValidator and derived classes"
411 ac_help="$ac_help
412 --enable-busyinfo use wxBusyInfo"
413 ac_help="$ac_help
414 --enable-joystick use wxJoystick (Linux only)"
415 ac_help="$ac_help
416 --enable-metafiles use wxMetaFile (Windows only)"
417 ac_help="$ac_help
418 --enable-dragimage use wxDragImage"
419 ac_help="$ac_help
420 --enable-palette use wxPalette class"
421 ac_help="$ac_help
422 --enable-image use wxImage class"
423 ac_help="$ac_help
424 --enable-gif use gif images (GIF file format)"
425 ac_help="$ac_help
426 --enable-pcx use pcx images (PCX file format)"
427 ac_help="$ac_help
428 --enable-iff use iff images (IFF file format)"
429 ac_help="$ac_help
430 --enable-pnm use pnm images (PNM file format)"
431 ac_help="$ac_help
432 --enable-xpm use xpm images (XPM file format)"
433 ac_help="$ac_help
434 --enable-icocur use Windows ICO and CUR formats"
435 ac_help="$ac_help
436 --disable-largefile omit support for large files"
437 ac_help="$ac_help
438 --disable-gtktest do not try to compile and run a test GTK+ program"
439 ac_help="$ac_help
440 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
441 ac_help="$ac_help
442 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
443 ac_help="$ac_help
444 --disable-gtktest Do not try to compile and run a test GTK program"
445 ac_help="$ac_help
446 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
447 ac_help="$ac_help
448 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
449 ac_help="$ac_help
450 --disable-gtktest Do not try to compile and run a test GTK program"
451 ac_help="$ac_help
452 --with-x use the X Window System"
453 ac_help="$ac_help
454 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
455
456 # Initialize some variables set by options.
457 # The variables have the same names as the options, with
458 # dashes changed to underlines.
459 build=NONE
460 cache_file=./config.cache
461 exec_prefix=NONE
462 host=NONE
463 no_create=
464 nonopt=NONE
465 no_recursion=
466 prefix=NONE
467 program_prefix=NONE
468 program_suffix=NONE
469 program_transform_name=s,x,x,
470 silent=
471 site=
472 srcdir=
473 target=NONE
474 verbose=
475 x_includes=NONE
476 x_libraries=NONE
477 bindir='${exec_prefix}/bin'
478 sbindir='${exec_prefix}/sbin'
479 libexecdir='${exec_prefix}/libexec'
480 datadir='${prefix}/share'
481 sysconfdir='${prefix}/etc'
482 sharedstatedir='${prefix}/com'
483 localstatedir='${prefix}/var'
484 libdir='${exec_prefix}/lib'
485 includedir='${prefix}/include'
486 oldincludedir='/usr/include'
487 infodir='${prefix}/info'
488 mandir='${prefix}/man'
489
490 # Initialize some other variables.
491 subdirs=
492 MFLAGS= MAKEFLAGS=
493 SHELL=${CONFIG_SHELL-/bin/sh}
494 # Maximum number of lines to put in a shell here document.
495 ac_max_here_lines=12
496
497 ac_prev=
498 for ac_option
499 do
500
501 # If the previous option needs an argument, assign it.
502 if test -n "$ac_prev"; then
503 eval "$ac_prev=\$ac_option"
504 ac_prev=
505 continue
506 fi
507
508 case "$ac_option" in
509 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
510 *) ac_optarg= ;;
511 esac
512
513 # Accept the important Cygnus configure options, so we can diagnose typos.
514
515 case "$ac_option" in
516
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
518 ac_prev=bindir ;;
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520 bindir="$ac_optarg" ;;
521
522 -build | --build | --buil | --bui | --bu)
523 ac_prev=build ;;
524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525 build="$ac_optarg" ;;
526
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532 cache_file="$ac_optarg" ;;
533
534 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
535 ac_prev=datadir ;;
536 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
537 | --da=*)
538 datadir="$ac_optarg" ;;
539
540 -disable-* | --disable-*)
541 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
542 # Reject names that are not valid shell variable names.
543 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
544 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
545 fi
546 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
547 eval "enable_${ac_feature}=no" ;;
548
549 -enable-* | --enable-*)
550 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
551 # Reject names that are not valid shell variable names.
552 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
553 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
554 fi
555 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
556 case "$ac_option" in
557 *=*) ;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "enable_${ac_feature}='$ac_optarg'" ;;
561
562 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
563 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
564 | --exec | --exe | --ex)
565 ac_prev=exec_prefix ;;
566 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
567 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
568 | --exec=* | --exe=* | --ex=*)
569 exec_prefix="$ac_optarg" ;;
570
571 -gas | --gas | --ga | --g)
572 # Obsolete; use --with-gas.
573 with_gas=yes ;;
574
575 -help | --help | --hel | --he)
576 # Omit some internal or obsolete options to make the list less imposing.
577 # This message is too long to be a string in the A/UX 3.1 sh.
578 cat << EOF
579 Usage: configure [options] [host]
580 Options: [defaults in brackets after descriptions]
581 Configuration:
582 --cache-file=FILE cache test results in FILE
583 --help print this message
584 --no-create do not create output files
585 --quiet, --silent do not print \`checking...' messages
586 --version print the version of autoconf that created configure
587 Directory and file names:
588 --prefix=PREFIX install architecture-independent files in PREFIX
589 [$ac_default_prefix]
590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
591 [same as prefix]
592 --bindir=DIR user executables in DIR [EPREFIX/bin]
593 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
594 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
595 --datadir=DIR read-only architecture-independent data in DIR
596 [PREFIX/share]
597 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
598 --sharedstatedir=DIR modifiable architecture-independent data in DIR
599 [PREFIX/com]
600 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
601 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
602 --includedir=DIR C header files in DIR [PREFIX/include]
603 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
604 --infodir=DIR info documentation in DIR [PREFIX/info]
605 --mandir=DIR man documentation in DIR [PREFIX/man]
606 --srcdir=DIR find the sources in DIR [configure dir or ..]
607 --program-prefix=PREFIX prepend PREFIX to installed program names
608 --program-suffix=SUFFIX append SUFFIX to installed program names
609 --program-transform-name=PROGRAM
610 run sed PROGRAM on installed program names
611 EOF
612 cat << EOF
613 Host type:
614 --build=BUILD configure for building on BUILD [BUILD=HOST]
615 --host=HOST configure for HOST [guessed]
616 --target=TARGET configure for TARGET [TARGET=HOST]
617 Features and packages:
618 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
619 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
622 --x-includes=DIR X include files are in DIR
623 --x-libraries=DIR X library files are in DIR
624 EOF
625 if test -n "$ac_help"; then
626 echo "--enable and --with options recognized:$ac_help"
627 fi
628 exit 0 ;;
629
630 -host | --host | --hos | --ho)
631 ac_prev=host ;;
632 -host=* | --host=* | --hos=* | --ho=*)
633 host="$ac_optarg" ;;
634
635 -includedir | --includedir | --includedi | --included | --include \
636 | --includ | --inclu | --incl | --inc)
637 ac_prev=includedir ;;
638 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
639 | --includ=* | --inclu=* | --incl=* | --inc=*)
640 includedir="$ac_optarg" ;;
641
642 -infodir | --infodir | --infodi | --infod | --info | --inf)
643 ac_prev=infodir ;;
644 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
645 infodir="$ac_optarg" ;;
646
647 -libdir | --libdir | --libdi | --libd)
648 ac_prev=libdir ;;
649 -libdir=* | --libdir=* | --libdi=* | --libd=*)
650 libdir="$ac_optarg" ;;
651
652 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
653 | --libexe | --libex | --libe)
654 ac_prev=libexecdir ;;
655 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
656 | --libexe=* | --libex=* | --libe=*)
657 libexecdir="$ac_optarg" ;;
658
659 -localstatedir | --localstatedir | --localstatedi | --localstated \
660 | --localstate | --localstat | --localsta | --localst \
661 | --locals | --local | --loca | --loc | --lo)
662 ac_prev=localstatedir ;;
663 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
664 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
665 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
666 localstatedir="$ac_optarg" ;;
667
668 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
669 ac_prev=mandir ;;
670 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
671 mandir="$ac_optarg" ;;
672
673 -nfp | --nfp | --nf)
674 # Obsolete; use --without-fp.
675 with_fp=no ;;
676
677 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
678 | --no-cr | --no-c)
679 no_create=yes ;;
680
681 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
682 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
683 no_recursion=yes ;;
684
685 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
686 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
687 | --oldin | --oldi | --old | --ol | --o)
688 ac_prev=oldincludedir ;;
689 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
690 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
691 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
692 oldincludedir="$ac_optarg" ;;
693
694 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
695 ac_prev=prefix ;;
696 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
697 prefix="$ac_optarg" ;;
698
699 -program-prefix | --program-prefix | --program-prefi | --program-pref \
700 | --program-pre | --program-pr | --program-p)
701 ac_prev=program_prefix ;;
702 -program-prefix=* | --program-prefix=* | --program-prefi=* \
703 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
704 program_prefix="$ac_optarg" ;;
705
706 -program-suffix | --program-suffix | --program-suffi | --program-suff \
707 | --program-suf | --program-su | --program-s)
708 ac_prev=program_suffix ;;
709 -program-suffix=* | --program-suffix=* | --program-suffi=* \
710 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
711 program_suffix="$ac_optarg" ;;
712
713 -program-transform-name | --program-transform-name \
714 | --program-transform-nam | --program-transform-na \
715 | --program-transform-n | --program-transform- \
716 | --program-transform | --program-transfor \
717 | --program-transfo | --program-transf \
718 | --program-trans | --program-tran \
719 | --progr-tra | --program-tr | --program-t)
720 ac_prev=program_transform_name ;;
721 -program-transform-name=* | --program-transform-name=* \
722 | --program-transform-nam=* | --program-transform-na=* \
723 | --program-transform-n=* | --program-transform-=* \
724 | --program-transform=* | --program-transfor=* \
725 | --program-transfo=* | --program-transf=* \
726 | --program-trans=* | --program-tran=* \
727 | --progr-tra=* | --program-tr=* | --program-t=*)
728 program_transform_name="$ac_optarg" ;;
729
730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
731 | -silent | --silent | --silen | --sile | --sil)
732 silent=yes ;;
733
734 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
735 ac_prev=sbindir ;;
736 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
737 | --sbi=* | --sb=*)
738 sbindir="$ac_optarg" ;;
739
740 -sharedstatedir | --sharedstatedir | --sharedstatedi \
741 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
742 | --sharedst | --shareds | --shared | --share | --shar \
743 | --sha | --sh)
744 ac_prev=sharedstatedir ;;
745 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
746 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
747 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
748 | --sha=* | --sh=*)
749 sharedstatedir="$ac_optarg" ;;
750
751 -site | --site | --sit)
752 ac_prev=site ;;
753 -site=* | --site=* | --sit=*)
754 site="$ac_optarg" ;;
755
756 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
757 ac_prev=srcdir ;;
758 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
759 srcdir="$ac_optarg" ;;
760
761 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
762 | --syscon | --sysco | --sysc | --sys | --sy)
763 ac_prev=sysconfdir ;;
764 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
765 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
766 sysconfdir="$ac_optarg" ;;
767
768 -target | --target | --targe | --targ | --tar | --ta | --t)
769 ac_prev=target ;;
770 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
771 target="$ac_optarg" ;;
772
773 -v | -verbose | --verbose | --verbos | --verbo | --verb)
774 verbose=yes ;;
775
776 -version | --version | --versio | --versi | --vers)
777 echo "configure generated by autoconf version 2.13"
778 exit 0 ;;
779
780 -with-* | --with-*)
781 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
782 # Reject names that are not valid shell variable names.
783 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
784 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
785 fi
786 ac_package=`echo $ac_package| sed 's/-/_/g'`
787 case "$ac_option" in
788 *=*) ;;
789 *) ac_optarg=yes ;;
790 esac
791 eval "with_${ac_package}='$ac_optarg'" ;;
792
793 -without-* | --without-*)
794 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
795 # Reject names that are not valid shell variable names.
796 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
797 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
798 fi
799 ac_package=`echo $ac_package| sed 's/-/_/g'`
800 eval "with_${ac_package}=no" ;;
801
802 --x)
803 # Obsolete; use --with-x.
804 with_x=yes ;;
805
806 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
807 | --x-incl | --x-inc | --x-in | --x-i)
808 ac_prev=x_includes ;;
809 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
810 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
811 x_includes="$ac_optarg" ;;
812
813 -x-libraries | --x-libraries | --x-librarie | --x-librari \
814 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
815 ac_prev=x_libraries ;;
816 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
817 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
818 x_libraries="$ac_optarg" ;;
819
820 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
821 ;;
822
823 *)
824 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
825 echo "configure: warning: $ac_option: invalid host type" 1>&2
826 fi
827 if test "x$nonopt" != xNONE; then
828 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
829 fi
830 nonopt="$ac_option"
831 ;;
832
833 esac
834 done
835
836 if test -n "$ac_prev"; then
837 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
838 fi
839
840 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
841
842 # File descriptor usage:
843 # 0 standard input
844 # 1 file creation
845 # 2 errors and warnings
846 # 3 some systems may open it to /dev/tty
847 # 4 used on the Kubota Titan
848 # 6 checking for... messages and results
849 # 5 compiler messages saved in config.log
850 if test "$silent" = yes; then
851 exec 6>/dev/null
852 else
853 exec 6>&1
854 fi
855 exec 5>./config.log
856
857 echo "\
858 This file contains any messages produced by compilers while
859 running configure, to aid debugging if configure makes a mistake.
860 " 1>&5
861
862 # Strip out --no-create and --no-recursion so they do not pile up.
863 # Also quote any args containing shell metacharacters.
864 ac_configure_args=
865 for ac_arg
866 do
867 case "$ac_arg" in
868 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
869 | --no-cr | --no-c) ;;
870 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
871 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
872 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
873 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
874 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
875 esac
876 done
877
878 # NLS nuisances.
879 # Only set these to C if already set. These must not be set unconditionally
880 # because not all systems understand e.g. LANG=C (notably SCO).
881 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
882 # Non-C LC_CTYPE values break the ctype check.
883 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
884 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
885 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
886 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
887
888 # confdefs.h avoids OS command line length limits that DEFS can exceed.
889 rm -rf conftest* confdefs.h
890 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
891 echo > confdefs.h
892
893 # A filename unique to this package, relative to the directory that
894 # configure is in, which we can look for to find out if srcdir is correct.
895 ac_unique_file=wx-config.in
896
897 # Find the source files, if location was not specified.
898 if test -z "$srcdir"; then
899 ac_srcdir_defaulted=yes
900 # Try the directory containing this script, then its parent.
901 ac_prog=$0
902 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
903 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
904 srcdir=$ac_confdir
905 if test ! -r $srcdir/$ac_unique_file; then
906 srcdir=..
907 fi
908 else
909 ac_srcdir_defaulted=no
910 fi
911 if test ! -r $srcdir/$ac_unique_file; then
912 if test "$ac_srcdir_defaulted" = yes; then
913 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
914 else
915 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
916 fi
917 fi
918 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
919
920 # Prefer explicitly selected file to automatically selected ones.
921 if test -z "$CONFIG_SITE"; then
922 if test "x$prefix" != xNONE; then
923 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
924 else
925 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
926 fi
927 fi
928 for ac_site_file in $CONFIG_SITE; do
929 if test -r "$ac_site_file"; then
930 echo "loading site script $ac_site_file"
931 . "$ac_site_file"
932 fi
933 done
934
935 if test -r "$cache_file"; then
936 echo "loading cache $cache_file"
937 . $cache_file
938 else
939 echo "creating cache $cache_file"
940 > $cache_file
941 fi
942
943 ac_ext=c
944 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
945 ac_cpp='$CPP $CPPFLAGS'
946 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
947 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
948 cross_compiling=$ac_cv_prog_cc_cross
949
950 ac_exeext=
951 ac_objext=o
952 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
953 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
954 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
955 ac_n= ac_c='
956 ' ac_t=' '
957 else
958 ac_n=-n ac_c= ac_t=
959 fi
960 else
961 ac_n= ac_c='\c' ac_t=
962 fi
963
964
965
966 ac_aux_dir=
967 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
968 if test -f $ac_dir/install-sh; then
969 ac_aux_dir=$ac_dir
970 ac_install_sh="$ac_aux_dir/install-sh -c"
971 break
972 elif test -f $ac_dir/install.sh; then
973 ac_aux_dir=$ac_dir
974 ac_install_sh="$ac_aux_dir/install.sh -c"
975 break
976 fi
977 done
978 if test -z "$ac_aux_dir"; then
979 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
980 fi
981 ac_config_guess=$ac_aux_dir/config.guess
982 ac_config_sub=$ac_aux_dir/config.sub
983 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
984
985
986 # Do some error checking and defaulting for the host and target type.
987 # The inputs are:
988 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
989 #
990 # The rules are:
991 # 1. You are not allowed to specify --host, --target, and nonopt at the
992 # same time.
993 # 2. Host defaults to nonopt.
994 # 3. If nonopt is not specified, then host defaults to the current host,
995 # as determined by config.guess.
996 # 4. Target and build default to nonopt.
997 # 5. If nonopt is not specified, then target and build default to host.
998
999 # The aliases save the names the user supplied, while $host etc.
1000 # will get canonicalized.
1001 case $host---$target---$nonopt in
1002 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1003 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1004 esac
1005
1006
1007 # Make sure we can run config.sub.
1008 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1009 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1010 fi
1011
1012 echo $ac_n "checking host system type""... $ac_c" 1>&6
1013 echo "configure:1014: checking host system type" >&5
1014
1015 host_alias=$host
1016 case "$host_alias" in
1017 NONE)
1018 case $nonopt in
1019 NONE)
1020 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1021 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1022 fi ;;
1023 *) host_alias=$nonopt ;;
1024 esac ;;
1025 esac
1026
1027 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1028 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1029 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1030 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1031 echo "$ac_t""$host" 1>&6
1032
1033 echo $ac_n "checking target system type""... $ac_c" 1>&6
1034 echo "configure:1035: checking target system type" >&5
1035
1036 target_alias=$target
1037 case "$target_alias" in
1038 NONE)
1039 case $nonopt in
1040 NONE) target_alias=$host_alias ;;
1041 *) target_alias=$nonopt ;;
1042 esac ;;
1043 esac
1044
1045 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1046 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1047 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1048 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1049 echo "$ac_t""$target" 1>&6
1050
1051 echo $ac_n "checking build system type""... $ac_c" 1>&6
1052 echo "configure:1053: checking build system type" >&5
1053
1054 build_alias=$build
1055 case "$build_alias" in
1056 NONE)
1057 case $nonopt in
1058 NONE) build_alias=$host_alias ;;
1059 *) build_alias=$nonopt ;;
1060 esac ;;
1061 esac
1062
1063 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1064 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1065 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1066 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1067 echo "$ac_t""$build" 1>&6
1068
1069 test "$host_alias" != "$target_alias" &&
1070 test "$program_prefix$program_suffix$program_transform_name" = \
1071 NONENONEs,x,x, &&
1072 program_prefix=${target_alias}-
1073
1074
1075
1076 WX_MAJOR_VERSION_NUMBER=2
1077 WX_MINOR_VERSION_NUMBER=3
1078 WX_RELEASE_NUMBER=3
1079
1080 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1081 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1082
1083 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1084
1085 WX_CURRENT=2
1086 WX_REVISION=0
1087 WX_AGE=0
1088
1089
1090
1091 USE_UNIX=1
1092 USE_WIN32=0
1093 USE_DOS=0
1094 USE_BEOS=0
1095 USE_MAC=0
1096
1097 USE_LINUX=
1098 USE_SGI=
1099 USE_HPUX=
1100 USE_SYSV=
1101 USE_SVR4=
1102 USE_AIX=
1103 USE_SUN=
1104 USE_SOLARIS=
1105 USE_SUNOS=
1106 USE_ALPHA=
1107 USE_OSF=
1108 USE_BSD=
1109 USE_DARWIN=
1110 USE_FREEBSD=
1111 USE_OPENBSD=
1112 USE_NETBSD=
1113 USE_VMS=
1114 USE_ULTRIX=
1115 USE_DATA_GENERAL=
1116
1117 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1118
1119 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1120
1121 DEFAULT_wxUSE_GTK=0
1122 DEFAULT_wxUSE_MAC=0
1123 DEFAULT_wxUSE_MGL=0
1124 DEFAULT_wxUSE_MICROWIN=0
1125 DEFAULT_wxUSE_MOTIF=0
1126 DEFAULT_wxUSE_MSW=0
1127 DEFAULT_wxUSE_PM=0
1128 DEFAULT_wxUSE_WINE=0
1129 DEFAULT_wxUSE_X11=0
1130
1131 DEFAULT_DEFAULT_wxUSE_GTK=0
1132 DEFAULT_DEFAULT_wxUSE_MAC=0
1133 DEFAULT_DEFAULT_wxUSE_MGL=0
1134 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1135 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1136 DEFAULT_DEFAULT_wxUSE_MSW=0
1137 DEFAULT_DEFAULT_wxUSE_PM=0
1138 DEFAULT_DEFAULT_wxUSE_WINE=0
1139 DEFAULT_DEFAULT_wxUSE_X11=0
1140
1141 PROGRAM_EXT=
1142 SO_SUFFIX=so
1143
1144 case "${host}" in
1145 *-hp-hpux* )
1146 USE_HPUX=1
1147 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1148 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1149 SO_SUFFIX=sl
1150 cat >> confdefs.h <<\EOF
1151 #define __HPUX__ 1
1152 EOF
1153
1154 ;;
1155 *-*-linux* )
1156 USE_LINUX=1
1157 cat >> confdefs.h <<\EOF
1158 #define __LINUX__ 1
1159 EOF
1160
1161 TMP=`uname -m`
1162 if test "x$TMP" = "xalpha"; then
1163 USE_ALPHA=1
1164 cat >> confdefs.h <<\EOF
1165 #define __ALPHA__ 1
1166 EOF
1167
1168 fi
1169 DEFAULT_DEFAULT_wxUSE_GTK=1
1170 ;;
1171 *-*-irix5* | *-*-irix6* )
1172 USE_SGI=1
1173 USE_SVR4=1
1174 cat >> confdefs.h <<\EOF
1175 #define __SGI__ 1
1176 EOF
1177
1178 cat >> confdefs.h <<\EOF
1179 #define __SVR4__ 1
1180 EOF
1181
1182 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1183 ;;
1184 *-*-solaris2* )
1185 USE_SUN=1
1186 USE_SOLARIS=1
1187 USE_SVR4=1
1188 cat >> confdefs.h <<\EOF
1189 #define __SUN__ 1
1190 EOF
1191
1192 cat >> confdefs.h <<\EOF
1193 #define __SOLARIS__ 1
1194 EOF
1195
1196 cat >> confdefs.h <<\EOF
1197 #define __SVR4__ 1
1198 EOF
1199
1200 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1201 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1202 ;;
1203 *-*-sunos4* )
1204 USE_SUN=1
1205 USE_SUNOS=1
1206 USE_BSD=1
1207 cat >> confdefs.h <<\EOF
1208 #define __SUN__ 1
1209 EOF
1210
1211 cat >> confdefs.h <<\EOF
1212 #define __SUNOS__ 1
1213 EOF
1214
1215 cat >> confdefs.h <<\EOF
1216 #define __BSD__ 1
1217 EOF
1218
1219 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1220 ;;
1221 *-*-freebsd*)
1222 USE_BSD=1
1223 USE_FREEBSD=1
1224 cat >> confdefs.h <<\EOF
1225 #define __FREEBSD__ 1
1226 EOF
1227
1228 cat >> confdefs.h <<\EOF
1229 #define __BSD__ 1
1230 EOF
1231
1232 DEFAULT_DEFAULT_wxUSE_GTK=1
1233 ;;
1234 *-*-openbsd*)
1235 USE_BSD=1
1236 USE_OPENBSD=1
1237 cat >> confdefs.h <<\EOF
1238 #define __FREEBSD__ 1
1239 EOF
1240
1241 cat >> confdefs.h <<\EOF
1242 #define __OPENBSD__ 1
1243 EOF
1244
1245 DEFAULT_DEFAULT_wxUSE_GTK=1
1246 ;;
1247 *-*-netbsd*)
1248 USE_BSD=1
1249 USE_NETBSD=1
1250 cat >> confdefs.h <<\EOF
1251 #define __FREEBSD__ 1
1252 EOF
1253
1254 cat >> confdefs.h <<\EOF
1255 #define __NETBSD__ 1
1256 EOF
1257
1258 DEFAULT_DEFAULT_wxUSE_GTK=1
1259 ;;
1260 *-*-osf* )
1261 USE_ALPHA=1
1262 USE_OSF=1
1263 cat >> confdefs.h <<\EOF
1264 #define __ALPHA__ 1
1265 EOF
1266
1267 cat >> confdefs.h <<\EOF
1268 #define __OSF__ 1
1269 EOF
1270
1271 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1272 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1273 ;;
1274 *-*-dgux5* )
1275 USE_ALPHA=1
1276 USE_SVR4=1
1277 cat >> confdefs.h <<\EOF
1278 #define __ALPHA__ 1
1279 EOF
1280
1281 cat >> confdefs.h <<\EOF
1282 #define __SVR4__ 1
1283 EOF
1284
1285 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1286 ;;
1287 *-*-sysv5* )
1288 USE_SYSV=1
1289 USE_SVR4=1
1290 cat >> confdefs.h <<\EOF
1291 #define __SYSV__ 1
1292 EOF
1293
1294 cat >> confdefs.h <<\EOF
1295 #define __SVR4__ 1
1296 EOF
1297
1298 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1299 ;;
1300 *-*-aix* )
1301 USE_AIX=1
1302 USE_SYSV=1
1303 USE_SVR4=1
1304 SO_SUFFIX=a
1305 cat >> confdefs.h <<\EOF
1306 #define __AIX__ 1
1307 EOF
1308
1309 cat >> confdefs.h <<\EOF
1310 #define __SYSV__ 1
1311 EOF
1312
1313 cat >> confdefs.h <<\EOF
1314 #define __SVR4__ 1
1315 EOF
1316
1317 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1318 ;;
1319
1320 *-*-cygwin* | *-*-mingw32* )
1321 SO_SUFFIX=dll
1322 PROGRAM_EXT=".exe"
1323 RESCOMP=windres
1324 DEFAULT_DEFAULT_wxUSE_MSW=1
1325 ;;
1326
1327 *-pc-msdosdjgpp )
1328 USE_UNIX=0
1329 USE_DOS=1
1330 cat >> confdefs.h <<\EOF
1331 #define __DOS__ 1
1332 EOF
1333
1334 PROGRAM_EXT=".exe"
1335 DEFAULT_DEFAULT_wxUSE_MGL=1
1336 LIBS="$LIBS -lstdc++"
1337 ;;
1338
1339 *-pc-os2_emx | *-pc-os2-emx )
1340 cat >> confdefs.h <<\EOF
1341 #define __EMX__ 1
1342 EOF
1343
1344 PROGRAM_EXT=".exe"
1345 DEFAULT_DEFAULT_wxUSE_PM=1
1346 LIBS="$LIBS -lstdcpp"
1347 ;;
1348
1349 powerpc-*-darwin* )
1350 USE_BSD=1
1351 USE_DARWIN=1
1352 SO_SUFFIX=dylib
1353 cat >> confdefs.h <<\EOF
1354 #define __BSD__ 1
1355 EOF
1356
1357 cat >> confdefs.h <<\EOF
1358 #define __DARWIN__ 1
1359 EOF
1360
1361 cat >> confdefs.h <<\EOF
1362 #define __POWERPC__ 1
1363 EOF
1364
1365 DEFAULT_DEFAULT_wxUSE_MAC=1
1366 ;;
1367
1368 *-*-beos* )
1369 USE_BEOS=1
1370 cat >> confdefs.h <<\EOF
1371 #define __BEOS__ 1
1372 EOF
1373
1374 ;;
1375
1376 *)
1377 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1378 esac
1379
1380
1381
1382
1383 wx_arg_cache_file="configarg.cache"
1384 echo "loading argument cache $wx_arg_cache_file"
1385 rm -f ${wx_arg_cache_file}.tmp
1386 touch ${wx_arg_cache_file}.tmp
1387 touch ${wx_arg_cache_file}
1388
1389
1390 DEBUG_CONFIGURE=0
1391 if test $DEBUG_CONFIGURE = 1; then
1392 DEFAULT_wxUSE_UNIVERSAL=no
1393
1394 DEFAULT_wxUSE_NANOX=no
1395
1396 DEFAULT_wxUSE_THREADS=yes
1397
1398 DEFAULT_wxUSE_SHARED=yes
1399 DEFAULT_wxUSE_SONAME=no
1400 DEFAULT_wxUSE_OPTIMISE=no
1401 DEFAULT_wxUSE_PROFILE=no
1402 DEFAULT_wxUSE_NO_DEPS=no
1403 DEFAULT_wxUSE_NO_RTTI=no
1404 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1405 DEFAULT_wxUSE_PERMISSIVE=no
1406 DEFAULT_wxUSE_DEBUG_FLAG=yes
1407 DEFAULT_wxUSE_DEBUG_INFO=yes
1408 DEFAULT_wxUSE_DEBUG_GDB=yes
1409 DEFAULT_wxUSE_MEM_TRACING=no
1410 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1411 DEFAULT_wxUSE_DMALLOC=no
1412 DEFAULT_wxUSE_PRECOMP=no
1413 DEFAULT_wxUSE_APPLE_IEEE=no
1414
1415 DEFAULT_wxUSE_LOG=yes
1416 DEFAULT_wxUSE_LOGWINDOW=no
1417 DEFAULT_wxUSE_LOGGUI=no
1418 DEFAULT_wxUSE_LOGDIALOG=no
1419
1420 DEFAULT_wxUSE_GUI=yes
1421 DEFAULT_wxUSE_CONTROLS=no
1422
1423 DEFAULT_wxUSE_REGEX=no
1424 DEFAULT_wxUSE_ZLIB=no
1425 DEFAULT_wxUSE_LIBPNG=no
1426 DEFAULT_wxUSE_LIBJPEG=no
1427 DEFAULT_wxUSE_LIBTIFF=no
1428 DEFAULT_wxUSE_ODBC=no
1429 DEFAULT_wxUSE_OPENGL=no
1430
1431 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1432 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1433 DEFAULT_wxUSE_STD_IOSTREAM=no
1434 DEFAULT_wxUSE_CMDLINE_PARSER=no
1435 DEFAULT_wxUSE_DATETIME=no
1436 DEFAULT_wxUSE_TIMEDATE=no
1437 DEFAULT_wxUSE_TIMER=no
1438 DEFAULT_wxUSE_STOPWATCH=no
1439 DEFAULT_wxUSE_FILE=no
1440 DEFAULT_wxUSE_FFILE=no
1441 DEFAULT_wxUSE_TEXTBUFFER=no
1442 DEFAULT_wxUSE_TEXTFILE=no
1443 DEFAULT_wxUSE_WAVE=no
1444 DEFAULT_wxUSE_INTL=no
1445 DEFAULT_wxUSE_CONFIG=no
1446 DEFAULT_wxUSE_FONTMAP=no
1447 DEFAULT_wxUSE_STREAMS=no
1448 DEFAULT_wxUSE_SOCKETS=no
1449 DEFAULT_wxUSE_DIALUP_MANAGER=no
1450 DEFAULT_wxUSE_JOYSTICK=no
1451 DEFAULT_wxUSE_DYNLIB_CLASS=no
1452 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1453 DEFAULT_wxUSE_LONGLONG=no
1454 DEFAULT_wxUSE_GEOMETRY=no
1455
1456 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1457 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1458 DEFAULT_wxUSE_POSTSCRIPT=no
1459
1460 DEFAULT_wxUSE_X_RESOURCES=no
1461 DEFAULT_wxUSE_CLIPBOARD=no
1462 DEFAULT_wxUSE_TOOLTIPS=no
1463 DEFAULT_wxUSE_DRAG_AND_DROP=no
1464 DEFAULT_wxUSE_DRAGIMAGE=no
1465 DEFAULT_wxUSE_SPLINES=no
1466
1467 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1468 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1469 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1470
1471 DEFAULT_wxUSE_PROLOGIO=no
1472 DEFAULT_wxUSE_RESOURCES=no
1473 DEFAULT_wxUSE_CONSTRAINTS=no
1474 DEFAULT_wxUSE_IPC=no
1475 DEFAULT_wxUSE_HELP=no
1476 DEFAULT_wxUSE_MS_HTML_HELP=no
1477 DEFAULT_wxUSE_WXHTML_HELP=no
1478 DEFAULT_wxUSE_TREELAYOUT=no
1479 DEFAULT_wxUSE_METAFILE=no
1480 DEFAULT_wxUSE_MIMETYPE=no
1481 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1482 DEFAULT_wxUSE_PROTOCOL=no
1483 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1484 DEFAULT_wxUSE_PROTOCOL_FTP=no
1485 DEFAULT_wxUSE_PROTOCOL_FILE=no
1486 DEFAULT_wxUSE_URL=no
1487
1488 DEFAULT_wxUSE_COMMONDLGS=no
1489 DEFAULT_wxUSE_CHOICEDLG=no
1490 DEFAULT_wxUSE_COLOURDLG=no
1491 DEFAULT_wxUSE_DIRDLG=no
1492 DEFAULT_wxUSE_FILEDLG=no
1493 DEFAULT_wxUSE_FINDREPLDLG=no
1494 DEFAULT_wxUSE_FONTDLG=no
1495 DEFAULT_wxUSE_MSGDLG=no
1496 DEFAULT_wxUSE_NUMBERDLG=no
1497 DEFAULT_wxUSE_TEXTDLG=no
1498 DEFAULT_wxUSE_SPLASH=no
1499 DEFAULT_wxUSE_STARTUP_TIPS=no
1500 DEFAULT_wxUSE_PROGRESSDLG=no
1501 DEFAULT_wxUSE_WIZARDDLG=no
1502
1503 DEFAULT_wxUSE_MENUS=no
1504 DEFAULT_wxUSE_MINIFRAME=no
1505 DEFAULT_wxUSE_HTML=no
1506 DEFAULT_wxUSE_FILESYSTEM=no
1507 DEFAULT_wxUSE_FS_INET=no
1508 DEFAULT_wxUSE_FS_ZIP=no
1509 DEFAULT_wxUSE_BUSYINFO=no
1510 DEFAULT_wxUSE_ZIPSTREAM=no
1511 DEFAULT_wxUSE_VALIDATORS=no
1512
1513 DEFAULT_wxUSE_ACCEL=no
1514 DEFAULT_wxUSE_BUTTON=no
1515 DEFAULT_wxUSE_BMPBUTTON=no
1516 DEFAULT_wxUSE_CALCTRL=no
1517 DEFAULT_wxUSE_CARET=no
1518 DEFAULT_wxUSE_CHECKBOX=no
1519 DEFAULT_wxUSE_CHECKLST=no
1520 DEFAULT_wxUSE_CHOICE=no
1521 DEFAULT_wxUSE_COMBOBOX=no
1522 DEFAULT_wxUSE_GAUGE=no
1523 DEFAULT_wxUSE_GRID=no
1524 DEFAULT_wxUSE_NEW_GRID=no
1525 DEFAULT_wxUSE_IMAGLIST=no
1526 DEFAULT_wxUSE_LISTBOX=no
1527 DEFAULT_wxUSE_LISTCTRL=no
1528 DEFAULT_wxUSE_NOTEBOOK=no
1529 DEFAULT_wxUSE_PROPSHEET=no
1530 DEFAULT_wxUSE_RADIOBOX=no
1531 DEFAULT_wxUSE_RADIOBTN=no
1532 DEFAULT_wxUSE_SASH=no
1533 DEFAULT_wxUSE_SCROLLBAR=no
1534 DEFAULT_wxUSE_SLIDER=no
1535 DEFAULT_wxUSE_SPINBTN=no
1536 DEFAULT_wxUSE_SPINCTRL=no
1537 DEFAULT_wxUSE_SPLITTER=no
1538 DEFAULT_wxUSE_STATBMP=no
1539 DEFAULT_wxUSE_STATBOX=no
1540 DEFAULT_wxUSE_STATLINE=no
1541 DEFAULT_wxUSE_STATTEXT=no
1542 DEFAULT_wxUSE_STATUSBAR=yes
1543 DEFAULT_wxUSE_TABDIALOG=no
1544 DEFAULT_wxUSE_TEXTCTRL=no
1545 DEFAULT_wxUSE_TOGGLEBTN=no
1546 DEFAULT_wxUSE_TOOLBAR=no
1547 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1548 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1549 DEFAULT_wxUSE_TREECTRL=no
1550 DEFAULT_wxUSE_POPUPWIN=no
1551 DEFAULT_wxUSE_TIPWINDOW=no
1552
1553 DEFAULT_wxUSE_UNICODE=no
1554 DEFAULT_wxUSE_UNICODE_MSLU=no
1555 DEFAULT_wxUSE_WCSRTOMBS=no
1556
1557 DEFAULT_wxUSE_PALETTE=no
1558 DEFAULT_wxUSE_IMAGE=no
1559 DEFAULT_wxUSE_GIF=no
1560 DEFAULT_wxUSE_PCX=no
1561 DEFAULT_wxUSE_PNM=no
1562 DEFAULT_wxUSE_IFF=no
1563 DEFAULT_wxUSE_XPM=no
1564 DEFAULT_wxUSE_ICO_CUR=no
1565 else
1566 DEFAULT_wxUSE_UNIVERSAL=no
1567
1568 DEFAULT_wxUSE_NANOX=no
1569
1570 DEFAULT_wxUSE_THREADS=yes
1571
1572 DEFAULT_wxUSE_SHARED=yes
1573 DEFAULT_wxUSE_SONAME=no
1574 DEFAULT_wxUSE_OPTIMISE=yes
1575 DEFAULT_wxUSE_PROFILE=no
1576 DEFAULT_wxUSE_NO_DEPS=no
1577 DEFAULT_wxUSE_NO_RTTI=no
1578 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1579 DEFAULT_wxUSE_PERMISSIVE=no
1580 DEFAULT_wxUSE_DEBUG_FLAG=no
1581 DEFAULT_wxUSE_DEBUG_INFO=no
1582 DEFAULT_wxUSE_DEBUG_GDB=no
1583 DEFAULT_wxUSE_MEM_TRACING=no
1584 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1585 DEFAULT_wxUSE_DMALLOC=no
1586 DEFAULT_wxUSE_PRECOMP=no
1587 DEFAULT_wxUSE_APPLE_IEEE=yes
1588
1589 DEFAULT_wxUSE_LOG=yes
1590 DEFAULT_wxUSE_LOGWINDOW=yes
1591 DEFAULT_wxUSE_LOGGUI=yes
1592 DEFAULT_wxUSE_LOGDIALOG=yes
1593
1594 DEFAULT_wxUSE_GUI=yes
1595
1596 DEFAULT_wxUSE_REGEX=yes
1597 DEFAULT_wxUSE_ZLIB=yes
1598 DEFAULT_wxUSE_LIBPNG=yes
1599 DEFAULT_wxUSE_LIBJPEG=yes
1600 DEFAULT_wxUSE_LIBTIFF=yes
1601 DEFAULT_wxUSE_ODBC=no
1602 DEFAULT_wxUSE_OPENGL=no
1603
1604 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1605 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1606 DEFAULT_wxUSE_STD_IOSTREAM=no
1607 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1608 DEFAULT_wxUSE_DATETIME=yes
1609 DEFAULT_wxUSE_TIMEDATE=no
1610 DEFAULT_wxUSE_TIMER=yes
1611 DEFAULT_wxUSE_STOPWATCH=yes
1612 DEFAULT_wxUSE_FILE=yes
1613 DEFAULT_wxUSE_FFILE=yes
1614 DEFAULT_wxUSE_TEXTBUFFER=yes
1615 DEFAULT_wxUSE_TEXTFILE=yes
1616 DEFAULT_wxUSE_WAVE=no
1617 DEFAULT_wxUSE_INTL=yes
1618 DEFAULT_wxUSE_CONFIG=yes
1619 DEFAULT_wxUSE_FONTMAP=yes
1620 DEFAULT_wxUSE_STREAMS=yes
1621 DEFAULT_wxUSE_SOCKETS=yes
1622 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1623 DEFAULT_wxUSE_JOYSTICK=yes
1624 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1625 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1626 DEFAULT_wxUSE_LONGLONG=yes
1627 DEFAULT_wxUSE_GEOMETRY=yes
1628
1629 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1630 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1631 DEFAULT_wxUSE_POSTSCRIPT=yes
1632
1633 DEFAULT_wxUSE_X_RESOURCES=no
1634 DEFAULT_wxUSE_CLIPBOARD=yes
1635 DEFAULT_wxUSE_TOOLTIPS=yes
1636 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1637 DEFAULT_wxUSE_DRAGIMAGE=yes
1638 DEFAULT_wxUSE_SPLINES=yes
1639
1640 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1641 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1642 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1643
1644 DEFAULT_wxUSE_PROLOGIO=yes
1645 DEFAULT_wxUSE_RESOURCES=yes
1646 DEFAULT_wxUSE_CONSTRAINTS=yes
1647 DEFAULT_wxUSE_IPC=yes
1648 DEFAULT_wxUSE_HELP=yes
1649 DEFAULT_wxUSE_MS_HTML_HELP=yes
1650 DEFAULT_wxUSE_WXHTML_HELP=yes
1651 DEFAULT_wxUSE_TREELAYOUT=yes
1652 DEFAULT_wxUSE_METAFILE=yes
1653 DEFAULT_wxUSE_MIMETYPE=yes
1654 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1655 DEFAULT_wxUSE_PROTOCOL=yes
1656 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1657 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1658 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1659 DEFAULT_wxUSE_URL=yes
1660
1661 DEFAULT_wxUSE_COMMONDLGS=yes
1662 DEFAULT_wxUSE_CHOICEDLG=yes
1663 DEFAULT_wxUSE_COLOURDLG=yes
1664 DEFAULT_wxUSE_DIRDLG=yes
1665 DEFAULT_wxUSE_FILEDLG=yes
1666 DEFAULT_wxUSE_FINDREPLDLG=yes
1667 DEFAULT_wxUSE_FONTDLG=yes
1668 DEFAULT_wxUSE_MSGDLG=yes
1669 DEFAULT_wxUSE_NUMBERDLG=yes
1670 DEFAULT_wxUSE_TEXTDLG=yes
1671 DEFAULT_wxUSE_SPLASH=yes
1672 DEFAULT_wxUSE_STARTUP_TIPS=yes
1673 DEFAULT_wxUSE_PROGRESSDLG=yes
1674 DEFAULT_wxUSE_WIZARDDLG=yes
1675
1676 DEFAULT_wxUSE_MENUS=yes
1677 DEFAULT_wxUSE_MINIFRAME=yes
1678 DEFAULT_wxUSE_HTML=yes
1679 DEFAULT_wxUSE_FILESYSTEM=yes
1680 DEFAULT_wxUSE_FS_INET=yes
1681 DEFAULT_wxUSE_FS_ZIP=yes
1682 DEFAULT_wxUSE_BUSYINFO=yes
1683 DEFAULT_wxUSE_ZIPSTREAM=yes
1684 DEFAULT_wxUSE_VALIDATORS=yes
1685
1686 DEFAULT_wxUSE_ACCEL=yes
1687 DEFAULT_wxUSE_BUTTON=yes
1688 DEFAULT_wxUSE_BMPBUTTON=yes
1689 DEFAULT_wxUSE_CALCTRL=yes
1690 DEFAULT_wxUSE_CARET=yes
1691 DEFAULT_wxUSE_CHECKBOX=yes
1692 DEFAULT_wxUSE_CHECKLST=yes
1693 DEFAULT_wxUSE_CHOICE=yes
1694 DEFAULT_wxUSE_COMBOBOX=yes
1695 DEFAULT_wxUSE_GAUGE=yes
1696 DEFAULT_wxUSE_GRID=yes
1697 DEFAULT_wxUSE_NEW_GRID=yes
1698 DEFAULT_wxUSE_IMAGLIST=yes
1699 DEFAULT_wxUSE_LISTBOX=yes
1700 DEFAULT_wxUSE_LISTCTRL=yes
1701 DEFAULT_wxUSE_NOTEBOOK=yes
1702 DEFAULT_wxUSE_PROPSHEET=yes
1703 DEFAULT_wxUSE_RADIOBOX=yes
1704 DEFAULT_wxUSE_RADIOBTN=yes
1705 DEFAULT_wxUSE_SASH=yes
1706 DEFAULT_wxUSE_SCROLLBAR=yes
1707 DEFAULT_wxUSE_SLIDER=yes
1708 DEFAULT_wxUSE_SPINBTN=yes
1709 DEFAULT_wxUSE_SPINCTRL=yes
1710 DEFAULT_wxUSE_SPLITTER=yes
1711 DEFAULT_wxUSE_STATBMP=yes
1712 DEFAULT_wxUSE_STATBOX=yes
1713 DEFAULT_wxUSE_STATLINE=yes
1714 DEFAULT_wxUSE_STATTEXT=yes
1715 DEFAULT_wxUSE_STATUSBAR=yes
1716 DEFAULT_wxUSE_TABDIALOG=no
1717 DEFAULT_wxUSE_TEXTCTRL=yes
1718 DEFAULT_wxUSE_TOGGLEBTN=yes
1719 DEFAULT_wxUSE_TOOLBAR=yes
1720 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1721 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1722 DEFAULT_wxUSE_TREECTRL=yes
1723 DEFAULT_wxUSE_POPUPWIN=yes
1724 DEFAULT_wxUSE_TIPWINDOW=yes
1725
1726 DEFAULT_wxUSE_UNICODE=no
1727 DEFAULT_wxUSE_UNICODE_MSLU=yes
1728 DEFAULT_wxUSE_WCSRTOMBS=no
1729
1730 DEFAULT_wxUSE_PALETTE=yes
1731 DEFAULT_wxUSE_IMAGE=yes
1732 DEFAULT_wxUSE_GIF=yes
1733 DEFAULT_wxUSE_PCX=yes
1734 DEFAULT_wxUSE_IFF=no
1735 DEFAULT_wxUSE_PNM=yes
1736 DEFAULT_wxUSE_XPM=yes
1737 DEFAULT_wxUSE_ICO_CUR=yes
1738 fi
1739
1740
1741
1742 for toolkit in `echo $ALL_TOOLKITS`; do
1743 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1744 if test "x$LINE" != x ; then
1745 has_toolkit_in_cache=1
1746 eval "DEFAULT_$LINE"
1747 eval "CACHE_$toolkit=1"
1748 fi
1749 done
1750
1751
1752
1753 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1754 echo "configure:1755: checking for --enable-gui" >&5
1755 no_cache=0
1756 # Check whether --enable-gui or --disable-gui was given.
1757 if test "${enable_gui+set}" = set; then
1758 enableval="$enable_gui"
1759
1760 if test "$enableval" = yes; then
1761 ac_cv_use_gui='wxUSE_GUI=yes'
1762 else
1763 ac_cv_use_gui='wxUSE_GUI=no'
1764 fi
1765
1766 else
1767
1768 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1769 if test "x$LINE" != x ; then
1770 eval "DEFAULT_$LINE"
1771 else
1772 no_cache=1
1773 fi
1774
1775 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1776
1777 fi
1778
1779
1780 eval "$ac_cv_use_gui"
1781 if test "$no_cache" != 1; then
1782 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1783 fi
1784
1785 if test "$wxUSE_GUI" = yes; then
1786 echo "$ac_t""yes" 1>&6
1787 else
1788 echo "$ac_t""no" 1>&6
1789 fi
1790
1791
1792 if test "$wxUSE_GUI" = "yes"; then
1793
1794
1795 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1796 echo "configure:1797: checking for --enable-universal" >&5
1797 no_cache=0
1798 # Check whether --enable-universal or --disable-universal was given.
1799 if test "${enable_universal+set}" = set; then
1800 enableval="$enable_universal"
1801
1802 if test "$enableval" = yes; then
1803 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1804 else
1805 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1806 fi
1807
1808 else
1809
1810 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1811 if test "x$LINE" != x ; then
1812 eval "DEFAULT_$LINE"
1813 else
1814 no_cache=1
1815 fi
1816
1817 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1818
1819 fi
1820
1821
1822 eval "$ac_cv_use_universal"
1823 if test "$no_cache" != 1; then
1824 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1825 fi
1826
1827 if test "$wxUSE_UNIVERSAL" = yes; then
1828 echo "$ac_t""yes" 1>&6
1829 else
1830 echo "$ac_t""no" 1>&6
1831 fi
1832
1833 # Check whether --with-gtk or --without-gtk was given.
1834 if test "${with_gtk+set}" = set; then
1835 withval="$with_gtk"
1836 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1837 fi
1838
1839 # Check whether --with-motif or --without-motif was given.
1840 if test "${with_motif+set}" = set; then
1841 withval="$with_motif"
1842 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1843 fi
1844
1845 # Check whether --with-mac or --without-mac was given.
1846 if test "${with_mac+set}" = set; then
1847 withval="$with_mac"
1848 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1849 fi
1850
1851 # Check whether --with-wine or --without-wine was given.
1852 if test "${with_wine+set}" = set; then
1853 withval="$with_wine"
1854 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1855 fi
1856
1857 # Check whether --with-msw or --without-msw was given.
1858 if test "${with_msw+set}" = set; then
1859 withval="$with_msw"
1860 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1861 fi
1862
1863 # Check whether --with-pm or --without-pm was given.
1864 if test "${with_pm+set}" = set; then
1865 withval="$with_pm"
1866 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1867 fi
1868
1869 # Check whether --with-mgl or --without-mgl was given.
1870 if test "${with_mgl+set}" = set; then
1871 withval="$with_mgl"
1872 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1873 fi
1874
1875 # Check whether --with-microwin or --without-microwin was given.
1876 if test "${with_microwin+set}" = set; then
1877 withval="$with_microwin"
1878 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1879 fi
1880
1881 # Check whether --with-x11 or --without-x11 was given.
1882 if test "${with_x11+set}" = set; then
1883 withval="$with_x11"
1884 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1885 fi
1886
1887
1888 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
1889 echo "configure:1890: checking for --enable-nanox" >&5
1890 no_cache=0
1891 # Check whether --enable-nanox or --disable-nanox was given.
1892 if test "${enable_nanox+set}" = set; then
1893 enableval="$enable_nanox"
1894
1895 if test "$enableval" = yes; then
1896 ac_cv_use_nanox='wxUSE_NANOX=yes'
1897 else
1898 ac_cv_use_nanox='wxUSE_NANOX=no'
1899 fi
1900
1901 else
1902
1903 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1904 if test "x$LINE" != x ; then
1905 eval "DEFAULT_$LINE"
1906 else
1907 no_cache=1
1908 fi
1909
1910 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1911
1912 fi
1913
1914
1915 eval "$ac_cv_use_nanox"
1916 if test "$no_cache" != 1; then
1917 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1918 fi
1919
1920 if test "$wxUSE_NANOX" = yes; then
1921 echo "$ac_t""yes" 1>&6
1922 else
1923 echo "$ac_t""no" 1>&6
1924 fi
1925
1926
1927 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1928 if test "${enable_gtk2+set}" = set; then
1929 enableval="$enable_gtk2"
1930 wxUSE_GTK2="yes"
1931 else
1932 wxUSE_GTK2="no"
1933 fi
1934
1935
1936
1937 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1938 echo "configure:1939: checking for --with-libpng" >&5
1939 no_cache=0
1940 # Check whether --with-libpng or --without-libpng was given.
1941 if test "${with_libpng+set}" = set; then
1942 withval="$with_libpng"
1943
1944 if test "$withval" = yes; then
1945 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1946 elif test "$withval" = no; then
1947 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1948 elif test "$withval" = sys; then
1949 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1950 elif test "$withval" = builtin; then
1951 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1952 else
1953 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1954 fi
1955
1956 else
1957
1958 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1959 if test "x$LINE" != x ; then
1960 eval "DEFAULT_$LINE"
1961 else
1962 no_cache=1
1963 fi
1964
1965 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1966
1967 fi
1968
1969
1970 eval "$ac_cv_use_libpng"
1971 if test "$no_cache" != 1; then
1972 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1973 fi
1974
1975 if test "$wxUSE_LIBPNG" = yes; then
1976 echo "$ac_t""yes" 1>&6
1977 elif test "$wxUSE_LIBPNG" = no; then
1978 echo "$ac_t""no" 1>&6
1979 elif test "$wxUSE_LIBPNG" = sys; then
1980 echo "$ac_t""system version" 1>&6
1981 elif test "$wxUSE_LIBPNG" = builtin; then
1982 echo "$ac_t""builtin version" 1>&6
1983 else
1984 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1985 fi
1986
1987
1988 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1989 echo "configure:1990: checking for --with-libjpeg" >&5
1990 no_cache=0
1991 # Check whether --with-libjpeg or --without-libjpeg was given.
1992 if test "${with_libjpeg+set}" = set; then
1993 withval="$with_libjpeg"
1994
1995 if test "$withval" = yes; then
1996 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1997 elif test "$withval" = no; then
1998 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1999 elif test "$withval" = sys; then
2000 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2001 elif test "$withval" = builtin; then
2002 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2003 else
2004 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2005 fi
2006
2007 else
2008
2009 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2010 if test "x$LINE" != x ; then
2011 eval "DEFAULT_$LINE"
2012 else
2013 no_cache=1
2014 fi
2015
2016 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2017
2018 fi
2019
2020
2021 eval "$ac_cv_use_libjpeg"
2022 if test "$no_cache" != 1; then
2023 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2024 fi
2025
2026 if test "$wxUSE_LIBJPEG" = yes; then
2027 echo "$ac_t""yes" 1>&6
2028 elif test "$wxUSE_LIBJPEG" = no; then
2029 echo "$ac_t""no" 1>&6
2030 elif test "$wxUSE_LIBJPEG" = sys; then
2031 echo "$ac_t""system version" 1>&6
2032 elif test "$wxUSE_LIBJPEG" = builtin; then
2033 echo "$ac_t""builtin version" 1>&6
2034 else
2035 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2036 fi
2037
2038
2039 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2040 echo "configure:2041: checking for --with-libtiff" >&5
2041 no_cache=0
2042 # Check whether --with-libtiff or --without-libtiff was given.
2043 if test "${with_libtiff+set}" = set; then
2044 withval="$with_libtiff"
2045
2046 if test "$withval" = yes; then
2047 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2048 elif test "$withval" = no; then
2049 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2050 elif test "$withval" = sys; then
2051 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2052 elif test "$withval" = builtin; then
2053 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2054 else
2055 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2056 fi
2057
2058 else
2059
2060 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2061 if test "x$LINE" != x ; then
2062 eval "DEFAULT_$LINE"
2063 else
2064 no_cache=1
2065 fi
2066
2067 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2068
2069 fi
2070
2071
2072 eval "$ac_cv_use_libtiff"
2073 if test "$no_cache" != 1; then
2074 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2075 fi
2076
2077 if test "$wxUSE_LIBTIFF" = yes; then
2078 echo "$ac_t""yes" 1>&6
2079 elif test "$wxUSE_LIBTIFF" = no; then
2080 echo "$ac_t""no" 1>&6
2081 elif test "$wxUSE_LIBTIFF" = sys; then
2082 echo "$ac_t""system version" 1>&6
2083 elif test "$wxUSE_LIBTIFF" = builtin; then
2084 echo "$ac_t""builtin version" 1>&6
2085 else
2086 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2087 fi
2088
2089
2090 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2091 echo "configure:2092: checking for --with-opengl" >&5
2092 no_cache=0
2093 # Check whether --with-opengl or --without-opengl was given.
2094 if test "${with_opengl+set}" = set; then
2095 withval="$with_opengl"
2096
2097 if test "$withval" = yes; then
2098 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2099 else
2100 ac_cv_use_opengl='wxUSE_OPENGL=no'
2101 fi
2102
2103 else
2104
2105 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2106 if test "x$LINE" != x ; then
2107 eval "DEFAULT_$LINE"
2108 else
2109 no_cache=1
2110 fi
2111
2112 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2113
2114 fi
2115
2116
2117 eval "$ac_cv_use_opengl"
2118 if test "$no_cache" != 1; then
2119 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2120 fi
2121
2122 if test "$wxUSE_OPENGL" = yes; then
2123 echo "$ac_t""yes" 1>&6
2124 else
2125 echo "$ac_t""no" 1>&6
2126 fi
2127
2128
2129 fi
2130
2131
2132 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2133 echo "configure:2134: checking for --with-dmalloc" >&5
2134 no_cache=0
2135 # Check whether --with-dmalloc or --without-dmalloc was given.
2136 if test "${with_dmalloc+set}" = set; then
2137 withval="$with_dmalloc"
2138
2139 if test "$withval" = yes; then
2140 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2141 else
2142 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2143 fi
2144
2145 else
2146
2147 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2148 if test "x$LINE" != x ; then
2149 eval "DEFAULT_$LINE"
2150 else
2151 no_cache=1
2152 fi
2153
2154 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2155
2156 fi
2157
2158
2159 eval "$ac_cv_use_dmalloc"
2160 if test "$no_cache" != 1; then
2161 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2162 fi
2163
2164 if test "$wxUSE_DMALLOC" = yes; then
2165 echo "$ac_t""yes" 1>&6
2166 else
2167 echo "$ac_t""no" 1>&6
2168 fi
2169
2170
2171 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2172 echo "configure:2173: checking for --with-regex" >&5
2173 no_cache=0
2174 # Check whether --with-regex or --without-regex was given.
2175 if test "${with_regex+set}" = set; then
2176 withval="$with_regex"
2177
2178 if test "$withval" = yes; then
2179 ac_cv_use_regex='wxUSE_REGEX=yes'
2180 elif test "$withval" = no; then
2181 ac_cv_use_regex='wxUSE_REGEX=no'
2182 elif test "$withval" = sys; then
2183 ac_cv_use_regex='wxUSE_REGEX=sys'
2184 elif test "$withval" = builtin; then
2185 ac_cv_use_regex='wxUSE_REGEX=builtin'
2186 else
2187 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2188 fi
2189
2190 else
2191
2192 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2193 if test "x$LINE" != x ; then
2194 eval "DEFAULT_$LINE"
2195 else
2196 no_cache=1
2197 fi
2198
2199 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2200
2201 fi
2202
2203
2204 eval "$ac_cv_use_regex"
2205 if test "$no_cache" != 1; then
2206 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2207 fi
2208
2209 if test "$wxUSE_REGEX" = yes; then
2210 echo "$ac_t""yes" 1>&6
2211 elif test "$wxUSE_REGEX" = no; then
2212 echo "$ac_t""no" 1>&6
2213 elif test "$wxUSE_REGEX" = sys; then
2214 echo "$ac_t""system version" 1>&6
2215 elif test "$wxUSE_REGEX" = builtin; then
2216 echo "$ac_t""builtin version" 1>&6
2217 else
2218 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2219 fi
2220
2221
2222 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2223 echo "configure:2224: checking for --with-zlib" >&5
2224 no_cache=0
2225 # Check whether --with-zlib or --without-zlib was given.
2226 if test "${with_zlib+set}" = set; then
2227 withval="$with_zlib"
2228
2229 if test "$withval" = yes; then
2230 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2231 elif test "$withval" = no; then
2232 ac_cv_use_zlib='wxUSE_ZLIB=no'
2233 elif test "$withval" = sys; then
2234 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2235 elif test "$withval" = builtin; then
2236 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2237 else
2238 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2239 fi
2240
2241 else
2242
2243 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2244 if test "x$LINE" != x ; then
2245 eval "DEFAULT_$LINE"
2246 else
2247 no_cache=1
2248 fi
2249
2250 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2251
2252 fi
2253
2254
2255 eval "$ac_cv_use_zlib"
2256 if test "$no_cache" != 1; then
2257 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2258 fi
2259
2260 if test "$wxUSE_ZLIB" = yes; then
2261 echo "$ac_t""yes" 1>&6
2262 elif test "$wxUSE_ZLIB" = no; then
2263 echo "$ac_t""no" 1>&6
2264 elif test "$wxUSE_ZLIB" = sys; then
2265 echo "$ac_t""system version" 1>&6
2266 elif test "$wxUSE_ZLIB" = builtin; then
2267 echo "$ac_t""builtin version" 1>&6
2268 else
2269 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2270 fi
2271
2272
2273 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2274 echo "configure:2275: checking for --with-odbc" >&5
2275 no_cache=0
2276 # Check whether --with-odbc or --without-odbc was given.
2277 if test "${with_odbc+set}" = set; then
2278 withval="$with_odbc"
2279
2280 if test "$withval" = yes; then
2281 ac_cv_use_odbc='wxUSE_ODBC=yes'
2282 else
2283 ac_cv_use_odbc='wxUSE_ODBC=no'
2284 fi
2285
2286 else
2287
2288 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2289 if test "x$LINE" != x ; then
2290 eval "DEFAULT_$LINE"
2291 else
2292 no_cache=1
2293 fi
2294
2295 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2296
2297 fi
2298
2299
2300 eval "$ac_cv_use_odbc"
2301 if test "$no_cache" != 1; then
2302 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2303 fi
2304
2305 if test "$wxUSE_ODBC" = yes; then
2306 echo "$ac_t""yes" 1>&6
2307 else
2308 echo "$ac_t""no" 1>&6
2309 fi
2310
2311
2312
2313
2314 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2315 echo "configure:2316: checking for --enable-shared" >&5
2316 no_cache=0
2317 # Check whether --enable-shared or --disable-shared was given.
2318 if test "${enable_shared+set}" = set; then
2319 enableval="$enable_shared"
2320
2321 if test "$enableval" = yes; then
2322 ac_cv_use_shared='wxUSE_SHARED=yes'
2323 else
2324 ac_cv_use_shared='wxUSE_SHARED=no'
2325 fi
2326
2327 else
2328
2329 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2330 if test "x$LINE" != x ; then
2331 eval "DEFAULT_$LINE"
2332 else
2333 no_cache=1
2334 fi
2335
2336 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2337
2338 fi
2339
2340
2341 eval "$ac_cv_use_shared"
2342 if test "$no_cache" != 1; then
2343 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2344 fi
2345
2346 if test "$wxUSE_SHARED" = yes; then
2347 echo "$ac_t""yes" 1>&6
2348 else
2349 echo "$ac_t""no" 1>&6
2350 fi
2351
2352
2353 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2354 echo "configure:2355: checking for --enable-soname" >&5
2355 no_cache=0
2356 # Check whether --enable-soname or --disable-soname was given.
2357 if test "${enable_soname+set}" = set; then
2358 enableval="$enable_soname"
2359
2360 if test "$enableval" = yes; then
2361 ac_cv_use_soname='wxUSE_SONAME=yes'
2362 else
2363 ac_cv_use_soname='wxUSE_SONAME=no'
2364 fi
2365
2366 else
2367
2368 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2369 if test "x$LINE" != x ; then
2370 eval "DEFAULT_$LINE"
2371 else
2372 no_cache=1
2373 fi
2374
2375 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2376
2377 fi
2378
2379
2380 eval "$ac_cv_use_soname"
2381 if test "$no_cache" != 1; then
2382 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2383 fi
2384
2385 if test "$wxUSE_SONAME" = yes; then
2386 echo "$ac_t""yes" 1>&6
2387 else
2388 echo "$ac_t""no" 1>&6
2389 fi
2390
2391
2392 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2393 echo "configure:2394: checking for --enable-optimise" >&5
2394 no_cache=0
2395 # Check whether --enable-optimise or --disable-optimise was given.
2396 if test "${enable_optimise+set}" = set; then
2397 enableval="$enable_optimise"
2398
2399 if test "$enableval" = yes; then
2400 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2401 else
2402 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2403 fi
2404
2405 else
2406
2407 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2408 if test "x$LINE" != x ; then
2409 eval "DEFAULT_$LINE"
2410 else
2411 no_cache=1
2412 fi
2413
2414 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2415
2416 fi
2417
2418
2419 eval "$ac_cv_use_optimise"
2420 if test "$no_cache" != 1; then
2421 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2422 fi
2423
2424 if test "$wxUSE_OPTIMISE" = yes; then
2425 echo "$ac_t""yes" 1>&6
2426 else
2427 echo "$ac_t""no" 1>&6
2428 fi
2429
2430
2431 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2432 echo "configure:2433: checking for --enable-debug" >&5
2433 no_cache=0
2434 # Check whether --enable-debug or --disable-debug was given.
2435 if test "${enable_debug+set}" = set; then
2436 enableval="$enable_debug"
2437
2438 if test "$enableval" = yes; then
2439 ac_cv_use_debug='wxUSE_DEBUG=yes'
2440 else
2441 ac_cv_use_debug='wxUSE_DEBUG=no'
2442 fi
2443
2444 else
2445
2446 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2447 if test "x$LINE" != x ; then
2448 eval "DEFAULT_$LINE"
2449 else
2450 no_cache=1
2451 fi
2452
2453 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2454
2455 fi
2456
2457
2458 eval "$ac_cv_use_debug"
2459 if test "$no_cache" != 1; then
2460 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2461 fi
2462
2463 if test "$wxUSE_DEBUG" = yes; then
2464 echo "$ac_t""yes" 1>&6
2465 else
2466 echo "$ac_t""no" 1>&6
2467 fi
2468
2469
2470
2471 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2472 echo "configure:2473: checking for --enable-precomp" >&5
2473 no_cache=0
2474 # Check whether --enable-precomp or --disable-precomp was given.
2475 if test "${enable_precomp+set}" = set; then
2476 enableval="$enable_precomp"
2477
2478 if test "$enableval" = yes; then
2479 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2480 else
2481 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2482 fi
2483
2484 else
2485
2486 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2487 if test "x$LINE" != x ; then
2488 eval "DEFAULT_$LINE"
2489 else
2490 no_cache=1
2491 fi
2492
2493 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2494
2495 fi
2496
2497
2498 eval "$ac_cv_use_precomp"
2499 if test "$no_cache" != 1; then
2500 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2501 fi
2502
2503 if test "$wxUSE_PRECOMP" = yes; then
2504 echo "$ac_t""yes" 1>&6
2505 else
2506 echo "$ac_t""no" 1>&6
2507 fi
2508
2509
2510 if test "$wxUSE_DEBUG" = "yes"; then
2511 DEFAULT_wxUSE_DEBUG_FLAG=yes
2512 DEFAULT_wxUSE_DEBUG_INFO=yes
2513 elif test "$wxUSE_DEBUG" = "no"; then
2514 DEFAULT_wxUSE_DEBUG_FLAG=no
2515 DEFAULT_wxUSE_DEBUG_INFO=no
2516 fi
2517
2518
2519 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2520 echo "configure:2521: checking for --enable-debug_flag" >&5
2521 no_cache=0
2522 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2523 if test "${enable_debug_flag+set}" = set; then
2524 enableval="$enable_debug_flag"
2525
2526 if test "$enableval" = yes; then
2527 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2528 else
2529 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2530 fi
2531
2532 else
2533
2534 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2535 if test "x$LINE" != x ; then
2536 eval "DEFAULT_$LINE"
2537 else
2538 no_cache=1
2539 fi
2540
2541 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2542
2543 fi
2544
2545
2546 eval "$ac_cv_use_debug_flag"
2547 if test "$no_cache" != 1; then
2548 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2549 fi
2550
2551 if test "$wxUSE_DEBUG_FLAG" = yes; then
2552 echo "$ac_t""yes" 1>&6
2553 else
2554 echo "$ac_t""no" 1>&6
2555 fi
2556
2557
2558 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2559 echo "configure:2560: checking for --enable-debug_info" >&5
2560 no_cache=0
2561 # Check whether --enable-debug_info or --disable-debug_info was given.
2562 if test "${enable_debug_info+set}" = set; then
2563 enableval="$enable_debug_info"
2564
2565 if test "$enableval" = yes; then
2566 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2567 else
2568 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2569 fi
2570
2571 else
2572
2573 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2574 if test "x$LINE" != x ; then
2575 eval "DEFAULT_$LINE"
2576 else
2577 no_cache=1
2578 fi
2579
2580 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2581
2582 fi
2583
2584
2585 eval "$ac_cv_use_debug_info"
2586 if test "$no_cache" != 1; then
2587 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2588 fi
2589
2590 if test "$wxUSE_DEBUG_INFO" = yes; then
2591 echo "$ac_t""yes" 1>&6
2592 else
2593 echo "$ac_t""no" 1>&6
2594 fi
2595
2596
2597 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2598 echo "configure:2599: checking for --enable-debug_gdb" >&5
2599 no_cache=0
2600 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2601 if test "${enable_debug_gdb+set}" = set; then
2602 enableval="$enable_debug_gdb"
2603
2604 if test "$enableval" = yes; then
2605 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2606 else
2607 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2608 fi
2609
2610 else
2611
2612 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2613 if test "x$LINE" != x ; then
2614 eval "DEFAULT_$LINE"
2615 else
2616 no_cache=1
2617 fi
2618
2619 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2620
2621 fi
2622
2623
2624 eval "$ac_cv_use_debug_gdb"
2625 if test "$no_cache" != 1; then
2626 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2627 fi
2628
2629 if test "$wxUSE_DEBUG_GDB" = yes; then
2630 echo "$ac_t""yes" 1>&6
2631 else
2632 echo "$ac_t""no" 1>&6
2633 fi
2634
2635
2636 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2637 echo "configure:2638: checking for --enable-debug_cntxt" >&5
2638 no_cache=0
2639 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2640 if test "${enable_debug_cntxt+set}" = set; then
2641 enableval="$enable_debug_cntxt"
2642
2643 if test "$enableval" = yes; then
2644 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2645 else
2646 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2647 fi
2648
2649 else
2650
2651 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2652 if test "x$LINE" != x ; then
2653 eval "DEFAULT_$LINE"
2654 else
2655 no_cache=1
2656 fi
2657
2658 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2659
2660 fi
2661
2662
2663 eval "$ac_cv_use_debug_cntxt"
2664 if test "$no_cache" != 1; then
2665 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2666 fi
2667
2668 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2669 echo "$ac_t""yes" 1>&6
2670 else
2671 echo "$ac_t""no" 1>&6
2672 fi
2673
2674
2675 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2676 echo "configure:2677: checking for --enable-mem_tracing" >&5
2677 no_cache=0
2678 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2679 if test "${enable_mem_tracing+set}" = set; then
2680 enableval="$enable_mem_tracing"
2681
2682 if test "$enableval" = yes; then
2683 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2684 else
2685 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2686 fi
2687
2688 else
2689
2690 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2691 if test "x$LINE" != x ; then
2692 eval "DEFAULT_$LINE"
2693 else
2694 no_cache=1
2695 fi
2696
2697 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2698
2699 fi
2700
2701
2702 eval "$ac_cv_use_mem_tracing"
2703 if test "$no_cache" != 1; then
2704 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2705 fi
2706
2707 if test "$wxUSE_MEM_TRACING" = yes; then
2708 echo "$ac_t""yes" 1>&6
2709 else
2710 echo "$ac_t""no" 1>&6
2711 fi
2712
2713
2714 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2715 echo "configure:2716: checking for --enable-profile" >&5
2716 no_cache=0
2717 # Check whether --enable-profile or --disable-profile was given.
2718 if test "${enable_profile+set}" = set; then
2719 enableval="$enable_profile"
2720
2721 if test "$enableval" = yes; then
2722 ac_cv_use_profile='wxUSE_PROFILE=yes'
2723 else
2724 ac_cv_use_profile='wxUSE_PROFILE=no'
2725 fi
2726
2727 else
2728
2729 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2730 if test "x$LINE" != x ; then
2731 eval "DEFAULT_$LINE"
2732 else
2733 no_cache=1
2734 fi
2735
2736 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2737
2738 fi
2739
2740
2741 eval "$ac_cv_use_profile"
2742 if test "$no_cache" != 1; then
2743 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2744 fi
2745
2746 if test "$wxUSE_PROFILE" = yes; then
2747 echo "$ac_t""yes" 1>&6
2748 else
2749 echo "$ac_t""no" 1>&6
2750 fi
2751
2752
2753 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2754 echo "configure:2755: checking for --enable-no_rtti" >&5
2755 no_cache=0
2756 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2757 if test "${enable_no_rtti+set}" = set; then
2758 enableval="$enable_no_rtti"
2759
2760 if test "$enableval" = yes; then
2761 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2762 else
2763 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2764 fi
2765
2766 else
2767
2768 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2769 if test "x$LINE" != x ; then
2770 eval "DEFAULT_$LINE"
2771 else
2772 no_cache=1
2773 fi
2774
2775 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2776
2777 fi
2778
2779
2780 eval "$ac_cv_use_no_rtti"
2781 if test "$no_cache" != 1; then
2782 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2783 fi
2784
2785 if test "$wxUSE_NO_RTTI" = yes; then
2786 echo "$ac_t""yes" 1>&6
2787 else
2788 echo "$ac_t""no" 1>&6
2789 fi
2790
2791
2792 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2793 echo "configure:2794: checking for --enable-no_exceptions" >&5
2794 no_cache=0
2795 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2796 if test "${enable_no_exceptions+set}" = set; then
2797 enableval="$enable_no_exceptions"
2798
2799 if test "$enableval" = yes; then
2800 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2801 else
2802 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2803 fi
2804
2805 else
2806
2807 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2808 if test "x$LINE" != x ; then
2809 eval "DEFAULT_$LINE"
2810 else
2811 no_cache=1
2812 fi
2813
2814 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2815
2816 fi
2817
2818
2819 eval "$ac_cv_use_no_exceptions"
2820 if test "$no_cache" != 1; then
2821 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2822 fi
2823
2824 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2825 echo "$ac_t""yes" 1>&6
2826 else
2827 echo "$ac_t""no" 1>&6
2828 fi
2829
2830
2831 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2832 echo "configure:2833: checking for --enable-permissive" >&5
2833 no_cache=0
2834 # Check whether --enable-permissive or --disable-permissive was given.
2835 if test "${enable_permissive+set}" = set; then
2836 enableval="$enable_permissive"
2837
2838 if test "$enableval" = yes; then
2839 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2840 else
2841 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2842 fi
2843
2844 else
2845
2846 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2847 if test "x$LINE" != x ; then
2848 eval "DEFAULT_$LINE"
2849 else
2850 no_cache=1
2851 fi
2852
2853 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2854
2855 fi
2856
2857
2858 eval "$ac_cv_use_permissive"
2859 if test "$no_cache" != 1; then
2860 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2861 fi
2862
2863 if test "$wxUSE_PERMISSIVE" = yes; then
2864 echo "$ac_t""yes" 1>&6
2865 else
2866 echo "$ac_t""no" 1>&6
2867 fi
2868
2869
2870 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2871 echo "configure:2872: checking for --enable-no_deps" >&5
2872 no_cache=0
2873 # Check whether --enable-no_deps or --disable-no_deps was given.
2874 if test "${enable_no_deps+set}" = set; then
2875 enableval="$enable_no_deps"
2876
2877 if test "$enableval" = yes; then
2878 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2879 else
2880 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2881 fi
2882
2883 else
2884
2885 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2886 if test "x$LINE" != x ; then
2887 eval "DEFAULT_$LINE"
2888 else
2889 no_cache=1
2890 fi
2891
2892 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2893
2894 fi
2895
2896
2897 eval "$ac_cv_use_no_deps"
2898 if test "$no_cache" != 1; then
2899 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2900 fi
2901
2902 if test "$wxUSE_NO_DEPS" = yes; then
2903 echo "$ac_t""yes" 1>&6
2904 else
2905 echo "$ac_t""no" 1>&6
2906 fi
2907
2908
2909
2910 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2911 echo "configure:2912: checking for --enable-compat20" >&5
2912 no_cache=0
2913 # Check whether --enable-compat20 or --disable-compat20 was given.
2914 if test "${enable_compat20+set}" = set; then
2915 enableval="$enable_compat20"
2916
2917 if test "$enableval" = yes; then
2918 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2919 else
2920 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2921 fi
2922
2923 else
2924
2925 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2926 if test "x$LINE" != x ; then
2927 eval "DEFAULT_$LINE"
2928 else
2929 no_cache=1
2930 fi
2931
2932 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2933
2934 fi
2935
2936
2937 eval "$ac_cv_use_compat20"
2938 if test "$no_cache" != 1; then
2939 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2940 fi
2941
2942 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2943 echo "$ac_t""yes" 1>&6
2944 else
2945 echo "$ac_t""no" 1>&6
2946 fi
2947
2948
2949 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2950 echo "configure:2951: checking for --enable-compat22" >&5
2951 no_cache=0
2952 # Check whether --enable-compat22 or --disable-compat22 was given.
2953 if test "${enable_compat22+set}" = set; then
2954 enableval="$enable_compat22"
2955
2956 if test "$enableval" = yes; then
2957 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2958 else
2959 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2960 fi
2961
2962 else
2963
2964 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2965 if test "x$LINE" != x ; then
2966 eval "DEFAULT_$LINE"
2967 else
2968 no_cache=1
2969 fi
2970
2971 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2972
2973 fi
2974
2975
2976 eval "$ac_cv_use_compat22"
2977 if test "$no_cache" != 1; then
2978 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2979 fi
2980
2981 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2982 echo "$ac_t""yes" 1>&6
2983 else
2984 echo "$ac_t""no" 1>&6
2985 fi
2986
2987
2988 # Check whether --enable-rpath or --disable-rpath was given.
2989 if test "${enable_rpath+set}" = set; then
2990 enableval="$enable_rpath"
2991 wxRPATH_DIR="$enableval"
2992 fi
2993
2994
2995 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
2996 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
2997 fi
2998
2999
3000
3001
3002 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3003 echo "configure:3004: checking for --enable-intl" >&5
3004 no_cache=0
3005 # Check whether --enable-intl or --disable-intl was given.
3006 if test "${enable_intl+set}" = set; then
3007 enableval="$enable_intl"
3008
3009 if test "$enableval" = yes; then
3010 ac_cv_use_intl='wxUSE_INTL=yes'
3011 else
3012 ac_cv_use_intl='wxUSE_INTL=no'
3013 fi
3014
3015 else
3016
3017 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3018 if test "x$LINE" != x ; then
3019 eval "DEFAULT_$LINE"
3020 else
3021 no_cache=1
3022 fi
3023
3024 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3025
3026 fi
3027
3028
3029 eval "$ac_cv_use_intl"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_INTL" = yes; then
3035 echo "$ac_t""yes" 1>&6
3036 else
3037 echo "$ac_t""no" 1>&6
3038 fi
3039
3040
3041 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3042 echo "configure:3043: checking for --enable-config" >&5
3043 no_cache=0
3044 # Check whether --enable-config or --disable-config was given.
3045 if test "${enable_config+set}" = set; then
3046 enableval="$enable_config"
3047
3048 if test "$enableval" = yes; then
3049 ac_cv_use_config='wxUSE_CONFIG=yes'
3050 else
3051 ac_cv_use_config='wxUSE_CONFIG=no'
3052 fi
3053
3054 else
3055
3056 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3057 if test "x$LINE" != x ; then
3058 eval "DEFAULT_$LINE"
3059 else
3060 no_cache=1
3061 fi
3062
3063 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3064
3065 fi
3066
3067
3068 eval "$ac_cv_use_config"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_CONFIG" = yes; then
3074 echo "$ac_t""yes" 1>&6
3075 else
3076 echo "$ac_t""no" 1>&6
3077 fi
3078
3079
3080
3081 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3082 echo "configure:3083: checking for --enable-protocols" >&5
3083 no_cache=0
3084 # Check whether --enable-protocols or --disable-protocols was given.
3085 if test "${enable_protocols+set}" = set; then
3086 enableval="$enable_protocols"
3087
3088 if test "$enableval" = yes; then
3089 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3090 else
3091 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3092 fi
3093
3094 else
3095
3096 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3097 if test "x$LINE" != x ; then
3098 eval "DEFAULT_$LINE"
3099 else
3100 no_cache=1
3101 fi
3102
3103 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3104
3105 fi
3106
3107
3108 eval "$ac_cv_use_protocols"
3109 if test "$no_cache" != 1; then
3110 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3111 fi
3112
3113 if test "$wxUSE_PROTOCOL" = yes; then
3114 echo "$ac_t""yes" 1>&6
3115 else
3116 echo "$ac_t""no" 1>&6
3117 fi
3118
3119
3120 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3121 echo "configure:3122: checking for --enable-ftp" >&5
3122 no_cache=0
3123 # Check whether --enable-ftp or --disable-ftp was given.
3124 if test "${enable_ftp+set}" = set; then
3125 enableval="$enable_ftp"
3126
3127 if test "$enableval" = yes; then
3128 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3129 else
3130 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3131 fi
3132
3133 else
3134
3135 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3136 if test "x$LINE" != x ; then
3137 eval "DEFAULT_$LINE"
3138 else
3139 no_cache=1
3140 fi
3141
3142 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3143
3144 fi
3145
3146
3147 eval "$ac_cv_use_ftp"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3153 echo "$ac_t""yes" 1>&6
3154 else
3155 echo "$ac_t""no" 1>&6
3156 fi
3157
3158
3159 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3160 echo "configure:3161: checking for --enable-http" >&5
3161 no_cache=0
3162 # Check whether --enable-http or --disable-http was given.
3163 if test "${enable_http+set}" = set; then
3164 enableval="$enable_http"
3165
3166 if test "$enableval" = yes; then
3167 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3168 else
3169 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3170 fi
3171
3172 else
3173
3174 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3175 if test "x$LINE" != x ; then
3176 eval "DEFAULT_$LINE"
3177 else
3178 no_cache=1
3179 fi
3180
3181 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3182
3183 fi
3184
3185
3186 eval "$ac_cv_use_http"
3187 if test "$no_cache" != 1; then
3188 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3189 fi
3190
3191 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3192 echo "$ac_t""yes" 1>&6
3193 else
3194 echo "$ac_t""no" 1>&6
3195 fi
3196
3197
3198 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3199 echo "configure:3200: checking for --enable-fileproto" >&5
3200 no_cache=0
3201 # Check whether --enable-fileproto or --disable-fileproto was given.
3202 if test "${enable_fileproto+set}" = set; then
3203 enableval="$enable_fileproto"
3204
3205 if test "$enableval" = yes; then
3206 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3207 else
3208 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3209 fi
3210
3211 else
3212
3213 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3214 if test "x$LINE" != x ; then
3215 eval "DEFAULT_$LINE"
3216 else
3217 no_cache=1
3218 fi
3219
3220 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3221
3222 fi
3223
3224
3225 eval "$ac_cv_use_fileproto"
3226 if test "$no_cache" != 1; then
3227 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3228 fi
3229
3230 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3231 echo "$ac_t""yes" 1>&6
3232 else
3233 echo "$ac_t""no" 1>&6
3234 fi
3235
3236
3237 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3238 echo "configure:3239: checking for --enable-sockets" >&5
3239 no_cache=0
3240 # Check whether --enable-sockets or --disable-sockets was given.
3241 if test "${enable_sockets+set}" = set; then
3242 enableval="$enable_sockets"
3243
3244 if test "$enableval" = yes; then
3245 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3246 else
3247 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3248 fi
3249
3250 else
3251
3252 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3253 if test "x$LINE" != x ; then
3254 eval "DEFAULT_$LINE"
3255 else
3256 no_cache=1
3257 fi
3258
3259 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3260
3261 fi
3262
3263
3264 eval "$ac_cv_use_sockets"
3265 if test "$no_cache" != 1; then
3266 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3267 fi
3268
3269 if test "$wxUSE_SOCKETS" = yes; then
3270 echo "$ac_t""yes" 1>&6
3271 else
3272 echo "$ac_t""no" 1>&6
3273 fi
3274
3275
3276
3277 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3278 echo "configure:3279: checking for --enable-ipc" >&5
3279 no_cache=0
3280 # Check whether --enable-ipc or --disable-ipc was given.
3281 if test "${enable_ipc+set}" = set; then
3282 enableval="$enable_ipc"
3283
3284 if test "$enableval" = yes; then
3285 ac_cv_use_ipc='wxUSE_IPC=yes'
3286 else
3287 ac_cv_use_ipc='wxUSE_IPC=no'
3288 fi
3289
3290 else
3291
3292 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3293 if test "x$LINE" != x ; then
3294 eval "DEFAULT_$LINE"
3295 else
3296 no_cache=1
3297 fi
3298
3299 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3300
3301 fi
3302
3303
3304 eval "$ac_cv_use_ipc"
3305 if test "$no_cache" != 1; then
3306 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3307 fi
3308
3309 if test "$wxUSE_IPC" = yes; then
3310 echo "$ac_t""yes" 1>&6
3311 else
3312 echo "$ac_t""no" 1>&6
3313 fi
3314
3315
3316
3317 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3318 echo "configure:3319: checking for --enable-cmdline" >&5
3319 no_cache=0
3320 # Check whether --enable-cmdline or --disable-cmdline was given.
3321 if test "${enable_cmdline+set}" = set; then
3322 enableval="$enable_cmdline"
3323
3324 if test "$enableval" = yes; then
3325 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3326 else
3327 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3328 fi
3329
3330 else
3331
3332 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3333 if test "x$LINE" != x ; then
3334 eval "DEFAULT_$LINE"
3335 else
3336 no_cache=1
3337 fi
3338
3339 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3340
3341 fi
3342
3343
3344 eval "$ac_cv_use_cmdline"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3350 echo "$ac_t""yes" 1>&6
3351 else
3352 echo "$ac_t""no" 1>&6
3353 fi
3354
3355
3356 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3357 echo "configure:3358: checking for --enable-datetime" >&5
3358 no_cache=0
3359 # Check whether --enable-datetime or --disable-datetime was given.
3360 if test "${enable_datetime+set}" = set; then
3361 enableval="$enable_datetime"
3362
3363 if test "$enableval" = yes; then
3364 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3365 else
3366 ac_cv_use_datetime='wxUSE_DATETIME=no'
3367 fi
3368
3369 else
3370
3371 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3379
3380 fi
3381
3382
3383 eval "$ac_cv_use_datetime"
3384 if test "$no_cache" != 1; then
3385 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3386 fi
3387
3388 if test "$wxUSE_DATETIME" = yes; then
3389 echo "$ac_t""yes" 1>&6
3390 else
3391 echo "$ac_t""no" 1>&6
3392 fi
3393
3394
3395 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3396 echo "configure:3397: checking for --enable-timedate" >&5
3397 no_cache=0
3398 # Check whether --enable-timedate or --disable-timedate was given.
3399 if test "${enable_timedate+set}" = set; then
3400 enableval="$enable_timedate"
3401
3402 if test "$enableval" = yes; then
3403 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3404 else
3405 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3406 fi
3407
3408 else
3409
3410 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3411 if test "x$LINE" != x ; then
3412 eval "DEFAULT_$LINE"
3413 else
3414 no_cache=1
3415 fi
3416
3417 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3418
3419 fi
3420
3421
3422 eval "$ac_cv_use_timedate"
3423 if test "$no_cache" != 1; then
3424 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3425 fi
3426
3427 if test "$wxUSE_TIMEDATE" = yes; then
3428 echo "$ac_t""yes" 1>&6
3429 else
3430 echo "$ac_t""no" 1>&6
3431 fi
3432
3433
3434 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3435 echo "configure:3436: checking for --enable-stopwatch" >&5
3436 no_cache=0
3437 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3438 if test "${enable_stopwatch+set}" = set; then
3439 enableval="$enable_stopwatch"
3440
3441 if test "$enableval" = yes; then
3442 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3443 else
3444 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3445 fi
3446
3447 else
3448
3449 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3450 if test "x$LINE" != x ; then
3451 eval "DEFAULT_$LINE"
3452 else
3453 no_cache=1
3454 fi
3455
3456 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3457
3458 fi
3459
3460
3461 eval "$ac_cv_use_stopwatch"
3462 if test "$no_cache" != 1; then
3463 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3464 fi
3465
3466 if test "$wxUSE_STOPWATCH" = yes; then
3467 echo "$ac_t""yes" 1>&6
3468 else
3469 echo "$ac_t""no" 1>&6
3470 fi
3471
3472
3473 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3474 echo "configure:3475: checking for --enable-dialupman" >&5
3475 no_cache=0
3476 # Check whether --enable-dialupman or --disable-dialupman was given.
3477 if test "${enable_dialupman+set}" = set; then
3478 enableval="$enable_dialupman"
3479
3480 if test "$enableval" = yes; then
3481 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3482 else
3483 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3484 fi
3485
3486 else
3487
3488 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3489 if test "x$LINE" != x ; then
3490 eval "DEFAULT_$LINE"
3491 else
3492 no_cache=1
3493 fi
3494
3495 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3496
3497 fi
3498
3499
3500 eval "$ac_cv_use_dialupman"
3501 if test "$no_cache" != 1; then
3502 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3503 fi
3504
3505 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3506 echo "$ac_t""yes" 1>&6
3507 else
3508 echo "$ac_t""no" 1>&6
3509 fi
3510
3511
3512 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3513 echo "configure:3514: checking for --enable-apple_ieee" >&5
3514 no_cache=0
3515 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3516 if test "${enable_apple_ieee+set}" = set; then
3517 enableval="$enable_apple_ieee"
3518
3519 if test "$enableval" = yes; then
3520 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3521 else
3522 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3523 fi
3524
3525 else
3526
3527 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3528 if test "x$LINE" != x ; then
3529 eval "DEFAULT_$LINE"
3530 else
3531 no_cache=1
3532 fi
3533
3534 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3535
3536 fi
3537
3538
3539 eval "$ac_cv_use_apple_ieee"
3540 if test "$no_cache" != 1; then
3541 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3542 fi
3543
3544 if test "$wxUSE_APPLE_IEEE" = yes; then
3545 echo "$ac_t""yes" 1>&6
3546 else
3547 echo "$ac_t""no" 1>&6
3548 fi
3549
3550
3551 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3552 echo "configure:3553: checking for --enable-timer" >&5
3553 no_cache=0
3554 # Check whether --enable-timer or --disable-timer was given.
3555 if test "${enable_timer+set}" = set; then
3556 enableval="$enable_timer"
3557
3558 if test "$enableval" = yes; then
3559 ac_cv_use_timer='wxUSE_TIMER=yes'
3560 else
3561 ac_cv_use_timer='wxUSE_TIMER=no'
3562 fi
3563
3564 else
3565
3566 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3567 if test "x$LINE" != x ; then
3568 eval "DEFAULT_$LINE"
3569 else
3570 no_cache=1
3571 fi
3572
3573 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3574
3575 fi
3576
3577
3578 eval "$ac_cv_use_timer"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_TIMER" = yes; then
3584 echo "$ac_t""yes" 1>&6
3585 else
3586 echo "$ac_t""no" 1>&6
3587 fi
3588
3589
3590 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3591 echo "configure:3592: checking for --enable-wave" >&5
3592 no_cache=0
3593 # Check whether --enable-wave or --disable-wave was given.
3594 if test "${enable_wave+set}" = set; then
3595 enableval="$enable_wave"
3596
3597 if test "$enableval" = yes; then
3598 ac_cv_use_wave='wxUSE_WAVE=yes'
3599 else
3600 ac_cv_use_wave='wxUSE_WAVE=no'
3601 fi
3602
3603 else
3604
3605 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3606 if test "x$LINE" != x ; then
3607 eval "DEFAULT_$LINE"
3608 else
3609 no_cache=1
3610 fi
3611
3612 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3613
3614 fi
3615
3616
3617 eval "$ac_cv_use_wave"
3618 if test "$no_cache" != 1; then
3619 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3620 fi
3621
3622 if test "$wxUSE_WAVE" = yes; then
3623 echo "$ac_t""yes" 1>&6
3624 else
3625 echo "$ac_t""no" 1>&6
3626 fi
3627
3628
3629 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3630 echo "configure:3631: checking for --enable-fraction" >&5
3631 no_cache=0
3632 # Check whether --enable-fraction or --disable-fraction was given.
3633 if test "${enable_fraction+set}" = set; then
3634 enableval="$enable_fraction"
3635
3636 if test "$enableval" = yes; then
3637 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3638 else
3639 ac_cv_use_fraction='wxUSE_FRACTION=no'
3640 fi
3641
3642 else
3643
3644 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3645 if test "x$LINE" != x ; then
3646 eval "DEFAULT_$LINE"
3647 else
3648 no_cache=1
3649 fi
3650
3651 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3652
3653 fi
3654
3655
3656 eval "$ac_cv_use_fraction"
3657 if test "$no_cache" != 1; then
3658 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3659 fi
3660
3661 if test "$wxUSE_FRACTION" = yes; then
3662 echo "$ac_t""yes" 1>&6
3663 else
3664 echo "$ac_t""no" 1>&6
3665 fi
3666
3667
3668 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3669 echo "configure:3670: checking for --enable-dynlib" >&5
3670 no_cache=0
3671 # Check whether --enable-dynlib or --disable-dynlib was given.
3672 if test "${enable_dynlib+set}" = set; then
3673 enableval="$enable_dynlib"
3674
3675 if test "$enableval" = yes; then
3676 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3677 else
3678 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3679 fi
3680
3681 else
3682
3683 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3691
3692 fi
3693
3694
3695 eval "$ac_cv_use_dynlib"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3701 echo "$ac_t""yes" 1>&6
3702 else
3703 echo "$ac_t""no" 1>&6
3704 fi
3705
3706
3707 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3708 echo "configure:3709: checking for --enable-dynamicloader" >&5
3709 no_cache=0
3710 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3711 if test "${enable_dynamicloader+set}" = set; then
3712 enableval="$enable_dynamicloader"
3713
3714 if test "$enableval" = yes; then
3715 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3716 else
3717 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3718 fi
3719
3720 else
3721
3722 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3723 if test "x$LINE" != x ; then
3724 eval "DEFAULT_$LINE"
3725 else
3726 no_cache=1
3727 fi
3728
3729 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3730
3731 fi
3732
3733
3734 eval "$ac_cv_use_dynamicloader"
3735 if test "$no_cache" != 1; then
3736 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3737 fi
3738
3739 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3740 echo "$ac_t""yes" 1>&6
3741 else
3742 echo "$ac_t""no" 1>&6
3743 fi
3744
3745
3746 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3747 echo "configure:3748: checking for --enable-longlong" >&5
3748 no_cache=0
3749 # Check whether --enable-longlong or --disable-longlong was given.
3750 if test "${enable_longlong+set}" = set; then
3751 enableval="$enable_longlong"
3752
3753 if test "$enableval" = yes; then
3754 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3755 else
3756 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3757 fi
3758
3759 else
3760
3761 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3762 if test "x$LINE" != x ; then
3763 eval "DEFAULT_$LINE"
3764 else
3765 no_cache=1
3766 fi
3767
3768 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3769
3770 fi
3771
3772
3773 eval "$ac_cv_use_longlong"
3774 if test "$no_cache" != 1; then
3775 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3776 fi
3777
3778 if test "$wxUSE_LONGLONG" = yes; then
3779 echo "$ac_t""yes" 1>&6
3780 else
3781 echo "$ac_t""no" 1>&6
3782 fi
3783
3784
3785 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3786 echo "configure:3787: checking for --enable-geometry" >&5
3787 no_cache=0
3788 # Check whether --enable-geometry or --disable-geometry was given.
3789 if test "${enable_geometry+set}" = set; then
3790 enableval="$enable_geometry"
3791
3792 if test "$enableval" = yes; then
3793 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3794 else
3795 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3796 fi
3797
3798 else
3799
3800 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3801 if test "x$LINE" != x ; then
3802 eval "DEFAULT_$LINE"
3803 else
3804 no_cache=1
3805 fi
3806
3807 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3808
3809 fi
3810
3811
3812 eval "$ac_cv_use_geometry"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_GEOMETRY" = yes; then
3818 echo "$ac_t""yes" 1>&6
3819 else
3820 echo "$ac_t""no" 1>&6
3821 fi
3822
3823
3824 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3825 echo "configure:3826: checking for --enable-log" >&5
3826 no_cache=0
3827 # Check whether --enable-log or --disable-log was given.
3828 if test "${enable_log+set}" = set; then
3829 enableval="$enable_log"
3830
3831 if test "$enableval" = yes; then
3832 ac_cv_use_log='wxUSE_LOG=yes'
3833 else
3834 ac_cv_use_log='wxUSE_LOG=no'
3835 fi
3836
3837 else
3838
3839 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3840 if test "x$LINE" != x ; then
3841 eval "DEFAULT_$LINE"
3842 else
3843 no_cache=1
3844 fi
3845
3846 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3847
3848 fi
3849
3850
3851 eval "$ac_cv_use_log"
3852 if test "$no_cache" != 1; then
3853 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3854 fi
3855
3856 if test "$wxUSE_LOG" = yes; then
3857 echo "$ac_t""yes" 1>&6
3858 else
3859 echo "$ac_t""no" 1>&6
3860 fi
3861
3862
3863 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3864 echo "configure:3865: checking for --enable-streams" >&5
3865 no_cache=0
3866 # Check whether --enable-streams or --disable-streams was given.
3867 if test "${enable_streams+set}" = set; then
3868 enableval="$enable_streams"
3869
3870 if test "$enableval" = yes; then
3871 ac_cv_use_streams='wxUSE_STREAMS=yes'
3872 else
3873 ac_cv_use_streams='wxUSE_STREAMS=no'
3874 fi
3875
3876 else
3877
3878 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3879 if test "x$LINE" != x ; then
3880 eval "DEFAULT_$LINE"
3881 else
3882 no_cache=1
3883 fi
3884
3885 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3886
3887 fi
3888
3889
3890 eval "$ac_cv_use_streams"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_STREAMS" = yes; then
3896 echo "$ac_t""yes" 1>&6
3897 else
3898 echo "$ac_t""no" 1>&6
3899 fi
3900
3901
3902 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3903 echo "configure:3904: checking for --enable-file" >&5
3904 no_cache=0
3905 # Check whether --enable-file or --disable-file was given.
3906 if test "${enable_file+set}" = set; then
3907 enableval="$enable_file"
3908
3909 if test "$enableval" = yes; then
3910 ac_cv_use_file='wxUSE_FILE=yes'
3911 else
3912 ac_cv_use_file='wxUSE_FILE=no'
3913 fi
3914
3915 else
3916
3917 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3918 if test "x$LINE" != x ; then
3919 eval "DEFAULT_$LINE"
3920 else
3921 no_cache=1
3922 fi
3923
3924 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3925
3926 fi
3927
3928
3929 eval "$ac_cv_use_file"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_FILE" = yes; then
3935 echo "$ac_t""yes" 1>&6
3936 else
3937 echo "$ac_t""no" 1>&6
3938 fi
3939
3940
3941 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3942 echo "configure:3943: checking for --enable-ffile" >&5
3943 no_cache=0
3944 # Check whether --enable-ffile or --disable-ffile was given.
3945 if test "${enable_ffile+set}" = set; then
3946 enableval="$enable_ffile"
3947
3948 if test "$enableval" = yes; then
3949 ac_cv_use_ffile='wxUSE_FFILE=yes'
3950 else
3951 ac_cv_use_ffile='wxUSE_FFILE=no'
3952 fi
3953
3954 else
3955
3956 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3957 if test "x$LINE" != x ; then
3958 eval "DEFAULT_$LINE"
3959 else
3960 no_cache=1
3961 fi
3962
3963 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3964
3965 fi
3966
3967
3968 eval "$ac_cv_use_ffile"
3969 if test "$no_cache" != 1; then
3970 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3971 fi
3972
3973 if test "$wxUSE_FFILE" = yes; then
3974 echo "$ac_t""yes" 1>&6
3975 else
3976 echo "$ac_t""no" 1>&6
3977 fi
3978
3979
3980 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3981 echo "configure:3982: checking for --enable-textbuf" >&5
3982 no_cache=0
3983 # Check whether --enable-textbuf or --disable-textbuf was given.
3984 if test "${enable_textbuf+set}" = set; then
3985 enableval="$enable_textbuf"
3986
3987 if test "$enableval" = yes; then
3988 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3989 else
3990 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3991 fi
3992
3993 else
3994
3995 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3996 if test "x$LINE" != x ; then
3997 eval "DEFAULT_$LINE"
3998 else
3999 no_cache=1
4000 fi
4001
4002 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4003
4004 fi
4005
4006
4007 eval "$ac_cv_use_textbuf"
4008 if test "$no_cache" != 1; then
4009 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4010 fi
4011
4012 if test "$wxUSE_TEXTBUFFER" = yes; then
4013 echo "$ac_t""yes" 1>&6
4014 else
4015 echo "$ac_t""no" 1>&6
4016 fi
4017
4018
4019 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4020 echo "configure:4021: checking for --enable-textfile" >&5
4021 no_cache=0
4022 # Check whether --enable-textfile or --disable-textfile was given.
4023 if test "${enable_textfile+set}" = set; then
4024 enableval="$enable_textfile"
4025
4026 if test "$enableval" = yes; then
4027 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4028 else
4029 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4030 fi
4031
4032 else
4033
4034 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4035 if test "x$LINE" != x ; then
4036 eval "DEFAULT_$LINE"
4037 else
4038 no_cache=1
4039 fi
4040
4041 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4042
4043 fi
4044
4045
4046 eval "$ac_cv_use_textfile"
4047 if test "$no_cache" != 1; then
4048 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4049 fi
4050
4051 if test "$wxUSE_TEXTFILE" = yes; then
4052 echo "$ac_t""yes" 1>&6
4053 else
4054 echo "$ac_t""no" 1>&6
4055 fi
4056
4057
4058 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4059 echo "configure:4060: checking for --enable-fontmap" >&5
4060 no_cache=0
4061 # Check whether --enable-fontmap or --disable-fontmap was given.
4062 if test "${enable_fontmap+set}" = set; then
4063 enableval="$enable_fontmap"
4064
4065 if test "$enableval" = yes; then
4066 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4067 else
4068 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4069 fi
4070
4071 else
4072
4073 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4074 if test "x$LINE" != x ; then
4075 eval "DEFAULT_$LINE"
4076 else
4077 no_cache=1
4078 fi
4079
4080 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4081
4082 fi
4083
4084
4085 eval "$ac_cv_use_fontmap"
4086 if test "$no_cache" != 1; then
4087 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4088 fi
4089
4090 if test "$wxUSE_FONTMAP" = yes; then
4091 echo "$ac_t""yes" 1>&6
4092 else
4093 echo "$ac_t""no" 1>&6
4094 fi
4095
4096
4097 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4098 echo "configure:4099: checking for --enable-unicode" >&5
4099 no_cache=0
4100 # Check whether --enable-unicode or --disable-unicode was given.
4101 if test "${enable_unicode+set}" = set; then
4102 enableval="$enable_unicode"
4103
4104 if test "$enableval" = yes; then
4105 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4106 else
4107 ac_cv_use_unicode='wxUSE_UNICODE=no'
4108 fi
4109
4110 else
4111
4112 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4120
4121 fi
4122
4123
4124 eval "$ac_cv_use_unicode"
4125 if test "$no_cache" != 1; then
4126 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4127 fi
4128
4129 if test "$wxUSE_UNICODE" = yes; then
4130 echo "$ac_t""yes" 1>&6
4131 else
4132 echo "$ac_t""no" 1>&6
4133 fi
4134
4135
4136 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4137 echo "configure:4138: checking for --enable-mslu" >&5
4138 no_cache=0
4139 # Check whether --enable-mslu or --disable-mslu was given.
4140 if test "${enable_mslu+set}" = set; then
4141 enableval="$enable_mslu"
4142
4143 if test "$enableval" = yes; then
4144 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4145 else
4146 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4147 fi
4148
4149 else
4150
4151 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4152 if test "x$LINE" != x ; then
4153 eval "DEFAULT_$LINE"
4154 else
4155 no_cache=1
4156 fi
4157
4158 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4159
4160 fi
4161
4162
4163 eval "$ac_cv_use_mslu"
4164 if test "$no_cache" != 1; then
4165 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4166 fi
4167
4168 if test "$wxUSE_UNICODE_MSLU" = yes; then
4169 echo "$ac_t""yes" 1>&6
4170 else
4171 echo "$ac_t""no" 1>&6
4172 fi
4173
4174
4175 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4176 echo "configure:4177: checking for --enable-wxprintfv" >&5
4177 no_cache=0
4178 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4179 if test "${enable_wxprintfv+set}" = set; then
4180 enableval="$enable_wxprintfv"
4181
4182 if test "$enableval" = yes; then
4183 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4184 else
4185 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4186 fi
4187
4188 else
4189
4190 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4191 if test "x$LINE" != x ; then
4192 eval "DEFAULT_$LINE"
4193 else
4194 no_cache=1
4195 fi
4196
4197 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4198
4199 fi
4200
4201
4202 eval "$ac_cv_use_wxprintfv"
4203 if test "$no_cache" != 1; then
4204 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4205 fi
4206
4207 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4208 echo "$ac_t""yes" 1>&6
4209 else
4210 echo "$ac_t""no" 1>&6
4211 fi
4212
4213
4214 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4215 echo "configure:4216: checking for --enable-std_iostreams" >&5
4216 no_cache=0
4217 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4218 if test "${enable_std_iostreams+set}" = set; then
4219 enableval="$enable_std_iostreams"
4220
4221 if test "$enableval" = yes; then
4222 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4223 else
4224 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4225 fi
4226
4227 else
4228
4229 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4230 if test "x$LINE" != x ; then
4231 eval "DEFAULT_$LINE"
4232 else
4233 no_cache=1
4234 fi
4235
4236 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4237
4238 fi
4239
4240
4241 eval "$ac_cv_use_std_iostreams"
4242 if test "$no_cache" != 1; then
4243 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4244 fi
4245
4246 if test "$wxUSE_STD_IOSTREAM" = yes; then
4247 echo "$ac_t""yes" 1>&6
4248 else
4249 echo "$ac_t""no" 1>&6
4250 fi
4251
4252
4253 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4254 echo "configure:4255: checking for --enable-filesystem" >&5
4255 no_cache=0
4256 # Check whether --enable-filesystem or --disable-filesystem was given.
4257 if test "${enable_filesystem+set}" = set; then
4258 enableval="$enable_filesystem"
4259
4260 if test "$enableval" = yes; then
4261 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4262 else
4263 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4264 fi
4265
4266 else
4267
4268 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4269 if test "x$LINE" != x ; then
4270 eval "DEFAULT_$LINE"
4271 else
4272 no_cache=1
4273 fi
4274
4275 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4276
4277 fi
4278
4279
4280 eval "$ac_cv_use_filesystem"
4281 if test "$no_cache" != 1; then
4282 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4283 fi
4284
4285 if test "$wxUSE_FILESYSTEM" = yes; then
4286 echo "$ac_t""yes" 1>&6
4287 else
4288 echo "$ac_t""no" 1>&6
4289 fi
4290
4291
4292 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4293 echo "configure:4294: checking for --enable-fs_inet" >&5
4294 no_cache=0
4295 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4296 if test "${enable_fs_inet+set}" = set; then
4297 enableval="$enable_fs_inet"
4298
4299 if test "$enableval" = yes; then
4300 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4301 else
4302 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4303 fi
4304
4305 else
4306
4307 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4308 if test "x$LINE" != x ; then
4309 eval "DEFAULT_$LINE"
4310 else
4311 no_cache=1
4312 fi
4313
4314 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4315
4316 fi
4317
4318
4319 eval "$ac_cv_use_fs_inet"
4320 if test "$no_cache" != 1; then
4321 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4322 fi
4323
4324 if test "$wxUSE_FS_INET" = yes; then
4325 echo "$ac_t""yes" 1>&6
4326 else
4327 echo "$ac_t""no" 1>&6
4328 fi
4329
4330
4331 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4332 echo "configure:4333: checking for --enable-fs_zip" >&5
4333 no_cache=0
4334 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4335 if test "${enable_fs_zip+set}" = set; then
4336 enableval="$enable_fs_zip"
4337
4338 if test "$enableval" = yes; then
4339 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4340 else
4341 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4342 fi
4343
4344 else
4345
4346 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4347 if test "x$LINE" != x ; then
4348 eval "DEFAULT_$LINE"
4349 else
4350 no_cache=1
4351 fi
4352
4353 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4354
4355 fi
4356
4357
4358 eval "$ac_cv_use_fs_zip"
4359 if test "$no_cache" != 1; then
4360 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4361 fi
4362
4363 if test "$wxUSE_FS_ZIP" = yes; then
4364 echo "$ac_t""yes" 1>&6
4365 else
4366 echo "$ac_t""no" 1>&6
4367 fi
4368
4369
4370 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4371 echo "configure:4372: checking for --enable-zipstream" >&5
4372 no_cache=0
4373 # Check whether --enable-zipstream or --disable-zipstream was given.
4374 if test "${enable_zipstream+set}" = set; then
4375 enableval="$enable_zipstream"
4376
4377 if test "$enableval" = yes; then
4378 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4379 else
4380 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4381 fi
4382
4383 else
4384
4385 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4386 if test "x$LINE" != x ; then
4387 eval "DEFAULT_$LINE"
4388 else
4389 no_cache=1
4390 fi
4391
4392 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4393
4394 fi
4395
4396
4397 eval "$ac_cv_use_zipstream"
4398 if test "$no_cache" != 1; then
4399 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4400 fi
4401
4402 if test "$wxUSE_ZIPSTREAM" = yes; then
4403 echo "$ac_t""yes" 1>&6
4404 else
4405 echo "$ac_t""no" 1>&6
4406 fi
4407
4408
4409
4410 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4411 echo "configure:4412: checking for --enable-catch_segvs" >&5
4412 no_cache=0
4413 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4414 if test "${enable_catch_segvs+set}" = set; then
4415 enableval="$enable_catch_segvs"
4416
4417 if test "$enableval" = yes; then
4418 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4419 else
4420 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4421 fi
4422
4423 else
4424
4425 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4426 if test "x$LINE" != x ; then
4427 eval "DEFAULT_$LINE"
4428 else
4429 no_cache=1
4430 fi
4431
4432 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4433
4434 fi
4435
4436
4437 eval "$ac_cv_use_catch_segvs"
4438 if test "$no_cache" != 1; then
4439 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4440 fi
4441
4442 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4443 echo "$ac_t""yes" 1>&6
4444 else
4445 echo "$ac_t""no" 1>&6
4446 fi
4447
4448
4449 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4450 echo "configure:4451: checking for --enable-snglinst" >&5
4451 no_cache=0
4452 # Check whether --enable-snglinst or --disable-snglinst was given.
4453 if test "${enable_snglinst+set}" = set; then
4454 enableval="$enable_snglinst"
4455
4456 if test "$enableval" = yes; then
4457 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4458 else
4459 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4460 fi
4461
4462 else
4463
4464 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4465 if test "x$LINE" != x ; then
4466 eval "DEFAULT_$LINE"
4467 else
4468 no_cache=1
4469 fi
4470
4471 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4472
4473 fi
4474
4475
4476 eval "$ac_cv_use_snglinst"
4477 if test "$no_cache" != 1; then
4478 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4479 fi
4480
4481 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4482 echo "$ac_t""yes" 1>&6
4483 else
4484 echo "$ac_t""no" 1>&6
4485 fi
4486
4487
4488
4489 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4490 echo "configure:4491: checking for --enable-mimetype" >&5
4491 no_cache=0
4492 # Check whether --enable-mimetype or --disable-mimetype was given.
4493 if test "${enable_mimetype+set}" = set; then
4494 enableval="$enable_mimetype"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4498 else
4499 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4500 fi
4501
4502 else
4503
4504 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4512
4513 fi
4514
4515
4516 eval "$ac_cv_use_mimetype"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_MIMETYPE" = yes; then
4522 echo "$ac_t""yes" 1>&6
4523 else
4524 echo "$ac_t""no" 1>&6
4525 fi
4526
4527
4528 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4529 echo "configure:4530: checking for --enable-system_options" >&5
4530 no_cache=0
4531 # Check whether --enable-system_options or --disable-system_options was given.
4532 if test "${enable_system_options+set}" = set; then
4533 enableval="$enable_system_options"
4534
4535 if test "$enableval" = yes; then
4536 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4537 else
4538 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4539 fi
4540
4541 else
4542
4543 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4544 if test "x$LINE" != x ; then
4545 eval "DEFAULT_$LINE"
4546 else
4547 no_cache=1
4548 fi
4549
4550 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4551
4552 fi
4553
4554
4555 eval "$ac_cv_use_system_options"
4556 if test "$no_cache" != 1; then
4557 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4558 fi
4559
4560 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4561 echo "$ac_t""yes" 1>&6
4562 else
4563 echo "$ac_t""no" 1>&6
4564 fi
4565
4566
4567
4568 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4569 echo "configure:4570: checking for --enable-url" >&5
4570 no_cache=0
4571 # Check whether --enable-url or --disable-url was given.
4572 if test "${enable_url+set}" = set; then
4573 enableval="$enable_url"
4574
4575 if test "$enableval" = yes; then
4576 ac_cv_use_url='wxUSE_URL=yes'
4577 else
4578 ac_cv_use_url='wxUSE_URL=no'
4579 fi
4580
4581 else
4582
4583 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4584 if test "x$LINE" != x ; then
4585 eval "DEFAULT_$LINE"
4586 else
4587 no_cache=1
4588 fi
4589
4590 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4591
4592 fi
4593
4594
4595 eval "$ac_cv_use_url"
4596 if test "$no_cache" != 1; then
4597 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4598 fi
4599
4600 if test "$wxUSE_URL" = yes; then
4601 echo "$ac_t""yes" 1>&6
4602 else
4603 echo "$ac_t""no" 1>&6
4604 fi
4605
4606
4607 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4608 echo "configure:4609: checking for --enable-protocol" >&5
4609 no_cache=0
4610 # Check whether --enable-protocol or --disable-protocol was given.
4611 if test "${enable_protocol+set}" = set; then
4612 enableval="$enable_protocol"
4613
4614 if test "$enableval" = yes; then
4615 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4616 else
4617 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4618 fi
4619
4620 else
4621
4622 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4623 if test "x$LINE" != x ; then
4624 eval "DEFAULT_$LINE"
4625 else
4626 no_cache=1
4627 fi
4628
4629 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4630
4631 fi
4632
4633
4634 eval "$ac_cv_use_protocol"
4635 if test "$no_cache" != 1; then
4636 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4637 fi
4638
4639 if test "$wxUSE_PROTOCOL" = yes; then
4640 echo "$ac_t""yes" 1>&6
4641 else
4642 echo "$ac_t""no" 1>&6
4643 fi
4644
4645
4646 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4647 echo "configure:4648: checking for --enable-protocol_http" >&5
4648 no_cache=0
4649 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4650 if test "${enable_protocol_http+set}" = set; then
4651 enableval="$enable_protocol_http"
4652
4653 if test "$enableval" = yes; then
4654 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4655 else
4656 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4657 fi
4658
4659 else
4660
4661 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4662 if test "x$LINE" != x ; then
4663 eval "DEFAULT_$LINE"
4664 else
4665 no_cache=1
4666 fi
4667
4668 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4669
4670 fi
4671
4672
4673 eval "$ac_cv_use_protocol_http"
4674 if test "$no_cache" != 1; then
4675 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4676 fi
4677
4678 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4679 echo "$ac_t""yes" 1>&6
4680 else
4681 echo "$ac_t""no" 1>&6
4682 fi
4683
4684
4685 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4686 echo "configure:4687: checking for --enable-protocol_ftp" >&5
4687 no_cache=0
4688 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4689 if test "${enable_protocol_ftp+set}" = set; then
4690 enableval="$enable_protocol_ftp"
4691
4692 if test "$enableval" = yes; then
4693 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4694 else
4695 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4696 fi
4697
4698 else
4699
4700 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4701 if test "x$LINE" != x ; then
4702 eval "DEFAULT_$LINE"
4703 else
4704 no_cache=1
4705 fi
4706
4707 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4708
4709 fi
4710
4711
4712 eval "$ac_cv_use_protocol_ftp"
4713 if test "$no_cache" != 1; then
4714 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4715 fi
4716
4717 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4718 echo "$ac_t""yes" 1>&6
4719 else
4720 echo "$ac_t""no" 1>&6
4721 fi
4722
4723
4724 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4725 echo "configure:4726: checking for --enable-protocol_file" >&5
4726 no_cache=0
4727 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4728 if test "${enable_protocol_file+set}" = set; then
4729 enableval="$enable_protocol_file"
4730
4731 if test "$enableval" = yes; then
4732 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4733 else
4734 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4735 fi
4736
4737 else
4738
4739 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
4746 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4747
4748 fi
4749
4750
4751 eval "$ac_cv_use_protocol_file"
4752 if test "$no_cache" != 1; then
4753 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4754 fi
4755
4756 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4757 echo "$ac_t""yes" 1>&6
4758 else
4759 echo "$ac_t""no" 1>&6
4760 fi
4761
4762
4763
4764
4765
4766 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4767 echo "configure:4768: checking for --enable-threads" >&5
4768 no_cache=0
4769 # Check whether --enable-threads or --disable-threads was given.
4770 if test "${enable_threads+set}" = set; then
4771 enableval="$enable_threads"
4772
4773 if test "$enableval" = yes; then
4774 ac_cv_use_threads='wxUSE_THREADS=yes'
4775 else
4776 ac_cv_use_threads='wxUSE_THREADS=no'
4777 fi
4778
4779 else
4780
4781 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4782 if test "x$LINE" != x ; then
4783 eval "DEFAULT_$LINE"
4784 else
4785 no_cache=1
4786 fi
4787
4788 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4789
4790 fi
4791
4792
4793 eval "$ac_cv_use_threads"
4794 if test "$no_cache" != 1; then
4795 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4796 fi
4797
4798 if test "$wxUSE_THREADS" = yes; then
4799 echo "$ac_t""yes" 1>&6
4800 else
4801 echo "$ac_t""no" 1>&6
4802 fi
4803
4804
4805 if test "$wxUSE_GUI" = "yes"; then
4806
4807
4808
4809 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4810 echo "configure:4811: checking for --enable-docview" >&5
4811 no_cache=0
4812 # Check whether --enable-docview or --disable-docview was given.
4813 if test "${enable_docview+set}" = set; then
4814 enableval="$enable_docview"
4815
4816 if test "$enableval" = yes; then
4817 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4818 else
4819 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4820 fi
4821
4822 else
4823
4824 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4825 if test "x$LINE" != x ; then
4826 eval "DEFAULT_$LINE"
4827 else
4828 no_cache=1
4829 fi
4830
4831 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4832
4833 fi
4834
4835
4836 eval "$ac_cv_use_docview"
4837 if test "$no_cache" != 1; then
4838 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4839 fi
4840
4841 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4842 echo "$ac_t""yes" 1>&6
4843 else
4844 echo "$ac_t""no" 1>&6
4845 fi
4846
4847
4848 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4849 echo "configure:4850: checking for --enable-help" >&5
4850 no_cache=0
4851 # Check whether --enable-help or --disable-help was given.
4852 if test "${enable_help+set}" = set; then
4853 enableval="$enable_help"
4854
4855 if test "$enableval" = yes; then
4856 ac_cv_use_help='wxUSE_HELP=yes'
4857 else
4858 ac_cv_use_help='wxUSE_HELP=no'
4859 fi
4860
4861 else
4862
4863 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4864 if test "x$LINE" != x ; then
4865 eval "DEFAULT_$LINE"
4866 else
4867 no_cache=1
4868 fi
4869
4870 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4871
4872 fi
4873
4874
4875 eval "$ac_cv_use_help"
4876 if test "$no_cache" != 1; then
4877 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4878 fi
4879
4880 if test "$wxUSE_HELP" = yes; then
4881 echo "$ac_t""yes" 1>&6
4882 else
4883 echo "$ac_t""no" 1>&6
4884 fi
4885
4886
4887 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4888 echo "configure:4889: checking for --enable-mshtmlhelp" >&5
4889 no_cache=0
4890 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4891 if test "${enable_mshtmlhelp+set}" = set; then
4892 enableval="$enable_mshtmlhelp"
4893
4894 if test "$enableval" = yes; then
4895 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4896 else
4897 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4898 fi
4899
4900 else
4901
4902 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4903 if test "x$LINE" != x ; then
4904 eval "DEFAULT_$LINE"
4905 else
4906 no_cache=1
4907 fi
4908
4909 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4910
4911 fi
4912
4913
4914 eval "$ac_cv_use_mshtmlhelp"
4915 if test "$no_cache" != 1; then
4916 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4917 fi
4918
4919 if test "$wxUSE_MS_HTML_HELP" = yes; then
4920 echo "$ac_t""yes" 1>&6
4921 else
4922 echo "$ac_t""no" 1>&6
4923 fi
4924
4925
4926 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4927 echo "configure:4928: checking for --enable-html" >&5
4928 no_cache=0
4929 # Check whether --enable-html or --disable-html was given.
4930 if test "${enable_html+set}" = set; then
4931 enableval="$enable_html"
4932
4933 if test "$enableval" = yes; then
4934 ac_cv_use_html='wxUSE_HTML=yes'
4935 else
4936 ac_cv_use_html='wxUSE_HTML=no'
4937 fi
4938
4939 else
4940
4941 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4942 if test "x$LINE" != x ; then
4943 eval "DEFAULT_$LINE"
4944 else
4945 no_cache=1
4946 fi
4947
4948 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4949
4950 fi
4951
4952
4953 eval "$ac_cv_use_html"
4954 if test "$no_cache" != 1; then
4955 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4956 fi
4957
4958 if test "$wxUSE_HTML" = yes; then
4959 echo "$ac_t""yes" 1>&6
4960 else
4961 echo "$ac_t""no" 1>&6
4962 fi
4963
4964
4965 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4966 echo "configure:4967: checking for --enable-htmlhelp" >&5
4967 no_cache=0
4968 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4969 if test "${enable_htmlhelp+set}" = set; then
4970 enableval="$enable_htmlhelp"
4971
4972 if test "$enableval" = yes; then
4973 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4974 else
4975 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4976 fi
4977
4978 else
4979
4980 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4981 if test "x$LINE" != x ; then
4982 eval "DEFAULT_$LINE"
4983 else
4984 no_cache=1
4985 fi
4986
4987 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4988
4989 fi
4990
4991
4992 eval "$ac_cv_use_htmlhelp"
4993 if test "$no_cache" != 1; then
4994 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4995 fi
4996
4997 if test "$wxUSE_WXHTML_HELP" = yes; then
4998 echo "$ac_t""yes" 1>&6
4999 else
5000 echo "$ac_t""no" 1>&6
5001 fi
5002
5003
5004 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5005 echo "configure:5006: checking for --enable-constraints" >&5
5006 no_cache=0
5007 # Check whether --enable-constraints or --disable-constraints was given.
5008 if test "${enable_constraints+set}" = set; then
5009 enableval="$enable_constraints"
5010
5011 if test "$enableval" = yes; then
5012 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5013 else
5014 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5015 fi
5016
5017 else
5018
5019 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5020 if test "x$LINE" != x ; then
5021 eval "DEFAULT_$LINE"
5022 else
5023 no_cache=1
5024 fi
5025
5026 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5027
5028 fi
5029
5030
5031 eval "$ac_cv_use_constraints"
5032 if test "$no_cache" != 1; then
5033 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5034 fi
5035
5036 if test "$wxUSE_CONSTRAINTS" = yes; then
5037 echo "$ac_t""yes" 1>&6
5038 else
5039 echo "$ac_t""no" 1>&6
5040 fi
5041
5042
5043 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5044 echo "configure:5045: checking for --enable-printarch" >&5
5045 no_cache=0
5046 # Check whether --enable-printarch or --disable-printarch was given.
5047 if test "${enable_printarch+set}" = set; then
5048 enableval="$enable_printarch"
5049
5050 if test "$enableval" = yes; then
5051 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5052 else
5053 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5054 fi
5055
5056 else
5057
5058 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5059 if test "x$LINE" != x ; then
5060 eval "DEFAULT_$LINE"
5061 else
5062 no_cache=1
5063 fi
5064
5065 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5066
5067 fi
5068
5069
5070 eval "$ac_cv_use_printarch"
5071 if test "$no_cache" != 1; then
5072 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5073 fi
5074
5075 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5076 echo "$ac_t""yes" 1>&6
5077 else
5078 echo "$ac_t""no" 1>&6
5079 fi
5080
5081
5082 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5083 echo "configure:5084: checking for --enable-mdi" >&5
5084 no_cache=0
5085 # Check whether --enable-mdi or --disable-mdi was given.
5086 if test "${enable_mdi+set}" = set; then
5087 enableval="$enable_mdi"
5088
5089 if test "$enableval" = yes; then
5090 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5091 else
5092 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5093 fi
5094
5095 else
5096
5097 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5098 if test "x$LINE" != x ; then
5099 eval "DEFAULT_$LINE"
5100 else
5101 no_cache=1
5102 fi
5103
5104 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5105
5106 fi
5107
5108
5109 eval "$ac_cv_use_mdi"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5112 fi
5113
5114 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5115 echo "$ac_t""yes" 1>&6
5116 else
5117 echo "$ac_t""no" 1>&6
5118 fi
5119
5120
5121 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5122 echo "configure:5123: checking for --enable-loggui" >&5
5123 no_cache=0
5124 # Check whether --enable-loggui or --disable-loggui was given.
5125 if test "${enable_loggui+set}" = set; then
5126 enableval="$enable_loggui"
5127
5128 if test "$enableval" = yes; then
5129 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5130 else
5131 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5132 fi
5133
5134 else
5135
5136 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
5143 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5144
5145 fi
5146
5147
5148 eval "$ac_cv_use_loggui"
5149 if test "$no_cache" != 1; then
5150 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5151 fi
5152
5153 if test "$wxUSE_LOGGUI" = yes; then
5154 echo "$ac_t""yes" 1>&6
5155 else
5156 echo "$ac_t""no" 1>&6
5157 fi
5158
5159
5160 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5161 echo "configure:5162: checking for --enable-logwin" >&5
5162 no_cache=0
5163 # Check whether --enable-logwin or --disable-logwin was given.
5164 if test "${enable_logwin+set}" = set; then
5165 enableval="$enable_logwin"
5166
5167 if test "$enableval" = yes; then
5168 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5169 else
5170 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5171 fi
5172
5173 else
5174
5175 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5176 if test "x$LINE" != x ; then
5177 eval "DEFAULT_$LINE"
5178 else
5179 no_cache=1
5180 fi
5181
5182 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5183
5184 fi
5185
5186
5187 eval "$ac_cv_use_logwin"
5188 if test "$no_cache" != 1; then
5189 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5190 fi
5191
5192 if test "$wxUSE_LOGWINDOW" = yes; then
5193 echo "$ac_t""yes" 1>&6
5194 else
5195 echo "$ac_t""no" 1>&6
5196 fi
5197
5198
5199 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5200 echo "configure:5201: checking for --enable-logdialog" >&5
5201 no_cache=0
5202 # Check whether --enable-logdialog or --disable-logdialog was given.
5203 if test "${enable_logdialog+set}" = set; then
5204 enableval="$enable_logdialog"
5205
5206 if test "$enableval" = yes; then
5207 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5208 else
5209 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5210 fi
5211
5212 else
5213
5214 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5215 if test "x$LINE" != x ; then
5216 eval "DEFAULT_$LINE"
5217 else
5218 no_cache=1
5219 fi
5220
5221 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5222
5223 fi
5224
5225
5226 eval "$ac_cv_use_logdialog"
5227 if test "$no_cache" != 1; then
5228 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5229 fi
5230
5231 if test "$wxUSE_LOGDIALOG" = yes; then
5232 echo "$ac_t""yes" 1>&6
5233 else
5234 echo "$ac_t""no" 1>&6
5235 fi
5236
5237
5238
5239 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5240 echo "configure:5241: checking for --enable-postscript" >&5
5241 no_cache=0
5242 # Check whether --enable-postscript or --disable-postscript was given.
5243 if test "${enable_postscript+set}" = set; then
5244 enableval="$enable_postscript"
5245
5246 if test "$enableval" = yes; then
5247 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5248 else
5249 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5250 fi
5251
5252 else
5253
5254 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5255 if test "x$LINE" != x ; then
5256 eval "DEFAULT_$LINE"
5257 else
5258 no_cache=1
5259 fi
5260
5261 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5262
5263 fi
5264
5265
5266 eval "$ac_cv_use_postscript"
5267 if test "$no_cache" != 1; then
5268 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5269 fi
5270
5271 if test "$wxUSE_POSTSCRIPT" = yes; then
5272 echo "$ac_t""yes" 1>&6
5273 else
5274 echo "$ac_t""no" 1>&6
5275 fi
5276
5277
5278
5279
5280
5281 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5282 echo "configure:5283: checking for --enable-prologio" >&5
5283 no_cache=0
5284 # Check whether --enable-prologio or --disable-prologio was given.
5285 if test "${enable_prologio+set}" = set; then
5286 enableval="$enable_prologio"
5287
5288 if test "$enableval" = yes; then
5289 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5290 else
5291 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5292 fi
5293
5294 else
5295
5296 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5297 if test "x$LINE" != x ; then
5298 eval "DEFAULT_$LINE"
5299 else
5300 no_cache=1
5301 fi
5302
5303 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5304
5305 fi
5306
5307
5308 eval "$ac_cv_use_prologio"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_PROLOGIO" = yes; then
5314 echo "$ac_t""yes" 1>&6
5315 else
5316 echo "$ac_t""no" 1>&6
5317 fi
5318
5319
5320 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5321 echo "configure:5322: checking for --enable-resources" >&5
5322 no_cache=0
5323 # Check whether --enable-resources or --disable-resources was given.
5324 if test "${enable_resources+set}" = set; then
5325 enableval="$enable_resources"
5326
5327 if test "$enableval" = yes; then
5328 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5329 else
5330 ac_cv_use_resources='wxUSE_RESOURCES=no'
5331 fi
5332
5333 else
5334
5335 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5336 if test "x$LINE" != x ; then
5337 eval "DEFAULT_$LINE"
5338 else
5339 no_cache=1
5340 fi
5341
5342 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5343
5344 fi
5345
5346
5347 eval "$ac_cv_use_resources"
5348 if test "$no_cache" != 1; then
5349 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5350 fi
5351
5352 if test "$wxUSE_RESOURCES" = yes; then
5353 echo "$ac_t""yes" 1>&6
5354 else
5355 echo "$ac_t""no" 1>&6
5356 fi
5357
5358
5359
5360 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5361 echo "configure:5362: checking for --enable-xresources" >&5
5362 no_cache=0
5363 # Check whether --enable-xresources or --disable-xresources was given.
5364 if test "${enable_xresources+set}" = set; then
5365 enableval="$enable_xresources"
5366
5367 if test "$enableval" = yes; then
5368 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5369 else
5370 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5371 fi
5372
5373 else
5374
5375 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5376 if test "x$LINE" != x ; then
5377 eval "DEFAULT_$LINE"
5378 else
5379 no_cache=1
5380 fi
5381
5382 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5383
5384 fi
5385
5386
5387 eval "$ac_cv_use_xresources"
5388 if test "$no_cache" != 1; then
5389 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5390 fi
5391
5392 if test "$wxUSE_X_RESOURCES" = yes; then
5393 echo "$ac_t""yes" 1>&6
5394 else
5395 echo "$ac_t""no" 1>&6
5396 fi
5397
5398
5399
5400
5401 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5402 echo "configure:5403: checking for --enable-clipboard" >&5
5403 no_cache=0
5404 # Check whether --enable-clipboard or --disable-clipboard was given.
5405 if test "${enable_clipboard+set}" = set; then
5406 enableval="$enable_clipboard"
5407
5408 if test "$enableval" = yes; then
5409 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5410 else
5411 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5412 fi
5413
5414 else
5415
5416 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5417 if test "x$LINE" != x ; then
5418 eval "DEFAULT_$LINE"
5419 else
5420 no_cache=1
5421 fi
5422
5423 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5424
5425 fi
5426
5427
5428 eval "$ac_cv_use_clipboard"
5429 if test "$no_cache" != 1; then
5430 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5431 fi
5432
5433 if test "$wxUSE_CLIPBOARD" = yes; then
5434 echo "$ac_t""yes" 1>&6
5435 else
5436 echo "$ac_t""no" 1>&6
5437 fi
5438
5439
5440 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5441 echo "configure:5442: checking for --enable-dnd" >&5
5442 no_cache=0
5443 # Check whether --enable-dnd or --disable-dnd was given.
5444 if test "${enable_dnd+set}" = set; then
5445 enableval="$enable_dnd"
5446
5447 if test "$enableval" = yes; then
5448 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5449 else
5450 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5451 fi
5452
5453 else
5454
5455 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5456 if test "x$LINE" != x ; then
5457 eval "DEFAULT_$LINE"
5458 else
5459 no_cache=1
5460 fi
5461
5462 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5463
5464 fi
5465
5466
5467 eval "$ac_cv_use_dnd"
5468 if test "$no_cache" != 1; then
5469 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5470 fi
5471
5472 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5473 echo "$ac_t""yes" 1>&6
5474 else
5475 echo "$ac_t""no" 1>&6
5476 fi
5477
5478
5479 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5480 echo "configure:5481: checking for --enable-metafile" >&5
5481 no_cache=0
5482 # Check whether --enable-metafile or --disable-metafile was given.
5483 if test "${enable_metafile+set}" = set; then
5484 enableval="$enable_metafile"
5485
5486 if test "$enableval" = yes; then
5487 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5488 else
5489 ac_cv_use_metafile='wxUSE_METAFILE=no'
5490 fi
5491
5492 else
5493
5494 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5495 if test "x$LINE" != x ; then
5496 eval "DEFAULT_$LINE"
5497 else
5498 no_cache=1
5499 fi
5500
5501 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5502
5503 fi
5504
5505
5506 eval "$ac_cv_use_metafile"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_METAFILE" = yes; then
5512 echo "$ac_t""yes" 1>&6
5513 else
5514 echo "$ac_t""no" 1>&6
5515 fi
5516
5517
5518
5519 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5520 echo "configure:5521: checking for --enable-treelayout" >&5
5521 no_cache=0
5522 # Check whether --enable-treelayout or --disable-treelayout was given.
5523 if test "${enable_treelayout+set}" = set; then
5524 enableval="$enable_treelayout"
5525
5526 if test "$enableval" = yes; then
5527 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5528 else
5529 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5530 fi
5531
5532 else
5533
5534 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5535 if test "x$LINE" != x ; then
5536 eval "DEFAULT_$LINE"
5537 else
5538 no_cache=1
5539 fi
5540
5541 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5542
5543 fi
5544
5545
5546 eval "$ac_cv_use_treelayout"
5547 if test "$no_cache" != 1; then
5548 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5549 fi
5550
5551 if test "$wxUSE_TREELAYOUT" = yes; then
5552 echo "$ac_t""yes" 1>&6
5553 else
5554 echo "$ac_t""no" 1>&6
5555 fi
5556
5557
5558
5559
5560 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5561 echo "configure:5562: checking for --enable-controls" >&5
5562 no_cache=0
5563 # Check whether --enable-controls or --disable-controls was given.
5564 if test "${enable_controls+set}" = set; then
5565 enableval="$enable_controls"
5566
5567 if test "$enableval" = yes; then
5568 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5569 else
5570 ac_cv_use_controls='wxUSE_CONTROLS=no'
5571 fi
5572
5573 else
5574
5575 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5576 if test "x$LINE" != x ; then
5577 eval "DEFAULT_$LINE"
5578 else
5579 no_cache=1
5580 fi
5581
5582 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5583
5584 fi
5585
5586
5587 eval "$ac_cv_use_controls"
5588 if test "$no_cache" != 1; then
5589 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5590 fi
5591
5592 if test "$wxUSE_CONTROLS" = yes; then
5593 echo "$ac_t""yes" 1>&6
5594 else
5595 echo "$ac_t""no" 1>&6
5596 fi
5597
5598
5599 if test "$wxUSE_CONTROLS" = "yes"; then
5600 DEFAULT_wxUSE_ACCEL=yes
5601 DEFAULT_wxUSE_BMPBUTTON=yes
5602 DEFAULT_wxUSE_BUTTON=yes
5603 DEFAULT_wxUSE_CALCTRL=no
5604 DEFAULT_wxUSE_CARET=yes
5605 DEFAULT_wxUSE_COMBOBOX=yes
5606 DEFAULT_wxUSE_CHECKBOX=yes
5607 DEFAULT_wxUSE_CHECKLISTBOX=yes
5608 DEFAULT_wxUSE_CHOICE=yes
5609 DEFAULT_wxUSE_GAUGE=yes
5610 DEFAULT_wxUSE_GRID=yes
5611 DEFAULT_wxUSE_NEW_GRID=yes
5612 DEFAULT_wxUSE_IMAGLIST=yes
5613 DEFAULT_wxUSE_LISTBOX=yes
5614 DEFAULT_wxUSE_LISTCTRL=yes
5615 DEFAULT_wxUSE_NOTEBOOK=yes
5616 DEFAULT_wxUSE_PROPSHEET=yes
5617 DEFAULT_wxUSE_RADIOBOX=yes
5618 DEFAULT_wxUSE_RADIOBTN=yes
5619 DEFAULT_wxUSE_SASH=yes
5620 DEFAULT_wxUSE_SCROLLBAR=yes
5621 DEFAULT_wxUSE_SLIDER=yes
5622 DEFAULT_wxUSE_SPINBTN=yes
5623 DEFAULT_wxUSE_SPINCTRL=yes
5624 DEFAULT_wxUSE_SPLITTER=yes
5625 DEFAULT_wxUSE_STATBMP=yes
5626 DEFAULT_wxUSE_STATBOX=yes
5627 DEFAULT_wxUSE_STATLINE=yes
5628 DEFAULT_wxUSE_STATUSBAR=yes
5629 DEFAULT_wxUSE_TAB_DIALOG=yes
5630 DEFAULT_wxUSE_TOGGLEBTN=yes
5631 DEFAULT_wxUSE_TOOLBAR=yes
5632 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5633 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5634 DEFAULT_wxUSE_TOOLTIPS=yes
5635 DEFAULT_wxUSE_TREECTRL=yes
5636 DEFAULT_wxUSE_POPUPWIN=yes
5637 DEFAULT_wxUSE_TIPWINDOW=yes
5638 elif test "$wxUSE_CONTROLS" = "no"; then
5639 DEFAULT_wxUSE_ACCEL=no
5640 DEFAULT_wxUSE_BMPBUTTON=no
5641 DEFAULT_wxUSE_BUTTON=no
5642 DEFAULT_wxUSE_CALCTRL=no
5643 DEFAULT_wxUSE_CARET=no
5644 DEFAULT_wxUSE_COMBOBOX=no
5645 DEFAULT_wxUSE_CHECKBOX=no
5646 DEFAULT_wxUSE_CHECKLISTBOX=no
5647 DEFAULT_wxUSE_CHOICE=no
5648 DEFAULT_wxUSE_GAUGE=no
5649 DEFAULT_wxUSE_GRID=no
5650 DEFAULT_wxUSE_NEW_GRID=no
5651 DEFAULT_wxUSE_IMAGLIST=no
5652 DEFAULT_wxUSE_LISTBOX=no
5653 DEFAULT_wxUSE_LISTCTRL=no
5654 DEFAULT_wxUSE_NOTEBOOK=no
5655 DEFAULT_wxUSE_PROPSHEET=no
5656 DEFAULT_wxUSE_RADIOBOX=no
5657 DEFAULT_wxUSE_RADIOBTN=no
5658 DEFAULT_wxUSE_SASH=no
5659 DEFAULT_wxUSE_SCROLLBAR=no
5660 DEFAULT_wxUSE_SLIDER=no
5661 DEFAULT_wxUSE_SPINBTN=no
5662 DEFAULT_wxUSE_SPINCTRL=no
5663 DEFAULT_wxUSE_SPLITTER=no
5664 DEFAULT_wxUSE_STATBMP=no
5665 DEFAULT_wxUSE_STATBOX=no
5666 DEFAULT_wxUSE_STATLINE=no
5667 DEFAULT_wxUSE_STATUSBAR=no
5668 DEFAULT_wxUSE_TAB_DIALOG=no
5669 DEFAULT_wxUSE_TOGGLEBTN=no
5670 DEFAULT_wxUSE_TOOLBAR=no
5671 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5672 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5673 DEFAULT_wxUSE_TOOLTIPS=no
5674 DEFAULT_wxUSE_TREECTRL=no
5675 DEFAULT_wxUSE_POPUPWIN=no
5676 DEFAULT_wxUSE_TIPWINDOW=no
5677 fi
5678
5679
5680 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5681 echo "configure:5682: checking for --enable-accel" >&5
5682 no_cache=0
5683 # Check whether --enable-accel or --disable-accel was given.
5684 if test "${enable_accel+set}" = set; then
5685 enableval="$enable_accel"
5686
5687 if test "$enableval" = yes; then
5688 ac_cv_use_accel='wxUSE_ACCEL=yes'
5689 else
5690 ac_cv_use_accel='wxUSE_ACCEL=no'
5691 fi
5692
5693 else
5694
5695 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5696 if test "x$LINE" != x ; then
5697 eval "DEFAULT_$LINE"
5698 else
5699 no_cache=1
5700 fi
5701
5702 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5703
5704 fi
5705
5706
5707 eval "$ac_cv_use_accel"
5708 if test "$no_cache" != 1; then
5709 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5710 fi
5711
5712 if test "$wxUSE_ACCEL" = yes; then
5713 echo "$ac_t""yes" 1>&6
5714 else
5715 echo "$ac_t""no" 1>&6
5716 fi
5717
5718
5719 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5720 echo "configure:5721: checking for --enable-button" >&5
5721 no_cache=0
5722 # Check whether --enable-button or --disable-button was given.
5723 if test "${enable_button+set}" = set; then
5724 enableval="$enable_button"
5725
5726 if test "$enableval" = yes; then
5727 ac_cv_use_button='wxUSE_BUTTON=yes'
5728 else
5729 ac_cv_use_button='wxUSE_BUTTON=no'
5730 fi
5731
5732 else
5733
5734 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5735 if test "x$LINE" != x ; then
5736 eval "DEFAULT_$LINE"
5737 else
5738 no_cache=1
5739 fi
5740
5741 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5742
5743 fi
5744
5745
5746 eval "$ac_cv_use_button"
5747 if test "$no_cache" != 1; then
5748 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5749 fi
5750
5751 if test "$wxUSE_BUTTON" = yes; then
5752 echo "$ac_t""yes" 1>&6
5753 else
5754 echo "$ac_t""no" 1>&6
5755 fi
5756
5757
5758 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5759 echo "configure:5760: checking for --enable-bmpbutton" >&5
5760 no_cache=0
5761 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5762 if test "${enable_bmpbutton+set}" = set; then
5763 enableval="$enable_bmpbutton"
5764
5765 if test "$enableval" = yes; then
5766 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5767 else
5768 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5769 fi
5770
5771 else
5772
5773 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5781
5782 fi
5783
5784
5785 eval "$ac_cv_use_bmpbutton"
5786 if test "$no_cache" != 1; then
5787 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5788 fi
5789
5790 if test "$wxUSE_BMPBUTTON" = yes; then
5791 echo "$ac_t""yes" 1>&6
5792 else
5793 echo "$ac_t""no" 1>&6
5794 fi
5795
5796
5797 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5798 echo "configure:5799: checking for --enable-calendar" >&5
5799 no_cache=0
5800 # Check whether --enable-calendar or --disable-calendar was given.
5801 if test "${enable_calendar+set}" = set; then
5802 enableval="$enable_calendar"
5803
5804 if test "$enableval" = yes; then
5805 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5806 else
5807 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5808 fi
5809
5810 else
5811
5812 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5813 if test "x$LINE" != x ; then
5814 eval "DEFAULT_$LINE"
5815 else
5816 no_cache=1
5817 fi
5818
5819 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5820
5821 fi
5822
5823
5824 eval "$ac_cv_use_calendar"
5825 if test "$no_cache" != 1; then
5826 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5827 fi
5828
5829 if test "$wxUSE_CALCTRL" = yes; then
5830 echo "$ac_t""yes" 1>&6
5831 else
5832 echo "$ac_t""no" 1>&6
5833 fi
5834
5835
5836 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5837 echo "configure:5838: checking for --enable-caret" >&5
5838 no_cache=0
5839 # Check whether --enable-caret or --disable-caret was given.
5840 if test "${enable_caret+set}" = set; then
5841 enableval="$enable_caret"
5842
5843 if test "$enableval" = yes; then
5844 ac_cv_use_caret='wxUSE_CARET=yes'
5845 else
5846 ac_cv_use_caret='wxUSE_CARET=no'
5847 fi
5848
5849 else
5850
5851 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5852 if test "x$LINE" != x ; then
5853 eval "DEFAULT_$LINE"
5854 else
5855 no_cache=1
5856 fi
5857
5858 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5859
5860 fi
5861
5862
5863 eval "$ac_cv_use_caret"
5864 if test "$no_cache" != 1; then
5865 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5866 fi
5867
5868 if test "$wxUSE_CARET" = yes; then
5869 echo "$ac_t""yes" 1>&6
5870 else
5871 echo "$ac_t""no" 1>&6
5872 fi
5873
5874
5875 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5876 echo "configure:5877: checking for --enable-checkbox" >&5
5877 no_cache=0
5878 # Check whether --enable-checkbox or --disable-checkbox was given.
5879 if test "${enable_checkbox+set}" = set; then
5880 enableval="$enable_checkbox"
5881
5882 if test "$enableval" = yes; then
5883 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5884 else
5885 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5886 fi
5887
5888 else
5889
5890 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5891 if test "x$LINE" != x ; then
5892 eval "DEFAULT_$LINE"
5893 else
5894 no_cache=1
5895 fi
5896
5897 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5898
5899 fi
5900
5901
5902 eval "$ac_cv_use_checkbox"
5903 if test "$no_cache" != 1; then
5904 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5905 fi
5906
5907 if test "$wxUSE_CHECKBOX" = yes; then
5908 echo "$ac_t""yes" 1>&6
5909 else
5910 echo "$ac_t""no" 1>&6
5911 fi
5912
5913
5914 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5915 echo "configure:5916: checking for --enable-checklst" >&5
5916 no_cache=0
5917 # Check whether --enable-checklst or --disable-checklst was given.
5918 if test "${enable_checklst+set}" = set; then
5919 enableval="$enable_checklst"
5920
5921 if test "$enableval" = yes; then
5922 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5923 else
5924 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5925 fi
5926
5927 else
5928
5929 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5930 if test "x$LINE" != x ; then
5931 eval "DEFAULT_$LINE"
5932 else
5933 no_cache=1
5934 fi
5935
5936 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5937
5938 fi
5939
5940
5941 eval "$ac_cv_use_checklst"
5942 if test "$no_cache" != 1; then
5943 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5944 fi
5945
5946 if test "$wxUSE_CHECKLST" = yes; then
5947 echo "$ac_t""yes" 1>&6
5948 else
5949 echo "$ac_t""no" 1>&6
5950 fi
5951
5952
5953 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5954 echo "configure:5955: checking for --enable-choice" >&5
5955 no_cache=0
5956 # Check whether --enable-choice or --disable-choice was given.
5957 if test "${enable_choice+set}" = set; then
5958 enableval="$enable_choice"
5959
5960 if test "$enableval" = yes; then
5961 ac_cv_use_choice='wxUSE_CHOICE=yes'
5962 else
5963 ac_cv_use_choice='wxUSE_CHOICE=no'
5964 fi
5965
5966 else
5967
5968 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5969 if test "x$LINE" != x ; then
5970 eval "DEFAULT_$LINE"
5971 else
5972 no_cache=1
5973 fi
5974
5975 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5976
5977 fi
5978
5979
5980 eval "$ac_cv_use_choice"
5981 if test "$no_cache" != 1; then
5982 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5983 fi
5984
5985 if test "$wxUSE_CHOICE" = yes; then
5986 echo "$ac_t""yes" 1>&6
5987 else
5988 echo "$ac_t""no" 1>&6
5989 fi
5990
5991
5992 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5993 echo "configure:5994: checking for --enable-combobox" >&5
5994 no_cache=0
5995 # Check whether --enable-combobox or --disable-combobox was given.
5996 if test "${enable_combobox+set}" = set; then
5997 enableval="$enable_combobox"
5998
5999 if test "$enableval" = yes; then
6000 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6001 else
6002 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6003 fi
6004
6005 else
6006
6007 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6008 if test "x$LINE" != x ; then
6009 eval "DEFAULT_$LINE"
6010 else
6011 no_cache=1
6012 fi
6013
6014 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6015
6016 fi
6017
6018
6019 eval "$ac_cv_use_combobox"
6020 if test "$no_cache" != 1; then
6021 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6022 fi
6023
6024 if test "$wxUSE_COMBOBOX" = yes; then
6025 echo "$ac_t""yes" 1>&6
6026 else
6027 echo "$ac_t""no" 1>&6
6028 fi
6029
6030
6031 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6032 echo "configure:6033: checking for --enable-gauge" >&5
6033 no_cache=0
6034 # Check whether --enable-gauge or --disable-gauge was given.
6035 if test "${enable_gauge+set}" = set; then
6036 enableval="$enable_gauge"
6037
6038 if test "$enableval" = yes; then
6039 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6040 else
6041 ac_cv_use_gauge='wxUSE_GAUGE=no'
6042 fi
6043
6044 else
6045
6046 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6047 if test "x$LINE" != x ; then
6048 eval "DEFAULT_$LINE"
6049 else
6050 no_cache=1
6051 fi
6052
6053 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6054
6055 fi
6056
6057
6058 eval "$ac_cv_use_gauge"
6059 if test "$no_cache" != 1; then
6060 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6061 fi
6062
6063 if test "$wxUSE_GAUGE" = yes; then
6064 echo "$ac_t""yes" 1>&6
6065 else
6066 echo "$ac_t""no" 1>&6
6067 fi
6068
6069
6070 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6071 echo "configure:6072: checking for --enable-grid" >&5
6072 no_cache=0
6073 # Check whether --enable-grid or --disable-grid was given.
6074 if test "${enable_grid+set}" = set; then
6075 enableval="$enable_grid"
6076
6077 if test "$enableval" = yes; then
6078 ac_cv_use_grid='wxUSE_GRID=yes'
6079 else
6080 ac_cv_use_grid='wxUSE_GRID=no'
6081 fi
6082
6083 else
6084
6085 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6086 if test "x$LINE" != x ; then
6087 eval "DEFAULT_$LINE"
6088 else
6089 no_cache=1
6090 fi
6091
6092 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6093
6094 fi
6095
6096
6097 eval "$ac_cv_use_grid"
6098 if test "$no_cache" != 1; then
6099 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6100 fi
6101
6102 if test "$wxUSE_GRID" = yes; then
6103 echo "$ac_t""yes" 1>&6
6104 else
6105 echo "$ac_t""no" 1>&6
6106 fi
6107
6108
6109 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6110 echo "configure:6111: checking for --enable-newgrid" >&5
6111 no_cache=0
6112 # Check whether --enable-newgrid or --disable-newgrid was given.
6113 if test "${enable_newgrid+set}" = set; then
6114 enableval="$enable_newgrid"
6115
6116 if test "$enableval" = yes; then
6117 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6118 else
6119 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6120 fi
6121
6122 else
6123
6124 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6125 if test "x$LINE" != x ; then
6126 eval "DEFAULT_$LINE"
6127 else
6128 no_cache=1
6129 fi
6130
6131 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6132
6133 fi
6134
6135
6136 eval "$ac_cv_use_newgrid"
6137 if test "$no_cache" != 1; then
6138 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6139 fi
6140
6141 if test "$wxUSE_NEW_GRID" = yes; then
6142 echo "$ac_t""yes" 1>&6
6143 else
6144 echo "$ac_t""no" 1>&6
6145 fi
6146
6147
6148 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6149 echo "configure:6150: checking for --enable-imaglist" >&5
6150 no_cache=0
6151 # Check whether --enable-imaglist or --disable-imaglist was given.
6152 if test "${enable_imaglist+set}" = set; then
6153 enableval="$enable_imaglist"
6154
6155 if test "$enableval" = yes; then
6156 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6157 else
6158 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6159 fi
6160
6161 else
6162
6163 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6164 if test "x$LINE" != x ; then
6165 eval "DEFAULT_$LINE"
6166 else
6167 no_cache=1
6168 fi
6169
6170 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6171
6172 fi
6173
6174
6175 eval "$ac_cv_use_imaglist"
6176 if test "$no_cache" != 1; then
6177 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6178 fi
6179
6180 if test "$wxUSE_IMAGLIST" = yes; then
6181 echo "$ac_t""yes" 1>&6
6182 else
6183 echo "$ac_t""no" 1>&6
6184 fi
6185
6186
6187 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6188 echo "configure:6189: checking for --enable-listbox" >&5
6189 no_cache=0
6190 # Check whether --enable-listbox or --disable-listbox was given.
6191 if test "${enable_listbox+set}" = set; then
6192 enableval="$enable_listbox"
6193
6194 if test "$enableval" = yes; then
6195 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6196 else
6197 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6198 fi
6199
6200 else
6201
6202 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6203 if test "x$LINE" != x ; then
6204 eval "DEFAULT_$LINE"
6205 else
6206 no_cache=1
6207 fi
6208
6209 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6210
6211 fi
6212
6213
6214 eval "$ac_cv_use_listbox"
6215 if test "$no_cache" != 1; then
6216 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6217 fi
6218
6219 if test "$wxUSE_LISTBOX" = yes; then
6220 echo "$ac_t""yes" 1>&6
6221 else
6222 echo "$ac_t""no" 1>&6
6223 fi
6224
6225
6226 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6227 echo "configure:6228: checking for --enable-listctrl" >&5
6228 no_cache=0
6229 # Check whether --enable-listctrl or --disable-listctrl was given.
6230 if test "${enable_listctrl+set}" = set; then
6231 enableval="$enable_listctrl"
6232
6233 if test "$enableval" = yes; then
6234 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6235 else
6236 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6237 fi
6238
6239 else
6240
6241 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6242 if test "x$LINE" != x ; then
6243 eval "DEFAULT_$LINE"
6244 else
6245 no_cache=1
6246 fi
6247
6248 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6249
6250 fi
6251
6252
6253 eval "$ac_cv_use_listctrl"
6254 if test "$no_cache" != 1; then
6255 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6256 fi
6257
6258 if test "$wxUSE_LISTCTRL" = yes; then
6259 echo "$ac_t""yes" 1>&6
6260 else
6261 echo "$ac_t""no" 1>&6
6262 fi
6263
6264
6265 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6266 echo "configure:6267: checking for --enable-notebook" >&5
6267 no_cache=0
6268 # Check whether --enable-notebook or --disable-notebook was given.
6269 if test "${enable_notebook+set}" = set; then
6270 enableval="$enable_notebook"
6271
6272 if test "$enableval" = yes; then
6273 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6274 else
6275 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6276 fi
6277
6278 else
6279
6280 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6281 if test "x$LINE" != x ; then
6282 eval "DEFAULT_$LINE"
6283 else
6284 no_cache=1
6285 fi
6286
6287 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6288
6289 fi
6290
6291
6292 eval "$ac_cv_use_notebook"
6293 if test "$no_cache" != 1; then
6294 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6295 fi
6296
6297 if test "$wxUSE_NOTEBOOK" = yes; then
6298 echo "$ac_t""yes" 1>&6
6299 else
6300 echo "$ac_t""no" 1>&6
6301 fi
6302
6303
6304 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6305 echo "configure:6306: checking for --enable-propsheet" >&5
6306 no_cache=0
6307 # Check whether --enable-propsheet or --disable-propsheet was given.
6308 if test "${enable_propsheet+set}" = set; then
6309 enableval="$enable_propsheet"
6310
6311 if test "$enableval" = yes; then
6312 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6313 else
6314 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6315 fi
6316
6317 else
6318
6319 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6320 if test "x$LINE" != x ; then
6321 eval "DEFAULT_$LINE"
6322 else
6323 no_cache=1
6324 fi
6325
6326 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6327
6328 fi
6329
6330
6331 eval "$ac_cv_use_propsheet"
6332 if test "$no_cache" != 1; then
6333 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6334 fi
6335
6336 if test "$wxUSE_PROPSHEET" = yes; then
6337 echo "$ac_t""yes" 1>&6
6338 else
6339 echo "$ac_t""no" 1>&6
6340 fi
6341
6342
6343 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6344 echo "configure:6345: checking for --enable-radiobox" >&5
6345 no_cache=0
6346 # Check whether --enable-radiobox or --disable-radiobox was given.
6347 if test "${enable_radiobox+set}" = set; then
6348 enableval="$enable_radiobox"
6349
6350 if test "$enableval" = yes; then
6351 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6352 else
6353 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6354 fi
6355
6356 else
6357
6358 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6359 if test "x$LINE" != x ; then
6360 eval "DEFAULT_$LINE"
6361 else
6362 no_cache=1
6363 fi
6364
6365 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6366
6367 fi
6368
6369
6370 eval "$ac_cv_use_radiobox"
6371 if test "$no_cache" != 1; then
6372 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6373 fi
6374
6375 if test "$wxUSE_RADIOBOX" = yes; then
6376 echo "$ac_t""yes" 1>&6
6377 else
6378 echo "$ac_t""no" 1>&6
6379 fi
6380
6381
6382 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6383 echo "configure:6384: checking for --enable-radiobtn" >&5
6384 no_cache=0
6385 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6386 if test "${enable_radiobtn+set}" = set; then
6387 enableval="$enable_radiobtn"
6388
6389 if test "$enableval" = yes; then
6390 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6391 else
6392 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6393 fi
6394
6395 else
6396
6397 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6398 if test "x$LINE" != x ; then
6399 eval "DEFAULT_$LINE"
6400 else
6401 no_cache=1
6402 fi
6403
6404 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6405
6406 fi
6407
6408
6409 eval "$ac_cv_use_radiobtn"
6410 if test "$no_cache" != 1; then
6411 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6412 fi
6413
6414 if test "$wxUSE_RADIOBTN" = yes; then
6415 echo "$ac_t""yes" 1>&6
6416 else
6417 echo "$ac_t""no" 1>&6
6418 fi
6419
6420
6421 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6422 echo "configure:6423: checking for --enable-sash" >&5
6423 no_cache=0
6424 # Check whether --enable-sash or --disable-sash was given.
6425 if test "${enable_sash+set}" = set; then
6426 enableval="$enable_sash"
6427
6428 if test "$enableval" = yes; then
6429 ac_cv_use_sash='wxUSE_SASH=yes'
6430 else
6431 ac_cv_use_sash='wxUSE_SASH=no'
6432 fi
6433
6434 else
6435
6436 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6437 if test "x$LINE" != x ; then
6438 eval "DEFAULT_$LINE"
6439 else
6440 no_cache=1
6441 fi
6442
6443 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6444
6445 fi
6446
6447
6448 eval "$ac_cv_use_sash"
6449 if test "$no_cache" != 1; then
6450 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6451 fi
6452
6453 if test "$wxUSE_SASH" = yes; then
6454 echo "$ac_t""yes" 1>&6
6455 else
6456 echo "$ac_t""no" 1>&6
6457 fi
6458
6459
6460 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6461 echo "configure:6462: checking for --enable-scrollbar" >&5
6462 no_cache=0
6463 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6464 if test "${enable_scrollbar+set}" = set; then
6465 enableval="$enable_scrollbar"
6466
6467 if test "$enableval" = yes; then
6468 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6469 else
6470 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6471 fi
6472
6473 else
6474
6475 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6476 if test "x$LINE" != x ; then
6477 eval "DEFAULT_$LINE"
6478 else
6479 no_cache=1
6480 fi
6481
6482 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6483
6484 fi
6485
6486
6487 eval "$ac_cv_use_scrollbar"
6488 if test "$no_cache" != 1; then
6489 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6490 fi
6491
6492 if test "$wxUSE_SCROLLBAR" = yes; then
6493 echo "$ac_t""yes" 1>&6
6494 else
6495 echo "$ac_t""no" 1>&6
6496 fi
6497
6498
6499 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6500 echo "configure:6501: checking for --enable-slider" >&5
6501 no_cache=0
6502 # Check whether --enable-slider or --disable-slider was given.
6503 if test "${enable_slider+set}" = set; then
6504 enableval="$enable_slider"
6505
6506 if test "$enableval" = yes; then
6507 ac_cv_use_slider='wxUSE_SLIDER=yes'
6508 else
6509 ac_cv_use_slider='wxUSE_SLIDER=no'
6510 fi
6511
6512 else
6513
6514 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6515 if test "x$LINE" != x ; then
6516 eval "DEFAULT_$LINE"
6517 else
6518 no_cache=1
6519 fi
6520
6521 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6522
6523 fi
6524
6525
6526 eval "$ac_cv_use_slider"
6527 if test "$no_cache" != 1; then
6528 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6529 fi
6530
6531 if test "$wxUSE_SLIDER" = yes; then
6532 echo "$ac_t""yes" 1>&6
6533 else
6534 echo "$ac_t""no" 1>&6
6535 fi
6536
6537
6538 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6539 echo "configure:6540: checking for --enable-spinbtn" >&5
6540 no_cache=0
6541 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6542 if test "${enable_spinbtn+set}" = set; then
6543 enableval="$enable_spinbtn"
6544
6545 if test "$enableval" = yes; then
6546 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6547 else
6548 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6549 fi
6550
6551 else
6552
6553 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6554 if test "x$LINE" != x ; then
6555 eval "DEFAULT_$LINE"
6556 else
6557 no_cache=1
6558 fi
6559
6560 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6561
6562 fi
6563
6564
6565 eval "$ac_cv_use_spinbtn"
6566 if test "$no_cache" != 1; then
6567 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6568 fi
6569
6570 if test "$wxUSE_SPINBTN" = yes; then
6571 echo "$ac_t""yes" 1>&6
6572 else
6573 echo "$ac_t""no" 1>&6
6574 fi
6575
6576
6577 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6578 echo "configure:6579: checking for --enable-spinctrl" >&5
6579 no_cache=0
6580 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6581 if test "${enable_spinctrl+set}" = set; then
6582 enableval="$enable_spinctrl"
6583
6584 if test "$enableval" = yes; then
6585 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6586 else
6587 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6588 fi
6589
6590 else
6591
6592 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6593 if test "x$LINE" != x ; then
6594 eval "DEFAULT_$LINE"
6595 else
6596 no_cache=1
6597 fi
6598
6599 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6600
6601 fi
6602
6603
6604 eval "$ac_cv_use_spinctrl"
6605 if test "$no_cache" != 1; then
6606 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6607 fi
6608
6609 if test "$wxUSE_SPINCTRL" = yes; then
6610 echo "$ac_t""yes" 1>&6
6611 else
6612 echo "$ac_t""no" 1>&6
6613 fi
6614
6615
6616 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6617 echo "configure:6618: checking for --enable-splitter" >&5
6618 no_cache=0
6619 # Check whether --enable-splitter or --disable-splitter was given.
6620 if test "${enable_splitter+set}" = set; then
6621 enableval="$enable_splitter"
6622
6623 if test "$enableval" = yes; then
6624 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6625 else
6626 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6627 fi
6628
6629 else
6630
6631 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6632 if test "x$LINE" != x ; then
6633 eval "DEFAULT_$LINE"
6634 else
6635 no_cache=1
6636 fi
6637
6638 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6639
6640 fi
6641
6642
6643 eval "$ac_cv_use_splitter"
6644 if test "$no_cache" != 1; then
6645 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6646 fi
6647
6648 if test "$wxUSE_SPLITTER" = yes; then
6649 echo "$ac_t""yes" 1>&6
6650 else
6651 echo "$ac_t""no" 1>&6
6652 fi
6653
6654
6655 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6656 echo "configure:6657: checking for --enable-statbmp" >&5
6657 no_cache=0
6658 # Check whether --enable-statbmp or --disable-statbmp was given.
6659 if test "${enable_statbmp+set}" = set; then
6660 enableval="$enable_statbmp"
6661
6662 if test "$enableval" = yes; then
6663 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6664 else
6665 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6666 fi
6667
6668 else
6669
6670 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6671 if test "x$LINE" != x ; then
6672 eval "DEFAULT_$LINE"
6673 else
6674 no_cache=1
6675 fi
6676
6677 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6678
6679 fi
6680
6681
6682 eval "$ac_cv_use_statbmp"
6683 if test "$no_cache" != 1; then
6684 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6685 fi
6686
6687 if test "$wxUSE_STATBMP" = yes; then
6688 echo "$ac_t""yes" 1>&6
6689 else
6690 echo "$ac_t""no" 1>&6
6691 fi
6692
6693
6694 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6695 echo "configure:6696: checking for --enable-statbox" >&5
6696 no_cache=0
6697 # Check whether --enable-statbox or --disable-statbox was given.
6698 if test "${enable_statbox+set}" = set; then
6699 enableval="$enable_statbox"
6700
6701 if test "$enableval" = yes; then
6702 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6703 else
6704 ac_cv_use_statbox='wxUSE_STATBOX=no'
6705 fi
6706
6707 else
6708
6709 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6710 if test "x$LINE" != x ; then
6711 eval "DEFAULT_$LINE"
6712 else
6713 no_cache=1
6714 fi
6715
6716 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6717
6718 fi
6719
6720
6721 eval "$ac_cv_use_statbox"
6722 if test "$no_cache" != 1; then
6723 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6724 fi
6725
6726 if test "$wxUSE_STATBOX" = yes; then
6727 echo "$ac_t""yes" 1>&6
6728 else
6729 echo "$ac_t""no" 1>&6
6730 fi
6731
6732
6733 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6734 echo "configure:6735: checking for --enable-statline" >&5
6735 no_cache=0
6736 # Check whether --enable-statline or --disable-statline was given.
6737 if test "${enable_statline+set}" = set; then
6738 enableval="$enable_statline"
6739
6740 if test "$enableval" = yes; then
6741 ac_cv_use_statline='wxUSE_STATLINE=yes'
6742 else
6743 ac_cv_use_statline='wxUSE_STATLINE=no'
6744 fi
6745
6746 else
6747
6748 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6749 if test "x$LINE" != x ; then
6750 eval "DEFAULT_$LINE"
6751 else
6752 no_cache=1
6753 fi
6754
6755 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6756
6757 fi
6758
6759
6760 eval "$ac_cv_use_statline"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_STATLINE" = yes; then
6766 echo "$ac_t""yes" 1>&6
6767 else
6768 echo "$ac_t""no" 1>&6
6769 fi
6770
6771
6772 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6773 echo "configure:6774: checking for --enable-stattext" >&5
6774 no_cache=0
6775 # Check whether --enable-stattext or --disable-stattext was given.
6776 if test "${enable_stattext+set}" = set; then
6777 enableval="$enable_stattext"
6778
6779 if test "$enableval" = yes; then
6780 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6781 else
6782 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6783 fi
6784
6785 else
6786
6787 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6788 if test "x$LINE" != x ; then
6789 eval "DEFAULT_$LINE"
6790 else
6791 no_cache=1
6792 fi
6793
6794 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6795
6796 fi
6797
6798
6799 eval "$ac_cv_use_stattext"
6800 if test "$no_cache" != 1; then
6801 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6802 fi
6803
6804 if test "$wxUSE_STATTEXT" = yes; then
6805 echo "$ac_t""yes" 1>&6
6806 else
6807 echo "$ac_t""no" 1>&6
6808 fi
6809
6810
6811 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6812 echo "configure:6813: checking for --enable-statusbar" >&5
6813 no_cache=0
6814 # Check whether --enable-statusbar or --disable-statusbar was given.
6815 if test "${enable_statusbar+set}" = set; then
6816 enableval="$enable_statusbar"
6817
6818 if test "$enableval" = yes; then
6819 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6820 else
6821 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6822 fi
6823
6824 else
6825
6826 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6827 if test "x$LINE" != x ; then
6828 eval "DEFAULT_$LINE"
6829 else
6830 no_cache=1
6831 fi
6832
6833 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6834
6835 fi
6836
6837
6838 eval "$ac_cv_use_statusbar"
6839 if test "$no_cache" != 1; then
6840 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6841 fi
6842
6843 if test "$wxUSE_STATUSBAR" = yes; then
6844 echo "$ac_t""yes" 1>&6
6845 else
6846 echo "$ac_t""no" 1>&6
6847 fi
6848
6849
6850 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6851 echo "configure:6852: checking for --enable-tabdialog" >&5
6852 no_cache=0
6853 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6854 if test "${enable_tabdialog+set}" = set; then
6855 enableval="$enable_tabdialog"
6856
6857 if test "$enableval" = yes; then
6858 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6859 else
6860 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6861 fi
6862
6863 else
6864
6865 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6866 if test "x$LINE" != x ; then
6867 eval "DEFAULT_$LINE"
6868 else
6869 no_cache=1
6870 fi
6871
6872 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6873
6874 fi
6875
6876
6877 eval "$ac_cv_use_tabdialog"
6878 if test "$no_cache" != 1; then
6879 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6880 fi
6881
6882 if test "$wxUSE_TABDIALOG" = yes; then
6883 echo "$ac_t""yes" 1>&6
6884 else
6885 echo "$ac_t""no" 1>&6
6886 fi
6887
6888
6889 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6890 echo "configure:6891: checking for --enable-textctrl" >&5
6891 no_cache=0
6892 # Check whether --enable-textctrl or --disable-textctrl was given.
6893 if test "${enable_textctrl+set}" = set; then
6894 enableval="$enable_textctrl"
6895
6896 if test "$enableval" = yes; then
6897 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6898 else
6899 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6900 fi
6901
6902 else
6903
6904 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6912
6913 fi
6914
6915
6916 eval "$ac_cv_use_textctrl"
6917 if test "$no_cache" != 1; then
6918 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6919 fi
6920
6921 if test "$wxUSE_TEXTCTRL" = yes; then
6922 echo "$ac_t""yes" 1>&6
6923 else
6924 echo "$ac_t""no" 1>&6
6925 fi
6926
6927
6928 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6929 echo "configure:6930: checking for --enable-togglebtn" >&5
6930 no_cache=0
6931 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6932 if test "${enable_togglebtn+set}" = set; then
6933 enableval="$enable_togglebtn"
6934
6935 if test "$enableval" = yes; then
6936 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6937 else
6938 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6939 fi
6940
6941 else
6942
6943 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6944 if test "x$LINE" != x ; then
6945 eval "DEFAULT_$LINE"
6946 else
6947 no_cache=1
6948 fi
6949
6950 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6951
6952 fi
6953
6954
6955 eval "$ac_cv_use_togglebtn"
6956 if test "$no_cache" != 1; then
6957 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6958 fi
6959
6960 if test "$wxUSE_TOGGLEBTN" = yes; then
6961 echo "$ac_t""yes" 1>&6
6962 else
6963 echo "$ac_t""no" 1>&6
6964 fi
6965
6966
6967 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6968 echo "configure:6969: checking for --enable-toolbar" >&5
6969 no_cache=0
6970 # Check whether --enable-toolbar or --disable-toolbar was given.
6971 if test "${enable_toolbar+set}" = set; then
6972 enableval="$enable_toolbar"
6973
6974 if test "$enableval" = yes; then
6975 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6976 else
6977 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6978 fi
6979
6980 else
6981
6982 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6983 if test "x$LINE" != x ; then
6984 eval "DEFAULT_$LINE"
6985 else
6986 no_cache=1
6987 fi
6988
6989 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6990
6991 fi
6992
6993
6994 eval "$ac_cv_use_toolbar"
6995 if test "$no_cache" != 1; then
6996 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6997 fi
6998
6999 if test "$wxUSE_TOOLBAR" = yes; then
7000 echo "$ac_t""yes" 1>&6
7001 else
7002 echo "$ac_t""no" 1>&6
7003 fi
7004
7005
7006 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7007 echo "configure:7008: checking for --enable-tbarnative" >&5
7008 no_cache=0
7009 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7010 if test "${enable_tbarnative+set}" = set; then
7011 enableval="$enable_tbarnative"
7012
7013 if test "$enableval" = yes; then
7014 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7015 else
7016 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7017 fi
7018
7019 else
7020
7021 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7022 if test "x$LINE" != x ; then
7023 eval "DEFAULT_$LINE"
7024 else
7025 no_cache=1
7026 fi
7027
7028 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7029
7030 fi
7031
7032
7033 eval "$ac_cv_use_tbarnative"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7039 echo "$ac_t""yes" 1>&6
7040 else
7041 echo "$ac_t""no" 1>&6
7042 fi
7043
7044
7045 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7046 echo "configure:7047: checking for --enable-tbarsmpl" >&5
7047 no_cache=0
7048 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7049 if test "${enable_tbarsmpl+set}" = set; then
7050 enableval="$enable_tbarsmpl"
7051
7052 if test "$enableval" = yes; then
7053 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7054 else
7055 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7056 fi
7057
7058 else
7059
7060 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7061 if test "x$LINE" != x ; then
7062 eval "DEFAULT_$LINE"
7063 else
7064 no_cache=1
7065 fi
7066
7067 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7068
7069 fi
7070
7071
7072 eval "$ac_cv_use_tbarsmpl"
7073 if test "$no_cache" != 1; then
7074 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7075 fi
7076
7077 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7078 echo "$ac_t""yes" 1>&6
7079 else
7080 echo "$ac_t""no" 1>&6
7081 fi
7082
7083
7084 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7085 echo "configure:7086: checking for --enable-treectrl" >&5
7086 no_cache=0
7087 # Check whether --enable-treectrl or --disable-treectrl was given.
7088 if test "${enable_treectrl+set}" = set; then
7089 enableval="$enable_treectrl"
7090
7091 if test "$enableval" = yes; then
7092 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7093 else
7094 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7095 fi
7096
7097 else
7098
7099 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7100 if test "x$LINE" != x ; then
7101 eval "DEFAULT_$LINE"
7102 else
7103 no_cache=1
7104 fi
7105
7106 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7107
7108 fi
7109
7110
7111 eval "$ac_cv_use_treectrl"
7112 if test "$no_cache" != 1; then
7113 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7114 fi
7115
7116 if test "$wxUSE_TREECTRL" = yes; then
7117 echo "$ac_t""yes" 1>&6
7118 else
7119 echo "$ac_t""no" 1>&6
7120 fi
7121
7122
7123 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7124 echo "configure:7125: checking for --enable-tipwindow" >&5
7125 no_cache=0
7126 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7127 if test "${enable_tipwindow+set}" = set; then
7128 enableval="$enable_tipwindow"
7129
7130 if test "$enableval" = yes; then
7131 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7132 else
7133 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7134 fi
7135
7136 else
7137
7138 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7139 if test "x$LINE" != x ; then
7140 eval "DEFAULT_$LINE"
7141 else
7142 no_cache=1
7143 fi
7144
7145 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7146
7147 fi
7148
7149
7150 eval "$ac_cv_use_tipwindow"
7151 if test "$no_cache" != 1; then
7152 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7153 fi
7154
7155 if test "$wxUSE_TIPWINDOW" = yes; then
7156 echo "$ac_t""yes" 1>&6
7157 else
7158 echo "$ac_t""no" 1>&6
7159 fi
7160
7161
7162 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7163 echo "configure:7164: checking for --enable-popupwin" >&5
7164 no_cache=0
7165 # Check whether --enable-popupwin or --disable-popupwin was given.
7166 if test "${enable_popupwin+set}" = set; then
7167 enableval="$enable_popupwin"
7168
7169 if test "$enableval" = yes; then
7170 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7171 else
7172 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7173 fi
7174
7175 else
7176
7177 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7178 if test "x$LINE" != x ; then
7179 eval "DEFAULT_$LINE"
7180 else
7181 no_cache=1
7182 fi
7183
7184 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7185
7186 fi
7187
7188
7189 eval "$ac_cv_use_popupwin"
7190 if test "$no_cache" != 1; then
7191 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7192 fi
7193
7194 if test "$wxUSE_POPUPWIN" = yes; then
7195 echo "$ac_t""yes" 1>&6
7196 else
7197 echo "$ac_t""no" 1>&6
7198 fi
7199
7200
7201
7202
7203 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7204 echo "configure:7205: checking for --enable-commondlg" >&5
7205 no_cache=0
7206 # Check whether --enable-commondlg or --disable-commondlg was given.
7207 if test "${enable_commondlg+set}" = set; then
7208 enableval="$enable_commondlg"
7209
7210 if test "$enableval" = yes; then
7211 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7212 else
7213 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7214 fi
7215
7216 else
7217
7218 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7219 if test "x$LINE" != x ; then
7220 eval "DEFAULT_$LINE"
7221 else
7222 no_cache=1
7223 fi
7224
7225 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7226
7227 fi
7228
7229
7230 eval "$ac_cv_use_commondlg"
7231 if test "$no_cache" != 1; then
7232 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7233 fi
7234
7235 if test "$wxUSE_COMMONDLGS" = yes; then
7236 echo "$ac_t""yes" 1>&6
7237 else
7238 echo "$ac_t""no" 1>&6
7239 fi
7240
7241
7242 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7243 echo "configure:7244: checking for --enable-choicedlg" >&5
7244 no_cache=0
7245 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7246 if test "${enable_choicedlg+set}" = set; then
7247 enableval="$enable_choicedlg"
7248
7249 if test "$enableval" = yes; then
7250 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7251 else
7252 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7253 fi
7254
7255 else
7256
7257 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7258 if test "x$LINE" != x ; then
7259 eval "DEFAULT_$LINE"
7260 else
7261 no_cache=1
7262 fi
7263
7264 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7265
7266 fi
7267
7268
7269 eval "$ac_cv_use_choicedlg"
7270 if test "$no_cache" != 1; then
7271 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7272 fi
7273
7274 if test "$wxUSE_CHOICEDLG" = yes; then
7275 echo "$ac_t""yes" 1>&6
7276 else
7277 echo "$ac_t""no" 1>&6
7278 fi
7279
7280
7281 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7282 echo "configure:7283: checking for --enable-coldlg" >&5
7283 no_cache=0
7284 # Check whether --enable-coldlg or --disable-coldlg was given.
7285 if test "${enable_coldlg+set}" = set; then
7286 enableval="$enable_coldlg"
7287
7288 if test "$enableval" = yes; then
7289 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7290 else
7291 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7292 fi
7293
7294 else
7295
7296 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7297 if test "x$LINE" != x ; then
7298 eval "DEFAULT_$LINE"
7299 else
7300 no_cache=1
7301 fi
7302
7303 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7304
7305 fi
7306
7307
7308 eval "$ac_cv_use_coldlg"
7309 if test "$no_cache" != 1; then
7310 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7311 fi
7312
7313 if test "$wxUSE_COLOURDLG" = yes; then
7314 echo "$ac_t""yes" 1>&6
7315 else
7316 echo "$ac_t""no" 1>&6
7317 fi
7318
7319
7320 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7321 echo "configure:7322: checking for --enable-filedlg" >&5
7322 no_cache=0
7323 # Check whether --enable-filedlg or --disable-filedlg was given.
7324 if test "${enable_filedlg+set}" = set; then
7325 enableval="$enable_filedlg"
7326
7327 if test "$enableval" = yes; then
7328 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7329 else
7330 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7331 fi
7332
7333 else
7334
7335 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7336 if test "x$LINE" != x ; then
7337 eval "DEFAULT_$LINE"
7338 else
7339 no_cache=1
7340 fi
7341
7342 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7343
7344 fi
7345
7346
7347 eval "$ac_cv_use_filedlg"
7348 if test "$no_cache" != 1; then
7349 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7350 fi
7351
7352 if test "$wxUSE_FILEDLG" = yes; then
7353 echo "$ac_t""yes" 1>&6
7354 else
7355 echo "$ac_t""no" 1>&6
7356 fi
7357
7358
7359 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7360 echo "configure:7361: checking for --enable-finddlg" >&5
7361 no_cache=0
7362 # Check whether --enable-finddlg or --disable-finddlg was given.
7363 if test "${enable_finddlg+set}" = set; then
7364 enableval="$enable_finddlg"
7365
7366 if test "$enableval" = yes; then
7367 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7368 else
7369 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7370 fi
7371
7372 else
7373
7374 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7375 if test "x$LINE" != x ; then
7376 eval "DEFAULT_$LINE"
7377 else
7378 no_cache=1
7379 fi
7380
7381 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7382
7383 fi
7384
7385
7386 eval "$ac_cv_use_finddlg"
7387 if test "$no_cache" != 1; then
7388 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7389 fi
7390
7391 if test "$wxUSE_FINDREPLDLG" = yes; then
7392 echo "$ac_t""yes" 1>&6
7393 else
7394 echo "$ac_t""no" 1>&6
7395 fi
7396
7397
7398 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7399 echo "configure:7400: checking for --enable-fontdlg" >&5
7400 no_cache=0
7401 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7402 if test "${enable_fontdlg+set}" = set; then
7403 enableval="$enable_fontdlg"
7404
7405 if test "$enableval" = yes; then
7406 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7407 else
7408 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7409 fi
7410
7411 else
7412
7413 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7414 if test "x$LINE" != x ; then
7415 eval "DEFAULT_$LINE"
7416 else
7417 no_cache=1
7418 fi
7419
7420 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7421
7422 fi
7423
7424
7425 eval "$ac_cv_use_fontdlg"
7426 if test "$no_cache" != 1; then
7427 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7428 fi
7429
7430 if test "$wxUSE_FONTDLG" = yes; then
7431 echo "$ac_t""yes" 1>&6
7432 else
7433 echo "$ac_t""no" 1>&6
7434 fi
7435
7436
7437 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7438 echo "configure:7439: checking for --enable-dirdlg" >&5
7439 no_cache=0
7440 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7441 if test "${enable_dirdlg+set}" = set; then
7442 enableval="$enable_dirdlg"
7443
7444 if test "$enableval" = yes; then
7445 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7446 else
7447 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7448 fi
7449
7450 else
7451
7452 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7453 if test "x$LINE" != x ; then
7454 eval "DEFAULT_$LINE"
7455 else
7456 no_cache=1
7457 fi
7458
7459 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7460
7461 fi
7462
7463
7464 eval "$ac_cv_use_dirdlg"
7465 if test "$no_cache" != 1; then
7466 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7467 fi
7468
7469 if test "$wxUSE_DIRDLG" = yes; then
7470 echo "$ac_t""yes" 1>&6
7471 else
7472 echo "$ac_t""no" 1>&6
7473 fi
7474
7475
7476 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7477 echo "configure:7478: checking for --enable-msgdlg" >&5
7478 no_cache=0
7479 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7480 if test "${enable_msgdlg+set}" = set; then
7481 enableval="$enable_msgdlg"
7482
7483 if test "$enableval" = yes; then
7484 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7485 else
7486 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7487 fi
7488
7489 else
7490
7491 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7492 if test "x$LINE" != x ; then
7493 eval "DEFAULT_$LINE"
7494 else
7495 no_cache=1
7496 fi
7497
7498 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7499
7500 fi
7501
7502
7503 eval "$ac_cv_use_msgdlg"
7504 if test "$no_cache" != 1; then
7505 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7506 fi
7507
7508 if test "$wxUSE_MSGDLG" = yes; then
7509 echo "$ac_t""yes" 1>&6
7510 else
7511 echo "$ac_t""no" 1>&6
7512 fi
7513
7514
7515 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7516 echo "configure:7517: checking for --enable-numberdlg" >&5
7517 no_cache=0
7518 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7519 if test "${enable_numberdlg+set}" = set; then
7520 enableval="$enable_numberdlg"
7521
7522 if test "$enableval" = yes; then
7523 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7524 else
7525 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7526 fi
7527
7528 else
7529
7530 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7531 if test "x$LINE" != x ; then
7532 eval "DEFAULT_$LINE"
7533 else
7534 no_cache=1
7535 fi
7536
7537 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7538
7539 fi
7540
7541
7542 eval "$ac_cv_use_numberdlg"
7543 if test "$no_cache" != 1; then
7544 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7545 fi
7546
7547 if test "$wxUSE_NUMBERDLG" = yes; then
7548 echo "$ac_t""yes" 1>&6
7549 else
7550 echo "$ac_t""no" 1>&6
7551 fi
7552
7553
7554 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7555 echo "configure:7556: checking for --enable-splash" >&5
7556 no_cache=0
7557 # Check whether --enable-splash or --disable-splash was given.
7558 if test "${enable_splash+set}" = set; then
7559 enableval="$enable_splash"
7560
7561 if test "$enableval" = yes; then
7562 ac_cv_use_splash='wxUSE_SPLASH=yes'
7563 else
7564 ac_cv_use_splash='wxUSE_SPLASH=no'
7565 fi
7566
7567 else
7568
7569 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7570 if test "x$LINE" != x ; then
7571 eval "DEFAULT_$LINE"
7572 else
7573 no_cache=1
7574 fi
7575
7576 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7577
7578 fi
7579
7580
7581 eval "$ac_cv_use_splash"
7582 if test "$no_cache" != 1; then
7583 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7584 fi
7585
7586 if test "$wxUSE_SPLASH" = yes; then
7587 echo "$ac_t""yes" 1>&6
7588 else
7589 echo "$ac_t""no" 1>&6
7590 fi
7591
7592
7593 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7594 echo "configure:7595: checking for --enable-textdlg" >&5
7595 no_cache=0
7596 # Check whether --enable-textdlg or --disable-textdlg was given.
7597 if test "${enable_textdlg+set}" = set; then
7598 enableval="$enable_textdlg"
7599
7600 if test "$enableval" = yes; then
7601 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7602 else
7603 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7604 fi
7605
7606 else
7607
7608 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7609 if test "x$LINE" != x ; then
7610 eval "DEFAULT_$LINE"
7611 else
7612 no_cache=1
7613 fi
7614
7615 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7616
7617 fi
7618
7619
7620 eval "$ac_cv_use_textdlg"
7621 if test "$no_cache" != 1; then
7622 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7623 fi
7624
7625 if test "$wxUSE_TEXTDLG" = yes; then
7626 echo "$ac_t""yes" 1>&6
7627 else
7628 echo "$ac_t""no" 1>&6
7629 fi
7630
7631
7632 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7633 echo "configure:7634: checking for --enable-tipdlg" >&5
7634 no_cache=0
7635 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7636 if test "${enable_tipdlg+set}" = set; then
7637 enableval="$enable_tipdlg"
7638
7639 if test "$enableval" = yes; then
7640 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7641 else
7642 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7643 fi
7644
7645 else
7646
7647 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7648 if test "x$LINE" != x ; then
7649 eval "DEFAULT_$LINE"
7650 else
7651 no_cache=1
7652 fi
7653
7654 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7655
7656 fi
7657
7658
7659 eval "$ac_cv_use_tipdlg"
7660 if test "$no_cache" != 1; then
7661 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7662 fi
7663
7664 if test "$wxUSE_STARTUP_TIPS" = yes; then
7665 echo "$ac_t""yes" 1>&6
7666 else
7667 echo "$ac_t""no" 1>&6
7668 fi
7669
7670
7671 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7672 echo "configure:7673: checking for --enable-progressdlg" >&5
7673 no_cache=0
7674 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7675 if test "${enable_progressdlg+set}" = set; then
7676 enableval="$enable_progressdlg"
7677
7678 if test "$enableval" = yes; then
7679 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7680 else
7681 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7682 fi
7683
7684 else
7685
7686 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7687 if test "x$LINE" != x ; then
7688 eval "DEFAULT_$LINE"
7689 else
7690 no_cache=1
7691 fi
7692
7693 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7694
7695 fi
7696
7697
7698 eval "$ac_cv_use_progressdlg"
7699 if test "$no_cache" != 1; then
7700 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7701 fi
7702
7703 if test "$wxUSE_PROGRESSDLG" = yes; then
7704 echo "$ac_t""yes" 1>&6
7705 else
7706 echo "$ac_t""no" 1>&6
7707 fi
7708
7709
7710 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7711 echo "configure:7712: checking for --enable-wizarddlg" >&5
7712 no_cache=0
7713 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7714 if test "${enable_wizarddlg+set}" = set; then
7715 enableval="$enable_wizarddlg"
7716
7717 if test "$enableval" = yes; then
7718 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7719 else
7720 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7721 fi
7722
7723 else
7724
7725 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7726 if test "x$LINE" != x ; then
7727 eval "DEFAULT_$LINE"
7728 else
7729 no_cache=1
7730 fi
7731
7732 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7733
7734 fi
7735
7736
7737 eval "$ac_cv_use_wizarddlg"
7738 if test "$no_cache" != 1; then
7739 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7740 fi
7741
7742 if test "$wxUSE_WIZARDDLG" = yes; then
7743 echo "$ac_t""yes" 1>&6
7744 else
7745 echo "$ac_t""no" 1>&6
7746 fi
7747
7748
7749
7750
7751 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7752 echo "configure:7753: checking for --enable-menus" >&5
7753 no_cache=0
7754 # Check whether --enable-menus or --disable-menus was given.
7755 if test "${enable_menus+set}" = set; then
7756 enableval="$enable_menus"
7757
7758 if test "$enableval" = yes; then
7759 ac_cv_use_menus='wxUSE_MENUS=yes'
7760 else
7761 ac_cv_use_menus='wxUSE_MENUS=no'
7762 fi
7763
7764 else
7765
7766 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7767 if test "x$LINE" != x ; then
7768 eval "DEFAULT_$LINE"
7769 else
7770 no_cache=1
7771 fi
7772
7773 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7774
7775 fi
7776
7777
7778 eval "$ac_cv_use_menus"
7779 if test "$no_cache" != 1; then
7780 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7781 fi
7782
7783 if test "$wxUSE_MENUS" = yes; then
7784 echo "$ac_t""yes" 1>&6
7785 else
7786 echo "$ac_t""no" 1>&6
7787 fi
7788
7789
7790 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7791 echo "configure:7792: checking for --enable-miniframe" >&5
7792 no_cache=0
7793 # Check whether --enable-miniframe or --disable-miniframe was given.
7794 if test "${enable_miniframe+set}" = set; then
7795 enableval="$enable_miniframe"
7796
7797 if test "$enableval" = yes; then
7798 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7799 else
7800 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7801 fi
7802
7803 else
7804
7805 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7806 if test "x$LINE" != x ; then
7807 eval "DEFAULT_$LINE"
7808 else
7809 no_cache=1
7810 fi
7811
7812 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7813
7814 fi
7815
7816
7817 eval "$ac_cv_use_miniframe"
7818 if test "$no_cache" != 1; then
7819 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7820 fi
7821
7822 if test "$wxUSE_MINIFRAME" = yes; then
7823 echo "$ac_t""yes" 1>&6
7824 else
7825 echo "$ac_t""no" 1>&6
7826 fi
7827
7828
7829 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7830 echo "configure:7831: checking for --enable-tooltips" >&5
7831 no_cache=0
7832 # Check whether --enable-tooltips or --disable-tooltips was given.
7833 if test "${enable_tooltips+set}" = set; then
7834 enableval="$enable_tooltips"
7835
7836 if test "$enableval" = yes; then
7837 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7838 else
7839 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7840 fi
7841
7842 else
7843
7844 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7845 if test "x$LINE" != x ; then
7846 eval "DEFAULT_$LINE"
7847 else
7848 no_cache=1
7849 fi
7850
7851 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7852
7853 fi
7854
7855
7856 eval "$ac_cv_use_tooltips"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_TOOLTIPS" = yes; then
7862 echo "$ac_t""yes" 1>&6
7863 else
7864 echo "$ac_t""no" 1>&6
7865 fi
7866
7867
7868 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7869 echo "configure:7870: checking for --enable-splines" >&5
7870 no_cache=0
7871 # Check whether --enable-splines or --disable-splines was given.
7872 if test "${enable_splines+set}" = set; then
7873 enableval="$enable_splines"
7874
7875 if test "$enableval" = yes; then
7876 ac_cv_use_splines='wxUSE_SPLINES=yes'
7877 else
7878 ac_cv_use_splines='wxUSE_SPLINES=no'
7879 fi
7880
7881 else
7882
7883 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7884 if test "x$LINE" != x ; then
7885 eval "DEFAULT_$LINE"
7886 else
7887 no_cache=1
7888 fi
7889
7890 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7891
7892 fi
7893
7894
7895 eval "$ac_cv_use_splines"
7896 if test "$no_cache" != 1; then
7897 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7898 fi
7899
7900 if test "$wxUSE_SPLINES" = yes; then
7901 echo "$ac_t""yes" 1>&6
7902 else
7903 echo "$ac_t""no" 1>&6
7904 fi
7905
7906
7907 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7908 echo "configure:7909: checking for --enable-validators" >&5
7909 no_cache=0
7910 # Check whether --enable-validators or --disable-validators was given.
7911 if test "${enable_validators+set}" = set; then
7912 enableval="$enable_validators"
7913
7914 if test "$enableval" = yes; then
7915 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7916 else
7917 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7918 fi
7919
7920 else
7921
7922 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7923 if test "x$LINE" != x ; then
7924 eval "DEFAULT_$LINE"
7925 else
7926 no_cache=1
7927 fi
7928
7929 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7930
7931 fi
7932
7933
7934 eval "$ac_cv_use_validators"
7935 if test "$no_cache" != 1; then
7936 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7937 fi
7938
7939 if test "$wxUSE_VALIDATORS" = yes; then
7940 echo "$ac_t""yes" 1>&6
7941 else
7942 echo "$ac_t""no" 1>&6
7943 fi
7944
7945
7946 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7947 echo "configure:7948: checking for --enable-busyinfo" >&5
7948 no_cache=0
7949 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7950 if test "${enable_busyinfo+set}" = set; then
7951 enableval="$enable_busyinfo"
7952
7953 if test "$enableval" = yes; then
7954 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7955 else
7956 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7957 fi
7958
7959 else
7960
7961 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7962 if test "x$LINE" != x ; then
7963 eval "DEFAULT_$LINE"
7964 else
7965 no_cache=1
7966 fi
7967
7968 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7969
7970 fi
7971
7972
7973 eval "$ac_cv_use_busyinfo"
7974 if test "$no_cache" != 1; then
7975 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7976 fi
7977
7978 if test "$wxUSE_BUSYINFO" = yes; then
7979 echo "$ac_t""yes" 1>&6
7980 else
7981 echo "$ac_t""no" 1>&6
7982 fi
7983
7984
7985 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7986 echo "configure:7987: checking for --enable-joystick" >&5
7987 no_cache=0
7988 # Check whether --enable-joystick or --disable-joystick was given.
7989 if test "${enable_joystick+set}" = set; then
7990 enableval="$enable_joystick"
7991
7992 if test "$enableval" = yes; then
7993 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7994 else
7995 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7996 fi
7997
7998 else
7999
8000 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8001 if test "x$LINE" != x ; then
8002 eval "DEFAULT_$LINE"
8003 else
8004 no_cache=1
8005 fi
8006
8007 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8008
8009 fi
8010
8011
8012 eval "$ac_cv_use_joystick"
8013 if test "$no_cache" != 1; then
8014 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8015 fi
8016
8017 if test "$wxUSE_JOYSTICK" = yes; then
8018 echo "$ac_t""yes" 1>&6
8019 else
8020 echo "$ac_t""no" 1>&6
8021 fi
8022
8023
8024 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8025 echo "configure:8026: checking for --enable-metafile" >&5
8026 no_cache=0
8027 # Check whether --enable-metafile or --disable-metafile was given.
8028 if test "${enable_metafile+set}" = set; then
8029 enableval="$enable_metafile"
8030
8031 if test "$enableval" = yes; then
8032 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8033 else
8034 ac_cv_use_metafile='wxUSE_METAFILE=no'
8035 fi
8036
8037 else
8038
8039 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8040 if test "x$LINE" != x ; then
8041 eval "DEFAULT_$LINE"
8042 else
8043 no_cache=1
8044 fi
8045
8046 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8047
8048 fi
8049
8050
8051 eval "$ac_cv_use_metafile"
8052 if test "$no_cache" != 1; then
8053 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8054 fi
8055
8056 if test "$wxUSE_METAFILE" = yes; then
8057 echo "$ac_t""yes" 1>&6
8058 else
8059 echo "$ac_t""no" 1>&6
8060 fi
8061
8062
8063 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8064 echo "configure:8065: checking for --enable-dragimage" >&5
8065 no_cache=0
8066 # Check whether --enable-dragimage or --disable-dragimage was given.
8067 if test "${enable_dragimage+set}" = set; then
8068 enableval="$enable_dragimage"
8069
8070 if test "$enableval" = yes; then
8071 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8072 else
8073 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8074 fi
8075
8076 else
8077
8078 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8079 if test "x$LINE" != x ; then
8080 eval "DEFAULT_$LINE"
8081 else
8082 no_cache=1
8083 fi
8084
8085 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8086
8087 fi
8088
8089
8090 eval "$ac_cv_use_dragimage"
8091 if test "$no_cache" != 1; then
8092 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8093 fi
8094
8095 if test "$wxUSE_DRAGIMAGE" = yes; then
8096 echo "$ac_t""yes" 1>&6
8097 else
8098 echo "$ac_t""no" 1>&6
8099 fi
8100
8101
8102
8103
8104 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8105 echo "configure:8106: checking for --enable-palette" >&5
8106 no_cache=0
8107 # Check whether --enable-palette or --disable-palette was given.
8108 if test "${enable_palette+set}" = set; then
8109 enableval="$enable_palette"
8110
8111 if test "$enableval" = yes; then
8112 ac_cv_use_palette='wxUSE_PALETTE=yes'
8113 else
8114 ac_cv_use_palette='wxUSE_PALETTE=no'
8115 fi
8116
8117 else
8118
8119 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8120 if test "x$LINE" != x ; then
8121 eval "DEFAULT_$LINE"
8122 else
8123 no_cache=1
8124 fi
8125
8126 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8127
8128 fi
8129
8130
8131 eval "$ac_cv_use_palette"
8132 if test "$no_cache" != 1; then
8133 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8134 fi
8135
8136 if test "$wxUSE_PALETTE" = yes; then
8137 echo "$ac_t""yes" 1>&6
8138 else
8139 echo "$ac_t""no" 1>&6
8140 fi
8141
8142
8143 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8144 echo "configure:8145: checking for --enable-image" >&5
8145 no_cache=0
8146 # Check whether --enable-image or --disable-image was given.
8147 if test "${enable_image+set}" = set; then
8148 enableval="$enable_image"
8149
8150 if test "$enableval" = yes; then
8151 ac_cv_use_image='wxUSE_IMAGE=yes'
8152 else
8153 ac_cv_use_image='wxUSE_IMAGE=no'
8154 fi
8155
8156 else
8157
8158 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8159 if test "x$LINE" != x ; then
8160 eval "DEFAULT_$LINE"
8161 else
8162 no_cache=1
8163 fi
8164
8165 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8166
8167 fi
8168
8169
8170 eval "$ac_cv_use_image"
8171 if test "$no_cache" != 1; then
8172 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8173 fi
8174
8175 if test "$wxUSE_IMAGE" = yes; then
8176 echo "$ac_t""yes" 1>&6
8177 else
8178 echo "$ac_t""no" 1>&6
8179 fi
8180
8181
8182 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8183 echo "configure:8184: checking for --enable-gif" >&5
8184 no_cache=0
8185 # Check whether --enable-gif or --disable-gif was given.
8186 if test "${enable_gif+set}" = set; then
8187 enableval="$enable_gif"
8188
8189 if test "$enableval" = yes; then
8190 ac_cv_use_gif='wxUSE_GIF=yes'
8191 else
8192 ac_cv_use_gif='wxUSE_GIF=no'
8193 fi
8194
8195 else
8196
8197 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8198 if test "x$LINE" != x ; then
8199 eval "DEFAULT_$LINE"
8200 else
8201 no_cache=1
8202 fi
8203
8204 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8205
8206 fi
8207
8208
8209 eval "$ac_cv_use_gif"
8210 if test "$no_cache" != 1; then
8211 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8212 fi
8213
8214 if test "$wxUSE_GIF" = yes; then
8215 echo "$ac_t""yes" 1>&6
8216 else
8217 echo "$ac_t""no" 1>&6
8218 fi
8219
8220
8221 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8222 echo "configure:8223: checking for --enable-pcx" >&5
8223 no_cache=0
8224 # Check whether --enable-pcx or --disable-pcx was given.
8225 if test "${enable_pcx+set}" = set; then
8226 enableval="$enable_pcx"
8227
8228 if test "$enableval" = yes; then
8229 ac_cv_use_pcx='wxUSE_PCX=yes'
8230 else
8231 ac_cv_use_pcx='wxUSE_PCX=no'
8232 fi
8233
8234 else
8235
8236 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8237 if test "x$LINE" != x ; then
8238 eval "DEFAULT_$LINE"
8239 else
8240 no_cache=1
8241 fi
8242
8243 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8244
8245 fi
8246
8247
8248 eval "$ac_cv_use_pcx"
8249 if test "$no_cache" != 1; then
8250 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8251 fi
8252
8253 if test "$wxUSE_PCX" = yes; then
8254 echo "$ac_t""yes" 1>&6
8255 else
8256 echo "$ac_t""no" 1>&6
8257 fi
8258
8259
8260 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8261 echo "configure:8262: checking for --enable-iff" >&5
8262 no_cache=0
8263 # Check whether --enable-iff or --disable-iff was given.
8264 if test "${enable_iff+set}" = set; then
8265 enableval="$enable_iff"
8266
8267 if test "$enableval" = yes; then
8268 ac_cv_use_iff='wxUSE_IFF=yes'
8269 else
8270 ac_cv_use_iff='wxUSE_IFF=no'
8271 fi
8272
8273 else
8274
8275 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8276 if test "x$LINE" != x ; then
8277 eval "DEFAULT_$LINE"
8278 else
8279 no_cache=1
8280 fi
8281
8282 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8283
8284 fi
8285
8286
8287 eval "$ac_cv_use_iff"
8288 if test "$no_cache" != 1; then
8289 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8290 fi
8291
8292 if test "$wxUSE_IFF" = yes; then
8293 echo "$ac_t""yes" 1>&6
8294 else
8295 echo "$ac_t""no" 1>&6
8296 fi
8297
8298
8299 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8300 echo "configure:8301: checking for --enable-pnm" >&5
8301 no_cache=0
8302 # Check whether --enable-pnm or --disable-pnm was given.
8303 if test "${enable_pnm+set}" = set; then
8304 enableval="$enable_pnm"
8305
8306 if test "$enableval" = yes; then
8307 ac_cv_use_pnm='wxUSE_PNM=yes'
8308 else
8309 ac_cv_use_pnm='wxUSE_PNM=no'
8310 fi
8311
8312 else
8313
8314 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8315 if test "x$LINE" != x ; then
8316 eval "DEFAULT_$LINE"
8317 else
8318 no_cache=1
8319 fi
8320
8321 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8322
8323 fi
8324
8325
8326 eval "$ac_cv_use_pnm"
8327 if test "$no_cache" != 1; then
8328 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8329 fi
8330
8331 if test "$wxUSE_PNM" = yes; then
8332 echo "$ac_t""yes" 1>&6
8333 else
8334 echo "$ac_t""no" 1>&6
8335 fi
8336
8337
8338 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8339 echo "configure:8340: checking for --enable-xpm" >&5
8340 no_cache=0
8341 # Check whether --enable-xpm or --disable-xpm was given.
8342 if test "${enable_xpm+set}" = set; then
8343 enableval="$enable_xpm"
8344
8345 if test "$enableval" = yes; then
8346 ac_cv_use_xpm='wxUSE_XPM=yes'
8347 else
8348 ac_cv_use_xpm='wxUSE_XPM=no'
8349 fi
8350
8351 else
8352
8353 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8354 if test "x$LINE" != x ; then
8355 eval "DEFAULT_$LINE"
8356 else
8357 no_cache=1
8358 fi
8359
8360 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8361
8362 fi
8363
8364
8365 eval "$ac_cv_use_xpm"
8366 if test "$no_cache" != 1; then
8367 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8368 fi
8369
8370 if test "$wxUSE_XPM" = yes; then
8371 echo "$ac_t""yes" 1>&6
8372 else
8373 echo "$ac_t""no" 1>&6
8374 fi
8375
8376
8377 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8378 echo "configure:8379: checking for --enable-ico_cur" >&5
8379 no_cache=0
8380 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8381 if test "${enable_ico_cur+set}" = set; then
8382 enableval="$enable_ico_cur"
8383
8384 if test "$enableval" = yes; then
8385 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8386 else
8387 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8388 fi
8389
8390 else
8391
8392 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8393 if test "x$LINE" != x ; then
8394 eval "DEFAULT_$LINE"
8395 else
8396 no_cache=1
8397 fi
8398
8399 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8400
8401 fi
8402
8403
8404 eval "$ac_cv_use_ico_cur"
8405 if test "$no_cache" != 1; then
8406 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8407 fi
8408
8409 if test "$wxUSE_ICO_CUR" = yes; then
8410 echo "$ac_t""yes" 1>&6
8411 else
8412 echo "$ac_t""no" 1>&6
8413 fi
8414
8415
8416 fi
8417
8418 case "${host}" in
8419 *-pc-os2_emx | *-pc-os2-emx )
8420 LEX_STEM="lexyy"
8421 ;;
8422 *)
8423 PATH_IFS=':'
8424 LEX_STEM="lex.yy"
8425 ;;
8426 esac
8427
8428
8429
8430 echo "saving argument cache $wx_arg_cache_file"
8431 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8432
8433
8434
8435 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8436 echo "configure:8437: checking for toolkit" >&5
8437
8438 if test "$wxUSE_GUI" = "yes"; then
8439
8440 if test "$USE_BEOS" = 1; then
8441 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8442 fi
8443
8444 if test "$TOOLKIT_GIVEN" = 1; then
8445 for toolkit in `echo $ALL_TOOLKITS`; do
8446 var=wxUSE_$toolkit
8447 eval "value=\$${var}"
8448 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8449 done
8450 else
8451 for toolkit in `echo $ALL_TOOLKITS`; do
8452 if test "$has_toolkit_in_cache" != 1; then
8453 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8454 else
8455 var=DEFAULT_wxUSE_$toolkit
8456 fi
8457 eval "wxUSE_$toolkit=\$${var}"
8458 done
8459 fi
8460
8461 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8462 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8463
8464 case "${host}" in
8465 *-pc-os2_emx | *-pc-os2-emx )
8466 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8467 esac
8468
8469 case "$NUM_TOOLKITS" in
8470 1)
8471 ;;
8472 0)
8473 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8474 ;;
8475 *)
8476 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8477 esac
8478
8479 for toolkit in `echo $ALL_TOOLKITS`; do
8480 var=wxUSE_$toolkit
8481 eval "value=\$${var}"
8482 if test "x$value" != x; then
8483 cache_var=CACHE_$toolkit
8484 eval "cache=\$${cache_var}"
8485 if test "$cache" = 1; then
8486 echo "$var=$value" >> ${wx_arg_cache_file}
8487 fi
8488 if test "$value" = 1; then
8489 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8490 echo "$ac_t""$toolkit_echo" 1>&6
8491 fi
8492 fi
8493 done
8494 else
8495 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8496 fi
8497
8498
8499 wants_win32=0
8500 doesnt_want_win32=0
8501 case "${host}" in
8502 *-*-cygwin*)
8503 if test "$wxUSE_MSW" = 1 ; then
8504 wants_win32=1
8505 else
8506 doesnt_want_win32=1
8507 fi
8508 ;;
8509 *-*-mingw*)
8510 wants_win32=1
8511 ;;
8512 esac
8513
8514 if test "$wants_win32" = 1 ; then
8515 USE_UNIX=0
8516 USE_WIN32=1
8517 cat >> confdefs.h <<\EOF
8518 #define __WIN32__ 1
8519 EOF
8520
8521 cat >> confdefs.h <<\EOF
8522 #define __WIN95__ 1
8523 EOF
8524
8525 cat >> confdefs.h <<\EOF
8526 #define __WINDOWS__ 1
8527 EOF
8528
8529 cat >> confdefs.h <<\EOF
8530 #define __GNUWIN32__ 1
8531 EOF
8532
8533 cat >> confdefs.h <<\EOF
8534 #define STRICT 1
8535 EOF
8536
8537 cat >> confdefs.h <<\EOF
8538 #define WINVER 0x0400
8539 EOF
8540
8541 fi
8542 if test "$doesnt_want_win32" = 1 ; then
8543 USE_UNIX=1
8544 USE_WIN32=0
8545 fi
8546
8547 if test "$USE_UNIX" = 1 ; then
8548 wxUSE_UNIX=yes
8549 cat >> confdefs.h <<\EOF
8550 #define __UNIX__ 1
8551 EOF
8552
8553 fi
8554
8555
8556 cat > confcache <<\EOF
8557 # This file is a shell script that caches the results of configure
8558 # tests run on this system so they can be shared between configure
8559 # scripts and configure runs. It is not useful on other systems.
8560 # If it contains results you don't want to keep, you may remove or edit it.
8561 #
8562 # By default, configure uses ./config.cache as the cache file,
8563 # creating it if it does not exist already. You can give configure
8564 # the --cache-file=FILE option to use a different cache file; that is
8565 # what configure does when it calls configure scripts in
8566 # subdirectories, so they share the cache.
8567 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8568 # config.status only pays attention to the cache file if you give it the
8569 # --recheck option to rerun configure.
8570 #
8571 EOF
8572 # The following way of writing the cache mishandles newlines in values,
8573 # but we know of no workaround that is simple, portable, and efficient.
8574 # So, don't put newlines in cache variables' values.
8575 # Ultrix sh set writes to stderr and can't be redirected directly,
8576 # and sets the high bit in the cache file unless we assign to the vars.
8577 (set) 2>&1 |
8578 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8579 *ac_space=\ *)
8580 # `set' does not quote correctly, so add quotes (double-quote substitution
8581 # turns \\\\ into \\, and sed turns \\ into \).
8582 sed -n \
8583 -e "s/'/'\\\\''/g" \
8584 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8585 ;;
8586 *)
8587 # `set' quotes correctly as required by POSIX, so do not add quotes.
8588 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8589 ;;
8590 esac >> confcache
8591 if cmp -s $cache_file confcache; then
8592 :
8593 else
8594 if test -w $cache_file; then
8595 echo "updating cache $cache_file"
8596 cat confcache > $cache_file
8597 else
8598 echo "not updating unwritable cache $cache_file"
8599 fi
8600 fi
8601 rm -f confcache
8602
8603
8604 if test "$build" != "$host" ; then
8605 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8606 CC=$host_alias-gcc
8607 CXX=$host_alias-c++
8608 AR=$host_alias-ar
8609 RANLIB=$host_alias-ranlib
8610 DLLTOOL=$host_alias-dlltool
8611 RESCOMP=$host_alias-windres
8612 LD=$host_alias-ld
8613 NM=$host_alias-nm
8614 STRIP=$host_alias-strip
8615 else
8616 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8617 fi
8618 fi
8619
8620 CFLAGS=${CFLAGS:=}
8621 # Extract the first word of "gcc", so it can be a program name with args.
8622 set dummy gcc; ac_word=$2
8623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8624 echo "configure:8625: checking for $ac_word" >&5
8625 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8626 echo $ac_n "(cached) $ac_c" 1>&6
8627 else
8628 if test -n "$CC"; then
8629 ac_cv_prog_CC="$CC" # Let the user override the test.
8630 else
8631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8632 ac_dummy="$PATH"
8633 for ac_dir in $ac_dummy; do
8634 test -z "$ac_dir" && ac_dir=.
8635 if test -f $ac_dir/$ac_word; then
8636 ac_cv_prog_CC="gcc"
8637 break
8638 fi
8639 done
8640 IFS="$ac_save_ifs"
8641 fi
8642 fi
8643 CC="$ac_cv_prog_CC"
8644 if test -n "$CC"; then
8645 echo "$ac_t""$CC" 1>&6
8646 else
8647 echo "$ac_t""no" 1>&6
8648 fi
8649
8650 if test -z "$CC"; then
8651 # Extract the first word of "cc", so it can be a program name with args.
8652 set dummy cc; ac_word=$2
8653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8654 echo "configure:8655: checking for $ac_word" >&5
8655 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8656 echo $ac_n "(cached) $ac_c" 1>&6
8657 else
8658 if test -n "$CC"; then
8659 ac_cv_prog_CC="$CC" # Let the user override the test.
8660 else
8661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8662 ac_prog_rejected=no
8663 ac_dummy="$PATH"
8664 for ac_dir in $ac_dummy; do
8665 test -z "$ac_dir" && ac_dir=.
8666 if test -f $ac_dir/$ac_word; then
8667 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8668 ac_prog_rejected=yes
8669 continue
8670 fi
8671 ac_cv_prog_CC="cc"
8672 break
8673 fi
8674 done
8675 IFS="$ac_save_ifs"
8676 if test $ac_prog_rejected = yes; then
8677 # We found a bogon in the path, so make sure we never use it.
8678 set dummy $ac_cv_prog_CC
8679 shift
8680 if test $# -gt 0; then
8681 # We chose a different compiler from the bogus one.
8682 # However, it has the same basename, so the bogon will be chosen
8683 # first if we set CC to just the basename; use the full file name.
8684 shift
8685 set dummy "$ac_dir/$ac_word" "$@"
8686 shift
8687 ac_cv_prog_CC="$@"
8688 fi
8689 fi
8690 fi
8691 fi
8692 CC="$ac_cv_prog_CC"
8693 if test -n "$CC"; then
8694 echo "$ac_t""$CC" 1>&6
8695 else
8696 echo "$ac_t""no" 1>&6
8697 fi
8698
8699 if test -z "$CC"; then
8700 case "`uname -s`" in
8701 *win32* | *WIN32*)
8702 # Extract the first word of "cl", so it can be a program name with args.
8703 set dummy cl; ac_word=$2
8704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8705 echo "configure:8706: checking for $ac_word" >&5
8706 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8707 echo $ac_n "(cached) $ac_c" 1>&6
8708 else
8709 if test -n "$CC"; then
8710 ac_cv_prog_CC="$CC" # Let the user override the test.
8711 else
8712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8713 ac_dummy="$PATH"
8714 for ac_dir in $ac_dummy; do
8715 test -z "$ac_dir" && ac_dir=.
8716 if test -f $ac_dir/$ac_word; then
8717 ac_cv_prog_CC="cl"
8718 break
8719 fi
8720 done
8721 IFS="$ac_save_ifs"
8722 fi
8723 fi
8724 CC="$ac_cv_prog_CC"
8725 if test -n "$CC"; then
8726 echo "$ac_t""$CC" 1>&6
8727 else
8728 echo "$ac_t""no" 1>&6
8729 fi
8730 ;;
8731 esac
8732 fi
8733 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8734 fi
8735
8736 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8737 echo "configure:8738: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8738
8739 ac_ext=c
8740 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8741 ac_cpp='$CPP $CPPFLAGS'
8742 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8743 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8744 cross_compiling=$ac_cv_prog_cc_cross
8745
8746 cat > conftest.$ac_ext << EOF
8747
8748 #line 8749 "configure"
8749 #include "confdefs.h"
8750
8751 main(){return(0);}
8752 EOF
8753 if { (eval echo configure:8754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8754 ac_cv_prog_cc_works=yes
8755 # If we can't run a trivial program, we are probably using a cross compiler.
8756 if (./conftest; exit) 2>/dev/null; then
8757 ac_cv_prog_cc_cross=no
8758 else
8759 ac_cv_prog_cc_cross=yes
8760 fi
8761 else
8762 echo "configure: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8764 ac_cv_prog_cc_works=no
8765 fi
8766 rm -fr conftest*
8767 ac_ext=c
8768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8769 ac_cpp='$CPP $CPPFLAGS'
8770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8772 cross_compiling=$ac_cv_prog_cc_cross
8773
8774 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8775 if test $ac_cv_prog_cc_works = no; then
8776 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8777 fi
8778 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8779 echo "configure:8780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8780 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8781 cross_compiling=$ac_cv_prog_cc_cross
8782
8783 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8784 echo "configure:8785: checking whether we are using GNU C" >&5
8785 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8787 else
8788 cat > conftest.c <<EOF
8789 #ifdef __GNUC__
8790 yes;
8791 #endif
8792 EOF
8793 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8794 ac_cv_prog_gcc=yes
8795 else
8796 ac_cv_prog_gcc=no
8797 fi
8798 fi
8799
8800 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8801
8802 if test $ac_cv_prog_gcc = yes; then
8803 GCC=yes
8804 else
8805 GCC=
8806 fi
8807
8808 ac_test_CFLAGS="${CFLAGS+set}"
8809 ac_save_CFLAGS="$CFLAGS"
8810 CFLAGS=
8811 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8812 echo "configure:8813: checking whether ${CC-cc} accepts -g" >&5
8813 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8814 echo $ac_n "(cached) $ac_c" 1>&6
8815 else
8816 echo 'void f(){}' > conftest.c
8817 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8818 ac_cv_prog_cc_g=yes
8819 else
8820 ac_cv_prog_cc_g=no
8821 fi
8822 rm -f conftest*
8823
8824 fi
8825
8826 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8827 if test "$ac_test_CFLAGS" = set; then
8828 CFLAGS="$ac_save_CFLAGS"
8829 elif test $ac_cv_prog_cc_g = yes; then
8830 if test "$GCC" = yes; then
8831 CFLAGS="-g -O2"
8832 else
8833 CFLAGS="-g"
8834 fi
8835 else
8836 if test "$GCC" = yes; then
8837 CFLAGS="-O2"
8838 else
8839 CFLAGS=
8840 fi
8841 fi
8842
8843
8844 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8845 echo "configure:8846: checking how to run the C preprocessor" >&5
8846 # On Suns, sometimes $CPP names a directory.
8847 if test -n "$CPP" && test -d "$CPP"; then
8848 CPP=
8849 fi
8850 if test -z "$CPP"; then
8851 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8852 echo $ac_n "(cached) $ac_c" 1>&6
8853 else
8854 # This must be in double quotes, not single quotes, because CPP may get
8855 # substituted into the Makefile and "${CC-cc}" will confuse make.
8856 CPP="${CC-cc} -E"
8857 # On the NeXT, cc -E runs the code through the compiler's parser,
8858 # not just through cpp.
8859 cat > conftest.$ac_ext <<EOF
8860 #line 8861 "configure"
8861 #include "confdefs.h"
8862 #include <assert.h>
8863 Syntax Error
8864 EOF
8865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8866 { (eval echo configure:8867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8868 if test -z "$ac_err"; then
8869 :
8870 else
8871 echo "$ac_err" >&5
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8874 rm -rf conftest*
8875 CPP="${CC-cc} -E -traditional-cpp"
8876 cat > conftest.$ac_ext <<EOF
8877 #line 8878 "configure"
8878 #include "confdefs.h"
8879 #include <assert.h>
8880 Syntax Error
8881 EOF
8882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8883 { (eval echo configure:8884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8885 if test -z "$ac_err"; then
8886 :
8887 else
8888 echo "$ac_err" >&5
8889 echo "configure: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8891 rm -rf conftest*
8892 CPP="${CC-cc} -nologo -E"
8893 cat > conftest.$ac_ext <<EOF
8894 #line 8895 "configure"
8895 #include "confdefs.h"
8896 #include <assert.h>
8897 Syntax Error
8898 EOF
8899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8900 { (eval echo configure:8901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8902 if test -z "$ac_err"; then
8903 :
8904 else
8905 echo "$ac_err" >&5
8906 echo "configure: failed program was:" >&5
8907 cat conftest.$ac_ext >&5
8908 rm -rf conftest*
8909 CPP=/lib/cpp
8910 fi
8911 rm -f conftest*
8912 fi
8913 rm -f conftest*
8914 fi
8915 rm -f conftest*
8916 ac_cv_prog_CPP="$CPP"
8917 fi
8918 CPP="$ac_cv_prog_CPP"
8919 else
8920 ac_cv_prog_CPP="$CPP"
8921 fi
8922 echo "$ac_t""$CPP" 1>&6
8923
8924 if test $ac_cv_prog_gcc = yes; then
8925 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8926 echo "configure:8927: checking whether ${CC-cc} needs -traditional" >&5
8927 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8928 echo $ac_n "(cached) $ac_c" 1>&6
8929 else
8930 ac_pattern="Autoconf.*'x'"
8931 cat > conftest.$ac_ext <<EOF
8932 #line 8933 "configure"
8933 #include "confdefs.h"
8934 #include <sgtty.h>
8935 Autoconf TIOCGETP
8936 EOF
8937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8938 egrep "$ac_pattern" >/dev/null 2>&1; then
8939 rm -rf conftest*
8940 ac_cv_prog_gcc_traditional=yes
8941 else
8942 rm -rf conftest*
8943 ac_cv_prog_gcc_traditional=no
8944 fi
8945 rm -f conftest*
8946
8947
8948 if test $ac_cv_prog_gcc_traditional = no; then
8949 cat > conftest.$ac_ext <<EOF
8950 #line 8951 "configure"
8951 #include "confdefs.h"
8952 #include <termio.h>
8953 Autoconf TCGETA
8954 EOF
8955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8956 egrep "$ac_pattern" >/dev/null 2>&1; then
8957 rm -rf conftest*
8958 ac_cv_prog_gcc_traditional=yes
8959 fi
8960 rm -f conftest*
8961
8962 fi
8963 fi
8964
8965 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8966 if test $ac_cv_prog_gcc_traditional = yes; then
8967 CC="$CC -traditional"
8968 fi
8969 fi
8970
8971
8972
8973 ac_ext=C
8974 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8975 ac_cpp='$CXXCPP $CPPFLAGS'
8976 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8977 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8978 cross_compiling=$ac_cv_prog_cxx_cross
8979
8980
8981 CXXFLAGS=${CXXFLAGS:=}
8982 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8983 do
8984 # Extract the first word of "$ac_prog", so it can be a program name with args.
8985 set dummy $ac_prog; ac_word=$2
8986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8987 echo "configure:8988: checking for $ac_word" >&5
8988 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8989 echo $ac_n "(cached) $ac_c" 1>&6
8990 else
8991 if test -n "$CXX"; then
8992 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8993 else
8994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8995 ac_dummy="$PATH"
8996 for ac_dir in $ac_dummy; do
8997 test -z "$ac_dir" && ac_dir=.
8998 if test -f $ac_dir/$ac_word; then
8999 ac_cv_prog_CXX="$ac_prog"
9000 break
9001 fi
9002 done
9003 IFS="$ac_save_ifs"
9004 fi
9005 fi
9006 CXX="$ac_cv_prog_CXX"
9007 if test -n "$CXX"; then
9008 echo "$ac_t""$CXX" 1>&6
9009 else
9010 echo "$ac_t""no" 1>&6
9011 fi
9012
9013 test -n "$CXX" && break
9014 done
9015 test -n "$CXX" || CXX="gcc"
9016
9017
9018 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9019 echo "configure:9020: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9020
9021 ac_ext=C
9022 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9023 ac_cpp='$CXXCPP $CPPFLAGS'
9024 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9025 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9026 cross_compiling=$ac_cv_prog_cxx_cross
9027
9028 cat > conftest.$ac_ext << EOF
9029
9030 #line 9031 "configure"
9031 #include "confdefs.h"
9032
9033 int main(){return(0);}
9034 EOF
9035 if { (eval echo configure:9036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9036 ac_cv_prog_cxx_works=yes
9037 # If we can't run a trivial program, we are probably using a cross compiler.
9038 if (./conftest; exit) 2>/dev/null; then
9039 ac_cv_prog_cxx_cross=no
9040 else
9041 ac_cv_prog_cxx_cross=yes
9042 fi
9043 else
9044 echo "configure: failed program was:" >&5
9045 cat conftest.$ac_ext >&5
9046 ac_cv_prog_cxx_works=no
9047 fi
9048 rm -fr conftest*
9049 ac_ext=C
9050 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9051 ac_cpp='$CXXCPP $CPPFLAGS'
9052 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9053 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9054 cross_compiling=$ac_cv_prog_cxx_cross
9055
9056 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9057 if test $ac_cv_prog_cxx_works = no; then
9058 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9059 fi
9060 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9061 echo "configure:9062: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9062 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9063 cross_compiling=$ac_cv_prog_cxx_cross
9064
9065 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9066 echo "configure:9067: checking whether we are using GNU C++" >&5
9067 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9068 echo $ac_n "(cached) $ac_c" 1>&6
9069 else
9070 cat > conftest.C <<EOF
9071 #ifdef __GNUC__
9072 yes;
9073 #endif
9074 EOF
9075 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9076 ac_cv_prog_gxx=yes
9077 else
9078 ac_cv_prog_gxx=no
9079 fi
9080 fi
9081
9082 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9083
9084 if test $ac_cv_prog_gxx = yes; then
9085 GXX=yes
9086 else
9087 GXX=
9088 fi
9089
9090 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9091 ac_save_CXXFLAGS="$CXXFLAGS"
9092 CXXFLAGS=
9093 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9094 echo "configure:9095: checking whether ${CXX-g++} accepts -g" >&5
9095 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
9097 else
9098 echo 'void f(){}' > conftest.cc
9099 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9100 ac_cv_prog_cxx_g=yes
9101 else
9102 ac_cv_prog_cxx_g=no
9103 fi
9104 rm -f conftest*
9105
9106 fi
9107
9108 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9109 if test "$ac_test_CXXFLAGS" = set; then
9110 CXXFLAGS="$ac_save_CXXFLAGS"
9111 elif test $ac_cv_prog_cxx_g = yes; then
9112 if test "$GXX" = yes; then
9113 CXXFLAGS="-g -O2"
9114 else
9115 CXXFLAGS="-g"
9116 fi
9117 else
9118 if test "$GXX" = yes; then
9119 CXXFLAGS="-O2"
9120 else
9121 CXXFLAGS=
9122 fi
9123 fi
9124
9125
9126 ac_ext=c
9127 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9128 ac_cpp='$CPP $CPPFLAGS'
9129 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9130 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9131 cross_compiling=$ac_cv_prog_cc_cross
9132
9133
9134 # Extract the first word of "ranlib", so it can be a program name with args.
9135 set dummy ranlib; ac_word=$2
9136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9137 echo "configure:9138: checking for $ac_word" >&5
9138 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9139 echo $ac_n "(cached) $ac_c" 1>&6
9140 else
9141 if test -n "$RANLIB"; then
9142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9143 else
9144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9145 ac_dummy="$PATH"
9146 for ac_dir in $ac_dummy; do
9147 test -z "$ac_dir" && ac_dir=.
9148 if test -f $ac_dir/$ac_word; then
9149 ac_cv_prog_RANLIB="ranlib"
9150 break
9151 fi
9152 done
9153 IFS="$ac_save_ifs"
9154 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9155 fi
9156 fi
9157 RANLIB="$ac_cv_prog_RANLIB"
9158 if test -n "$RANLIB"; then
9159 echo "$ac_t""$RANLIB" 1>&6
9160 else
9161 echo "$ac_t""no" 1>&6
9162 fi
9163
9164
9165 # Extract the first word of "ar", so it can be a program name with args.
9166 set dummy ar; ac_word=$2
9167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9168 echo "configure:9169: checking for $ac_word" >&5
9169 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9170 echo $ac_n "(cached) $ac_c" 1>&6
9171 else
9172 if test -n "$AR"; then
9173 ac_cv_prog_AR="$AR" # Let the user override the test.
9174 else
9175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9176 ac_dummy="$PATH"
9177 for ac_dir in $ac_dummy; do
9178 test -z "$ac_dir" && ac_dir=.
9179 if test -f $ac_dir/$ac_word; then
9180 ac_cv_prog_AR="ar"
9181 break
9182 fi
9183 done
9184 IFS="$ac_save_ifs"
9185 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9186 fi
9187 fi
9188 AR="$ac_cv_prog_AR"
9189 if test -n "$AR"; then
9190 echo "$ac_t""$AR" 1>&6
9191 else
9192 echo "$ac_t""no" 1>&6
9193 fi
9194
9195
9196 # Find a good install program. We prefer a C program (faster),
9197 # so one script is as good as another. But avoid the broken or
9198 # incompatible versions:
9199 # SysV /etc/install, /usr/sbin/install
9200 # SunOS /usr/etc/install
9201 # IRIX /sbin/install
9202 # AIX /bin/install
9203 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9204 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9205 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9206 # ./install, which can be erroneously created by make from ./install.sh.
9207 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9208 echo "configure:9209: checking for a BSD compatible install" >&5
9209 if test -z "$INSTALL"; then
9210 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9211 echo $ac_n "(cached) $ac_c" 1>&6
9212 else
9213 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9214 for ac_dir in $PATH; do
9215 # Account for people who put trailing slashes in PATH elements.
9216 case "$ac_dir/" in
9217 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9218 *)
9219 # OSF1 and SCO ODT 3.0 have their own names for install.
9220 # Don't use installbsd from OSF since it installs stuff as root
9221 # by default.
9222 for ac_prog in ginstall scoinst install; do
9223 if test -f $ac_dir/$ac_prog; then
9224 if test $ac_prog = install &&
9225 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9226 # AIX install. It has an incompatible calling convention.
9227 :
9228 else
9229 ac_cv_path_install="$ac_dir/$ac_prog -c"
9230 break 2
9231 fi
9232 fi
9233 done
9234 ;;
9235 esac
9236 done
9237 IFS="$ac_save_IFS"
9238
9239 fi
9240 if test "${ac_cv_path_install+set}" = set; then
9241 INSTALL="$ac_cv_path_install"
9242 else
9243 # As a last resort, use the slow shell script. We don't cache a
9244 # path for INSTALL within a source directory, because that will
9245 # break other packages using the cache if that directory is
9246 # removed, or if the path is relative.
9247 INSTALL="$ac_install_sh"
9248 fi
9249 fi
9250 echo "$ac_t""$INSTALL" 1>&6
9251
9252 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9253 # It thinks the first close brace ends the variable substitution.
9254 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9255
9256 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9257
9258 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9259
9260
9261 case ${INSTALL} in
9262 /* ) # Absolute
9263 ;;
9264 *)
9265 INSTALL=`pwd`/${INSTALL} ;;
9266 esac
9267
9268
9269 case "${host}" in
9270
9271 powerpc-*-darwin* )
9272 INSTALL_PROGRAM="cp -fp"
9273 INSTALL_DATA="cp -fp"
9274 ;;
9275 *)
9276 ;;
9277 esac
9278
9279 # Extract the first word of "strip", so it can be a program name with args.
9280 set dummy strip; ac_word=$2
9281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9282 echo "configure:9283: checking for $ac_word" >&5
9283 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9284 echo $ac_n "(cached) $ac_c" 1>&6
9285 else
9286 if test -n "$STRIP"; then
9287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9288 else
9289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9290 ac_dummy="$PATH"
9291 for ac_dir in $ac_dummy; do
9292 test -z "$ac_dir" && ac_dir=.
9293 if test -f $ac_dir/$ac_word; then
9294 ac_cv_prog_STRIP="strip"
9295 break
9296 fi
9297 done
9298 IFS="$ac_save_ifs"
9299 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9300 fi
9301 fi
9302 STRIP="$ac_cv_prog_STRIP"
9303 if test -n "$STRIP"; then
9304 echo "$ac_t""$STRIP" 1>&6
9305 else
9306 echo "$ac_t""no" 1>&6
9307 fi
9308
9309
9310 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9311 echo "configure:9312: checking if make is GNU make" >&5
9312 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9313 echo $ac_n "(cached) $ac_c" 1>&6
9314 else
9315
9316 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9317 egrep -s GNU > /dev/null); then
9318 wx_cv_prog_makeisgnu="yes"
9319 else
9320 wx_cv_prog_makeisgnu="no"
9321 fi
9322
9323 fi
9324
9325 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9326
9327 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9328 IF_GNU_MAKE=""
9329 else
9330 IF_GNU_MAKE="#"
9331 fi
9332
9333
9334
9335 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9336 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9337 echo "configure:9338: checking if make supports VPATH" >&5
9338 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9339 echo $ac_n "(cached) $ac_c" 1>&6
9340 else
9341
9342 cat - << EOF > confMake
9343 check : file
9344 cp \$? \$@
9345 cp \$? final_file
9346 EOF
9347
9348 if test ! -d sub ; then
9349 mkdir sub
9350 fi
9351 echo dummy > sub/file
9352 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9353 RESULT=$?
9354 rm -f sub/file check final_file confMake
9355 rmdir sub
9356 if test "$RESULT" = 0; then
9357 wx_cv_prog_makevpath="yes"
9358 else
9359 wx_cv_prog_makevpath="no"
9360 fi
9361
9362 fi
9363
9364 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9365
9366 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9367 { echo "configure: error:
9368 You need a make-utility that is able to use the variable
9369 VPATH correctly.
9370 If your version of make does not support VPATH correctly,
9371 please install GNU-make (possibly as gmake), and start
9372 configure with the following command:
9373 export MAKE=gmake; ./configure for sh-type shells
9374 setenv MAKE gmake; ./configure for csh-type shells
9375 Also please do remember to use gmake in this case every time
9376 you are trying to compile.
9377 " 1>&2; exit 1; }
9378 fi fi
9379 for ac_prog in 'bison -y' byacc
9380 do
9381 # Extract the first word of "$ac_prog", so it can be a program name with args.
9382 set dummy $ac_prog; ac_word=$2
9383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9384 echo "configure:9385: checking for $ac_word" >&5
9385 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9386 echo $ac_n "(cached) $ac_c" 1>&6
9387 else
9388 if test -n "$YACC"; then
9389 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9390 else
9391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9392 ac_dummy="$PATH"
9393 for ac_dir in $ac_dummy; do
9394 test -z "$ac_dir" && ac_dir=.
9395 if test -f $ac_dir/$ac_word; then
9396 ac_cv_prog_YACC="$ac_prog"
9397 break
9398 fi
9399 done
9400 IFS="$ac_save_ifs"
9401 fi
9402 fi
9403 YACC="$ac_cv_prog_YACC"
9404 if test -n "$YACC"; then
9405 echo "$ac_t""$YACC" 1>&6
9406 else
9407 echo "$ac_t""no" 1>&6
9408 fi
9409
9410 test -n "$YACC" && break
9411 done
9412 test -n "$YACC" || YACC="yacc"
9413
9414
9415 # Extract the first word of "flex", so it can be a program name with args.
9416 set dummy flex; ac_word=$2
9417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9418 echo "configure:9419: checking for $ac_word" >&5
9419 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9420 echo $ac_n "(cached) $ac_c" 1>&6
9421 else
9422 if test -n "$LEX"; then
9423 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9424 else
9425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9426 ac_dummy="$PATH"
9427 for ac_dir in $ac_dummy; do
9428 test -z "$ac_dir" && ac_dir=.
9429 if test -f $ac_dir/$ac_word; then
9430 ac_cv_prog_LEX="flex"
9431 break
9432 fi
9433 done
9434 IFS="$ac_save_ifs"
9435 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9436 fi
9437 fi
9438 LEX="$ac_cv_prog_LEX"
9439 if test -n "$LEX"; then
9440 echo "$ac_t""$LEX" 1>&6
9441 else
9442 echo "$ac_t""no" 1>&6
9443 fi
9444
9445 if test -z "$LEXLIB"
9446 then
9447 case "$LEX" in
9448 flex*) ac_lib=fl ;;
9449 *) ac_lib=l ;;
9450 esac
9451 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9452 echo "configure:9453: checking for yywrap in -l$ac_lib" >&5
9453 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9455 echo $ac_n "(cached) $ac_c" 1>&6
9456 else
9457 ac_save_LIBS="$LIBS"
9458 LIBS="-l$ac_lib $LIBS"
9459 cat > conftest.$ac_ext <<EOF
9460 #line 9461 "configure"
9461 #include "confdefs.h"
9462 /* Override any gcc2 internal prototype to avoid an error. */
9463 /* We use char because int might match the return type of a gcc2
9464 builtin and then its argument prototype would still apply. */
9465 char yywrap();
9466
9467 int main() {
9468 yywrap()
9469 ; return 0; }
9470 EOF
9471 if { (eval echo configure:9472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9472 rm -rf conftest*
9473 eval "ac_cv_lib_$ac_lib_var=yes"
9474 else
9475 echo "configure: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9477 rm -rf conftest*
9478 eval "ac_cv_lib_$ac_lib_var=no"
9479 fi
9480 rm -f conftest*
9481 LIBS="$ac_save_LIBS"
9482
9483 fi
9484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9485 echo "$ac_t""yes" 1>&6
9486 LEXLIB="-l$ac_lib"
9487 else
9488 echo "$ac_t""no" 1>&6
9489 fi
9490
9491 fi
9492
9493
9494 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9495 echo "configure:9496: checking whether ln -s works" >&5
9496 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9497 echo $ac_n "(cached) $ac_c" 1>&6
9498 else
9499 rm -f conftestdata
9500 if ln -s X conftestdata 2>/dev/null
9501 then
9502 rm -f conftestdata
9503 ac_cv_prog_LN_S="ln -s"
9504 else
9505 ac_cv_prog_LN_S=ln
9506 fi
9507 fi
9508 LN_S="$ac_cv_prog_LN_S"
9509 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9510 echo "$ac_t""yes" 1>&6
9511 else
9512 echo "$ac_t""no" 1>&6
9513 fi
9514
9515
9516
9517 if test "$wxUSE_MAC" != 1; then
9518 for ac_hdr in strings.h
9519 do
9520 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9521 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9522 echo "configure:9523: checking for $ac_hdr" >&5
9523 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9525 else
9526 cat > conftest.$ac_ext <<EOF
9527 #line 9528 "configure"
9528 #include "confdefs.h"
9529 #include <$ac_hdr>
9530 EOF
9531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9532 { (eval echo configure:9533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9534 if test -z "$ac_err"; then
9535 rm -rf conftest*
9536 eval "ac_cv_header_$ac_safe=yes"
9537 else
9538 echo "$ac_err" >&5
9539 echo "configure: failed program was:" >&5
9540 cat conftest.$ac_ext >&5
9541 rm -rf conftest*
9542 eval "ac_cv_header_$ac_safe=no"
9543 fi
9544 rm -f conftest*
9545 fi
9546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9547 echo "$ac_t""yes" 1>&6
9548 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9549 cat >> confdefs.h <<EOF
9550 #define $ac_tr_hdr 1
9551 EOF
9552
9553 else
9554 echo "$ac_t""no" 1>&6
9555 fi
9556 done
9557
9558 fi
9559
9560 for ac_hdr in stdlib.h
9561 do
9562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9564 echo "configure:9565: checking for $ac_hdr" >&5
9565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9566 echo $ac_n "(cached) $ac_c" 1>&6
9567 else
9568 cat > conftest.$ac_ext <<EOF
9569 #line 9570 "configure"
9570 #include "confdefs.h"
9571 #include <$ac_hdr>
9572 EOF
9573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9574 { (eval echo configure:9575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9576 if test -z "$ac_err"; then
9577 rm -rf conftest*
9578 eval "ac_cv_header_$ac_safe=yes"
9579 else
9580 echo "$ac_err" >&5
9581 echo "configure: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9583 rm -rf conftest*
9584 eval "ac_cv_header_$ac_safe=no"
9585 fi
9586 rm -f conftest*
9587 fi
9588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9589 echo "$ac_t""yes" 1>&6
9590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9591 cat >> confdefs.h <<EOF
9592 #define $ac_tr_hdr 1
9593 EOF
9594
9595 else
9596 echo "$ac_t""no" 1>&6
9597 fi
9598 done
9599
9600 for ac_hdr in malloc.h
9601 do
9602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9604 echo "configure:9605: checking for $ac_hdr" >&5
9605 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9606 echo $ac_n "(cached) $ac_c" 1>&6
9607 else
9608 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure"
9610 #include "confdefs.h"
9611 #include <$ac_hdr>
9612 EOF
9613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9614 { (eval echo configure:9615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9616 if test -z "$ac_err"; then
9617 rm -rf conftest*
9618 eval "ac_cv_header_$ac_safe=yes"
9619 else
9620 echo "$ac_err" >&5
9621 echo "configure: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9623 rm -rf conftest*
9624 eval "ac_cv_header_$ac_safe=no"
9625 fi
9626 rm -f conftest*
9627 fi
9628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9629 echo "$ac_t""yes" 1>&6
9630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9631 cat >> confdefs.h <<EOF
9632 #define $ac_tr_hdr 1
9633 EOF
9634
9635 else
9636 echo "$ac_t""no" 1>&6
9637 fi
9638 done
9639
9640 for ac_hdr in unistd.h
9641 do
9642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9644 echo "configure:9645: checking for $ac_hdr" >&5
9645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9646 echo $ac_n "(cached) $ac_c" 1>&6
9647 else
9648 cat > conftest.$ac_ext <<EOF
9649 #line 9650 "configure"
9650 #include "confdefs.h"
9651 #include <$ac_hdr>
9652 EOF
9653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9654 { (eval echo configure:9655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9656 if test -z "$ac_err"; then
9657 rm -rf conftest*
9658 eval "ac_cv_header_$ac_safe=yes"
9659 else
9660 echo "$ac_err" >&5
9661 echo "configure: failed program was:" >&5
9662 cat conftest.$ac_ext >&5
9663 rm -rf conftest*
9664 eval "ac_cv_header_$ac_safe=no"
9665 fi
9666 rm -f conftest*
9667 fi
9668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9669 echo "$ac_t""yes" 1>&6
9670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9671 cat >> confdefs.h <<EOF
9672 #define $ac_tr_hdr 1
9673 EOF
9674
9675 else
9676 echo "$ac_t""no" 1>&6
9677 fi
9678 done
9679
9680 for ac_hdr in wchar.h
9681 do
9682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9684 echo "configure:9685: checking for $ac_hdr" >&5
9685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9687 else
9688 cat > conftest.$ac_ext <<EOF
9689 #line 9690 "configure"
9690 #include "confdefs.h"
9691 #include <$ac_hdr>
9692 EOF
9693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9694 { (eval echo configure:9695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9696 if test -z "$ac_err"; then
9697 rm -rf conftest*
9698 eval "ac_cv_header_$ac_safe=yes"
9699 else
9700 echo "$ac_err" >&5
9701 echo "configure: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 rm -rf conftest*
9704 eval "ac_cv_header_$ac_safe=no"
9705 fi
9706 rm -f conftest*
9707 fi
9708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9709 echo "$ac_t""yes" 1>&6
9710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9711 cat >> confdefs.h <<EOF
9712 #define $ac_tr_hdr 1
9713 EOF
9714
9715 else
9716 echo "$ac_t""no" 1>&6
9717 fi
9718 done
9719
9720
9721 if test "$ac_cv_header_wchar_h" != "yes"; then
9722 for ac_hdr in wcstr.h
9723 do
9724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9726 echo "configure:9727: checking for $ac_hdr" >&5
9727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9728 echo $ac_n "(cached) $ac_c" 1>&6
9729 else
9730 cat > conftest.$ac_ext <<EOF
9731 #line 9732 "configure"
9732 #include "confdefs.h"
9733 #include <$ac_hdr>
9734 EOF
9735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9736 { (eval echo configure:9737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9738 if test -z "$ac_err"; then
9739 rm -rf conftest*
9740 eval "ac_cv_header_$ac_safe=yes"
9741 else
9742 echo "$ac_err" >&5
9743 echo "configure: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9745 rm -rf conftest*
9746 eval "ac_cv_header_$ac_safe=no"
9747 fi
9748 rm -f conftest*
9749 fi
9750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9751 echo "$ac_t""yes" 1>&6
9752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9753 cat >> confdefs.h <<EOF
9754 #define $ac_tr_hdr 1
9755 EOF
9756
9757 else
9758 echo "$ac_t""no" 1>&6
9759 fi
9760 done
9761
9762 fi
9763
9764
9765 for ac_hdr in fnmatch.h
9766 do
9767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9769 echo "configure:9770: checking for $ac_hdr" >&5
9770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9771 echo $ac_n "(cached) $ac_c" 1>&6
9772 else
9773 cat > conftest.$ac_ext <<EOF
9774 #line 9775 "configure"
9775 #include "confdefs.h"
9776 #include <$ac_hdr>
9777 EOF
9778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9779 { (eval echo configure:9780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9781 if test -z "$ac_err"; then
9782 rm -rf conftest*
9783 eval "ac_cv_header_$ac_safe=yes"
9784 else
9785 echo "$ac_err" >&5
9786 echo "configure: failed program was:" >&5
9787 cat conftest.$ac_ext >&5
9788 rm -rf conftest*
9789 eval "ac_cv_header_$ac_safe=no"
9790 fi
9791 rm -f conftest*
9792 fi
9793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9794 echo "$ac_t""yes" 1>&6
9795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9796 cat >> confdefs.h <<EOF
9797 #define $ac_tr_hdr 1
9798 EOF
9799
9800 else
9801 echo "$ac_t""no" 1>&6
9802 fi
9803 done
9804
9805
9806 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9807 for ac_func in fnmatch
9808 do
9809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9810 echo "configure:9811: checking for $ac_func" >&5
9811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9812 echo $ac_n "(cached) $ac_c" 1>&6
9813 else
9814 cat > conftest.$ac_ext <<EOF
9815 #line 9816 "configure"
9816 #include "confdefs.h"
9817 /* System header to define __stub macros and hopefully few prototypes,
9818 which can conflict with char $ac_func(); below. */
9819 #include <assert.h>
9820 /* Override any gcc2 internal prototype to avoid an error. */
9821 /* We use char because int might match the return type of a gcc2
9822 builtin and then its argument prototype would still apply. */
9823 char $ac_func();
9824
9825 int main() {
9826
9827 /* The GNU C library defines this for functions which it implements
9828 to always fail with ENOSYS. Some functions are actually named
9829 something starting with __ and the normal name is an alias. */
9830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9831 choke me
9832 #else
9833 $ac_func();
9834 #endif
9835
9836 ; return 0; }
9837 EOF
9838 if { (eval echo configure:9839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9839 rm -rf conftest*
9840 eval "ac_cv_func_$ac_func=yes"
9841 else
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9844 rm -rf conftest*
9845 eval "ac_cv_func_$ac_func=no"
9846 fi
9847 rm -f conftest*
9848 fi
9849
9850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9851 echo "$ac_t""yes" 1>&6
9852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9853 cat >> confdefs.h <<EOF
9854 #define $ac_tr_func 1
9855 EOF
9856
9857 else
9858 echo "$ac_t""no" 1>&6
9859 fi
9860 done
9861
9862 fi
9863
9864 for ac_hdr in langinfo.h
9865 do
9866 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9867 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9868 echo "configure:9869: checking for $ac_hdr" >&5
9869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9870 echo $ac_n "(cached) $ac_c" 1>&6
9871 else
9872 cat > conftest.$ac_ext <<EOF
9873 #line 9874 "configure"
9874 #include "confdefs.h"
9875 #include <$ac_hdr>
9876 EOF
9877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9878 { (eval echo configure:9879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9880 if test -z "$ac_err"; then
9881 rm -rf conftest*
9882 eval "ac_cv_header_$ac_safe=yes"
9883 else
9884 echo "$ac_err" >&5
9885 echo "configure: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9887 rm -rf conftest*
9888 eval "ac_cv_header_$ac_safe=no"
9889 fi
9890 rm -f conftest*
9891 fi
9892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9893 echo "$ac_t""yes" 1>&6
9894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9895 cat >> confdefs.h <<EOF
9896 #define $ac_tr_hdr 1
9897 EOF
9898
9899 else
9900 echo "$ac_t""no" 1>&6
9901 fi
9902 done
9903
9904
9905 if test "$wxUSE_GUI" = "yes"; then
9906 if test "$wxUSE_UNIX" = "yes"; then
9907 for ac_hdr in X11/XKBlib.h
9908 do
9909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9911 echo "configure:9912: checking for $ac_hdr" >&5
9912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9913 echo $ac_n "(cached) $ac_c" 1>&6
9914 else
9915 cat > conftest.$ac_ext <<EOF
9916 #line 9917 "configure"
9917 #include "confdefs.h"
9918 #include <$ac_hdr>
9919 EOF
9920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9921 { (eval echo configure:9922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9923 if test -z "$ac_err"; then
9924 rm -rf conftest*
9925 eval "ac_cv_header_$ac_safe=yes"
9926 else
9927 echo "$ac_err" >&5
9928 echo "configure: failed program was:" >&5
9929 cat conftest.$ac_ext >&5
9930 rm -rf conftest*
9931 eval "ac_cv_header_$ac_safe=no"
9932 fi
9933 rm -f conftest*
9934 fi
9935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9936 echo "$ac_t""yes" 1>&6
9937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9938 cat >> confdefs.h <<EOF
9939 #define $ac_tr_hdr 1
9940 EOF
9941
9942 else
9943 echo "$ac_t""no" 1>&6
9944 fi
9945 done
9946
9947 fi
9948 fi
9949
9950
9951 echo $ac_n "checking for working const""... $ac_c" 1>&6
9952 echo "configure:9953: checking for working const" >&5
9953 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9954 echo $ac_n "(cached) $ac_c" 1>&6
9955 else
9956 cat > conftest.$ac_ext <<EOF
9957 #line 9958 "configure"
9958 #include "confdefs.h"
9959
9960 int main() {
9961
9962 /* Ultrix mips cc rejects this. */
9963 typedef int charset[2]; const charset x;
9964 /* SunOS 4.1.1 cc rejects this. */
9965 char const *const *ccp;
9966 char **p;
9967 /* NEC SVR4.0.2 mips cc rejects this. */
9968 struct point {int x, y;};
9969 static struct point const zero = {0,0};
9970 /* AIX XL C 1.02.0.0 rejects this.
9971 It does not let you subtract one const X* pointer from another in an arm
9972 of an if-expression whose if-part is not a constant expression */
9973 const char *g = "string";
9974 ccp = &g + (g ? g-g : 0);
9975 /* HPUX 7.0 cc rejects these. */
9976 ++ccp;
9977 p = (char**) ccp;
9978 ccp = (char const *const *) p;
9979 { /* SCO 3.2v4 cc rejects this. */
9980 char *t;
9981 char const *s = 0 ? (char *) 0 : (char const *) 0;
9982
9983 *t++ = 0;
9984 }
9985 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9986 int x[] = {25, 17};
9987 const int *foo = &x[0];
9988 ++foo;
9989 }
9990 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9991 typedef const int *iptr;
9992 iptr p = 0;
9993 ++p;
9994 }
9995 { /* AIX XL C 1.02.0.0 rejects this saying
9996 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9997 struct s { int j; const int *ap[3]; };
9998 struct s *b; b->j = 5;
9999 }
10000 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10001 const int foo = 10;
10002 }
10003
10004 ; return 0; }
10005 EOF
10006 if { (eval echo configure:10007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10007 rm -rf conftest*
10008 ac_cv_c_const=yes
10009 else
10010 echo "configure: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10012 rm -rf conftest*
10013 ac_cv_c_const=no
10014 fi
10015 rm -f conftest*
10016 fi
10017
10018 echo "$ac_t""$ac_cv_c_const" 1>&6
10019 if test $ac_cv_c_const = no; then
10020 cat >> confdefs.h <<\EOF
10021 #define const
10022 EOF
10023
10024 fi
10025
10026 echo $ac_n "checking for inline""... $ac_c" 1>&6
10027 echo "configure:10028: checking for inline" >&5
10028 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10029 echo $ac_n "(cached) $ac_c" 1>&6
10030 else
10031 ac_cv_c_inline=no
10032 for ac_kw in inline __inline__ __inline; do
10033 cat > conftest.$ac_ext <<EOF
10034 #line 10035 "configure"
10035 #include "confdefs.h"
10036
10037 int main() {
10038 } $ac_kw foo() {
10039 ; return 0; }
10040 EOF
10041 if { (eval echo configure:10042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10042 rm -rf conftest*
10043 ac_cv_c_inline=$ac_kw; break
10044 else
10045 echo "configure: failed program was:" >&5
10046 cat conftest.$ac_ext >&5
10047 fi
10048 rm -f conftest*
10049 done
10050
10051 fi
10052
10053 echo "$ac_t""$ac_cv_c_inline" 1>&6
10054 case "$ac_cv_c_inline" in
10055 inline | yes) ;;
10056 no) cat >> confdefs.h <<\EOF
10057 #define inline
10058 EOF
10059 ;;
10060 *) cat >> confdefs.h <<EOF
10061 #define inline $ac_cv_c_inline
10062 EOF
10063 ;;
10064 esac
10065
10066
10067 echo $ac_n "checking size of char""... $ac_c" 1>&6
10068 echo "configure:10069: checking size of char" >&5
10069 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10070 echo $ac_n "(cached) $ac_c" 1>&6
10071 else
10072 if test "$cross_compiling" = yes; then
10073 ac_cv_sizeof_char=1
10074 else
10075 cat > conftest.$ac_ext <<EOF
10076 #line 10077 "configure"
10077 #include "confdefs.h"
10078 #include <stdio.h>
10079 main()
10080 {
10081 FILE *f=fopen("conftestval", "w");
10082 if (!f) exit(1);
10083 fprintf(f, "%d\n", sizeof(char));
10084 exit(0);
10085 }
10086 EOF
10087 if { (eval echo configure:10088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10088 then
10089 ac_cv_sizeof_char=`cat conftestval`
10090 else
10091 echo "configure: failed program was:" >&5
10092 cat conftest.$ac_ext >&5
10093 rm -fr conftest*
10094 ac_cv_sizeof_char=0
10095 fi
10096 rm -fr conftest*
10097 fi
10098
10099 fi
10100 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10101 cat >> confdefs.h <<EOF
10102 #define SIZEOF_CHAR $ac_cv_sizeof_char
10103 EOF
10104
10105
10106 echo $ac_n "checking size of short""... $ac_c" 1>&6
10107 echo "configure:10108: checking size of short" >&5
10108 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10109 echo $ac_n "(cached) $ac_c" 1>&6
10110 else
10111 if test "$cross_compiling" = yes; then
10112 ac_cv_sizeof_short=2
10113 else
10114 cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10117 #include <stdio.h>
10118 main()
10119 {
10120 FILE *f=fopen("conftestval", "w");
10121 if (!f) exit(1);
10122 fprintf(f, "%d\n", sizeof(short));
10123 exit(0);
10124 }
10125 EOF
10126 if { (eval echo configure:10127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10127 then
10128 ac_cv_sizeof_short=`cat conftestval`
10129 else
10130 echo "configure: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10132 rm -fr conftest*
10133 ac_cv_sizeof_short=0
10134 fi
10135 rm -fr conftest*
10136 fi
10137
10138 fi
10139 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10140 cat >> confdefs.h <<EOF
10141 #define SIZEOF_SHORT $ac_cv_sizeof_short
10142 EOF
10143
10144
10145 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10146 echo "configure:10147: checking size of void *" >&5
10147 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10148 echo $ac_n "(cached) $ac_c" 1>&6
10149 else
10150 if test "$cross_compiling" = yes; then
10151 ac_cv_sizeof_void_p=4
10152 else
10153 cat > conftest.$ac_ext <<EOF
10154 #line 10155 "configure"
10155 #include "confdefs.h"
10156 #include <stdio.h>
10157 main()
10158 {
10159 FILE *f=fopen("conftestval", "w");
10160 if (!f) exit(1);
10161 fprintf(f, "%d\n", sizeof(void *));
10162 exit(0);
10163 }
10164 EOF
10165 if { (eval echo configure:10166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10166 then
10167 ac_cv_sizeof_void_p=`cat conftestval`
10168 else
10169 echo "configure: failed program was:" >&5
10170 cat conftest.$ac_ext >&5
10171 rm -fr conftest*
10172 ac_cv_sizeof_void_p=0
10173 fi
10174 rm -fr conftest*
10175 fi
10176
10177 fi
10178 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10179 cat >> confdefs.h <<EOF
10180 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10181 EOF
10182
10183
10184 echo $ac_n "checking size of int""... $ac_c" 1>&6
10185 echo "configure:10186: checking size of int" >&5
10186 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10187 echo $ac_n "(cached) $ac_c" 1>&6
10188 else
10189 if test "$cross_compiling" = yes; then
10190 ac_cv_sizeof_int=4
10191 else
10192 cat > conftest.$ac_ext <<EOF
10193 #line 10194 "configure"
10194 #include "confdefs.h"
10195 #include <stdio.h>
10196 main()
10197 {
10198 FILE *f=fopen("conftestval", "w");
10199 if (!f) exit(1);
10200 fprintf(f, "%d\n", sizeof(int));
10201 exit(0);
10202 }
10203 EOF
10204 if { (eval echo configure:10205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10205 then
10206 ac_cv_sizeof_int=`cat conftestval`
10207 else
10208 echo "configure: failed program was:" >&5
10209 cat conftest.$ac_ext >&5
10210 rm -fr conftest*
10211 ac_cv_sizeof_int=0
10212 fi
10213 rm -fr conftest*
10214 fi
10215
10216 fi
10217 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10218 cat >> confdefs.h <<EOF
10219 #define SIZEOF_INT $ac_cv_sizeof_int
10220 EOF
10221
10222
10223 echo $ac_n "checking size of long""... $ac_c" 1>&6
10224 echo "configure:10225: checking size of long" >&5
10225 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10227 else
10228 if test "$cross_compiling" = yes; then
10229 ac_cv_sizeof_long=4
10230 else
10231 cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure"
10233 #include "confdefs.h"
10234 #include <stdio.h>
10235 main()
10236 {
10237 FILE *f=fopen("conftestval", "w");
10238 if (!f) exit(1);
10239 fprintf(f, "%d\n", sizeof(long));
10240 exit(0);
10241 }
10242 EOF
10243 if { (eval echo configure:10244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10244 then
10245 ac_cv_sizeof_long=`cat conftestval`
10246 else
10247 echo "configure: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10249 rm -fr conftest*
10250 ac_cv_sizeof_long=0
10251 fi
10252 rm -fr conftest*
10253 fi
10254
10255 fi
10256 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10257 cat >> confdefs.h <<EOF
10258 #define SIZEOF_LONG $ac_cv_sizeof_long
10259 EOF
10260
10261
10262
10263 case "${host}" in
10264 arm-*-linux* )
10265 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10266 echo "configure:10267: checking size of long long" >&5
10267 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10268 echo $ac_n "(cached) $ac_c" 1>&6
10269 else
10270 if test "$cross_compiling" = yes; then
10271 ac_cv_sizeof_long_long=8
10272 else
10273 cat > conftest.$ac_ext <<EOF
10274 #line 10275 "configure"
10275 #include "confdefs.h"
10276 #include <stdio.h>
10277 main()
10278 {
10279 FILE *f=fopen("conftestval", "w");
10280 if (!f) exit(1);
10281 fprintf(f, "%d\n", sizeof(long long));
10282 exit(0);
10283 }
10284 EOF
10285 if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10286 then
10287 ac_cv_sizeof_long_long=`cat conftestval`
10288 else
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10291 rm -fr conftest*
10292 ac_cv_sizeof_long_long=0
10293 fi
10294 rm -fr conftest*
10295 fi
10296
10297 fi
10298 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10299 cat >> confdefs.h <<EOF
10300 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10301 EOF
10302
10303
10304 ;;
10305 * )
10306 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10307 echo "configure:10308: checking size of long long" >&5
10308 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
10310 else
10311 if test "$cross_compiling" = yes; then
10312 ac_cv_sizeof_long_long=0
10313 else
10314 cat > conftest.$ac_ext <<EOF
10315 #line 10316 "configure"
10316 #include "confdefs.h"
10317 #include <stdio.h>
10318 main()
10319 {
10320 FILE *f=fopen("conftestval", "w");
10321 if (!f) exit(1);
10322 fprintf(f, "%d\n", sizeof(long long));
10323 exit(0);
10324 }
10325 EOF
10326 if { (eval echo configure:10327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10327 then
10328 ac_cv_sizeof_long_long=`cat conftestval`
10329 else
10330 echo "configure: failed program was:" >&5
10331 cat conftest.$ac_ext >&5
10332 rm -fr conftest*
10333 ac_cv_sizeof_long_long=0
10334 fi
10335 rm -fr conftest*
10336 fi
10337
10338 fi
10339 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10340 cat >> confdefs.h <<EOF
10341 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10342 EOF
10343
10344
10345 esac
10346
10347 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10348 echo "configure:10349: checking size of wchar_t" >&5
10349 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10350 echo $ac_n "(cached) $ac_c" 1>&6
10351 else
10352
10353 if test "$cross_compiling" = yes; then
10354 wx_cv_sizeof_wchar_t=4
10355
10356 else
10357 cat > conftest.$ac_ext <<EOF
10358 #line 10359 "configure"
10359 #include "confdefs.h"
10360
10361 #ifdef HAVE_WCHAR_H
10362 # ifdef __CYGWIN__
10363 # include <stddef.h>
10364 # endif
10365 # include <wchar.h>
10366 #endif
10367 #ifdef HAVE_STDLIB_H
10368 # include <stdlib.h>
10369 #endif
10370 #include <stdio.h>
10371 int main()
10372 {
10373 FILE *f=fopen("conftestval", "w");
10374 if (!f) exit(1);
10375 fprintf(f, "%i", sizeof(wchar_t));
10376 exit(0);
10377 }
10378
10379 EOF
10380 if { (eval echo configure:10381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10381 then
10382 wx_cv_sizeof_wchar_t=`cat conftestval`
10383 else
10384 echo "configure: failed program was:" >&5
10385 cat conftest.$ac_ext >&5
10386 rm -fr conftest*
10387 wx_cv_sizeof_wchar_t=0
10388 fi
10389 rm -fr conftest*
10390 fi
10391
10392
10393 fi
10394
10395 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10396
10397 cat >> confdefs.h <<EOF
10398 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10399 EOF
10400
10401
10402 # Check whether --enable-largefile or --disable-largefile was given.
10403 if test "${enable_largefile+set}" = set; then
10404 enableval="$enable_largefile"
10405 :
10406 fi
10407
10408 if test "$enable_largefile" != no; then
10409 wx_largefile=no
10410
10411 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10412 echo "configure:10413: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10413 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10414 echo $ac_n "(cached) $ac_c" 1>&6
10415 else
10416
10417 cat > conftest.$ac_ext <<EOF
10418 #line 10419 "configure"
10419 #include "confdefs.h"
10420 #define _FILE_OFFSET_BITS 64
10421 #include <sys/types.h>
10422 int main() {
10423 typedef struct {
10424 unsigned int field: sizeof(off_t) == 8;
10425 } wxlf;
10426
10427 ; return 0; }
10428 EOF
10429 if { (eval echo configure:10430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10430 rm -rf conftest*
10431 ac_cv_sys_file_offset_bits=64
10432 else
10433 echo "configure: failed program was:" >&5
10434 cat conftest.$ac_ext >&5
10435 rm -rf conftest*
10436 ac_cv_sys_file_offset_bits=no
10437 fi
10438 rm -f conftest*
10439
10440
10441 fi
10442
10443 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10444
10445 if test "$ac_cv_sys_file_offset_bits" != no; then
10446 wx_largefile=yes
10447 cat >> confdefs.h <<EOF
10448 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10449 EOF
10450
10451 fi
10452
10453 if test "x$wx_largefile" != "xyes"; then
10454
10455 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10456 echo "configure:10457: checking for _LARGE_FILES value needed for large files" >&5
10457 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10458 echo $ac_n "(cached) $ac_c" 1>&6
10459 else
10460
10461 cat > conftest.$ac_ext <<EOF
10462 #line 10463 "configure"
10463 #include "confdefs.h"
10464 #define _LARGE_FILES 1
10465 #include <sys/types.h>
10466 int main() {
10467 typedef struct {
10468 unsigned int field: sizeof(off_t) == 8;
10469 } wxlf;
10470
10471 ; return 0; }
10472 EOF
10473 if { (eval echo configure:10474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10474 rm -rf conftest*
10475 ac_cv_sys_large_files=1
10476 else
10477 echo "configure: failed program was:" >&5
10478 cat conftest.$ac_ext >&5
10479 rm -rf conftest*
10480 ac_cv_sys_large_files=no
10481 fi
10482 rm -f conftest*
10483
10484
10485 fi
10486
10487 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10488
10489 if test "$ac_cv_sys_large_files" != no; then
10490 wx_largefile=yes
10491 cat >> confdefs.h <<EOF
10492 #define _LARGE_FILES $ac_cv_sys_large_files
10493 EOF
10494
10495 fi
10496
10497 fi
10498
10499 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10500 echo "configure:10501: checking if large file support is available" >&5
10501 if test "x$wx_largefile" = "xyes"; then
10502 cat >> confdefs.h <<\EOF
10503 #define HAVE_LARGEFILE_SUPPORT 1
10504 EOF
10505
10506 fi
10507 echo "$ac_t""$wx_largefile" 1>&6
10508 fi
10509
10510
10511 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10512 echo "configure:10513: checking whether byte ordering is bigendian" >&5
10513 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10514 echo $ac_n "(cached) $ac_c" 1>&6
10515 else
10516 ac_cv_c_bigendian=unknown
10517 # See if sys/param.h defines the BYTE_ORDER macro.
10518 cat > conftest.$ac_ext <<EOF
10519 #line 10520 "configure"
10520 #include "confdefs.h"
10521 #include <sys/types.h>
10522 #include <sys/param.h>
10523 int main() {
10524
10525 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10526 bogus endian macros
10527 #endif
10528 ; return 0; }
10529 EOF
10530 if { (eval echo configure:10531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10531 rm -rf conftest*
10532 # It does; now see whether it defined to BIG_ENDIAN or not.
10533 cat > conftest.$ac_ext <<EOF
10534 #line 10535 "configure"
10535 #include "confdefs.h"
10536 #include <sys/types.h>
10537 #include <sys/param.h>
10538 int main() {
10539
10540 #if BYTE_ORDER != BIG_ENDIAN
10541 not big endian
10542 #endif
10543 ; return 0; }
10544 EOF
10545 if { (eval echo configure:10546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10546 rm -rf conftest*
10547 ac_cv_c_bigendian=yes
10548 else
10549 echo "configure: failed program was:" >&5
10550 cat conftest.$ac_ext >&5
10551 rm -rf conftest*
10552 ac_cv_c_bigendian=no
10553 fi
10554 rm -f conftest*
10555 else
10556 echo "configure: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10558 fi
10559 rm -f conftest*
10560 if test $ac_cv_c_bigendian = unknown; then
10561 if test "$cross_compiling" = yes; then
10562 ac_cv_c_bigendian=unknown
10563 else
10564 cat > conftest.$ac_ext <<EOF
10565 #line 10566 "configure"
10566 #include "confdefs.h"
10567 main () {
10568 /* Are we little or big endian? From Harbison&Steele. */
10569 union
10570 {
10571 long l;
10572 char c[sizeof (long)];
10573 } u;
10574 u.l = 1;
10575 exit (u.c[sizeof (long) - 1] == 1);
10576 }
10577 EOF
10578 if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10579 then
10580 ac_cv_c_bigendian=no
10581 else
10582 echo "configure: failed program was:" >&5
10583 cat conftest.$ac_ext >&5
10584 rm -fr conftest*
10585 ac_cv_c_bigendian=yes
10586 fi
10587 rm -fr conftest*
10588 fi
10589
10590 fi
10591 fi
10592
10593 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10594 if test $ac_cv_c_bigendian = unknown; then
10595 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
10596 fi
10597 if test $ac_cv_c_bigendian = yes; then
10598 cat >> confdefs.h <<\EOF
10599 #define WORDS_BIGENDIAN 1
10600 EOF
10601
10602 fi
10603
10604
10605 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10606 echo "configure:10607: checking how to run the C++ preprocessor" >&5
10607 if test -z "$CXXCPP"; then
10608 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10609 echo $ac_n "(cached) $ac_c" 1>&6
10610 else
10611 ac_ext=C
10612 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10613 ac_cpp='$CXXCPP $CPPFLAGS'
10614 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10615 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10616 cross_compiling=$ac_cv_prog_cxx_cross
10617 CXXCPP="${CXX-g++} -E"
10618 cat > conftest.$ac_ext <<EOF
10619 #line 10620 "configure"
10620 #include "confdefs.h"
10621 #include <stdlib.h>
10622 EOF
10623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10624 { (eval echo configure:10625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10626 if test -z "$ac_err"; then
10627 :
10628 else
10629 echo "$ac_err" >&5
10630 echo "configure: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10632 rm -rf conftest*
10633 CXXCPP=/lib/cpp
10634 fi
10635 rm -f conftest*
10636 ac_cv_prog_CXXCPP="$CXXCPP"
10637 ac_ext=C
10638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10639 ac_cpp='$CXXCPP $CPPFLAGS'
10640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10642 cross_compiling=$ac_cv_prog_cxx_cross
10643 fi
10644 fi
10645 CXXCPP="$ac_cv_prog_CXXCPP"
10646 echo "$ac_t""$CXXCPP" 1>&6
10647
10648
10649 if test "$cross_compiling" = "yes"; then
10650 cat >> confdefs.h <<\EOF
10651 #define wxUSE_IOSTREAMH 1
10652 EOF
10653
10654 else
10655
10656 ac_ext=C
10657 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10658 ac_cpp='$CXXCPP $CPPFLAGS'
10659 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10660 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10661 cross_compiling=$ac_cv_prog_cxx_cross
10662
10663
10664 for ac_hdr in iostream
10665 do
10666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10668 echo "configure:10669: checking for $ac_hdr" >&5
10669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10670 echo $ac_n "(cached) $ac_c" 1>&6
10671 else
10672 cat > conftest.$ac_ext <<EOF
10673 #line 10674 "configure"
10674 #include "confdefs.h"
10675 #include <$ac_hdr>
10676 EOF
10677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10678 { (eval echo configure:10679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10680 if test -z "$ac_err"; then
10681 rm -rf conftest*
10682 eval "ac_cv_header_$ac_safe=yes"
10683 else
10684 echo "$ac_err" >&5
10685 echo "configure: failed program was:" >&5
10686 cat conftest.$ac_ext >&5
10687 rm -rf conftest*
10688 eval "ac_cv_header_$ac_safe=no"
10689 fi
10690 rm -f conftest*
10691 fi
10692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10693 echo "$ac_t""yes" 1>&6
10694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10695 cat >> confdefs.h <<EOF
10696 #define $ac_tr_hdr 1
10697 EOF
10698
10699 else
10700 echo "$ac_t""no" 1>&6
10701 fi
10702 done
10703
10704
10705 if test "$ac_cv_header_iostream" = "yes" ; then
10706 :
10707 else
10708 cat >> confdefs.h <<\EOF
10709 #define wxUSE_IOSTREAMH 1
10710 EOF
10711
10712 fi
10713
10714 ac_ext=c
10715 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10716 ac_cpp='$CPP $CPPFLAGS'
10717 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10718 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10719 cross_compiling=$ac_cv_prog_cc_cross
10720
10721 fi
10722
10723
10724
10725 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10726 echo "configure:10727: checking if C++ compiler supports bool" >&5
10727 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10728 echo $ac_n "(cached) $ac_c" 1>&6
10729 else
10730
10731
10732 ac_ext=C
10733 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10734 ac_cpp='$CXXCPP $CPPFLAGS'
10735 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10736 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10737 cross_compiling=$ac_cv_prog_cxx_cross
10738
10739
10740 cat > conftest.$ac_ext <<EOF
10741 #line 10742 "configure"
10742 #include "confdefs.h"
10743
10744
10745 int main() {
10746
10747 bool b = true;
10748
10749 return 0;
10750
10751 ; return 0; }
10752 EOF
10753 if { (eval echo configure:10754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10754 rm -rf conftest*
10755
10756 wx_cv_cpp_bool=yes
10757
10758 else
10759 echo "configure: failed program was:" >&5
10760 cat conftest.$ac_ext >&5
10761 rm -rf conftest*
10762
10763 wx_cv_cpp_bool=no
10764
10765
10766 fi
10767 rm -f conftest*
10768
10769 ac_ext=c
10770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10771 ac_cpp='$CPP $CPPFLAGS'
10772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10774 cross_compiling=$ac_cv_prog_cc_cross
10775
10776
10777 fi
10778
10779 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10780
10781 if test "$wx_cv_cpp_bool" = "yes"; then
10782 cat >> confdefs.h <<\EOF
10783 #define HAVE_BOOL 1
10784 EOF
10785
10786 fi
10787
10788
10789
10790 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
10791 echo "configure:10792: checking if C++ compiler supports the explicit keyword" >&5
10792 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10793 echo $ac_n "(cached) $ac_c" 1>&6
10794 else
10795
10796
10797 ac_ext=C
10798 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10799 ac_cpp='$CXXCPP $CPPFLAGS'
10800 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10801 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10802 cross_compiling=$ac_cv_prog_cxx_cross
10803
10804
10805 cat > conftest.$ac_ext <<EOF
10806 #line 10807 "configure"
10807 #include "confdefs.h"
10808
10809 class Foo { public: explicit Foo(int) {} };
10810
10811 int main() {
10812
10813 return 0;
10814
10815 ; return 0; }
10816 EOF
10817 if { (eval echo configure:10818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10818 rm -rf conftest*
10819
10820 cat > conftest.$ac_ext <<EOF
10821 #line 10822 "configure"
10822 #include "confdefs.h"
10823
10824 class Foo { public: explicit Foo(int) {} };
10825 static void TakeFoo(const Foo& foo) { }
10826
10827 int main() {
10828
10829 TakeFoo(17);
10830 return 0;
10831
10832 ; return 0; }
10833 EOF
10834 if { (eval echo configure:10835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10835 rm -rf conftest*
10836 wx_cv_explicit=no
10837 else
10838 echo "configure: failed program was:" >&5
10839 cat conftest.$ac_ext >&5
10840 rm -rf conftest*
10841 wx_cv_explicit=yes
10842
10843 fi
10844 rm -f conftest*
10845
10846 else
10847 echo "configure: failed program was:" >&5
10848 cat conftest.$ac_ext >&5
10849 rm -rf conftest*
10850 wx_cv_explicit=no
10851
10852 fi
10853 rm -f conftest*
10854
10855 ac_ext=c
10856 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10857 ac_cpp='$CPP $CPPFLAGS'
10858 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10859 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10860 cross_compiling=$ac_cv_prog_cc_cross
10861
10862
10863 fi
10864
10865 echo "$ac_t""$wx_cv_explicit" 1>&6
10866
10867 if test "$wx_cv_explicit" = "yes"; then
10868 cat >> confdefs.h <<\EOF
10869 #define HAVE_EXPLICIT 1
10870 EOF
10871
10872 fi
10873
10874
10875
10876 SEARCH_INCLUDE="\
10877 /usr/local/include \
10878 \
10879 /usr/Motif-1.2/include \
10880 /usr/Motif-2.1/include \
10881 \
10882 /usr/include/Motif1.2 \
10883 /opt/xpm/include/X11 \
10884 /opt/GBxpm/include/ \
10885 /opt/GBxpm/X11/include/ \
10886 \
10887 /usr/Motif1.2/include \
10888 /usr/dt/include \
10889 /usr/openwin/include \
10890 \
10891 /usr/include/Xm \
10892 \
10893 /usr/X11R6/include \
10894 /usr/X11R6.4/include \
10895 /usr/X11R5/include \
10896 /usr/X11R4/include \
10897 \
10898 /usr/include/X11R6 \
10899 /usr/include/X11R5 \
10900 /usr/include/X11R4 \
10901 \
10902 /usr/local/X11R6/include \
10903 /usr/local/X11R5/include \
10904 /usr/local/X11R4/include \
10905 \
10906 /usr/local/include/X11R6 \
10907 /usr/local/include/X11R5 \
10908 /usr/local/include/X11R4 \
10909 \
10910 /usr/X11/include \
10911 /usr/include/X11 \
10912 /usr/local/X11/include \
10913 /usr/local/include/X11 \
10914 \
10915 /usr/X386/include \
10916 /usr/x386/include \
10917 /usr/XFree86/include/X11 \
10918 \
10919 X:/XFree86/include \
10920 X:/XFree86/include/X11 \
10921 \
10922 /usr/include/gtk \
10923 /usr/local/include/gtk \
10924 /usr/include/glib \
10925 /usr/local/include/glib \
10926 \
10927 /usr/include/qt \
10928 /usr/local/include/qt \
10929 \
10930 /usr/include/windows \
10931 /usr/include/wine \
10932 /usr/local/include/wine \
10933 \
10934 /usr/unsupported/include \
10935 /usr/athena/include \
10936 /usr/local/x11r5/include \
10937 /usr/lpp/Xamples/include \
10938 \
10939 /usr/openwin/share/include \
10940 \
10941 /usr/include"
10942
10943 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10944
10945
10946 cat > confcache <<\EOF
10947 # This file is a shell script that caches the results of configure
10948 # tests run on this system so they can be shared between configure
10949 # scripts and configure runs. It is not useful on other systems.
10950 # If it contains results you don't want to keep, you may remove or edit it.
10951 #
10952 # By default, configure uses ./config.cache as the cache file,
10953 # creating it if it does not exist already. You can give configure
10954 # the --cache-file=FILE option to use a different cache file; that is
10955 # what configure does when it calls configure scripts in
10956 # subdirectories, so they share the cache.
10957 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10958 # config.status only pays attention to the cache file if you give it the
10959 # --recheck option to rerun configure.
10960 #
10961 EOF
10962 # The following way of writing the cache mishandles newlines in values,
10963 # but we know of no workaround that is simple, portable, and efficient.
10964 # So, don't put newlines in cache variables' values.
10965 # Ultrix sh set writes to stderr and can't be redirected directly,
10966 # and sets the high bit in the cache file unless we assign to the vars.
10967 (set) 2>&1 |
10968 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10969 *ac_space=\ *)
10970 # `set' does not quote correctly, so add quotes (double-quote substitution
10971 # turns \\\\ into \\, and sed turns \\ into \).
10972 sed -n \
10973 -e "s/'/'\\\\''/g" \
10974 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10975 ;;
10976 *)
10977 # `set' quotes correctly as required by POSIX, so do not add quotes.
10978 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10979 ;;
10980 esac >> confcache
10981 if cmp -s $cache_file confcache; then
10982 :
10983 else
10984 if test -w $cache_file; then
10985 echo "updating cache $cache_file"
10986 cat confcache > $cache_file
10987 else
10988 echo "not updating unwritable cache $cache_file"
10989 fi
10990 fi
10991 rm -f confcache
10992
10993
10994 if test "$USE_LINUX" = 1; then
10995 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
10996 echo "configure:10997: checking for glibc 2.1 or later" >&5
10997 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
10998 echo $ac_n "(cached) $ac_c" 1>&6
10999 else
11000
11001 cat > conftest.$ac_ext <<EOF
11002 #line 11003 "configure"
11003 #include "confdefs.h"
11004 #include <features.h>
11005 int main() {
11006
11007 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11008 #error not glibc2.1
11009 #endif
11010
11011 ; return 0; }
11012 EOF
11013 if { (eval echo configure:11014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11014 rm -rf conftest*
11015
11016 wx_cv_lib_glibc21=yes
11017
11018 else
11019 echo "configure: failed program was:" >&5
11020 cat conftest.$ac_ext >&5
11021 rm -rf conftest*
11022
11023 wx_cv_lib_glibc21=no
11024
11025
11026 fi
11027 rm -f conftest*
11028
11029 fi
11030
11031 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11032 if test "$wx_cv_lib_glibc21" = "yes"; then
11033 cat >> confdefs.h <<\EOF
11034 #define wxHAVE_GLIBC2 1
11035 EOF
11036
11037 fi
11038 fi
11039
11040
11041
11042 REGEX_INCLUDE=
11043 if test "$wxUSE_REGEX" != "no"; then
11044 cat >> confdefs.h <<\EOF
11045 #define wxUSE_REGEX 1
11046 EOF
11047
11048
11049 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11050 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11051 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11052 echo "configure:11053: checking for regex.h" >&5
11053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11054 echo $ac_n "(cached) $ac_c" 1>&6
11055 else
11056 cat > conftest.$ac_ext <<EOF
11057 #line 11058 "configure"
11058 #include "confdefs.h"
11059 #include <regex.h>
11060 EOF
11061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11062 { (eval echo configure:11063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11064 if test -z "$ac_err"; then
11065 rm -rf conftest*
11066 eval "ac_cv_header_$ac_safe=yes"
11067 else
11068 echo "$ac_err" >&5
11069 echo "configure: failed program was:" >&5
11070 cat conftest.$ac_ext >&5
11071 rm -rf conftest*
11072 eval "ac_cv_header_$ac_safe=no"
11073 fi
11074 rm -f conftest*
11075 fi
11076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11077 echo "$ac_t""yes" 1>&6
11078 for ac_func in regcomp
11079 do
11080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11081 echo "configure:11082: checking for $ac_func" >&5
11082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11083 echo $ac_n "(cached) $ac_c" 1>&6
11084 else
11085 cat > conftest.$ac_ext <<EOF
11086 #line 11087 "configure"
11087 #include "confdefs.h"
11088 /* System header to define __stub macros and hopefully few prototypes,
11089 which can conflict with char $ac_func(); below. */
11090 #include <assert.h>
11091 /* Override any gcc2 internal prototype to avoid an error. */
11092 /* We use char because int might match the return type of a gcc2
11093 builtin and then its argument prototype would still apply. */
11094 char $ac_func();
11095
11096 int main() {
11097
11098 /* The GNU C library defines this for functions which it implements
11099 to always fail with ENOSYS. Some functions are actually named
11100 something starting with __ and the normal name is an alias. */
11101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11102 choke me
11103 #else
11104 $ac_func();
11105 #endif
11106
11107 ; return 0; }
11108 EOF
11109 if { (eval echo configure:11110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11110 rm -rf conftest*
11111 eval "ac_cv_func_$ac_func=yes"
11112 else
11113 echo "configure: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 rm -rf conftest*
11116 eval "ac_cv_func_$ac_func=no"
11117 fi
11118 rm -f conftest*
11119 fi
11120
11121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11122 echo "$ac_t""yes" 1>&6
11123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11124 cat >> confdefs.h <<EOF
11125 #define $ac_tr_func 1
11126 EOF
11127
11128 else
11129 echo "$ac_t""no" 1>&6
11130 fi
11131 done
11132
11133 else
11134 echo "$ac_t""no" 1>&6
11135 fi
11136
11137
11138 if test "x$ac_cv_func_regcomp" != "xyes"; then
11139 if test "$wxUSE_REGEX" = "sys" ; then
11140 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11141 else
11142 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11143 wxUSE_REGEX=builtin
11144 fi
11145 else
11146 wxUSE_REGEX=sys
11147 fi
11148 fi
11149
11150 if test "$wxUSE_REGEX" = "builtin" ; then
11151 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11152 fi
11153 fi
11154
11155
11156 ZLIB_INCLUDE=
11157 ZLIB_LINK=
11158 if test "$wxUSE_ZLIB" != "no" ; then
11159 cat >> confdefs.h <<\EOF
11160 #define wxUSE_ZLIB 1
11161 EOF
11162
11163
11164 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11165 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11166 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11167 echo "configure:11168: checking for zlib.h" >&5
11168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11169 echo $ac_n "(cached) $ac_c" 1>&6
11170 else
11171 cat > conftest.$ac_ext <<EOF
11172 #line 11173 "configure"
11173 #include "confdefs.h"
11174 #include <zlib.h>
11175 EOF
11176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11177 { (eval echo configure:11178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11179 if test -z "$ac_err"; then
11180 rm -rf conftest*
11181 eval "ac_cv_header_$ac_safe=yes"
11182 else
11183 echo "$ac_err" >&5
11184 echo "configure: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11186 rm -rf conftest*
11187 eval "ac_cv_header_$ac_safe=no"
11188 fi
11189 rm -f conftest*
11190 fi
11191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11192 echo "$ac_t""yes" 1>&6
11193 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11194 echo "configure:11195: checking for deflate in -lz" >&5
11195 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11197 echo $ac_n "(cached) $ac_c" 1>&6
11198 else
11199 ac_save_LIBS="$LIBS"
11200 LIBS="-lz $LIBS"
11201 cat > conftest.$ac_ext <<EOF
11202 #line 11203 "configure"
11203 #include "confdefs.h"
11204 /* Override any gcc2 internal prototype to avoid an error. */
11205 /* We use char because int might match the return type of a gcc2
11206 builtin and then its argument prototype would still apply. */
11207 char deflate();
11208
11209 int main() {
11210 deflate()
11211 ; return 0; }
11212 EOF
11213 if { (eval echo configure:11214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11214 rm -rf conftest*
11215 eval "ac_cv_lib_$ac_lib_var=yes"
11216 else
11217 echo "configure: failed program was:" >&5
11218 cat conftest.$ac_ext >&5
11219 rm -rf conftest*
11220 eval "ac_cv_lib_$ac_lib_var=no"
11221 fi
11222 rm -f conftest*
11223 LIBS="$ac_save_LIBS"
11224
11225 fi
11226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11227 echo "$ac_t""yes" 1>&6
11228 ZLIB_LINK=" -lz"
11229 else
11230 echo "$ac_t""no" 1>&6
11231 fi
11232
11233 else
11234 echo "$ac_t""no" 1>&6
11235 fi
11236
11237
11238 if test "x$ZLIB_LINK" = "x" ; then
11239 if test "$wxUSE_ZLIB" = "sys" ; then
11240 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11241 else
11242 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11243 wxUSE_ZLIB=builtin
11244 fi
11245 else
11246 wxUSE_ZLIB=sys
11247 fi
11248 fi
11249
11250 if test "$wxUSE_ZLIB" = "builtin" ; then
11251 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11252 fi
11253 fi
11254
11255
11256 PNG_INCLUDE=
11257 PNG_LINK=
11258 if test "$wxUSE_LIBPNG" != "no" ; then
11259 cat >> confdefs.h <<\EOF
11260 #define wxUSE_LIBPNG 1
11261 EOF
11262
11263
11264 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11265 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11266 wxUSE_LIBPNG=sys
11267 fi
11268
11269 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11270 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11271 wxUSE_LIBPNG=builtin
11272 fi
11273
11274 if test "$wxUSE_MGL" != 1 ; then
11275 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11276 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11277 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11278 echo "configure:11279: checking for png.h" >&5
11279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11280 echo $ac_n "(cached) $ac_c" 1>&6
11281 else
11282 cat > conftest.$ac_ext <<EOF
11283 #line 11284 "configure"
11284 #include "confdefs.h"
11285 #include <png.h>
11286 EOF
11287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11288 { (eval echo configure:11289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11290 if test -z "$ac_err"; then
11291 rm -rf conftest*
11292 eval "ac_cv_header_$ac_safe=yes"
11293 else
11294 echo "$ac_err" >&5
11295 echo "configure: failed program was:" >&5
11296 cat conftest.$ac_ext >&5
11297 rm -rf conftest*
11298 eval "ac_cv_header_$ac_safe=no"
11299 fi
11300 rm -f conftest*
11301 fi
11302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11303 echo "$ac_t""yes" 1>&6
11304 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11305 echo "configure:11306: checking for png_check_sig in -lpng" >&5
11306 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11308 echo $ac_n "(cached) $ac_c" 1>&6
11309 else
11310 ac_save_LIBS="$LIBS"
11311 LIBS="-lpng -lz -lm $LIBS"
11312 cat > conftest.$ac_ext <<EOF
11313 #line 11314 "configure"
11314 #include "confdefs.h"
11315 /* Override any gcc2 internal prototype to avoid an error. */
11316 /* We use char because int might match the return type of a gcc2
11317 builtin and then its argument prototype would still apply. */
11318 char png_check_sig();
11319
11320 int main() {
11321 png_check_sig()
11322 ; return 0; }
11323 EOF
11324 if { (eval echo configure:11325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11325 rm -rf conftest*
11326 eval "ac_cv_lib_$ac_lib_var=yes"
11327 else
11328 echo "configure: failed program was:" >&5
11329 cat conftest.$ac_ext >&5
11330 rm -rf conftest*
11331 eval "ac_cv_lib_$ac_lib_var=no"
11332 fi
11333 rm -f conftest*
11334 LIBS="$ac_save_LIBS"
11335
11336 fi
11337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11338 echo "$ac_t""yes" 1>&6
11339 PNG_LINK=" -lpng"
11340 else
11341 echo "$ac_t""no" 1>&6
11342 fi
11343
11344
11345 else
11346 echo "$ac_t""no" 1>&6
11347 fi
11348
11349
11350 if test "x$PNG_LINK" = "x" ; then
11351 if test "$wxUSE_LIBPNG" = "sys" ; then
11352 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11353 else
11354 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11355 wxUSE_LIBPNG=builtin
11356 fi
11357 else
11358 wxUSE_LIBPNG=yes
11359 fi
11360 fi
11361 fi
11362
11363 if test "$wxUSE_LIBPNG" = "builtin" ; then
11364 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11365 fi
11366
11367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11368 fi
11369
11370
11371 JPEG_INCLUDE=
11372 JPEG_LINK=
11373 if test "$wxUSE_LIBJPEG" != "no" ; then
11374 cat >> confdefs.h <<\EOF
11375 #define wxUSE_LIBJPEG 1
11376 EOF
11377
11378
11379 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11380 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11381 wxUSE_LIBJPEG=sys
11382 fi
11383
11384 if test "$wxUSE_MGL" != 1 ; then
11385 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11386 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11387 echo "configure:11388: checking for jpeglib.h" >&5
11388 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11389 echo $ac_n "(cached) $ac_c" 1>&6
11390 else
11391 cat > conftest.$ac_ext <<EOF
11392 #line 11393 "configure"
11393 #include "confdefs.h"
11394
11395 #undef HAVE_STDLIB_H
11396 #include <stdio.h>
11397 #include <jpeglib.h>
11398
11399 int main() {
11400
11401
11402 ; return 0; }
11403 EOF
11404 if { (eval echo configure:11405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11405 rm -rf conftest*
11406 ac_cv_header_jpeglib_h=yes
11407 else
11408 echo "configure: failed program was:" >&5
11409 cat conftest.$ac_ext >&5
11410 rm -rf conftest*
11411 ac_cv_header_jpeglib_h=no
11412
11413 fi
11414 rm -f conftest*
11415
11416 fi
11417
11418 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11419
11420 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11421 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11422 echo "configure:11423: checking for jpeg_read_header in -ljpeg" >&5
11423 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11425 echo $ac_n "(cached) $ac_c" 1>&6
11426 else
11427 ac_save_LIBS="$LIBS"
11428 LIBS="-ljpeg $LIBS"
11429 cat > conftest.$ac_ext <<EOF
11430 #line 11431 "configure"
11431 #include "confdefs.h"
11432 /* Override any gcc2 internal prototype to avoid an error. */
11433 /* We use char because int might match the return type of a gcc2
11434 builtin and then its argument prototype would still apply. */
11435 char jpeg_read_header();
11436
11437 int main() {
11438 jpeg_read_header()
11439 ; return 0; }
11440 EOF
11441 if { (eval echo configure:11442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11442 rm -rf conftest*
11443 eval "ac_cv_lib_$ac_lib_var=yes"
11444 else
11445 echo "configure: failed program was:" >&5
11446 cat conftest.$ac_ext >&5
11447 rm -rf conftest*
11448 eval "ac_cv_lib_$ac_lib_var=no"
11449 fi
11450 rm -f conftest*
11451 LIBS="$ac_save_LIBS"
11452
11453 fi
11454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11455 echo "$ac_t""yes" 1>&6
11456 JPEG_LINK=" -ljpeg"
11457 else
11458 echo "$ac_t""no" 1>&6
11459 fi
11460
11461 fi
11462
11463 if test "x$JPEG_LINK" = "x" ; then
11464 if test "$wxUSE_LIBJPEG" = "sys" ; then
11465 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11466 else
11467 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11468 wxUSE_LIBJPEG=builtin
11469 fi
11470 else
11471 wxUSE_LIBJPEG=sys
11472 fi
11473 fi
11474 fi
11475
11476 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11477 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11478 fi
11479 fi
11480
11481
11482 TIFF_INCLUDE=
11483 TIFF_LINK=
11484 if test "$wxUSE_LIBTIFF" != "no" ; then
11485 cat >> confdefs.h <<\EOF
11486 #define wxUSE_LIBTIFF 1
11487 EOF
11488
11489
11490 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11491 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11492 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11493 echo "configure:11494: checking for tiffio.h" >&5
11494 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11496 else
11497 cat > conftest.$ac_ext <<EOF
11498 #line 11499 "configure"
11499 #include "confdefs.h"
11500 #include <tiffio.h>
11501 EOF
11502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11503 { (eval echo configure:11504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11505 if test -z "$ac_err"; then
11506 rm -rf conftest*
11507 eval "ac_cv_header_$ac_safe=yes"
11508 else
11509 echo "$ac_err" >&5
11510 echo "configure: failed program was:" >&5
11511 cat conftest.$ac_ext >&5
11512 rm -rf conftest*
11513 eval "ac_cv_header_$ac_safe=no"
11514 fi
11515 rm -f conftest*
11516 fi
11517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11518 echo "$ac_t""yes" 1>&6
11519 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11520 echo "configure:11521: checking for TIFFError in -ltiff" >&5
11521 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11523 echo $ac_n "(cached) $ac_c" 1>&6
11524 else
11525 ac_save_LIBS="$LIBS"
11526 LIBS="-ltiff -lm $LIBS"
11527 cat > conftest.$ac_ext <<EOF
11528 #line 11529 "configure"
11529 #include "confdefs.h"
11530 /* Override any gcc2 internal prototype to avoid an error. */
11531 /* We use char because int might match the return type of a gcc2
11532 builtin and then its argument prototype would still apply. */
11533 char TIFFError();
11534
11535 int main() {
11536 TIFFError()
11537 ; return 0; }
11538 EOF
11539 if { (eval echo configure:11540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11540 rm -rf conftest*
11541 eval "ac_cv_lib_$ac_lib_var=yes"
11542 else
11543 echo "configure: failed program was:" >&5
11544 cat conftest.$ac_ext >&5
11545 rm -rf conftest*
11546 eval "ac_cv_lib_$ac_lib_var=no"
11547 fi
11548 rm -f conftest*
11549 LIBS="$ac_save_LIBS"
11550
11551 fi
11552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11553 echo "$ac_t""yes" 1>&6
11554 TIFF_LINK=" -ltiff"
11555 else
11556 echo "$ac_t""no" 1>&6
11557 fi
11558
11559
11560 else
11561 echo "$ac_t""no" 1>&6
11562 fi
11563
11564
11565 if test "x$TIFF_LINK" = "x" ; then
11566 if test "$wxUSE_LIBTIFF" = "sys" ; then
11567 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
11568 else
11569 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11570 wxUSE_LIBTIFF=builtin
11571 fi
11572 else
11573 wxUSE_LIBTIFF=sys
11574 fi
11575 fi
11576
11577 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11578 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11579 fi
11580 fi
11581
11582
11583 AFMINSTALL=
11584
11585 TOOLKIT=
11586 TOOLKIT_INCLUDE=
11587 WIDGET_SET=
11588
11589 if test "$USE_WIN32" = 1 ; then
11590 for ac_hdr in w32api.h
11591 do
11592 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11593 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11594 echo "configure:11595: checking for $ac_hdr" >&5
11595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11596 echo $ac_n "(cached) $ac_c" 1>&6
11597 else
11598 cat > conftest.$ac_ext <<EOF
11599 #line 11600 "configure"
11600 #include "confdefs.h"
11601 #include <$ac_hdr>
11602 EOF
11603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11604 { (eval echo configure:11605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11606 if test -z "$ac_err"; then
11607 rm -rf conftest*
11608 eval "ac_cv_header_$ac_safe=yes"
11609 else
11610 echo "$ac_err" >&5
11611 echo "configure: failed program was:" >&5
11612 cat conftest.$ac_ext >&5
11613 rm -rf conftest*
11614 eval "ac_cv_header_$ac_safe=no"
11615 fi
11616 rm -f conftest*
11617 fi
11618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11619 echo "$ac_t""yes" 1>&6
11620 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11621 cat >> confdefs.h <<EOF
11622 #define $ac_tr_hdr 1
11623 EOF
11624
11625 else
11626 echo "$ac_t""no" 1>&6
11627 fi
11628 done
11629
11630 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11631 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11632 echo "configure:11633: checking for windows.h" >&5
11633 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11634 echo $ac_n "(cached) $ac_c" 1>&6
11635 else
11636 cat > conftest.$ac_ext <<EOF
11637 #line 11638 "configure"
11638 #include "confdefs.h"
11639 #include <windows.h>
11640 EOF
11641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11642 { (eval echo configure:11643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11644 if test -z "$ac_err"; then
11645 rm -rf conftest*
11646 eval "ac_cv_header_$ac_safe=yes"
11647 else
11648 echo "$ac_err" >&5
11649 echo "configure: failed program was:" >&5
11650 cat conftest.$ac_ext >&5
11651 rm -rf conftest*
11652 eval "ac_cv_header_$ac_safe=no"
11653 fi
11654 rm -f conftest*
11655 fi
11656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11657 echo "$ac_t""yes" 1>&6
11658 :
11659 else
11660 echo "$ac_t""no" 1>&6
11661
11662 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11663
11664 fi
11665
11666
11667 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
11668 echo "configure:11669: checking if w32api has good enough MSIE support" >&5
11669 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11670 echo $ac_n "(cached) $ac_c" 1>&6
11671 else
11672
11673 cat > conftest.$ac_ext <<EOF
11674 #line 11675 "configure"
11675 #include "confdefs.h"
11676 #include <w32api.h>
11677 int main() {
11678
11679 #define wxCHECK_W32API_VERSION( major, minor ) \
11680 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11681 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11682 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11683
11684 #if !wxCHECK_W32API_VERSION(1,1)
11685 #error You need w32api 1.1 or newer
11686 #endif
11687
11688 ; return 0; }
11689 EOF
11690 if { (eval echo configure:11691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11691 rm -rf conftest*
11692
11693 wx_cv_w32api_win32_ie=yes
11694
11695 else
11696 echo "configure: failed program was:" >&5
11697 cat conftest.$ac_ext >&5
11698 rm -rf conftest*
11699
11700 wx_cv_w32api_win32_ie=no
11701
11702 fi
11703 rm -f conftest*
11704
11705 fi
11706
11707 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11708 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11709 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11710 fi
11711
11712 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11713
11714 case "${host}" in
11715 *-*-cygwin* )
11716 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11717 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11718 esac
11719
11720 if test "$wxUSE_ODBC" = "yes" ; then
11721 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11722 fi
11723
11724 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11725 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
11726 fi
11727
11728 if test "$wxUSE_GUI" = "yes"; then
11729 USE_GUI=1
11730
11731 GUI_TK_LIBRARY=
11732
11733 WXGTK12=
11734 WXGTK127=
11735 WXGTK20=
11736
11737 if test "$wxUSE_MSW" = 1 ; then
11738 TOOLKIT=MSW
11739 GUIDIST=MSW_DIST
11740
11741 case "${host}" in
11742 *-*-mingw32* )
11743 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11744 esac
11745 fi
11746
11747 if test "$wxUSE_GTK" = 1; then
11748 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
11749 echo "configure:11750: checking for GTK+ version" >&5
11750
11751 gtk_version_cached=1
11752 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
11753 echo $ac_n "(cached) $ac_c" 1>&6
11754 else
11755
11756 gtk_version_cached=0
11757 echo "$ac_t""" 1>&6
11758
11759 GTK_MODULES=
11760 if test "$wxUSE_THREADS" = "yes"; then
11761 GTK_MODULES=gthread
11762 fi
11763
11764 wx_cv_lib_gtk=
11765 if test "x$wxUSE_GTK2" = "xyes"; then
11766 # Check whether --enable-gtktest or --disable-gtktest was given.
11767 if test "${enable_gtktest+set}" = set; then
11768 enableval="$enable_gtktest"
11769 :
11770 else
11771 enable_gtktest=yes
11772 fi
11773
11774
11775 pkg_config_args=gtk+-2.0
11776 for module in . $GTK_MODULES
11777 do
11778 case "$module" in
11779 gthread)
11780 pkg_config_args="$pkg_config_args gthread-2.0"
11781 ;;
11782 esac
11783 done
11784
11785 no_gtk=""
11786
11787 # Extract the first word of "pkg-config", so it can be a program name with args.
11788 set dummy pkg-config; ac_word=$2
11789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11790 echo "configure:11791: checking for $ac_word" >&5
11791 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11792 echo $ac_n "(cached) $ac_c" 1>&6
11793 else
11794 case "$PKG_CONFIG" in
11795 /*)
11796 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11797 ;;
11798 ?:/*)
11799 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11800 ;;
11801 *)
11802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11803 ac_dummy="$PATH"
11804 for ac_dir in $ac_dummy; do
11805 test -z "$ac_dir" && ac_dir=.
11806 if test -f $ac_dir/$ac_word; then
11807 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11808 break
11809 fi
11810 done
11811 IFS="$ac_save_ifs"
11812 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11813 ;;
11814 esac
11815 fi
11816 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11817 if test -n "$PKG_CONFIG"; then
11818 echo "$ac_t""$PKG_CONFIG" 1>&6
11819 else
11820 echo "$ac_t""no" 1>&6
11821 fi
11822
11823
11824 if test x$PKG_CONFIG != xno ; then
11825 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11826 :
11827 else
11828 echo *** pkg-config too old; version 0.7 or better required.
11829 no_gtk=yes
11830 PKG_CONFIG=no
11831 fi
11832 else
11833 no_gtk=yes
11834 fi
11835
11836 min_gtk_version=2.0.0
11837 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
11838 echo "configure:11839: checking for GTK+ - version >= $min_gtk_version" >&5
11839
11840 if test x$PKG_CONFIG != xno ; then
11841 ## don't try to run the test against uninstalled libtool libs
11842 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11843 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11844 enable_gtktest=no
11845 fi
11846
11847 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11848 :
11849 else
11850 no_gtk=yes
11851 fi
11852 fi
11853
11854 if test x"$no_gtk" = x ; then
11855 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11856 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11857 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11858 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11859 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11860 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11861 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11862 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11863 if test "x$enable_gtktest" = "xyes" ; then
11864 ac_save_CFLAGS="$CFLAGS"
11865 ac_save_LIBS="$LIBS"
11866 CFLAGS="$CFLAGS $GTK_CFLAGS"
11867 LIBS="$GTK_LIBS $LIBS"
11868 rm -f conf.gtktest
11869 if test "$cross_compiling" = yes; then
11870 echo $ac_n "cross compiling; assumed OK... $ac_c"
11871 else
11872 cat > conftest.$ac_ext <<EOF
11873 #line 11874 "configure"
11874 #include "confdefs.h"
11875
11876 #include <gtk/gtk.h>
11877 #include <stdio.h>
11878 #include <stdlib.h>
11879
11880 int
11881 main ()
11882 {
11883 int major, minor, micro;
11884 char *tmp_version;
11885
11886 system ("touch conf.gtktest");
11887
11888 /* HP/UX 9 (%@#!) writes to sscanf strings */
11889 tmp_version = g_strdup("$min_gtk_version");
11890 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11891 printf("%s, bad version string\n", "$min_gtk_version");
11892 exit(1);
11893 }
11894
11895 if ((gtk_major_version != $gtk_config_major_version) ||
11896 (gtk_minor_version != $gtk_config_minor_version) ||
11897 (gtk_micro_version != $gtk_config_micro_version))
11898 {
11899 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11900 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11901 gtk_major_version, gtk_minor_version, gtk_micro_version);
11902 printf ("*** was found! If pkg-config was correct, then it is best\n");
11903 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11904 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11905 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11906 printf("*** required on your system.\n");
11907 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11908 printf("*** to point to the correct configuration files\n");
11909 }
11910 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11911 (gtk_minor_version != GTK_MINOR_VERSION) ||
11912 (gtk_micro_version != GTK_MICRO_VERSION))
11913 {
11914 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11915 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11916 printf("*** library (version %d.%d.%d)\n",
11917 gtk_major_version, gtk_minor_version, gtk_micro_version);
11918 }
11919 else
11920 {
11921 if ((gtk_major_version > major) ||
11922 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11923 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11924 {
11925 return 0;
11926 }
11927 else
11928 {
11929 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11930 gtk_major_version, gtk_minor_version, gtk_micro_version);
11931 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11932 major, minor, micro);
11933 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11934 printf("***\n");
11935 printf("*** If you have already installed a sufficiently new version, this error\n");
11936 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11937 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11938 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11939 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11940 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11941 printf("*** so that the correct libraries are found at run-time))\n");
11942 }
11943 }
11944 return 1;
11945 }
11946
11947 EOF
11948 if { (eval echo configure:11949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11949 then
11950 :
11951 else
11952 echo "configure: failed program was:" >&5
11953 cat conftest.$ac_ext >&5
11954 rm -fr conftest*
11955 no_gtk=yes
11956 fi
11957 rm -fr conftest*
11958 fi
11959
11960 CFLAGS="$ac_save_CFLAGS"
11961 LIBS="$ac_save_LIBS"
11962 fi
11963 fi
11964 if test "x$no_gtk" = x ; then
11965 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11966 wx_cv_lib_gtk=2.0
11967 else
11968 echo "$ac_t""no" 1>&6
11969 if test "$PKG_CONFIG" = "no" ; then
11970 echo "*** A new enough version of pkg-config was not found."
11971 echo "*** See http://pkgconfig.sourceforge.net"
11972 else
11973 if test -f conf.gtktest ; then
11974 :
11975 else
11976 echo "*** Could not run GTK+ test program, checking why..."
11977 ac_save_CFLAGS="$CFLAGS"
11978 ac_save_LIBS="$LIBS"
11979 CFLAGS="$CFLAGS $GTK_CFLAGS"
11980 LIBS="$LIBS $GTK_LIBS"
11981 cat > conftest.$ac_ext <<EOF
11982 #line 11983 "configure"
11983 #include "confdefs.h"
11984
11985 #include <gtk/gtk.h>
11986 #include <stdio.h>
11987
11988 int main() {
11989 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11990 ; return 0; }
11991 EOF
11992 if { (eval echo configure:11993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11993 rm -rf conftest*
11994 echo "*** The test program compiled, but did not run. This usually means"
11995 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11996 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11997 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11998 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11999 echo "*** is required on your system"
12000 echo "***"
12001 echo "*** If you have an old version installed, it is best to remove it, although"
12002 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12003 else
12004 echo "configure: failed program was:" >&5
12005 cat conftest.$ac_ext >&5
12006 rm -rf conftest*
12007 echo "*** The test program failed to compile or link. See the file config.log for the"
12008 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12009 fi
12010 rm -f conftest*
12011 CFLAGS="$ac_save_CFLAGS"
12012 LIBS="$ac_save_LIBS"
12013 fi
12014 fi
12015 GTK_CFLAGS=""
12016 GTK_LIBS=""
12017 :
12018 fi
12019
12020
12021 rm -f conf.gtktest
12022
12023
12024 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12025
12026 succeeded=no
12027
12028 if test -z "$PKG_CONFIG"; then
12029 # Extract the first word of "pkg-config", so it can be a program name with args.
12030 set dummy pkg-config; ac_word=$2
12031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12032 echo "configure:12033: checking for $ac_word" >&5
12033 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12034 echo $ac_n "(cached) $ac_c" 1>&6
12035 else
12036 case "$PKG_CONFIG" in
12037 /*)
12038 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12039 ;;
12040 ?:/*)
12041 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12042 ;;
12043 *)
12044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12045 ac_dummy="$PATH"
12046 for ac_dir in $ac_dummy; do
12047 test -z "$ac_dir" && ac_dir=.
12048 if test -f $ac_dir/$ac_word; then
12049 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12050 break
12051 fi
12052 done
12053 IFS="$ac_save_ifs"
12054 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12055 ;;
12056 esac
12057 fi
12058 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12059 if test -n "$PKG_CONFIG"; then
12060 echo "$ac_t""$PKG_CONFIG" 1>&6
12061 else
12062 echo "$ac_t""no" 1>&6
12063 fi
12064
12065 fi
12066
12067 if test "$PKG_CONFIG" = "no" ; then
12068 echo "*** The pkg-config script could not be found. Make sure it is"
12069 echo "*** in your path, or set the PKG_CONFIG environment variable"
12070 echo "*** to the full path to pkg-config."
12071 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12072 else
12073 PKG_CONFIG_MIN_VERSION=0.9.0
12074 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12075 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
12076 echo "configure:12077: checking for pangoft2" >&5
12077
12078 if $PKG_CONFIG --exists "pangoft2" ; then
12079 echo "$ac_t""yes" 1>&6
12080 succeeded=yes
12081
12082 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
12083 echo "configure:12084: checking PANGOFT2_CFLAGS" >&5
12084 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
12085 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
12086
12087 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
12088 echo "configure:12089: checking PANGOFT2_LIBS" >&5
12089 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
12090 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
12091 else
12092 PANGOFT2_CFLAGS=""
12093 PANGOFT2_LIBS=""
12094 ## If we have a custom action on failure, don't print errors, but
12095 ## do set a variable so people can do so.
12096 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
12097 echo $PANGOFT2_PKG_ERRORS
12098 fi
12099
12100
12101
12102 else
12103 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12104 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12105 fi
12106 fi
12107
12108 if test $succeeded = yes; then
12109 :
12110 else
12111 { echo "configure: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
12112 fi
12113
12114 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
12115 LIBS="$LIBS $PANGOFT2_LIBS"
12116 fi
12117 fi
12118
12119 if test -z "$wx_cv_lib_gtk"; then
12120 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12121 if test "${with_gtk_prefix+set}" = set; then
12122 withval="$with_gtk_prefix"
12123 gtk_config_prefix="$withval"
12124 else
12125 gtk_config_prefix=""
12126 fi
12127
12128 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12129 if test "${with_gtk_exec_prefix+set}" = set; then
12130 withval="$with_gtk_exec_prefix"
12131 gtk_config_exec_prefix="$withval"
12132 else
12133 gtk_config_exec_prefix=""
12134 fi
12135
12136 # Check whether --enable-gtktest or --disable-gtktest was given.
12137 if test "${enable_gtktest+set}" = set; then
12138 enableval="$enable_gtktest"
12139 :
12140 else
12141 enable_gtktest=yes
12142 fi
12143
12144
12145 for module in . $GTK_MODULES
12146 do
12147 case "$module" in
12148 gthread)
12149 gtk_config_args="$gtk_config_args gthread"
12150 ;;
12151 esac
12152 done
12153
12154 if test x$gtk_config_exec_prefix != x ; then
12155 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12156 if test x${GTK_CONFIG+set} != xset ; then
12157 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12158 fi
12159 fi
12160 if test x$gtk_config_prefix != x ; then
12161 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12162 if test x${GTK_CONFIG+set} != xset ; then
12163 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12164 fi
12165 fi
12166
12167 # Extract the first word of "gtk-config", so it can be a program name with args.
12168 set dummy gtk-config; ac_word=$2
12169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12170 echo "configure:12171: checking for $ac_word" >&5
12171 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12172 echo $ac_n "(cached) $ac_c" 1>&6
12173 else
12174 case "$GTK_CONFIG" in
12175 /*)
12176 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12177 ;;
12178 ?:/*)
12179 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12180 ;;
12181 *)
12182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12183 ac_dummy="$PATH"
12184 for ac_dir in $ac_dummy; do
12185 test -z "$ac_dir" && ac_dir=.
12186 if test -f $ac_dir/$ac_word; then
12187 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12188 break
12189 fi
12190 done
12191 IFS="$ac_save_ifs"
12192 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12193 ;;
12194 esac
12195 fi
12196 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12197 if test -n "$GTK_CONFIG"; then
12198 echo "$ac_t""$GTK_CONFIG" 1>&6
12199 else
12200 echo "$ac_t""no" 1>&6
12201 fi
12202
12203 min_gtk_version=1.2.7
12204 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12205 echo "configure:12206: checking for GTK - version >= $min_gtk_version" >&5
12206 no_gtk=""
12207 if test "$GTK_CONFIG" = "no" ; then
12208 no_gtk=yes
12209 else
12210 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12211 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12212 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12213 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12214 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12215 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12216 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12217 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12218 if test "x$enable_gtktest" = "xyes" ; then
12219 ac_save_CFLAGS="$CFLAGS"
12220 ac_save_LIBS="$LIBS"
12221 CFLAGS="$CFLAGS $GTK_CFLAGS"
12222 LIBS="$GTK_LIBS $LIBS"
12223 rm -f conf.gtktest
12224 if test "$cross_compiling" = yes; then
12225 echo $ac_n "cross compiling; assumed OK... $ac_c"
12226 else
12227 cat > conftest.$ac_ext <<EOF
12228 #line 12229 "configure"
12229 #include "confdefs.h"
12230
12231 #include <gtk/gtk.h>
12232 #include <stdio.h>
12233 #include <stdlib.h>
12234
12235 int
12236 main ()
12237 {
12238 int major, minor, micro;
12239 char *tmp_version;
12240
12241 system ("touch conf.gtktest");
12242
12243 /* HP/UX 9 (%@#!) writes to sscanf strings */
12244 tmp_version = g_strdup("$min_gtk_version");
12245 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12246 printf("%s, bad version string\n", "$min_gtk_version");
12247 exit(1);
12248 }
12249
12250 if ((gtk_major_version != $gtk_config_major_version) ||
12251 (gtk_minor_version != $gtk_config_minor_version) ||
12252 (gtk_micro_version != $gtk_config_micro_version))
12253 {
12254 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12255 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12256 gtk_major_version, gtk_minor_version, gtk_micro_version);
12257 printf ("*** was found! If gtk-config was correct, then it is best\n");
12258 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12259 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12260 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12261 printf("*** required on your system.\n");
12262 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12263 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12264 printf("*** before re-running configure\n");
12265 }
12266 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12267 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12268 (gtk_minor_version != GTK_MINOR_VERSION) ||
12269 (gtk_micro_version != GTK_MICRO_VERSION))
12270 {
12271 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12272 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12273 printf("*** library (version %d.%d.%d)\n",
12274 gtk_major_version, gtk_minor_version, gtk_micro_version);
12275 }
12276 #endif /* defined (GTK_MAJOR_VERSION) ... */
12277 else
12278 {
12279 if ((gtk_major_version > major) ||
12280 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12281 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12282 {
12283 return 0;
12284 }
12285 else
12286 {
12287 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12288 gtk_major_version, gtk_minor_version, gtk_micro_version);
12289 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12290 major, minor, micro);
12291 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12292 printf("***\n");
12293 printf("*** If you have already installed a sufficiently new version, this error\n");
12294 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12295 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12296 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12297 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12298 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12299 printf("*** so that the correct libraries are found at run-time))\n");
12300 }
12301 }
12302 return 1;
12303 }
12304
12305 EOF
12306 if { (eval echo configure:12307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12307 then
12308 :
12309 else
12310 echo "configure: failed program was:" >&5
12311 cat conftest.$ac_ext >&5
12312 rm -fr conftest*
12313 no_gtk=yes
12314 fi
12315 rm -fr conftest*
12316 fi
12317
12318 CFLAGS="$ac_save_CFLAGS"
12319 LIBS="$ac_save_LIBS"
12320 fi
12321 fi
12322 if test "x$no_gtk" = x ; then
12323 echo "$ac_t""yes" 1>&6
12324 wx_cv_lib_gtk=1.2.7
12325 else
12326 echo "$ac_t""no" 1>&6
12327 if test "$GTK_CONFIG" = "no" ; then
12328 echo "*** The gtk-config script installed by GTK could not be found"
12329 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12330 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12331 echo "*** full path to gtk-config."
12332 else
12333 if test -f conf.gtktest ; then
12334 :
12335 else
12336 echo "*** Could not run GTK test program, checking why..."
12337 CFLAGS="$CFLAGS $GTK_CFLAGS"
12338 LIBS="$LIBS $GTK_LIBS"
12339 cat > conftest.$ac_ext <<EOF
12340 #line 12341 "configure"
12341 #include "confdefs.h"
12342
12343 #include <gtk/gtk.h>
12344 #include <stdio.h>
12345
12346 int main() {
12347 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12348 ; return 0; }
12349 EOF
12350 if { (eval echo configure:12351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12351 rm -rf conftest*
12352 echo "*** The test program compiled, but did not run. This usually means"
12353 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12354 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12355 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12356 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12357 echo "*** is required on your system"
12358 echo "***"
12359 echo "*** If you have an old version installed, it is best to remove it, although"
12360 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12361 echo "***"
12362 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12363 echo "*** came with the system with the command"
12364 echo "***"
12365 echo "*** rpm --erase --nodeps gtk gtk-devel"
12366 else
12367 echo "configure: failed program was:" >&5
12368 cat conftest.$ac_ext >&5
12369 rm -rf conftest*
12370 echo "*** The test program failed to compile or link. See the file config.log for the"
12371 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12372 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12373 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12374 fi
12375 rm -f conftest*
12376 CFLAGS="$ac_save_CFLAGS"
12377 LIBS="$ac_save_LIBS"
12378 fi
12379 fi
12380 GTK_CFLAGS=""
12381 GTK_LIBS=""
12382 :
12383 fi
12384
12385
12386 rm -f conf.gtktest
12387
12388 fi
12389
12390 if test -z "$wx_cv_lib_gtk"; then
12391 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12392 if test "${with_gtk_prefix+set}" = set; then
12393 withval="$with_gtk_prefix"
12394 gtk_config_prefix="$withval"
12395 else
12396 gtk_config_prefix=""
12397 fi
12398
12399 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12400 if test "${with_gtk_exec_prefix+set}" = set; then
12401 withval="$with_gtk_exec_prefix"
12402 gtk_config_exec_prefix="$withval"
12403 else
12404 gtk_config_exec_prefix=""
12405 fi
12406
12407 # Check whether --enable-gtktest or --disable-gtktest was given.
12408 if test "${enable_gtktest+set}" = set; then
12409 enableval="$enable_gtktest"
12410 :
12411 else
12412 enable_gtktest=yes
12413 fi
12414
12415
12416 for module in . $GTK_MODULES
12417 do
12418 case "$module" in
12419 gthread)
12420 gtk_config_args="$gtk_config_args gthread"
12421 ;;
12422 esac
12423 done
12424
12425 if test x$gtk_config_exec_prefix != x ; then
12426 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12427 if test x${GTK_CONFIG+set} != xset ; then
12428 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12429 fi
12430 fi
12431 if test x$gtk_config_prefix != x ; then
12432 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12433 if test x${GTK_CONFIG+set} != xset ; then
12434 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12435 fi
12436 fi
12437
12438 # Extract the first word of "gtk-config", so it can be a program name with args.
12439 set dummy gtk-config; ac_word=$2
12440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12441 echo "configure:12442: checking for $ac_word" >&5
12442 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12443 echo $ac_n "(cached) $ac_c" 1>&6
12444 else
12445 case "$GTK_CONFIG" in
12446 /*)
12447 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12448 ;;
12449 ?:/*)
12450 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12451 ;;
12452 *)
12453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12454 ac_dummy="$PATH"
12455 for ac_dir in $ac_dummy; do
12456 test -z "$ac_dir" && ac_dir=.
12457 if test -f $ac_dir/$ac_word; then
12458 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12459 break
12460 fi
12461 done
12462 IFS="$ac_save_ifs"
12463 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12464 ;;
12465 esac
12466 fi
12467 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12468 if test -n "$GTK_CONFIG"; then
12469 echo "$ac_t""$GTK_CONFIG" 1>&6
12470 else
12471 echo "$ac_t""no" 1>&6
12472 fi
12473
12474 min_gtk_version=1.2.3
12475 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12476 echo "configure:12477: checking for GTK - version >= $min_gtk_version" >&5
12477 no_gtk=""
12478 if test "$GTK_CONFIG" = "no" ; then
12479 no_gtk=yes
12480 else
12481 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12482 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12483 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12484 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12485 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12486 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12487 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12488 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12489 if test "x$enable_gtktest" = "xyes" ; then
12490 ac_save_CFLAGS="$CFLAGS"
12491 ac_save_LIBS="$LIBS"
12492 CFLAGS="$CFLAGS $GTK_CFLAGS"
12493 LIBS="$GTK_LIBS $LIBS"
12494 rm -f conf.gtktest
12495 if test "$cross_compiling" = yes; then
12496 echo $ac_n "cross compiling; assumed OK... $ac_c"
12497 else
12498 cat > conftest.$ac_ext <<EOF
12499 #line 12500 "configure"
12500 #include "confdefs.h"
12501
12502 #include <gtk/gtk.h>
12503 #include <stdio.h>
12504 #include <stdlib.h>
12505
12506 int
12507 main ()
12508 {
12509 int major, minor, micro;
12510 char *tmp_version;
12511
12512 system ("touch conf.gtktest");
12513
12514 /* HP/UX 9 (%@#!) writes to sscanf strings */
12515 tmp_version = g_strdup("$min_gtk_version");
12516 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12517 printf("%s, bad version string\n", "$min_gtk_version");
12518 exit(1);
12519 }
12520
12521 if ((gtk_major_version != $gtk_config_major_version) ||
12522 (gtk_minor_version != $gtk_config_minor_version) ||
12523 (gtk_micro_version != $gtk_config_micro_version))
12524 {
12525 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12526 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12527 gtk_major_version, gtk_minor_version, gtk_micro_version);
12528 printf ("*** was found! If gtk-config was correct, then it is best\n");
12529 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12530 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12531 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12532 printf("*** required on your system.\n");
12533 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12534 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12535 printf("*** before re-running configure\n");
12536 }
12537 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12538 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12539 (gtk_minor_version != GTK_MINOR_VERSION) ||
12540 (gtk_micro_version != GTK_MICRO_VERSION))
12541 {
12542 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12543 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12544 printf("*** library (version %d.%d.%d)\n",
12545 gtk_major_version, gtk_minor_version, gtk_micro_version);
12546 }
12547 #endif /* defined (GTK_MAJOR_VERSION) ... */
12548 else
12549 {
12550 if ((gtk_major_version > major) ||
12551 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12552 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12553 {
12554 return 0;
12555 }
12556 else
12557 {
12558 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12559 gtk_major_version, gtk_minor_version, gtk_micro_version);
12560 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12561 major, minor, micro);
12562 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12563 printf("***\n");
12564 printf("*** If you have already installed a sufficiently new version, this error\n");
12565 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12566 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12567 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12568 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12569 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12570 printf("*** so that the correct libraries are found at run-time))\n");
12571 }
12572 }
12573 return 1;
12574 }
12575
12576 EOF
12577 if { (eval echo configure:12578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12578 then
12579 :
12580 else
12581 echo "configure: failed program was:" >&5
12582 cat conftest.$ac_ext >&5
12583 rm -fr conftest*
12584 no_gtk=yes
12585 fi
12586 rm -fr conftest*
12587 fi
12588
12589 CFLAGS="$ac_save_CFLAGS"
12590 LIBS="$ac_save_LIBS"
12591 fi
12592 fi
12593 if test "x$no_gtk" = x ; then
12594 echo "$ac_t""yes" 1>&6
12595 wx_cv_lib_gtk=1.2.3
12596 else
12597 echo "$ac_t""no" 1>&6
12598 if test "$GTK_CONFIG" = "no" ; then
12599 echo "*** The gtk-config script installed by GTK could not be found"
12600 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12601 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12602 echo "*** full path to gtk-config."
12603 else
12604 if test -f conf.gtktest ; then
12605 :
12606 else
12607 echo "*** Could not run GTK test program, checking why..."
12608 CFLAGS="$CFLAGS $GTK_CFLAGS"
12609 LIBS="$LIBS $GTK_LIBS"
12610 cat > conftest.$ac_ext <<EOF
12611 #line 12612 "configure"
12612 #include "confdefs.h"
12613
12614 #include <gtk/gtk.h>
12615 #include <stdio.h>
12616
12617 int main() {
12618 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12619 ; return 0; }
12620 EOF
12621 if { (eval echo configure:12622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12622 rm -rf conftest*
12623 echo "*** The test program compiled, but did not run. This usually means"
12624 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12625 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12626 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12627 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12628 echo "*** is required on your system"
12629 echo "***"
12630 echo "*** If you have an old version installed, it is best to remove it, although"
12631 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12632 echo "***"
12633 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12634 echo "*** came with the system with the command"
12635 echo "***"
12636 echo "*** rpm --erase --nodeps gtk gtk-devel"
12637 else
12638 echo "configure: failed program was:" >&5
12639 cat conftest.$ac_ext >&5
12640 rm -rf conftest*
12641 echo "*** The test program failed to compile or link. See the file config.log for the"
12642 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12643 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12644 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12645 fi
12646 rm -f conftest*
12647 CFLAGS="$ac_save_CFLAGS"
12648 LIBS="$ac_save_LIBS"
12649 fi
12650 fi
12651 GTK_CFLAGS=""
12652 GTK_LIBS=""
12653 :
12654 fi
12655
12656
12657 rm -f conf.gtktest
12658
12659 fi
12660
12661 if test -z "$wx_cv_lib_gtk"; then
12662 wx_cv_lib_gtk=none
12663 else
12664 wx_cv_cflags_gtk=$GTK_CFLAGS
12665 wx_cv_libs_gtk=$GTK_LIBS
12666 fi
12667
12668
12669 fi
12670
12671
12672 if test "$gtk_version_cached" = 1; then
12673 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12674 fi
12675
12676 case "$wx_cv_lib_gtk" in
12677 2.0) WXGTK20=1
12678 ;;
12679 1.2.7) WXGTK127=1
12680 WXGTK12=1
12681 ;;
12682 1.2.3) WXGTK12=1
12683 ;;
12684 *) { echo "configure: error:
12685 Please check that gtk-config is in path, the directory
12686 where GTK+ libraries are installed (returned by
12687 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12688 equivalent variable and GTK+ is version 1.2.3 or above.
12689 " 1>&2; exit 1; }
12690 ;;
12691 esac
12692
12693 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12694 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12695
12696 AFMINSTALL=afminstall
12697 TOOLKIT=GTK
12698 GUIDIST=GTK_DIST
12699
12700 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
12701 echo "configure:12702: checking for gdk_im_open in -lgdk" >&5
12702 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
12703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12704 echo $ac_n "(cached) $ac_c" 1>&6
12705 else
12706 ac_save_LIBS="$LIBS"
12707 LIBS="-lgdk $LIBS"
12708 cat > conftest.$ac_ext <<EOF
12709 #line 12710 "configure"
12710 #include "confdefs.h"
12711 /* Override any gcc2 internal prototype to avoid an error. */
12712 /* We use char because int might match the return type of a gcc2
12713 builtin and then its argument prototype would still apply. */
12714 char gdk_im_open();
12715
12716 int main() {
12717 gdk_im_open()
12718 ; return 0; }
12719 EOF
12720 if { (eval echo configure:12721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12721 rm -rf conftest*
12722 eval "ac_cv_lib_$ac_lib_var=yes"
12723 else
12724 echo "configure: failed program was:" >&5
12725 cat conftest.$ac_ext >&5
12726 rm -rf conftest*
12727 eval "ac_cv_lib_$ac_lib_var=no"
12728 fi
12729 rm -f conftest*
12730 LIBS="$ac_save_LIBS"
12731
12732 fi
12733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12734 echo "$ac_t""yes" 1>&6
12735 cat >> confdefs.h <<\EOF
12736 #define HAVE_XIM 1
12737 EOF
12738
12739 else
12740 echo "$ac_t""no" 1>&6
12741 fi
12742
12743 fi
12744
12745 if test "$wxUSE_MGL" = 1; then
12746 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
12747 echo "configure:12748: checking for SciTech MGL library" >&5
12748 if test "x$MGL_ROOT" = x ; then
12749 echo "$ac_t""not found" 1>&6
12750 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12751 else
12752 echo "$ac_t""$MGL_ROOT" 1>&6
12753 fi
12754
12755 case "${host}" in
12756 *-*-linux* )
12757 mgl_os=linux/gcc/glibc
12758 ;;
12759 *-pc-msdosdjgpp )
12760 mgl_os=dos32/dj2
12761 ;;
12762 *)
12763 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12764 esac
12765
12766 mgl_lib_type=""
12767
12768 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12769 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12770 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12771 mgl_lib_type=debug
12772 fi
12773 fi
12774 if test "x$mgl_lib_type" = x ; then
12775 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12776 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12777 mgl_lib_type=release
12778 else
12779 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12780 fi
12781 fi
12782
12783 wxUSE_UNIVERSAL="yes"
12784
12785 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12786 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12787
12788 AFMINSTALL=afminstall
12789 TOOLKIT=MGL
12790 GUIDIST=MGL_DIST
12791 fi
12792
12793 if test "$wxUSE_MICROWIN" = 1; then
12794 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
12795 echo "configure:12796: checking for MicroWindows" >&5
12796 if test "x$MICROWINDOWS" = x ; then
12797 echo "$ac_t""not found" 1>&6
12798 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12799 else
12800 echo "$ac_t""$MICROWINDOWS" 1>&6
12801 fi
12802
12803 if test -f $MICROWINDOWS/lib/libmwin.a; then
12804 echo "$ac_t""MicroWindows' libraries found." 1>&6
12805 else
12806 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
12807 fi
12808
12809 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12810 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12811
12812 wxUSE_UNIVERSAL="yes"
12813
12814 AFMINSTALL=afminstall
12815 TOOLKIT=MICROWIN
12816 GUIDIST=MICROWIN_DIST
12817
12818 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
12819 fi
12820
12821 if test "$wxUSE_X11" = 1; then
12822 # If we find X, set shell vars x_includes and x_libraries to the
12823 # paths, otherwise set no_x=yes.
12824 # Uses ac_ vars as temps to allow command line to override cache and checks.
12825 # --without-x overrides everything else, but does not touch the cache.
12826 echo $ac_n "checking for X""... $ac_c" 1>&6
12827 echo "configure:12828: checking for X" >&5
12828
12829 # Check whether --with-x or --without-x was given.
12830 if test "${with_x+set}" = set; then
12831 withval="$with_x"
12832 :
12833 fi
12834
12835 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12836 if test "x$with_x" = xno; then
12837 # The user explicitly disabled X.
12838 have_x=disabled
12839 else
12840 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12841 # Both variables are already set.
12842 have_x=yes
12843 else
12844 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12845 echo $ac_n "(cached) $ac_c" 1>&6
12846 else
12847 # One or both of the vars are not set, and there is no cached value.
12848 ac_x_includes=NO ac_x_libraries=NO
12849 rm -fr conftestdir
12850 if mkdir conftestdir; then
12851 cd conftestdir
12852 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12853 cat > Imakefile <<'EOF'
12854 acfindx:
12855 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12856 EOF
12857 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12859 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12860 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12861 for ac_extension in a so sl; do
12862 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12863 test -f $ac_im_libdir/libX11.$ac_extension; then
12864 ac_im_usrlibdir=$ac_im_libdir; break
12865 fi
12866 done
12867 # Screen out bogus values from the imake configuration. They are
12868 # bogus both because they are the default anyway, and because
12869 # using them would break gcc on systems where it needs fixed includes.
12870 case "$ac_im_incroot" in
12871 /usr/include) ;;
12872 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12873 esac
12874 case "$ac_im_usrlibdir" in
12875 /usr/lib | /lib) ;;
12876 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12877 esac
12878 fi
12879 cd ..
12880 rm -fr conftestdir
12881 fi
12882
12883 if test "$ac_x_includes" = NO; then
12884 # Guess where to find include files, by looking for this one X11 .h file.
12885 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
12886
12887 # First, try using that file with no special directory specified.
12888 cat > conftest.$ac_ext <<EOF
12889 #line 12890 "configure"
12890 #include "confdefs.h"
12891 #include <$x_direct_test_include>
12892 EOF
12893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12894 { (eval echo configure:12895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12896 if test -z "$ac_err"; then
12897 rm -rf conftest*
12898 # We can compile using X headers with no special include directory.
12899 ac_x_includes=
12900 else
12901 echo "$ac_err" >&5
12902 echo "configure: failed program was:" >&5
12903 cat conftest.$ac_ext >&5
12904 rm -rf conftest*
12905 # Look for the header file in a standard set of common directories.
12906 # Check X11 before X11Rn because it is often a symlink to the current release.
12907 for ac_dir in \
12908 /usr/X11/include \
12909 /usr/X11R6/include \
12910 /usr/X11R5/include \
12911 /usr/X11R4/include \
12912 \
12913 /usr/include/X11 \
12914 /usr/include/X11R6 \
12915 /usr/include/X11R5 \
12916 /usr/include/X11R4 \
12917 \
12918 /usr/local/X11/include \
12919 /usr/local/X11R6/include \
12920 /usr/local/X11R5/include \
12921 /usr/local/X11R4/include \
12922 \
12923 /usr/local/include/X11 \
12924 /usr/local/include/X11R6 \
12925 /usr/local/include/X11R5 \
12926 /usr/local/include/X11R4 \
12927 \
12928 /usr/X386/include \
12929 /usr/x386/include \
12930 /usr/XFree86/include/X11 \
12931 \
12932 /usr/include \
12933 /usr/local/include \
12934 /usr/unsupported/include \
12935 /usr/athena/include \
12936 /usr/local/x11r5/include \
12937 /usr/lpp/Xamples/include \
12938 \
12939 /usr/openwin/include \
12940 /usr/openwin/share/include \
12941 ; \
12942 do
12943 if test -r "$ac_dir/$x_direct_test_include"; then
12944 ac_x_includes=$ac_dir
12945 break
12946 fi
12947 done
12948 fi
12949 rm -f conftest*
12950 fi # $ac_x_includes = NO
12951
12952 if test "$ac_x_libraries" = NO; then
12953 # Check for the libraries.
12954
12955 test -z "$x_direct_test_library" && x_direct_test_library=Xt
12956 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
12957
12958 # See if we find them without any special options.
12959 # Don't add to $LIBS permanently.
12960 ac_save_LIBS="$LIBS"
12961 LIBS="-l$x_direct_test_library $LIBS"
12962 cat > conftest.$ac_ext <<EOF
12963 #line 12964 "configure"
12964 #include "confdefs.h"
12965
12966 int main() {
12967 ${x_direct_test_function}()
12968 ; return 0; }
12969 EOF
12970 if { (eval echo configure:12971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12971 rm -rf conftest*
12972 LIBS="$ac_save_LIBS"
12973 # We can link X programs with no special library path.
12974 ac_x_libraries=
12975 else
12976 echo "configure: failed program was:" >&5
12977 cat conftest.$ac_ext >&5
12978 rm -rf conftest*
12979 LIBS="$ac_save_LIBS"
12980 # First see if replacing the include by lib works.
12981 # Check X11 before X11Rn because it is often a symlink to the current release.
12982 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
12983 /usr/X11/lib \
12984 /usr/X11R6/lib \
12985 /usr/X11R5/lib \
12986 /usr/X11R4/lib \
12987 \
12988 /usr/lib/X11 \
12989 /usr/lib/X11R6 \
12990 /usr/lib/X11R5 \
12991 /usr/lib/X11R4 \
12992 \
12993 /usr/local/X11/lib \
12994 /usr/local/X11R6/lib \
12995 /usr/local/X11R5/lib \
12996 /usr/local/X11R4/lib \
12997 \
12998 /usr/local/lib/X11 \
12999 /usr/local/lib/X11R6 \
13000 /usr/local/lib/X11R5 \
13001 /usr/local/lib/X11R4 \
13002 \
13003 /usr/X386/lib \
13004 /usr/x386/lib \
13005 /usr/XFree86/lib/X11 \
13006 \
13007 /usr/lib \
13008 /usr/local/lib \
13009 /usr/unsupported/lib \
13010 /usr/athena/lib \
13011 /usr/local/x11r5/lib \
13012 /usr/lpp/Xamples/lib \
13013 /lib/usr/lib/X11 \
13014 \
13015 /usr/openwin/lib \
13016 /usr/openwin/share/lib \
13017 ; \
13018 do
13019 for ac_extension in a so sl; do
13020 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13021 ac_x_libraries=$ac_dir
13022 break 2
13023 fi
13024 done
13025 done
13026 fi
13027 rm -f conftest*
13028 fi # $ac_x_libraries = NO
13029
13030 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13031 # Didn't find X anywhere. Cache the known absence of X.
13032 ac_cv_have_x="have_x=no"
13033 else
13034 # Record where we found X for the cache.
13035 ac_cv_have_x="have_x=yes \
13036 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13037 fi
13038 fi
13039 fi
13040 eval "$ac_cv_have_x"
13041 fi # $with_x != no
13042
13043 if test "$have_x" != yes; then
13044 echo "$ac_t""$have_x" 1>&6
13045 no_x=yes
13046 else
13047 # If each of the values was on the command line, it overrides each guess.
13048 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13049 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13050 # Update the cache value to reflect the command line values.
13051 ac_cv_have_x="have_x=yes \
13052 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13053 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13054 fi
13055
13056 if test "$no_x" = yes; then
13057 # Not all programs may use this symbol, but it does not hurt to define it.
13058 cat >> confdefs.h <<\EOF
13059 #define X_DISPLAY_MISSING 1
13060 EOF
13061
13062 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13063 else
13064 if test -n "$x_includes"; then
13065 X_CFLAGS="$X_CFLAGS -I$x_includes"
13066 fi
13067
13068 # It would also be nice to do this for all -L options, not just this one.
13069 if test -n "$x_libraries"; then
13070 X_LIBS="$X_LIBS -L$x_libraries"
13071 # For Solaris; some versions of Sun CC require a space after -R and
13072 # others require no space. Words are not sufficient . . . .
13073 case "`(uname -sr) 2>/dev/null`" in
13074 "SunOS 5"*)
13075 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13076 echo "configure:13077: checking whether -R must be followed by a space" >&5
13077 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13078 cat > conftest.$ac_ext <<EOF
13079 #line 13080 "configure"
13080 #include "confdefs.h"
13081
13082 int main() {
13083
13084 ; return 0; }
13085 EOF
13086 if { (eval echo configure:13087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13087 rm -rf conftest*
13088 ac_R_nospace=yes
13089 else
13090 echo "configure: failed program was:" >&5
13091 cat conftest.$ac_ext >&5
13092 rm -rf conftest*
13093 ac_R_nospace=no
13094 fi
13095 rm -f conftest*
13096 if test $ac_R_nospace = yes; then
13097 echo "$ac_t""no" 1>&6
13098 X_LIBS="$X_LIBS -R$x_libraries"
13099 else
13100 LIBS="$ac_xsave_LIBS -R $x_libraries"
13101 cat > conftest.$ac_ext <<EOF
13102 #line 13103 "configure"
13103 #include "confdefs.h"
13104
13105 int main() {
13106
13107 ; return 0; }
13108 EOF
13109 if { (eval echo configure:13110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13110 rm -rf conftest*
13111 ac_R_space=yes
13112 else
13113 echo "configure: failed program was:" >&5
13114 cat conftest.$ac_ext >&5
13115 rm -rf conftest*
13116 ac_R_space=no
13117 fi
13118 rm -f conftest*
13119 if test $ac_R_space = yes; then
13120 echo "$ac_t""yes" 1>&6
13121 X_LIBS="$X_LIBS -R $x_libraries"
13122 else
13123 echo "$ac_t""neither works" 1>&6
13124 fi
13125 fi
13126 LIBS="$ac_xsave_LIBS"
13127 esac
13128 fi
13129
13130 # Check for system-dependent libraries X programs must link with.
13131 # Do this before checking for the system-independent R6 libraries
13132 # (-lICE), since we may need -lsocket or whatever for X linking.
13133
13134 if test "$ISC" = yes; then
13135 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13136 else
13137 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13138 # libraries were built with DECnet support. And karl@cs.umb.edu says
13139 # the Alpha needs dnet_stub (dnet does not exist).
13140 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13141 echo "configure:13142: checking for dnet_ntoa in -ldnet" >&5
13142 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13144 echo $ac_n "(cached) $ac_c" 1>&6
13145 else
13146 ac_save_LIBS="$LIBS"
13147 LIBS="-ldnet $LIBS"
13148 cat > conftest.$ac_ext <<EOF
13149 #line 13150 "configure"
13150 #include "confdefs.h"
13151 /* Override any gcc2 internal prototype to avoid an error. */
13152 /* We use char because int might match the return type of a gcc2
13153 builtin and then its argument prototype would still apply. */
13154 char dnet_ntoa();
13155
13156 int main() {
13157 dnet_ntoa()
13158 ; return 0; }
13159 EOF
13160 if { (eval echo configure:13161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13161 rm -rf conftest*
13162 eval "ac_cv_lib_$ac_lib_var=yes"
13163 else
13164 echo "configure: failed program was:" >&5
13165 cat conftest.$ac_ext >&5
13166 rm -rf conftest*
13167 eval "ac_cv_lib_$ac_lib_var=no"
13168 fi
13169 rm -f conftest*
13170 LIBS="$ac_save_LIBS"
13171
13172 fi
13173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13174 echo "$ac_t""yes" 1>&6
13175 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13176 else
13177 echo "$ac_t""no" 1>&6
13178 fi
13179
13180 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13181 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13182 echo "configure:13183: checking for dnet_ntoa in -ldnet_stub" >&5
13183 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13185 echo $ac_n "(cached) $ac_c" 1>&6
13186 else
13187 ac_save_LIBS="$LIBS"
13188 LIBS="-ldnet_stub $LIBS"
13189 cat > conftest.$ac_ext <<EOF
13190 #line 13191 "configure"
13191 #include "confdefs.h"
13192 /* Override any gcc2 internal prototype to avoid an error. */
13193 /* We use char because int might match the return type of a gcc2
13194 builtin and then its argument prototype would still apply. */
13195 char dnet_ntoa();
13196
13197 int main() {
13198 dnet_ntoa()
13199 ; return 0; }
13200 EOF
13201 if { (eval echo configure:13202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13202 rm -rf conftest*
13203 eval "ac_cv_lib_$ac_lib_var=yes"
13204 else
13205 echo "configure: failed program was:" >&5
13206 cat conftest.$ac_ext >&5
13207 rm -rf conftest*
13208 eval "ac_cv_lib_$ac_lib_var=no"
13209 fi
13210 rm -f conftest*
13211 LIBS="$ac_save_LIBS"
13212
13213 fi
13214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13215 echo "$ac_t""yes" 1>&6
13216 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13217 else
13218 echo "$ac_t""no" 1>&6
13219 fi
13220
13221 fi
13222
13223 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13224 # to get the SysV transport functions.
13225 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13226 # needs -lnsl.
13227 # The nsl library prevents programs from opening the X display
13228 # on Irix 5.2, according to dickey@clark.net.
13229 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13230 echo "configure:13231: checking for gethostbyname" >&5
13231 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13232 echo $ac_n "(cached) $ac_c" 1>&6
13233 else
13234 cat > conftest.$ac_ext <<EOF
13235 #line 13236 "configure"
13236 #include "confdefs.h"
13237 /* System header to define __stub macros and hopefully few prototypes,
13238 which can conflict with char gethostbyname(); below. */
13239 #include <assert.h>
13240 /* Override any gcc2 internal prototype to avoid an error. */
13241 /* We use char because int might match the return type of a gcc2
13242 builtin and then its argument prototype would still apply. */
13243 char gethostbyname();
13244
13245 int main() {
13246
13247 /* The GNU C library defines this for functions which it implements
13248 to always fail with ENOSYS. Some functions are actually named
13249 something starting with __ and the normal name is an alias. */
13250 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13251 choke me
13252 #else
13253 gethostbyname();
13254 #endif
13255
13256 ; return 0; }
13257 EOF
13258 if { (eval echo configure:13259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13259 rm -rf conftest*
13260 eval "ac_cv_func_gethostbyname=yes"
13261 else
13262 echo "configure: failed program was:" >&5
13263 cat conftest.$ac_ext >&5
13264 rm -rf conftest*
13265 eval "ac_cv_func_gethostbyname=no"
13266 fi
13267 rm -f conftest*
13268 fi
13269
13270 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13271 echo "$ac_t""yes" 1>&6
13272 :
13273 else
13274 echo "$ac_t""no" 1>&6
13275 fi
13276
13277 if test $ac_cv_func_gethostbyname = no; then
13278 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13279 echo "configure:13280: checking for gethostbyname in -lnsl" >&5
13280 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13282 echo $ac_n "(cached) $ac_c" 1>&6
13283 else
13284 ac_save_LIBS="$LIBS"
13285 LIBS="-lnsl $LIBS"
13286 cat > conftest.$ac_ext <<EOF
13287 #line 13288 "configure"
13288 #include "confdefs.h"
13289 /* Override any gcc2 internal prototype to avoid an error. */
13290 /* We use char because int might match the return type of a gcc2
13291 builtin and then its argument prototype would still apply. */
13292 char gethostbyname();
13293
13294 int main() {
13295 gethostbyname()
13296 ; return 0; }
13297 EOF
13298 if { (eval echo configure:13299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13299 rm -rf conftest*
13300 eval "ac_cv_lib_$ac_lib_var=yes"
13301 else
13302 echo "configure: failed program was:" >&5
13303 cat conftest.$ac_ext >&5
13304 rm -rf conftest*
13305 eval "ac_cv_lib_$ac_lib_var=no"
13306 fi
13307 rm -f conftest*
13308 LIBS="$ac_save_LIBS"
13309
13310 fi
13311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13312 echo "$ac_t""yes" 1>&6
13313 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13314 else
13315 echo "$ac_t""no" 1>&6
13316 fi
13317
13318 fi
13319
13320 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13321 # socket/setsockopt and other routines are undefined under SCO ODT
13322 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13323 # on later versions), says simon@lia.di.epfl.ch: it contains
13324 # gethostby* variants that don't use the nameserver (or something).
13325 # -lsocket must be given before -lnsl if both are needed.
13326 # We assume that if connect needs -lnsl, so does gethostbyname.
13327 echo $ac_n "checking for connect""... $ac_c" 1>&6
13328 echo "configure:13329: checking for connect" >&5
13329 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13330 echo $ac_n "(cached) $ac_c" 1>&6
13331 else
13332 cat > conftest.$ac_ext <<EOF
13333 #line 13334 "configure"
13334 #include "confdefs.h"
13335 /* System header to define __stub macros and hopefully few prototypes,
13336 which can conflict with char connect(); below. */
13337 #include <assert.h>
13338 /* Override any gcc2 internal prototype to avoid an error. */
13339 /* We use char because int might match the return type of a gcc2
13340 builtin and then its argument prototype would still apply. */
13341 char connect();
13342
13343 int main() {
13344
13345 /* The GNU C library defines this for functions which it implements
13346 to always fail with ENOSYS. Some functions are actually named
13347 something starting with __ and the normal name is an alias. */
13348 #if defined (__stub_connect) || defined (__stub___connect)
13349 choke me
13350 #else
13351 connect();
13352 #endif
13353
13354 ; return 0; }
13355 EOF
13356 if { (eval echo configure:13357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13357 rm -rf conftest*
13358 eval "ac_cv_func_connect=yes"
13359 else
13360 echo "configure: failed program was:" >&5
13361 cat conftest.$ac_ext >&5
13362 rm -rf conftest*
13363 eval "ac_cv_func_connect=no"
13364 fi
13365 rm -f conftest*
13366 fi
13367
13368 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13369 echo "$ac_t""yes" 1>&6
13370 :
13371 else
13372 echo "$ac_t""no" 1>&6
13373 fi
13374
13375 if test $ac_cv_func_connect = no; then
13376 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13377 echo "configure:13378: checking for connect in -lsocket" >&5
13378 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13380 echo $ac_n "(cached) $ac_c" 1>&6
13381 else
13382 ac_save_LIBS="$LIBS"
13383 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13384 cat > conftest.$ac_ext <<EOF
13385 #line 13386 "configure"
13386 #include "confdefs.h"
13387 /* Override any gcc2 internal prototype to avoid an error. */
13388 /* We use char because int might match the return type of a gcc2
13389 builtin and then its argument prototype would still apply. */
13390 char connect();
13391
13392 int main() {
13393 connect()
13394 ; return 0; }
13395 EOF
13396 if { (eval echo configure:13397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13397 rm -rf conftest*
13398 eval "ac_cv_lib_$ac_lib_var=yes"
13399 else
13400 echo "configure: failed program was:" >&5
13401 cat conftest.$ac_ext >&5
13402 rm -rf conftest*
13403 eval "ac_cv_lib_$ac_lib_var=no"
13404 fi
13405 rm -f conftest*
13406 LIBS="$ac_save_LIBS"
13407
13408 fi
13409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13410 echo "$ac_t""yes" 1>&6
13411 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13412 else
13413 echo "$ac_t""no" 1>&6
13414 fi
13415
13416 fi
13417
13418 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13419 echo $ac_n "checking for remove""... $ac_c" 1>&6
13420 echo "configure:13421: checking for remove" >&5
13421 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13422 echo $ac_n "(cached) $ac_c" 1>&6
13423 else
13424 cat > conftest.$ac_ext <<EOF
13425 #line 13426 "configure"
13426 #include "confdefs.h"
13427 /* System header to define __stub macros and hopefully few prototypes,
13428 which can conflict with char remove(); below. */
13429 #include <assert.h>
13430 /* Override any gcc2 internal prototype to avoid an error. */
13431 /* We use char because int might match the return type of a gcc2
13432 builtin and then its argument prototype would still apply. */
13433 char remove();
13434
13435 int main() {
13436
13437 /* The GNU C library defines this for functions which it implements
13438 to always fail with ENOSYS. Some functions are actually named
13439 something starting with __ and the normal name is an alias. */
13440 #if defined (__stub_remove) || defined (__stub___remove)
13441 choke me
13442 #else
13443 remove();
13444 #endif
13445
13446 ; return 0; }
13447 EOF
13448 if { (eval echo configure:13449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13449 rm -rf conftest*
13450 eval "ac_cv_func_remove=yes"
13451 else
13452 echo "configure: failed program was:" >&5
13453 cat conftest.$ac_ext >&5
13454 rm -rf conftest*
13455 eval "ac_cv_func_remove=no"
13456 fi
13457 rm -f conftest*
13458 fi
13459
13460 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13461 echo "$ac_t""yes" 1>&6
13462 :
13463 else
13464 echo "$ac_t""no" 1>&6
13465 fi
13466
13467 if test $ac_cv_func_remove = no; then
13468 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
13469 echo "configure:13470: checking for remove in -lposix" >&5
13470 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13472 echo $ac_n "(cached) $ac_c" 1>&6
13473 else
13474 ac_save_LIBS="$LIBS"
13475 LIBS="-lposix $LIBS"
13476 cat > conftest.$ac_ext <<EOF
13477 #line 13478 "configure"
13478 #include "confdefs.h"
13479 /* Override any gcc2 internal prototype to avoid an error. */
13480 /* We use char because int might match the return type of a gcc2
13481 builtin and then its argument prototype would still apply. */
13482 char remove();
13483
13484 int main() {
13485 remove()
13486 ; return 0; }
13487 EOF
13488 if { (eval echo configure:13489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13489 rm -rf conftest*
13490 eval "ac_cv_lib_$ac_lib_var=yes"
13491 else
13492 echo "configure: failed program was:" >&5
13493 cat conftest.$ac_ext >&5
13494 rm -rf conftest*
13495 eval "ac_cv_lib_$ac_lib_var=no"
13496 fi
13497 rm -f conftest*
13498 LIBS="$ac_save_LIBS"
13499
13500 fi
13501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13502 echo "$ac_t""yes" 1>&6
13503 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13504 else
13505 echo "$ac_t""no" 1>&6
13506 fi
13507
13508 fi
13509
13510 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13511 echo $ac_n "checking for shmat""... $ac_c" 1>&6
13512 echo "configure:13513: checking for shmat" >&5
13513 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13514 echo $ac_n "(cached) $ac_c" 1>&6
13515 else
13516 cat > conftest.$ac_ext <<EOF
13517 #line 13518 "configure"
13518 #include "confdefs.h"
13519 /* System header to define __stub macros and hopefully few prototypes,
13520 which can conflict with char shmat(); below. */
13521 #include <assert.h>
13522 /* Override any gcc2 internal prototype to avoid an error. */
13523 /* We use char because int might match the return type of a gcc2
13524 builtin and then its argument prototype would still apply. */
13525 char shmat();
13526
13527 int main() {
13528
13529 /* The GNU C library defines this for functions which it implements
13530 to always fail with ENOSYS. Some functions are actually named
13531 something starting with __ and the normal name is an alias. */
13532 #if defined (__stub_shmat) || defined (__stub___shmat)
13533 choke me
13534 #else
13535 shmat();
13536 #endif
13537
13538 ; return 0; }
13539 EOF
13540 if { (eval echo configure:13541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13541 rm -rf conftest*
13542 eval "ac_cv_func_shmat=yes"
13543 else
13544 echo "configure: failed program was:" >&5
13545 cat conftest.$ac_ext >&5
13546 rm -rf conftest*
13547 eval "ac_cv_func_shmat=no"
13548 fi
13549 rm -f conftest*
13550 fi
13551
13552 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13553 echo "$ac_t""yes" 1>&6
13554 :
13555 else
13556 echo "$ac_t""no" 1>&6
13557 fi
13558
13559 if test $ac_cv_func_shmat = no; then
13560 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
13561 echo "configure:13562: checking for shmat in -lipc" >&5
13562 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13564 echo $ac_n "(cached) $ac_c" 1>&6
13565 else
13566 ac_save_LIBS="$LIBS"
13567 LIBS="-lipc $LIBS"
13568 cat > conftest.$ac_ext <<EOF
13569 #line 13570 "configure"
13570 #include "confdefs.h"
13571 /* Override any gcc2 internal prototype to avoid an error. */
13572 /* We use char because int might match the return type of a gcc2
13573 builtin and then its argument prototype would still apply. */
13574 char shmat();
13575
13576 int main() {
13577 shmat()
13578 ; return 0; }
13579 EOF
13580 if { (eval echo configure:13581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13581 rm -rf conftest*
13582 eval "ac_cv_lib_$ac_lib_var=yes"
13583 else
13584 echo "configure: failed program was:" >&5
13585 cat conftest.$ac_ext >&5
13586 rm -rf conftest*
13587 eval "ac_cv_lib_$ac_lib_var=no"
13588 fi
13589 rm -f conftest*
13590 LIBS="$ac_save_LIBS"
13591
13592 fi
13593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13594 echo "$ac_t""yes" 1>&6
13595 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13596 else
13597 echo "$ac_t""no" 1>&6
13598 fi
13599
13600 fi
13601 fi
13602
13603 # Check for libraries that X11R6 Xt/Xaw programs need.
13604 ac_save_LDFLAGS="$LDFLAGS"
13605 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13606 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13607 # check for ICE first), but we must link in the order -lSM -lICE or
13608 # we get undefined symbols. So assume we have SM if we have ICE.
13609 # These have to be linked with before -lX11, unlike the other
13610 # libraries we check for below, so use a different variable.
13611 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13612 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
13613 echo "configure:13614: checking for IceConnectionNumber in -lICE" >&5
13614 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13616 echo $ac_n "(cached) $ac_c" 1>&6
13617 else
13618 ac_save_LIBS="$LIBS"
13619 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13620 cat > conftest.$ac_ext <<EOF
13621 #line 13622 "configure"
13622 #include "confdefs.h"
13623 /* Override any gcc2 internal prototype to avoid an error. */
13624 /* We use char because int might match the return type of a gcc2
13625 builtin and then its argument prototype would still apply. */
13626 char IceConnectionNumber();
13627
13628 int main() {
13629 IceConnectionNumber()
13630 ; return 0; }
13631 EOF
13632 if { (eval echo configure:13633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13633 rm -rf conftest*
13634 eval "ac_cv_lib_$ac_lib_var=yes"
13635 else
13636 echo "configure: failed program was:" >&5
13637 cat conftest.$ac_ext >&5
13638 rm -rf conftest*
13639 eval "ac_cv_lib_$ac_lib_var=no"
13640 fi
13641 rm -f conftest*
13642 LIBS="$ac_save_LIBS"
13643
13644 fi
13645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13646 echo "$ac_t""yes" 1>&6
13647 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13648 else
13649 echo "$ac_t""no" 1>&6
13650 fi
13651
13652 LDFLAGS="$ac_save_LDFLAGS"
13653
13654 fi
13655
13656
13657 if test "$no_x" = "yes"; then
13658 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13659 fi
13660
13661 GUI_TK_LIBRARY="$X_LIBS"
13662 TOOLKIT_INCLUDE="$X_CFLAGS"
13663 AFMINSTALL=afminstall
13664 COMPILED_X_PROGRAM=0
13665
13666 if test "$wxUSE_NANOX" = "yes"; then
13667 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
13668 echo "configure:13669: checking for MicroWindows/NanoX distribution" >&5
13669 if test "x$MICROWIN" = x ; then
13670 echo "$ac_t""not found" 1>&6
13671 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
13672 else
13673 echo "$ac_t""$MICROWIN" 1>&6
13674 cat >> confdefs.h <<\EOF
13675 #define wxUSE_NANOX 1
13676 EOF
13677
13678 fi
13679 fi
13680
13681 xpm_link=
13682 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13683 echo "configure:13684: checking for Xpm library" >&5
13684
13685 ac_find_libraries=
13686 for ac_dir in $SEARCH_LIB;
13687 do
13688 for ac_extension in a so sl dylib; do
13689 if test -f "$ac_dir/libXpm.$ac_extension"; then
13690 ac_find_libraries=$ac_dir
13691 break 2
13692 fi
13693 done
13694 done
13695
13696 if test "$ac_find_libraries" != "" ; then
13697
13698 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13699 result=$?
13700 if test $result = 0; then
13701 ac_path_to_link=""
13702 else
13703 ac_path_to_link=" -L$ac_find_libraries"
13704 fi
13705
13706 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13707 xpm_link=" -lXpm"
13708 cat >> confdefs.h <<\EOF
13709 #define wxHAVE_LIB_XPM 1
13710 EOF
13711
13712 echo "$ac_t""found at $ac_find_libraries" 1>&6
13713 else
13714 cat > conftest.$ac_ext <<EOF
13715 #line 13716 "configure"
13716 #include "confdefs.h"
13717
13718 #include <X11/xpm.h>
13719
13720 int main() {
13721
13722 int version;
13723 version = XpmLibraryVersion();
13724
13725 ; return 0; }
13726 EOF
13727 if { (eval echo configure:13728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13728 rm -rf conftest*
13729
13730 xpm_link=" -lXpm"
13731 cat >> confdefs.h <<\EOF
13732 #define wxHAVE_LIB_XPM 1
13733 EOF
13734
13735 echo "$ac_t""found in default search path" 1>&6
13736 COMPILED_X_PROGRAM=0
13737
13738 else
13739 echo "configure: failed program was:" >&5
13740 cat conftest.$ac_ext >&5
13741 rm -rf conftest*
13742
13743 echo "$ac_t""no" 1>&6
13744 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13745
13746
13747 fi
13748 rm -f conftest*
13749 fi
13750
13751 wxUSE_UNIVERSAL="yes"
13752
13753 if test "$wxUSE_NANOX" = "yes"; then
13754 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13755 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
13756 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13757 else
13758 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13759 fi
13760
13761 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13762 TOOLKIT=X11
13763 GUIDIST=X11_DIST
13764 fi
13765
13766 if test "$wxUSE_WINE" = 1; then
13767 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13768 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
13769 echo "configure:13770: checking for windows.h" >&5
13770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13771 echo $ac_n "(cached) $ac_c" 1>&6
13772 else
13773 cat > conftest.$ac_ext <<EOF
13774 #line 13775 "configure"
13775 #include "confdefs.h"
13776 #include <windows.h>
13777 EOF
13778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13779 { (eval echo configure:13780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13781 if test -z "$ac_err"; then
13782 rm -rf conftest*
13783 eval "ac_cv_header_$ac_safe=yes"
13784 else
13785 echo "$ac_err" >&5
13786 echo "configure: failed program was:" >&5
13787 cat conftest.$ac_ext >&5
13788 rm -rf conftest*
13789 eval "ac_cv_header_$ac_safe=no"
13790 fi
13791 rm -f conftest*
13792 fi
13793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13794 echo "$ac_t""yes" 1>&6
13795 :
13796 else
13797 echo "$ac_t""no" 1>&6
13798
13799 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13800
13801 fi
13802
13803
13804 xpm_link=
13805 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13806 echo "configure:13807: checking for Xpm library" >&5
13807
13808 ac_find_libraries=
13809 for ac_dir in $SEARCH_LIB;
13810 do
13811 for ac_extension in a so sl dylib; do
13812 if test -f "$ac_dir/libXpm.$ac_extension"; then
13813 ac_find_libraries=$ac_dir
13814 break 2
13815 fi
13816 done
13817 done
13818
13819 if test "$ac_find_libraries" != "" ; then
13820 GUI_TK_LIBRARY="-L$ac_find_libraries"
13821 xpm_link=" -lXpm"
13822 cat >> confdefs.h <<\EOF
13823 #define wxHAVE_LIB_XPM 1
13824 EOF
13825
13826 echo "$ac_t""found at $ac_find_libraries" 1>&6
13827 else
13828 echo "$ac_t""no" 1>&6
13829 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13830 fi
13831
13832 mesa_link=
13833 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
13834 echo "configure:13835: checking for Mesa library" >&5
13835
13836 ac_find_libraries=
13837 for ac_dir in $SEARCH_LIB;
13838 do
13839 for ac_extension in a so sl dylib; do
13840 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13841 ac_find_libraries=$ac_dir
13842 break 2
13843 fi
13844 done
13845 done
13846
13847 if test "$ac_find_libraries" != "" ; then
13848 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13849 mesa_link=" -lMesaGL"
13850 echo "$ac_t""found at $ac_find_libraries" 1>&6
13851 else
13852 { echo "configure: error: no" 1>&2; exit 1; }
13853 fi
13854
13855 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13856 TOOLKIT=MSW
13857 GUIDIST=MSW_DIST
13858 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13859 fi
13860
13861 if test "$wxUSE_MOTIF" = 1; then
13862 if test "$no_x" = yes; then
13863 # Not all programs may use this symbol, but it does not hurt to define it.
13864 cat >> confdefs.h <<\EOF
13865 #define X_DISPLAY_MISSING 1
13866 EOF
13867
13868 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13869 else
13870 if test -n "$x_includes"; then
13871 X_CFLAGS="$X_CFLAGS -I$x_includes"
13872 fi
13873
13874 # It would also be nice to do this for all -L options, not just this one.
13875 if test -n "$x_libraries"; then
13876 X_LIBS="$X_LIBS -L$x_libraries"
13877 # For Solaris; some versions of Sun CC require a space after -R and
13878 # others require no space. Words are not sufficient . . . .
13879 case "`(uname -sr) 2>/dev/null`" in
13880 "SunOS 5"*)
13881 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13882 echo "configure:13883: checking whether -R must be followed by a space" >&5
13883 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13884 cat > conftest.$ac_ext <<EOF
13885 #line 13886 "configure"
13886 #include "confdefs.h"
13887
13888 int main() {
13889
13890 ; return 0; }
13891 EOF
13892 if { (eval echo configure:13893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13893 rm -rf conftest*
13894 ac_R_nospace=yes
13895 else
13896 echo "configure: failed program was:" >&5
13897 cat conftest.$ac_ext >&5
13898 rm -rf conftest*
13899 ac_R_nospace=no
13900 fi
13901 rm -f conftest*
13902 if test $ac_R_nospace = yes; then
13903 echo "$ac_t""no" 1>&6
13904 X_LIBS="$X_LIBS -R$x_libraries"
13905 else
13906 LIBS="$ac_xsave_LIBS -R $x_libraries"
13907 cat > conftest.$ac_ext <<EOF
13908 #line 13909 "configure"
13909 #include "confdefs.h"
13910
13911 int main() {
13912
13913 ; return 0; }
13914 EOF
13915 if { (eval echo configure:13916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13916 rm -rf conftest*
13917 ac_R_space=yes
13918 else
13919 echo "configure: failed program was:" >&5
13920 cat conftest.$ac_ext >&5
13921 rm -rf conftest*
13922 ac_R_space=no
13923 fi
13924 rm -f conftest*
13925 if test $ac_R_space = yes; then
13926 echo "$ac_t""yes" 1>&6
13927 X_LIBS="$X_LIBS -R $x_libraries"
13928 else
13929 echo "$ac_t""neither works" 1>&6
13930 fi
13931 fi
13932 LIBS="$ac_xsave_LIBS"
13933 esac
13934 fi
13935
13936 # Check for system-dependent libraries X programs must link with.
13937 # Do this before checking for the system-independent R6 libraries
13938 # (-lICE), since we may need -lsocket or whatever for X linking.
13939
13940 if test "$ISC" = yes; then
13941 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13942 else
13943 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13944 # libraries were built with DECnet support. And karl@cs.umb.edu says
13945 # the Alpha needs dnet_stub (dnet does not exist).
13946 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13947 echo "configure:13948: checking for dnet_ntoa in -ldnet" >&5
13948 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13950 echo $ac_n "(cached) $ac_c" 1>&6
13951 else
13952 ac_save_LIBS="$LIBS"
13953 LIBS="-ldnet $LIBS"
13954 cat > conftest.$ac_ext <<EOF
13955 #line 13956 "configure"
13956 #include "confdefs.h"
13957 /* Override any gcc2 internal prototype to avoid an error. */
13958 /* We use char because int might match the return type of a gcc2
13959 builtin and then its argument prototype would still apply. */
13960 char dnet_ntoa();
13961
13962 int main() {
13963 dnet_ntoa()
13964 ; return 0; }
13965 EOF
13966 if { (eval echo configure:13967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13967 rm -rf conftest*
13968 eval "ac_cv_lib_$ac_lib_var=yes"
13969 else
13970 echo "configure: failed program was:" >&5
13971 cat conftest.$ac_ext >&5
13972 rm -rf conftest*
13973 eval "ac_cv_lib_$ac_lib_var=no"
13974 fi
13975 rm -f conftest*
13976 LIBS="$ac_save_LIBS"
13977
13978 fi
13979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13980 echo "$ac_t""yes" 1>&6
13981 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13982 else
13983 echo "$ac_t""no" 1>&6
13984 fi
13985
13986 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13987 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13988 echo "configure:13989: checking for dnet_ntoa in -ldnet_stub" >&5
13989 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13990 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13991 echo $ac_n "(cached) $ac_c" 1>&6
13992 else
13993 ac_save_LIBS="$LIBS"
13994 LIBS="-ldnet_stub $LIBS"
13995 cat > conftest.$ac_ext <<EOF
13996 #line 13997 "configure"
13997 #include "confdefs.h"
13998 /* Override any gcc2 internal prototype to avoid an error. */
13999 /* We use char because int might match the return type of a gcc2
14000 builtin and then its argument prototype would still apply. */
14001 char dnet_ntoa();
14002
14003 int main() {
14004 dnet_ntoa()
14005 ; return 0; }
14006 EOF
14007 if { (eval echo configure:14008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14008 rm -rf conftest*
14009 eval "ac_cv_lib_$ac_lib_var=yes"
14010 else
14011 echo "configure: failed program was:" >&5
14012 cat conftest.$ac_ext >&5
14013 rm -rf conftest*
14014 eval "ac_cv_lib_$ac_lib_var=no"
14015 fi
14016 rm -f conftest*
14017 LIBS="$ac_save_LIBS"
14018
14019 fi
14020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14021 echo "$ac_t""yes" 1>&6
14022 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14023 else
14024 echo "$ac_t""no" 1>&6
14025 fi
14026
14027 fi
14028
14029 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14030 # to get the SysV transport functions.
14031 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14032 # needs -lnsl.
14033 # The nsl library prevents programs from opening the X display
14034 # on Irix 5.2, according to dickey@clark.net.
14035 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14036 echo "configure:14037: checking for gethostbyname" >&5
14037 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14038 echo $ac_n "(cached) $ac_c" 1>&6
14039 else
14040 cat > conftest.$ac_ext <<EOF
14041 #line 14042 "configure"
14042 #include "confdefs.h"
14043 /* System header to define __stub macros and hopefully few prototypes,
14044 which can conflict with char gethostbyname(); below. */
14045 #include <assert.h>
14046 /* Override any gcc2 internal prototype to avoid an error. */
14047 /* We use char because int might match the return type of a gcc2
14048 builtin and then its argument prototype would still apply. */
14049 char gethostbyname();
14050
14051 int main() {
14052
14053 /* The GNU C library defines this for functions which it implements
14054 to always fail with ENOSYS. Some functions are actually named
14055 something starting with __ and the normal name is an alias. */
14056 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14057 choke me
14058 #else
14059 gethostbyname();
14060 #endif
14061
14062 ; return 0; }
14063 EOF
14064 if { (eval echo configure:14065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14065 rm -rf conftest*
14066 eval "ac_cv_func_gethostbyname=yes"
14067 else
14068 echo "configure: failed program was:" >&5
14069 cat conftest.$ac_ext >&5
14070 rm -rf conftest*
14071 eval "ac_cv_func_gethostbyname=no"
14072 fi
14073 rm -f conftest*
14074 fi
14075
14076 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14077 echo "$ac_t""yes" 1>&6
14078 :
14079 else
14080 echo "$ac_t""no" 1>&6
14081 fi
14082
14083 if test $ac_cv_func_gethostbyname = no; then
14084 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14085 echo "configure:14086: checking for gethostbyname in -lnsl" >&5
14086 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14088 echo $ac_n "(cached) $ac_c" 1>&6
14089 else
14090 ac_save_LIBS="$LIBS"
14091 LIBS="-lnsl $LIBS"
14092 cat > conftest.$ac_ext <<EOF
14093 #line 14094 "configure"
14094 #include "confdefs.h"
14095 /* Override any gcc2 internal prototype to avoid an error. */
14096 /* We use char because int might match the return type of a gcc2
14097 builtin and then its argument prototype would still apply. */
14098 char gethostbyname();
14099
14100 int main() {
14101 gethostbyname()
14102 ; return 0; }
14103 EOF
14104 if { (eval echo configure:14105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14105 rm -rf conftest*
14106 eval "ac_cv_lib_$ac_lib_var=yes"
14107 else
14108 echo "configure: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 rm -rf conftest*
14111 eval "ac_cv_lib_$ac_lib_var=no"
14112 fi
14113 rm -f conftest*
14114 LIBS="$ac_save_LIBS"
14115
14116 fi
14117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14118 echo "$ac_t""yes" 1>&6
14119 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14120 else
14121 echo "$ac_t""no" 1>&6
14122 fi
14123
14124 fi
14125
14126 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14127 # socket/setsockopt and other routines are undefined under SCO ODT
14128 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14129 # on later versions), says simon@lia.di.epfl.ch: it contains
14130 # gethostby* variants that don't use the nameserver (or something).
14131 # -lsocket must be given before -lnsl if both are needed.
14132 # We assume that if connect needs -lnsl, so does gethostbyname.
14133 echo $ac_n "checking for connect""... $ac_c" 1>&6
14134 echo "configure:14135: checking for connect" >&5
14135 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14136 echo $ac_n "(cached) $ac_c" 1>&6
14137 else
14138 cat > conftest.$ac_ext <<EOF
14139 #line 14140 "configure"
14140 #include "confdefs.h"
14141 /* System header to define __stub macros and hopefully few prototypes,
14142 which can conflict with char connect(); below. */
14143 #include <assert.h>
14144 /* Override any gcc2 internal prototype to avoid an error. */
14145 /* We use char because int might match the return type of a gcc2
14146 builtin and then its argument prototype would still apply. */
14147 char connect();
14148
14149 int main() {
14150
14151 /* The GNU C library defines this for functions which it implements
14152 to always fail with ENOSYS. Some functions are actually named
14153 something starting with __ and the normal name is an alias. */
14154 #if defined (__stub_connect) || defined (__stub___connect)
14155 choke me
14156 #else
14157 connect();
14158 #endif
14159
14160 ; return 0; }
14161 EOF
14162 if { (eval echo configure:14163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14163 rm -rf conftest*
14164 eval "ac_cv_func_connect=yes"
14165 else
14166 echo "configure: failed program was:" >&5
14167 cat conftest.$ac_ext >&5
14168 rm -rf conftest*
14169 eval "ac_cv_func_connect=no"
14170 fi
14171 rm -f conftest*
14172 fi
14173
14174 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14175 echo "$ac_t""yes" 1>&6
14176 :
14177 else
14178 echo "$ac_t""no" 1>&6
14179 fi
14180
14181 if test $ac_cv_func_connect = no; then
14182 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14183 echo "configure:14184: checking for connect in -lsocket" >&5
14184 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14186 echo $ac_n "(cached) $ac_c" 1>&6
14187 else
14188 ac_save_LIBS="$LIBS"
14189 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14190 cat > conftest.$ac_ext <<EOF
14191 #line 14192 "configure"
14192 #include "confdefs.h"
14193 /* Override any gcc2 internal prototype to avoid an error. */
14194 /* We use char because int might match the return type of a gcc2
14195 builtin and then its argument prototype would still apply. */
14196 char connect();
14197
14198 int main() {
14199 connect()
14200 ; return 0; }
14201 EOF
14202 if { (eval echo configure:14203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14203 rm -rf conftest*
14204 eval "ac_cv_lib_$ac_lib_var=yes"
14205 else
14206 echo "configure: failed program was:" >&5
14207 cat conftest.$ac_ext >&5
14208 rm -rf conftest*
14209 eval "ac_cv_lib_$ac_lib_var=no"
14210 fi
14211 rm -f conftest*
14212 LIBS="$ac_save_LIBS"
14213
14214 fi
14215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14216 echo "$ac_t""yes" 1>&6
14217 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14218 else
14219 echo "$ac_t""no" 1>&6
14220 fi
14221
14222 fi
14223
14224 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14225 echo $ac_n "checking for remove""... $ac_c" 1>&6
14226 echo "configure:14227: checking for remove" >&5
14227 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14228 echo $ac_n "(cached) $ac_c" 1>&6
14229 else
14230 cat > conftest.$ac_ext <<EOF
14231 #line 14232 "configure"
14232 #include "confdefs.h"
14233 /* System header to define __stub macros and hopefully few prototypes,
14234 which can conflict with char remove(); below. */
14235 #include <assert.h>
14236 /* Override any gcc2 internal prototype to avoid an error. */
14237 /* We use char because int might match the return type of a gcc2
14238 builtin and then its argument prototype would still apply. */
14239 char remove();
14240
14241 int main() {
14242
14243 /* The GNU C library defines this for functions which it implements
14244 to always fail with ENOSYS. Some functions are actually named
14245 something starting with __ and the normal name is an alias. */
14246 #if defined (__stub_remove) || defined (__stub___remove)
14247 choke me
14248 #else
14249 remove();
14250 #endif
14251
14252 ; return 0; }
14253 EOF
14254 if { (eval echo configure:14255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14255 rm -rf conftest*
14256 eval "ac_cv_func_remove=yes"
14257 else
14258 echo "configure: failed program was:" >&5
14259 cat conftest.$ac_ext >&5
14260 rm -rf conftest*
14261 eval "ac_cv_func_remove=no"
14262 fi
14263 rm -f conftest*
14264 fi
14265
14266 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14267 echo "$ac_t""yes" 1>&6
14268 :
14269 else
14270 echo "$ac_t""no" 1>&6
14271 fi
14272
14273 if test $ac_cv_func_remove = no; then
14274 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14275 echo "configure:14276: checking for remove in -lposix" >&5
14276 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14278 echo $ac_n "(cached) $ac_c" 1>&6
14279 else
14280 ac_save_LIBS="$LIBS"
14281 LIBS="-lposix $LIBS"
14282 cat > conftest.$ac_ext <<EOF
14283 #line 14284 "configure"
14284 #include "confdefs.h"
14285 /* Override any gcc2 internal prototype to avoid an error. */
14286 /* We use char because int might match the return type of a gcc2
14287 builtin and then its argument prototype would still apply. */
14288 char remove();
14289
14290 int main() {
14291 remove()
14292 ; return 0; }
14293 EOF
14294 if { (eval echo configure:14295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14295 rm -rf conftest*
14296 eval "ac_cv_lib_$ac_lib_var=yes"
14297 else
14298 echo "configure: failed program was:" >&5
14299 cat conftest.$ac_ext >&5
14300 rm -rf conftest*
14301 eval "ac_cv_lib_$ac_lib_var=no"
14302 fi
14303 rm -f conftest*
14304 LIBS="$ac_save_LIBS"
14305
14306 fi
14307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14308 echo "$ac_t""yes" 1>&6
14309 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14310 else
14311 echo "$ac_t""no" 1>&6
14312 fi
14313
14314 fi
14315
14316 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14317 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14318 echo "configure:14319: checking for shmat" >&5
14319 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14320 echo $ac_n "(cached) $ac_c" 1>&6
14321 else
14322 cat > conftest.$ac_ext <<EOF
14323 #line 14324 "configure"
14324 #include "confdefs.h"
14325 /* System header to define __stub macros and hopefully few prototypes,
14326 which can conflict with char shmat(); below. */
14327 #include <assert.h>
14328 /* Override any gcc2 internal prototype to avoid an error. */
14329 /* We use char because int might match the return type of a gcc2
14330 builtin and then its argument prototype would still apply. */
14331 char shmat();
14332
14333 int main() {
14334
14335 /* The GNU C library defines this for functions which it implements
14336 to always fail with ENOSYS. Some functions are actually named
14337 something starting with __ and the normal name is an alias. */
14338 #if defined (__stub_shmat) || defined (__stub___shmat)
14339 choke me
14340 #else
14341 shmat();
14342 #endif
14343
14344 ; return 0; }
14345 EOF
14346 if { (eval echo configure:14347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14347 rm -rf conftest*
14348 eval "ac_cv_func_shmat=yes"
14349 else
14350 echo "configure: failed program was:" >&5
14351 cat conftest.$ac_ext >&5
14352 rm -rf conftest*
14353 eval "ac_cv_func_shmat=no"
14354 fi
14355 rm -f conftest*
14356 fi
14357
14358 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14359 echo "$ac_t""yes" 1>&6
14360 :
14361 else
14362 echo "$ac_t""no" 1>&6
14363 fi
14364
14365 if test $ac_cv_func_shmat = no; then
14366 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14367 echo "configure:14368: checking for shmat in -lipc" >&5
14368 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14370 echo $ac_n "(cached) $ac_c" 1>&6
14371 else
14372 ac_save_LIBS="$LIBS"
14373 LIBS="-lipc $LIBS"
14374 cat > conftest.$ac_ext <<EOF
14375 #line 14376 "configure"
14376 #include "confdefs.h"
14377 /* Override any gcc2 internal prototype to avoid an error. */
14378 /* We use char because int might match the return type of a gcc2
14379 builtin and then its argument prototype would still apply. */
14380 char shmat();
14381
14382 int main() {
14383 shmat()
14384 ; return 0; }
14385 EOF
14386 if { (eval echo configure:14387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14387 rm -rf conftest*
14388 eval "ac_cv_lib_$ac_lib_var=yes"
14389 else
14390 echo "configure: failed program was:" >&5
14391 cat conftest.$ac_ext >&5
14392 rm -rf conftest*
14393 eval "ac_cv_lib_$ac_lib_var=no"
14394 fi
14395 rm -f conftest*
14396 LIBS="$ac_save_LIBS"
14397
14398 fi
14399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14400 echo "$ac_t""yes" 1>&6
14401 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14402 else
14403 echo "$ac_t""no" 1>&6
14404 fi
14405
14406 fi
14407 fi
14408
14409 # Check for libraries that X11R6 Xt/Xaw programs need.
14410 ac_save_LDFLAGS="$LDFLAGS"
14411 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14412 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14413 # check for ICE first), but we must link in the order -lSM -lICE or
14414 # we get undefined symbols. So assume we have SM if we have ICE.
14415 # These have to be linked with before -lX11, unlike the other
14416 # libraries we check for below, so use a different variable.
14417 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14418 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14419 echo "configure:14420: checking for IceConnectionNumber in -lICE" >&5
14420 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14422 echo $ac_n "(cached) $ac_c" 1>&6
14423 else
14424 ac_save_LIBS="$LIBS"
14425 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14426 cat > conftest.$ac_ext <<EOF
14427 #line 14428 "configure"
14428 #include "confdefs.h"
14429 /* Override any gcc2 internal prototype to avoid an error. */
14430 /* We use char because int might match the return type of a gcc2
14431 builtin and then its argument prototype would still apply. */
14432 char IceConnectionNumber();
14433
14434 int main() {
14435 IceConnectionNumber()
14436 ; return 0; }
14437 EOF
14438 if { (eval echo configure:14439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14439 rm -rf conftest*
14440 eval "ac_cv_lib_$ac_lib_var=yes"
14441 else
14442 echo "configure: failed program was:" >&5
14443 cat conftest.$ac_ext >&5
14444 rm -rf conftest*
14445 eval "ac_cv_lib_$ac_lib_var=no"
14446 fi
14447 rm -f conftest*
14448 LIBS="$ac_save_LIBS"
14449
14450 fi
14451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14452 echo "$ac_t""yes" 1>&6
14453 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14454 else
14455 echo "$ac_t""no" 1>&6
14456 fi
14457
14458 LDFLAGS="$ac_save_LDFLAGS"
14459
14460 fi
14461
14462
14463 if test "$no_x" = "yes"; then
14464 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14465 fi
14466
14467 GUI_TK_LIBRARY="$X_LIBS"
14468 TOOLKIT_INCLUDE="$X_CFLAGS"
14469 AFMINSTALL=afminstall
14470 COMPILED_X_PROGRAM=0
14471
14472 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
14473 echo "configure:14474: checking for Motif/Lesstif headers" >&5
14474
14475 ac_find_includes=
14476 for ac_dir in $SEARCH_INCLUDE;
14477 do
14478 if test -f "$ac_dir/Xm/Xm.h"; then
14479 ac_find_includes=$ac_dir
14480 break
14481 fi
14482 done
14483
14484 if test "$ac_find_includes" != "" ; then
14485 echo "$ac_t""found $ac_find_includes" 1>&6
14486 else
14487 cat > conftest.$ac_ext <<EOF
14488 #line 14489 "configure"
14489 #include "confdefs.h"
14490
14491 #include <Xm/Xm.h>
14492
14493 int main() {
14494
14495 int version;
14496 version = xmUseVersion;
14497
14498 ; return 0; }
14499 EOF
14500 if { (eval echo configure:14501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14501 rm -rf conftest*
14502
14503 echo "$ac_t""found in default search path" 1>&6
14504 COMPILED_X_PROGRAM=1
14505
14506 else
14507 echo "configure: failed program was:" >&5
14508 cat conftest.$ac_ext >&5
14509 rm -rf conftest*
14510
14511 echo "$ac_t""no" 1>&6
14512 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14513
14514
14515 fi
14516 rm -f conftest*
14517 fi
14518
14519 if test "$COMPILED_X_PROGRAM" = 0; then
14520 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
14521 echo "configure:14522: checking for Motif/Lesstif library" >&5
14522
14523 ac_find_libraries=
14524 for ac_dir in $SEARCH_LIB;
14525 do
14526 for ac_extension in a so sl dylib; do
14527 if test -f "$ac_dir/libXm.$ac_extension"; then
14528 ac_find_libraries=$ac_dir
14529 break 2
14530 fi
14531 done
14532 done
14533
14534 if test "$ac_find_libraries" != "" ; then
14535
14536 ac_path_to_include=$ac_find_includes
14537 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14538 result=$?
14539 if test $result = 0; then
14540 ac_path_to_include=""
14541 else
14542 ac_path_to_include=" -I$ac_find_includes"
14543 fi
14544
14545
14546 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14547 result=$?
14548 if test $result = 0; then
14549 ac_path_to_link=""
14550 else
14551 ac_path_to_link=" -L$ac_find_libraries"
14552 fi
14553
14554
14555 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14556 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14557 echo "$ac_t""found at $ac_find_libraries" 1>&6
14558 else
14559 cat > conftest.$ac_ext <<EOF
14560 #line 14561 "configure"
14561 #include "confdefs.h"
14562
14563 #include <Xm/Xm.h>
14564
14565 int main() {
14566
14567 int version;
14568 version = xmUseVersion;
14569
14570 ; return 0; }
14571 EOF
14572 if { (eval echo configure:14573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14573 rm -rf conftest*
14574
14575 echo "$ac_t""found in default search path" 1>&6
14576 COMPILED_X_PROGRAM=1
14577
14578 else
14579 echo "configure: failed program was:" >&5
14580 cat conftest.$ac_ext >&5
14581 rm -rf conftest*
14582
14583 echo "$ac_t""no" 1>&6
14584 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14585
14586
14587 fi
14588 rm -f conftest*
14589 fi
14590 fi
14591
14592 xpm_link=
14593 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14594 echo "configure:14595: checking for Xpm library" >&5
14595
14596 ac_find_libraries=
14597 for ac_dir in $SEARCH_LIB;
14598 do
14599 for ac_extension in a so sl dylib; do
14600 if test -f "$ac_dir/libXpm.$ac_extension"; then
14601 ac_find_libraries=$ac_dir
14602 break 2
14603 fi
14604 done
14605 done
14606
14607 if test "$ac_find_libraries" != "" ; then
14608
14609 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14610 result=$?
14611 if test $result = 0; then
14612 ac_path_to_link=""
14613 else
14614 ac_path_to_link=" -L$ac_find_libraries"
14615 fi
14616
14617 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14618 xpm_link=" -lXpm"
14619 cat >> confdefs.h <<\EOF
14620 #define wxHAVE_LIB_XPM 1
14621 EOF
14622
14623 echo "$ac_t""found at $ac_find_libraries" 1>&6
14624 else
14625 cat > conftest.$ac_ext <<EOF
14626 #line 14627 "configure"
14627 #include "confdefs.h"
14628
14629 #include <X11/xpm.h>
14630
14631 int main() {
14632
14633 int version;
14634 version = XpmLibraryVersion();
14635
14636 ; return 0; }
14637 EOF
14638 if { (eval echo configure:14639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14639 rm -rf conftest*
14640
14641 xpm_link=" -lXpm"
14642 cat >> confdefs.h <<\EOF
14643 #define wxHAVE_LIB_XPM 1
14644 EOF
14645
14646 echo "$ac_t""found in default search path" 1>&6
14647 COMPILED_X_PROGRAM=0
14648
14649 else
14650 echo "configure: failed program was:" >&5
14651 cat conftest.$ac_ext >&5
14652 rm -rf conftest*
14653
14654 echo "$ac_t""no" 1>&6
14655 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14656
14657
14658 fi
14659 rm -f conftest*
14660 fi
14661
14662 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
14663 echo "configure:14664: checking if we need -lXp and/or -lSM -lICE" >&5
14664 libp_link=""
14665 libsm_ice_link=""
14666 libs_found=0
14667 for libp in "" " -lXp"; do
14668 if test "$libs_found" = "0"; then
14669 for libsm_ice in " -lSM -lICE"; do
14670 if test "$libs_found" = "0"; then
14671 save_LIBS="$LIBS"
14672 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
14673 cat > conftest.$ac_ext <<EOF
14674 #line 14675 "configure"
14675 #include "confdefs.h"
14676
14677 #include <Xm/Xm.h>
14678 #include <Xm/List.h>
14679
14680 int main() {
14681
14682 XmString string = NULL;
14683 Widget w = NULL;
14684 int position = 0;
14685 XmListAddItem(w, string, position);
14686
14687 ; return 0; }
14688 EOF
14689 if { (eval echo configure:14690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14690 rm -rf conftest*
14691
14692 libp_link="$libp"
14693 libsm_ice_link="$libsm_ice"
14694 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
14695 libs_found=1
14696
14697 else
14698 echo "configure: failed program was:" >&5
14699 cat conftest.$ac_ext >&5
14700 rm -rf conftest*
14701
14702
14703 fi
14704 rm -f conftest*
14705 LIBS="$save_LIBS"
14706 fi
14707 done
14708 fi
14709 done
14710
14711 if test "$libs_found" = "0"; then
14712 echo "$ac_t""can't find the right libraries" 1>&6
14713 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
14714 fi
14715
14716 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
14717 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14718 TOOLKIT=MOTIF
14719 GUIDIST=MOTIF_DIST
14720 fi
14721
14722 if test "$wxUSE_MAC" = 1; then
14723 if test "$wxUSE_PRECOMP" = "yes"; then
14724 CPPFLAGS="$CPPFLAGS -cpp-precomp"
14725 else
14726 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14727 fi
14728 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14729 CFLAGS="$CFLAGS -fpascal-strings"
14730 CXXFLAGS="$CXXFLAGS -fpascal-strings"
14731
14732 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14733 TOOLKIT=MAC
14734 GUIDIST=MACX_DIST
14735 fi
14736
14737 if test "$wxUSE_PM" = 1; then
14738 TOOLKIT=PM
14739 GUIDIST=GTK_DIST
14740 fi
14741
14742 if test "$TOOLKIT" = "PM" ; then
14743 TOOLKIT_DIR="os2"
14744 else
14745 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14746 fi
14747
14748 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14749
14750 if test "$wxUSE_UNIVERSAL" = "yes"; then
14751 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14752
14753 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14754 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14755
14756 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14757 if test "$wxUSE_X11" = 1; then
14758 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14759 else
14760 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14761 fi
14762 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14763 WIDGET_SET=univ
14764 else
14765 ALL_OBJECTS="\$(GUIOBJS)"
14766 ALL_SOURCES="\$(ALL_SOURCES)"
14767 ALL_HEADERS="\$(ALL_HEADERS)"
14768 fi
14769
14770 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14771
14772 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14773 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14774 fi
14775
14776 if test "$wxUSE_HTML" = "yes"; then
14777 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14778 fi
14779
14780 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14781 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14782 fi
14783 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14784 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14785 fi
14786 if test "$wxUSE_LIBPNG" = "builtin" ; then
14787 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14788 fi
14789
14790 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14791 DISTDIR="wx\$(TOOLKIT)"
14792 else
14793 USE_GUI=0
14794
14795 TOOLKIT_DIR="base"
14796
14797 if test "$USE_WIN32" = 1 ; then
14798 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14799 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14800
14801 TOOLKIT="MSW"
14802 else
14803 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14804 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14805 fi
14806
14807 ALL_SOURCES="\$(ALL_SOURCES)"
14808 ALL_HEADERS="\$(ALL_HEADERS)"
14809
14810 PORT_FILES="\${top_srcdir}/src/files.lst"
14811
14812 GUIDIST="BASE_DIST"
14813 DISTDIR="wxBase"
14814 fi
14815
14816
14817 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14818 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
14819 fi
14820
14821 if test "$wxUSE_REGEX" = "builtin" ; then
14822 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
14823 fi
14824 if test "$wxUSE_ZLIB" = "builtin" ; then
14825 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
14826 fi
14827
14828
14829 if test "$wxUSE_OPENGL" = "yes"; then
14830 if test "$wxUSE_MAC" = 1; then
14831 OPENGL_LIBS="-framework OpenGL -framework AGL"
14832 elif test "$wxUSE_MSW" = 1; then
14833 OPENGL_LIBS="-lopengl32 -lglu32"
14834 else
14835 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14836 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14837 echo "configure:14838: checking for GL/gl.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 <GL/gl.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
14864 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
14865 echo "configure:14866: checking for -lGL" >&5
14866
14867 ac_find_libraries=
14868 for ac_dir in $SEARCH_LIB;
14869 do
14870 for ac_extension in a so sl dylib; do
14871 if test -f "$ac_dir/libGL.$ac_extension"; then
14872 ac_find_libraries=$ac_dir
14873 break 2
14874 fi
14875 done
14876 done
14877
14878 if test "$ac_find_libraries" != "" ; then
14879
14880 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14881 result=$?
14882 if test $result = 0; then
14883 ac_path_to_link=""
14884 else
14885 ac_path_to_link=" -L$ac_find_libraries"
14886 fi
14887
14888 if test "$ac_path_to_link" = " -L/usr/lib" ; then
14889 LDFLAGS_GL="$LDFLAGS"
14890 else
14891 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14892 fi
14893 OPENGL_LIBS="-lGL -lGLU"
14894 echo "$ac_t""yes" 1>&6
14895 else
14896 echo "$ac_t""no" 1>&6
14897 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
14898 echo "configure:14899: checking for -lMesaGL" >&5
14899
14900 ac_find_libraries=
14901 for ac_dir in $SEARCH_LIB;
14902 do
14903 for ac_extension in a so sl dylib; do
14904 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14905 ac_find_libraries=$ac_dir
14906 break 2
14907 fi
14908 done
14909 done
14910
14911 if test "$ac_find_libraries" != "" ; then
14912
14913 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14914 result=$?
14915 if test $result = 0; then
14916 ac_path_to_link=""
14917 else
14918 ac_path_to_link=" -L$ac_find_libraries"
14919 fi
14920
14921 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14922 OPENGL_LIBS="-lMesaGL -lMesaGLU"
14923 echo "$ac_t""yes" 1>&6
14924 else
14925 echo "$ac_t""no" 1>&6
14926 fi
14927 fi
14928
14929 else
14930 echo "$ac_t""no" 1>&6
14931 fi
14932
14933
14934 if test "x$OPENGL_LIBS" = "x"; then
14935 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14936 fi
14937 fi
14938
14939 if test "$wxUSE_OPENGL" = "yes"; then
14940 cat >> confdefs.h <<\EOF
14941 #define wxUSE_OPENGL 1
14942 EOF
14943
14944 cat >> confdefs.h <<\EOF
14945 #define wxUSE_GLCANVAS 1
14946 EOF
14947
14948 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14949 fi
14950 fi
14951
14952 if test -z "$TOOLKIT_VPATH" ; then
14953 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
14954 fi
14955
14956 if test -n "$TOOLKIT" ; then
14957 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14958 fi
14959
14960 lib_unicode_suffix=
14961 if test "$wxUSE_UNICODE" = "yes"; then
14962 lib_unicode_suffix=u
14963 fi
14964
14965 lib_debug_suffix=
14966 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14967 lib_debug_suffix=d
14968 fi
14969
14970 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14971 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14972
14973 if test "$cross_compiling" = "yes"; then
14974 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14975 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14976 fi
14977
14978 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
14979 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
14980
14981 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14982 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14983
14984 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
14985 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
14986 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
14987 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14988
14989 case "${host}" in
14990 *-*-cygwin* | *-*-mingw32* )
14991
14992
14993
14994 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
14995 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14996 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14997 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
14998 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
14999 else
15000 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15001 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15002 fi
15003 ;;
15004
15005 *-*-darwin* )
15006 if test "$wxUSE_MAC" = 1; then
15007 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
15008 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
15009 fi
15010 ;;
15011 esac
15012
15013 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15014 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15015
15016 WXCONFIG_LIBS="-l${WX_LIBRARY}"
15017 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15018
15019 if test "$wxUSE_OPENGL" = "yes"; then
15020 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15021 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15022 fi
15023
15024
15025
15026 if test "$wxUSE_SHARED" = "yes"; then
15027 case "${host}" in
15028 *-pc-os2_emx | *-pc-os2-emx | \
15029 *-pc-msdosdjgpp )
15030 wxUSE_SHARED=no
15031 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
15032 ;;
15033 esac
15034 fi
15035
15036 if test "$wxUSE_SHARED" = "yes"; then
15037
15038 if test "$wxUSE_OPENGL" = "yes"; then
15039 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15040 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15041 else
15042 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15043 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15044 fi
15045
15046 if test "$GCC" = "yes"; then
15047 PIC_FLAG="-fPIC"
15048 fi
15049
15050 SHARED_LD="${CXX} -shared -o"
15051
15052 case "${host}" in
15053 *-hp-hpux* )
15054 if test "$GCC" == "yes"; then
15055 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
15056 else
15057 LDFLAGS="$LDFLAGS -L/usr/lib"
15058
15059 SHARED_LD="${CXX} -b -o"
15060 PIC_FLAG="+Z"
15061 fi
15062
15063 if test "$wxUSE_OPENGL" = "yes"; then
15064 WX_ALL_INSTALLED="preinstall_gl"
15065 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15066 else
15067 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15068 fi
15069 ;;
15070
15071 *-*-linux* )
15072 if test "$GCC" != "yes"; then
15073 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
15074 echo "configure:15075: checking for Intel compiler" >&5
15075 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15076 echo $ac_n "(cached) $ac_c" 1>&6
15077 else
15078
15079 cat > conftest.$ac_ext <<EOF
15080 #line 15081 "configure"
15081 #include "confdefs.h"
15082
15083 int main() {
15084
15085 #ifndef __INTEL_COMPILER
15086 #error Not icc
15087 #endif
15088
15089 ; return 0; }
15090 EOF
15091 if { (eval echo configure:15092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15092 rm -rf conftest*
15093 wx_cv_prog_icc=yes
15094 else
15095 echo "configure: failed program was:" >&5
15096 cat conftest.$ac_ext >&5
15097 rm -rf conftest*
15098 wx_cv_prog_icc=no
15099
15100 fi
15101 rm -f conftest*
15102
15103 fi
15104
15105 echo "$ac_t""$wx_cv_prog_icc" 1>&6
15106 if test "$wx_cv_prog_icc" = "yes"; then
15107 PIC_FLAG="-KPIC"
15108 fi
15109 fi
15110
15111 if test "$wxUSE_SONAME" = "yes" ; then
15112 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
15113 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
15114 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
15115 fi
15116 ;;
15117
15118 *-*-solaris2* )
15119 if test "$GCC" = yes ; then
15120 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
15121 else
15122 SHARED_LD="${CXX} -G -o"
15123 PIC_FLAG="-KPIC"
15124 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
15125 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
15126 fi
15127 ;;
15128
15129 *-*-darwin* )
15130 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
15131 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
15132 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
15133 PIC_FLAG="-dynamic -fPIC"
15134 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
15135 SONAME_FLAGS_GL=${SONAME_FLAGS}
15136 ;;
15137
15138 *-*-aix* )
15139 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
15140 set dummy makeC++SharedLib; ac_word=$2
15141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15142 echo "configure:15143: checking for $ac_word" >&5
15143 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
15144 echo $ac_n "(cached) $ac_c" 1>&6
15145 else
15146 if test -n "$AIX_CXX_LD"; then
15147 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
15148 else
15149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15150 ac_dummy="$PATH"
15151 for ac_dir in $ac_dummy; do
15152 test -z "$ac_dir" && ac_dir=.
15153 if test -f $ac_dir/$ac_word; then
15154 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
15155 break
15156 fi
15157 done
15158 IFS="$ac_save_ifs"
15159 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15160 fi
15161 fi
15162 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
15163 if test -n "$AIX_CXX_LD"; then
15164 echo "$ac_t""$AIX_CXX_LD" 1>&6
15165 else
15166 echo "$ac_t""no" 1>&6
15167 fi
15168
15169
15170 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
15171 ;;
15172
15173 *-*-cygwin* | *-*-mingw32* )
15174
15175 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15176
15177 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15178 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15179
15180 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15181
15182 if test "$wxUSE_OPENGL" = "yes"; then
15183 WX_ALL_INSTALLED="preinstall_gl"
15184 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15185 else
15186 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15187 fi
15188 ;;
15189
15190 *-*-beos* )
15191 SHARED_LD="${LD} -shared -o"
15192 ;;
15193
15194 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15195 *-*-sunos4* | \
15196 *-*-irix5* | *-*-irix6* | \
15197 *-*-osf* | \
15198 *-*-dgux5* | \
15199 *-*-sysv5* )
15200 ;;
15201
15202 *)
15203 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15204 esac
15205
15206 if test "x$WX_TARGET_LIBRARY" = "x"; then
15207 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15208 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15209 fi
15210
15211 WX_TARGET_LIBRARY_TYPE="so"
15212 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
15213 fi
15214
15215 if test "$wxUSE_SHARED" = "no"; then
15216
15217 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15218 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15219 fi
15220
15221 if test "$wxUSE_MAC" = 1; then
15222 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15223 fi
15224
15225 if test "$wxUSE_OPENGL" = "yes"; then
15226 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15227 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15228 else
15229 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15230 fi
15231
15232 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15233 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15234
15235 WX_TARGET_LIBRARY_TYPE="a"
15236 INSTALL_LIBRARY='$(INSTALL_DATA)'
15237 fi
15238
15239 if test "$wxUSE_MAC" = 1; then
15240 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15241 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15242 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15243 # Extract the first word of "Rez", so it can be a program name with args.
15244 set dummy Rez; ac_word=$2
15245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15246 echo "configure:15247: checking for $ac_word" >&5
15247 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
15248 echo $ac_n "(cached) $ac_c" 1>&6
15249 else
15250 if test -n "$RESCOMP"; then
15251 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
15252 else
15253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15254 ac_dummy="$PATH"
15255 for ac_dir in $ac_dummy; do
15256 test -z "$ac_dir" && ac_dir=.
15257 if test -f $ac_dir/$ac_word; then
15258 ac_cv_prog_RESCOMP="Rez"
15259 break
15260 fi
15261 done
15262 IFS="$ac_save_ifs"
15263 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
15264 fi
15265 fi
15266 RESCOMP="$ac_cv_prog_RESCOMP"
15267 if test -n "$RESCOMP"; then
15268 echo "$ac_t""$RESCOMP" 1>&6
15269 else
15270 echo "$ac_t""no" 1>&6
15271 fi
15272
15273 # Extract the first word of "DeRez", so it can be a program name with args.
15274 set dummy DeRez; ac_word=$2
15275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15276 echo "configure:15277: checking for $ac_word" >&5
15277 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15278 echo $ac_n "(cached) $ac_c" 1>&6
15279 else
15280 if test -n "$DEREZ"; then
15281 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
15282 else
15283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15284 ac_dummy="$PATH"
15285 for ac_dir in $ac_dummy; do
15286 test -z "$ac_dir" && ac_dir=.
15287 if test -f $ac_dir/$ac_word; then
15288 ac_cv_prog_DEREZ="DeRez"
15289 break
15290 fi
15291 done
15292 IFS="$ac_save_ifs"
15293 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
15294 fi
15295 fi
15296 DEREZ="$ac_cv_prog_DEREZ"
15297 if test -n "$DEREZ"; then
15298 echo "$ac_t""$DEREZ" 1>&6
15299 else
15300 echo "$ac_t""no" 1>&6
15301 fi
15302
15303 MACOSX_BUNDLE="bundle"
15304 if test "$wxUSE_SHARED" = "yes"; then
15305 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15306 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15307 else
15308 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15309 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15310 fi
15311 else
15312 if test "$wxUSE_PM" = 1; then
15313 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
15314 fi
15315 fi
15316
15317
15318 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15319 echo "configure:15320: checking for ANSI C header files" >&5
15320 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
15321 echo $ac_n "(cached) $ac_c" 1>&6
15322 else
15323 cat > conftest.$ac_ext <<EOF
15324 #line 15325 "configure"
15325 #include "confdefs.h"
15326 #include <stdlib.h>
15327 #include <stdarg.h>
15328 #include <string.h>
15329 #include <float.h>
15330 EOF
15331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15332 { (eval echo configure:15333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15334 if test -z "$ac_err"; then
15335 rm -rf conftest*
15336 ac_cv_header_stdc=yes
15337 else
15338 echo "$ac_err" >&5
15339 echo "configure: failed program was:" >&5
15340 cat conftest.$ac_ext >&5
15341 rm -rf conftest*
15342 ac_cv_header_stdc=no
15343 fi
15344 rm -f conftest*
15345
15346 if test $ac_cv_header_stdc = yes; then
15347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15348 cat > conftest.$ac_ext <<EOF
15349 #line 15350 "configure"
15350 #include "confdefs.h"
15351 #include <string.h>
15352 EOF
15353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15354 egrep "memchr" >/dev/null 2>&1; then
15355 :
15356 else
15357 rm -rf conftest*
15358 ac_cv_header_stdc=no
15359 fi
15360 rm -f conftest*
15361
15362 fi
15363
15364 if test $ac_cv_header_stdc = yes; then
15365 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15366 cat > conftest.$ac_ext <<EOF
15367 #line 15368 "configure"
15368 #include "confdefs.h"
15369 #include <stdlib.h>
15370 EOF
15371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15372 egrep "free" >/dev/null 2>&1; then
15373 :
15374 else
15375 rm -rf conftest*
15376 ac_cv_header_stdc=no
15377 fi
15378 rm -f conftest*
15379
15380 fi
15381
15382 if test $ac_cv_header_stdc = yes; then
15383 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15384 if test "$cross_compiling" = yes; then
15385 :
15386 else
15387 cat > conftest.$ac_ext <<EOF
15388 #line 15389 "configure"
15389 #include "confdefs.h"
15390 #include <ctype.h>
15391 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15392 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15393 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15394 int main () { int i; for (i = 0; i < 256; i++)
15395 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15396 exit (0); }
15397
15398 EOF
15399 if { (eval echo configure:15400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15400 then
15401 :
15402 else
15403 echo "configure: failed program was:" >&5
15404 cat conftest.$ac_ext >&5
15405 rm -fr conftest*
15406 ac_cv_header_stdc=no
15407 fi
15408 rm -fr conftest*
15409 fi
15410
15411 fi
15412 fi
15413
15414 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15415 if test $ac_cv_header_stdc = yes; then
15416 cat >> confdefs.h <<\EOF
15417 #define STDC_HEADERS 1
15418 EOF
15419
15420 fi
15421
15422 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15423 echo "configure:15424: checking for mode_t" >&5
15424 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15425 echo $ac_n "(cached) $ac_c" 1>&6
15426 else
15427 cat > conftest.$ac_ext <<EOF
15428 #line 15429 "configure"
15429 #include "confdefs.h"
15430 #include <sys/types.h>
15431 #if STDC_HEADERS
15432 #include <stdlib.h>
15433 #include <stddef.h>
15434 #endif
15435 EOF
15436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15437 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15438 rm -rf conftest*
15439 ac_cv_type_mode_t=yes
15440 else
15441 rm -rf conftest*
15442 ac_cv_type_mode_t=no
15443 fi
15444 rm -f conftest*
15445
15446 fi
15447 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15448 if test $ac_cv_type_mode_t = no; then
15449 cat >> confdefs.h <<\EOF
15450 #define mode_t int
15451 EOF
15452
15453 fi
15454
15455 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15456 echo "configure:15457: checking for off_t" >&5
15457 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15458 echo $ac_n "(cached) $ac_c" 1>&6
15459 else
15460 cat > conftest.$ac_ext <<EOF
15461 #line 15462 "configure"
15462 #include "confdefs.h"
15463 #include <sys/types.h>
15464 #if STDC_HEADERS
15465 #include <stdlib.h>
15466 #include <stddef.h>
15467 #endif
15468 EOF
15469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15470 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15471 rm -rf conftest*
15472 ac_cv_type_off_t=yes
15473 else
15474 rm -rf conftest*
15475 ac_cv_type_off_t=no
15476 fi
15477 rm -f conftest*
15478
15479 fi
15480 echo "$ac_t""$ac_cv_type_off_t" 1>&6
15481 if test $ac_cv_type_off_t = no; then
15482 cat >> confdefs.h <<\EOF
15483 #define off_t long
15484 EOF
15485
15486 fi
15487
15488 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15489 echo "configure:15490: checking for pid_t" >&5
15490 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15491 echo $ac_n "(cached) $ac_c" 1>&6
15492 else
15493 cat > conftest.$ac_ext <<EOF
15494 #line 15495 "configure"
15495 #include "confdefs.h"
15496 #include <sys/types.h>
15497 #if STDC_HEADERS
15498 #include <stdlib.h>
15499 #include <stddef.h>
15500 #endif
15501 EOF
15502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15503 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15504 rm -rf conftest*
15505 ac_cv_type_pid_t=yes
15506 else
15507 rm -rf conftest*
15508 ac_cv_type_pid_t=no
15509 fi
15510 rm -f conftest*
15511
15512 fi
15513 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15514 if test $ac_cv_type_pid_t = no; then
15515 cat >> confdefs.h <<\EOF
15516 #define pid_t int
15517 EOF
15518
15519 fi
15520
15521 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15522 echo "configure:15523: checking for size_t" >&5
15523 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15524 echo $ac_n "(cached) $ac_c" 1>&6
15525 else
15526 cat > conftest.$ac_ext <<EOF
15527 #line 15528 "configure"
15528 #include "confdefs.h"
15529 #include <sys/types.h>
15530 #if STDC_HEADERS
15531 #include <stdlib.h>
15532 #include <stddef.h>
15533 #endif
15534 EOF
15535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15536 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15537 rm -rf conftest*
15538 ac_cv_type_size_t=yes
15539 else
15540 rm -rf conftest*
15541 ac_cv_type_size_t=no
15542 fi
15543 rm -f conftest*
15544
15545 fi
15546 echo "$ac_t""$ac_cv_type_size_t" 1>&6
15547 if test $ac_cv_type_size_t = no; then
15548 cat >> confdefs.h <<\EOF
15549 #define size_t unsigned
15550 EOF
15551
15552 fi
15553
15554 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15555 echo "configure:15556: checking for uid_t in sys/types.h" >&5
15556 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15557 echo $ac_n "(cached) $ac_c" 1>&6
15558 else
15559 cat > conftest.$ac_ext <<EOF
15560 #line 15561 "configure"
15561 #include "confdefs.h"
15562 #include <sys/types.h>
15563 EOF
15564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15565 egrep "uid_t" >/dev/null 2>&1; then
15566 rm -rf conftest*
15567 ac_cv_type_uid_t=yes
15568 else
15569 rm -rf conftest*
15570 ac_cv_type_uid_t=no
15571 fi
15572 rm -f conftest*
15573
15574 fi
15575
15576 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15577 if test $ac_cv_type_uid_t = no; then
15578 cat >> confdefs.h <<\EOF
15579 #define uid_t int
15580 EOF
15581
15582 cat >> confdefs.h <<\EOF
15583 #define gid_t int
15584 EOF
15585
15586 fi
15587
15588
15589
15590 ac_ext=C
15591 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15592 ac_cpp='$CXXCPP $CPPFLAGS'
15593 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15594 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15595 cross_compiling=$ac_cv_prog_cxx_cross
15596
15597 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
15598 echo "configure:15599: checking if size_t is unsigned int" >&5
15599 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15600 echo $ac_n "(cached) $ac_c" 1>&6
15601 else
15602 cat > conftest.$ac_ext <<EOF
15603 #line 15604 "configure"
15604 #include "confdefs.h"
15605 #include <stddef.h>
15606 int main() {
15607
15608 return 0; }
15609
15610 struct Foo { void foo(size_t); void foo(unsigned int); };
15611
15612 int bar() {
15613
15614 ; return 0; }
15615 EOF
15616 if { (eval echo configure:15617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15617 rm -rf conftest*
15618 wx_cv_size_t_is_uint=no
15619 else
15620 echo "configure: failed program was:" >&5
15621 cat conftest.$ac_ext >&5
15622 rm -rf conftest*
15623 wx_cv_size_t_is_uint=yes
15624
15625 fi
15626 rm -f conftest*
15627
15628 fi
15629
15630 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
15631
15632 if test "$wx_cv_size_t_is_uint" = "yes"; then
15633 cat >> confdefs.h <<\EOF
15634 #define wxSIZE_T_IS_UINT 1
15635 EOF
15636
15637 else
15638 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
15639 echo "configure:15640: checking if size_t is unsigned long" >&5
15640 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
15641 echo $ac_n "(cached) $ac_c" 1>&6
15642 else
15643 cat > conftest.$ac_ext <<EOF
15644 #line 15645 "configure"
15645 #include "confdefs.h"
15646 #include <stddef.h>
15647 int main() {
15648
15649 return 0; }
15650
15651 struct Foo { void foo(size_t); void foo(unsigned long); };
15652
15653 int bar() {
15654
15655 ; return 0; }
15656 EOF
15657 if { (eval echo configure:15658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15658 rm -rf conftest*
15659 wx_cv_size_t_is_ulong=no
15660 else
15661 echo "configure: failed program was:" >&5
15662 cat conftest.$ac_ext >&5
15663 rm -rf conftest*
15664 wx_cv_size_t_is_ulong=yes
15665
15666 fi
15667 rm -f conftest*
15668
15669 fi
15670
15671 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
15672
15673 if test "$wx_cv_size_t_is_ulong" = "yes"; then
15674 cat >> confdefs.h <<\EOF
15675 #define wxSIZE_T_IS_ULONG 1
15676 EOF
15677
15678 fi
15679 fi
15680
15681 ac_ext=c
15682 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15683 ac_cpp='$CPP $CPPFLAGS'
15684 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15685 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15686 cross_compiling=$ac_cv_prog_cc_cross
15687
15688
15689
15690 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
15691 echo "configure:15692: checking for pw_gecos in struct passwd" >&5
15692 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
15693 echo $ac_n "(cached) $ac_c" 1>&6
15694 else
15695
15696 cat > conftest.$ac_ext <<EOF
15697 #line 15698 "configure"
15698 #include "confdefs.h"
15699 #include <pwd.h>
15700 int main() {
15701
15702 char *p;
15703 struct passwd *pw;
15704 p = pw->pw_gecos;
15705
15706 ; return 0; }
15707 EOF
15708 if { (eval echo configure:15709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15709 rm -rf conftest*
15710
15711 wx_cv_struct_pw_gecos=yes
15712
15713 else
15714 echo "configure: failed program was:" >&5
15715 cat conftest.$ac_ext >&5
15716 rm -rf conftest*
15717
15718 wx_cv_struct_pw_gecos=no
15719
15720
15721 fi
15722 rm -f conftest*
15723
15724
15725 fi
15726
15727 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
15728
15729 if test "$wx_cv_struct_pw_gecos" = "yes"; then
15730 cat >> confdefs.h <<\EOF
15731 #define HAVE_PW_GECOS 1
15732 EOF
15733
15734 fi
15735
15736
15737 WCHAR_OK=0
15738 if test "$wx_cv_sizeof_wchar_t" != "0"; then
15739 WCHAR_LINK=
15740 for ac_func in wcslen
15741 do
15742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15743 echo "configure:15744: checking for $ac_func" >&5
15744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15745 echo $ac_n "(cached) $ac_c" 1>&6
15746 else
15747 cat > conftest.$ac_ext <<EOF
15748 #line 15749 "configure"
15749 #include "confdefs.h"
15750 /* System header to define __stub macros and hopefully few prototypes,
15751 which can conflict with char $ac_func(); below. */
15752 #include <assert.h>
15753 /* Override any gcc2 internal prototype to avoid an error. */
15754 /* We use char because int might match the return type of a gcc2
15755 builtin and then its argument prototype would still apply. */
15756 char $ac_func();
15757
15758 int main() {
15759
15760 /* The GNU C library defines this for functions which it implements
15761 to always fail with ENOSYS. Some functions are actually named
15762 something starting with __ and the normal name is an alias. */
15763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15764 choke me
15765 #else
15766 $ac_func();
15767 #endif
15768
15769 ; return 0; }
15770 EOF
15771 if { (eval echo configure:15772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15772 rm -rf conftest*
15773 eval "ac_cv_func_$ac_func=yes"
15774 else
15775 echo "configure: failed program was:" >&5
15776 cat conftest.$ac_ext >&5
15777 rm -rf conftest*
15778 eval "ac_cv_func_$ac_func=no"
15779 fi
15780 rm -f conftest*
15781 fi
15782
15783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15784 echo "$ac_t""yes" 1>&6
15785 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15786 cat >> confdefs.h <<EOF
15787 #define $ac_tr_func 1
15788 EOF
15789
15790 cat >> confdefs.h <<\EOF
15791 #define HAVE_WCSLEN 1
15792 EOF
15793
15794 WCHAR_OK=1
15795
15796 else
15797 echo "$ac_t""no" 1>&6
15798 fi
15799 done
15800
15801
15802 if test "$WCHAR_OK" = 0; then
15803 if test "$TOOLKIT" = "MSW"; then
15804 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15805 echo "configure:15806: checking for wcslen in -lmsvcrt" >&5
15806 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15808 echo $ac_n "(cached) $ac_c" 1>&6
15809 else
15810 ac_save_LIBS="$LIBS"
15811 LIBS="-lmsvcrt $LIBS"
15812 cat > conftest.$ac_ext <<EOF
15813 #line 15814 "configure"
15814 #include "confdefs.h"
15815 /* Override any gcc2 internal prototype to avoid an error. */
15816 /* We use char because int might match the return type of a gcc2
15817 builtin and then its argument prototype would still apply. */
15818 char wcslen();
15819
15820 int main() {
15821 wcslen()
15822 ; return 0; }
15823 EOF
15824 if { (eval echo configure:15825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15825 rm -rf conftest*
15826 eval "ac_cv_lib_$ac_lib_var=yes"
15827 else
15828 echo "configure: failed program was:" >&5
15829 cat conftest.$ac_ext >&5
15830 rm -rf conftest*
15831 eval "ac_cv_lib_$ac_lib_var=no"
15832 fi
15833 rm -f conftest*
15834 LIBS="$ac_save_LIBS"
15835
15836 fi
15837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15838 echo "$ac_t""yes" 1>&6
15839
15840 cat >> confdefs.h <<\EOF
15841 #define HAVE_WCSLEN 1
15842 EOF
15843
15844 WCHAR_OK=1
15845
15846 else
15847 echo "$ac_t""no" 1>&6
15848 fi
15849
15850 else
15851 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15852 echo "configure:15853: checking for wcslen in -lw" >&5
15853 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15855 echo $ac_n "(cached) $ac_c" 1>&6
15856 else
15857 ac_save_LIBS="$LIBS"
15858 LIBS="-lw $LIBS"
15859 cat > conftest.$ac_ext <<EOF
15860 #line 15861 "configure"
15861 #include "confdefs.h"
15862 /* Override any gcc2 internal prototype to avoid an error. */
15863 /* We use char because int might match the return type of a gcc2
15864 builtin and then its argument prototype would still apply. */
15865 char wcslen();
15866
15867 int main() {
15868 wcslen()
15869 ; return 0; }
15870 EOF
15871 if { (eval echo configure:15872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15872 rm -rf conftest*
15873 eval "ac_cv_lib_$ac_lib_var=yes"
15874 else
15875 echo "configure: failed program was:" >&5
15876 cat conftest.$ac_ext >&5
15877 rm -rf conftest*
15878 eval "ac_cv_lib_$ac_lib_var=no"
15879 fi
15880 rm -f conftest*
15881 LIBS="$ac_save_LIBS"
15882
15883 fi
15884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15885 echo "$ac_t""yes" 1>&6
15886
15887 cat >> confdefs.h <<\EOF
15888 #define HAVE_WCSLEN 1
15889 EOF
15890
15891 WCHAR_LINK=" -lw"
15892 WCHAR_OK=1
15893
15894 else
15895 echo "$ac_t""no" 1>&6
15896 fi
15897
15898 fi
15899 fi
15900 fi
15901
15902 if test "$WCHAR_OK" = 1; then
15903 cat >> confdefs.h <<\EOF
15904 #define wxUSE_WCHAR_T 1
15905 EOF
15906
15907
15908 for ac_func in wcsrtombs
15909 do
15910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15911 echo "configure:15912: checking for $ac_func" >&5
15912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15913 echo $ac_n "(cached) $ac_c" 1>&6
15914 else
15915 cat > conftest.$ac_ext <<EOF
15916 #line 15917 "configure"
15917 #include "confdefs.h"
15918 /* System header to define __stub macros and hopefully few prototypes,
15919 which can conflict with char $ac_func(); below. */
15920 #include <assert.h>
15921 /* Override any gcc2 internal prototype to avoid an error. */
15922 /* We use char because int might match the return type of a gcc2
15923 builtin and then its argument prototype would still apply. */
15924 char $ac_func();
15925
15926 int main() {
15927
15928 /* The GNU C library defines this for functions which it implements
15929 to always fail with ENOSYS. Some functions are actually named
15930 something starting with __ and the normal name is an alias. */
15931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15932 choke me
15933 #else
15934 $ac_func();
15935 #endif
15936
15937 ; return 0; }
15938 EOF
15939 if { (eval echo configure:15940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15940 rm -rf conftest*
15941 eval "ac_cv_func_$ac_func=yes"
15942 else
15943 echo "configure: failed program was:" >&5
15944 cat conftest.$ac_ext >&5
15945 rm -rf conftest*
15946 eval "ac_cv_func_$ac_func=no"
15947 fi
15948 rm -f conftest*
15949 fi
15950
15951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15952 echo "$ac_t""yes" 1>&6
15953 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15954 cat >> confdefs.h <<EOF
15955 #define $ac_tr_func 1
15956 EOF
15957
15958 else
15959 echo "$ac_t""no" 1>&6
15960 fi
15961 done
15962
15963 else
15964 if test "$USE_DARWIN" = 1; then
15965 cat >> confdefs.h <<\EOF
15966 #define wxUSE_WCHAR_T 1
15967 EOF
15968
15969 else
15970 echo "configure: warning: Wide character support is unavailable" 1>&2
15971 fi
15972 fi
15973
15974 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15975 echo "configure:15976: checking for vprintf" >&5
15976 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15977 echo $ac_n "(cached) $ac_c" 1>&6
15978 else
15979 cat > conftest.$ac_ext <<EOF
15980 #line 15981 "configure"
15981 #include "confdefs.h"
15982 /* System header to define __stub macros and hopefully few prototypes,
15983 which can conflict with char vprintf(); below. */
15984 #include <assert.h>
15985 /* Override any gcc2 internal prototype to avoid an error. */
15986 /* We use char because int might match the return type of a gcc2
15987 builtin and then its argument prototype would still apply. */
15988 char vprintf();
15989
15990 int main() {
15991
15992 /* The GNU C library defines this for functions which it implements
15993 to always fail with ENOSYS. Some functions are actually named
15994 something starting with __ and the normal name is an alias. */
15995 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15996 choke me
15997 #else
15998 vprintf();
15999 #endif
16000
16001 ; return 0; }
16002 EOF
16003 if { (eval echo configure:16004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16004 rm -rf conftest*
16005 eval "ac_cv_func_vprintf=yes"
16006 else
16007 echo "configure: failed program was:" >&5
16008 cat conftest.$ac_ext >&5
16009 rm -rf conftest*
16010 eval "ac_cv_func_vprintf=no"
16011 fi
16012 rm -f conftest*
16013 fi
16014
16015 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
16016 echo "$ac_t""yes" 1>&6
16017 cat >> confdefs.h <<\EOF
16018 #define HAVE_VPRINTF 1
16019 EOF
16020
16021 else
16022 echo "$ac_t""no" 1>&6
16023 fi
16024
16025 if test "$ac_cv_func_vprintf" != yes; then
16026 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
16027 echo "configure:16028: checking for _doprnt" >&5
16028 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
16029 echo $ac_n "(cached) $ac_c" 1>&6
16030 else
16031 cat > conftest.$ac_ext <<EOF
16032 #line 16033 "configure"
16033 #include "confdefs.h"
16034 /* System header to define __stub macros and hopefully few prototypes,
16035 which can conflict with char _doprnt(); below. */
16036 #include <assert.h>
16037 /* Override any gcc2 internal prototype to avoid an error. */
16038 /* We use char because int might match the return type of a gcc2
16039 builtin and then its argument prototype would still apply. */
16040 char _doprnt();
16041
16042 int main() {
16043
16044 /* The GNU C library defines this for functions which it implements
16045 to always fail with ENOSYS. Some functions are actually named
16046 something starting with __ and the normal name is an alias. */
16047 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16048 choke me
16049 #else
16050 _doprnt();
16051 #endif
16052
16053 ; return 0; }
16054 EOF
16055 if { (eval echo configure:16056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16056 rm -rf conftest*
16057 eval "ac_cv_func__doprnt=yes"
16058 else
16059 echo "configure: failed program was:" >&5
16060 cat conftest.$ac_ext >&5
16061 rm -rf conftest*
16062 eval "ac_cv_func__doprnt=no"
16063 fi
16064 rm -f conftest*
16065 fi
16066
16067 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
16068 echo "$ac_t""yes" 1>&6
16069 cat >> confdefs.h <<\EOF
16070 #define HAVE_DOPRNT 1
16071 EOF
16072
16073 else
16074 echo "$ac_t""no" 1>&6
16075 fi
16076
16077 fi
16078
16079
16080
16081
16082
16083
16084 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
16085 echo "configure:16086: checking for vsnprintf" >&5
16086 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
16087 echo $ac_n "(cached) $ac_c" 1>&6
16088 else
16089
16090 cat > conftest.$ac_ext <<EOF
16091 #line 16092 "configure"
16092 #include "confdefs.h"
16093
16094 #include <stdio.h>
16095 #include <stdarg.h>
16096
16097 int main() {
16098
16099 int wx_test_vsnprintf(const char *, ...);
16100
16101 wx_test_vsnprintf("%s");
16102 return 0;
16103 }
16104
16105 int wx_test_vsnprintf(const char *fmt, ...)
16106 {
16107 char *s;
16108
16109 va_list argp;
16110 va_start(argp, fmt);
16111 vsnprintf(s, 42, fmt, argp);
16112 va_end(argp);
16113
16114 ; return 0; }
16115 EOF
16116 if { (eval echo configure:16117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16117 rm -rf conftest*
16118
16119 wx_cv_func_vsnprintf=yes
16120
16121 else
16122 echo "configure: failed program was:" >&5
16123 cat conftest.$ac_ext >&5
16124 rm -rf conftest*
16125
16126 cat > conftest.$ac_ext <<EOF
16127 #line 16128 "configure"
16128 #include "confdefs.h"
16129
16130 #include <stdio.h>
16131 #include <stdarg.h>
16132
16133 int main() {
16134
16135 int wx_test_vsnprintf(const char *, ...);
16136
16137 wx_test_vsnprintf("%s");
16138 return 0;
16139 }
16140
16141 int wx_test_vsnprintf(const char *fmt, ...)
16142 {
16143 char *s;
16144
16145 va_list argp;
16146 va_start(argp, fmt);
16147 _vsnprintf(s, 42, fmt, argp);
16148 va_end(argp);
16149
16150 ; return 0; }
16151 EOF
16152 if { (eval echo configure:16153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16153 rm -rf conftest*
16154
16155 wx_cv_func_vsnprintf=yes
16156
16157 else
16158 echo "configure: failed program was:" >&5
16159 cat conftest.$ac_ext >&5
16160 rm -rf conftest*
16161
16162 wx_cv_func_vsnprintf=no
16163
16164 fi
16165 rm -f conftest*
16166
16167 fi
16168 rm -f conftest*
16169
16170 fi
16171
16172 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
16173
16174 if test "$wx_cv_func_vsnprintf" = yes; then
16175 cat >> confdefs.h <<\EOF
16176 #define HAVE_VSNPRINTF 1
16177 EOF
16178
16179 else
16180 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
16181 fi
16182
16183 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
16184 echo "configure:16185: checking for vsscanf" >&5
16185 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
16186 echo $ac_n "(cached) $ac_c" 1>&6
16187 else
16188
16189 cat > conftest.$ac_ext <<EOF
16190 #line 16191 "configure"
16191 #include "confdefs.h"
16192
16193 #include <stdio.h>
16194 #include <stdarg.h>
16195
16196 int main() {
16197
16198 int wx_test_vsscanf(const char *, ...);
16199
16200 wx_test_vsscanf("%d");
16201 return 0;
16202 }
16203
16204 int wx_test_vsscanf(const char *fmt, ...)
16205 {
16206 va_list argp;
16207 va_start(argp, fmt);
16208 vsscanf("42", fmt, argp);
16209 va_end(argp);
16210
16211 ; return 0; }
16212 EOF
16213 if { (eval echo configure:16214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16214 rm -rf conftest*
16215
16216 wx_cv_func_vsscanf=yes
16217
16218 else
16219 echo "configure: failed program was:" >&5
16220 cat conftest.$ac_ext >&5
16221 rm -rf conftest*
16222
16223 wx_cv_func_vsscanf=no
16224
16225 fi
16226 rm -f conftest*
16227
16228 fi
16229
16230 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
16231
16232 if test "$wx_cv_func_vsscanf" = yes; then
16233 cat >> confdefs.h <<\EOF
16234 #define HAVE_VSSCANF 1
16235 EOF
16236
16237 fi
16238
16239 if test "$TOOLKIT" != "MSW"; then
16240
16241
16242
16243 ac_ext=C
16244 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16245 ac_cpp='$CXXCPP $CPPFLAGS'
16246 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16247 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16248 cross_compiling=$ac_cv_prog_cxx_cross
16249
16250
16251
16252 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16253 if test "${with_libiconv_prefix+set}" = set; then
16254 withval="$with_libiconv_prefix"
16255
16256 for dir in `echo "$withval" | tr : ' '`; do
16257 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16258 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16259 done
16260
16261 fi
16262
16263
16264 echo $ac_n "checking for iconv""... $ac_c" 1>&6
16265 echo "configure:16266: checking for iconv" >&5
16266 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
16267 echo $ac_n "(cached) $ac_c" 1>&6
16268 else
16269
16270 am_cv_func_iconv="no, consider installing GNU libiconv"
16271 am_cv_lib_iconv=no
16272 cat > conftest.$ac_ext <<EOF
16273 #line 16274 "configure"
16274 #include "confdefs.h"
16275 #include <stdlib.h>
16276 #include <iconv.h>
16277 int main() {
16278 iconv_t cd = iconv_open("","");
16279 iconv(cd,NULL,NULL,NULL,NULL);
16280 iconv_close(cd);
16281 ; return 0; }
16282 EOF
16283 if { (eval echo configure:16284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16284 rm -rf conftest*
16285 am_cv_func_iconv=yes
16286 else
16287 echo "configure: failed program was:" >&5
16288 cat conftest.$ac_ext >&5
16289 fi
16290 rm -f conftest*
16291 if test "$am_cv_func_iconv" != yes; then
16292 am_save_LIBS="$LIBS"
16293 LIBS="$LIBS -liconv"
16294 cat > conftest.$ac_ext <<EOF
16295 #line 16296 "configure"
16296 #include "confdefs.h"
16297 #include <stdlib.h>
16298 #include <iconv.h>
16299 int main() {
16300 iconv_t cd = iconv_open("","");
16301 iconv(cd,NULL,NULL,NULL,NULL);
16302 iconv_close(cd);
16303 ; return 0; }
16304 EOF
16305 if { (eval echo configure:16306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16306 rm -rf conftest*
16307 am_cv_lib_iconv=yes
16308 am_cv_func_iconv=yes
16309 else
16310 echo "configure: failed program was:" >&5
16311 cat conftest.$ac_ext >&5
16312 fi
16313 rm -f conftest*
16314 LIBS="$am_save_LIBS"
16315 fi
16316
16317 fi
16318
16319 echo "$ac_t""$am_cv_func_iconv" 1>&6
16320 if test "$am_cv_func_iconv" = yes; then
16321 cat >> confdefs.h <<\EOF
16322 #define HAVE_ICONV 1
16323 EOF
16324
16325 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
16326 echo "configure:16327: checking if iconv needs const" >&5
16327 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
16328 echo $ac_n "(cached) $ac_c" 1>&6
16329 else
16330 cat > conftest.$ac_ext <<EOF
16331 #line 16332 "configure"
16332 #include "confdefs.h"
16333
16334 #include <stdlib.h>
16335 #include <iconv.h>
16336 extern
16337 #ifdef __cplusplus
16338 "C"
16339 #endif
16340 #if defined(__STDC__) || defined(__cplusplus)
16341 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16342 #else
16343 size_t iconv();
16344 #endif
16345
16346 int main() {
16347
16348 ; return 0; }
16349 EOF
16350 if { (eval echo configure:16351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16351 rm -rf conftest*
16352 wx_cv_func_iconv_const="no"
16353 else
16354 echo "configure: failed program was:" >&5
16355 cat conftest.$ac_ext >&5
16356 rm -rf conftest*
16357 wx_cv_func_iconv_const="yes"
16358
16359 fi
16360 rm -f conftest*
16361
16362 fi
16363
16364 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16365
16366 iconv_const=
16367 if test "x$wx_cv_func_iconv_const" = "xyes"; then
16368 iconv_const="const"
16369 fi
16370
16371 cat >> confdefs.h <<EOF
16372 #define ICONV_CONST $iconv_const
16373 EOF
16374
16375 fi
16376 LIBICONV=
16377 if test "$am_cv_lib_iconv" = yes; then
16378 LIBICONV="-liconv"
16379 fi
16380
16381
16382 LIBS="$LIBICONV $LIBS"
16383 ac_ext=c
16384 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16385 ac_cpp='$CPP $CPPFLAGS'
16386 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16387 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16388 cross_compiling=$ac_cv_prog_cc_cross
16389
16390
16391 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16392 for ac_func in sigaction
16393 do
16394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16395 echo "configure:16396: checking for $ac_func" >&5
16396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16397 echo $ac_n "(cached) $ac_c" 1>&6
16398 else
16399 cat > conftest.$ac_ext <<EOF
16400 #line 16401 "configure"
16401 #include "confdefs.h"
16402 /* System header to define __stub macros and hopefully few prototypes,
16403 which can conflict with char $ac_func(); below. */
16404 #include <assert.h>
16405 /* Override any gcc2 internal prototype to avoid an error. */
16406 /* We use char because int might match the return type of a gcc2
16407 builtin and then its argument prototype would still apply. */
16408 char $ac_func();
16409
16410 int main() {
16411
16412 /* The GNU C library defines this for functions which it implements
16413 to always fail with ENOSYS. Some functions are actually named
16414 something starting with __ and the normal name is an alias. */
16415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16416 choke me
16417 #else
16418 $ac_func();
16419 #endif
16420
16421 ; return 0; }
16422 EOF
16423 if { (eval echo configure:16424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16424 rm -rf conftest*
16425 eval "ac_cv_func_$ac_func=yes"
16426 else
16427 echo "configure: failed program was:" >&5
16428 cat conftest.$ac_ext >&5
16429 rm -rf conftest*
16430 eval "ac_cv_func_$ac_func=no"
16431 fi
16432 rm -f conftest*
16433 fi
16434
16435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16436 echo "$ac_t""yes" 1>&6
16437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16438 cat >> confdefs.h <<EOF
16439 #define $ac_tr_func 1
16440 EOF
16441
16442 else
16443 echo "$ac_t""no" 1>&6
16444 fi
16445 done
16446
16447
16448 if test "$ac_cv_func_sigaction" = "no"; then
16449 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16450 wxUSE_ON_FATAL_EXCEPTION=no
16451 fi
16452
16453 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16454
16455 ac_ext=C
16456 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16457 ac_cpp='$CXXCPP $CPPFLAGS'
16458 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16459 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16460 cross_compiling=$ac_cv_prog_cxx_cross
16461
16462
16463 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
16464 echo "configure:16465: checking for sa_handler type" >&5
16465 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16466 echo $ac_n "(cached) $ac_c" 1>&6
16467 else
16468
16469 cat > conftest.$ac_ext <<EOF
16470 #line 16471 "configure"
16471 #include "confdefs.h"
16472 #include <signal.h>
16473 int main() {
16474
16475 extern void testSigHandler(int);
16476
16477 struct sigaction sa;
16478 sa.sa_handler = testSigHandler;
16479
16480 ; return 0; }
16481 EOF
16482 if { (eval echo configure:16483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16483 rm -rf conftest*
16484
16485 wx_cv_type_sa_handler=int
16486
16487 else
16488 echo "configure: failed program was:" >&5
16489 cat conftest.$ac_ext >&5
16490 rm -rf conftest*
16491
16492 wx_cv_type_sa_handler=void
16493
16494 fi
16495 rm -f conftest*
16496
16497 fi
16498
16499 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16500
16501 ac_ext=c
16502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16503 ac_cpp='$CPP $CPPFLAGS'
16504 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16505 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16506 cross_compiling=$ac_cv_prog_cc_cross
16507
16508
16509 cat >> confdefs.h <<EOF
16510 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16511 EOF
16512
16513 fi
16514 fi
16515
16516 for ac_func in vfork
16517 do
16518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16519 echo "configure:16520: checking for $ac_func" >&5
16520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16521 echo $ac_n "(cached) $ac_c" 1>&6
16522 else
16523 cat > conftest.$ac_ext <<EOF
16524 #line 16525 "configure"
16525 #include "confdefs.h"
16526 /* System header to define __stub macros and hopefully few prototypes,
16527 which can conflict with char $ac_func(); below. */
16528 #include <assert.h>
16529 /* Override any gcc2 internal prototype to avoid an error. */
16530 /* We use char because int might match the return type of a gcc2
16531 builtin and then its argument prototype would still apply. */
16532 char $ac_func();
16533
16534 int main() {
16535
16536 /* The GNU C library defines this for functions which it implements
16537 to always fail with ENOSYS. Some functions are actually named
16538 something starting with __ and the normal name is an alias. */
16539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16540 choke me
16541 #else
16542 $ac_func();
16543 #endif
16544
16545 ; return 0; }
16546 EOF
16547 if { (eval echo configure:16548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16548 rm -rf conftest*
16549 eval "ac_cv_func_$ac_func=yes"
16550 else
16551 echo "configure: failed program was:" >&5
16552 cat conftest.$ac_ext >&5
16553 rm -rf conftest*
16554 eval "ac_cv_func_$ac_func=no"
16555 fi
16556 rm -f conftest*
16557 fi
16558
16559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16560 echo "$ac_t""yes" 1>&6
16561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16562 cat >> confdefs.h <<EOF
16563 #define $ac_tr_func 1
16564 EOF
16565
16566 else
16567 echo "$ac_t""no" 1>&6
16568 fi
16569 done
16570
16571
16572 for ac_func in mkstemp mktemp
16573 do
16574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16575 echo "configure:16576: checking for $ac_func" >&5
16576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16577 echo $ac_n "(cached) $ac_c" 1>&6
16578 else
16579 cat > conftest.$ac_ext <<EOF
16580 #line 16581 "configure"
16581 #include "confdefs.h"
16582 /* System header to define __stub macros and hopefully few prototypes,
16583 which can conflict with char $ac_func(); below. */
16584 #include <assert.h>
16585 /* Override any gcc2 internal prototype to avoid an error. */
16586 /* We use char because int might match the return type of a gcc2
16587 builtin and then its argument prototype would still apply. */
16588 char $ac_func();
16589
16590 int main() {
16591
16592 /* The GNU C library defines this for functions which it implements
16593 to always fail with ENOSYS. Some functions are actually named
16594 something starting with __ and the normal name is an alias. */
16595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16596 choke me
16597 #else
16598 $ac_func();
16599 #endif
16600
16601 ; return 0; }
16602 EOF
16603 if { (eval echo configure:16604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16604 rm -rf conftest*
16605 eval "ac_cv_func_$ac_func=yes"
16606 else
16607 echo "configure: failed program was:" >&5
16608 cat conftest.$ac_ext >&5
16609 rm -rf conftest*
16610 eval "ac_cv_func_$ac_func=no"
16611 fi
16612 rm -f conftest*
16613 fi
16614
16615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16616 echo "$ac_t""yes" 1>&6
16617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16618 cat >> confdefs.h <<EOF
16619 #define $ac_tr_func 1
16620 EOF
16621 break
16622 else
16623 echo "$ac_t""no" 1>&6
16624 fi
16625 done
16626
16627
16628 echo $ac_n "checking for statfs""... $ac_c" 1>&6
16629 echo "configure:16630: checking for statfs" >&5
16630 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16631 echo $ac_n "(cached) $ac_c" 1>&6
16632 else
16633 cat > conftest.$ac_ext <<EOF
16634 #line 16635 "configure"
16635 #include "confdefs.h"
16636
16637 #if defined(__BSD__)
16638 #include <sys/param.h>
16639 #include <sys/mount.h>
16640 #else
16641 #include <sys/vfs.h>
16642 #endif
16643
16644 int main() {
16645
16646 long l;
16647 struct statfs fs;
16648 statfs("/", &fs);
16649 l = fs.f_bsize;
16650 l += fs.f_blocks;
16651 l += fs.f_bavail;
16652
16653 ; return 0; }
16654 EOF
16655 if { (eval echo configure:16656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16656 rm -rf conftest*
16657
16658 wx_cv_func_statfs=yes
16659
16660 else
16661 echo "configure: failed program was:" >&5
16662 cat conftest.$ac_ext >&5
16663 rm -rf conftest*
16664
16665 wx_cv_func_statfs=no
16666
16667
16668 fi
16669 rm -f conftest*
16670
16671 fi
16672
16673 echo "$ac_t""$wx_cv_func_statfs" 1>&6
16674
16675 if test "$wx_cv_func_statfs" = "yes"; then
16676 cat >> confdefs.h <<\EOF
16677 #define HAVE_STATFS 1
16678 EOF
16679
16680 else
16681 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16682 echo "configure:16683: checking for statvfs" >&5
16683 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16684 echo $ac_n "(cached) $ac_c" 1>&6
16685 else
16686 cat > conftest.$ac_ext <<EOF
16687 #line 16688 "configure"
16688 #include "confdefs.h"
16689
16690 #include <sys/statvfs.h>
16691
16692 int main() {
16693
16694 long l;
16695 struct statvfs fs;
16696 statvfs("/", &fs);
16697 l = fs.f_bsize;
16698 l += fs.f_blocks;
16699 l += fs.f_bavail;
16700
16701 ; return 0; }
16702 EOF
16703 if { (eval echo configure:16704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16704 rm -rf conftest*
16705
16706 wx_cv_func_statvfs=yes
16707
16708 else
16709 echo "configure: failed program was:" >&5
16710 cat conftest.$ac_ext >&5
16711 rm -rf conftest*
16712
16713 wx_cv_func_statvfs=no
16714
16715
16716 fi
16717 rm -f conftest*
16718
16719 fi
16720
16721 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16722
16723 if test "$wx_cv_func_statvfs" = "yes"; then
16724 cat >> confdefs.h <<\EOF
16725 #define HAVE_STATVFS 1
16726 EOF
16727
16728 else
16729 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16730 fi
16731 fi
16732
16733 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16734 for ac_func in fcntl flock
16735 do
16736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16737 echo "configure:16738: checking for $ac_func" >&5
16738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16739 echo $ac_n "(cached) $ac_c" 1>&6
16740 else
16741 cat > conftest.$ac_ext <<EOF
16742 #line 16743 "configure"
16743 #include "confdefs.h"
16744 /* System header to define __stub macros and hopefully few prototypes,
16745 which can conflict with char $ac_func(); below. */
16746 #include <assert.h>
16747 /* Override any gcc2 internal prototype to avoid an error. */
16748 /* We use char because int might match the return type of a gcc2
16749 builtin and then its argument prototype would still apply. */
16750 char $ac_func();
16751
16752 int main() {
16753
16754 /* The GNU C library defines this for functions which it implements
16755 to always fail with ENOSYS. Some functions are actually named
16756 something starting with __ and the normal name is an alias. */
16757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16758 choke me
16759 #else
16760 $ac_func();
16761 #endif
16762
16763 ; return 0; }
16764 EOF
16765 if { (eval echo configure:16766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16766 rm -rf conftest*
16767 eval "ac_cv_func_$ac_func=yes"
16768 else
16769 echo "configure: failed program was:" >&5
16770 cat conftest.$ac_ext >&5
16771 rm -rf conftest*
16772 eval "ac_cv_func_$ac_func=no"
16773 fi
16774 rm -f conftest*
16775 fi
16776
16777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16778 echo "$ac_t""yes" 1>&6
16779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16780 cat >> confdefs.h <<EOF
16781 #define $ac_tr_func 1
16782 EOF
16783 break
16784 else
16785 echo "$ac_t""no" 1>&6
16786 fi
16787 done
16788
16789
16790 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16791 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16792 wxUSE_SNGLINST_CHECKER=no
16793 fi
16794 fi
16795
16796 for ac_func in timegm
16797 do
16798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16799 echo "configure:16800: checking for $ac_func" >&5
16800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16801 echo $ac_n "(cached) $ac_c" 1>&6
16802 else
16803 cat > conftest.$ac_ext <<EOF
16804 #line 16805 "configure"
16805 #include "confdefs.h"
16806 /* System header to define __stub macros and hopefully few prototypes,
16807 which can conflict with char $ac_func(); below. */
16808 #include <assert.h>
16809 /* Override any gcc2 internal prototype to avoid an error. */
16810 /* We use char because int might match the return type of a gcc2
16811 builtin and then its argument prototype would still apply. */
16812 char $ac_func();
16813
16814 int main() {
16815
16816 /* The GNU C library defines this for functions which it implements
16817 to always fail with ENOSYS. Some functions are actually named
16818 something starting with __ and the normal name is an alias. */
16819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16820 choke me
16821 #else
16822 $ac_func();
16823 #endif
16824
16825 ; return 0; }
16826 EOF
16827 if { (eval echo configure:16828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16828 rm -rf conftest*
16829 eval "ac_cv_func_$ac_func=yes"
16830 else
16831 echo "configure: failed program was:" >&5
16832 cat conftest.$ac_ext >&5
16833 rm -rf conftest*
16834 eval "ac_cv_func_$ac_func=no"
16835 fi
16836 rm -f conftest*
16837 fi
16838
16839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16840 echo "$ac_t""yes" 1>&6
16841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16842 cat >> confdefs.h <<EOF
16843 #define $ac_tr_func 1
16844 EOF
16845
16846 else
16847 echo "$ac_t""no" 1>&6
16848 fi
16849 done
16850
16851
16852 for ac_func in putenv setenv
16853 do
16854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16855 echo "configure:16856: checking for $ac_func" >&5
16856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16857 echo $ac_n "(cached) $ac_c" 1>&6
16858 else
16859 cat > conftest.$ac_ext <<EOF
16860 #line 16861 "configure"
16861 #include "confdefs.h"
16862 /* System header to define __stub macros and hopefully few prototypes,
16863 which can conflict with char $ac_func(); below. */
16864 #include <assert.h>
16865 /* Override any gcc2 internal prototype to avoid an error. */
16866 /* We use char because int might match the return type of a gcc2
16867 builtin and then its argument prototype would still apply. */
16868 char $ac_func();
16869
16870 int main() {
16871
16872 /* The GNU C library defines this for functions which it implements
16873 to always fail with ENOSYS. Some functions are actually named
16874 something starting with __ and the normal name is an alias. */
16875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16876 choke me
16877 #else
16878 $ac_func();
16879 #endif
16880
16881 ; return 0; }
16882 EOF
16883 if { (eval echo configure:16884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16884 rm -rf conftest*
16885 eval "ac_cv_func_$ac_func=yes"
16886 else
16887 echo "configure: failed program was:" >&5
16888 cat conftest.$ac_ext >&5
16889 rm -rf conftest*
16890 eval "ac_cv_func_$ac_func=no"
16891 fi
16892 rm -f conftest*
16893 fi
16894
16895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16896 echo "$ac_t""yes" 1>&6
16897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16898 cat >> confdefs.h <<EOF
16899 #define $ac_tr_func 1
16900 EOF
16901 break
16902 else
16903 echo "$ac_t""no" 1>&6
16904 fi
16905 done
16906
16907
16908 HAVE_SOME_SLEEP_FUNC=0
16909 if test "$USE_BEOS" = 1; then
16910 cat >> confdefs.h <<\EOF
16911 #define HAVE_SLEEP 1
16912 EOF
16913
16914 HAVE_SOME_SLEEP_FUNC=1
16915 fi
16916
16917 if test "$USE_DARWIN" = 1; then
16918 cat >> confdefs.h <<\EOF
16919 #define HAVE_USLEEP 1
16920 EOF
16921
16922 HAVE_SOME_SLEEP_FUNC=1
16923 fi
16924
16925 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16926 POSIX4_LINK=
16927 for ac_func in nanosleep
16928 do
16929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16930 echo "configure:16931: checking for $ac_func" >&5
16931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16932 echo $ac_n "(cached) $ac_c" 1>&6
16933 else
16934 cat > conftest.$ac_ext <<EOF
16935 #line 16936 "configure"
16936 #include "confdefs.h"
16937 /* System header to define __stub macros and hopefully few prototypes,
16938 which can conflict with char $ac_func(); below. */
16939 #include <assert.h>
16940 /* Override any gcc2 internal prototype to avoid an error. */
16941 /* We use char because int might match the return type of a gcc2
16942 builtin and then its argument prototype would still apply. */
16943 char $ac_func();
16944
16945 int main() {
16946
16947 /* The GNU C library defines this for functions which it implements
16948 to always fail with ENOSYS. Some functions are actually named
16949 something starting with __ and the normal name is an alias. */
16950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16951 choke me
16952 #else
16953 $ac_func();
16954 #endif
16955
16956 ; return 0; }
16957 EOF
16958 if { (eval echo configure:16959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16959 rm -rf conftest*
16960 eval "ac_cv_func_$ac_func=yes"
16961 else
16962 echo "configure: failed program was:" >&5
16963 cat conftest.$ac_ext >&5
16964 rm -rf conftest*
16965 eval "ac_cv_func_$ac_func=no"
16966 fi
16967 rm -f conftest*
16968 fi
16969
16970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16971 echo "$ac_t""yes" 1>&6
16972 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16973 cat >> confdefs.h <<EOF
16974 #define $ac_tr_func 1
16975 EOF
16976 cat >> confdefs.h <<\EOF
16977 #define HAVE_NANOSLEEP 1
16978 EOF
16979
16980 else
16981 echo "$ac_t""no" 1>&6
16982 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16983 echo "configure:16984: checking for nanosleep in -lposix4" >&5
16984 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16986 echo $ac_n "(cached) $ac_c" 1>&6
16987 else
16988 ac_save_LIBS="$LIBS"
16989 LIBS="-lposix4 $LIBS"
16990 cat > conftest.$ac_ext <<EOF
16991 #line 16992 "configure"
16992 #include "confdefs.h"
16993 /* Override any gcc2 internal prototype to avoid an error. */
16994 /* We use char because int might match the return type of a gcc2
16995 builtin and then its argument prototype would still apply. */
16996 char nanosleep();
16997
16998 int main() {
16999 nanosleep()
17000 ; return 0; }
17001 EOF
17002 if { (eval echo configure:17003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17003 rm -rf conftest*
17004 eval "ac_cv_lib_$ac_lib_var=yes"
17005 else
17006 echo "configure: failed program was:" >&5
17007 cat conftest.$ac_ext >&5
17008 rm -rf conftest*
17009 eval "ac_cv_lib_$ac_lib_var=no"
17010 fi
17011 rm -f conftest*
17012 LIBS="$ac_save_LIBS"
17013
17014 fi
17015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17016 echo "$ac_t""yes" 1>&6
17017
17018 cat >> confdefs.h <<\EOF
17019 #define HAVE_NANOSLEEP 1
17020 EOF
17021
17022 POSIX4_LINK=" -lposix4"
17023
17024 else
17025 echo "$ac_t""no" 1>&6
17026
17027 for ac_func in usleep
17028 do
17029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17030 echo "configure:17031: checking for $ac_func" >&5
17031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17032 echo $ac_n "(cached) $ac_c" 1>&6
17033 else
17034 cat > conftest.$ac_ext <<EOF
17035 #line 17036 "configure"
17036 #include "confdefs.h"
17037 /* System header to define __stub macros and hopefully few prototypes,
17038 which can conflict with char $ac_func(); below. */
17039 #include <assert.h>
17040 /* Override any gcc2 internal prototype to avoid an error. */
17041 /* We use char because int might match the return type of a gcc2
17042 builtin and then its argument prototype would still apply. */
17043 char $ac_func();
17044
17045 int main() {
17046
17047 /* The GNU C library defines this for functions which it implements
17048 to always fail with ENOSYS. Some functions are actually named
17049 something starting with __ and the normal name is an alias. */
17050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17051 choke me
17052 #else
17053 $ac_func();
17054 #endif
17055
17056 ; return 0; }
17057 EOF
17058 if { (eval echo configure:17059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17059 rm -rf conftest*
17060 eval "ac_cv_func_$ac_func=yes"
17061 else
17062 echo "configure: failed program was:" >&5
17063 cat conftest.$ac_ext >&5
17064 rm -rf conftest*
17065 eval "ac_cv_func_$ac_func=no"
17066 fi
17067 rm -f conftest*
17068 fi
17069
17070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17071 echo "$ac_t""yes" 1>&6
17072 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17073 cat >> confdefs.h <<EOF
17074 #define $ac_tr_func 1
17075 EOF
17076 cat >> confdefs.h <<\EOF
17077 #define HAVE_USLEEP 1
17078 EOF
17079
17080 else
17081 echo "$ac_t""no" 1>&6
17082 echo "configure: warning: wxSleep() function will not work" 1>&2
17083
17084 fi
17085 done
17086
17087
17088
17089 fi
17090
17091
17092
17093 fi
17094 done
17095
17096 fi
17097
17098 for ac_func in uname gethostname
17099 do
17100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17101 echo "configure:17102: checking for $ac_func" >&5
17102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17103 echo $ac_n "(cached) $ac_c" 1>&6
17104 else
17105 cat > conftest.$ac_ext <<EOF
17106 #line 17107 "configure"
17107 #include "confdefs.h"
17108 /* System header to define __stub macros and hopefully few prototypes,
17109 which can conflict with char $ac_func(); below. */
17110 #include <assert.h>
17111 /* Override any gcc2 internal prototype to avoid an error. */
17112 /* We use char because int might match the return type of a gcc2
17113 builtin and then its argument prototype would still apply. */
17114 char $ac_func();
17115
17116 int main() {
17117
17118 /* The GNU C library defines this for functions which it implements
17119 to always fail with ENOSYS. Some functions are actually named
17120 something starting with __ and the normal name is an alias. */
17121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17122 choke me
17123 #else
17124 $ac_func();
17125 #endif
17126
17127 ; return 0; }
17128 EOF
17129 if { (eval echo configure:17130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17130 rm -rf conftest*
17131 eval "ac_cv_func_$ac_func=yes"
17132 else
17133 echo "configure: failed program was:" >&5
17134 cat conftest.$ac_ext >&5
17135 rm -rf conftest*
17136 eval "ac_cv_func_$ac_func=no"
17137 fi
17138 rm -f conftest*
17139 fi
17140
17141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17142 echo "$ac_t""yes" 1>&6
17143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17144 cat >> confdefs.h <<EOF
17145 #define $ac_tr_func 1
17146 EOF
17147 break
17148 else
17149 echo "$ac_t""no" 1>&6
17150 fi
17151 done
17152
17153
17154
17155 ac_ext=C
17156 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17157 ac_cpp='$CXXCPP $CPPFLAGS'
17158 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17159 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17160 cross_compiling=$ac_cv_prog_cxx_cross
17161
17162
17163 for ac_func in strtok_r
17164 do
17165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17166 echo "configure:17167: checking for $ac_func" >&5
17167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17168 echo $ac_n "(cached) $ac_c" 1>&6
17169 else
17170 cat > conftest.$ac_ext <<EOF
17171 #line 17172 "configure"
17172 #include "confdefs.h"
17173 /* System header to define __stub macros and hopefully few prototypes,
17174 which can conflict with char $ac_func(); below. */
17175 #include <assert.h>
17176 /* Override any gcc2 internal prototype to avoid an error. */
17177 #ifdef __cplusplus
17178 extern "C"
17179 #endif
17180 /* We use char because int might match the return type of a gcc2
17181 builtin and then its argument prototype would still apply. */
17182 char $ac_func();
17183
17184 int main() {
17185
17186 /* The GNU C library defines this for functions which it implements
17187 to always fail with ENOSYS. Some functions are actually named
17188 something starting with __ and the normal name is an alias. */
17189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17190 choke me
17191 #else
17192 $ac_func();
17193 #endif
17194
17195 ; return 0; }
17196 EOF
17197 if { (eval echo configure:17198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17198 rm -rf conftest*
17199 eval "ac_cv_func_$ac_func=yes"
17200 else
17201 echo "configure: failed program was:" >&5
17202 cat conftest.$ac_ext >&5
17203 rm -rf conftest*
17204 eval "ac_cv_func_$ac_func=no"
17205 fi
17206 rm -f conftest*
17207 fi
17208
17209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17210 echo "$ac_t""yes" 1>&6
17211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17212 cat >> confdefs.h <<EOF
17213 #define $ac_tr_func 1
17214 EOF
17215
17216 else
17217 echo "$ac_t""no" 1>&6
17218 fi
17219 done
17220
17221
17222 ac_ext=c
17223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17224 ac_cpp='$CPP $CPPFLAGS'
17225 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17226 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17227 cross_compiling=$ac_cv_prog_cc_cross
17228
17229
17230 INET_LINK=
17231 for ac_func in inet_addr
17232 do
17233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17234 echo "configure:17235: checking for $ac_func" >&5
17235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17236 echo $ac_n "(cached) $ac_c" 1>&6
17237 else
17238 cat > conftest.$ac_ext <<EOF
17239 #line 17240 "configure"
17240 #include "confdefs.h"
17241 /* System header to define __stub macros and hopefully few prototypes,
17242 which can conflict with char $ac_func(); below. */
17243 #include <assert.h>
17244 /* Override any gcc2 internal prototype to avoid an error. */
17245 /* We use char because int might match the return type of a gcc2
17246 builtin and then its argument prototype would still apply. */
17247 char $ac_func();
17248
17249 int main() {
17250
17251 /* The GNU C library defines this for functions which it implements
17252 to always fail with ENOSYS. Some functions are actually named
17253 something starting with __ and the normal name is an alias. */
17254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17255 choke me
17256 #else
17257 $ac_func();
17258 #endif
17259
17260 ; return 0; }
17261 EOF
17262 if { (eval echo configure:17263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17263 rm -rf conftest*
17264 eval "ac_cv_func_$ac_func=yes"
17265 else
17266 echo "configure: failed program was:" >&5
17267 cat conftest.$ac_ext >&5
17268 rm -rf conftest*
17269 eval "ac_cv_func_$ac_func=no"
17270 fi
17271 rm -f conftest*
17272 fi
17273
17274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17275 echo "$ac_t""yes" 1>&6
17276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17277 cat >> confdefs.h <<EOF
17278 #define $ac_tr_func 1
17279 EOF
17280 cat >> confdefs.h <<\EOF
17281 #define HAVE_INET_ADDR 1
17282 EOF
17283
17284 else
17285 echo "$ac_t""no" 1>&6
17286 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
17287 echo "configure:17288: checking for inet_addr in -lnsl" >&5
17288 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17290 echo $ac_n "(cached) $ac_c" 1>&6
17291 else
17292 ac_save_LIBS="$LIBS"
17293 LIBS="-lnsl $LIBS"
17294 cat > conftest.$ac_ext <<EOF
17295 #line 17296 "configure"
17296 #include "confdefs.h"
17297 /* Override any gcc2 internal prototype to avoid an error. */
17298 /* We use char because int might match the return type of a gcc2
17299 builtin and then its argument prototype would still apply. */
17300 char inet_addr();
17301
17302 int main() {
17303 inet_addr()
17304 ; return 0; }
17305 EOF
17306 if { (eval echo configure:17307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17307 rm -rf conftest*
17308 eval "ac_cv_lib_$ac_lib_var=yes"
17309 else
17310 echo "configure: failed program was:" >&5
17311 cat conftest.$ac_ext >&5
17312 rm -rf conftest*
17313 eval "ac_cv_lib_$ac_lib_var=no"
17314 fi
17315 rm -f conftest*
17316 LIBS="$ac_save_LIBS"
17317
17318 fi
17319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17320 echo "$ac_t""yes" 1>&6
17321 INET_LINK="nsl"
17322 else
17323 echo "$ac_t""no" 1>&6
17324 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
17325 echo "configure:17326: checking for inet_addr in -lresolv" >&5
17326 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
17327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17328 echo $ac_n "(cached) $ac_c" 1>&6
17329 else
17330 ac_save_LIBS="$LIBS"
17331 LIBS="-lresolv $LIBS"
17332 cat > conftest.$ac_ext <<EOF
17333 #line 17334 "configure"
17334 #include "confdefs.h"
17335 /* Override any gcc2 internal prototype to avoid an error. */
17336 /* We use char because int might match the return type of a gcc2
17337 builtin and then its argument prototype would still apply. */
17338 char inet_addr();
17339
17340 int main() {
17341 inet_addr()
17342 ; return 0; }
17343 EOF
17344 if { (eval echo configure:17345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17345 rm -rf conftest*
17346 eval "ac_cv_lib_$ac_lib_var=yes"
17347 else
17348 echo "configure: failed program was:" >&5
17349 cat conftest.$ac_ext >&5
17350 rm -rf conftest*
17351 eval "ac_cv_lib_$ac_lib_var=no"
17352 fi
17353 rm -f conftest*
17354 LIBS="$ac_save_LIBS"
17355
17356 fi
17357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17358 echo "$ac_t""yes" 1>&6
17359 INET_LINK="resolv"
17360 else
17361 echo "$ac_t""no" 1>&6
17362 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
17363 echo "configure:17364: checking for inet_addr in -lsocket" >&5
17364 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17366 echo $ac_n "(cached) $ac_c" 1>&6
17367 else
17368 ac_save_LIBS="$LIBS"
17369 LIBS="-lsocket $LIBS"
17370 cat > conftest.$ac_ext <<EOF
17371 #line 17372 "configure"
17372 #include "confdefs.h"
17373 /* Override any gcc2 internal prototype to avoid an error. */
17374 /* We use char because int might match the return type of a gcc2
17375 builtin and then its argument prototype would still apply. */
17376 char inet_addr();
17377
17378 int main() {
17379 inet_addr()
17380 ; return 0; }
17381 EOF
17382 if { (eval echo configure:17383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17383 rm -rf conftest*
17384 eval "ac_cv_lib_$ac_lib_var=yes"
17385 else
17386 echo "configure: failed program was:" >&5
17387 cat conftest.$ac_ext >&5
17388 rm -rf conftest*
17389 eval "ac_cv_lib_$ac_lib_var=no"
17390 fi
17391 rm -f conftest*
17392 LIBS="$ac_save_LIBS"
17393
17394 fi
17395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17396 echo "$ac_t""yes" 1>&6
17397 INET_LINK="socket"
17398
17399 else
17400 echo "$ac_t""no" 1>&6
17401 fi
17402
17403
17404 fi
17405
17406
17407 fi
17408
17409
17410
17411 fi
17412 done
17413
17414
17415 for ac_func in inet_aton
17416 do
17417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17418 echo "configure:17419: checking for $ac_func" >&5
17419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17420 echo $ac_n "(cached) $ac_c" 1>&6
17421 else
17422 cat > conftest.$ac_ext <<EOF
17423 #line 17424 "configure"
17424 #include "confdefs.h"
17425 /* System header to define __stub macros and hopefully few prototypes,
17426 which can conflict with char $ac_func(); below. */
17427 #include <assert.h>
17428 /* Override any gcc2 internal prototype to avoid an error. */
17429 /* We use char because int might match the return type of a gcc2
17430 builtin and then its argument prototype would still apply. */
17431 char $ac_func();
17432
17433 int main() {
17434
17435 /* The GNU C library defines this for functions which it implements
17436 to always fail with ENOSYS. Some functions are actually named
17437 something starting with __ and the normal name is an alias. */
17438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17439 choke me
17440 #else
17441 $ac_func();
17442 #endif
17443
17444 ; return 0; }
17445 EOF
17446 if { (eval echo configure:17447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17447 rm -rf conftest*
17448 eval "ac_cv_func_$ac_func=yes"
17449 else
17450 echo "configure: failed program was:" >&5
17451 cat conftest.$ac_ext >&5
17452 rm -rf conftest*
17453 eval "ac_cv_func_$ac_func=no"
17454 fi
17455 rm -f conftest*
17456 fi
17457
17458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17459 echo "$ac_t""yes" 1>&6
17460 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17461 cat >> confdefs.h <<EOF
17462 #define $ac_tr_func 1
17463 EOF
17464 cat >> confdefs.h <<\EOF
17465 #define HAVE_INET_ATON 1
17466 EOF
17467
17468 else
17469 echo "$ac_t""no" 1>&6
17470 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17471 echo "configure:17472: checking for inet_aton in -l$INET_LINK" >&5
17472 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17474 echo $ac_n "(cached) $ac_c" 1>&6
17475 else
17476 ac_save_LIBS="$LIBS"
17477 LIBS="-l$INET_LINK $LIBS"
17478 cat > conftest.$ac_ext <<EOF
17479 #line 17480 "configure"
17480 #include "confdefs.h"
17481 /* Override any gcc2 internal prototype to avoid an error. */
17482 /* We use char because int might match the return type of a gcc2
17483 builtin and then its argument prototype would still apply. */
17484 char inet_aton();
17485
17486 int main() {
17487 inet_aton()
17488 ; return 0; }
17489 EOF
17490 if { (eval echo configure:17491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17491 rm -rf conftest*
17492 eval "ac_cv_lib_$ac_lib_var=yes"
17493 else
17494 echo "configure: failed program was:" >&5
17495 cat conftest.$ac_ext >&5
17496 rm -rf conftest*
17497 eval "ac_cv_lib_$ac_lib_var=no"
17498 fi
17499 rm -f conftest*
17500 LIBS="$ac_save_LIBS"
17501
17502 fi
17503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17504 echo "$ac_t""yes" 1>&6
17505 cat >> confdefs.h <<\EOF
17506 #define HAVE_INET_ATON 1
17507 EOF
17508
17509 else
17510 echo "$ac_t""no" 1>&6
17511 fi
17512
17513
17514 fi
17515 done
17516
17517
17518 if test "x$INET_LINK" != "x"; then
17519 cat >> confdefs.h <<\EOF
17520 #define HAVE_INET_ADDR 1
17521 EOF
17522
17523 INET_LINK=" -l$INET_LINK"
17524 fi
17525
17526 fi
17527
17528
17529 cat > confcache <<\EOF
17530 # This file is a shell script that caches the results of configure
17531 # tests run on this system so they can be shared between configure
17532 # scripts and configure runs. It is not useful on other systems.
17533 # If it contains results you don't want to keep, you may remove or edit it.
17534 #
17535 # By default, configure uses ./config.cache as the cache file,
17536 # creating it if it does not exist already. You can give configure
17537 # the --cache-file=FILE option to use a different cache file; that is
17538 # what configure does when it calls configure scripts in
17539 # subdirectories, so they share the cache.
17540 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17541 # config.status only pays attention to the cache file if you give it the
17542 # --recheck option to rerun configure.
17543 #
17544 EOF
17545 # The following way of writing the cache mishandles newlines in values,
17546 # but we know of no workaround that is simple, portable, and efficient.
17547 # So, don't put newlines in cache variables' values.
17548 # Ultrix sh set writes to stderr and can't be redirected directly,
17549 # and sets the high bit in the cache file unless we assign to the vars.
17550 (set) 2>&1 |
17551 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17552 *ac_space=\ *)
17553 # `set' does not quote correctly, so add quotes (double-quote substitution
17554 # turns \\\\ into \\, and sed turns \\ into \).
17555 sed -n \
17556 -e "s/'/'\\\\''/g" \
17557 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17558 ;;
17559 *)
17560 # `set' quotes correctly as required by POSIX, so do not add quotes.
17561 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17562 ;;
17563 esac >> confcache
17564 if cmp -s $cache_file confcache; then
17565 :
17566 else
17567 if test -w $cache_file; then
17568 echo "updating cache $cache_file"
17569 cat confcache > $cache_file
17570 else
17571 echo "not updating unwritable cache $cache_file"
17572 fi
17573 fi
17574 rm -f confcache
17575
17576
17577
17578 CPP_MT_FLAG=
17579 if test "$TOOLKIT" != "MSW"; then
17580
17581
17582 THREADS_LINK=
17583 THREADS_CFLAGS=
17584
17585 if test "$wxUSE_THREADS" = "yes" ; then
17586 if test "$wxUSE_WINE" = 1 ; then
17587 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17588 wxUSE_THREADS="no"
17589 elif test "$USE_BEOS" = 1; then
17590 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17591 wxUSE_THREADS="no"
17592 fi
17593 fi
17594
17595 if test "$wxUSE_THREADS" = "yes" ; then
17596
17597
17598 THREAD_OPTS="-pthread"
17599 case "${host}" in
17600 *-*-solaris2* | *-*-sunos4* )
17601 if test "x$GCC" = "xyes"; then
17602 THREAD_OPTS="-pthreads $THREAD_OPTS"
17603 else
17604 THREAD_OPTS="-mt $THREAD_OPTS"
17605 fi
17606 ;;
17607 *-*-freebsd*)
17608 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17609 ;;
17610 *-*-darwin* | *-*-cygwin* )
17611 THREAD_OPTS=""
17612 ;;
17613 *-*-aix*)
17614 THREAD_OPTS="pthreads"
17615 ;;
17616 esac
17617
17618 THREAD_OPTS="$THREAD_OPTS pthread none"
17619
17620 THREADS_OK=no
17621 for flag in $THREAD_OPTS; do
17622 case $flag in
17623 none)
17624 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
17625 echo "configure:17626: checking whether pthreads work without any flags" >&5
17626 ;;
17627
17628 -*)
17629 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
17630 echo "configure:17631: checking whether pthreads work with $flag" >&5
17631 THREADS_CFLAGS="$flag"
17632 ;;
17633
17634 *)
17635 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
17636 echo "configure:17637: checking for the pthreads library -l$flag" >&5
17637 THREADS_LINK="-l$flag"
17638 ;;
17639 esac
17640
17641 save_LIBS="$LIBS"
17642 save_CFLAGS="$CFLAGS"
17643 LIBS="$THREADS_LINK $LIBS"
17644 CFLAGS="$THREADS_CFLAGS $CFLAGS"
17645
17646 cat > conftest.$ac_ext <<EOF
17647 #line 17648 "configure"
17648 #include "confdefs.h"
17649 #include <pthread.h>
17650 int main() {
17651 pthread_create(0,0,0,0);
17652 ; return 0; }
17653 EOF
17654 if { (eval echo configure:17655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17655 rm -rf conftest*
17656 THREADS_OK=yes
17657 else
17658 echo "configure: failed program was:" >&5
17659 cat conftest.$ac_ext >&5
17660 fi
17661 rm -f conftest*
17662
17663 LIBS="$save_LIBS"
17664 CFLAGS="$save_CFLAGS"
17665
17666 echo "$ac_t""$THREADS_OK" 1>&6
17667 if test "x$THREADS_OK" = "xyes"; then
17668 break;
17669 fi
17670
17671 THREADS_LINK=""
17672 THREADS_CFLAGS=""
17673 done
17674
17675 if test "x$THREADS_OK" != "xyes"; then
17676 wxUSE_THREADS=no
17677 echo "configure: warning: No thread support on this system... disabled" 1>&2
17678 else
17679 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17680
17681 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
17682 echo "configure:17683: checking if more special flags are required for pthreads" >&5
17683 flag=no
17684 case "${host}" in
17685 *-aix* | *-freebsd*)
17686 flag="-D_THREAD_SAFE"
17687 ;;
17688 *solaris* | alpha*-osf*)
17689 flag="-D_REENTRANT"
17690 ;;
17691 esac
17692 echo "$ac_t""${flag}" 1>&6
17693 if test "x$flag" != xno; then
17694 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
17695 fi
17696
17697 if test "x$THREADS_CFLAGS" != "x"; then
17698 CFLAGS="$CFLAGS $THREADS_CFLAGS"
17699 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17700 fi
17701 fi
17702 fi
17703
17704 if test "$wxUSE_THREADS" = "yes" ; then
17705 for ac_func in thr_setconcurrency
17706 do
17707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17708 echo "configure:17709: checking for $ac_func" >&5
17709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17710 echo $ac_n "(cached) $ac_c" 1>&6
17711 else
17712 cat > conftest.$ac_ext <<EOF
17713 #line 17714 "configure"
17714 #include "confdefs.h"
17715 /* System header to define __stub macros and hopefully few prototypes,
17716 which can conflict with char $ac_func(); below. */
17717 #include <assert.h>
17718 /* Override any gcc2 internal prototype to avoid an error. */
17719 /* We use char because int might match the return type of a gcc2
17720 builtin and then its argument prototype would still apply. */
17721 char $ac_func();
17722
17723 int main() {
17724
17725 /* The GNU C library defines this for functions which it implements
17726 to always fail with ENOSYS. Some functions are actually named
17727 something starting with __ and the normal name is an alias. */
17728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17729 choke me
17730 #else
17731 $ac_func();
17732 #endif
17733
17734 ; return 0; }
17735 EOF
17736 if { (eval echo configure:17737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17737 rm -rf conftest*
17738 eval "ac_cv_func_$ac_func=yes"
17739 else
17740 echo "configure: failed program was:" >&5
17741 cat conftest.$ac_ext >&5
17742 rm -rf conftest*
17743 eval "ac_cv_func_$ac_func=no"
17744 fi
17745 rm -f conftest*
17746 fi
17747
17748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17749 echo "$ac_t""yes" 1>&6
17750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17751 cat >> confdefs.h <<EOF
17752 #define $ac_tr_func 1
17753 EOF
17754
17755 else
17756 echo "$ac_t""no" 1>&6
17757 fi
17758 done
17759
17760
17761 for ac_hdr in sched.h
17762 do
17763 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17765 echo "configure:17766: checking for $ac_hdr" >&5
17766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17767 echo $ac_n "(cached) $ac_c" 1>&6
17768 else
17769 cat > conftest.$ac_ext <<EOF
17770 #line 17771 "configure"
17771 #include "confdefs.h"
17772 #include <$ac_hdr>
17773 EOF
17774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17775 { (eval echo configure:17776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17777 if test -z "$ac_err"; then
17778 rm -rf conftest*
17779 eval "ac_cv_header_$ac_safe=yes"
17780 else
17781 echo "$ac_err" >&5
17782 echo "configure: failed program was:" >&5
17783 cat conftest.$ac_ext >&5
17784 rm -rf conftest*
17785 eval "ac_cv_header_$ac_safe=no"
17786 fi
17787 rm -f conftest*
17788 fi
17789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17790 echo "$ac_t""yes" 1>&6
17791 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17792 cat >> confdefs.h <<EOF
17793 #define $ac_tr_hdr 1
17794 EOF
17795
17796 else
17797 echo "$ac_t""no" 1>&6
17798 fi
17799 done
17800
17801 if test "$ac_cv_header_sched_h" = "yes"; then
17802 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
17803 echo "configure:17804: checking for sched_yield" >&5
17804 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
17805 echo $ac_n "(cached) $ac_c" 1>&6
17806 else
17807 cat > conftest.$ac_ext <<EOF
17808 #line 17809 "configure"
17809 #include "confdefs.h"
17810 /* System header to define __stub macros and hopefully few prototypes,
17811 which can conflict with char sched_yield(); below. */
17812 #include <assert.h>
17813 /* Override any gcc2 internal prototype to avoid an error. */
17814 /* We use char because int might match the return type of a gcc2
17815 builtin and then its argument prototype would still apply. */
17816 char sched_yield();
17817
17818 int main() {
17819
17820 /* The GNU C library defines this for functions which it implements
17821 to always fail with ENOSYS. Some functions are actually named
17822 something starting with __ and the normal name is an alias. */
17823 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17824 choke me
17825 #else
17826 sched_yield();
17827 #endif
17828
17829 ; return 0; }
17830 EOF
17831 if { (eval echo configure:17832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17832 rm -rf conftest*
17833 eval "ac_cv_func_sched_yield=yes"
17834 else
17835 echo "configure: failed program was:" >&5
17836 cat conftest.$ac_ext >&5
17837 rm -rf conftest*
17838 eval "ac_cv_func_sched_yield=no"
17839 fi
17840 rm -f conftest*
17841 fi
17842
17843 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
17844 echo "$ac_t""yes" 1>&6
17845 cat >> confdefs.h <<\EOF
17846 #define HAVE_SCHED_YIELD 1
17847 EOF
17848
17849 else
17850 echo "$ac_t""no" 1>&6
17851
17852 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17853 echo "configure:17854: checking for sched_yield in -lposix4" >&5
17854 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17856 echo $ac_n "(cached) $ac_c" 1>&6
17857 else
17858 ac_save_LIBS="$LIBS"
17859 LIBS="-lposix4 $LIBS"
17860 cat > conftest.$ac_ext <<EOF
17861 #line 17862 "configure"
17862 #include "confdefs.h"
17863 /* Override any gcc2 internal prototype to avoid an error. */
17864 /* We use char because int might match the return type of a gcc2
17865 builtin and then its argument prototype would still apply. */
17866 char sched_yield();
17867
17868 int main() {
17869 sched_yield()
17870 ; return 0; }
17871 EOF
17872 if { (eval echo configure:17873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17873 rm -rf conftest*
17874 eval "ac_cv_lib_$ac_lib_var=yes"
17875 else
17876 echo "configure: failed program was:" >&5
17877 cat conftest.$ac_ext >&5
17878 rm -rf conftest*
17879 eval "ac_cv_lib_$ac_lib_var=no"
17880 fi
17881 rm -f conftest*
17882 LIBS="$ac_save_LIBS"
17883
17884 fi
17885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17886 echo "$ac_t""yes" 1>&6
17887 cat >> confdefs.h <<\EOF
17888 #define HAVE_SCHED_YIELD 1
17889 EOF
17890 POSIX4_LINK=" -lposix4"
17891 else
17892 echo "$ac_t""no" 1>&6
17893 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17894
17895 fi
17896
17897
17898
17899 fi
17900
17901 fi
17902
17903 HAVE_PRIOR_FUNCS=0
17904 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
17905 echo "configure:17906: checking for pthread_attr_getschedpolicy" >&5
17906 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
17907 echo $ac_n "(cached) $ac_c" 1>&6
17908 else
17909 cat > conftest.$ac_ext <<EOF
17910 #line 17911 "configure"
17911 #include "confdefs.h"
17912 /* System header to define __stub macros and hopefully few prototypes,
17913 which can conflict with char pthread_attr_getschedpolicy(); below. */
17914 #include <assert.h>
17915 /* Override any gcc2 internal prototype to avoid an error. */
17916 /* We use char because int might match the return type of a gcc2
17917 builtin and then its argument prototype would still apply. */
17918 char pthread_attr_getschedpolicy();
17919
17920 int main() {
17921
17922 /* The GNU C library defines this for functions which it implements
17923 to always fail with ENOSYS. Some functions are actually named
17924 something starting with __ and the normal name is an alias. */
17925 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17926 choke me
17927 #else
17928 pthread_attr_getschedpolicy();
17929 #endif
17930
17931 ; return 0; }
17932 EOF
17933 if { (eval echo configure:17934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17934 rm -rf conftest*
17935 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
17936 else
17937 echo "configure: failed program was:" >&5
17938 cat conftest.$ac_ext >&5
17939 rm -rf conftest*
17940 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
17941 fi
17942 rm -f conftest*
17943 fi
17944
17945 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
17946 echo "$ac_t""yes" 1>&6
17947 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
17948 echo "configure:17949: checking for pthread_attr_setschedparam" >&5
17949 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
17950 echo $ac_n "(cached) $ac_c" 1>&6
17951 else
17952 cat > conftest.$ac_ext <<EOF
17953 #line 17954 "configure"
17954 #include "confdefs.h"
17955 /* System header to define __stub macros and hopefully few prototypes,
17956 which can conflict with char pthread_attr_setschedparam(); below. */
17957 #include <assert.h>
17958 /* Override any gcc2 internal prototype to avoid an error. */
17959 /* We use char because int might match the return type of a gcc2
17960 builtin and then its argument prototype would still apply. */
17961 char pthread_attr_setschedparam();
17962
17963 int main() {
17964
17965 /* The GNU C library defines this for functions which it implements
17966 to always fail with ENOSYS. Some functions are actually named
17967 something starting with __ and the normal name is an alias. */
17968 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17969 choke me
17970 #else
17971 pthread_attr_setschedparam();
17972 #endif
17973
17974 ; return 0; }
17975 EOF
17976 if { (eval echo configure:17977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17977 rm -rf conftest*
17978 eval "ac_cv_func_pthread_attr_setschedparam=yes"
17979 else
17980 echo "configure: failed program was:" >&5
17981 cat conftest.$ac_ext >&5
17982 rm -rf conftest*
17983 eval "ac_cv_func_pthread_attr_setschedparam=no"
17984 fi
17985 rm -f conftest*
17986 fi
17987
17988 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
17989 echo "$ac_t""yes" 1>&6
17990 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
17991 echo "configure:17992: checking for sched_get_priority_max" >&5
17992 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
17993 echo $ac_n "(cached) $ac_c" 1>&6
17994 else
17995 cat > conftest.$ac_ext <<EOF
17996 #line 17997 "configure"
17997 #include "confdefs.h"
17998 /* System header to define __stub macros and hopefully few prototypes
17999 else
18000 echo "$ac_t""no" 1>&6
18001 which can conflict with char sched_get_priority_max(); below. */
18002 #include <assert.h>
18003 /* Override any gcc2 internal prototype to avoid an error. */
18004 /* We use char because int might match the return type of a gcc2
18005 builtin and then its argument prototype would still apply. */
18006 char sched_get_priority_max();
18007
18008 int main() {
18009
18010 /* The GNU C library defines this for functions which it implements
18011 to always fail with ENOSYS. Some functions are actually named
18012 something starting with __ and the normal name is an alias. */
18013 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18014 choke me
18015 #else
18016 sched_get_priority_max();
18017 #endif
18018
18019 ; return 0; }
18020 EOF
18021 if { (eval echo configure:18022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18022 rm -rf conftest*
18023 eval "ac_cv_func_sched_get_priority_max=yes"
18024 else
18025 echo "configure: failed program was:" >&5
18026 cat conftest.$ac_ext >&5
18027 rm -rf conftest*
18028 eval "ac_cv_func_sched_get_priority_max=no"
18029 fi
18030 rm -f conftest*
18031 fi
18032
18033 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18034 echo "$ac_t""yes" 1>&6
18035 HAVE_PRIOR_FUNCS=1
18036 else
18037 echo "$ac_t""no" 1>&6
18038 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
18039 echo "configure:18040: checking for sched_get_priority_max in -lposix4" >&5
18040 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18042 echo $ac_n "(cached) $ac_c" 1>&6
18043 else
18044 ac_save_LIBS="$LIBS"
18045 LIBS="-lposix4 $LIBS"
18046 cat > conftest.$ac_ext <<EOF
18047 #line 18048 "configure"
18048 #include "confdefs.h"
18049 /* Override any gcc2 internal prototype to avoid an error. */
18050 /* We use char because int might match the return type of a gcc2
18051 builtin and then its argument prototype would still apply. */
18052 char sched_get_priority_max();
18053
18054 int main() {
18055 sched_get_priority_max()
18056 ; return 0; }
18057 EOF
18058 if { (eval echo configure:18059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18059 rm -rf conftest*
18060 eval "ac_cv_lib_$ac_lib_var=yes"
18061 else
18062 echo "configure: failed program was:" >&5
18063 cat conftest.$ac_ext >&5
18064 rm -rf conftest*
18065 eval "ac_cv_lib_$ac_lib_var=no"
18066 fi
18067 rm -f conftest*
18068 LIBS="$ac_save_LIBS"
18069
18070 fi
18071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18072 echo "$ac_t""yes" 1>&6
18073
18074 HAVE_PRIOR_FUNCS=1
18075 POSIX4_LINK=" -lposix4"
18076
18077 else
18078 echo "$ac_t""no" 1>&6
18079 fi
18080
18081
18082 fi
18083
18084
18085 else
18086 echo "$ac_t""no" 1>&6
18087 fi
18088
18089
18090 fi
18091
18092
18093 if test "$HAVE_PRIOR_FUNCS" = 1; then
18094 cat >> confdefs.h <<\EOF
18095 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
18096 EOF
18097
18098 else
18099 echo "configure: warning: Setting thread priority will not work" 1>&2
18100 fi
18101
18102 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
18103 echo "configure:18104: checking for pthread_cancel" >&5
18104 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
18105 echo $ac_n "(cached) $ac_c" 1>&6
18106 else
18107 cat > conftest.$ac_ext <<EOF
18108 #line 18109 "configure"
18109 #include "confdefs.h"
18110 /* System header to define __stub macros and hopefully few prototypes,
18111 which can conflict with char pthread_cancel(); below. */
18112 #include <assert.h>
18113 /* Override any gcc2 internal prototype to avoid an error. */
18114 /* We use char because int might match the return type of a gcc2
18115 builtin and then its argument prototype would still apply. */
18116 char pthread_cancel();
18117
18118 int main() {
18119
18120 /* The GNU C library defines this for functions which it implements
18121 to always fail with ENOSYS. Some functions are actually named
18122 something starting with __ and the normal name is an alias. */
18123 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18124 choke me
18125 #else
18126 pthread_cancel();
18127 #endif
18128
18129 ; return 0; }
18130 EOF
18131 if { (eval echo configure:18132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18132 rm -rf conftest*
18133 eval "ac_cv_func_pthread_cancel=yes"
18134 else
18135 echo "configure: failed program was:" >&5
18136 cat conftest.$ac_ext >&5
18137 rm -rf conftest*
18138 eval "ac_cv_func_pthread_cancel=no"
18139 fi
18140 rm -f conftest*
18141 fi
18142
18143 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
18144 echo "$ac_t""yes" 1>&6
18145 cat >> confdefs.h <<\EOF
18146 #define HAVE_PTHREAD_CANCEL 1
18147 EOF
18148
18149 else
18150 echo "$ac_t""no" 1>&6
18151 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
18152 fi
18153
18154
18155 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
18156 echo "configure:18157: checking for pthread_cleanup_push/pop" >&5
18157 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18158 echo $ac_n "(cached) $ac_c" 1>&6
18159 else
18160
18161 cat > conftest.$ac_ext <<EOF
18162 #line 18163 "configure"
18163 #include "confdefs.h"
18164 #include <pthread.h>
18165 int main() {
18166
18167 pthread_cleanup_push(NULL, NULL);
18168 pthread_cleanup_pop(0);
18169
18170 ; return 0; }
18171 EOF
18172 if { (eval echo configure:18173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18173 rm -rf conftest*
18174
18175 wx_cv_func_pthread_cleanup_push=yes
18176
18177 else
18178 echo "configure: failed program was:" >&5
18179 cat conftest.$ac_ext >&5
18180 rm -rf conftest*
18181
18182 wx_cv_func_pthread_cleanup_push=no
18183
18184 fi
18185 rm -f conftest*
18186
18187 fi
18188
18189 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18190
18191 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18192 cat >> confdefs.h <<\EOF
18193 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
18194 EOF
18195
18196 fi
18197
18198
18199
18200 We define this already somewhere else
18201 if test "x$wx_cv_lib_glibc21" = "xyes"; then
18202 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
18203 fi
18204
18205 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
18206 echo "configure:18207: checking for pthread_mutexattr_t" >&5
18207 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18208 echo $ac_n "(cached) $ac_c" 1>&6
18209 else
18210
18211 cat > conftest.$ac_ext <<EOF
18212 #line 18213 "configure"
18213 #include "confdefs.h"
18214 #include <pthread.h>
18215 int main() {
18216
18217 pthread_mutexattr_t attr;
18218 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18219
18220 ; return 0; }
18221 EOF
18222 if { (eval echo configure:18223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18223 rm -rf conftest*
18224
18225 wx_cv_type_pthread_mutexattr_t=yes
18226
18227 else
18228 echo "configure: failed program was:" >&5
18229 cat conftest.$ac_ext >&5
18230 rm -rf conftest*
18231
18232 wx_cv_type_pthread_mutexattr_t=no
18233
18234
18235 fi
18236 rm -f conftest*
18237
18238 fi
18239
18240 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18241
18242 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18243 cat >> confdefs.h <<\EOF
18244 #define HAVE_PTHREAD_MUTEXATTR_T 1
18245 EOF
18246
18247 else
18248 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
18249 echo "configure:18250: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
18250 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18251 echo $ac_n "(cached) $ac_c" 1>&6
18252 else
18253
18254 cat > conftest.$ac_ext <<EOF
18255 #line 18256 "configure"
18256 #include "confdefs.h"
18257 #include <pthread.h>
18258 int main() {
18259
18260 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18261
18262 ; return 0; }
18263 EOF
18264 if { (eval echo configure:18265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18265 rm -rf conftest*
18266
18267 wx_cv_type_pthread_rec_mutex_init=yes
18268
18269 else
18270 echo "configure: failed program was:" >&5
18271 cat conftest.$ac_ext >&5
18272 rm -rf conftest*
18273
18274 wx_cv_type_pthread_rec_mutex_init=no
18275
18276
18277 fi
18278 rm -f conftest*
18279
18280 fi
18281
18282 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
18283 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18284 cat >> confdefs.h <<\EOF
18285 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18286 EOF
18287
18288 else
18289 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18290 fi
18291 fi
18292 fi
18293
18294 fi
18295
18296 if test "$wxUSE_THREADS" = "yes"; then
18297 cat >> confdefs.h <<\EOF
18298 #define wxUSE_THREADS 1
18299 EOF
18300
18301
18302 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
18303 else
18304 if test "$ac_cv_func_strtok_r" = "yes"; then
18305 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
18306 echo "configure:18307: checking if -D_REENTRANT is needed" >&5
18307 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18308 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18309 echo "$ac_t""yes" 1>&6
18310 else
18311 echo "$ac_t""no" 1>&6
18312 fi
18313 fi
18314 fi
18315
18316 if test "$WXGTK20" = 1 ; then
18317 cat >> confdefs.h <<EOF
18318 #define __WXGTK20__ $WXGTK20
18319 EOF
18320
18321 WXGTK12=1
18322 fi
18323
18324 if test "$WXGTK12" = 1 ; then
18325 cat >> confdefs.h <<EOF
18326 #define __WXGTK12__ $WXGTK12
18327 EOF
18328
18329 fi
18330
18331 if test "$WXGTK127" = 1 ; then
18332 cat >> confdefs.h <<EOF
18333 #define __WXGTK127__ $WXGTK127
18334 EOF
18335
18336 fi
18337
18338 WXDEBUG=
18339
18340 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18341 WXDEBUG="-g"
18342 wxUSE_OPTIMISE=no
18343 fi
18344
18345 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18346 wxUSE_DEBUG_INFO=yes
18347 WXDEBUG="-ggdb"
18348 fi
18349
18350 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18351 cat >> confdefs.h <<\EOF
18352 #define WXDEBUG 1
18353 EOF
18354
18355 WXDEBUG_DEFINE="-D__WXDEBUG__"
18356 else
18357 if test "$wxUSE_GTK" = 1 ; then
18358 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18359 fi
18360 fi
18361
18362 if test "$wxUSE_MEM_TRACING" = "yes" ; then
18363 cat >> confdefs.h <<\EOF
18364 #define wxUSE_MEMORY_TRACING 1
18365 EOF
18366
18367 cat >> confdefs.h <<\EOF
18368 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18369 EOF
18370
18371 cat >> confdefs.h <<\EOF
18372 #define wxUSE_DEBUG_NEW_ALWAYS 1
18373 EOF
18374
18375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18376 fi
18377
18378 if test "$wxUSE_DMALLOC" = "yes" ; then
18379 DMALLOC_LIBS="-ldmalloc"
18380 fi
18381
18382 PROFILE=
18383 if test "$wxUSE_PROFILE" = "yes" ; then
18384 PROFILE=" -pg"
18385 fi
18386
18387 CODE_GEN_FLAGS=
18388 if test "$GCC" = "yes" ; then
18389 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -D_GNU_SOURCE"
18390 fi
18391
18392 CODE_GEN_FLAGS_CXX=
18393 if test "$GCC" = "yes" ; then
18394 if test "$wxUSE_NO_RTTI" = "yes" ; then
18395 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
18396 fi
18397 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18398 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18399 fi
18400 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18401 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18402 fi
18403 if test "$USE_WIN32" = 1 ; then
18404 # I'm not even really sure what this was ever added to solve,
18405 # but someone added it for mingw native builds, so I guess
18406 # they had a reason, right??
18407 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18408 fi
18409
18410 case "${host}" in
18411 powerpc*-*-aix* )
18412 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18413 ;;
18414 esac
18415 fi
18416
18417 if test "$wxUSE_OPTIMISE" = "no" ; then
18418 OPTIMISE=
18419 else
18420 if test "$GCC" = yes ; then
18421 OPTIMISE="-O2"
18422 case "${host}" in
18423 i586-*-*|i686-*-* )
18424 OPTIMISE="${OPTIMISE} "
18425 ;;
18426 esac
18427 else
18428 OPTIMISE="-O"
18429 fi
18430 fi
18431
18432 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18433 cat >> confdefs.h <<\EOF
18434 #define WXWIN_COMPATIBILITY_2 1
18435 EOF
18436
18437
18438 WXWIN_COMPATIBILITY_2_2="yes"
18439 fi
18440
18441 if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
18442 cat >> confdefs.h <<\EOF
18443 #define WXWIN_COMPATIBILITY_2_2 1
18444 EOF
18445
18446 fi
18447
18448
18449 if test "$wxUSE_GUI" = "yes"; then
18450 cat >> confdefs.h <<\EOF
18451 #define wxUSE_GUI 1
18452 EOF
18453
18454
18455 else
18456 cat >> confdefs.h <<\EOF
18457 #define wxUSE_NOGUI 1
18458 EOF
18459
18460 fi
18461
18462
18463 if test "$wxUSE_UNIX" = "yes"; then
18464 cat >> confdefs.h <<\EOF
18465 #define wxUSE_UNIX 1
18466 EOF
18467
18468 fi
18469
18470
18471 if test "$wxUSE_APPLE_IEEE" = "yes"; then
18472 cat >> confdefs.h <<\EOF
18473 #define wxUSE_APPLE_IEEE 1
18474 EOF
18475
18476 fi
18477
18478 if test "$wxUSE_TIMER" = "yes"; then
18479 cat >> confdefs.h <<\EOF
18480 #define wxUSE_TIMER 1
18481 EOF
18482
18483 fi
18484
18485 if test "$wxUSE_WAVE" = "yes"; then
18486 cat >> confdefs.h <<\EOF
18487 #define wxUSE_WAVE 1
18488 EOF
18489
18490 fi
18491
18492 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18493 cat >> confdefs.h <<\EOF
18494 #define wxUSE_CMDLINE_PARSER 1
18495 EOF
18496
18497 fi
18498
18499 if test "$wxUSE_STOPWATCH" = "yes"; then
18500 cat >> confdefs.h <<\EOF
18501 #define wxUSE_STOPWATCH 1
18502 EOF
18503
18504 fi
18505
18506 if test "$wxUSE_DATETIME" = "yes"; then
18507 cat >> confdefs.h <<\EOF
18508 #define wxUSE_DATETIME 1
18509 EOF
18510
18511 fi
18512
18513 if test "$wxUSE_TIMEDATE" = "yes"; then
18514 cat >> confdefs.h <<\EOF
18515 #define wxUSE_TIMEDATE 1
18516 EOF
18517
18518 fi
18519
18520 if test "$wxUSE_FILE" = "yes"; then
18521 cat >> confdefs.h <<\EOF
18522 #define wxUSE_FILE 1
18523 EOF
18524
18525 fi
18526
18527 if test "$wxUSE_FFILE" = "yes"; then
18528 cat >> confdefs.h <<\EOF
18529 #define wxUSE_FFILE 1
18530 EOF
18531
18532 fi
18533
18534 if test "$wxUSE_FILESYSTEM" = "yes"; then
18535 cat >> confdefs.h <<\EOF
18536 #define wxUSE_FILESYSTEM 1
18537 EOF
18538
18539 fi
18540
18541 if test "$wxUSE_FS_INET" = "yes"; then
18542 cat >> confdefs.h <<\EOF
18543 #define wxUSE_FS_INET 1
18544 EOF
18545
18546 fi
18547
18548 if test "$wxUSE_FS_ZIP" = "yes"; then
18549 cat >> confdefs.h <<\EOF
18550 #define wxUSE_FS_ZIP 1
18551 EOF
18552
18553 fi
18554
18555 if test "$wxUSE_ZIPSTREAM" = "yes"; then
18556 cat >> confdefs.h <<\EOF
18557 #define wxUSE_ZIPSTREAM 1
18558 EOF
18559
18560 fi
18561
18562 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18563 cat >> confdefs.h <<\EOF
18564 #define wxUSE_ON_FATAL_EXCEPTION 1
18565 EOF
18566
18567 fi
18568
18569 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18570 cat >> confdefs.h <<\EOF
18571 #define wxUSE_SNGLINST_CHECKER 1
18572 EOF
18573
18574 fi
18575
18576 if test "$wxUSE_BUSYINFO" = "yes"; then
18577 cat >> confdefs.h <<\EOF
18578 #define wxUSE_BUSYINFO 1
18579 EOF
18580
18581 fi
18582
18583 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18584 cat >> confdefs.h <<\EOF
18585 #define wxUSE_STD_IOSTREAM 1
18586 EOF
18587
18588 fi
18589
18590 if test "$wxUSE_TEXTBUFFER" = "yes"; then
18591 cat >> confdefs.h <<\EOF
18592 #define wxUSE_TEXTBUFFER 1
18593 EOF
18594
18595 fi
18596
18597 if test "$wxUSE_TEXTFILE" = "yes"; then
18598 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18599 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18600 else
18601 cat >> confdefs.h <<\EOF
18602 #define wxUSE_TEXTFILE 1
18603 EOF
18604
18605 fi
18606 fi
18607
18608 if test "$wxUSE_CONFIG" = "yes" ; then
18609 if test "$wxUSE_TEXTFILE" != "yes"; then
18610 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18611 else
18612 cat >> confdefs.h <<\EOF
18613 #define wxUSE_CONFIG 1
18614 EOF
18615
18616 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18617 fi
18618 fi
18619
18620 if test "$wxUSE_INTL" = "yes" ; then
18621 if test "$wxUSE_FILE" != "yes"; then
18622 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18623 else
18624 cat >> confdefs.h <<\EOF
18625 #define wxUSE_INTL 1
18626 EOF
18627
18628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18629 GUIDIST="$GUIDIST INTL_DIST"
18630 fi
18631 fi
18632
18633 if test "$wxUSE_LOG" = "yes"; then
18634 cat >> confdefs.h <<\EOF
18635 #define wxUSE_LOG 1
18636 EOF
18637
18638
18639 if test "$wxUSE_LOGGUI" = "yes"; then
18640 cat >> confdefs.h <<\EOF
18641 #define wxUSE_LOGGUI 1
18642 EOF
18643
18644 fi
18645
18646 if test "$wxUSE_LOGWINDOW" = "yes"; then
18647 cat >> confdefs.h <<\EOF
18648 #define wxUSE_LOGWINDOW 1
18649 EOF
18650
18651 fi
18652
18653 if test "$wxUSE_LOGDIALOG" = "yes"; then
18654 cat >> confdefs.h <<\EOF
18655 #define wxUSE_LOG_DIALOG 1
18656 EOF
18657
18658 fi
18659 fi
18660
18661 if test "$wxUSE_LONGLONG" = "yes"; then
18662 cat >> confdefs.h <<\EOF
18663 #define wxUSE_LONGLONG 1
18664 EOF
18665
18666 fi
18667
18668 if test "$wxUSE_GEOMETRY" = "yes"; then
18669 cat >> confdefs.h <<\EOF
18670 #define wxUSE_GEOMETRY 1
18671 EOF
18672
18673 fi
18674
18675 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18676 cat >> confdefs.h <<\EOF
18677 #define wxUSE_DIALUP_MANAGER 1
18678 EOF
18679
18680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18681 fi
18682
18683 if test "$wxUSE_STREAMS" = "yes" ; then
18684 cat >> confdefs.h <<\EOF
18685 #define wxUSE_STREAMS 1
18686 EOF
18687
18688 fi
18689
18690
18691 if test "$wxUSE_DATETIME" = "yes"; then
18692 for ac_func in strptime
18693 do
18694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18695 echo "configure:18696: checking for $ac_func" >&5
18696 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18697 echo $ac_n "(cached) $ac_c" 1>&6
18698 else
18699 cat > conftest.$ac_ext <<EOF
18700 #line 18701 "configure"
18701 #include "confdefs.h"
18702 /* System header to define __stub macros and hopefully few prototypes,
18703 which can conflict with char $ac_func(); below. */
18704 #include <assert.h>
18705 /* Override any gcc2 internal prototype to avoid an error. */
18706 /* We use char because int might match the return type of a gcc2
18707 builtin and then its argument prototype would still apply. */
18708 char $ac_func();
18709
18710 int main() {
18711
18712 /* The GNU C library defines this for functions which it implements
18713 to always fail with ENOSYS. Some functions are actually named
18714 something starting with __ and the normal name is an alias. */
18715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18716 choke me
18717 #else
18718 $ac_func();
18719 #endif
18720
18721 ; return 0; }
18722 EOF
18723 if { (eval echo configure:18724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18724 rm -rf conftest*
18725 eval "ac_cv_func_$ac_func=yes"
18726 else
18727 echo "configure: failed program was:" >&5
18728 cat conftest.$ac_ext >&5
18729 rm -rf conftest*
18730 eval "ac_cv_func_$ac_func=no"
18731 fi
18732 rm -f conftest*
18733 fi
18734
18735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18736 echo "$ac_t""yes" 1>&6
18737 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18738 cat >> confdefs.h <<EOF
18739 #define $ac_tr_func 1
18740 EOF
18741
18742 else
18743 echo "$ac_t""no" 1>&6
18744 fi
18745 done
18746
18747
18748 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18749 echo "configure:18750: checking for timezone variable in <time.h>" >&5
18750 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18751 echo $ac_n "(cached) $ac_c" 1>&6
18752 else
18753
18754 cat > conftest.$ac_ext <<EOF
18755 #line 18756 "configure"
18756 #include "confdefs.h"
18757
18758 #include <time.h>
18759
18760 int main() {
18761
18762 int tz;
18763 tz = timezone;
18764
18765 ; return 0; }
18766 EOF
18767 if { (eval echo configure:18768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18768 rm -rf conftest*
18769
18770 wx_cv_var_timezone=timezone
18771
18772 else
18773 echo "configure: failed program was:" >&5
18774 cat conftest.$ac_ext >&5
18775 rm -rf conftest*
18776
18777 cat > conftest.$ac_ext <<EOF
18778 #line 18779 "configure"
18779 #include "confdefs.h"
18780
18781 #include <time.h>
18782
18783 int main() {
18784
18785 int tz;
18786 tz = _timezone;
18787
18788 ; return 0; }
18789 EOF
18790 if { (eval echo configure:18791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18791 rm -rf conftest*
18792
18793 wx_cv_var_timezone=_timezone
18794
18795 else
18796 echo "configure: failed program was:" >&5
18797 cat conftest.$ac_ext >&5
18798 rm -rf conftest*
18799
18800 cat > conftest.$ac_ext <<EOF
18801 #line 18802 "configure"
18802 #include "confdefs.h"
18803
18804 #include <time.h>
18805
18806 int main() {
18807
18808 int tz;
18809 tz = __timezone;
18810
18811 ; return 0; }
18812 EOF
18813 if { (eval echo configure:18814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18814 rm -rf conftest*
18815
18816 wx_cv_var_timezone=__timezone
18817
18818 else
18819 echo "configure: failed program was:" >&5
18820 cat conftest.$ac_ext >&5
18821 rm -rf conftest*
18822
18823 if test "$USE_DOS" = 0 ; then
18824 echo "configure: warning: no timezone variable" 1>&2
18825 fi
18826
18827
18828 fi
18829 rm -f conftest*
18830
18831
18832 fi
18833 rm -f conftest*
18834
18835
18836 fi
18837 rm -f conftest*
18838
18839
18840 fi
18841
18842 echo "$ac_t""$wx_cv_var_timezone" 1>&6
18843
18844 if test "x$wx_cv_var_timezone" != x ; then
18845 cat >> confdefs.h <<EOF
18846 #define WX_TIMEZONE $wx_cv_var_timezone
18847 EOF
18848
18849 fi
18850
18851 for ac_func in localtime
18852 do
18853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18854 echo "configure:18855: checking for $ac_func" >&5
18855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18856 echo $ac_n "(cached) $ac_c" 1>&6
18857 else
18858 cat > conftest.$ac_ext <<EOF
18859 #line 18860 "configure"
18860 #include "confdefs.h"
18861 /* System header to define __stub macros and hopefully few prototypes,
18862 which can conflict with char $ac_func(); below. */
18863 #include <assert.h>
18864 /* Override any gcc2 internal prototype to avoid an error. */
18865 /* We use char because int might match the return type of a gcc2
18866 builtin and then its argument prototype would still apply. */
18867 char $ac_func();
18868
18869 int main() {
18870
18871 /* The GNU C library defines this for functions which it implements
18872 to always fail with ENOSYS. Some functions are actually named
18873 something starting with __ and the normal name is an alias. */
18874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18875 choke me
18876 #else
18877 $ac_func();
18878 #endif
18879
18880 ; return 0; }
18881 EOF
18882 if { (eval echo configure:18883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18883 rm -rf conftest*
18884 eval "ac_cv_func_$ac_func=yes"
18885 else
18886 echo "configure: failed program was:" >&5
18887 cat conftest.$ac_ext >&5
18888 rm -rf conftest*
18889 eval "ac_cv_func_$ac_func=no"
18890 fi
18891 rm -f conftest*
18892 fi
18893
18894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18895 echo "$ac_t""yes" 1>&6
18896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18897 cat >> confdefs.h <<EOF
18898 #define $ac_tr_func 1
18899 EOF
18900
18901 else
18902 echo "$ac_t""no" 1>&6
18903 fi
18904 done
18905
18906
18907 if test "$ac_cv_func_localtime" = "yes"; then
18908 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18909 echo "configure:18910: checking for tm_gmtoff in struct tm" >&5
18910 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18911 echo $ac_n "(cached) $ac_c" 1>&6
18912 else
18913
18914 cat > conftest.$ac_ext <<EOF
18915 #line 18916 "configure"
18916 #include "confdefs.h"
18917
18918 #include <time.h>
18919
18920 int main() {
18921
18922 struct tm tm;
18923 tm.tm_gmtoff++;
18924
18925 ; return 0; }
18926 EOF
18927 if { (eval echo configure:18928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18928 rm -rf conftest*
18929
18930 wx_cv_struct_tm_has_gmtoff=yes
18931
18932 else
18933 echo "configure: failed program was:" >&5
18934 cat conftest.$ac_ext >&5
18935 rm -rf conftest*
18936 wx_cv_struct_tm_has_gmtoff=no
18937
18938 fi
18939 rm -f conftest*
18940
18941 fi
18942
18943 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18944 fi
18945
18946 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18947 cat >> confdefs.h <<\EOF
18948 #define WX_GMTOFF_IN_TM 1
18949 EOF
18950
18951 fi
18952
18953 for ac_func in gettimeofday ftime
18954 do
18955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18956 echo "configure:18957: checking for $ac_func" >&5
18957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18958 echo $ac_n "(cached) $ac_c" 1>&6
18959 else
18960 cat > conftest.$ac_ext <<EOF
18961 #line 18962 "configure"
18962 #include "confdefs.h"
18963 /* System header to define __stub macros and hopefully few prototypes,
18964 which can conflict with char $ac_func(); below. */
18965 #include <assert.h>
18966 /* Override any gcc2 internal prototype to avoid an error. */
18967 /* We use char because int might match the return type of a gcc2
18968 builtin and then its argument prototype would still apply. */
18969 char $ac_func();
18970
18971 int main() {
18972
18973 /* The GNU C library defines this for functions which it implements
18974 to always fail with ENOSYS. Some functions are actually named
18975 something starting with __ and the normal name is an alias. */
18976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18977 choke me
18978 #else
18979 $ac_func();
18980 #endif
18981
18982 ; return 0; }
18983 EOF
18984 if { (eval echo configure:18985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18985 rm -rf conftest*
18986 eval "ac_cv_func_$ac_func=yes"
18987 else
18988 echo "configure: failed program was:" >&5
18989 cat conftest.$ac_ext >&5
18990 rm -rf conftest*
18991 eval "ac_cv_func_$ac_func=no"
18992 fi
18993 rm -f conftest*
18994 fi
18995
18996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18997 echo "$ac_t""yes" 1>&6
18998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18999 cat >> confdefs.h <<EOF
19000 #define $ac_tr_func 1
19001 EOF
19002 break
19003 else
19004 echo "$ac_t""no" 1>&6
19005 fi
19006 done
19007
19008
19009 if test "$ac_cv_func_gettimeofday" = "yes"; then
19010 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
19011 echo "configure:19012: checking whether gettimeofday takes two arguments" >&5
19012 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19013 echo $ac_n "(cached) $ac_c" 1>&6
19014 else
19015
19016
19017 ac_ext=C
19018 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19019 ac_cpp='$CXXCPP $CPPFLAGS'
19020 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19021 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19022 cross_compiling=$ac_cv_prog_cxx_cross
19023
19024
19025 cat > conftest.$ac_ext <<EOF
19026 #line 19027 "configure"
19027 #include "confdefs.h"
19028
19029 #include <sys/time.h>
19030 #include <unistd.h>
19031
19032 int main() {
19033
19034 struct timeval tv;
19035 gettimeofday(&tv, NULL);
19036
19037 ; return 0; }
19038 EOF
19039 if { (eval echo configure:19040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19040 rm -rf conftest*
19041 wx_cv_func_gettimeofday_has_2_args=yes
19042 else
19043 echo "configure: failed program was:" >&5
19044 cat conftest.$ac_ext >&5
19045 rm -rf conftest*
19046 cat > conftest.$ac_ext <<EOF
19047 #line 19048 "configure"
19048 #include "confdefs.h"
19049
19050 #include <sys/time.h>
19051 #include <unistd.h>
19052
19053 int main() {
19054
19055 struct timeval tv;
19056 gettimeofday(&tv);
19057
19058 ; return 0; }
19059 EOF
19060 if { (eval echo configure:19061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19061 rm -rf conftest*
19062 wx_cv_func_gettimeofday_has_2_args=no
19063 else
19064 echo "configure: failed program was:" >&5
19065 cat conftest.$ac_ext >&5
19066 rm -rf conftest*
19067
19068 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
19069 wx_cv_func_gettimeofday_has_2_args=unknown
19070
19071
19072 fi
19073 rm -f conftest*
19074
19075 fi
19076 rm -f conftest*
19077 ac_ext=c
19078 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19079 ac_cpp='$CPP $CPPFLAGS'
19080 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19081 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19082 cross_compiling=$ac_cv_prog_cc_cross
19083
19084
19085 fi
19086
19087 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
19088
19089 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
19090 cat >> confdefs.h <<\EOF
19091 #define WX_GETTIMEOFDAY_NO_TZ 1
19092 EOF
19093
19094 fi
19095 fi
19096
19097 cat >> confdefs.h <<\EOF
19098 #define wxUSE_TIMEDATE 1
19099 EOF
19100
19101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
19102 fi
19103
19104
19105 if test "$wxUSE_SOCKETS" = "yes"; then
19106 if test "$wxUSE_X11" = "1"; then
19107 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
19108 wxUSE_SOCKETS="no"
19109 fi
19110
19111 if test "$wxUSE_MGL" = "1"; then
19112 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
19113 wxUSE_SOCKETS="no"
19114 fi
19115 fi
19116
19117 if test "$wxUSE_SOCKETS" = "yes"; then
19118 if test "$TOOLKIT" != "MSW"; then
19119 echo $ac_n "checking for socket""... $ac_c" 1>&6
19120 echo "configure:19121: checking for socket" >&5
19121 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19122 echo $ac_n "(cached) $ac_c" 1>&6
19123 else
19124 cat > conftest.$ac_ext <<EOF
19125 #line 19126 "configure"
19126 #include "confdefs.h"
19127 /* System header to define __stub macros and hopefully few prototypes,
19128 which can conflict with char socket(); below. */
19129 #include <assert.h>
19130 /* Override any gcc2 internal prototype to avoid an error. */
19131 /* We use char because int might match the return type of a gcc2
19132 builtin and then its argument prototype would still apply. */
19133 char socket();
19134
19135 int main() {
19136
19137 /* The GNU C library defines this for functions which it implements
19138 to always fail with ENOSYS. Some functions are actually named
19139 something starting with __ and the normal name is an alias. */
19140 #if defined (__stub_socket) || defined (__stub___socket)
19141 choke me
19142 #else
19143 socket();
19144 #endif
19145
19146 ; return 0; }
19147 EOF
19148 if { (eval echo configure:19149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19149 rm -rf conftest*
19150 eval "ac_cv_func_socket=yes"
19151 else
19152 echo "configure: failed program was:" >&5
19153 cat conftest.$ac_ext >&5
19154 rm -rf conftest*
19155 eval "ac_cv_func_socket=no"
19156 fi
19157 rm -f conftest*
19158 fi
19159
19160 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19161 echo "$ac_t""yes" 1>&6
19162 :
19163 else
19164 echo "$ac_t""no" 1>&6
19165 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
19166 echo "configure:19167: checking for socket in -lsocket" >&5
19167 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19169 echo $ac_n "(cached) $ac_c" 1>&6
19170 else
19171 ac_save_LIBS="$LIBS"
19172 LIBS="-lsocket $LIBS"
19173 cat > conftest.$ac_ext <<EOF
19174 #line 19175 "configure"
19175 #include "confdefs.h"
19176 /* Override any gcc2 internal prototype to avoid an error. */
19177 /* We use char because int might match the return type of a gcc2
19178 builtin and then its argument prototype would still apply. */
19179 char socket();
19180
19181 int main() {
19182 socket()
19183 ; return 0; }
19184 EOF
19185 if { (eval echo configure:19186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19186 rm -rf conftest*
19187 eval "ac_cv_lib_$ac_lib_var=yes"
19188 else
19189 echo "configure: failed program was:" >&5
19190 cat conftest.$ac_ext >&5
19191 rm -rf conftest*
19192 eval "ac_cv_lib_$ac_lib_var=no"
19193 fi
19194 rm -f conftest*
19195 LIBS="$ac_save_LIBS"
19196
19197 fi
19198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19199 echo "$ac_t""yes" 1>&6
19200 if test "$INET_LINK" != " -lsocket"; then
19201 INET_LINK="$INET_LINK -lsocket"
19202 fi
19203 else
19204 echo "$ac_t""no" 1>&6
19205
19206 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19207 wxUSE_SOCKETS=no
19208
19209
19210 fi
19211
19212
19213 fi
19214
19215 fi
19216 fi
19217
19218 if test "$wxUSE_SOCKETS" = "yes" ; then
19219 if test "$TOOLKIT" != "MSW"; then
19220 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
19221 echo "configure:19222: checking what is the type of the third argument of getsockname" >&5
19222 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19223 echo $ac_n "(cached) $ac_c" 1>&6
19224 else
19225
19226
19227 ac_ext=C
19228 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19229 ac_cpp='$CXXCPP $CPPFLAGS'
19230 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19231 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19232 cross_compiling=$ac_cv_prog_cxx_cross
19233
19234
19235 cat > conftest.$ac_ext <<EOF
19236 #line 19237 "configure"
19237 #include "confdefs.h"
19238
19239 #include <sys/types.h>
19240 #include <sys/socket.h>
19241
19242 int main() {
19243
19244 socklen_t len;
19245 getsockname(0, 0, &len);
19246
19247 ; return 0; }
19248 EOF
19249 if { (eval echo configure:19250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19250 rm -rf conftest*
19251 wx_cv_type_getsockname3=socklen_t
19252 else
19253 echo "configure: failed program was:" >&5
19254 cat conftest.$ac_ext >&5
19255 rm -rf conftest*
19256 cat > conftest.$ac_ext <<EOF
19257 #line 19258 "configure"
19258 #include "confdefs.h"
19259
19260 #include <sys/types.h>
19261 #include <sys/socket.h>
19262
19263 int main() {
19264
19265 size_t len;
19266 getsockname(0, 0, &len);
19267
19268 ; return 0; }
19269 EOF
19270 if { (eval echo configure:19271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19271 rm -rf conftest*
19272 wx_cv_type_getsockname3=size_t
19273 else
19274 echo "configure: failed program was:" >&5
19275 cat conftest.$ac_ext >&5
19276 rm -rf conftest*
19277 cat > conftest.$ac_ext <<EOF
19278 #line 19279 "configure"
19279 #include "confdefs.h"
19280
19281 #include <sys/types.h>
19282 #include <sys/socket.h>
19283
19284 int main() {
19285
19286 int len;
19287 getsockname(0, 0, &len);
19288
19289 ; return 0; }
19290 EOF
19291 if { (eval echo configure:19292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19292 rm -rf conftest*
19293 wx_cv_type_getsockname3=int
19294 else
19295 echo "configure: failed program was:" >&5
19296 cat conftest.$ac_ext >&5
19297 rm -rf conftest*
19298 wx_cv_type_getsockname3=unknown
19299
19300 fi
19301 rm -f conftest*
19302
19303 fi
19304 rm -f conftest*
19305
19306 fi
19307 rm -f conftest*
19308
19309 ac_ext=c
19310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19311 ac_cpp='$CPP $CPPFLAGS'
19312 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19313 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19314 cross_compiling=$ac_cv_prog_cc_cross
19315
19316
19317 fi
19318
19319 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
19320
19321 if test "$wx_cv_type_getsockname3" = "unknown"; then
19322 wxUSE_SOCKETS=no
19323 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19324 else
19325 cat >> confdefs.h <<EOF
19326 #define SOCKLEN_T $wx_cv_type_getsockname3
19327 EOF
19328
19329 fi
19330 fi
19331 fi
19332
19333 if test "$wxUSE_SOCKETS" = "yes" ; then
19334 cat >> confdefs.h <<\EOF
19335 #define wxUSE_SOCKETS 1
19336 EOF
19337
19338 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
19339 fi
19340
19341
19342 if test "$wxUSE_GUI" = "yes"; then
19343
19344 if test "$TOOLKIT" = "MAC"; then
19345 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19346 wxUSE_JOYSTICK=no
19347 fi
19348 if test "$TOOLKIT" = "MOTIF"; then
19349 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19350 wxUSE_JOYSTICK=no
19351 fi
19352 if test "$TOOLKIT" = "X11"; then
19353 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19354 wxUSE_JOYSTICK=no
19355 fi
19356
19357 if test "$TOOLKIT" != "MSW"; then
19358 if test "$wxUSE_JOYSTICK" = "yes"; then
19359 for ac_hdr in linux/joystick.h
19360 do
19361 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19362 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19363 echo "configure:19364: checking for $ac_hdr" >&5
19364 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19365 echo $ac_n "(cached) $ac_c" 1>&6
19366 else
19367 cat > conftest.$ac_ext <<EOF
19368 #line 19369 "configure"
19369 #include "confdefs.h"
19370 #include <$ac_hdr>
19371 EOF
19372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19373 { (eval echo configure:19374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19375 if test -z "$ac_err"; then
19376 rm -rf conftest*
19377 eval "ac_cv_header_$ac_safe=yes"
19378 else
19379 echo "$ac_err" >&5
19380 echo "configure: failed program was:" >&5
19381 cat conftest.$ac_ext >&5
19382 rm -rf conftest*
19383 eval "ac_cv_header_$ac_safe=no"
19384 fi
19385 rm -f conftest*
19386 fi
19387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19388 echo "$ac_t""yes" 1>&6
19389 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19390 cat >> confdefs.h <<EOF
19391 #define $ac_tr_hdr 1
19392 EOF
19393
19394 else
19395 echo "$ac_t""no" 1>&6
19396 fi
19397 done
19398
19399 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19400 wxUSE_JOYSTICK=no
19401 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
19402 fi
19403 fi
19404 fi
19405
19406 if test "$wxUSE_JOYSTICK" = "yes"; then
19407 cat >> confdefs.h <<\EOF
19408 #define wxUSE_JOYSTICK 1
19409 EOF
19410
19411 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19412 fi
19413 fi
19414
19415
19416 if test "$TOOLKIT" != "MSW"; then
19417
19418 HAVE_DL_FUNCS=0
19419 HAVE_SHL_FUNCS=0
19420 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19421 if test "$USE_DARWIN" = 1; then
19422 HAVE_DL_FUNCS=1
19423 else
19424 for ac_func in dlopen
19425 do
19426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19427 echo "configure:19428: checking for $ac_func" >&5
19428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19429 echo $ac_n "(cached) $ac_c" 1>&6
19430 else
19431 cat > conftest.$ac_ext <<EOF
19432 #line 19433 "configure"
19433 #include "confdefs.h"
19434 /* System header to define __stub macros and hopefully few prototypes,
19435 which can conflict with char $ac_func(); below. */
19436 #include <assert.h>
19437 /* Override any gcc2 internal prototype to avoid an error. */
19438 /* We use char because int might match the return type of a gcc2
19439 builtin and then its argument prototype would still apply. */
19440 char $ac_func();
19441
19442 int main() {
19443
19444 /* The GNU C library defines this for functions which it implements
19445 to always fail with ENOSYS. Some functions are actually named
19446 something starting with __ and the normal name is an alias. */
19447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19448 choke me
19449 #else
19450 $ac_func();
19451 #endif
19452
19453 ; return 0; }
19454 EOF
19455 if { (eval echo configure:19456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19456 rm -rf conftest*
19457 eval "ac_cv_func_$ac_func=yes"
19458 else
19459 echo "configure: failed program was:" >&5
19460 cat conftest.$ac_ext >&5
19461 rm -rf conftest*
19462 eval "ac_cv_func_$ac_func=no"
19463 fi
19464 rm -f conftest*
19465 fi
19466
19467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19468 echo "$ac_t""yes" 1>&6
19469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19470 cat >> confdefs.h <<EOF
19471 #define $ac_tr_func 1
19472 EOF
19473
19474 cat >> confdefs.h <<\EOF
19475 #define HAVE_DLOPEN 1
19476 EOF
19477
19478 HAVE_DL_FUNCS=1
19479
19480 else
19481 echo "$ac_t""no" 1>&6
19482 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
19483 echo "configure:19484: checking for dlopen in -ldl" >&5
19484 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19486 echo $ac_n "(cached) $ac_c" 1>&6
19487 else
19488 ac_save_LIBS="$LIBS"
19489 LIBS="-ldl $LIBS"
19490 cat > conftest.$ac_ext <<EOF
19491 #line 19492 "configure"
19492 #include "confdefs.h"
19493 /* Override any gcc2 internal prototype to avoid an error. */
19494 /* We use char because int might match the return type of a gcc2
19495 builtin and then its argument prototype would still apply. */
19496 char dlopen();
19497
19498 int main() {
19499 dlopen()
19500 ; return 0; }
19501 EOF
19502 if { (eval echo configure:19503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19503 rm -rf conftest*
19504 eval "ac_cv_lib_$ac_lib_var=yes"
19505 else
19506 echo "configure: failed program was:" >&5
19507 cat conftest.$ac_ext >&5
19508 rm -rf conftest*
19509 eval "ac_cv_lib_$ac_lib_var=no"
19510 fi
19511 rm -f conftest*
19512 LIBS="$ac_save_LIBS"
19513
19514 fi
19515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19516 echo "$ac_t""yes" 1>&6
19517
19518 cat >> confdefs.h <<\EOF
19519 #define HAVE_DLOPEN 1
19520 EOF
19521
19522 HAVE_DL_FUNCS=1
19523 DL_LINK=" -ldl$DL_LINK"
19524
19525 else
19526 echo "$ac_t""no" 1>&6
19527
19528 for ac_func in shl_load
19529 do
19530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19531 echo "configure:19532: checking for $ac_func" >&5
19532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19533 echo $ac_n "(cached) $ac_c" 1>&6
19534 else
19535 cat > conftest.$ac_ext <<EOF
19536 #line 19537 "configure"
19537 #include "confdefs.h"
19538 /* System header to define __stub macros and hopefully few prototypes,
19539 which can conflict with char $ac_func(); below. */
19540 #include <assert.h>
19541 /* Override any gcc2 internal prototype to avoid an error. */
19542 /* We use char because int might match the return type of a gcc2
19543 builtin and then its argument prototype would still apply. */
19544 char $ac_func();
19545
19546 int main() {
19547
19548 /* The GNU C library defines this for functions which it implements
19549 to always fail with ENOSYS. Some functions are actually named
19550 something starting with __ and the normal name is an alias. */
19551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19552 choke me
19553 #else
19554 $ac_func();
19555 #endif
19556
19557 ; return 0; }
19558 EOF
19559 if { (eval echo configure:19560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19560 rm -rf conftest*
19561 eval "ac_cv_func_$ac_func=yes"
19562 else
19563 echo "configure: failed program was:" >&5
19564 cat conftest.$ac_ext >&5
19565 rm -rf conftest*
19566 eval "ac_cv_func_$ac_func=no"
19567 fi
19568 rm -f conftest*
19569 fi
19570
19571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19572 echo "$ac_t""yes" 1>&6
19573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19574 cat >> confdefs.h <<EOF
19575 #define $ac_tr_func 1
19576 EOF
19577
19578 cat >> confdefs.h <<\EOF
19579 #define HAVE_SHL_LOAD 1
19580 EOF
19581
19582 HAVE_SHL_FUNCS=1
19583
19584 else
19585 echo "$ac_t""no" 1>&6
19586 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19587 echo "configure:19588: checking for dld in -lshl_load" >&5
19588 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19590 echo $ac_n "(cached) $ac_c" 1>&6
19591 else
19592 ac_save_LIBS="$LIBS"
19593 LIBS="-lshl_load $LIBS"
19594 cat > conftest.$ac_ext <<EOF
19595 #line 19596 "configure"
19596 #include "confdefs.h"
19597 /* Override any gcc2 internal prototype to avoid an error. */
19598 /* We use char because int might match the return type of a gcc2
19599 builtin and then its argument prototype would still apply. */
19600 char dld();
19601
19602 int main() {
19603 dld()
19604 ; return 0; }
19605 EOF
19606 if { (eval echo configure:19607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19607 rm -rf conftest*
19608 eval "ac_cv_lib_$ac_lib_var=yes"
19609 else
19610 echo "configure: failed program was:" >&5
19611 cat conftest.$ac_ext >&5
19612 rm -rf conftest*
19613 eval "ac_cv_lib_$ac_lib_var=no"
19614 fi
19615 rm -f conftest*
19616 LIBS="$ac_save_LIBS"
19617
19618 fi
19619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19620 echo "$ac_t""yes" 1>&6
19621
19622 HAVE_SHL_FUNCS=1
19623 DL_LINK=" -ldld$DL_LINK"
19624
19625 else
19626 echo "$ac_t""no" 1>&6
19627 fi
19628
19629
19630 fi
19631 done
19632
19633
19634 fi
19635
19636
19637 fi
19638 done
19639
19640
19641 if test "$HAVE_DL_FUNCS" = 1; then
19642 for ac_func in dlerror
19643 do
19644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19645 echo "configure:19646: checking for $ac_func" >&5
19646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19647 echo $ac_n "(cached) $ac_c" 1>&6
19648 else
19649 cat > conftest.$ac_ext <<EOF
19650 #line 19651 "configure"
19651 #include "confdefs.h"
19652 /* System header to define __stub macros and hopefully few prototypes,
19653 which can conflict with char $ac_func(); below. */
19654 #include <assert.h>
19655 /* Override any gcc2 internal prototype to avoid an error. */
19656 /* We use char because int might match the return type of a gcc2
19657 builtin and then its argument prototype would still apply. */
19658 char $ac_func();
19659
19660 int main() {
19661
19662 /* The GNU C library defines this for functions which it implements
19663 to always fail with ENOSYS. Some functions are actually named
19664 something starting with __ and the normal name is an alias. */
19665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19666 choke me
19667 #else
19668 $ac_func();
19669 #endif
19670
19671 ; return 0; }
19672 EOF
19673 if { (eval echo configure:19674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19674 rm -rf conftest*
19675 eval "ac_cv_func_$ac_func=yes"
19676 else
19677 echo "configure: failed program was:" >&5
19678 cat conftest.$ac_ext >&5
19679 rm -rf conftest*
19680 eval "ac_cv_func_$ac_func=no"
19681 fi
19682 rm -f conftest*
19683 fi
19684
19685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19686 echo "$ac_t""yes" 1>&6
19687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19688 cat >> confdefs.h <<EOF
19689 #define $ac_tr_func 1
19690 EOF
19691 cat >> confdefs.h <<\EOF
19692 #define HAVE_DLERROR 1
19693 EOF
19694
19695 else
19696 echo "$ac_t""no" 1>&6
19697 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19698 echo "configure:19699: checking for dlerror in -ldl" >&5
19699 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19701 echo $ac_n "(cached) $ac_c" 1>&6
19702 else
19703 ac_save_LIBS="$LIBS"
19704 LIBS="-ldl $LIBS"
19705 cat > conftest.$ac_ext <<EOF
19706 #line 19707 "configure"
19707 #include "confdefs.h"
19708 /* Override any gcc2 internal prototype to avoid an error. */
19709 /* We use char because int might match the return type of a gcc2
19710 builtin and then its argument prototype would still apply. */
19711 char dlerror();
19712
19713 int main() {
19714 dlerror()
19715 ; return 0; }
19716 EOF
19717 if { (eval echo configure:19718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19718 rm -rf conftest*
19719 eval "ac_cv_lib_$ac_lib_var=yes"
19720 else
19721 echo "configure: failed program was:" >&5
19722 cat conftest.$ac_ext >&5
19723 rm -rf conftest*
19724 eval "ac_cv_lib_$ac_lib_var=no"
19725 fi
19726 rm -f conftest*
19727 LIBS="$ac_save_LIBS"
19728
19729 fi
19730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19731 echo "$ac_t""yes" 1>&6
19732 cat >> confdefs.h <<\EOF
19733 #define HAVE_DLERROR 1
19734 EOF
19735
19736 else
19737 echo "$ac_t""no" 1>&6
19738 fi
19739
19740 fi
19741 done
19742
19743 fi
19744 fi
19745
19746 if test "$HAVE_DL_FUNCS" = 0; then
19747 if test "$HAVE_SHL_FUNCS" = 0; then
19748 if test "$USE_UNIX" = 1; then
19749 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19750 wxUSE_DYNAMIC_LOADER=no
19751 wxUSE_DYNLIB_CLASS=no
19752 else
19753 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19754 fi
19755 fi
19756 fi
19757 fi
19758 fi
19759
19760 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19761 cat >> confdefs.h <<\EOF
19762 #define wxUSE_DYNAMIC_LOADER 1
19763 EOF
19764
19765 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19766 cat >> confdefs.h <<\EOF
19767 #define wxUSE_DYNLIB_CLASS 1
19768 EOF
19769
19770 fi
19771
19772
19773 if test "$wxUSE_FONTMAP" = "yes" ; then
19774 cat >> confdefs.h <<\EOF
19775 #define wxUSE_FONTMAP 1
19776 EOF
19777
19778 fi
19779
19780 if test "$wxUSE_UNICODE" = "yes" ; then
19781 cat >> confdefs.h <<\EOF
19782 #define wxUSE_UNICODE 1
19783 EOF
19784
19785
19786 if test "$wxUSE_MSW" != 1; then
19787 wxUSE_UNICODE_MSLU=no
19788 fi
19789
19790 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19791 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19792 echo "configure:19793: checking for main in -lunicows" >&5
19793 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19795 echo $ac_n "(cached) $ac_c" 1>&6
19796 else
19797 ac_save_LIBS="$LIBS"
19798 LIBS="-lunicows $LIBS"
19799 cat > conftest.$ac_ext <<EOF
19800 #line 19801 "configure"
19801 #include "confdefs.h"
19802
19803 int main() {
19804 main()
19805 ; return 0; }
19806 EOF
19807 if { (eval echo configure:19808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19808 rm -rf conftest*
19809 eval "ac_cv_lib_$ac_lib_var=yes"
19810 else
19811 echo "configure: failed program was:" >&5
19812 cat conftest.$ac_ext >&5
19813 rm -rf conftest*
19814 eval "ac_cv_lib_$ac_lib_var=no"
19815 fi
19816 rm -f conftest*
19817 LIBS="$ac_save_LIBS"
19818
19819 fi
19820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19821 echo "$ac_t""yes" 1>&6
19822
19823 cat >> confdefs.h <<\EOF
19824 #define wxUSE_UNICODE_MSLU 1
19825 EOF
19826
19827
19828 else
19829 echo "$ac_t""no" 1>&6
19830
19831 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19832 Applications will only run on Windows NT/2000/XP!" 1>&2
19833 wxUSE_UNICODE_MSLU=no
19834
19835 fi
19836
19837 fi
19838 fi
19839
19840 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19841 cat >> confdefs.h <<\EOF
19842 #define wxUSE_EXPERIMENTAL_PRINTF 1
19843 EOF
19844
19845 fi
19846
19847
19848
19849 IODBC_C_SRC=""
19850 if test "$wxUSE_ODBC" = "yes" ; then
19851 cat >> confdefs.h <<\EOF
19852 #define wxUSE_ODBC 1
19853 EOF
19854
19855 WXODBCFLAG="-D_IODBC_"
19856 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19857 fi
19858
19859
19860 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19861 cat >> confdefs.h <<\EOF
19862 #define wxUSE_POSTSCRIPT 1
19863 EOF
19864
19865 fi
19866
19867 cat >> confdefs.h <<\EOF
19868 #define wxUSE_AFM_FOR_POSTSCRIPT 1
19869 EOF
19870
19871
19872 cat >> confdefs.h <<\EOF
19873 #define wxUSE_NORMALIZED_PS_FONTS 1
19874 EOF
19875
19876
19877
19878 if test "$wxUSE_CONSTRAINTS" = "yes"; then
19879 cat >> confdefs.h <<\EOF
19880 #define wxUSE_CONSTRAINTS 1
19881 EOF
19882
19883 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19884 fi
19885
19886 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19887 if test "$wxUSE_UNIVERSAL" = "yes"; then
19888 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
19889 wxUSE_MDI_ARCHITECTURE=no
19890 fi
19891
19892 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19893 cat >> confdefs.h <<\EOF
19894 #define wxUSE_MDI_ARCHITECTURE 1
19895 EOF
19896
19897 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19898 fi
19899 fi
19900
19901 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19902 cat >> confdefs.h <<\EOF
19903 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
19904 EOF
19905
19906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19907 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19909 fi
19910 fi
19911
19912 if test "$wxUSE_HELP" = "yes"; then
19913 cat >> confdefs.h <<\EOF
19914 #define wxUSE_HELP 1
19915 EOF
19916
19917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19918
19919 if test "$wxUSE_MSW" = 1; then
19920 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19921 cat >> confdefs.h <<\EOF
19922 #define wxUSE_MS_HTML_HELP 1
19923 EOF
19924
19925 fi
19926 fi
19927
19928 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19929 if test "$wxUSE_HTML" = "yes"; then
19930 cat >> confdefs.h <<\EOF
19931 #define wxUSE_WXHTML_HELP 1
19932 EOF
19933
19934 else
19935 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19936 wxUSE_WXHTML_HELP=no
19937 fi
19938 fi
19939 fi
19940
19941 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19942 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19943 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19944 else
19945 cat >> confdefs.h <<\EOF
19946 #define wxUSE_PRINTING_ARCHITECTURE 1
19947 EOF
19948
19949 fi
19950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19951 fi
19952
19953 if test "$wxUSE_PROLOGIO" = "yes" ; then
19954 cat >> confdefs.h <<\EOF
19955 #define wxUSE_PROLOGIO 1
19956 EOF
19957
19958 fi
19959
19960 if test "$wxUSE_RESOURCES" = "yes" ; then
19961 if test "$wxUSE_NANOX" = "yes"; then
19962 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19963 else
19964 cat >> confdefs.h <<\EOF
19965 #define wxUSE_RESOURCES 1
19966 EOF
19967
19968 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19969 fi
19970 fi
19971
19972 if test "$wxUSE_X_RESOURCES" = "yes"; then
19973 cat >> confdefs.h <<\EOF
19974 #define wxUSE_X_RESOURCES 1
19975 EOF
19976
19977 fi
19978
19979
19980 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19981 -o "$wxUSE_CLIPBOARD" = "yes" \
19982 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19983 for ac_hdr in ole2.h
19984 do
19985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19987 echo "configure:19988: checking for $ac_hdr" >&5
19988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19989 echo $ac_n "(cached) $ac_c" 1>&6
19990 else
19991 cat > conftest.$ac_ext <<EOF
19992 #line 19993 "configure"
19993 #include "confdefs.h"
19994 #include <$ac_hdr>
19995 EOF
19996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19997 { (eval echo configure:19998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19999 if test -z "$ac_err"; then
20000 rm -rf conftest*
20001 eval "ac_cv_header_$ac_safe=yes"
20002 else
20003 echo "$ac_err" >&5
20004 echo "configure: failed program was:" >&5
20005 cat conftest.$ac_ext >&5
20006 rm -rf conftest*
20007 eval "ac_cv_header_$ac_safe=no"
20008 fi
20009 rm -f conftest*
20010 fi
20011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20012 echo "$ac_t""yes" 1>&6
20013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20014 cat >> confdefs.h <<EOF
20015 #define $ac_tr_hdr 1
20016 EOF
20017
20018 else
20019 echo "$ac_t""no" 1>&6
20020 fi
20021 done
20022
20023
20024 if test "$ac_cv_header_ole2_h" = "yes" ; then
20025 if test "$GCC" = yes ; then
20026 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20027 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20028 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
20029 cat >> confdefs.h <<\EOF
20030 #define wxUSE_OLE 1
20031 EOF
20032
20033
20034 fi
20035
20036 cat >> confdefs.h <<\EOF
20037 #define wxUSE_DATAOBJ 1
20038 EOF
20039
20040 else
20041 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
20042
20043 wxUSE_CLIPBOARD=no
20044 wxUSE_DRAG_AND_DROP=no
20045 wxUSE_DATAOBJ=no
20046 fi
20047
20048 if test "$wxUSE_METAFILE" = "yes"; then
20049 cat >> confdefs.h <<\EOF
20050 #define wxUSE_METAFILE 1
20051 EOF
20052
20053
20054 cat >> confdefs.h <<\EOF
20055 #define wxUSE_ENH_METAFILE 1
20056 EOF
20057
20058 fi
20059 fi
20060
20061 if test "$wxUSE_IPC" = "yes"; then
20062 if test "$wxUSE_SOCKETS" != "yes"; then
20063 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
20064 fi
20065
20066 cat >> confdefs.h <<\EOF
20067 #define wxUSE_IPC 1
20068 EOF
20069
20070 fi
20071
20072 if test "$wxUSE_CLIPBOARD" = "yes"; then
20073 if test "$wxUSE_MGL" = 1; then
20074 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
20075 wxUSE_CLIPBOARD=no
20076 fi
20077
20078 if test "$wxUSE_CLIPBOARD" = "yes"; then
20079 cat >> confdefs.h <<\EOF
20080 #define wxUSE_CLIPBOARD 1
20081 EOF
20082
20083
20084 cat >> confdefs.h <<\EOF
20085 #define wxUSE_DATAOBJ 1
20086 EOF
20087
20088 fi
20089 fi
20090
20091 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
20092 if test "$wxUSE_GTK" = 1; then
20093 if test "$WXGTK12" != 1; then
20094 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
20095 wxUSE_DRAG_AND_DROP=no
20096 fi
20097 fi
20098
20099 if test "$wxUSE_MOTIF" = 1; then
20100 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
20101 wxUSE_DRAG_AND_DROP=no
20102 fi
20103
20104 if test "$wxUSE_X11" = 1; then
20105 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
20106 wxUSE_DRAG_AND_DROP=no
20107 fi
20108
20109 if test "$wxUSE_MGL" = 1; then
20110 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
20111 wxUSE_DRAG_AND_DROP=no
20112 fi
20113
20114 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
20115 cat >> confdefs.h <<\EOF
20116 #define wxUSE_DRAG_AND_DROP 1
20117 EOF
20118
20119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
20120 fi
20121
20122 fi
20123
20124 if test "$wxUSE_SPLINES" = "yes" ; then
20125 cat >> confdefs.h <<\EOF
20126 #define wxUSE_SPLINES 1
20127 EOF
20128
20129 fi
20130
20131
20132 USES_CONTROLS=0
20133 if test "$wxUSE_CONTROLS" = "yes"; then
20134 USES_CONTROLS=1
20135 fi
20136
20137 if test "$wxUSE_ACCEL" = "yes"; then
20138 cat >> confdefs.h <<\EOF
20139 #define wxUSE_ACCEL 1
20140 EOF
20141
20142 USES_CONTROLS=1
20143 fi
20144
20145 if test "$wxUSE_BUTTON" = "yes"; then
20146 cat >> confdefs.h <<\EOF
20147 #define wxUSE_BUTTON 1
20148 EOF
20149
20150 USES_CONTROLS=1
20151 fi
20152
20153 if test "$wxUSE_BMPBUTTON" = "yes"; then
20154 cat >> confdefs.h <<\EOF
20155 #define wxUSE_BMPBUTTON 1
20156 EOF
20157
20158 USES_CONTROLS=1
20159 fi
20160
20161 if test "$wxUSE_CALCTRL" = "yes"; then
20162 cat >> confdefs.h <<\EOF
20163 #define wxUSE_CALENDARCTRL 1
20164 EOF
20165
20166 USES_CONTROLS=1
20167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
20168 fi
20169
20170 if test "$wxUSE_CARET" = "yes"; then
20171 cat >> confdefs.h <<\EOF
20172 #define wxUSE_CARET 1
20173 EOF
20174
20175 USES_CONTROLS=1
20176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20177 fi
20178
20179 if test "$wxUSE_COMBOBOX" = "yes"; then
20180 cat >> confdefs.h <<\EOF
20181 #define wxUSE_COMBOBOX 1
20182 EOF
20183
20184 USES_CONTROLS=1
20185 fi
20186
20187 if test "$wxUSE_CHOICE" = "yes"; then
20188 cat >> confdefs.h <<\EOF
20189 #define wxUSE_CHOICE 1
20190 EOF
20191
20192 USES_CONTROLS=1
20193 fi
20194
20195 if test "$wxUSE_CHECKBOX" = "yes"; then
20196 cat >> confdefs.h <<\EOF
20197 #define wxUSE_CHECKBOX 1
20198 EOF
20199
20200 USES_CONTROLS=1
20201 fi
20202
20203 if test "$wxUSE_CHECKLST" = "yes"; then
20204 cat >> confdefs.h <<\EOF
20205 #define wxUSE_CHECKLISTBOX 1
20206 EOF
20207
20208 USES_CONTROLS=1
20209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20210 fi
20211
20212 if test "$wxUSE_GAUGE" = "yes"; then
20213 cat >> confdefs.h <<\EOF
20214 #define wxUSE_GAUGE 1
20215 EOF
20216
20217 USES_CONTROLS=1
20218 fi
20219
20220 if test "$wxUSE_NEW_GRID" = "yes"; then
20221 wxUSE_GRID="yes"
20222 cat >> confdefs.h <<\EOF
20223 #define wxUSE_NEW_GRID 1
20224 EOF
20225
20226 USES_CONTROLS=1
20227 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
20228 fi
20229
20230 if test "$wxUSE_GRID" = "yes"; then
20231 cat >> confdefs.h <<\EOF
20232 #define wxUSE_GRID 1
20233 EOF
20234
20235 USES_CONTROLS=1
20236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
20237 fi
20238
20239 if test "$wxUSE_IMAGLIST" = "yes"; then
20240 cat >> confdefs.h <<\EOF
20241 #define wxUSE_IMAGLIST 1
20242 EOF
20243
20244 fi
20245
20246 if test "$wxUSE_LISTBOX" = "yes"; then
20247 cat >> confdefs.h <<\EOF
20248 #define wxUSE_LISTBOX 1
20249 EOF
20250
20251 USES_CONTROLS=1
20252 fi
20253
20254 if test "$wxUSE_LISTCTRL" = "yes"; then
20255 if test "$wxUSE_IMAGLIST" = "yes"; then
20256 cat >> confdefs.h <<\EOF
20257 #define wxUSE_LISTCTRL 1
20258 EOF
20259
20260 USES_CONTROLS=1
20261 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20262 else
20263 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
20264 fi
20265 fi
20266
20267 if test "$wxUSE_NOTEBOOK" = "yes"; then
20268 cat >> confdefs.h <<\EOF
20269 #define wxUSE_NOTEBOOK 1
20270 EOF
20271
20272 USES_CONTROLS=1
20273 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20274 fi
20275
20276 if test "$wxUSE_PROPSHEET" = "yes"; then
20277 cat >> confdefs.h <<\EOF
20278 #define wxUSE_PROPSHEET 1
20279 EOF
20280
20281 USES_CONTROLS=1
20282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20283 fi
20284
20285 if test "$wxUSE_RADIOBOX" = "yes"; then
20286 cat >> confdefs.h <<\EOF
20287 #define wxUSE_RADIOBOX 1
20288 EOF
20289
20290 USES_CONTROLS=1
20291 fi
20292
20293 if test "$wxUSE_RADIOBTN" = "yes"; then
20294 cat >> confdefs.h <<\EOF
20295 #define wxUSE_RADIOBTN 1
20296 EOF
20297
20298 USES_CONTROLS=1
20299 fi
20300
20301 if test "$wxUSE_SASH" = "yes"; then
20302 cat >> confdefs.h <<\EOF
20303 #define wxUSE_SASH 1
20304 EOF
20305
20306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20307 fi
20308
20309 if test "$wxUSE_SCROLLBAR" = "yes"; then
20310 cat >> confdefs.h <<\EOF
20311 #define wxUSE_SCROLLBAR 1
20312 EOF
20313
20314 USES_CONTROLS=1
20315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
20316 fi
20317
20318 if test "$wxUSE_SLIDER" = "yes"; then
20319 cat >> confdefs.h <<\EOF
20320 #define wxUSE_SLIDER 1
20321 EOF
20322
20323 USES_CONTROLS=1
20324 fi
20325
20326 if test "$wxUSE_SPINBTN" = "yes"; then
20327 cat >> confdefs.h <<\EOF
20328 #define wxUSE_SPINBTN 1
20329 EOF
20330
20331 USES_CONTROLS=1
20332 fi
20333
20334 if test "$wxUSE_SPINCTRL" = "yes"; then
20335 cat >> confdefs.h <<\EOF
20336 #define wxUSE_SPINCTRL 1
20337 EOF
20338
20339 USES_CONTROLS=1
20340 fi
20341
20342 if test "$wxUSE_SPLITTER" = "yes"; then
20343 cat >> confdefs.h <<\EOF
20344 #define wxUSE_SPLITTER 1
20345 EOF
20346
20347 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20348 fi
20349
20350 if test "$wxUSE_STATBMP" = "yes"; then
20351 cat >> confdefs.h <<\EOF
20352 #define wxUSE_STATBMP 1
20353 EOF
20354
20355 USES_CONTROLS=1
20356 fi
20357
20358 if test "$wxUSE_STATBOX" = "yes"; then
20359 cat >> confdefs.h <<\EOF
20360 #define wxUSE_STATBOX 1
20361 EOF
20362
20363 USES_CONTROLS=1
20364 fi
20365
20366 if test "$wxUSE_STATTEXT" = "yes"; then
20367 cat >> confdefs.h <<\EOF
20368 #define wxUSE_STATTEXT 1
20369 EOF
20370
20371 USES_CONTROLS=1
20372 fi
20373
20374 if test "$wxUSE_STATLINE" = "yes"; then
20375 if test "$wxUSE_WINE" = 1 ; then
20376 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
20377 else
20378 cat >> confdefs.h <<\EOF
20379 #define wxUSE_STATLINE 1
20380 EOF
20381
20382 USES_CONTROLS=1
20383 fi
20384 fi
20385
20386 if test "$wxUSE_STATUSBAR" = "yes"; then
20387 cat >> confdefs.h <<\EOF
20388 #define wxUSE_STATUSBAR 1
20389 EOF
20390
20391 USES_CONTROLS=1
20392
20393 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
20394 fi
20395
20396 if test "$wxUSE_TABDIALOG" = "yes"; then
20397 cat >> confdefs.h <<\EOF
20398 #define wxUSE_TAB_DIALOG 1
20399 EOF
20400
20401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20402 fi
20403
20404 if test "$wxUSE_TEXTCTRL" = "yes"; then
20405 cat >> confdefs.h <<\EOF
20406 #define wxUSE_TEXTCTRL 1
20407 EOF
20408
20409 USES_CONTROLS=1
20410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20411 fi
20412
20413 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20414 if test "$wxUSE_MAC" = 1; then
20415 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20416 wxUSE_TOGGLEBTN=no
20417 fi
20418 if test "$wxUSE_UNIVERSAL" = "yes"; then
20419 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
20420 wxUSE_TOGGLEBTN=no
20421 fi
20422
20423 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20424 cat >> confdefs.h <<\EOF
20425 #define wxUSE_TOGGLEBTN 1
20426 EOF
20427
20428 USES_CONTROLS=1
20429 fi
20430 fi
20431
20432 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
20433 cat >> confdefs.h <<\EOF
20434 #define wxUSE_TOOLBAR_SIMPLE 1
20435 EOF
20436
20437 wxUSE_TOOLBAR="yes"
20438 USES_CONTROLS=1
20439 fi
20440
20441 if test "$wxUSE_TOOLBAR" = "yes"; then
20442 cat >> confdefs.h <<\EOF
20443 #define wxUSE_TOOLBAR 1
20444 EOF
20445
20446 USES_CONTROLS=1
20447
20448 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20449 wxUSE_TOOLBAR_NATIVE="yes"
20450 fi
20451
20452 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20453 cat >> confdefs.h <<\EOF
20454 #define wxUSE_TOOLBAR_NATIVE 1
20455 EOF
20456
20457 USES_CONTROLS=1
20458 fi
20459
20460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20461 fi
20462
20463 if test "$wxUSE_TOOLTIPS" = "yes"; then
20464 if test "$wxUSE_MOTIF" = 1; then
20465 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
20466 else
20467 if test "$wxUSE_WINE" = 1; then
20468 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
20469 else
20470 if test "$wxUSE_UNIVERSAL" = "yes"; then
20471 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
20472 else
20473 cat >> confdefs.h <<\EOF
20474 #define wxUSE_TOOLTIPS 1
20475 EOF
20476
20477 fi
20478 fi
20479 fi
20480 fi
20481
20482 if test "$wxUSE_TREECTRL" = "yes"; then
20483 if test "$wxUSE_IMAGLIST" = "yes"; then
20484 cat >> confdefs.h <<\EOF
20485 #define wxUSE_TREECTRL 1
20486 EOF
20487
20488 USES_CONTROLS=1
20489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20490 else
20491 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20492 fi
20493 fi
20494
20495 if test "$wxUSE_POPUPWIN" = "yes"; then
20496 if test "$wxUSE_MAC" = 1; then
20497 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20498 else
20499 if test "$wxUSE_MOTIF" = 1; then
20500 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20501 else
20502 if test "$wxUSE_PM" = 1; then
20503 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20504 else
20505 cat >> confdefs.h <<\EOF
20506 #define wxUSE_POPUPWIN 1
20507 EOF
20508
20509
20510 USES_CONTROLS=1
20511 fi
20512 fi
20513 fi
20514 fi
20515
20516 if test "$wxUSE_TIPWINDOW" = "yes"; then
20517 if test "$wxUSE_PM" = 1; then
20518 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20519 else
20520 cat >> confdefs.h <<\EOF
20521 #define wxUSE_TIPWINDOW 1
20522 EOF
20523
20524 fi
20525 fi
20526
20527 if test "$USES_CONTROLS" = 1; then
20528 cat >> confdefs.h <<\EOF
20529 #define wxUSE_CONTROLS 1
20530 EOF
20531
20532 fi
20533
20534
20535 if test "$wxUSE_TREELAYOUT" = "yes"; then
20536 cat >> confdefs.h <<\EOF
20537 #define wxUSE_TREELAYOUT 1
20538 EOF
20539
20540 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20541 fi
20542
20543 if test "$wxUSE_DRAGIMAGE" = "yes"; then
20544 cat >> confdefs.h <<\EOF
20545 #define wxUSE_DRAGIMAGE 1
20546 EOF
20547
20548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20549 fi
20550
20551 if test "$wxUSE_MENUS" = "yes"; then
20552 cat >> confdefs.h <<\EOF
20553 #define wxUSE_MENUS 1
20554 EOF
20555
20556 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20557 fi
20558
20559 if test "$wxUSE_METAFILE" = "yes"; then
20560 cat >> confdefs.h <<\EOF
20561 #define wxUSE_METAFILE 1
20562 EOF
20563
20564 fi
20565
20566 if test "$wxUSE_MIMETYPE" = "yes"; then
20567 cat >> confdefs.h <<\EOF
20568 #define wxUSE_MIMETYPE 1
20569 EOF
20570
20571 fi
20572
20573 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20574 cat >> confdefs.h <<\EOF
20575 #define wxUSE_SYSTEM_OPTIONS 1
20576 EOF
20577
20578 if test "$TOOLKIT" = "MSW"; then
20579 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20580 fi
20581
20582 fi
20583
20584 if test "$wxUSE_PROTOCOL" = "yes"; then
20585 if test "$wxUSE_SOCKETS" != "yes"; then
20586 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20587 wxUSE_PROTOCOL=no
20588 fi
20589
20590 if test "$wxUSE_PROTOCOL" = "yes"; then
20591 cat >> confdefs.h <<\EOF
20592 #define wxUSE_PROTOCOL 1
20593 EOF
20594
20595
20596 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20597 cat >> confdefs.h <<\EOF
20598 #define wxUSE_PROTOCOL_HTTP 1
20599 EOF
20600
20601 fi
20602 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20603 cat >> confdefs.h <<\EOF
20604 #define wxUSE_PROTOCOL_FTP 1
20605 EOF
20606
20607 fi
20608 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20609 cat >> confdefs.h <<\EOF
20610 #define wxUSE_PROTOCOL_FILE 1
20611 EOF
20612
20613 fi
20614 fi
20615 fi
20616
20617 if test "$wxUSE_URL" = "yes"; then
20618 if test "$wxUSE_PROTOCOL" != "yes"; then
20619 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20620 wxUSE_URL=no
20621 fi
20622 if test "$wxUSE_URL" = "yes"; then
20623 cat >> confdefs.h <<\EOF
20624 #define wxUSE_URL 1
20625 EOF
20626
20627 fi
20628 fi
20629
20630 if test "$wxUSE_MINIFRAME" = "yes"; then
20631 cat >> confdefs.h <<\EOF
20632 #define wxUSE_MINIFRAME 1
20633 EOF
20634
20635 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20636 fi
20637
20638 if test "$wxUSE_HTML" = "yes"; then
20639 cat >> confdefs.h <<\EOF
20640 #define wxUSE_HTML 1
20641 EOF
20642
20643 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20644 fi
20645
20646 if test "$wxUSE_VALIDATORS" = "yes"; then
20647 cat >> confdefs.h <<\EOF
20648 #define wxUSE_VALIDATORS 1
20649 EOF
20650
20651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20652 fi
20653
20654 if test "$wxUSE_PALETTE" = "yes" ; then
20655 cat >> confdefs.h <<\EOF
20656 #define wxUSE_PALETTE 1
20657 EOF
20658
20659 fi
20660
20661 if test "$wxUSE_IMAGE" = "yes" ; then
20662 cat >> confdefs.h <<\EOF
20663 #define wxUSE_IMAGE 1
20664 EOF
20665
20666 fi
20667
20668 if test "$wxUSE_GIF" = "yes" ; then
20669 cat >> confdefs.h <<\EOF
20670 #define wxUSE_GIF 1
20671 EOF
20672
20673 fi
20674
20675 if test "$wxUSE_PCX" = "yes" ; then
20676 cat >> confdefs.h <<\EOF
20677 #define wxUSE_PCX 1
20678 EOF
20679
20680 fi
20681
20682 if test "$wxUSE_IFF" = "yes" ; then
20683 cat >> confdefs.h <<\EOF
20684 #define wxUSE_IFF 1
20685 EOF
20686
20687 fi
20688
20689 if test "$wxUSE_PNM" = "yes" ; then
20690 cat >> confdefs.h <<\EOF
20691 #define wxUSE_PNM 1
20692 EOF
20693
20694 fi
20695
20696 if test "$wxUSE_XPM" = "yes" ; then
20697 cat >> confdefs.h <<\EOF
20698 #define wxUSE_XPM 1
20699 EOF
20700
20701 fi
20702
20703 if test "$wxUSE_ICO_CUR" = "yes" ; then
20704 cat >> confdefs.h <<\EOF
20705 #define wxUSE_ICO_CUR 1
20706 EOF
20707
20708 fi
20709
20710 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20711 LIBS=" -lunicows $LIBS"
20712 fi
20713
20714
20715 if test "$wxUSE_CHOICEDLG" = "yes"; then
20716 cat >> confdefs.h <<\EOF
20717 #define wxUSE_CHOICEDLG 1
20718 EOF
20719
20720 fi
20721
20722 if test "$wxUSE_COLOURDLG" = "yes"; then
20723 cat >> confdefs.h <<\EOF
20724 #define wxUSE_COLOURDLG 1
20725 EOF
20726
20727 fi
20728
20729 if test "$wxUSE_FILEDLG" = "yes"; then
20730 cat >> confdefs.h <<\EOF
20731 #define wxUSE_FILEDLG 1
20732 EOF
20733
20734 fi
20735
20736 if test "$wxUSE_FINDREPLDLG" = "yes"; then
20737 cat >> confdefs.h <<\EOF
20738 #define wxUSE_FINDREPLDLG 1
20739 EOF
20740
20741 fi
20742
20743 if test "$wxUSE_FONTDLG" = "yes"; then
20744 cat >> confdefs.h <<\EOF
20745 #define wxUSE_FONTDLG 1
20746 EOF
20747
20748 fi
20749
20750 if test "$wxUSE_DIRDLG" = "yes"; then
20751 if test "$wxUSE_TREECTRL" != "yes"; then
20752 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20753 else
20754 cat >> confdefs.h <<\EOF
20755 #define wxUSE_DIRDLG 1
20756 EOF
20757
20758 fi
20759 fi
20760
20761 if test "$wxUSE_MSGDLG" = "yes"; then
20762 cat >> confdefs.h <<\EOF
20763 #define wxUSE_MSGDLG 1
20764 EOF
20765
20766 fi
20767
20768 if test "$wxUSE_NUMBERDLG" = "yes"; then
20769 cat >> confdefs.h <<\EOF
20770 #define wxUSE_NUMBERDLG 1
20771 EOF
20772
20773 fi
20774
20775 if test "$wxUSE_PROGRESSDLG" = "yes"; then
20776 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20777 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20778 else
20779 cat >> confdefs.h <<\EOF
20780 #define wxUSE_PROGRESSDLG 1
20781 EOF
20782
20783 fi
20784 fi
20785
20786 if test "$wxUSE_SPLASH" = "yes"; then
20787 cat >> confdefs.h <<\EOF
20788 #define wxUSE_SPLASH 1
20789 EOF
20790
20791 fi
20792
20793 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20794 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20795 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20796 else
20797 cat >> confdefs.h <<\EOF
20798 #define wxUSE_STARTUP_TIPS 1
20799 EOF
20800
20801 fi
20802 fi
20803
20804 if test "$wxUSE_TEXTDLG" = "yes"; then
20805 cat >> confdefs.h <<\EOF
20806 #define wxUSE_TEXTDLG 1
20807 EOF
20808
20809 fi
20810
20811 if test "$wxUSE_WIZARDDLG" = "yes"; then
20812 cat >> confdefs.h <<\EOF
20813 #define wxUSE_WIZARDDLG 1
20814 EOF
20815
20816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20817 fi
20818
20819
20820 if test "$cross_compiling" = "yes"; then
20821 OSINFO="\"$host\""
20822 else
20823 OSINFO=`uname -s -r -m`
20824 OSINFO="\"$OSINFO\""
20825 fi
20826
20827 cat >> confdefs.h <<EOF
20828 #define WXWIN_OS_DESCRIPTION $OSINFO
20829 EOF
20830
20831
20832
20833 if test "x$prefix" != "xNONE"; then
20834 wxPREFIX=$prefix
20835 else
20836 wxPREFIX=$ac_default_prefix
20837 fi
20838
20839 cat >> confdefs.h <<EOF
20840 #define wxINSTALL_PREFIX "$wxPREFIX"
20841 EOF
20842
20843
20844
20845
20846
20847 if test "$wxUSE_MAC" = 1 ; then
20848 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20849 fi
20850
20851
20852 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
20853
20854 if test "$wxUSE_GUI" = "yes"; then
20855
20856 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20857
20858
20859 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
20860 drawing dynamic erase event exec font image \
20861 minimal richedit rotate widgets"
20862
20863 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20864 else
20865 SAMPLES_SUBDIRS="console"
20866 fi
20867
20868
20869 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20870 -I\${top_srcdir}/include \
20871 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20872 $TOOLKIT_INCLUDE"
20873
20874 if test "$wxUSE_GTK" = 1; then
20875 WXCONFIG_INCLUDE=
20876 else
20877 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20878 fi
20879
20880 if test "$GXX" = yes ; then
20881 CXXWARNINGS="-Wall"
20882
20883 if test "$wxUSE_NO_DEPS" = "no" ; then
20884 CFLAGS="-MMD $CFLAGS"
20885 CXXFLAGS="-MMD $CXXFLAGS"
20886 fi
20887 fi
20888
20889 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20890
20891 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20892 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20893 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
20894
20895 LDFLAGS="$LDFLAGS $PROFILE"
20896
20897 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20989 echo "configure:20990: checking whether ${MAKE-make} sets \${MAKE}" >&5
20990 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20991 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20992 echo $ac_n "(cached) $ac_c" 1>&6
20993 else
20994 cat > conftestmake <<\EOF
20995 all:
20996 @echo 'ac_maketemp="${MAKE}"'
20997 EOF
20998 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20999 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
21000 if test -n "$ac_maketemp"; then
21001 eval ac_cv_prog_make_${ac_make}_set=yes
21002 else
21003 eval ac_cv_prog_make_${ac_make}_set=no
21004 fi
21005 rm -f conftestmake
21006 fi
21007 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
21008 echo "$ac_t""yes" 1>&6
21009 SET_MAKE=
21010 else
21011 echo "$ac_t""no" 1>&6
21012 SET_MAKE="MAKE=${MAKE-make}"
21013 fi
21014
21015
21016 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
21017 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
21018 fi
21019
21020
21021
21022 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
21023 wx_cv_if_gnu_make=$IF_GNU_MAKE
21024 wx_cv_path_ifs=$PATH_IFS
21025 wx_cv_program_ext=$PROGRAM_EXT
21026 wx_cv_target_library=$WX_TARGET_LIBRARY
21027 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
21028 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
21029 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
21030 wx_cv_path_ifs wx_cv_program_ext \
21031 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
21032
21033 subdirs="demos samples utils contrib"
21034
21035
21036 trap '' 1 2 15
21037 cat > confcache <<\EOF
21038 # This file is a shell script that caches the results of configure
21039 # tests run on this system so they can be shared between configure
21040 # scripts and configure runs. It is not useful on other systems.
21041 # If it contains results you don't want to keep, you may remove or edit it.
21042 #
21043 # By default, configure uses ./config.cache as the cache file,
21044 # creating it if it does not exist already. You can give configure
21045 # the --cache-file=FILE option to use a different cache file; that is
21046 # what configure does when it calls configure scripts in
21047 # subdirectories, so they share the cache.
21048 # Giving --cache-file=/dev/null disables caching, for debugging configure.
21049 # config.status only pays attention to the cache file if you give it the
21050 # --recheck option to rerun configure.
21051 #
21052 EOF
21053 # The following way of writing the cache mishandles newlines in values,
21054 # but we know of no workaround that is simple, portable, and efficient.
21055 # So, don't put newlines in cache variables' values.
21056 # Ultrix sh set writes to stderr and can't be redirected directly,
21057 # and sets the high bit in the cache file unless we assign to the vars.
21058 (set) 2>&1 |
21059 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21060 *ac_space=\ *)
21061 # `set' does not quote correctly, so add quotes (double-quote substitution
21062 # turns \\\\ into \\, and sed turns \\ into \).
21063 sed -n \
21064 -e "s/'/'\\\\''/g" \
21065 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21066 ;;
21067 *)
21068 # `set' quotes correctly as required by POSIX, so do not add quotes.
21069 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21070 ;;
21071 esac >> confcache
21072 if cmp -s $cache_file confcache; then
21073 :
21074 else
21075 if test -w $cache_file; then
21076 echo "updating cache $cache_file"
21077 cat confcache > $cache_file
21078 else
21079 echo "not updating unwritable cache $cache_file"
21080 fi
21081 fi
21082 rm -f confcache
21083
21084 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
21085
21086 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21087 # Let make expand exec_prefix.
21088 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21089
21090 # Any assignment to VPATH causes Sun make to only execute
21091 # the first set of double-colon rules, so remove it if not needed.
21092 # If there is a colon in the path, we need to keep it.
21093 if test "x$srcdir" = x.; then
21094 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
21095 fi
21096
21097 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
21098
21099 DEFS=-DHAVE_CONFIG_H
21100
21101 # Without the "./", some shells look in PATH for config.status.
21102 : ${CONFIG_STATUS=./config.status}
21103
21104 echo creating $CONFIG_STATUS
21105 rm -f $CONFIG_STATUS
21106 cat > $CONFIG_STATUS <<EOF
21107 #! /bin/sh
21108 # Generated automatically by configure.
21109 # Run this file to recreate the current configuration.
21110 # This directory was configured as follows,
21111 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21112 #
21113 # $0 $ac_configure_args
21114 #
21115 # Compiler output produced by configure, useful for debugging
21116 # configure, is in ./config.log if it exists.
21117
21118 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
21119 for ac_option
21120 do
21121 case "\$ac_option" in
21122 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21123 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21124 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21125 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21126 echo "$CONFIG_STATUS generated by autoconf version 2.13"
21127 exit 0 ;;
21128 -help | --help | --hel | --he | --h)
21129 echo "\$ac_cs_usage"; exit 0 ;;
21130 *) echo "\$ac_cs_usage"; exit 1 ;;
21131 esac
21132 done
21133
21134 ac_given_srcdir=$srcdir
21135 ac_given_INSTALL="$INSTALL"
21136
21137 trap 'rm -fr `echo "
21138 wx-config
21139 src/make.env
21140 src/makeprog.env
21141 src/makelib.env
21142 Makefile
21143 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21144 EOF
21145 cat >> $CONFIG_STATUS <<EOF
21146
21147 # Protect against being on the right side of a sed subst in config.status.
21148 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21149 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21150 $ac_vpsub
21151 $extrasub
21152 s%@SHELL@%$SHELL%g
21153 s%@CFLAGS@%$CFLAGS%g
21154 s%@CPPFLAGS@%$CPPFLAGS%g
21155 s%@CXXFLAGS@%$CXXFLAGS%g
21156 s%@FFLAGS@%$FFLAGS%g
21157 s%@DEFS@%$DEFS%g
21158 s%@LDFLAGS@%$LDFLAGS%g
21159 s%@LIBS@%$LIBS%g
21160 s%@exec_prefix@%$exec_prefix%g
21161 s%@prefix@%$prefix%g
21162 s%@program_transform_name@%$program_transform_name%g
21163 s%@bindir@%$bindir%g
21164 s%@sbindir@%$sbindir%g
21165 s%@libexecdir@%$libexecdir%g
21166 s%@datadir@%$datadir%g
21167 s%@sysconfdir@%$sysconfdir%g
21168 s%@sharedstatedir@%$sharedstatedir%g
21169 s%@localstatedir@%$localstatedir%g
21170 s%@libdir@%$libdir%g
21171 s%@includedir@%$includedir%g
21172 s%@oldincludedir@%$oldincludedir%g
21173 s%@infodir@%$infodir%g
21174 s%@mandir@%$mandir%g
21175 s%@host@%$host%g
21176 s%@host_alias@%$host_alias%g
21177 s%@host_cpu@%$host_cpu%g
21178 s%@host_vendor@%$host_vendor%g
21179 s%@host_os@%$host_os%g
21180 s%@target@%$target%g
21181 s%@target_alias@%$target_alias%g
21182 s%@target_cpu@%$target_cpu%g
21183 s%@target_vendor@%$target_vendor%g
21184 s%@target_os@%$target_os%g
21185 s%@build@%$build%g
21186 s%@build_alias@%$build_alias%g
21187 s%@build_cpu@%$build_cpu%g
21188 s%@build_vendor@%$build_vendor%g
21189 s%@build_os@%$build_os%g
21190 s%@CC@%$CC%g
21191 s%@CPP@%$CPP%g
21192 s%@CXX@%$CXX%g
21193 s%@RANLIB@%$RANLIB%g
21194 s%@AR@%$AR%g
21195 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21196 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21197 s%@INSTALL_DATA@%$INSTALL_DATA%g
21198 s%@STRIP@%$STRIP%g
21199 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
21200 s%@YACC@%$YACC%g
21201 s%@LEX@%$LEX%g
21202 s%@LEXLIB@%$LEXLIB%g
21203 s%@LN_S@%$LN_S%g
21204 s%@CXXCPP@%$CXXCPP%g
21205 s%@PKG_CONFIG@%$PKG_CONFIG%g
21206 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21207 s%@GTK_LIBS@%$GTK_LIBS%g
21208 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
21209 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
21210 s%@GTK_CONFIG@%$GTK_CONFIG%g
21211 s%@X_CFLAGS@%$X_CFLAGS%g
21212 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21213 s%@X_LIBS@%$X_LIBS%g
21214 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
21215 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
21216 s%@RESCOMP@%$RESCOMP%g
21217 s%@DEREZ@%$DEREZ%g
21218 s%@LIBICONV@%$LIBICONV%g
21219 s%@LEX_STEM@%$LEX_STEM%g
21220 s%@PATH_IFS@%$PATH_IFS%g
21221 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21222 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21223 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
21224 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21225 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
21226 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
21227 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21228 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21229 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
21230 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
21231 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21232 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
21233 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21234 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21235 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
21236 s%@WX_ALL@%$WX_ALL%g
21237 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21238 s%@SHARED_LD@%$SHARED_LD%g
21239 s%@PIC_FLAG@%$PIC_FLAG%g
21240 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21241 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
21242 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21243 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
21244 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21245 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21246 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21247 s%@USE_GUI@%$USE_GUI%g
21248 s%@AFMINSTALL@%$AFMINSTALL%g
21249 s%@TOOLKIT@%$TOOLKIT%g
21250 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
21251 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
21252 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21253 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
21254 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
21255 s%@cross_compiling@%$cross_compiling%g
21256 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21257 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
21258 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21259 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
21260 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21261 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
21262 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
21263 s%@ALL_HEADERS@%$ALL_HEADERS%g
21264 s%@ALL_SOURCES@%$ALL_SOURCES%g
21265 s%@GUIDIST@%$GUIDIST%g
21266 s%@PORT_FILES@%$PORT_FILES%g
21267 s%@DISTDIR@%$DISTDIR%g
21268 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
21269 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
21270 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
21271 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
21272 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
21273 s%@EXTRADEFS@%$EXTRADEFS%g
21274 s%@RESFLAGS@%$RESFLAGS%g
21275 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
21276 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21277 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
21278 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
21279 s%@LIBWXMACRES@%$LIBWXMACRES%g
21280 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
21281 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
21282 s%@DLLTOOL@%$DLLTOOL%g
21283 s%@AS@%$AS%g
21284 s%@NM@%$NM%g
21285 s%@LD@%$LD%g
21286 s%@MAKEINFO@%$MAKEINFO%g
21287 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
21288 s%@SET_MAKE@%$SET_MAKE%g
21289 s%@subdirs@%$subdirs%g
21290
21291 CEOF
21292 EOF
21293
21294 cat >> $CONFIG_STATUS <<\EOF
21295
21296 # Split the substitutions into bite-sized pieces for seds with
21297 # small command number limits, like on Digital OSF/1 and HP-UX.
21298 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21299 ac_file=1 # Number of current file.
21300 ac_beg=1 # First line for current file.
21301 ac_end=$ac_max_sed_cmds # Line after last line for current file.
21302 ac_more_lines=:
21303 ac_sed_cmds=""
21304 while $ac_more_lines; do
21305 if test $ac_beg -gt 1; then
21306 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21307 else
21308 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21309 fi
21310 if test ! -s conftest.s$ac_file; then
21311 ac_more_lines=false
21312 rm -f conftest.s$ac_file
21313 else
21314 if test -z "$ac_sed_cmds"; then
21315 ac_sed_cmds="sed -f conftest.s$ac_file"
21316 else
21317 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21318 fi
21319 ac_file=`expr $ac_file + 1`
21320 ac_beg=$ac_end
21321 ac_end=`expr $ac_end + $ac_max_sed_cmds`
21322 fi
21323 done
21324 if test -z "$ac_sed_cmds"; then
21325 ac_sed_cmds=cat
21326 fi
21327 EOF
21328
21329 cat >> $CONFIG_STATUS <<EOF
21330
21331 CONFIG_FILES=\${CONFIG_FILES-"wx-config
21332 src/make.env
21333 src/makeprog.env
21334 src/makelib.env
21335 Makefile
21336 "}
21337 EOF
21338 cat >> $CONFIG_STATUS <<\EOF
21339 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21340 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21341 case "$ac_file" in
21342 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21343 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21344 *) ac_file_in="${ac_file}.in" ;;
21345 esac
21346
21347 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21348
21349 # Remove last slash and all that follows it. Not all systems have dirname.
21350 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21351 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21352 # The file is in a subdirectory.
21353 test ! -d "$ac_dir" && mkdir "$ac_dir"
21354 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21355 # A "../" for each directory in $ac_dir_suffix.
21356 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21357 else
21358 ac_dir_suffix= ac_dots=
21359 fi
21360
21361 case "$ac_given_srcdir" in
21362 .) srcdir=.
21363 if test -z "$ac_dots"; then top_srcdir=.
21364 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21365 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21366 *) # Relative path.
21367 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21368 top_srcdir="$ac_dots$ac_given_srcdir" ;;
21369 esac
21370
21371 case "$ac_given_INSTALL" in
21372 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21373 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21374 esac
21375
21376 echo creating "$ac_file"
21377 rm -f "$ac_file"
21378 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21379 case "$ac_file" in
21380 *Makefile*) ac_comsub="1i\\
21381 # $configure_input" ;;
21382 *) ac_comsub= ;;
21383 esac
21384
21385 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21386 sed -e "$ac_comsub
21387 s%@configure_input@%$configure_input%g
21388 s%@srcdir@%$srcdir%g
21389 s%@top_srcdir@%$top_srcdir%g
21390 s%@INSTALL@%$INSTALL%g
21391 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21392 fi; done
21393 rm -f conftest.s*
21394
21395 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21396 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21397 #
21398 # ac_d sets the value in "#define NAME VALUE" lines.
21399 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21400 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21401 ac_dC='\3'
21402 ac_dD='%g'
21403 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21404 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21405 ac_uB='\([ ]\)%\1#\2define\3'
21406 ac_uC=' '
21407 ac_uD='\4%g'
21408 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21409 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21410 ac_eB='$%\1#\2define\3'
21411 ac_eC=' '
21412 ac_eD='%g'
21413
21414 if test "${CONFIG_HEADERS+set}" != set; then
21415 EOF
21416 cat >> $CONFIG_STATUS <<EOF
21417 CONFIG_HEADERS="setup.h:setup.h.in"
21418 EOF
21419 cat >> $CONFIG_STATUS <<\EOF
21420 fi
21421 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21422 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21423 case "$ac_file" in
21424 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21425 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21426 *) ac_file_in="${ac_file}.in" ;;
21427 esac
21428
21429 echo creating $ac_file
21430
21431 rm -f conftest.frag conftest.in conftest.out
21432 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21433 cat $ac_file_inputs > conftest.in
21434
21435 EOF
21436
21437 # Transform confdefs.h into a sed script conftest.vals that substitutes
21438 # the proper values into config.h.in to produce config.h. And first:
21439 # Protect against being on the right side of a sed subst in config.status.
21440 # Protect against being in an unquoted here document in config.status.
21441 rm -f conftest.vals
21442 cat > conftest.hdr <<\EOF
21443 s/[\\&%]/\\&/g
21444 s%[\\$`]%\\&%g
21445 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21446 s%ac_d%ac_u%gp
21447 s%ac_u%ac_e%gp
21448 EOF
21449 sed -n -f conftest.hdr confdefs.h > conftest.vals
21450 rm -f conftest.hdr
21451
21452 # This sed command replaces #undef with comments. This is necessary, for
21453 # example, in the case of _POSIX_SOURCE, which is predefined and required
21454 # on some systems where configure will not decide to define it.
21455 cat >> conftest.vals <<\EOF
21456 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21457 EOF
21458
21459 # Break up conftest.vals because some shells have a limit on
21460 # the size of here documents, and old seds have small limits too.
21461
21462 rm -f conftest.tail
21463 while :
21464 do
21465 ac_lines=`grep -c . conftest.vals`
21466 # grep -c gives empty output for an empty file on some AIX systems.
21467 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21468 # Write a limited-size here document to conftest.frag.
21469 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21470 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21471 echo 'CEOF
21472 sed -f conftest.frag conftest.in > conftest.out
21473 rm -f conftest.in
21474 mv conftest.out conftest.in
21475 ' >> $CONFIG_STATUS
21476 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21477 rm -f conftest.vals
21478 mv conftest.tail conftest.vals
21479 done
21480 rm -f conftest.vals
21481
21482 cat >> $CONFIG_STATUS <<\EOF
21483 rm -f conftest.frag conftest.h
21484 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21485 cat conftest.in >> conftest.h
21486 rm -f conftest.in
21487 if cmp -s $ac_file conftest.h 2>/dev/null; then
21488 echo "$ac_file is unchanged"
21489 rm -f conftest.h
21490 else
21491 # Remove last slash and all that follows it. Not all systems have dirname.
21492 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21493 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21494 # The file is in a subdirectory.
21495 test ! -d "$ac_dir" && mkdir "$ac_dir"
21496 fi
21497 rm -f $ac_file
21498 mv conftest.h $ac_file
21499 fi
21500 fi; done
21501
21502 EOF
21503 cat >> $CONFIG_STATUS <<EOF
21504
21505 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21506 LN_S="${LN_S}"
21507
21508
21509 EOF
21510 cat >> $CONFIG_STATUS <<\EOF
21511
21512 if test ! -h wx-config; then
21513 chmod +x wx-config
21514 mv wx-config wx${TOOLCHAIN_NAME}-config
21515 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21516 fi
21517
21518 if test ! -d lib; then
21519 mkdir lib
21520 fi
21521 if test ! -d lib/wx; then
21522 mkdir lib/wx
21523 fi
21524 if test ! -d lib/wx/include; then
21525 mkdir lib/wx/include
21526 fi
21527 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21528 mkdir lib/wx/include/${TOOLCHAIN_NAME}
21529 fi
21530 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21531 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21532 fi
21533 if test -f setup.h; then
21534 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21535 fi
21536
21537 exit 0
21538 EOF
21539 chmod +x $CONFIG_STATUS
21540 rm -fr confdefs* $ac_clean_files
21541 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21542
21543 if test "$no_recursion" != yes; then
21544
21545 # Remove --cache-file and --srcdir arguments so they do not pile up.
21546 ac_sub_configure_args=
21547 ac_prev=
21548 for ac_arg in $ac_configure_args; do
21549 if test -n "$ac_prev"; then
21550 ac_prev=
21551 continue
21552 fi
21553 case "$ac_arg" in
21554 -cache-file | --cache-file | --cache-fil | --cache-fi \
21555 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21556 ac_prev=cache_file ;;
21557 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21558 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21559 ;;
21560 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21561 ac_prev=srcdir ;;
21562 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21563 ;;
21564 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21565 esac
21566 done
21567
21568 for ac_config_dir in demos samples utils contrib; do
21569
21570 # Do not complain, so a configure script can configure whichever
21571 # parts of a large source tree are present.
21572 if test ! -d $srcdir/$ac_config_dir; then
21573 continue
21574 fi
21575
21576 echo configuring in $ac_config_dir
21577
21578 case "$srcdir" in
21579 .) ;;
21580 *)
21581 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21582 else
21583 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21584 fi
21585 ;;
21586 esac
21587
21588 ac_popdir=`pwd`
21589 cd $ac_config_dir
21590
21591 # A "../" for each directory in /$ac_config_dir.
21592 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21593
21594 case "$srcdir" in
21595 .) # No --srcdir option. We are building in place.
21596 ac_sub_srcdir=$srcdir ;;
21597 /*) # Absolute path.
21598 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21599 *) # Relative path.
21600 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21601 esac
21602
21603 # Check for guested configure; otherwise get Cygnus style configure.
21604 if test -f $ac_sub_srcdir/configure; then
21605 ac_sub_configure=$ac_sub_srcdir/configure
21606 elif test -f $ac_sub_srcdir/configure.in; then
21607 ac_sub_configure=$ac_configure
21608 else
21609 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21610 ac_sub_configure=
21611 fi
21612
21613 # The recursion is here.
21614 if test -n "$ac_sub_configure"; then
21615
21616 # Make the cache file name correct relative to the subdirectory.
21617 case "$cache_file" in
21618 /*) ac_sub_cache_file=$cache_file ;;
21619 *) # Relative path.
21620 ac_sub_cache_file="$ac_dots$cache_file" ;;
21621 esac
21622 case "$ac_given_INSTALL" in
21623 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21624 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21625 esac
21626
21627 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21628 # The eval makes quoting arguments work.
21629 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21630 then :
21631 else
21632 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21633 fi
21634 fi
21635
21636 cd $ac_popdir
21637 done
21638 fi
21639
21640