]> git.saurik.com Git - wxWidgets.git/blob - configure
subcell selection
[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
60
61
62
63
64
65 # Configure paths for GTK+
66 # Owen Taylor 1997-2001
67
68
69
70 # Configure paths for GTK+
71 # Owen Taylor 97-11-3
72
73
74
75
76
77
78
79
80 # Guess values for system-dependent variables and create Makefiles.
81 # Generated automatically using autoconf version 2.13
82 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
83 #
84 # This configure script is free software; the Free Software Foundation
85 # gives unlimited permission to copy, distribute and modify it.
86
87 # Defaults:
88 ac_help=
89 ac_default_prefix=/usr/local
90 # Any additions from configure.in:
91 ac_help="$ac_help
92 --enable-gui use GUI classes"
93 ac_help="$ac_help
94 --enable-universal use wxWindows GUI controls instead of native ones"
95 ac_help="$ac_help
96 --with-gtk use GTK+"
97 ac_help="$ac_help
98 --with-motif use Motif/Lesstif"
99 ac_help="$ac_help
100 --with-mac use Mac OS X"
101 ac_help="$ac_help
102 --with-cocoa use Cocoa"
103 ac_help="$ac_help
104 --with-wine use Wine"
105 ac_help="$ac_help
106 --with-msw use MS-Windows"
107 ac_help="$ac_help
108 --with-pm use OS/2 Presentation Manager"
109 ac_help="$ac_help
110 --with-mgl use SciTech MGL"
111 ac_help="$ac_help
112 --with-microwin use MicroWindows"
113 ac_help="$ac_help
114 --with-x11 use X11"
115 ac_help="$ac_help
116 --enable-nanox use NanoX"
117 ac_help="$ac_help
118 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
119 ac_help="$ac_help
120 --with-libpng use libpng (PNG image format)"
121 ac_help="$ac_help
122 --with-libjpeg use libjpeg (JPEG file format)"
123 ac_help="$ac_help
124 --with-libtiff use libtiff (TIFF file format)"
125 ac_help="$ac_help
126 --with-opengl use OpenGL (or Mesa)"
127 ac_help="$ac_help
128 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
129 ac_help="$ac_help
130 --with-regex enable support for wxRegEx class"
131 ac_help="$ac_help
132 --with-zlib use zlib for LZW compression"
133 ac_help="$ac_help
134 --with-odbc use the IODBC and wxODBC classes"
135 ac_help="$ac_help
136 --enable-shared create shared library code"
137 ac_help="$ac_help
138 --enable-soname set the DT_SONAME field in ELF shared libraries"
139 ac_help="$ac_help
140 --enable-optimise create optimised code"
141 ac_help="$ac_help
142 --enable-debug same as debug_flag and debug_info"
143 ac_help="$ac_help
144 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
145 ac_help="$ac_help
146 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
147 ac_help="$ac_help
148 --enable-debug_info create code with debugging information"
149 ac_help="$ac_help
150 --enable-debug_gdb create code with extra GDB debugging information"
151 ac_help="$ac_help
152 --enable-debug_cntxt use wxDebugContext"
153 ac_help="$ac_help
154 --enable-mem_tracing create code with memory tracing"
155 ac_help="$ac_help
156 --enable-profile create code with profiling information"
157 ac_help="$ac_help
158 --enable-no_rtti create code without RTTI information"
159 ac_help="$ac_help
160 --enable-no_exceptions create code without C++ exceptions handling"
161 ac_help="$ac_help
162 --enable-permissive compile code disregarding strict ANSI"
163 ac_help="$ac_help
164 --enable-no_deps create code without dependency information"
165 ac_help="$ac_help
166 --enable-compat20 enable wxWindows 2.0 compatibility"
167 ac_help="$ac_help
168 --enable-compat22 enable wxWindows 2.2 compatibility"
169 ac_help="$ac_help
170 --disable-compat24 disable wxWindows 2.4 compatibility"
171 ac_help="$ac_help
172 --enable-rpath=DIR output the rpath flag from wx-config"
173 ac_help="$ac_help
174 --enable-intl use internationalization system"
175 ac_help="$ac_help
176 --enable-config use wxConfig (and derived) classes"
177 ac_help="$ac_help
178 --enable-protocols use wxProtocol and derived classes"
179 ac_help="$ac_help
180 --enable-ftp use wxFTP (requires wxProtocol"
181 ac_help="$ac_help
182 --enable-http use wxHTTP (requires wxProtocol"
183 ac_help="$ac_help
184 --enable-fileproto use wxFileProto class (requires wxProtocol"
185 ac_help="$ac_help
186 --enable-sockets use socket/network classes"
187 ac_help="$ac_help
188 --enable-ole use OLE classes"
189 ac_help="$ac_help
190 --enable-dataobj use data object classes"
191 ac_help="$ac_help
192 --enable-ipc use interprocess communication (wxSocket etc.)"
193 ac_help="$ac_help
194 --enable-cmdline use wxCmdLineParser class"
195 ac_help="$ac_help
196 --enable-datetime use wxDateTime class"
197 ac_help="$ac_help
198 --enable-stopwatch use wxStopWatch class"
199 ac_help="$ac_help
200 --enable-dialupman use dialup network classes"
201 ac_help="$ac_help
202 --enable-apple_ieee use the Apple IEEE codec"
203 ac_help="$ac_help
204 --enable-timer use wxTimer class"
205 ac_help="$ac_help
206 --enable-wave use wxWave class"
207 ac_help="$ac_help
208 --enable-fraction use wxFraction class"
209 ac_help="$ac_help
210 --enable-dynlib use wxLibrary class for DLL loading"
211 ac_help="$ac_help
212 --enable-dynamicloader use (new) wxDynamicLibrary class"
213 ac_help="$ac_help
214 --enable-longlong use wxLongLong class"
215 ac_help="$ac_help
216 --enable-geometry use geometry class"
217 ac_help="$ac_help
218 --enable-log use logging system"
219 ac_help="$ac_help
220 --enable-streams use wxStream etc classes"
221 ac_help="$ac_help
222 --enable-file use wxFile classes"
223 ac_help="$ac_help
224 --enable-ffile use wxFFile classes"
225 ac_help="$ac_help
226 --enable-textbuf use wxTextBuffer class"
227 ac_help="$ac_help
228 --enable-textfile use wxTextFile class"
229 ac_help="$ac_help
230 --enable-fontmap use font encodings conversion classes"
231 ac_help="$ac_help
232 --enable-unicode compile wxString with Unicode support"
233 ac_help="$ac_help
234 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
235 ac_help="$ac_help
236 --enable-wxprintfv use wxWindows implementation of vprintf()"
237 ac_help="$ac_help
238 --enable-std_iostreams use standard C++ stream classes"
239 ac_help="$ac_help
240 --enable-filesystem use virtual file systems classes"
241 ac_help="$ac_help
242 --enable-fs_inet use virtual HTTP/FTP filesystems"
243 ac_help="$ac_help
244 --enable-fs_zip use virtual ZIP filesystems"
245 ac_help="$ac_help
246 --enable-zipstream use wxZipInputStream"
247 ac_help="$ac_help
248 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
249 ac_help="$ac_help
250 --enable-snglinst use wxSingleInstanceChecker class"
251 ac_help="$ac_help
252 --enable-mimetype use wxMimeTypesManager"
253 ac_help="$ac_help
254 --enable-sysoptions use wxSystemOptions"
255 ac_help="$ac_help
256 --enable-url use wxURL class"
257 ac_help="$ac_help
258 --enable-protocol use wxProtocol class"
259 ac_help="$ac_help
260 --enable-protocol-http HTTP support in wxProtocol"
261 ac_help="$ac_help
262 --enable-protocol-ftp FTP support in wxProtocol"
263 ac_help="$ac_help
264 --enable-protocol-file FILE support in wxProtocol"
265 ac_help="$ac_help
266 --enable-threads use threads"
267 ac_help="$ac_help
268 --enable-docview use document view architecture"
269 ac_help="$ac_help
270 --enable-help use help subsystem"
271 ac_help="$ac_help
272 --enable-mshtmlhelp use MS HTML Help (win32)"
273 ac_help="$ac_help
274 --enable-html use wxHTML sub-library"
275 ac_help="$ac_help
276 --enable-htmlhelp use wxHTML-based help"
277 ac_help="$ac_help
278 --enable-constraints use layout-constraints system"
279 ac_help="$ac_help
280 --enable-printarch use printing architecture"
281 ac_help="$ac_help
282 --enable-mdi use multiple document interface architecture"
283 ac_help="$ac_help
284 --enable-loggui use standard GUI logger"
285 ac_help="$ac_help
286 --enable-logwin use wxLogWindow"
287 ac_help="$ac_help
288 --enable-logdialog use wxLogDialog"
289 ac_help="$ac_help
290 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
291 ac_help="$ac_help
292 --enable-prologio not available; see contrib"
293 ac_help="$ac_help
294 --enable-resources not available; see contrib"
295 ac_help="$ac_help
296 --enable-clipboard use wxClipboard class"
297 ac_help="$ac_help
298 --enable-dnd use Drag'n'Drop classes"
299 ac_help="$ac_help
300 --enable-metafile use win32 metafiles"
301 ac_help="$ac_help
302 --enable-controls use all usual controls"
303 ac_help="$ac_help
304 --enable-accel use accelerators"
305 ac_help="$ac_help
306 --enable-button use wxButton class"
307 ac_help="$ac_help
308 --enable-bmpbutton use wxBitmapButton class"
309 ac_help="$ac_help
310 --enable-calendar use wxCalendarCtrl class"
311 ac_help="$ac_help
312 --enable-caret use wxCaret class"
313 ac_help="$ac_help
314 --enable-checkbox use wxCheckBox class"
315 ac_help="$ac_help
316 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
317 ac_help="$ac_help
318 --enable-choice use wxChoice class"
319 ac_help="$ac_help
320 --enable-combobox use wxComboBox class"
321 ac_help="$ac_help
322 --enable-display use wxDisplay class"
323 ac_help="$ac_help
324 --enable-gauge use wxGauge class"
325 ac_help="$ac_help
326 --enable-grid use wxGrid class"
327 ac_help="$ac_help
328 --enable-imaglist use wxImageList class"
329 ac_help="$ac_help
330 --enable-listbox use wxListBox class"
331 ac_help="$ac_help
332 --enable-listctrl use wxListCtrl class"
333 ac_help="$ac_help
334 --enable-notebook use wxNotebook class"
335 ac_help="$ac_help
336 --enable-radiobox use wxRadioBox class"
337 ac_help="$ac_help
338 --enable-radiobtn use wxRadioButton class"
339 ac_help="$ac_help
340 --enable-sash use wxSashWindow class"
341 ac_help="$ac_help
342 --enable-scrollbar use wxScrollBar class and scrollable windows"
343 ac_help="$ac_help
344 --enable-slider use wxSlider class"
345 ac_help="$ac_help
346 --enable-spinbtn use wxSpinButton class"
347 ac_help="$ac_help
348 --enable-spinctrl use wxSpinCtrl class"
349 ac_help="$ac_help
350 --enable-splitter use wxSplitterWindow class"
351 ac_help="$ac_help
352 --enable-statbmp use wxStaticBitmap class"
353 ac_help="$ac_help
354 --enable-statbox use wxStaticBox class"
355 ac_help="$ac_help
356 --enable-statline use wxStaticLine class"
357 ac_help="$ac_help
358 --enable-stattext use wxStaticText class"
359 ac_help="$ac_help
360 --enable-statusbar use wxStatusBar class"
361 ac_help="$ac_help
362 --enable-tabdialog use wxTabControl class"
363 ac_help="$ac_help
364 --enable-textctrl use wxTextCtrl class"
365 ac_help="$ac_help
366 --enable-togglebtn use wxToggleButton class"
367 ac_help="$ac_help
368 --enable-toolbar use wxToolBar class"
369 ac_help="$ac_help
370 --enable-tbarnative use native wxToolBar class"
371 ac_help="$ac_help
372 --enable-tbarsmpl use wxToolBarSimple class"
373 ac_help="$ac_help
374 --enable-treectrl use wxTreeCtrl class"
375 ac_help="$ac_help
376 --enable-tipwindow use wxTipWindow class"
377 ac_help="$ac_help
378 --enable-popupwin use wxPopUpWindow class"
379 ac_help="$ac_help
380 --enable-commondlg use all common dialogs"
381 ac_help="$ac_help
382 --enable-choicedlg use wxChoiceDialog"
383 ac_help="$ac_help
384 --enable-coldlg use wxColourDialog"
385 ac_help="$ac_help
386 --enable-filedlg use wxFileDialog"
387 ac_help="$ac_help
388 --enable-finddlg use wxFindReplaceDialog"
389 ac_help="$ac_help
390 --enable-fontdlg use wxFontDialog"
391 ac_help="$ac_help
392 --enable-dirdlg use wxDirDialog"
393 ac_help="$ac_help
394 --enable-msgdlg use wxMessageDialog"
395 ac_help="$ac_help
396 --enable-numberdlg use wxNumberEntryDialog"
397 ac_help="$ac_help
398 --enable-splash use wxSplashScreen"
399 ac_help="$ac_help
400 --enable-textdlg use wxTextDialog"
401 ac_help="$ac_help
402 --enable-tipdlg use startup tips"
403 ac_help="$ac_help
404 --enable-progressdlg use wxProgressDialog"
405 ac_help="$ac_help
406 --enable-wizarddlg use wxWizard"
407 ac_help="$ac_help
408 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
409 ac_help="$ac_help
410 --enable-miniframe use wxMiniFrame class"
411 ac_help="$ac_help
412 --enable-tooltips use wxToolTip class"
413 ac_help="$ac_help
414 --enable-splines use spline drawing code"
415 ac_help="$ac_help
416 --enable-validators use wxValidator and derived classes"
417 ac_help="$ac_help
418 --enable-busyinfo use wxBusyInfo"
419 ac_help="$ac_help
420 --enable-joystick use wxJoystick (Linux only)"
421 ac_help="$ac_help
422 --enable-metafiles use wxMetaFile (Windows only)"
423 ac_help="$ac_help
424 --enable-dragimage use wxDragImage"
425 ac_help="$ac_help
426 --enable-accessibility enable accessibility support"
427 ac_help="$ac_help
428 --enable-palette use wxPalette class"
429 ac_help="$ac_help
430 --enable-image use wxImage class"
431 ac_help="$ac_help
432 --enable-gif use gif images (GIF file format)"
433 ac_help="$ac_help
434 --enable-pcx use pcx images (PCX file format)"
435 ac_help="$ac_help
436 --enable-iff use iff images (IFF file format)"
437 ac_help="$ac_help
438 --enable-pnm use pnm images (PNM file format)"
439 ac_help="$ac_help
440 --enable-xpm use xpm images (XPM file format)"
441 ac_help="$ac_help
442 --enable-icocur use Windows ICO and CUR formats"
443 ac_help="$ac_help
444 --disable-largefile omit support for large files"
445 ac_help="$ac_help
446 --disable-gtktest do not try to compile and run a test GTK+ program"
447 ac_help="$ac_help
448 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
449 ac_help="$ac_help
450 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
451 ac_help="$ac_help
452 --disable-gtktest Do not try to compile and run a test GTK program"
453 ac_help="$ac_help
454 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
455 ac_help="$ac_help
456 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
457 ac_help="$ac_help
458 --disable-gtktest Do not try to compile and run a test GTK program"
459 ac_help="$ac_help
460 --with-x use the X Window System"
461 ac_help="$ac_help
462 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
463
464 # Initialize some variables set by options.
465 # The variables have the same names as the options, with
466 # dashes changed to underlines.
467 build=NONE
468 cache_file=./config.cache
469 exec_prefix=NONE
470 host=NONE
471 no_create=
472 nonopt=NONE
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 target=NONE
482 verbose=
483 x_includes=NONE
484 x_libraries=NONE
485 bindir='${exec_prefix}/bin'
486 sbindir='${exec_prefix}/sbin'
487 libexecdir='${exec_prefix}/libexec'
488 datadir='${prefix}/share'
489 sysconfdir='${prefix}/etc'
490 sharedstatedir='${prefix}/com'
491 localstatedir='${prefix}/var'
492 libdir='${exec_prefix}/lib'
493 includedir='${prefix}/include'
494 oldincludedir='/usr/include'
495 infodir='${prefix}/info'
496 mandir='${prefix}/man'
497
498 # Initialize some other variables.
499 subdirs=
500 MFLAGS= MAKEFLAGS=
501 SHELL=${CONFIG_SHELL-/bin/sh}
502 # Maximum number of lines to put in a shell here document.
503 ac_max_here_lines=12
504
505 ac_prev=
506 for ac_option
507 do
508
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
512 ac_prev=
513 continue
514 fi
515
516 case "$ac_option" in
517 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
518 *) ac_optarg= ;;
519 esac
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case "$ac_option" in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir="$ac_optarg" ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build="$ac_optarg" ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file="$ac_optarg" ;;
541
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543 ac_prev=datadir ;;
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545 | --da=*)
546 datadir="$ac_optarg" ;;
547
548 -disable-* | --disable-*)
549 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
550 # Reject names that are not valid shell variable names.
551 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
552 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
553 fi
554 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
555 eval "enable_${ac_feature}=no" ;;
556
557 -enable-* | --enable-*)
558 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
559 # Reject names that are not valid shell variable names.
560 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
561 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
562 fi
563 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
564 case "$ac_option" in
565 *=*) ;;
566 *) ac_optarg=yes ;;
567 esac
568 eval "enable_${ac_feature}='$ac_optarg'" ;;
569
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix="$ac_optarg" ;;
578
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
581 with_gas=yes ;;
582
583 -help | --help | --hel | --he)
584 # Omit some internal or obsolete options to make the list less imposing.
585 # This message is too long to be a string in the A/UX 3.1 sh.
586 cat << EOF
587 Usage: configure [options] [host]
588 Options: [defaults in brackets after descriptions]
589 Configuration:
590 --cache-file=FILE cache test results in FILE
591 --help print this message
592 --no-create do not create output files
593 --quiet, --silent do not print \`checking...' messages
594 --version print the version of autoconf that created configure
595 Directory and file names:
596 --prefix=PREFIX install architecture-independent files in PREFIX
597 [$ac_default_prefix]
598 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
599 [same as prefix]
600 --bindir=DIR user executables in DIR [EPREFIX/bin]
601 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
602 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
603 --datadir=DIR read-only architecture-independent data in DIR
604 [PREFIX/share]
605 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
606 --sharedstatedir=DIR modifiable architecture-independent data in DIR
607 [PREFIX/com]
608 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
609 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
610 --includedir=DIR C header files in DIR [PREFIX/include]
611 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
612 --infodir=DIR info documentation in DIR [PREFIX/info]
613 --mandir=DIR man documentation in DIR [PREFIX/man]
614 --srcdir=DIR find the sources in DIR [configure dir or ..]
615 --program-prefix=PREFIX prepend PREFIX to installed program names
616 --program-suffix=SUFFIX append SUFFIX to installed program names
617 --program-transform-name=PROGRAM
618 run sed PROGRAM on installed program names
619 EOF
620 cat << EOF
621 Host type:
622 --build=BUILD configure for building on BUILD [BUILD=HOST]
623 --host=HOST configure for HOST [guessed]
624 --target=TARGET configure for TARGET [TARGET=HOST]
625 Features and packages:
626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
630 --x-includes=DIR X include files are in DIR
631 --x-libraries=DIR X library files are in DIR
632 EOF
633 if test -n "$ac_help"; then
634 echo "--enable and --with options recognized:$ac_help"
635 fi
636 exit 0 ;;
637
638 -host | --host | --hos | --ho)
639 ac_prev=host ;;
640 -host=* | --host=* | --hos=* | --ho=*)
641 host="$ac_optarg" ;;
642
643 -includedir | --includedir | --includedi | --included | --include \
644 | --includ | --inclu | --incl | --inc)
645 ac_prev=includedir ;;
646 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
647 | --includ=* | --inclu=* | --incl=* | --inc=*)
648 includedir="$ac_optarg" ;;
649
650 -infodir | --infodir | --infodi | --infod | --info | --inf)
651 ac_prev=infodir ;;
652 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
653 infodir="$ac_optarg" ;;
654
655 -libdir | --libdir | --libdi | --libd)
656 ac_prev=libdir ;;
657 -libdir=* | --libdir=* | --libdi=* | --libd=*)
658 libdir="$ac_optarg" ;;
659
660 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
661 | --libexe | --libex | --libe)
662 ac_prev=libexecdir ;;
663 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
664 | --libexe=* | --libex=* | --libe=*)
665 libexecdir="$ac_optarg" ;;
666
667 -localstatedir | --localstatedir | --localstatedi | --localstated \
668 | --localstate | --localstat | --localsta | --localst \
669 | --locals | --local | --loca | --loc | --lo)
670 ac_prev=localstatedir ;;
671 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
672 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
673 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
674 localstatedir="$ac_optarg" ;;
675
676 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
677 ac_prev=mandir ;;
678 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
679 mandir="$ac_optarg" ;;
680
681 -nfp | --nfp | --nf)
682 # Obsolete; use --without-fp.
683 with_fp=no ;;
684
685 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
686 | --no-cr | --no-c)
687 no_create=yes ;;
688
689 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
690 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
691 no_recursion=yes ;;
692
693 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
694 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
695 | --oldin | --oldi | --old | --ol | --o)
696 ac_prev=oldincludedir ;;
697 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
698 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
699 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
700 oldincludedir="$ac_optarg" ;;
701
702 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
703 ac_prev=prefix ;;
704 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
705 prefix="$ac_optarg" ;;
706
707 -program-prefix | --program-prefix | --program-prefi | --program-pref \
708 | --program-pre | --program-pr | --program-p)
709 ac_prev=program_prefix ;;
710 -program-prefix=* | --program-prefix=* | --program-prefi=* \
711 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
712 program_prefix="$ac_optarg" ;;
713
714 -program-suffix | --program-suffix | --program-suffi | --program-suff \
715 | --program-suf | --program-su | --program-s)
716 ac_prev=program_suffix ;;
717 -program-suffix=* | --program-suffix=* | --program-suffi=* \
718 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
719 program_suffix="$ac_optarg" ;;
720
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 ac_prev=program_transform_name ;;
729 -program-transform-name=* | --program-transform-name=* \
730 | --program-transform-nam=* | --program-transform-na=* \
731 | --program-transform-n=* | --program-transform-=* \
732 | --program-transform=* | --program-transfor=* \
733 | --program-transfo=* | --program-transf=* \
734 | --program-trans=* | --program-tran=* \
735 | --progr-tra=* | --program-tr=* | --program-t=*)
736 program_transform_name="$ac_optarg" ;;
737
738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
739 | -silent | --silent | --silen | --sile | --sil)
740 silent=yes ;;
741
742 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
743 ac_prev=sbindir ;;
744 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
745 | --sbi=* | --sb=*)
746 sbindir="$ac_optarg" ;;
747
748 -sharedstatedir | --sharedstatedir | --sharedstatedi \
749 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
750 | --sharedst | --shareds | --shared | --share | --shar \
751 | --sha | --sh)
752 ac_prev=sharedstatedir ;;
753 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
754 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
755 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
756 | --sha=* | --sh=*)
757 sharedstatedir="$ac_optarg" ;;
758
759 -site | --site | --sit)
760 ac_prev=site ;;
761 -site=* | --site=* | --sit=*)
762 site="$ac_optarg" ;;
763
764 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
765 ac_prev=srcdir ;;
766 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
767 srcdir="$ac_optarg" ;;
768
769 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
770 | --syscon | --sysco | --sysc | --sys | --sy)
771 ac_prev=sysconfdir ;;
772 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
773 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
774 sysconfdir="$ac_optarg" ;;
775
776 -target | --target | --targe | --targ | --tar | --ta | --t)
777 ac_prev=target ;;
778 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
779 target="$ac_optarg" ;;
780
781 -v | -verbose | --verbose | --verbos | --verbo | --verb)
782 verbose=yes ;;
783
784 -version | --version | --versio | --versi | --vers)
785 echo "configure generated by autoconf version 2.13"
786 exit 0 ;;
787
788 -with-* | --with-*)
789 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
790 # Reject names that are not valid shell variable names.
791 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
792 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
793 fi
794 ac_package=`echo $ac_package| sed 's/-/_/g'`
795 case "$ac_option" in
796 *=*) ;;
797 *) ac_optarg=yes ;;
798 esac
799 eval "with_${ac_package}='$ac_optarg'" ;;
800
801 -without-* | --without-*)
802 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
803 # Reject names that are not valid shell variable names.
804 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
805 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
806 fi
807 ac_package=`echo $ac_package| sed 's/-/_/g'`
808 eval "with_${ac_package}=no" ;;
809
810 --x)
811 # Obsolete; use --with-x.
812 with_x=yes ;;
813
814 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
815 | --x-incl | --x-inc | --x-in | --x-i)
816 ac_prev=x_includes ;;
817 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
818 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
819 x_includes="$ac_optarg" ;;
820
821 -x-libraries | --x-libraries | --x-librarie | --x-librari \
822 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
823 ac_prev=x_libraries ;;
824 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
825 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
826 x_libraries="$ac_optarg" ;;
827
828 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
829 ;;
830
831 *)
832 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
833 echo "configure: warning: $ac_option: invalid host type" 1>&2
834 fi
835 if test "x$nonopt" != xNONE; then
836 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
837 fi
838 nonopt="$ac_option"
839 ;;
840
841 esac
842 done
843
844 if test -n "$ac_prev"; then
845 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
846 fi
847
848 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
849
850 # File descriptor usage:
851 # 0 standard input
852 # 1 file creation
853 # 2 errors and warnings
854 # 3 some systems may open it to /dev/tty
855 # 4 used on the Kubota Titan
856 # 6 checking for... messages and results
857 # 5 compiler messages saved in config.log
858 if test "$silent" = yes; then
859 exec 6>/dev/null
860 else
861 exec 6>&1
862 fi
863 exec 5>./config.log
864
865 echo "\
866 This file contains any messages produced by compilers while
867 running configure, to aid debugging if configure makes a mistake.
868 " 1>&5
869
870 # Strip out --no-create and --no-recursion so they do not pile up.
871 # Also quote any args containing shell metacharacters.
872 ac_configure_args=
873 for ac_arg
874 do
875 case "$ac_arg" in
876 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
877 | --no-cr | --no-c) ;;
878 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
879 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
880 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
881 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
882 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
883 esac
884 done
885
886 # NLS nuisances.
887 # Only set these to C if already set. These must not be set unconditionally
888 # because not all systems understand e.g. LANG=C (notably SCO).
889 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
890 # Non-C LC_CTYPE values break the ctype check.
891 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
892 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
893 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
894 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
895
896 # confdefs.h avoids OS command line length limits that DEFS can exceed.
897 rm -rf conftest* confdefs.h
898 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
899 echo > confdefs.h
900
901 # A filename unique to this package, relative to the directory that
902 # configure is in, which we can look for to find out if srcdir is correct.
903 ac_unique_file=wx-config.in
904
905 # Find the source files, if location was not specified.
906 if test -z "$srcdir"; then
907 ac_srcdir_defaulted=yes
908 # Try the directory containing this script, then its parent.
909 ac_prog=$0
910 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
911 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
912 srcdir=$ac_confdir
913 if test ! -r $srcdir/$ac_unique_file; then
914 srcdir=..
915 fi
916 else
917 ac_srcdir_defaulted=no
918 fi
919 if test ! -r $srcdir/$ac_unique_file; then
920 if test "$ac_srcdir_defaulted" = yes; then
921 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
922 else
923 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
924 fi
925 fi
926 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
927
928 # Prefer explicitly selected file to automatically selected ones.
929 if test -z "$CONFIG_SITE"; then
930 if test "x$prefix" != xNONE; then
931 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
932 else
933 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
934 fi
935 fi
936 for ac_site_file in $CONFIG_SITE; do
937 if test -r "$ac_site_file"; then
938 echo "loading site script $ac_site_file"
939 . "$ac_site_file"
940 fi
941 done
942
943 if test -r "$cache_file"; then
944 echo "loading cache $cache_file"
945 . $cache_file
946 else
947 echo "creating cache $cache_file"
948 > $cache_file
949 fi
950
951 ac_ext=c
952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
953 ac_cpp='$CPP $CPPFLAGS'
954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
956 cross_compiling=$ac_cv_prog_cc_cross
957
958 ac_exeext=
959 ac_objext=o
960 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
961 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
962 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
963 ac_n= ac_c='
964 ' ac_t=' '
965 else
966 ac_n=-n ac_c= ac_t=
967 fi
968 else
969 ac_n= ac_c='\c' ac_t=
970 fi
971
972
973
974 ac_aux_dir=
975 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
976 if test -f $ac_dir/install-sh; then
977 ac_aux_dir=$ac_dir
978 ac_install_sh="$ac_aux_dir/install-sh -c"
979 break
980 elif test -f $ac_dir/install.sh; then
981 ac_aux_dir=$ac_dir
982 ac_install_sh="$ac_aux_dir/install.sh -c"
983 break
984 fi
985 done
986 if test -z "$ac_aux_dir"; then
987 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
988 fi
989 ac_config_guess=$ac_aux_dir/config.guess
990 ac_config_sub=$ac_aux_dir/config.sub
991 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
992
993
994 # Do some error checking and defaulting for the host and target type.
995 # The inputs are:
996 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
997 #
998 # The rules are:
999 # 1. You are not allowed to specify --host, --target, and nonopt at the
1000 # same time.
1001 # 2. Host defaults to nonopt.
1002 # 3. If nonopt is not specified, then host defaults to the current host,
1003 # as determined by config.guess.
1004 # 4. Target and build default to nonopt.
1005 # 5. If nonopt is not specified, then target and build default to host.
1006
1007 # The aliases save the names the user supplied, while $host etc.
1008 # will get canonicalized.
1009 case $host---$target---$nonopt in
1010 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1011 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1012 esac
1013
1014
1015 # Make sure we can run config.sub.
1016 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1017 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1018 fi
1019
1020 echo $ac_n "checking host system type""... $ac_c" 1>&6
1021 echo "configure:1022: checking host system type" >&5
1022
1023 host_alias=$host
1024 case "$host_alias" in
1025 NONE)
1026 case $nonopt in
1027 NONE)
1028 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1029 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1030 fi ;;
1031 *) host_alias=$nonopt ;;
1032 esac ;;
1033 esac
1034
1035 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1036 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1037 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1038 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1039 echo "$ac_t""$host" 1>&6
1040
1041 echo $ac_n "checking target system type""... $ac_c" 1>&6
1042 echo "configure:1043: checking target system type" >&5
1043
1044 target_alias=$target
1045 case "$target_alias" in
1046 NONE)
1047 case $nonopt in
1048 NONE) target_alias=$host_alias ;;
1049 *) target_alias=$nonopt ;;
1050 esac ;;
1051 esac
1052
1053 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1054 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057 echo "$ac_t""$target" 1>&6
1058
1059 echo $ac_n "checking build system type""... $ac_c" 1>&6
1060 echo "configure:1061: checking build system type" >&5
1061
1062 build_alias=$build
1063 case "$build_alias" in
1064 NONE)
1065 case $nonopt in
1066 NONE) build_alias=$host_alias ;;
1067 *) build_alias=$nonopt ;;
1068 esac ;;
1069 esac
1070
1071 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1072 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1073 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1074 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075 echo "$ac_t""$build" 1>&6
1076
1077 test "$host_alias" != "$target_alias" &&
1078 test "$program_prefix$program_suffix$program_transform_name" = \
1079 NONENONEs,x,x, &&
1080 program_prefix=${target_alias}-
1081
1082
1083
1084 WX_MAJOR_VERSION_NUMBER=2
1085 WX_MINOR_VERSION_NUMBER=5
1086 WX_RELEASE_NUMBER=0
1087
1088 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1089 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1090
1091 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1092
1093 WX_CURRENT=0
1094 WX_REVISION=0
1095 WX_AGE=0
1096
1097
1098
1099 USE_UNIX=1
1100 USE_WIN32=0
1101 USE_DOS=0
1102 USE_BEOS=0
1103 USE_MAC=0
1104
1105 USE_AIX=
1106 USE_BSD=
1107 USE_DARWIN=
1108 USE_FREEBSD=
1109 USE_HPUX=
1110 USE_LINUX=
1111 USE_NETBSD=
1112 USE_OPENBSD=
1113 USE_OSF=
1114 USE_SGI=
1115 USE_SOLARIS=
1116 USE_SUN=
1117 USE_SUNOS=
1118 USE_SVR4=
1119 USE_SYSV=
1120 USE_VMS=
1121 USE_ULTRIX=
1122 USE_UNIXWARE=
1123
1124 USE_ALPHA=
1125
1126 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1127
1128 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1129
1130 DEFAULT_wxUSE_COCOA=0
1131 DEFAULT_wxUSE_GTK=0
1132 DEFAULT_wxUSE_MAC=0
1133 DEFAULT_wxUSE_MGL=0
1134 DEFAULT_wxUSE_MICROWIN=0
1135 DEFAULT_wxUSE_MOTIF=0
1136 DEFAULT_wxUSE_MSW=0
1137 DEFAULT_wxUSE_PM=0
1138 DEFAULT_wxUSE_X11=0
1139
1140 DEFAULT_DEFAULT_wxUSE_COCOA=0
1141 DEFAULT_DEFAULT_wxUSE_GTK=0
1142 DEFAULT_DEFAULT_wxUSE_MAC=0
1143 DEFAULT_DEFAULT_wxUSE_MGL=0
1144 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1145 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1146 DEFAULT_DEFAULT_wxUSE_MSW=0
1147 DEFAULT_DEFAULT_wxUSE_PM=0
1148 DEFAULT_DEFAULT_wxUSE_X11=0
1149
1150 PROGRAM_EXT=
1151 SO_SUFFIX=so
1152
1153 case "${host}" in
1154 *-hp-hpux* )
1155 USE_HPUX=1
1156 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1157 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1158 SO_SUFFIX=sl
1159 cat >> confdefs.h <<\EOF
1160 #define __HPUX__ 1
1161 EOF
1162
1163 ;;
1164 *-*-linux* )
1165 USE_LINUX=1
1166 cat >> confdefs.h <<\EOF
1167 #define __LINUX__ 1
1168 EOF
1169
1170 TMP=`uname -m`
1171 if test "x$TMP" = "xalpha"; then
1172 USE_ALPHA=1
1173 cat >> confdefs.h <<\EOF
1174 #define __ALPHA__ 1
1175 EOF
1176
1177 fi
1178 DEFAULT_DEFAULT_wxUSE_GTK=1
1179 ;;
1180 *-*-irix5* | *-*-irix6* )
1181 USE_SGI=1
1182 USE_SVR4=1
1183 cat >> confdefs.h <<\EOF
1184 #define __SGI__ 1
1185 EOF
1186
1187 cat >> confdefs.h <<\EOF
1188 #define __SVR4__ 1
1189 EOF
1190
1191 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1192 ;;
1193 *-*-solaris2* )
1194 USE_SUN=1
1195 USE_SOLARIS=1
1196 USE_SVR4=1
1197 cat >> confdefs.h <<\EOF
1198 #define __SUN__ 1
1199 EOF
1200
1201 cat >> confdefs.h <<\EOF
1202 #define __SOLARIS__ 1
1203 EOF
1204
1205 cat >> confdefs.h <<\EOF
1206 #define __SVR4__ 1
1207 EOF
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1210 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1211 ;;
1212 *-*-sunos4* )
1213 USE_SUN=1
1214 USE_SUNOS=1
1215 USE_BSD=1
1216 cat >> confdefs.h <<\EOF
1217 #define __SUN__ 1
1218 EOF
1219
1220 cat >> confdefs.h <<\EOF
1221 #define __SUNOS__ 1
1222 EOF
1223
1224 cat >> confdefs.h <<\EOF
1225 #define __BSD__ 1
1226 EOF
1227
1228 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1229 ;;
1230 *-*-freebsd*)
1231 USE_BSD=1
1232 USE_FREEBSD=1
1233 cat >> confdefs.h <<\EOF
1234 #define __FREEBSD__ 1
1235 EOF
1236
1237 cat >> confdefs.h <<\EOF
1238 #define __BSD__ 1
1239 EOF
1240
1241 DEFAULT_DEFAULT_wxUSE_GTK=1
1242 ;;
1243 *-*-openbsd*)
1244 USE_BSD=1
1245 USE_OPENBSD=1
1246 cat >> confdefs.h <<\EOF
1247 #define __OPENBSD__ 1
1248 EOF
1249
1250 cat >> confdefs.h <<\EOF
1251 #define __BSD__ 1
1252 EOF
1253
1254 DEFAULT_DEFAULT_wxUSE_GTK=1
1255 ;;
1256 *-*-netbsd*)
1257 USE_BSD=1
1258 USE_NETBSD=1
1259 cat >> confdefs.h <<\EOF
1260 #define __NETBSD__ 1
1261 EOF
1262
1263 cat >> confdefs.h <<\EOF
1264 #define __BSD__ 1
1265 EOF
1266
1267 DEFAULT_DEFAULT_wxUSE_GTK=1
1268 ;;
1269 *-*-osf* )
1270 USE_ALPHA=1
1271 USE_OSF=1
1272 cat >> confdefs.h <<\EOF
1273 #define __ALPHA__ 1
1274 EOF
1275
1276 cat >> confdefs.h <<\EOF
1277 #define __OSF__ 1
1278 EOF
1279
1280 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1281 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1282 ;;
1283 *-*-dgux5* )
1284 USE_ALPHA=1
1285 USE_SVR4=1
1286 cat >> confdefs.h <<\EOF
1287 #define __ALPHA__ 1
1288 EOF
1289
1290 cat >> confdefs.h <<\EOF
1291 #define __SVR4__ 1
1292 EOF
1293
1294 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1295 ;;
1296 *-*-sysv5* )
1297 USE_SYSV=1
1298 USE_SVR4=1
1299 cat >> confdefs.h <<\EOF
1300 #define __SYSV__ 1
1301 EOF
1302
1303 cat >> confdefs.h <<\EOF
1304 #define __SVR4__ 1
1305 EOF
1306
1307 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1308 ;;
1309 *-*-aix* )
1310 USE_AIX=1
1311 USE_SYSV=1
1312 USE_SVR4=1
1313 SO_SUFFIX=a
1314 cat >> confdefs.h <<\EOF
1315 #define __AIX__ 1
1316 EOF
1317
1318 cat >> confdefs.h <<\EOF
1319 #define __SYSV__ 1
1320 EOF
1321
1322 cat >> confdefs.h <<\EOF
1323 #define __SVR4__ 1
1324 EOF
1325
1326 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1327 ;;
1328
1329 *-*-*UnixWare*)
1330 USE_SYSV=1
1331 USE_SVR4=1
1332 USE_UNIXWARE=1
1333 cat >> confdefs.h <<\EOF
1334 #define __UNIXWARE__ 1
1335 EOF
1336
1337 ;;
1338
1339 *-*-cygwin* | *-*-mingw32* )
1340 SO_SUFFIX=dll
1341 PROGRAM_EXT=".exe"
1342 RESCOMP=windres
1343 DEFAULT_DEFAULT_wxUSE_MSW=1
1344 ;;
1345
1346 *-pc-msdosdjgpp )
1347 USE_UNIX=0
1348 USE_DOS=1
1349 cat >> confdefs.h <<\EOF
1350 #define __DOS__ 1
1351 EOF
1352
1353 PROGRAM_EXT=".exe"
1354 DEFAULT_DEFAULT_wxUSE_MGL=1
1355 LIBS="$LIBS -lstdc++"
1356 ;;
1357
1358 *-pc-os2_emx | *-pc-os2-emx )
1359 cat >> confdefs.h <<\EOF
1360 #define __EMX__ 1
1361 EOF
1362
1363 PROGRAM_EXT=".exe"
1364 DEFAULT_DEFAULT_wxUSE_PM=1
1365 ;;
1366
1367 powerpc-*-darwin* )
1368 USE_BSD=1
1369 USE_DARWIN=1
1370 SO_SUFFIX=dylib
1371 cat >> confdefs.h <<\EOF
1372 #define __BSD__ 1
1373 EOF
1374
1375 cat >> confdefs.h <<\EOF
1376 #define __DARWIN__ 1
1377 EOF
1378
1379 cat >> confdefs.h <<\EOF
1380 #define __POWERPC__ 1
1381 EOF
1382
1383 cat >> confdefs.h <<\EOF
1384 #define TARGET_CARBON 1
1385 EOF
1386
1387 DEFAULT_DEFAULT_wxUSE_MAC=1
1388 ;;
1389
1390 *-*-beos* )
1391 USE_BEOS=1
1392 cat >> confdefs.h <<\EOF
1393 #define __BEOS__ 1
1394 EOF
1395
1396 ;;
1397
1398 *)
1399 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1400 esac
1401
1402
1403
1404
1405 wx_arg_cache_file="configarg.cache"
1406 echo "loading argument cache $wx_arg_cache_file"
1407 rm -f ${wx_arg_cache_file}.tmp
1408 touch ${wx_arg_cache_file}.tmp
1409 touch ${wx_arg_cache_file}
1410
1411
1412 DEBUG_CONFIGURE=0
1413 if test $DEBUG_CONFIGURE = 1; then
1414 DEFAULT_wxUSE_UNIVERSAL=no
1415
1416 DEFAULT_wxUSE_NANOX=no
1417
1418 DEFAULT_wxUSE_THREADS=yes
1419
1420 DEFAULT_wxUSE_SHARED=yes
1421 DEFAULT_wxUSE_SONAME=no
1422 DEFAULT_wxUSE_OPTIMISE=no
1423 DEFAULT_wxUSE_PROFILE=no
1424 DEFAULT_wxUSE_NO_DEPS=no
1425 DEFAULT_wxUSE_NO_RTTI=no
1426 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1427 DEFAULT_wxUSE_PERMISSIVE=no
1428 DEFAULT_wxUSE_DEBUG_FLAG=yes
1429 DEFAULT_wxUSE_DEBUG_INFO=yes
1430 DEFAULT_wxUSE_DEBUG_GDB=yes
1431 DEFAULT_wxUSE_MEM_TRACING=no
1432 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1433 DEFAULT_wxUSE_DMALLOC=no
1434 DEFAULT_wxUSE_PRECOMP=no
1435 DEFAULT_wxUSE_APPLE_IEEE=no
1436
1437 DEFAULT_wxUSE_LOG=yes
1438 DEFAULT_wxUSE_LOGWINDOW=no
1439 DEFAULT_wxUSE_LOGGUI=no
1440 DEFAULT_wxUSE_LOGDIALOG=no
1441
1442 DEFAULT_wxUSE_GUI=yes
1443 DEFAULT_wxUSE_CONTROLS=no
1444
1445 DEFAULT_wxUSE_REGEX=no
1446 DEFAULT_wxUSE_ZLIB=no
1447 DEFAULT_wxUSE_LIBPNG=no
1448 DEFAULT_wxUSE_LIBJPEG=no
1449 DEFAULT_wxUSE_LIBTIFF=no
1450 DEFAULT_wxUSE_ODBC=no
1451 DEFAULT_wxUSE_OPENGL=no
1452
1453 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1454 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1455 DEFAULT_wxUSE_STD_IOSTREAM=no
1456 DEFAULT_wxUSE_CMDLINE_PARSER=no
1457 DEFAULT_wxUSE_DATETIME=no
1458 DEFAULT_wxUSE_TIMER=no
1459 DEFAULT_wxUSE_STOPWATCH=no
1460 DEFAULT_wxUSE_FILE=no
1461 DEFAULT_wxUSE_FFILE=no
1462 DEFAULT_wxUSE_TEXTBUFFER=no
1463 DEFAULT_wxUSE_TEXTFILE=no
1464 DEFAULT_wxUSE_WAVE=no
1465 DEFAULT_wxUSE_INTL=no
1466 DEFAULT_wxUSE_CONFIG=no
1467 DEFAULT_wxUSE_FONTMAP=no
1468 DEFAULT_wxUSE_STREAMS=no
1469 DEFAULT_wxUSE_SOCKETS=no
1470 DEFAULT_wxUSE_OLE=no
1471 DEFAULT_wxUSE_DATAOBJ=no
1472 DEFAULT_wxUSE_DIALUP_MANAGER=no
1473 DEFAULT_wxUSE_JOYSTICK=no
1474 DEFAULT_wxUSE_DYNLIB_CLASS=no
1475 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1476 DEFAULT_wxUSE_LONGLONG=no
1477 DEFAULT_wxUSE_GEOMETRY=no
1478
1479 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1480 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1481 DEFAULT_wxUSE_POSTSCRIPT=no
1482
1483 DEFAULT_wxUSE_CLIPBOARD=no
1484 DEFAULT_wxUSE_TOOLTIPS=no
1485 DEFAULT_wxUSE_DRAG_AND_DROP=no
1486 DEFAULT_wxUSE_DRAGIMAGE=no
1487 DEFAULT_wxUSE_SPLINES=no
1488
1489 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1490 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1491 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1492
1493 DEFAULT_wxUSE_RESOURCES=no
1494 DEFAULT_wxUSE_CONSTRAINTS=no
1495 DEFAULT_wxUSE_IPC=no
1496 DEFAULT_wxUSE_HELP=no
1497 DEFAULT_wxUSE_MS_HTML_HELP=no
1498 DEFAULT_wxUSE_WXHTML_HELP=no
1499 DEFAULT_wxUSE_TREELAYOUT=no
1500 DEFAULT_wxUSE_METAFILE=no
1501 DEFAULT_wxUSE_MIMETYPE=no
1502 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1503 DEFAULT_wxUSE_PROTOCOL=no
1504 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1505 DEFAULT_wxUSE_PROTOCOL_FTP=no
1506 DEFAULT_wxUSE_PROTOCOL_FILE=no
1507 DEFAULT_wxUSE_URL=no
1508
1509 DEFAULT_wxUSE_COMMONDLGS=no
1510 DEFAULT_wxUSE_CHOICEDLG=no
1511 DEFAULT_wxUSE_COLOURDLG=no
1512 DEFAULT_wxUSE_DIRDLG=no
1513 DEFAULT_wxUSE_FILEDLG=no
1514 DEFAULT_wxUSE_FINDREPLDLG=no
1515 DEFAULT_wxUSE_FONTDLG=no
1516 DEFAULT_wxUSE_MSGDLG=no
1517 DEFAULT_wxUSE_NUMBERDLG=no
1518 DEFAULT_wxUSE_TEXTDLG=no
1519 DEFAULT_wxUSE_SPLASH=no
1520 DEFAULT_wxUSE_STARTUP_TIPS=no
1521 DEFAULT_wxUSE_PROGRESSDLG=no
1522 DEFAULT_wxUSE_WIZARDDLG=no
1523
1524 DEFAULT_wxUSE_MENUS=no
1525 DEFAULT_wxUSE_MINIFRAME=no
1526 DEFAULT_wxUSE_HTML=no
1527 DEFAULT_wxUSE_FILESYSTEM=no
1528 DEFAULT_wxUSE_FS_INET=no
1529 DEFAULT_wxUSE_FS_ZIP=no
1530 DEFAULT_wxUSE_BUSYINFO=no
1531 DEFAULT_wxUSE_ZIPSTREAM=no
1532 DEFAULT_wxUSE_VALIDATORS=no
1533
1534 DEFAULT_wxUSE_ACCEL=no
1535 DEFAULT_wxUSE_BUTTON=no
1536 DEFAULT_wxUSE_BMPBUTTON=no
1537 DEFAULT_wxUSE_CALCTRL=no
1538 DEFAULT_wxUSE_CARET=no
1539 DEFAULT_wxUSE_CHECKBOX=no
1540 DEFAULT_wxUSE_CHECKLST=no
1541 DEFAULT_wxUSE_CHOICE=no
1542 DEFAULT_wxUSE_COMBOBOX=no
1543 DEFAULT_wxUSE_DISPLAY=no
1544 DEFAULT_wxUSE_GAUGE=no
1545 DEFAULT_wxUSE_GRID=no
1546 DEFAULT_wxUSE_IMAGLIST=no
1547 DEFAULT_wxUSE_LISTBOX=no
1548 DEFAULT_wxUSE_LISTCTRL=no
1549 DEFAULT_wxUSE_NOTEBOOK=no
1550 DEFAULT_wxUSE_RADIOBOX=no
1551 DEFAULT_wxUSE_RADIOBTN=no
1552 DEFAULT_wxUSE_SASH=no
1553 DEFAULT_wxUSE_SCROLLBAR=no
1554 DEFAULT_wxUSE_SLIDER=no
1555 DEFAULT_wxUSE_SPINBTN=no
1556 DEFAULT_wxUSE_SPINCTRL=no
1557 DEFAULT_wxUSE_SPLITTER=no
1558 DEFAULT_wxUSE_STATBMP=no
1559 DEFAULT_wxUSE_STATBOX=no
1560 DEFAULT_wxUSE_STATLINE=no
1561 DEFAULT_wxUSE_STATTEXT=no
1562 DEFAULT_wxUSE_STATUSBAR=yes
1563 DEFAULT_wxUSE_TABDIALOG=no
1564 DEFAULT_wxUSE_TEXTCTRL=no
1565 DEFAULT_wxUSE_TOGGLEBTN=no
1566 DEFAULT_wxUSE_TOOLBAR=no
1567 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1568 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1569 DEFAULT_wxUSE_TREECTRL=no
1570 DEFAULT_wxUSE_POPUPWIN=no
1571 DEFAULT_wxUSE_TIPWINDOW=no
1572
1573 DEFAULT_wxUSE_UNICODE=no
1574 DEFAULT_wxUSE_UNICODE_MSLU=no
1575 DEFAULT_wxUSE_WCSRTOMBS=no
1576
1577 DEFAULT_wxUSE_PALETTE=no
1578 DEFAULT_wxUSE_IMAGE=no
1579 DEFAULT_wxUSE_GIF=no
1580 DEFAULT_wxUSE_PCX=no
1581 DEFAULT_wxUSE_PNM=no
1582 DEFAULT_wxUSE_IFF=no
1583 DEFAULT_wxUSE_XPM=no
1584 DEFAULT_wxUSE_ICO_CUR=no
1585 DEFAULT_wxUSE_ACCESSIBILITY=no
1586 else
1587 DEFAULT_wxUSE_UNIVERSAL=no
1588
1589 DEFAULT_wxUSE_NANOX=no
1590
1591 DEFAULT_wxUSE_THREADS=yes
1592
1593 DEFAULT_wxUSE_SHARED=yes
1594 DEFAULT_wxUSE_SONAME=no
1595 DEFAULT_wxUSE_OPTIMISE=yes
1596 DEFAULT_wxUSE_PROFILE=no
1597 DEFAULT_wxUSE_NO_DEPS=no
1598 DEFAULT_wxUSE_NO_RTTI=no
1599 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1600 DEFAULT_wxUSE_PERMISSIVE=no
1601 DEFAULT_wxUSE_DEBUG_FLAG=no
1602 DEFAULT_wxUSE_DEBUG_INFO=no
1603 DEFAULT_wxUSE_DEBUG_GDB=no
1604 DEFAULT_wxUSE_MEM_TRACING=no
1605 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1606 DEFAULT_wxUSE_DMALLOC=no
1607 DEFAULT_wxUSE_PRECOMP=no
1608 DEFAULT_wxUSE_APPLE_IEEE=yes
1609
1610 DEFAULT_wxUSE_LOG=yes
1611 DEFAULT_wxUSE_LOGWINDOW=yes
1612 DEFAULT_wxUSE_LOGGUI=yes
1613 DEFAULT_wxUSE_LOGDIALOG=yes
1614
1615 DEFAULT_wxUSE_GUI=yes
1616
1617 DEFAULT_wxUSE_REGEX=yes
1618 DEFAULT_wxUSE_ZLIB=yes
1619 DEFAULT_wxUSE_LIBPNG=yes
1620 DEFAULT_wxUSE_LIBJPEG=yes
1621 DEFAULT_wxUSE_LIBTIFF=yes
1622 DEFAULT_wxUSE_ODBC=no
1623 DEFAULT_wxUSE_OPENGL=no
1624
1625 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1626 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1627 DEFAULT_wxUSE_STD_IOSTREAM=no
1628 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1629 DEFAULT_wxUSE_DATETIME=yes
1630 DEFAULT_wxUSE_TIMER=yes
1631 DEFAULT_wxUSE_STOPWATCH=yes
1632 DEFAULT_wxUSE_FILE=yes
1633 DEFAULT_wxUSE_FFILE=yes
1634 DEFAULT_wxUSE_TEXTBUFFER=yes
1635 DEFAULT_wxUSE_TEXTFILE=yes
1636 DEFAULT_wxUSE_WAVE=no
1637 DEFAULT_wxUSE_INTL=yes
1638 DEFAULT_wxUSE_CONFIG=yes
1639 DEFAULT_wxUSE_FONTMAP=yes
1640 DEFAULT_wxUSE_STREAMS=yes
1641 DEFAULT_wxUSE_SOCKETS=yes
1642 DEFAULT_wxUSE_OLE=yes
1643 DEFAULT_wxUSE_DATAOBJ=yes
1644 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1645 DEFAULT_wxUSE_JOYSTICK=yes
1646 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1647 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1648 DEFAULT_wxUSE_LONGLONG=yes
1649 DEFAULT_wxUSE_GEOMETRY=yes
1650
1651 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1652 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1653 DEFAULT_wxUSE_POSTSCRIPT=yes
1654
1655 DEFAULT_wxUSE_CLIPBOARD=yes
1656 DEFAULT_wxUSE_TOOLTIPS=yes
1657 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1658 DEFAULT_wxUSE_DRAGIMAGE=yes
1659 DEFAULT_wxUSE_SPLINES=yes
1660
1661 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1662 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1663 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1664
1665 DEFAULT_wxUSE_RESOURCES=no
1666 DEFAULT_wxUSE_CONSTRAINTS=yes
1667 DEFAULT_wxUSE_IPC=yes
1668 DEFAULT_wxUSE_HELP=yes
1669 DEFAULT_wxUSE_MS_HTML_HELP=yes
1670 DEFAULT_wxUSE_WXHTML_HELP=yes
1671 DEFAULT_wxUSE_TREELAYOUT=yes
1672 DEFAULT_wxUSE_METAFILE=yes
1673 DEFAULT_wxUSE_MIMETYPE=yes
1674 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1675 DEFAULT_wxUSE_PROTOCOL=yes
1676 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1677 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1678 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1679 DEFAULT_wxUSE_URL=yes
1680
1681 DEFAULT_wxUSE_COMMONDLGS=yes
1682 DEFAULT_wxUSE_CHOICEDLG=yes
1683 DEFAULT_wxUSE_COLOURDLG=yes
1684 DEFAULT_wxUSE_DIRDLG=yes
1685 DEFAULT_wxUSE_FILEDLG=yes
1686 DEFAULT_wxUSE_FINDREPLDLG=yes
1687 DEFAULT_wxUSE_FONTDLG=yes
1688 DEFAULT_wxUSE_MSGDLG=yes
1689 DEFAULT_wxUSE_NUMBERDLG=yes
1690 DEFAULT_wxUSE_TEXTDLG=yes
1691 DEFAULT_wxUSE_SPLASH=yes
1692 DEFAULT_wxUSE_STARTUP_TIPS=yes
1693 DEFAULT_wxUSE_PROGRESSDLG=yes
1694 DEFAULT_wxUSE_WIZARDDLG=yes
1695
1696 DEFAULT_wxUSE_MENUS=yes
1697 DEFAULT_wxUSE_MINIFRAME=yes
1698 DEFAULT_wxUSE_HTML=yes
1699 DEFAULT_wxUSE_FILESYSTEM=yes
1700 DEFAULT_wxUSE_FS_INET=yes
1701 DEFAULT_wxUSE_FS_ZIP=yes
1702 DEFAULT_wxUSE_BUSYINFO=yes
1703 DEFAULT_wxUSE_ZIPSTREAM=yes
1704 DEFAULT_wxUSE_VALIDATORS=yes
1705
1706 DEFAULT_wxUSE_ACCEL=yes
1707 DEFAULT_wxUSE_BUTTON=yes
1708 DEFAULT_wxUSE_BMPBUTTON=yes
1709 DEFAULT_wxUSE_CALCTRL=yes
1710 DEFAULT_wxUSE_CARET=yes
1711 DEFAULT_wxUSE_CHECKBOX=yes
1712 DEFAULT_wxUSE_CHECKLST=yes
1713 DEFAULT_wxUSE_CHOICE=yes
1714 DEFAULT_wxUSE_COMBOBOX=yes
1715 DEFAULT_wxUSE_DISPLAY=no
1716 DEFAULT_wxUSE_GAUGE=yes
1717 DEFAULT_wxUSE_GRID=yes
1718 DEFAULT_wxUSE_IMAGLIST=yes
1719 DEFAULT_wxUSE_LISTBOX=yes
1720 DEFAULT_wxUSE_LISTCTRL=yes
1721 DEFAULT_wxUSE_NOTEBOOK=yes
1722 DEFAULT_wxUSE_RADIOBOX=yes
1723 DEFAULT_wxUSE_RADIOBTN=yes
1724 DEFAULT_wxUSE_SASH=yes
1725 DEFAULT_wxUSE_SCROLLBAR=yes
1726 DEFAULT_wxUSE_SLIDER=yes
1727 DEFAULT_wxUSE_SPINBTN=yes
1728 DEFAULT_wxUSE_SPINCTRL=yes
1729 DEFAULT_wxUSE_SPLITTER=yes
1730 DEFAULT_wxUSE_STATBMP=yes
1731 DEFAULT_wxUSE_STATBOX=yes
1732 DEFAULT_wxUSE_STATLINE=yes
1733 DEFAULT_wxUSE_STATTEXT=yes
1734 DEFAULT_wxUSE_STATUSBAR=yes
1735 DEFAULT_wxUSE_TABDIALOG=no
1736 DEFAULT_wxUSE_TEXTCTRL=yes
1737 DEFAULT_wxUSE_TOGGLEBTN=yes
1738 DEFAULT_wxUSE_TOOLBAR=yes
1739 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1740 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1741 DEFAULT_wxUSE_TREECTRL=yes
1742 DEFAULT_wxUSE_POPUPWIN=yes
1743 DEFAULT_wxUSE_TIPWINDOW=yes
1744
1745 DEFAULT_wxUSE_UNICODE=no
1746 DEFAULT_wxUSE_UNICODE_MSLU=yes
1747 DEFAULT_wxUSE_WCSRTOMBS=no
1748
1749 DEFAULT_wxUSE_PALETTE=yes
1750 DEFAULT_wxUSE_IMAGE=yes
1751 DEFAULT_wxUSE_GIF=yes
1752 DEFAULT_wxUSE_PCX=yes
1753 DEFAULT_wxUSE_IFF=no
1754 DEFAULT_wxUSE_PNM=yes
1755 DEFAULT_wxUSE_XPM=yes
1756 DEFAULT_wxUSE_ICO_CUR=yes
1757 DEFAULT_wxUSE_ACCESSIBILITY=no
1758 fi
1759
1760
1761
1762 for toolkit in `echo $ALL_TOOLKITS`; do
1763 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1764 if test "x$LINE" != "x" ; then
1765 has_toolkit_in_cache=1
1766 eval "DEFAULT_$LINE"
1767 eval "CACHE_$toolkit=1"
1768 fi
1769 done
1770
1771
1772
1773 enablestring=
1774 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1775 echo "configure:1776: checking for --${enablestring:-enable}-gui" >&5
1776 no_cache=0
1777 # Check whether --enable-gui or --disable-gui was given.
1778 if test "${enable_gui+set}" = set; then
1779 enableval="$enable_gui"
1780
1781 if test "$enableval" = yes; then
1782 ac_cv_use_gui='wxUSE_GUI=yes'
1783 else
1784 ac_cv_use_gui='wxUSE_GUI=no'
1785 fi
1786
1787 else
1788
1789 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1790 if test "x$LINE" != x ; then
1791 eval "DEFAULT_$LINE"
1792 else
1793 no_cache=1
1794 fi
1795
1796 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1797
1798 fi
1799
1800
1801 eval "$ac_cv_use_gui"
1802 if test "$no_cache" != 1; then
1803 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1804 fi
1805
1806 if test "$wxUSE_GUI" = yes; then
1807 echo "$ac_t""yes" 1>&6
1808 else
1809 echo "$ac_t""no" 1>&6
1810 fi
1811
1812
1813 if test "$wxUSE_GUI" = "yes"; then
1814
1815
1816 enablestring=
1817 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1818 echo "configure:1819: checking for --${enablestring:-enable}-universal" >&5
1819 no_cache=0
1820 # Check whether --enable-universal or --disable-universal was given.
1821 if test "${enable_universal+set}" = set; then
1822 enableval="$enable_universal"
1823
1824 if test "$enableval" = yes; then
1825 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1826 else
1827 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1828 fi
1829
1830 else
1831
1832 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1833 if test "x$LINE" != x ; then
1834 eval "DEFAULT_$LINE"
1835 else
1836 no_cache=1
1837 fi
1838
1839 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1840
1841 fi
1842
1843
1844 eval "$ac_cv_use_universal"
1845 if test "$no_cache" != 1; then
1846 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1847 fi
1848
1849 if test "$wxUSE_UNIVERSAL" = yes; then
1850 echo "$ac_t""yes" 1>&6
1851 else
1852 echo "$ac_t""no" 1>&6
1853 fi
1854
1855 # Check whether --with-gtk or --without-gtk was given.
1856 if test "${with_gtk+set}" = set; then
1857 withval="$with_gtk"
1858 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1859 fi
1860
1861 # Check whether --with-motif or --without-motif was given.
1862 if test "${with_motif+set}" = set; then
1863 withval="$with_motif"
1864 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1865 fi
1866
1867 # Check whether --with-mac or --without-mac was given.
1868 if test "${with_mac+set}" = set; then
1869 withval="$with_mac"
1870 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1871 fi
1872
1873 # Check whether --with-cocoa or --without-cocoa was given.
1874 if test "${with_cocoa+set}" = set; then
1875 withval="$with_cocoa"
1876 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1877 fi
1878
1879 # Check whether --with-wine or --without-wine was given.
1880 if test "${with_wine+set}" = set; then
1881 withval="$with_wine"
1882 wxUSE_WINE="$withval" CACHE_WINE=1
1883 fi
1884
1885 # Check whether --with-msw or --without-msw was given.
1886 if test "${with_msw+set}" = set; then
1887 withval="$with_msw"
1888 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1889 fi
1890
1891 # Check whether --with-pm or --without-pm was given.
1892 if test "${with_pm+set}" = set; then
1893 withval="$with_pm"
1894 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1895 fi
1896
1897 # Check whether --with-mgl or --without-mgl was given.
1898 if test "${with_mgl+set}" = set; then
1899 withval="$with_mgl"
1900 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1901 fi
1902
1903 # Check whether --with-microwin or --without-microwin was given.
1904 if test "${with_microwin+set}" = set; then
1905 withval="$with_microwin"
1906 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1907 fi
1908
1909 # Check whether --with-x11 or --without-x11 was given.
1910 if test "${with_x11+set}" = set; then
1911 withval="$with_x11"
1912 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1913 fi
1914
1915
1916 enablestring=
1917 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1918 echo "configure:1919: checking for --${enablestring:-enable}-nanox" >&5
1919 no_cache=0
1920 # Check whether --enable-nanox or --disable-nanox was given.
1921 if test "${enable_nanox+set}" = set; then
1922 enableval="$enable_nanox"
1923
1924 if test "$enableval" = yes; then
1925 ac_cv_use_nanox='wxUSE_NANOX=yes'
1926 else
1927 ac_cv_use_nanox='wxUSE_NANOX=no'
1928 fi
1929
1930 else
1931
1932 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1933 if test "x$LINE" != x ; then
1934 eval "DEFAULT_$LINE"
1935 else
1936 no_cache=1
1937 fi
1938
1939 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1940
1941 fi
1942
1943
1944 eval "$ac_cv_use_nanox"
1945 if test "$no_cache" != 1; then
1946 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1947 fi
1948
1949 if test "$wxUSE_NANOX" = yes; then
1950 echo "$ac_t""yes" 1>&6
1951 else
1952 echo "$ac_t""no" 1>&6
1953 fi
1954
1955
1956
1957 enablestring=
1958 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1959 echo "configure:1960: checking for --${enablestring:-enable}-gtk2" >&5
1960 no_cache=0
1961 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1962 if test "${enable_gtk2+set}" = set; then
1963 enableval="$enable_gtk2"
1964
1965 if test "$enableval" = yes; then
1966 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1967 else
1968 ac_cv_use_gtk2='wxUSE_GTK2=no'
1969 fi
1970
1971 else
1972
1973 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1974 if test "x$LINE" != x ; then
1975 eval "DEFAULT_$LINE"
1976 else
1977 no_cache=1
1978 fi
1979
1980 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1981
1982 fi
1983
1984
1985 eval "$ac_cv_use_gtk2"
1986 if test "$no_cache" != 1; then
1987 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1988 fi
1989
1990 if test "$wxUSE_GTK2" = yes; then
1991 echo "$ac_t""yes" 1>&6
1992 else
1993 echo "$ac_t""no" 1>&6
1994 fi
1995
1996
1997
1998 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1999 echo "configure:2000: checking for --with-libpng" >&5
2000 no_cache=0
2001 # Check whether --with-libpng or --without-libpng was given.
2002 if test "${with_libpng+set}" = set; then
2003 withval="$with_libpng"
2004
2005 if test "$withval" = yes; then
2006 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2007 elif test "$withval" = no; then
2008 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2009 elif test "$withval" = sys; then
2010 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2011 elif test "$withval" = builtin; then
2012 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2013 else
2014 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2015 fi
2016
2017 else
2018
2019 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2020 if test "x$LINE" != x ; then
2021 eval "DEFAULT_$LINE"
2022 else
2023 no_cache=1
2024 fi
2025
2026 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2027
2028 fi
2029
2030
2031 eval "$ac_cv_use_libpng"
2032 if test "$no_cache" != 1; then
2033 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2034 fi
2035
2036 if test "$wxUSE_LIBPNG" = yes; then
2037 echo "$ac_t""yes" 1>&6
2038 elif test "$wxUSE_LIBPNG" = no; then
2039 echo "$ac_t""no" 1>&6
2040 elif test "$wxUSE_LIBPNG" = sys; then
2041 echo "$ac_t""system version" 1>&6
2042 elif test "$wxUSE_LIBPNG" = builtin; then
2043 echo "$ac_t""builtin version" 1>&6
2044 else
2045 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2046 fi
2047
2048
2049 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2050 echo "configure:2051: checking for --with-libjpeg" >&5
2051 no_cache=0
2052 # Check whether --with-libjpeg or --without-libjpeg was given.
2053 if test "${with_libjpeg+set}" = set; then
2054 withval="$with_libjpeg"
2055
2056 if test "$withval" = yes; then
2057 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2058 elif test "$withval" = no; then
2059 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2060 elif test "$withval" = sys; then
2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2062 elif test "$withval" = builtin; then
2063 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2064 else
2065 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2066 fi
2067
2068 else
2069
2070 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2071 if test "x$LINE" != x ; then
2072 eval "DEFAULT_$LINE"
2073 else
2074 no_cache=1
2075 fi
2076
2077 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2078
2079 fi
2080
2081
2082 eval "$ac_cv_use_libjpeg"
2083 if test "$no_cache" != 1; then
2084 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2085 fi
2086
2087 if test "$wxUSE_LIBJPEG" = yes; then
2088 echo "$ac_t""yes" 1>&6
2089 elif test "$wxUSE_LIBJPEG" = no; then
2090 echo "$ac_t""no" 1>&6
2091 elif test "$wxUSE_LIBJPEG" = sys; then
2092 echo "$ac_t""system version" 1>&6
2093 elif test "$wxUSE_LIBJPEG" = builtin; then
2094 echo "$ac_t""builtin version" 1>&6
2095 else
2096 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2097 fi
2098
2099
2100 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2101 echo "configure:2102: checking for --with-libtiff" >&5
2102 no_cache=0
2103 # Check whether --with-libtiff or --without-libtiff was given.
2104 if test "${with_libtiff+set}" = set; then
2105 withval="$with_libtiff"
2106
2107 if test "$withval" = yes; then
2108 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2109 elif test "$withval" = no; then
2110 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2111 elif test "$withval" = sys; then
2112 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2113 elif test "$withval" = builtin; then
2114 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2115 else
2116 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2117 fi
2118
2119 else
2120
2121 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2122 if test "x$LINE" != x ; then
2123 eval "DEFAULT_$LINE"
2124 else
2125 no_cache=1
2126 fi
2127
2128 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2129
2130 fi
2131
2132
2133 eval "$ac_cv_use_libtiff"
2134 if test "$no_cache" != 1; then
2135 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2136 fi
2137
2138 if test "$wxUSE_LIBTIFF" = yes; then
2139 echo "$ac_t""yes" 1>&6
2140 elif test "$wxUSE_LIBTIFF" = no; then
2141 echo "$ac_t""no" 1>&6
2142 elif test "$wxUSE_LIBTIFF" = sys; then
2143 echo "$ac_t""system version" 1>&6
2144 elif test "$wxUSE_LIBTIFF" = builtin; then
2145 echo "$ac_t""builtin version" 1>&6
2146 else
2147 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2148 fi
2149
2150
2151 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2152 echo "configure:2153: checking for --with-opengl" >&5
2153 no_cache=0
2154 # Check whether --with-opengl or --without-opengl was given.
2155 if test "${with_opengl+set}" = set; then
2156 withval="$with_opengl"
2157
2158 if test "$withval" = yes; then
2159 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2160 else
2161 ac_cv_use_opengl='wxUSE_OPENGL=no'
2162 fi
2163
2164 else
2165
2166 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2167 if test "x$LINE" != x ; then
2168 eval "DEFAULT_$LINE"
2169 else
2170 no_cache=1
2171 fi
2172
2173 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2174
2175 fi
2176
2177
2178 eval "$ac_cv_use_opengl"
2179 if test "$no_cache" != 1; then
2180 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2181 fi
2182
2183 if test "$wxUSE_OPENGL" = yes; then
2184 echo "$ac_t""yes" 1>&6
2185 else
2186 echo "$ac_t""no" 1>&6
2187 fi
2188
2189
2190 fi
2191
2192
2193 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2194 echo "configure:2195: checking for --with-dmalloc" >&5
2195 no_cache=0
2196 # Check whether --with-dmalloc or --without-dmalloc was given.
2197 if test "${with_dmalloc+set}" = set; then
2198 withval="$with_dmalloc"
2199
2200 if test "$withval" = yes; then
2201 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2202 else
2203 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2204 fi
2205
2206 else
2207
2208 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2209 if test "x$LINE" != x ; then
2210 eval "DEFAULT_$LINE"
2211 else
2212 no_cache=1
2213 fi
2214
2215 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2216
2217 fi
2218
2219
2220 eval "$ac_cv_use_dmalloc"
2221 if test "$no_cache" != 1; then
2222 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2223 fi
2224
2225 if test "$wxUSE_DMALLOC" = yes; then
2226 echo "$ac_t""yes" 1>&6
2227 else
2228 echo "$ac_t""no" 1>&6
2229 fi
2230
2231
2232 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2233 echo "configure:2234: checking for --with-regex" >&5
2234 no_cache=0
2235 # Check whether --with-regex or --without-regex was given.
2236 if test "${with_regex+set}" = set; then
2237 withval="$with_regex"
2238
2239 if test "$withval" = yes; then
2240 ac_cv_use_regex='wxUSE_REGEX=yes'
2241 elif test "$withval" = no; then
2242 ac_cv_use_regex='wxUSE_REGEX=no'
2243 elif test "$withval" = sys; then
2244 ac_cv_use_regex='wxUSE_REGEX=sys'
2245 elif test "$withval" = builtin; then
2246 ac_cv_use_regex='wxUSE_REGEX=builtin'
2247 else
2248 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2249 fi
2250
2251 else
2252
2253 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2254 if test "x$LINE" != x ; then
2255 eval "DEFAULT_$LINE"
2256 else
2257 no_cache=1
2258 fi
2259
2260 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2261
2262 fi
2263
2264
2265 eval "$ac_cv_use_regex"
2266 if test "$no_cache" != 1; then
2267 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2268 fi
2269
2270 if test "$wxUSE_REGEX" = yes; then
2271 echo "$ac_t""yes" 1>&6
2272 elif test "$wxUSE_REGEX" = no; then
2273 echo "$ac_t""no" 1>&6
2274 elif test "$wxUSE_REGEX" = sys; then
2275 echo "$ac_t""system version" 1>&6
2276 elif test "$wxUSE_REGEX" = builtin; then
2277 echo "$ac_t""builtin version" 1>&6
2278 else
2279 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2280 fi
2281
2282
2283 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2284 echo "configure:2285: checking for --with-zlib" >&5
2285 no_cache=0
2286 # Check whether --with-zlib or --without-zlib was given.
2287 if test "${with_zlib+set}" = set; then
2288 withval="$with_zlib"
2289
2290 if test "$withval" = yes; then
2291 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2292 elif test "$withval" = no; then
2293 ac_cv_use_zlib='wxUSE_ZLIB=no'
2294 elif test "$withval" = sys; then
2295 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2296 elif test "$withval" = builtin; then
2297 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2298 else
2299 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2300 fi
2301
2302 else
2303
2304 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2305 if test "x$LINE" != x ; then
2306 eval "DEFAULT_$LINE"
2307 else
2308 no_cache=1
2309 fi
2310
2311 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2312
2313 fi
2314
2315
2316 eval "$ac_cv_use_zlib"
2317 if test "$no_cache" != 1; then
2318 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2319 fi
2320
2321 if test "$wxUSE_ZLIB" = yes; then
2322 echo "$ac_t""yes" 1>&6
2323 elif test "$wxUSE_ZLIB" = no; then
2324 echo "$ac_t""no" 1>&6
2325 elif test "$wxUSE_ZLIB" = sys; then
2326 echo "$ac_t""system version" 1>&6
2327 elif test "$wxUSE_ZLIB" = builtin; then
2328 echo "$ac_t""builtin version" 1>&6
2329 else
2330 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2331 fi
2332
2333
2334 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2335 echo "configure:2336: checking for --with-odbc" >&5
2336 no_cache=0
2337 # Check whether --with-odbc or --without-odbc was given.
2338 if test "${with_odbc+set}" = set; then
2339 withval="$with_odbc"
2340
2341 if test "$withval" = yes; then
2342 ac_cv_use_odbc='wxUSE_ODBC=yes'
2343 elif test "$withval" = no; then
2344 ac_cv_use_odbc='wxUSE_ODBC=no'
2345 elif test "$withval" = sys; then
2346 ac_cv_use_odbc='wxUSE_ODBC=sys'
2347 elif test "$withval" = builtin; then
2348 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2349 else
2350 { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2351 fi
2352
2353 else
2354
2355 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2356 if test "x$LINE" != x ; then
2357 eval "DEFAULT_$LINE"
2358 else
2359 no_cache=1
2360 fi
2361
2362 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2363
2364 fi
2365
2366
2367 eval "$ac_cv_use_odbc"
2368 if test "$no_cache" != 1; then
2369 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2370 fi
2371
2372 if test "$wxUSE_ODBC" = yes; then
2373 echo "$ac_t""yes" 1>&6
2374 elif test "$wxUSE_ODBC" = no; then
2375 echo "$ac_t""no" 1>&6
2376 elif test "$wxUSE_ODBC" = sys; then
2377 echo "$ac_t""system version" 1>&6
2378 elif test "$wxUSE_ODBC" = builtin; then
2379 echo "$ac_t""builtin version" 1>&6
2380 else
2381 { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2382 fi
2383
2384
2385
2386
2387 enablestring=
2388 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2389 echo "configure:2390: checking for --${enablestring:-enable}-shared" >&5
2390 no_cache=0
2391 # Check whether --enable-shared or --disable-shared was given.
2392 if test "${enable_shared+set}" = set; then
2393 enableval="$enable_shared"
2394
2395 if test "$enableval" = yes; then
2396 ac_cv_use_shared='wxUSE_SHARED=yes'
2397 else
2398 ac_cv_use_shared='wxUSE_SHARED=no'
2399 fi
2400
2401 else
2402
2403 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2404 if test "x$LINE" != x ; then
2405 eval "DEFAULT_$LINE"
2406 else
2407 no_cache=1
2408 fi
2409
2410 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2411
2412 fi
2413
2414
2415 eval "$ac_cv_use_shared"
2416 if test "$no_cache" != 1; then
2417 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2418 fi
2419
2420 if test "$wxUSE_SHARED" = yes; then
2421 echo "$ac_t""yes" 1>&6
2422 else
2423 echo "$ac_t""no" 1>&6
2424 fi
2425
2426
2427 enablestring=
2428 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2429 echo "configure:2430: checking for --${enablestring:-enable}-soname" >&5
2430 no_cache=0
2431 # Check whether --enable-soname or --disable-soname was given.
2432 if test "${enable_soname+set}" = set; then
2433 enableval="$enable_soname"
2434
2435 if test "$enableval" = yes; then
2436 ac_cv_use_soname='wxUSE_SONAME=yes'
2437 else
2438 ac_cv_use_soname='wxUSE_SONAME=no'
2439 fi
2440
2441 else
2442
2443 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2444 if test "x$LINE" != x ; then
2445 eval "DEFAULT_$LINE"
2446 else
2447 no_cache=1
2448 fi
2449
2450 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2451
2452 fi
2453
2454
2455 eval "$ac_cv_use_soname"
2456 if test "$no_cache" != 1; then
2457 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2458 fi
2459
2460 if test "$wxUSE_SONAME" = yes; then
2461 echo "$ac_t""yes" 1>&6
2462 else
2463 echo "$ac_t""no" 1>&6
2464 fi
2465
2466
2467 enablestring=
2468 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2469 echo "configure:2470: checking for --${enablestring:-enable}-optimise" >&5
2470 no_cache=0
2471 # Check whether --enable-optimise or --disable-optimise was given.
2472 if test "${enable_optimise+set}" = set; then
2473 enableval="$enable_optimise"
2474
2475 if test "$enableval" = yes; then
2476 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2477 else
2478 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2479 fi
2480
2481 else
2482
2483 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2484 if test "x$LINE" != x ; then
2485 eval "DEFAULT_$LINE"
2486 else
2487 no_cache=1
2488 fi
2489
2490 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2491
2492 fi
2493
2494
2495 eval "$ac_cv_use_optimise"
2496 if test "$no_cache" != 1; then
2497 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2498 fi
2499
2500 if test "$wxUSE_OPTIMISE" = yes; then
2501 echo "$ac_t""yes" 1>&6
2502 else
2503 echo "$ac_t""no" 1>&6
2504 fi
2505
2506
2507 enablestring=
2508 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2509 echo "configure:2510: checking for --${enablestring:-enable}-debug" >&5
2510 no_cache=0
2511 # Check whether --enable-debug or --disable-debug was given.
2512 if test "${enable_debug+set}" = set; then
2513 enableval="$enable_debug"
2514
2515 if test "$enableval" = yes; then
2516 ac_cv_use_debug='wxUSE_DEBUG=yes'
2517 else
2518 ac_cv_use_debug='wxUSE_DEBUG=no'
2519 fi
2520
2521 else
2522
2523 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2524 if test "x$LINE" != x ; then
2525 eval "DEFAULT_$LINE"
2526 else
2527 no_cache=1
2528 fi
2529
2530 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2531
2532 fi
2533
2534
2535 eval "$ac_cv_use_debug"
2536 if test "$no_cache" != 1; then
2537 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2538 fi
2539
2540 if test "$wxUSE_DEBUG" = yes; then
2541 echo "$ac_t""yes" 1>&6
2542 else
2543 echo "$ac_t""no" 1>&6
2544 fi
2545
2546
2547
2548 enablestring=
2549 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2550 echo "configure:2551: checking for --${enablestring:-enable}-precomp" >&5
2551 no_cache=0
2552 # Check whether --enable-precomp or --disable-precomp was given.
2553 if test "${enable_precomp+set}" = set; then
2554 enableval="$enable_precomp"
2555
2556 if test "$enableval" = yes; then
2557 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2558 else
2559 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2560 fi
2561
2562 else
2563
2564 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2565 if test "x$LINE" != x ; then
2566 eval "DEFAULT_$LINE"
2567 else
2568 no_cache=1
2569 fi
2570
2571 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2572
2573 fi
2574
2575
2576 eval "$ac_cv_use_precomp"
2577 if test "$no_cache" != 1; then
2578 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2579 fi
2580
2581 if test "$wxUSE_PRECOMP" = yes; then
2582 echo "$ac_t""yes" 1>&6
2583 else
2584 echo "$ac_t""no" 1>&6
2585 fi
2586
2587
2588 if test "$wxUSE_DEBUG" = "yes"; then
2589 DEFAULT_wxUSE_DEBUG_FLAG=yes
2590 DEFAULT_wxUSE_DEBUG_INFO=yes
2591 elif test "$wxUSE_DEBUG" = "no"; then
2592 DEFAULT_wxUSE_DEBUG_FLAG=no
2593 DEFAULT_wxUSE_DEBUG_INFO=no
2594 fi
2595
2596
2597 enablestring=
2598 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2599 echo "configure:2600: checking for --${enablestring:-enable}-debug_flag" >&5
2600 no_cache=0
2601 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2602 if test "${enable_debug_flag+set}" = set; then
2603 enableval="$enable_debug_flag"
2604
2605 if test "$enableval" = yes; then
2606 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2607 else
2608 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2609 fi
2610
2611 else
2612
2613 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2614 if test "x$LINE" != x ; then
2615 eval "DEFAULT_$LINE"
2616 else
2617 no_cache=1
2618 fi
2619
2620 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2621
2622 fi
2623
2624
2625 eval "$ac_cv_use_debug_flag"
2626 if test "$no_cache" != 1; then
2627 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2628 fi
2629
2630 if test "$wxUSE_DEBUG_FLAG" = yes; then
2631 echo "$ac_t""yes" 1>&6
2632 else
2633 echo "$ac_t""no" 1>&6
2634 fi
2635
2636
2637 enablestring=
2638 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2639 echo "configure:2640: checking for --${enablestring:-enable}-debug_info" >&5
2640 no_cache=0
2641 # Check whether --enable-debug_info or --disable-debug_info was given.
2642 if test "${enable_debug_info+set}" = set; then
2643 enableval="$enable_debug_info"
2644
2645 if test "$enableval" = yes; then
2646 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2647 else
2648 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2649 fi
2650
2651 else
2652
2653 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2654 if test "x$LINE" != x ; then
2655 eval "DEFAULT_$LINE"
2656 else
2657 no_cache=1
2658 fi
2659
2660 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2661
2662 fi
2663
2664
2665 eval "$ac_cv_use_debug_info"
2666 if test "$no_cache" != 1; then
2667 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2668 fi
2669
2670 if test "$wxUSE_DEBUG_INFO" = yes; then
2671 echo "$ac_t""yes" 1>&6
2672 else
2673 echo "$ac_t""no" 1>&6
2674 fi
2675
2676
2677 enablestring=
2678 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2679 echo "configure:2680: checking for --${enablestring:-enable}-debug_gdb" >&5
2680 no_cache=0
2681 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2682 if test "${enable_debug_gdb+set}" = set; then
2683 enableval="$enable_debug_gdb"
2684
2685 if test "$enableval" = yes; then
2686 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2687 else
2688 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2689 fi
2690
2691 else
2692
2693 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2694 if test "x$LINE" != x ; then
2695 eval "DEFAULT_$LINE"
2696 else
2697 no_cache=1
2698 fi
2699
2700 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2701
2702 fi
2703
2704
2705 eval "$ac_cv_use_debug_gdb"
2706 if test "$no_cache" != 1; then
2707 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2708 fi
2709
2710 if test "$wxUSE_DEBUG_GDB" = yes; then
2711 echo "$ac_t""yes" 1>&6
2712 else
2713 echo "$ac_t""no" 1>&6
2714 fi
2715
2716
2717 enablestring=
2718 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2719 echo "configure:2720: checking for --${enablestring:-enable}-debug_cntxt" >&5
2720 no_cache=0
2721 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2722 if test "${enable_debug_cntxt+set}" = set; then
2723 enableval="$enable_debug_cntxt"
2724
2725 if test "$enableval" = yes; then
2726 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2727 else
2728 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2729 fi
2730
2731 else
2732
2733 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2734 if test "x$LINE" != x ; then
2735 eval "DEFAULT_$LINE"
2736 else
2737 no_cache=1
2738 fi
2739
2740 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2741
2742 fi
2743
2744
2745 eval "$ac_cv_use_debug_cntxt"
2746 if test "$no_cache" != 1; then
2747 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2748 fi
2749
2750 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2751 echo "$ac_t""yes" 1>&6
2752 else
2753 echo "$ac_t""no" 1>&6
2754 fi
2755
2756
2757 enablestring=
2758 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2759 echo "configure:2760: checking for --${enablestring:-enable}-mem_tracing" >&5
2760 no_cache=0
2761 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2762 if test "${enable_mem_tracing+set}" = set; then
2763 enableval="$enable_mem_tracing"
2764
2765 if test "$enableval" = yes; then
2766 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2767 else
2768 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2769 fi
2770
2771 else
2772
2773 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
2780 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2781
2782 fi
2783
2784
2785 eval "$ac_cv_use_mem_tracing"
2786 if test "$no_cache" != 1; then
2787 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2788 fi
2789
2790 if test "$wxUSE_MEM_TRACING" = yes; then
2791 echo "$ac_t""yes" 1>&6
2792 else
2793 echo "$ac_t""no" 1>&6
2794 fi
2795
2796
2797 enablestring=
2798 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2799 echo "configure:2800: checking for --${enablestring:-enable}-profile" >&5
2800 no_cache=0
2801 # Check whether --enable-profile or --disable-profile was given.
2802 if test "${enable_profile+set}" = set; then
2803 enableval="$enable_profile"
2804
2805 if test "$enableval" = yes; then
2806 ac_cv_use_profile='wxUSE_PROFILE=yes'
2807 else
2808 ac_cv_use_profile='wxUSE_PROFILE=no'
2809 fi
2810
2811 else
2812
2813 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2814 if test "x$LINE" != x ; then
2815 eval "DEFAULT_$LINE"
2816 else
2817 no_cache=1
2818 fi
2819
2820 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2821
2822 fi
2823
2824
2825 eval "$ac_cv_use_profile"
2826 if test "$no_cache" != 1; then
2827 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2828 fi
2829
2830 if test "$wxUSE_PROFILE" = yes; then
2831 echo "$ac_t""yes" 1>&6
2832 else
2833 echo "$ac_t""no" 1>&6
2834 fi
2835
2836
2837 enablestring=
2838 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2839 echo "configure:2840: checking for --${enablestring:-enable}-no_rtti" >&5
2840 no_cache=0
2841 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2842 if test "${enable_no_rtti+set}" = set; then
2843 enableval="$enable_no_rtti"
2844
2845 if test "$enableval" = yes; then
2846 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2847 else
2848 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2849 fi
2850
2851 else
2852
2853 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2854 if test "x$LINE" != x ; then
2855 eval "DEFAULT_$LINE"
2856 else
2857 no_cache=1
2858 fi
2859
2860 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2861
2862 fi
2863
2864
2865 eval "$ac_cv_use_no_rtti"
2866 if test "$no_cache" != 1; then
2867 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2868 fi
2869
2870 if test "$wxUSE_NO_RTTI" = yes; then
2871 echo "$ac_t""yes" 1>&6
2872 else
2873 echo "$ac_t""no" 1>&6
2874 fi
2875
2876
2877 enablestring=
2878 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2879 echo "configure:2880: checking for --${enablestring:-enable}-no_exceptions" >&5
2880 no_cache=0
2881 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2882 if test "${enable_no_exceptions+set}" = set; then
2883 enableval="$enable_no_exceptions"
2884
2885 if test "$enableval" = yes; then
2886 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2887 else
2888 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2889 fi
2890
2891 else
2892
2893 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2894 if test "x$LINE" != x ; then
2895 eval "DEFAULT_$LINE"
2896 else
2897 no_cache=1
2898 fi
2899
2900 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2901
2902 fi
2903
2904
2905 eval "$ac_cv_use_no_exceptions"
2906 if test "$no_cache" != 1; then
2907 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2908 fi
2909
2910 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2911 echo "$ac_t""yes" 1>&6
2912 else
2913 echo "$ac_t""no" 1>&6
2914 fi
2915
2916
2917 enablestring=
2918 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2919 echo "configure:2920: checking for --${enablestring:-enable}-permissive" >&5
2920 no_cache=0
2921 # Check whether --enable-permissive or --disable-permissive was given.
2922 if test "${enable_permissive+set}" = set; then
2923 enableval="$enable_permissive"
2924
2925 if test "$enableval" = yes; then
2926 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2927 else
2928 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2929 fi
2930
2931 else
2932
2933 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2934 if test "x$LINE" != x ; then
2935 eval "DEFAULT_$LINE"
2936 else
2937 no_cache=1
2938 fi
2939
2940 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2941
2942 fi
2943
2944
2945 eval "$ac_cv_use_permissive"
2946 if test "$no_cache" != 1; then
2947 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2948 fi
2949
2950 if test "$wxUSE_PERMISSIVE" = yes; then
2951 echo "$ac_t""yes" 1>&6
2952 else
2953 echo "$ac_t""no" 1>&6
2954 fi
2955
2956
2957 enablestring=
2958 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2959 echo "configure:2960: checking for --${enablestring:-enable}-no_deps" >&5
2960 no_cache=0
2961 # Check whether --enable-no_deps or --disable-no_deps was given.
2962 if test "${enable_no_deps+set}" = set; then
2963 enableval="$enable_no_deps"
2964
2965 if test "$enableval" = yes; then
2966 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2967 else
2968 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2969 fi
2970
2971 else
2972
2973 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2974 if test "x$LINE" != x ; then
2975 eval "DEFAULT_$LINE"
2976 else
2977 no_cache=1
2978 fi
2979
2980 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2981
2982 fi
2983
2984
2985 eval "$ac_cv_use_no_deps"
2986 if test "$no_cache" != 1; then
2987 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2988 fi
2989
2990 if test "$wxUSE_NO_DEPS" = yes; then
2991 echo "$ac_t""yes" 1>&6
2992 else
2993 echo "$ac_t""no" 1>&6
2994 fi
2995
2996
2997
2998 enablestring=
2999 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
3000 echo "configure:3001: checking for --${enablestring:-enable}-compat20" >&5
3001 no_cache=0
3002 # Check whether --enable-compat20 or --disable-compat20 was given.
3003 if test "${enable_compat20+set}" = set; then
3004 enableval="$enable_compat20"
3005
3006 if test "$enableval" = yes; then
3007 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3008 else
3009 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3010 fi
3011
3012 else
3013
3014 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3015 if test "x$LINE" != x ; then
3016 eval "DEFAULT_$LINE"
3017 else
3018 no_cache=1
3019 fi
3020
3021 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3022
3023 fi
3024
3025
3026 eval "$ac_cv_use_compat20"
3027 if test "$no_cache" != 1; then
3028 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3029 fi
3030
3031 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3032 echo "$ac_t""yes" 1>&6
3033 else
3034 echo "$ac_t""no" 1>&6
3035 fi
3036
3037
3038 enablestring=
3039 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3040 echo "configure:3041: checking for --${enablestring:-enable}-compat22" >&5
3041 no_cache=0
3042 # Check whether --enable-compat22 or --disable-compat22 was given.
3043 if test "${enable_compat22+set}" = set; then
3044 enableval="$enable_compat22"
3045
3046 if test "$enableval" = yes; then
3047 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3048 else
3049 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3050 fi
3051
3052 else
3053
3054 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3055 if test "x$LINE" != x ; then
3056 eval "DEFAULT_$LINE"
3057 else
3058 no_cache=1
3059 fi
3060
3061 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3062
3063 fi
3064
3065
3066 eval "$ac_cv_use_compat22"
3067 if test "$no_cache" != 1; then
3068 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3069 fi
3070
3071 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3072 echo "$ac_t""yes" 1>&6
3073 else
3074 echo "$ac_t""no" 1>&6
3075 fi
3076
3077
3078 enablestring=disable
3079 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3080 echo "configure:3081: checking for --${enablestring:-enable}-compat24" >&5
3081 no_cache=0
3082 # Check whether --enable-compat24 or --disable-compat24 was given.
3083 if test "${enable_compat24+set}" = set; then
3084 enableval="$enable_compat24"
3085
3086 if test "$enableval" = yes; then
3087 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3088 else
3089 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3090 fi
3091
3092 else
3093
3094 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3095 if test "x$LINE" != x ; then
3096 eval "DEFAULT_$LINE"
3097 else
3098 no_cache=1
3099 fi
3100
3101 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3102
3103 fi
3104
3105
3106 eval "$ac_cv_use_compat24"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3112 echo "$ac_t""yes" 1>&6
3113 else
3114 echo "$ac_t""no" 1>&6
3115 fi
3116
3117
3118 # Check whether --enable-rpath or --disable-rpath was given.
3119 if test "${enable_rpath+set}" = set; then
3120 enableval="$enable_rpath"
3121 wxRPATH_DIR="$enableval"
3122 fi
3123
3124
3125 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3126 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3127 fi
3128
3129
3130
3131
3132 enablestring=
3133 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3134 echo "configure:3135: checking for --${enablestring:-enable}-intl" >&5
3135 no_cache=0
3136 # Check whether --enable-intl or --disable-intl was given.
3137 if test "${enable_intl+set}" = set; then
3138 enableval="$enable_intl"
3139
3140 if test "$enableval" = yes; then
3141 ac_cv_use_intl='wxUSE_INTL=yes'
3142 else
3143 ac_cv_use_intl='wxUSE_INTL=no'
3144 fi
3145
3146 else
3147
3148 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3149 if test "x$LINE" != x ; then
3150 eval "DEFAULT_$LINE"
3151 else
3152 no_cache=1
3153 fi
3154
3155 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3156
3157 fi
3158
3159
3160 eval "$ac_cv_use_intl"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_INTL" = yes; then
3166 echo "$ac_t""yes" 1>&6
3167 else
3168 echo "$ac_t""no" 1>&6
3169 fi
3170
3171
3172 enablestring=
3173 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3174 echo "configure:3175: checking for --${enablestring:-enable}-config" >&5
3175 no_cache=0
3176 # Check whether --enable-config or --disable-config was given.
3177 if test "${enable_config+set}" = set; then
3178 enableval="$enable_config"
3179
3180 if test "$enableval" = yes; then
3181 ac_cv_use_config='wxUSE_CONFIG=yes'
3182 else
3183 ac_cv_use_config='wxUSE_CONFIG=no'
3184 fi
3185
3186 else
3187
3188 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3189 if test "x$LINE" != x ; then
3190 eval "DEFAULT_$LINE"
3191 else
3192 no_cache=1
3193 fi
3194
3195 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3196
3197 fi
3198
3199
3200 eval "$ac_cv_use_config"
3201 if test "$no_cache" != 1; then
3202 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3203 fi
3204
3205 if test "$wxUSE_CONFIG" = yes; then
3206 echo "$ac_t""yes" 1>&6
3207 else
3208 echo "$ac_t""no" 1>&6
3209 fi
3210
3211
3212
3213 enablestring=
3214 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3215 echo "configure:3216: checking for --${enablestring:-enable}-protocols" >&5
3216 no_cache=0
3217 # Check whether --enable-protocols or --disable-protocols was given.
3218 if test "${enable_protocols+set}" = set; then
3219 enableval="$enable_protocols"
3220
3221 if test "$enableval" = yes; then
3222 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3223 else
3224 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3225 fi
3226
3227 else
3228
3229 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3237
3238 fi
3239
3240
3241 eval "$ac_cv_use_protocols"
3242 if test "$no_cache" != 1; then
3243 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3244 fi
3245
3246 if test "$wxUSE_PROTOCOL" = yes; then
3247 echo "$ac_t""yes" 1>&6
3248 else
3249 echo "$ac_t""no" 1>&6
3250 fi
3251
3252
3253 enablestring=
3254 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3255 echo "configure:3256: checking for --${enablestring:-enable}-ftp" >&5
3256 no_cache=0
3257 # Check whether --enable-ftp or --disable-ftp was given.
3258 if test "${enable_ftp+set}" = set; then
3259 enableval="$enable_ftp"
3260
3261 if test "$enableval" = yes; then
3262 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3263 else
3264 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3265 fi
3266
3267 else
3268
3269 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3270 if test "x$LINE" != x ; then
3271 eval "DEFAULT_$LINE"
3272 else
3273 no_cache=1
3274 fi
3275
3276 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3277
3278 fi
3279
3280
3281 eval "$ac_cv_use_ftp"
3282 if test "$no_cache" != 1; then
3283 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3284 fi
3285
3286 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3287 echo "$ac_t""yes" 1>&6
3288 else
3289 echo "$ac_t""no" 1>&6
3290 fi
3291
3292
3293 enablestring=
3294 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3295 echo "configure:3296: checking for --${enablestring:-enable}-http" >&5
3296 no_cache=0
3297 # Check whether --enable-http or --disable-http was given.
3298 if test "${enable_http+set}" = set; then
3299 enableval="$enable_http"
3300
3301 if test "$enableval" = yes; then
3302 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3303 else
3304 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3305 fi
3306
3307 else
3308
3309 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3310 if test "x$LINE" != x ; then
3311 eval "DEFAULT_$LINE"
3312 else
3313 no_cache=1
3314 fi
3315
3316 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3317
3318 fi
3319
3320
3321 eval "$ac_cv_use_http"
3322 if test "$no_cache" != 1; then
3323 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3324 fi
3325
3326 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3327 echo "$ac_t""yes" 1>&6
3328 else
3329 echo "$ac_t""no" 1>&6
3330 fi
3331
3332
3333 enablestring=
3334 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3335 echo "configure:3336: checking for --${enablestring:-enable}-fileproto" >&5
3336 no_cache=0
3337 # Check whether --enable-fileproto or --disable-fileproto was given.
3338 if test "${enable_fileproto+set}" = set; then
3339 enableval="$enable_fileproto"
3340
3341 if test "$enableval" = yes; then
3342 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3343 else
3344 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3345 fi
3346
3347 else
3348
3349 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3350 if test "x$LINE" != x ; then
3351 eval "DEFAULT_$LINE"
3352 else
3353 no_cache=1
3354 fi
3355
3356 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3357
3358 fi
3359
3360
3361 eval "$ac_cv_use_fileproto"
3362 if test "$no_cache" != 1; then
3363 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3364 fi
3365
3366 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3367 echo "$ac_t""yes" 1>&6
3368 else
3369 echo "$ac_t""no" 1>&6
3370 fi
3371
3372
3373 enablestring=
3374 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3375 echo "configure:3376: checking for --${enablestring:-enable}-sockets" >&5
3376 no_cache=0
3377 # Check whether --enable-sockets or --disable-sockets was given.
3378 if test "${enable_sockets+set}" = set; then
3379 enableval="$enable_sockets"
3380
3381 if test "$enableval" = yes; then
3382 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3383 else
3384 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3385 fi
3386
3387 else
3388
3389 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3390 if test "x$LINE" != x ; then
3391 eval "DEFAULT_$LINE"
3392 else
3393 no_cache=1
3394 fi
3395
3396 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3397
3398 fi
3399
3400
3401 eval "$ac_cv_use_sockets"
3402 if test "$no_cache" != 1; then
3403 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3404 fi
3405
3406 if test "$wxUSE_SOCKETS" = yes; then
3407 echo "$ac_t""yes" 1>&6
3408 else
3409 echo "$ac_t""no" 1>&6
3410 fi
3411
3412
3413 enablestring=
3414 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3415 echo "configure:3416: checking for --${enablestring:-enable}-ole" >&5
3416 no_cache=0
3417 # Check whether --enable-ole or --disable-ole was given.
3418 if test "${enable_ole+set}" = set; then
3419 enableval="$enable_ole"
3420
3421 if test "$enableval" = yes; then
3422 ac_cv_use_ole='wxUSE_OLE=yes'
3423 else
3424 ac_cv_use_ole='wxUSE_OLE=no'
3425 fi
3426
3427 else
3428
3429 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3430 if test "x$LINE" != x ; then
3431 eval "DEFAULT_$LINE"
3432 else
3433 no_cache=1
3434 fi
3435
3436 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3437
3438 fi
3439
3440
3441 eval "$ac_cv_use_ole"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_OLE" = yes; then
3447 echo "$ac_t""yes" 1>&6
3448 else
3449 echo "$ac_t""no" 1>&6
3450 fi
3451
3452
3453 enablestring=
3454 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3455 echo "configure:3456: checking for --${enablestring:-enable}-dataobj" >&5
3456 no_cache=0
3457 # Check whether --enable-dataobj or --disable-dataobj was given.
3458 if test "${enable_dataobj+set}" = set; then
3459 enableval="$enable_dataobj"
3460
3461 if test "$enableval" = yes; then
3462 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3463 else
3464 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3465 fi
3466
3467 else
3468
3469 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3470 if test "x$LINE" != x ; then
3471 eval "DEFAULT_$LINE"
3472 else
3473 no_cache=1
3474 fi
3475
3476 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3477
3478 fi
3479
3480
3481 eval "$ac_cv_use_dataobj"
3482 if test "$no_cache" != 1; then
3483 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3484 fi
3485
3486 if test "$wxUSE_DATAOBJ" = yes; then
3487 echo "$ac_t""yes" 1>&6
3488 else
3489 echo "$ac_t""no" 1>&6
3490 fi
3491
3492
3493
3494 enablestring=
3495 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3496 echo "configure:3497: checking for --${enablestring:-enable}-ipc" >&5
3497 no_cache=0
3498 # Check whether --enable-ipc or --disable-ipc was given.
3499 if test "${enable_ipc+set}" = set; then
3500 enableval="$enable_ipc"
3501
3502 if test "$enableval" = yes; then
3503 ac_cv_use_ipc='wxUSE_IPC=yes'
3504 else
3505 ac_cv_use_ipc='wxUSE_IPC=no'
3506 fi
3507
3508 else
3509
3510 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3511 if test "x$LINE" != x ; then
3512 eval "DEFAULT_$LINE"
3513 else
3514 no_cache=1
3515 fi
3516
3517 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3518
3519 fi
3520
3521
3522 eval "$ac_cv_use_ipc"
3523 if test "$no_cache" != 1; then
3524 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3525 fi
3526
3527 if test "$wxUSE_IPC" = yes; then
3528 echo "$ac_t""yes" 1>&6
3529 else
3530 echo "$ac_t""no" 1>&6
3531 fi
3532
3533
3534
3535 enablestring=
3536 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3537 echo "configure:3538: checking for --${enablestring:-enable}-cmdline" >&5
3538 no_cache=0
3539 # Check whether --enable-cmdline or --disable-cmdline was given.
3540 if test "${enable_cmdline+set}" = set; then
3541 enableval="$enable_cmdline"
3542
3543 if test "$enableval" = yes; then
3544 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3545 else
3546 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3547 fi
3548
3549 else
3550
3551 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3552 if test "x$LINE" != x ; then
3553 eval "DEFAULT_$LINE"
3554 else
3555 no_cache=1
3556 fi
3557
3558 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3559
3560 fi
3561
3562
3563 eval "$ac_cv_use_cmdline"
3564 if test "$no_cache" != 1; then
3565 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3566 fi
3567
3568 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3569 echo "$ac_t""yes" 1>&6
3570 else
3571 echo "$ac_t""no" 1>&6
3572 fi
3573
3574
3575 enablestring=
3576 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3577 echo "configure:3578: checking for --${enablestring:-enable}-datetime" >&5
3578 no_cache=0
3579 # Check whether --enable-datetime or --disable-datetime was given.
3580 if test "${enable_datetime+set}" = set; then
3581 enableval="$enable_datetime"
3582
3583 if test "$enableval" = yes; then
3584 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3585 else
3586 ac_cv_use_datetime='wxUSE_DATETIME=no'
3587 fi
3588
3589 else
3590
3591 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3592 if test "x$LINE" != x ; then
3593 eval "DEFAULT_$LINE"
3594 else
3595 no_cache=1
3596 fi
3597
3598 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3599
3600 fi
3601
3602
3603 eval "$ac_cv_use_datetime"
3604 if test "$no_cache" != 1; then
3605 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3606 fi
3607
3608 if test "$wxUSE_DATETIME" = yes; then
3609 echo "$ac_t""yes" 1>&6
3610 else
3611 echo "$ac_t""no" 1>&6
3612 fi
3613
3614
3615 enablestring=
3616 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3617 echo "configure:3618: checking for --${enablestring:-enable}-stopwatch" >&5
3618 no_cache=0
3619 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3620 if test "${enable_stopwatch+set}" = set; then
3621 enableval="$enable_stopwatch"
3622
3623 if test "$enableval" = yes; then
3624 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3625 else
3626 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3627 fi
3628
3629 else
3630
3631 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3632 if test "x$LINE" != x ; then
3633 eval "DEFAULT_$LINE"
3634 else
3635 no_cache=1
3636 fi
3637
3638 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3639
3640 fi
3641
3642
3643 eval "$ac_cv_use_stopwatch"
3644 if test "$no_cache" != 1; then
3645 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3646 fi
3647
3648 if test "$wxUSE_STOPWATCH" = yes; then
3649 echo "$ac_t""yes" 1>&6
3650 else
3651 echo "$ac_t""no" 1>&6
3652 fi
3653
3654
3655 enablestring=
3656 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3657 echo "configure:3658: checking for --${enablestring:-enable}-dialupman" >&5
3658 no_cache=0
3659 # Check whether --enable-dialupman or --disable-dialupman was given.
3660 if test "${enable_dialupman+set}" = set; then
3661 enableval="$enable_dialupman"
3662
3663 if test "$enableval" = yes; then
3664 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3665 else
3666 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3667 fi
3668
3669 else
3670
3671 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3672 if test "x$LINE" != x ; then
3673 eval "DEFAULT_$LINE"
3674 else
3675 no_cache=1
3676 fi
3677
3678 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3679
3680 fi
3681
3682
3683 eval "$ac_cv_use_dialupman"
3684 if test "$no_cache" != 1; then
3685 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3686 fi
3687
3688 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3689 echo "$ac_t""yes" 1>&6
3690 else
3691 echo "$ac_t""no" 1>&6
3692 fi
3693
3694
3695 enablestring=
3696 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3697 echo "configure:3698: checking for --${enablestring:-enable}-apple_ieee" >&5
3698 no_cache=0
3699 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3700 if test "${enable_apple_ieee+set}" = set; then
3701 enableval="$enable_apple_ieee"
3702
3703 if test "$enableval" = yes; then
3704 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3705 else
3706 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3707 fi
3708
3709 else
3710
3711 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3712 if test "x$LINE" != x ; then
3713 eval "DEFAULT_$LINE"
3714 else
3715 no_cache=1
3716 fi
3717
3718 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3719
3720 fi
3721
3722
3723 eval "$ac_cv_use_apple_ieee"
3724 if test "$no_cache" != 1; then
3725 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3726 fi
3727
3728 if test "$wxUSE_APPLE_IEEE" = yes; then
3729 echo "$ac_t""yes" 1>&6
3730 else
3731 echo "$ac_t""no" 1>&6
3732 fi
3733
3734
3735 enablestring=
3736 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3737 echo "configure:3738: checking for --${enablestring:-enable}-timer" >&5
3738 no_cache=0
3739 # Check whether --enable-timer or --disable-timer was given.
3740 if test "${enable_timer+set}" = set; then
3741 enableval="$enable_timer"
3742
3743 if test "$enableval" = yes; then
3744 ac_cv_use_timer='wxUSE_TIMER=yes'
3745 else
3746 ac_cv_use_timer='wxUSE_TIMER=no'
3747 fi
3748
3749 else
3750
3751 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3752 if test "x$LINE" != x ; then
3753 eval "DEFAULT_$LINE"
3754 else
3755 no_cache=1
3756 fi
3757
3758 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3759
3760 fi
3761
3762
3763 eval "$ac_cv_use_timer"
3764 if test "$no_cache" != 1; then
3765 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3766 fi
3767
3768 if test "$wxUSE_TIMER" = yes; then
3769 echo "$ac_t""yes" 1>&6
3770 else
3771 echo "$ac_t""no" 1>&6
3772 fi
3773
3774
3775 enablestring=
3776 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3777 echo "configure:3778: checking for --${enablestring:-enable}-wave" >&5
3778 no_cache=0
3779 # Check whether --enable-wave or --disable-wave was given.
3780 if test "${enable_wave+set}" = set; then
3781 enableval="$enable_wave"
3782
3783 if test "$enableval" = yes; then
3784 ac_cv_use_wave='wxUSE_WAVE=yes'
3785 else
3786 ac_cv_use_wave='wxUSE_WAVE=no'
3787 fi
3788
3789 else
3790
3791 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3792 if test "x$LINE" != x ; then
3793 eval "DEFAULT_$LINE"
3794 else
3795 no_cache=1
3796 fi
3797
3798 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3799
3800 fi
3801
3802
3803 eval "$ac_cv_use_wave"
3804 if test "$no_cache" != 1; then
3805 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3806 fi
3807
3808 if test "$wxUSE_WAVE" = yes; then
3809 echo "$ac_t""yes" 1>&6
3810 else
3811 echo "$ac_t""no" 1>&6
3812 fi
3813
3814
3815 enablestring=
3816 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3817 echo "configure:3818: checking for --${enablestring:-enable}-fraction" >&5
3818 no_cache=0
3819 # Check whether --enable-fraction or --disable-fraction was given.
3820 if test "${enable_fraction+set}" = set; then
3821 enableval="$enable_fraction"
3822
3823 if test "$enableval" = yes; then
3824 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3825 else
3826 ac_cv_use_fraction='wxUSE_FRACTION=no'
3827 fi
3828
3829 else
3830
3831 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3832 if test "x$LINE" != x ; then
3833 eval "DEFAULT_$LINE"
3834 else
3835 no_cache=1
3836 fi
3837
3838 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3839
3840 fi
3841
3842
3843 eval "$ac_cv_use_fraction"
3844 if test "$no_cache" != 1; then
3845 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3846 fi
3847
3848 if test "$wxUSE_FRACTION" = yes; then
3849 echo "$ac_t""yes" 1>&6
3850 else
3851 echo "$ac_t""no" 1>&6
3852 fi
3853
3854
3855 enablestring=
3856 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3857 echo "configure:3858: checking for --${enablestring:-enable}-dynlib" >&5
3858 no_cache=0
3859 # Check whether --enable-dynlib or --disable-dynlib was given.
3860 if test "${enable_dynlib+set}" = set; then
3861 enableval="$enable_dynlib"
3862
3863 if test "$enableval" = yes; then
3864 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3865 else
3866 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3867 fi
3868
3869 else
3870
3871 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3872 if test "x$LINE" != x ; then
3873 eval "DEFAULT_$LINE"
3874 else
3875 no_cache=1
3876 fi
3877
3878 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3879
3880 fi
3881
3882
3883 eval "$ac_cv_use_dynlib"
3884 if test "$no_cache" != 1; then
3885 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3886 fi
3887
3888 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3889 echo "$ac_t""yes" 1>&6
3890 else
3891 echo "$ac_t""no" 1>&6
3892 fi
3893
3894
3895 enablestring=
3896 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3897 echo "configure:3898: checking for --${enablestring:-enable}-dynamicloader" >&5
3898 no_cache=0
3899 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3900 if test "${enable_dynamicloader+set}" = set; then
3901 enableval="$enable_dynamicloader"
3902
3903 if test "$enableval" = yes; then
3904 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3905 else
3906 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3907 fi
3908
3909 else
3910
3911 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3912 if test "x$LINE" != x ; then
3913 eval "DEFAULT_$LINE"
3914 else
3915 no_cache=1
3916 fi
3917
3918 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3919
3920 fi
3921
3922
3923 eval "$ac_cv_use_dynamicloader"
3924 if test "$no_cache" != 1; then
3925 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3926 fi
3927
3928 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3929 echo "$ac_t""yes" 1>&6
3930 else
3931 echo "$ac_t""no" 1>&6
3932 fi
3933
3934
3935 enablestring=
3936 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3937 echo "configure:3938: checking for --${enablestring:-enable}-longlong" >&5
3938 no_cache=0
3939 # Check whether --enable-longlong or --disable-longlong was given.
3940 if test "${enable_longlong+set}" = set; then
3941 enableval="$enable_longlong"
3942
3943 if test "$enableval" = yes; then
3944 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3945 else
3946 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3947 fi
3948
3949 else
3950
3951 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3952 if test "x$LINE" != x ; then
3953 eval "DEFAULT_$LINE"
3954 else
3955 no_cache=1
3956 fi
3957
3958 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3959
3960 fi
3961
3962
3963 eval "$ac_cv_use_longlong"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$wxUSE_LONGLONG" = yes; then
3969 echo "$ac_t""yes" 1>&6
3970 else
3971 echo "$ac_t""no" 1>&6
3972 fi
3973
3974
3975 enablestring=
3976 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3977 echo "configure:3978: checking for --${enablestring:-enable}-geometry" >&5
3978 no_cache=0
3979 # Check whether --enable-geometry or --disable-geometry was given.
3980 if test "${enable_geometry+set}" = set; then
3981 enableval="$enable_geometry"
3982
3983 if test "$enableval" = yes; then
3984 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3985 else
3986 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3987 fi
3988
3989 else
3990
3991 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3992 if test "x$LINE" != x ; then
3993 eval "DEFAULT_$LINE"
3994 else
3995 no_cache=1
3996 fi
3997
3998 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3999
4000 fi
4001
4002
4003 eval "$ac_cv_use_geometry"
4004 if test "$no_cache" != 1; then
4005 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4006 fi
4007
4008 if test "$wxUSE_GEOMETRY" = yes; then
4009 echo "$ac_t""yes" 1>&6
4010 else
4011 echo "$ac_t""no" 1>&6
4012 fi
4013
4014
4015 enablestring=
4016 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4017 echo "configure:4018: checking for --${enablestring:-enable}-log" >&5
4018 no_cache=0
4019 # Check whether --enable-log or --disable-log was given.
4020 if test "${enable_log+set}" = set; then
4021 enableval="$enable_log"
4022
4023 if test "$enableval" = yes; then
4024 ac_cv_use_log='wxUSE_LOG=yes'
4025 else
4026 ac_cv_use_log='wxUSE_LOG=no'
4027 fi
4028
4029 else
4030
4031 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4032 if test "x$LINE" != x ; then
4033 eval "DEFAULT_$LINE"
4034 else
4035 no_cache=1
4036 fi
4037
4038 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4039
4040 fi
4041
4042
4043 eval "$ac_cv_use_log"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$wxUSE_LOG" = yes; then
4049 echo "$ac_t""yes" 1>&6
4050 else
4051 echo "$ac_t""no" 1>&6
4052 fi
4053
4054
4055 enablestring=
4056 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4057 echo "configure:4058: checking for --${enablestring:-enable}-streams" >&5
4058 no_cache=0
4059 # Check whether --enable-streams or --disable-streams was given.
4060 if test "${enable_streams+set}" = set; then
4061 enableval="$enable_streams"
4062
4063 if test "$enableval" = yes; then
4064 ac_cv_use_streams='wxUSE_STREAMS=yes'
4065 else
4066 ac_cv_use_streams='wxUSE_STREAMS=no'
4067 fi
4068
4069 else
4070
4071 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4079
4080 fi
4081
4082
4083 eval "$ac_cv_use_streams"
4084 if test "$no_cache" != 1; then
4085 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4086 fi
4087
4088 if test "$wxUSE_STREAMS" = yes; then
4089 echo "$ac_t""yes" 1>&6
4090 else
4091 echo "$ac_t""no" 1>&6
4092 fi
4093
4094
4095 enablestring=
4096 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4097 echo "configure:4098: checking for --${enablestring:-enable}-file" >&5
4098 no_cache=0
4099 # Check whether --enable-file or --disable-file was given.
4100 if test "${enable_file+set}" = set; then
4101 enableval="$enable_file"
4102
4103 if test "$enableval" = yes; then
4104 ac_cv_use_file='wxUSE_FILE=yes'
4105 else
4106 ac_cv_use_file='wxUSE_FILE=no'
4107 fi
4108
4109 else
4110
4111 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4112 if test "x$LINE" != x ; then
4113 eval "DEFAULT_$LINE"
4114 else
4115 no_cache=1
4116 fi
4117
4118 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4119
4120 fi
4121
4122
4123 eval "$ac_cv_use_file"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_FILE" = yes; then
4129 echo "$ac_t""yes" 1>&6
4130 else
4131 echo "$ac_t""no" 1>&6
4132 fi
4133
4134
4135 enablestring=
4136 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4137 echo "configure:4138: checking for --${enablestring:-enable}-ffile" >&5
4138 no_cache=0
4139 # Check whether --enable-ffile or --disable-ffile was given.
4140 if test "${enable_ffile+set}" = set; then
4141 enableval="$enable_ffile"
4142
4143 if test "$enableval" = yes; then
4144 ac_cv_use_ffile='wxUSE_FFILE=yes'
4145 else
4146 ac_cv_use_ffile='wxUSE_FFILE=no'
4147 fi
4148
4149 else
4150
4151 LINE=`grep "wxUSE_FFILE" ${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_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4159
4160 fi
4161
4162
4163 eval "$ac_cv_use_ffile"
4164 if test "$no_cache" != 1; then
4165 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4166 fi
4167
4168 if test "$wxUSE_FFILE" = yes; then
4169 echo "$ac_t""yes" 1>&6
4170 else
4171 echo "$ac_t""no" 1>&6
4172 fi
4173
4174
4175 enablestring=
4176 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4177 echo "configure:4178: checking for --${enablestring:-enable}-textbuf" >&5
4178 no_cache=0
4179 # Check whether --enable-textbuf or --disable-textbuf was given.
4180 if test "${enable_textbuf+set}" = set; then
4181 enableval="$enable_textbuf"
4182
4183 if test "$enableval" = yes; then
4184 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4185 else
4186 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4187 fi
4188
4189 else
4190
4191 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
4198 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4199
4200 fi
4201
4202
4203 eval "$ac_cv_use_textbuf"
4204 if test "$no_cache" != 1; then
4205 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4206 fi
4207
4208 if test "$wxUSE_TEXTBUFFER" = yes; then
4209 echo "$ac_t""yes" 1>&6
4210 else
4211 echo "$ac_t""no" 1>&6
4212 fi
4213
4214
4215 enablestring=
4216 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4217 echo "configure:4218: checking for --${enablestring:-enable}-textfile" >&5
4218 no_cache=0
4219 # Check whether --enable-textfile or --disable-textfile was given.
4220 if test "${enable_textfile+set}" = set; then
4221 enableval="$enable_textfile"
4222
4223 if test "$enableval" = yes; then
4224 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4225 else
4226 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4227 fi
4228
4229 else
4230
4231 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
4238 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4239
4240 fi
4241
4242
4243 eval "$ac_cv_use_textfile"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_TEXTFILE" = yes; then
4249 echo "$ac_t""yes" 1>&6
4250 else
4251 echo "$ac_t""no" 1>&6
4252 fi
4253
4254
4255 enablestring=
4256 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4257 echo "configure:4258: checking for --${enablestring:-enable}-fontmap" >&5
4258 no_cache=0
4259 # Check whether --enable-fontmap or --disable-fontmap was given.
4260 if test "${enable_fontmap+set}" = set; then
4261 enableval="$enable_fontmap"
4262
4263 if test "$enableval" = yes; then
4264 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4265 else
4266 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4267 fi
4268
4269 else
4270
4271 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4272 if test "x$LINE" != x ; then
4273 eval "DEFAULT_$LINE"
4274 else
4275 no_cache=1
4276 fi
4277
4278 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4279
4280 fi
4281
4282
4283 eval "$ac_cv_use_fontmap"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_FONTMAP" = yes; then
4289 echo "$ac_t""yes" 1>&6
4290 else
4291 echo "$ac_t""no" 1>&6
4292 fi
4293
4294
4295 enablestring=
4296 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4297 echo "configure:4298: checking for --${enablestring:-enable}-unicode" >&5
4298 no_cache=0
4299 # Check whether --enable-unicode or --disable-unicode was given.
4300 if test "${enable_unicode+set}" = set; then
4301 enableval="$enable_unicode"
4302
4303 if test "$enableval" = yes; then
4304 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4305 else
4306 ac_cv_use_unicode='wxUSE_UNICODE=no'
4307 fi
4308
4309 else
4310
4311 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4312 if test "x$LINE" != x ; then
4313 eval "DEFAULT_$LINE"
4314 else
4315 no_cache=1
4316 fi
4317
4318 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4319
4320 fi
4321
4322
4323 eval "$ac_cv_use_unicode"
4324 if test "$no_cache" != 1; then
4325 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4326 fi
4327
4328 if test "$wxUSE_UNICODE" = yes; then
4329 echo "$ac_t""yes" 1>&6
4330 else
4331 echo "$ac_t""no" 1>&6
4332 fi
4333
4334
4335 enablestring=
4336 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4337 echo "configure:4338: checking for --${enablestring:-enable}-mslu" >&5
4338 no_cache=0
4339 # Check whether --enable-mslu or --disable-mslu was given.
4340 if test "${enable_mslu+set}" = set; then
4341 enableval="$enable_mslu"
4342
4343 if test "$enableval" = yes; then
4344 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4345 else
4346 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4347 fi
4348
4349 else
4350
4351 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4352 if test "x$LINE" != x ; then
4353 eval "DEFAULT_$LINE"
4354 else
4355 no_cache=1
4356 fi
4357
4358 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4359
4360 fi
4361
4362
4363 eval "$ac_cv_use_mslu"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_UNICODE_MSLU" = yes; then
4369 echo "$ac_t""yes" 1>&6
4370 else
4371 echo "$ac_t""no" 1>&6
4372 fi
4373
4374
4375 enablestring=
4376 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4377 echo "configure:4378: checking for --${enablestring:-enable}-wxprintfv" >&5
4378 no_cache=0
4379 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4380 if test "${enable_wxprintfv+set}" = set; then
4381 enableval="$enable_wxprintfv"
4382
4383 if test "$enableval" = yes; then
4384 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4385 else
4386 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4387 fi
4388
4389 else
4390
4391 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4392 if test "x$LINE" != x ; then
4393 eval "DEFAULT_$LINE"
4394 else
4395 no_cache=1
4396 fi
4397
4398 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4399
4400 fi
4401
4402
4403 eval "$ac_cv_use_wxprintfv"
4404 if test "$no_cache" != 1; then
4405 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4406 fi
4407
4408 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4409 echo "$ac_t""yes" 1>&6
4410 else
4411 echo "$ac_t""no" 1>&6
4412 fi
4413
4414
4415 enablestring=
4416 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4417 echo "configure:4418: checking for --${enablestring:-enable}-std_iostreams" >&5
4418 no_cache=0
4419 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4420 if test "${enable_std_iostreams+set}" = set; then
4421 enableval="$enable_std_iostreams"
4422
4423 if test "$enableval" = yes; then
4424 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4425 else
4426 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4427 fi
4428
4429 else
4430
4431 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4432 if test "x$LINE" != x ; then
4433 eval "DEFAULT_$LINE"
4434 else
4435 no_cache=1
4436 fi
4437
4438 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4439
4440 fi
4441
4442
4443 eval "$ac_cv_use_std_iostreams"
4444 if test "$no_cache" != 1; then
4445 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4446 fi
4447
4448 if test "$wxUSE_STD_IOSTREAM" = yes; then
4449 echo "$ac_t""yes" 1>&6
4450 else
4451 echo "$ac_t""no" 1>&6
4452 fi
4453
4454
4455 enablestring=
4456 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4457 echo "configure:4458: checking for --${enablestring:-enable}-filesystem" >&5
4458 no_cache=0
4459 # Check whether --enable-filesystem or --disable-filesystem was given.
4460 if test "${enable_filesystem+set}" = set; then
4461 enableval="$enable_filesystem"
4462
4463 if test "$enableval" = yes; then
4464 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4465 else
4466 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4467 fi
4468
4469 else
4470
4471 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4472 if test "x$LINE" != x ; then
4473 eval "DEFAULT_$LINE"
4474 else
4475 no_cache=1
4476 fi
4477
4478 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4479
4480 fi
4481
4482
4483 eval "$ac_cv_use_filesystem"
4484 if test "$no_cache" != 1; then
4485 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4486 fi
4487
4488 if test "$wxUSE_FILESYSTEM" = yes; then
4489 echo "$ac_t""yes" 1>&6
4490 else
4491 echo "$ac_t""no" 1>&6
4492 fi
4493
4494
4495 enablestring=
4496 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4497 echo "configure:4498: checking for --${enablestring:-enable}-fs_inet" >&5
4498 no_cache=0
4499 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4500 if test "${enable_fs_inet+set}" = set; then
4501 enableval="$enable_fs_inet"
4502
4503 if test "$enableval" = yes; then
4504 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4505 else
4506 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4507 fi
4508
4509 else
4510
4511 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4519
4520 fi
4521
4522
4523 eval "$ac_cv_use_fs_inet"
4524 if test "$no_cache" != 1; then
4525 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4526 fi
4527
4528 if test "$wxUSE_FS_INET" = yes; then
4529 echo "$ac_t""yes" 1>&6
4530 else
4531 echo "$ac_t""no" 1>&6
4532 fi
4533
4534
4535 enablestring=
4536 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4537 echo "configure:4538: checking for --${enablestring:-enable}-fs_zip" >&5
4538 no_cache=0
4539 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4540 if test "${enable_fs_zip+set}" = set; then
4541 enableval="$enable_fs_zip"
4542
4543 if test "$enableval" = yes; then
4544 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4545 else
4546 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4547 fi
4548
4549 else
4550
4551 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4559
4560 fi
4561
4562
4563 eval "$ac_cv_use_fs_zip"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_FS_ZIP" = yes; then
4569 echo "$ac_t""yes" 1>&6
4570 else
4571 echo "$ac_t""no" 1>&6
4572 fi
4573
4574
4575 enablestring=
4576 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4577 echo "configure:4578: checking for --${enablestring:-enable}-zipstream" >&5
4578 no_cache=0
4579 # Check whether --enable-zipstream or --disable-zipstream was given.
4580 if test "${enable_zipstream+set}" = set; then
4581 enableval="$enable_zipstream"
4582
4583 if test "$enableval" = yes; then
4584 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4585 else
4586 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4587 fi
4588
4589 else
4590
4591 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4592 if test "x$LINE" != x ; then
4593 eval "DEFAULT_$LINE"
4594 else
4595 no_cache=1
4596 fi
4597
4598 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4599
4600 fi
4601
4602
4603 eval "$ac_cv_use_zipstream"
4604 if test "$no_cache" != 1; then
4605 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4606 fi
4607
4608 if test "$wxUSE_ZIPSTREAM" = yes; then
4609 echo "$ac_t""yes" 1>&6
4610 else
4611 echo "$ac_t""no" 1>&6
4612 fi
4613
4614
4615
4616 enablestring=
4617 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4618 echo "configure:4619: checking for --${enablestring:-enable}-catch_segvs" >&5
4619 no_cache=0
4620 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4621 if test "${enable_catch_segvs+set}" = set; then
4622 enableval="$enable_catch_segvs"
4623
4624 if test "$enableval" = yes; then
4625 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4626 else
4627 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4628 fi
4629
4630 else
4631
4632 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
4639 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4640
4641 fi
4642
4643
4644 eval "$ac_cv_use_catch_segvs"
4645 if test "$no_cache" != 1; then
4646 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4647 fi
4648
4649 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4650 echo "$ac_t""yes" 1>&6
4651 else
4652 echo "$ac_t""no" 1>&6
4653 fi
4654
4655
4656 enablestring=
4657 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4658 echo "configure:4659: checking for --${enablestring:-enable}-snglinst" >&5
4659 no_cache=0
4660 # Check whether --enable-snglinst or --disable-snglinst was given.
4661 if test "${enable_snglinst+set}" = set; then
4662 enableval="$enable_snglinst"
4663
4664 if test "$enableval" = yes; then
4665 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4666 else
4667 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4668 fi
4669
4670 else
4671
4672 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4673 if test "x$LINE" != x ; then
4674 eval "DEFAULT_$LINE"
4675 else
4676 no_cache=1
4677 fi
4678
4679 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4680
4681 fi
4682
4683
4684 eval "$ac_cv_use_snglinst"
4685 if test "$no_cache" != 1; then
4686 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4687 fi
4688
4689 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4690 echo "$ac_t""yes" 1>&6
4691 else
4692 echo "$ac_t""no" 1>&6
4693 fi
4694
4695
4696
4697 enablestring=
4698 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4699 echo "configure:4700: checking for --${enablestring:-enable}-mimetype" >&5
4700 no_cache=0
4701 # Check whether --enable-mimetype or --disable-mimetype was given.
4702 if test "${enable_mimetype+set}" = set; then
4703 enableval="$enable_mimetype"
4704
4705 if test "$enableval" = yes; then
4706 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4707 else
4708 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4709 fi
4710
4711 else
4712
4713 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4714 if test "x$LINE" != x ; then
4715 eval "DEFAULT_$LINE"
4716 else
4717 no_cache=1
4718 fi
4719
4720 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4721
4722 fi
4723
4724
4725 eval "$ac_cv_use_mimetype"
4726 if test "$no_cache" != 1; then
4727 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4728 fi
4729
4730 if test "$wxUSE_MIMETYPE" = yes; then
4731 echo "$ac_t""yes" 1>&6
4732 else
4733 echo "$ac_t""no" 1>&6
4734 fi
4735
4736
4737 enablestring=
4738 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4739 echo "configure:4740: checking for --${enablestring:-enable}-system_options" >&5
4740 no_cache=0
4741 # Check whether --enable-system_options or --disable-system_options was given.
4742 if test "${enable_system_options+set}" = set; then
4743 enableval="$enable_system_options"
4744
4745 if test "$enableval" = yes; then
4746 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4747 else
4748 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4749 fi
4750
4751 else
4752
4753 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
4760 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4761
4762 fi
4763
4764
4765 eval "$ac_cv_use_system_options"
4766 if test "$no_cache" != 1; then
4767 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4768 fi
4769
4770 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4771 echo "$ac_t""yes" 1>&6
4772 else
4773 echo "$ac_t""no" 1>&6
4774 fi
4775
4776
4777
4778 enablestring=
4779 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4780 echo "configure:4781: checking for --${enablestring:-enable}-url" >&5
4781 no_cache=0
4782 # Check whether --enable-url or --disable-url was given.
4783 if test "${enable_url+set}" = set; then
4784 enableval="$enable_url"
4785
4786 if test "$enableval" = yes; then
4787 ac_cv_use_url='wxUSE_URL=yes'
4788 else
4789 ac_cv_use_url='wxUSE_URL=no'
4790 fi
4791
4792 else
4793
4794 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4795 if test "x$LINE" != x ; then
4796 eval "DEFAULT_$LINE"
4797 else
4798 no_cache=1
4799 fi
4800
4801 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4802
4803 fi
4804
4805
4806 eval "$ac_cv_use_url"
4807 if test "$no_cache" != 1; then
4808 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4809 fi
4810
4811 if test "$wxUSE_URL" = yes; then
4812 echo "$ac_t""yes" 1>&6
4813 else
4814 echo "$ac_t""no" 1>&6
4815 fi
4816
4817
4818 enablestring=
4819 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4820 echo "configure:4821: checking for --${enablestring:-enable}-protocol" >&5
4821 no_cache=0
4822 # Check whether --enable-protocol or --disable-protocol was given.
4823 if test "${enable_protocol+set}" = set; then
4824 enableval="$enable_protocol"
4825
4826 if test "$enableval" = yes; then
4827 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4828 else
4829 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4830 fi
4831
4832 else
4833
4834 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4842
4843 fi
4844
4845
4846 eval "$ac_cv_use_protocol"
4847 if test "$no_cache" != 1; then
4848 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4849 fi
4850
4851 if test "$wxUSE_PROTOCOL" = yes; then
4852 echo "$ac_t""yes" 1>&6
4853 else
4854 echo "$ac_t""no" 1>&6
4855 fi
4856
4857
4858 enablestring=
4859 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4860 echo "configure:4861: checking for --${enablestring:-enable}-protocol_http" >&5
4861 no_cache=0
4862 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4863 if test "${enable_protocol_http+set}" = set; then
4864 enableval="$enable_protocol_http"
4865
4866 if test "$enableval" = yes; then
4867 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4868 else
4869 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4870 fi
4871
4872 else
4873
4874 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4875 if test "x$LINE" != x ; then
4876 eval "DEFAULT_$LINE"
4877 else
4878 no_cache=1
4879 fi
4880
4881 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4882
4883 fi
4884
4885
4886 eval "$ac_cv_use_protocol_http"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4892 echo "$ac_t""yes" 1>&6
4893 else
4894 echo "$ac_t""no" 1>&6
4895 fi
4896
4897
4898 enablestring=
4899 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4900 echo "configure:4901: checking for --${enablestring:-enable}-protocol_ftp" >&5
4901 no_cache=0
4902 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4903 if test "${enable_protocol_ftp+set}" = set; then
4904 enableval="$enable_protocol_ftp"
4905
4906 if test "$enableval" = yes; then
4907 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4908 else
4909 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4910 fi
4911
4912 else
4913
4914 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4915 if test "x$LINE" != x ; then
4916 eval "DEFAULT_$LINE"
4917 else
4918 no_cache=1
4919 fi
4920
4921 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4922
4923 fi
4924
4925
4926 eval "$ac_cv_use_protocol_ftp"
4927 if test "$no_cache" != 1; then
4928 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4929 fi
4930
4931 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4932 echo "$ac_t""yes" 1>&6
4933 else
4934 echo "$ac_t""no" 1>&6
4935 fi
4936
4937
4938 enablestring=
4939 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4940 echo "configure:4941: checking for --${enablestring:-enable}-protocol_file" >&5
4941 no_cache=0
4942 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4943 if test "${enable_protocol_file+set}" = set; then
4944 enableval="$enable_protocol_file"
4945
4946 if test "$enableval" = yes; then
4947 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4948 else
4949 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4950 fi
4951
4952 else
4953
4954 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4955 if test "x$LINE" != x ; then
4956 eval "DEFAULT_$LINE"
4957 else
4958 no_cache=1
4959 fi
4960
4961 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4962
4963 fi
4964
4965
4966 eval "$ac_cv_use_protocol_file"
4967 if test "$no_cache" != 1; then
4968 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4969 fi
4970
4971 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4972 echo "$ac_t""yes" 1>&6
4973 else
4974 echo "$ac_t""no" 1>&6
4975 fi
4976
4977
4978
4979
4980
4981 enablestring=
4982 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4983 echo "configure:4984: checking for --${enablestring:-enable}-threads" >&5
4984 no_cache=0
4985 # Check whether --enable-threads or --disable-threads was given.
4986 if test "${enable_threads+set}" = set; then
4987 enableval="$enable_threads"
4988
4989 if test "$enableval" = yes; then
4990 ac_cv_use_threads='wxUSE_THREADS=yes'
4991 else
4992 ac_cv_use_threads='wxUSE_THREADS=no'
4993 fi
4994
4995 else
4996
4997 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4998 if test "x$LINE" != x ; then
4999 eval "DEFAULT_$LINE"
5000 else
5001 no_cache=1
5002 fi
5003
5004 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5005
5006 fi
5007
5008
5009 eval "$ac_cv_use_threads"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_THREADS" = yes; then
5015 echo "$ac_t""yes" 1>&6
5016 else
5017 echo "$ac_t""no" 1>&6
5018 fi
5019
5020
5021 if test "$wxUSE_GUI" = "yes"; then
5022
5023
5024
5025 enablestring=
5026 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5027 echo "configure:5028: checking for --${enablestring:-enable}-docview" >&5
5028 no_cache=0
5029 # Check whether --enable-docview or --disable-docview was given.
5030 if test "${enable_docview+set}" = set; then
5031 enableval="$enable_docview"
5032
5033 if test "$enableval" = yes; then
5034 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5035 else
5036 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5037 fi
5038
5039 else
5040
5041 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5042 if test "x$LINE" != x ; then
5043 eval "DEFAULT_$LINE"
5044 else
5045 no_cache=1
5046 fi
5047
5048 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5049
5050 fi
5051
5052
5053 eval "$ac_cv_use_docview"
5054 if test "$no_cache" != 1; then
5055 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5056 fi
5057
5058 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5059 echo "$ac_t""yes" 1>&6
5060 else
5061 echo "$ac_t""no" 1>&6
5062 fi
5063
5064
5065 enablestring=
5066 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5067 echo "configure:5068: checking for --${enablestring:-enable}-help" >&5
5068 no_cache=0
5069 # Check whether --enable-help or --disable-help was given.
5070 if test "${enable_help+set}" = set; then
5071 enableval="$enable_help"
5072
5073 if test "$enableval" = yes; then
5074 ac_cv_use_help='wxUSE_HELP=yes'
5075 else
5076 ac_cv_use_help='wxUSE_HELP=no'
5077 fi
5078
5079 else
5080
5081 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5082 if test "x$LINE" != x ; then
5083 eval "DEFAULT_$LINE"
5084 else
5085 no_cache=1
5086 fi
5087
5088 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5089
5090 fi
5091
5092
5093 eval "$ac_cv_use_help"
5094 if test "$no_cache" != 1; then
5095 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5096 fi
5097
5098 if test "$wxUSE_HELP" = yes; then
5099 echo "$ac_t""yes" 1>&6
5100 else
5101 echo "$ac_t""no" 1>&6
5102 fi
5103
5104
5105 enablestring=
5106 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5107 echo "configure:5108: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5108 no_cache=0
5109 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5110 if test "${enable_mshtmlhelp+set}" = set; then
5111 enableval="$enable_mshtmlhelp"
5112
5113 if test "$enableval" = yes; then
5114 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5115 else
5116 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5117 fi
5118
5119 else
5120
5121 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5129
5130 fi
5131
5132
5133 eval "$ac_cv_use_mshtmlhelp"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_MS_HTML_HELP" = yes; then
5139 echo "$ac_t""yes" 1>&6
5140 else
5141 echo "$ac_t""no" 1>&6
5142 fi
5143
5144
5145 enablestring=
5146 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5147 echo "configure:5148: checking for --${enablestring:-enable}-html" >&5
5148 no_cache=0
5149 # Check whether --enable-html or --disable-html was given.
5150 if test "${enable_html+set}" = set; then
5151 enableval="$enable_html"
5152
5153 if test "$enableval" = yes; then
5154 ac_cv_use_html='wxUSE_HTML=yes'
5155 else
5156 ac_cv_use_html='wxUSE_HTML=no'
5157 fi
5158
5159 else
5160
5161 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5162 if test "x$LINE" != x ; then
5163 eval "DEFAULT_$LINE"
5164 else
5165 no_cache=1
5166 fi
5167
5168 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5169
5170 fi
5171
5172
5173 eval "$ac_cv_use_html"
5174 if test "$no_cache" != 1; then
5175 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5176 fi
5177
5178 if test "$wxUSE_HTML" = yes; then
5179 echo "$ac_t""yes" 1>&6
5180 else
5181 echo "$ac_t""no" 1>&6
5182 fi
5183
5184
5185 enablestring=
5186 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5187 echo "configure:5188: checking for --${enablestring:-enable}-htmlhelp" >&5
5188 no_cache=0
5189 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5190 if test "${enable_htmlhelp+set}" = set; then
5191 enableval="$enable_htmlhelp"
5192
5193 if test "$enableval" = yes; then
5194 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5195 else
5196 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5197 fi
5198
5199 else
5200
5201 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5202 if test "x$LINE" != x ; then
5203 eval "DEFAULT_$LINE"
5204 else
5205 no_cache=1
5206 fi
5207
5208 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5209
5210 fi
5211
5212
5213 eval "$ac_cv_use_htmlhelp"
5214 if test "$no_cache" != 1; then
5215 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5216 fi
5217
5218 if test "$wxUSE_WXHTML_HELP" = yes; then
5219 echo "$ac_t""yes" 1>&6
5220 else
5221 echo "$ac_t""no" 1>&6
5222 fi
5223
5224
5225 enablestring=
5226 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5227 echo "configure:5228: checking for --${enablestring:-enable}-constraints" >&5
5228 no_cache=0
5229 # Check whether --enable-constraints or --disable-constraints was given.
5230 if test "${enable_constraints+set}" = set; then
5231 enableval="$enable_constraints"
5232
5233 if test "$enableval" = yes; then
5234 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5235 else
5236 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5237 fi
5238
5239 else
5240
5241 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5242 if test "x$LINE" != x ; then
5243 eval "DEFAULT_$LINE"
5244 else
5245 no_cache=1
5246 fi
5247
5248 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5249
5250 fi
5251
5252
5253 eval "$ac_cv_use_constraints"
5254 if test "$no_cache" != 1; then
5255 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5256 fi
5257
5258 if test "$wxUSE_CONSTRAINTS" = yes; then
5259 echo "$ac_t""yes" 1>&6
5260 else
5261 echo "$ac_t""no" 1>&6
5262 fi
5263
5264
5265 enablestring=
5266 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5267 echo "configure:5268: checking for --${enablestring:-enable}-printarch" >&5
5268 no_cache=0
5269 # Check whether --enable-printarch or --disable-printarch was given.
5270 if test "${enable_printarch+set}" = set; then
5271 enableval="$enable_printarch"
5272
5273 if test "$enableval" = yes; then
5274 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5275 else
5276 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5277 fi
5278
5279 else
5280
5281 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5282 if test "x$LINE" != x ; then
5283 eval "DEFAULT_$LINE"
5284 else
5285 no_cache=1
5286 fi
5287
5288 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5289
5290 fi
5291
5292
5293 eval "$ac_cv_use_printarch"
5294 if test "$no_cache" != 1; then
5295 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5296 fi
5297
5298 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5299 echo "$ac_t""yes" 1>&6
5300 else
5301 echo "$ac_t""no" 1>&6
5302 fi
5303
5304
5305 enablestring=
5306 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5307 echo "configure:5308: checking for --${enablestring:-enable}-mdi" >&5
5308 no_cache=0
5309 # Check whether --enable-mdi or --disable-mdi was given.
5310 if test "${enable_mdi+set}" = set; then
5311 enableval="$enable_mdi"
5312
5313 if test "$enableval" = yes; then
5314 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5315 else
5316 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5317 fi
5318
5319 else
5320
5321 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5322 if test "x$LINE" != x ; then
5323 eval "DEFAULT_$LINE"
5324 else
5325 no_cache=1
5326 fi
5327
5328 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5329
5330 fi
5331
5332
5333 eval "$ac_cv_use_mdi"
5334 if test "$no_cache" != 1; then
5335 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5336 fi
5337
5338 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5339 echo "$ac_t""yes" 1>&6
5340 else
5341 echo "$ac_t""no" 1>&6
5342 fi
5343
5344
5345 enablestring=
5346 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5347 echo "configure:5348: checking for --${enablestring:-enable}-loggui" >&5
5348 no_cache=0
5349 # Check whether --enable-loggui or --disable-loggui was given.
5350 if test "${enable_loggui+set}" = set; then
5351 enableval="$enable_loggui"
5352
5353 if test "$enableval" = yes; then
5354 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5355 else
5356 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5357 fi
5358
5359 else
5360
5361 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5362 if test "x$LINE" != x ; then
5363 eval "DEFAULT_$LINE"
5364 else
5365 no_cache=1
5366 fi
5367
5368 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5369
5370 fi
5371
5372
5373 eval "$ac_cv_use_loggui"
5374 if test "$no_cache" != 1; then
5375 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5376 fi
5377
5378 if test "$wxUSE_LOGGUI" = yes; then
5379 echo "$ac_t""yes" 1>&6
5380 else
5381 echo "$ac_t""no" 1>&6
5382 fi
5383
5384
5385 enablestring=
5386 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5387 echo "configure:5388: checking for --${enablestring:-enable}-logwin" >&5
5388 no_cache=0
5389 # Check whether --enable-logwin or --disable-logwin was given.
5390 if test "${enable_logwin+set}" = set; then
5391 enableval="$enable_logwin"
5392
5393 if test "$enableval" = yes; then
5394 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5395 else
5396 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5397 fi
5398
5399 else
5400
5401 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5402 if test "x$LINE" != x ; then
5403 eval "DEFAULT_$LINE"
5404 else
5405 no_cache=1
5406 fi
5407
5408 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5409
5410 fi
5411
5412
5413 eval "$ac_cv_use_logwin"
5414 if test "$no_cache" != 1; then
5415 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5416 fi
5417
5418 if test "$wxUSE_LOGWINDOW" = yes; then
5419 echo "$ac_t""yes" 1>&6
5420 else
5421 echo "$ac_t""no" 1>&6
5422 fi
5423
5424
5425 enablestring=
5426 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5427 echo "configure:5428: checking for --${enablestring:-enable}-logdialog" >&5
5428 no_cache=0
5429 # Check whether --enable-logdialog or --disable-logdialog was given.
5430 if test "${enable_logdialog+set}" = set; then
5431 enableval="$enable_logdialog"
5432
5433 if test "$enableval" = yes; then
5434 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5435 else
5436 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5437 fi
5438
5439 else
5440
5441 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5442 if test "x$LINE" != x ; then
5443 eval "DEFAULT_$LINE"
5444 else
5445 no_cache=1
5446 fi
5447
5448 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5449
5450 fi
5451
5452
5453 eval "$ac_cv_use_logdialog"
5454 if test "$no_cache" != 1; then
5455 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5456 fi
5457
5458 if test "$wxUSE_LOGDIALOG" = yes; then
5459 echo "$ac_t""yes" 1>&6
5460 else
5461 echo "$ac_t""no" 1>&6
5462 fi
5463
5464
5465
5466 enablestring=
5467 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5468 echo "configure:5469: checking for --${enablestring:-enable}-postscript" >&5
5469 no_cache=0
5470 # Check whether --enable-postscript or --disable-postscript was given.
5471 if test "${enable_postscript+set}" = set; then
5472 enableval="$enable_postscript"
5473
5474 if test "$enableval" = yes; then
5475 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5476 else
5477 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5478 fi
5479
5480 else
5481
5482 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5483 if test "x$LINE" != x ; then
5484 eval "DEFAULT_$LINE"
5485 else
5486 no_cache=1
5487 fi
5488
5489 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5490
5491 fi
5492
5493
5494 eval "$ac_cv_use_postscript"
5495 if test "$no_cache" != 1; then
5496 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5497 fi
5498
5499 if test "$wxUSE_POSTSCRIPT" = yes; then
5500 echo "$ac_t""yes" 1>&6
5501 else
5502 echo "$ac_t""no" 1>&6
5503 fi
5504
5505
5506
5507
5508
5509 enablestring=
5510 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5511 echo "configure:5512: checking for --${enablestring:-enable}-prologio" >&5
5512 no_cache=0
5513 # Check whether --enable-prologio or --disable-prologio was given.
5514 if test "${enable_prologio+set}" = set; then
5515 enableval="$enable_prologio"
5516
5517 if test "$enableval" = yes; then
5518 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5519 else
5520 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5521 fi
5522
5523 else
5524
5525 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5526 if test "x$LINE" != x ; then
5527 eval "DEFAULT_$LINE"
5528 else
5529 no_cache=1
5530 fi
5531
5532 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5533
5534 fi
5535
5536
5537 eval "$ac_cv_use_prologio"
5538 if test "$no_cache" != 1; then
5539 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5540 fi
5541
5542 if test "$wxUSE_PROLOGIO" = yes; then
5543 echo "$ac_t""yes" 1>&6
5544 else
5545 echo "$ac_t""no" 1>&6
5546 fi
5547
5548
5549 enablestring=
5550 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5551 echo "configure:5552: checking for --${enablestring:-enable}-resources" >&5
5552 no_cache=0
5553 # Check whether --enable-resources or --disable-resources was given.
5554 if test "${enable_resources+set}" = set; then
5555 enableval="$enable_resources"
5556
5557 if test "$enableval" = yes; then
5558 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5559 else
5560 ac_cv_use_resources='wxUSE_RESOURCES=no'
5561 fi
5562
5563 else
5564
5565 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5566 if test "x$LINE" != x ; then
5567 eval "DEFAULT_$LINE"
5568 else
5569 no_cache=1
5570 fi
5571
5572 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5573
5574 fi
5575
5576
5577 eval "$ac_cv_use_resources"
5578 if test "$no_cache" != 1; then
5579 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5580 fi
5581
5582 if test "$wxUSE_RESOURCES" = yes; then
5583 echo "$ac_t""yes" 1>&6
5584 else
5585 echo "$ac_t""no" 1>&6
5586 fi
5587
5588
5589
5590
5591 enablestring=
5592 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5593 echo "configure:5594: checking for --${enablestring:-enable}-clipboard" >&5
5594 no_cache=0
5595 # Check whether --enable-clipboard or --disable-clipboard was given.
5596 if test "${enable_clipboard+set}" = set; then
5597 enableval="$enable_clipboard"
5598
5599 if test "$enableval" = yes; then
5600 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5601 else
5602 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5603 fi
5604
5605 else
5606
5607 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5608 if test "x$LINE" != x ; then
5609 eval "DEFAULT_$LINE"
5610 else
5611 no_cache=1
5612 fi
5613
5614 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5615
5616 fi
5617
5618
5619 eval "$ac_cv_use_clipboard"
5620 if test "$no_cache" != 1; then
5621 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5622 fi
5623
5624 if test "$wxUSE_CLIPBOARD" = yes; then
5625 echo "$ac_t""yes" 1>&6
5626 else
5627 echo "$ac_t""no" 1>&6
5628 fi
5629
5630
5631 enablestring=
5632 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5633 echo "configure:5634: checking for --${enablestring:-enable}-dnd" >&5
5634 no_cache=0
5635 # Check whether --enable-dnd or --disable-dnd was given.
5636 if test "${enable_dnd+set}" = set; then
5637 enableval="$enable_dnd"
5638
5639 if test "$enableval" = yes; then
5640 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5641 else
5642 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5643 fi
5644
5645 else
5646
5647 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5648 if test "x$LINE" != x ; then
5649 eval "DEFAULT_$LINE"
5650 else
5651 no_cache=1
5652 fi
5653
5654 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5655
5656 fi
5657
5658
5659 eval "$ac_cv_use_dnd"
5660 if test "$no_cache" != 1; then
5661 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5662 fi
5663
5664 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5665 echo "$ac_t""yes" 1>&6
5666 else
5667 echo "$ac_t""no" 1>&6
5668 fi
5669
5670
5671 enablestring=
5672 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5673 echo "configure:5674: checking for --${enablestring:-enable}-metafile" >&5
5674 no_cache=0
5675 # Check whether --enable-metafile or --disable-metafile was given.
5676 if test "${enable_metafile+set}" = set; then
5677 enableval="$enable_metafile"
5678
5679 if test "$enableval" = yes; then
5680 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5681 else
5682 ac_cv_use_metafile='wxUSE_METAFILE=no'
5683 fi
5684
5685 else
5686
5687 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5688 if test "x$LINE" != x ; then
5689 eval "DEFAULT_$LINE"
5690 else
5691 no_cache=1
5692 fi
5693
5694 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5695
5696 fi
5697
5698
5699 eval "$ac_cv_use_metafile"
5700 if test "$no_cache" != 1; then
5701 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5702 fi
5703
5704 if test "$wxUSE_METAFILE" = yes; then
5705 echo "$ac_t""yes" 1>&6
5706 else
5707 echo "$ac_t""no" 1>&6
5708 fi
5709
5710
5711
5712
5713
5714 enablestring=
5715 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5716 echo "configure:5717: checking for --${enablestring:-enable}-controls" >&5
5717 no_cache=0
5718 # Check whether --enable-controls or --disable-controls was given.
5719 if test "${enable_controls+set}" = set; then
5720 enableval="$enable_controls"
5721
5722 if test "$enableval" = yes; then
5723 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5724 else
5725 ac_cv_use_controls='wxUSE_CONTROLS=no'
5726 fi
5727
5728 else
5729
5730 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5731 if test "x$LINE" != x ; then
5732 eval "DEFAULT_$LINE"
5733 else
5734 no_cache=1
5735 fi
5736
5737 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5738
5739 fi
5740
5741
5742 eval "$ac_cv_use_controls"
5743 if test "$no_cache" != 1; then
5744 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5745 fi
5746
5747 if test "$wxUSE_CONTROLS" = yes; then
5748 echo "$ac_t""yes" 1>&6
5749 else
5750 echo "$ac_t""no" 1>&6
5751 fi
5752
5753
5754 if test "$wxUSE_CONTROLS" = "yes"; then
5755 DEFAULT_wxUSE_ACCEL=yes
5756 DEFAULT_wxUSE_BMPBUTTON=yes
5757 DEFAULT_wxUSE_BUTTON=yes
5758 DEFAULT_wxUSE_CALCTRL=no
5759 DEFAULT_wxUSE_CARET=yes
5760 DEFAULT_wxUSE_COMBOBOX=yes
5761 DEFAULT_wxUSE_CHECKBOX=yes
5762 DEFAULT_wxUSE_CHECKLISTBOX=yes
5763 DEFAULT_wxUSE_CHOICE=yes
5764 DEFAULT_wxUSE_GAUGE=yes
5765 DEFAULT_wxUSE_GRID=yes
5766 DEFAULT_wxUSE_IMAGLIST=yes
5767 DEFAULT_wxUSE_LISTBOX=yes
5768 DEFAULT_wxUSE_LISTCTRL=yes
5769 DEFAULT_wxUSE_NOTEBOOK=yes
5770 DEFAULT_wxUSE_RADIOBOX=yes
5771 DEFAULT_wxUSE_RADIOBTN=yes
5772 DEFAULT_wxUSE_SASH=yes
5773 DEFAULT_wxUSE_SCROLLBAR=yes
5774 DEFAULT_wxUSE_SLIDER=yes
5775 DEFAULT_wxUSE_SPINBTN=yes
5776 DEFAULT_wxUSE_SPINCTRL=yes
5777 DEFAULT_wxUSE_SPLITTER=yes
5778 DEFAULT_wxUSE_STATBMP=yes
5779 DEFAULT_wxUSE_STATBOX=yes
5780 DEFAULT_wxUSE_STATLINE=yes
5781 DEFAULT_wxUSE_STATUSBAR=yes
5782 DEFAULT_wxUSE_TAB_DIALOG=yes
5783 DEFAULT_wxUSE_TOGGLEBTN=yes
5784 DEFAULT_wxUSE_TOOLBAR=yes
5785 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5786 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5787 DEFAULT_wxUSE_TOOLTIPS=yes
5788 DEFAULT_wxUSE_TREECTRL=yes
5789 DEFAULT_wxUSE_POPUPWIN=yes
5790 DEFAULT_wxUSE_TIPWINDOW=yes
5791 elif test "$wxUSE_CONTROLS" = "no"; then
5792 DEFAULT_wxUSE_ACCEL=no
5793 DEFAULT_wxUSE_BMPBUTTON=no
5794 DEFAULT_wxUSE_BUTTON=no
5795 DEFAULT_wxUSE_CALCTRL=no
5796 DEFAULT_wxUSE_CARET=no
5797 DEFAULT_wxUSE_COMBOBOX=no
5798 DEFAULT_wxUSE_CHECKBOX=no
5799 DEFAULT_wxUSE_CHECKLISTBOX=no
5800 DEFAULT_wxUSE_CHOICE=no
5801 DEFAULT_wxUSE_GAUGE=no
5802 DEFAULT_wxUSE_GRID=no
5803 DEFAULT_wxUSE_IMAGLIST=no
5804 DEFAULT_wxUSE_LISTBOX=no
5805 DEFAULT_wxUSE_LISTCTRL=no
5806 DEFAULT_wxUSE_NOTEBOOK=no
5807 DEFAULT_wxUSE_RADIOBOX=no
5808 DEFAULT_wxUSE_RADIOBTN=no
5809 DEFAULT_wxUSE_SASH=no
5810 DEFAULT_wxUSE_SCROLLBAR=no
5811 DEFAULT_wxUSE_SLIDER=no
5812 DEFAULT_wxUSE_SPINBTN=no
5813 DEFAULT_wxUSE_SPINCTRL=no
5814 DEFAULT_wxUSE_SPLITTER=no
5815 DEFAULT_wxUSE_STATBMP=no
5816 DEFAULT_wxUSE_STATBOX=no
5817 DEFAULT_wxUSE_STATLINE=no
5818 DEFAULT_wxUSE_STATUSBAR=no
5819 DEFAULT_wxUSE_TAB_DIALOG=no
5820 DEFAULT_wxUSE_TOGGLEBTN=no
5821 DEFAULT_wxUSE_TOOLBAR=no
5822 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5823 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5824 DEFAULT_wxUSE_TOOLTIPS=no
5825 DEFAULT_wxUSE_TREECTRL=no
5826 DEFAULT_wxUSE_POPUPWIN=no
5827 DEFAULT_wxUSE_TIPWINDOW=no
5828 fi
5829
5830 ## FIXME: This is a blatant hack
5831 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5832 wxUSE_PRINTING_ARCHITECTURE=no
5833 wxUSE_HELP=no
5834 wxUSE_CLIPBOARD=no
5835 wxUSE_DRAG_AND_DROP=no
5836 wxUSE_DATAOBJ=no
5837 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5838 DEFAULT_wxUSE_GAUGE=no
5839 DEFAULT_wxUSE_SCROLLBAR=no
5840 DEFAULT_wxUSE_SLIDER=no
5841 DEFAULT_wxUSE_COMBOBOX=no
5842 DEFAULT_wxUSE_CALCTRL=no
5843 DEFAULT_wxUSE_SPINBTN=no
5844 DEFAULT_wxUSE_SPINCTRL=no
5845 DEFAULT_wxUSE_TOOLTIPS=no
5846 DEFAULT_wxUSE_COLOURDLG=no
5847 DEFAULT_wxUSE_DRAGIMAGE=no
5848 DEFAULT_wxUSE_FINDREPLDLG=no
5849 DEFAULT_wxUSE_FONTDLG=no
5850 DEFAULT_wxUSE_GRID=no
5851 DEFAULT_wxUSE_NUMBERDLG=no
5852 DEFAULT_wxUSE_PROGRESSDLG=no
5853 DEFAULT_wxUSE_SASH=no
5854 DEFAULT_wxUSE_SPLITTER=no
5855 DEFAULT_wxUSE_WIZARDDLG=no
5856 DEFAULT_wxUSE_SPLITTER=no
5857 DEFAULT_wxUSE_STARTUP_TIPS=no
5858 fi
5859
5860
5861 enablestring=
5862 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5863 echo "configure:5864: checking for --${enablestring:-enable}-accel" >&5
5864 no_cache=0
5865 # Check whether --enable-accel or --disable-accel was given.
5866 if test "${enable_accel+set}" = set; then
5867 enableval="$enable_accel"
5868
5869 if test "$enableval" = yes; then
5870 ac_cv_use_accel='wxUSE_ACCEL=yes'
5871 else
5872 ac_cv_use_accel='wxUSE_ACCEL=no'
5873 fi
5874
5875 else
5876
5877 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5878 if test "x$LINE" != x ; then
5879 eval "DEFAULT_$LINE"
5880 else
5881 no_cache=1
5882 fi
5883
5884 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5885
5886 fi
5887
5888
5889 eval "$ac_cv_use_accel"
5890 if test "$no_cache" != 1; then
5891 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5892 fi
5893
5894 if test "$wxUSE_ACCEL" = yes; then
5895 echo "$ac_t""yes" 1>&6
5896 else
5897 echo "$ac_t""no" 1>&6
5898 fi
5899
5900
5901 enablestring=
5902 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5903 echo "configure:5904: checking for --${enablestring:-enable}-button" >&5
5904 no_cache=0
5905 # Check whether --enable-button or --disable-button was given.
5906 if test "${enable_button+set}" = set; then
5907 enableval="$enable_button"
5908
5909 if test "$enableval" = yes; then
5910 ac_cv_use_button='wxUSE_BUTTON=yes'
5911 else
5912 ac_cv_use_button='wxUSE_BUTTON=no'
5913 fi
5914
5915 else
5916
5917 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5918 if test "x$LINE" != x ; then
5919 eval "DEFAULT_$LINE"
5920 else
5921 no_cache=1
5922 fi
5923
5924 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5925
5926 fi
5927
5928
5929 eval "$ac_cv_use_button"
5930 if test "$no_cache" != 1; then
5931 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5932 fi
5933
5934 if test "$wxUSE_BUTTON" = yes; then
5935 echo "$ac_t""yes" 1>&6
5936 else
5937 echo "$ac_t""no" 1>&6
5938 fi
5939
5940
5941 enablestring=
5942 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
5943 echo "configure:5944: checking for --${enablestring:-enable}-bmpbutton" >&5
5944 no_cache=0
5945 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5946 if test "${enable_bmpbutton+set}" = set; then
5947 enableval="$enable_bmpbutton"
5948
5949 if test "$enableval" = yes; then
5950 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5951 else
5952 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5953 fi
5954
5955 else
5956
5957 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5958 if test "x$LINE" != x ; then
5959 eval "DEFAULT_$LINE"
5960 else
5961 no_cache=1
5962 fi
5963
5964 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5965
5966 fi
5967
5968
5969 eval "$ac_cv_use_bmpbutton"
5970 if test "$no_cache" != 1; then
5971 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5972 fi
5973
5974 if test "$wxUSE_BMPBUTTON" = yes; then
5975 echo "$ac_t""yes" 1>&6
5976 else
5977 echo "$ac_t""no" 1>&6
5978 fi
5979
5980
5981 enablestring=
5982 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
5983 echo "configure:5984: checking for --${enablestring:-enable}-calendar" >&5
5984 no_cache=0
5985 # Check whether --enable-calendar or --disable-calendar was given.
5986 if test "${enable_calendar+set}" = set; then
5987 enableval="$enable_calendar"
5988
5989 if test "$enableval" = yes; then
5990 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5991 else
5992 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5993 fi
5994
5995 else
5996
5997 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5998 if test "x$LINE" != x ; then
5999 eval "DEFAULT_$LINE"
6000 else
6001 no_cache=1
6002 fi
6003
6004 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6005
6006 fi
6007
6008
6009 eval "$ac_cv_use_calendar"
6010 if test "$no_cache" != 1; then
6011 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6012 fi
6013
6014 if test "$wxUSE_CALCTRL" = yes; then
6015 echo "$ac_t""yes" 1>&6
6016 else
6017 echo "$ac_t""no" 1>&6
6018 fi
6019
6020
6021 enablestring=
6022 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6023 echo "configure:6024: checking for --${enablestring:-enable}-caret" >&5
6024 no_cache=0
6025 # Check whether --enable-caret or --disable-caret was given.
6026 if test "${enable_caret+set}" = set; then
6027 enableval="$enable_caret"
6028
6029 if test "$enableval" = yes; then
6030 ac_cv_use_caret='wxUSE_CARET=yes'
6031 else
6032 ac_cv_use_caret='wxUSE_CARET=no'
6033 fi
6034
6035 else
6036
6037 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6038 if test "x$LINE" != x ; then
6039 eval "DEFAULT_$LINE"
6040 else
6041 no_cache=1
6042 fi
6043
6044 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6045
6046 fi
6047
6048
6049 eval "$ac_cv_use_caret"
6050 if test "$no_cache" != 1; then
6051 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6052 fi
6053
6054 if test "$wxUSE_CARET" = yes; then
6055 echo "$ac_t""yes" 1>&6
6056 else
6057 echo "$ac_t""no" 1>&6
6058 fi
6059
6060
6061 enablestring=
6062 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6063 echo "configure:6064: checking for --${enablestring:-enable}-checkbox" >&5
6064 no_cache=0
6065 # Check whether --enable-checkbox or --disable-checkbox was given.
6066 if test "${enable_checkbox+set}" = set; then
6067 enableval="$enable_checkbox"
6068
6069 if test "$enableval" = yes; then
6070 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6071 else
6072 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6073 fi
6074
6075 else
6076
6077 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6078 if test "x$LINE" != x ; then
6079 eval "DEFAULT_$LINE"
6080 else
6081 no_cache=1
6082 fi
6083
6084 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6085
6086 fi
6087
6088
6089 eval "$ac_cv_use_checkbox"
6090 if test "$no_cache" != 1; then
6091 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6092 fi
6093
6094 if test "$wxUSE_CHECKBOX" = yes; then
6095 echo "$ac_t""yes" 1>&6
6096 else
6097 echo "$ac_t""no" 1>&6
6098 fi
6099
6100
6101 enablestring=
6102 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6103 echo "configure:6104: checking for --${enablestring:-enable}-checklst" >&5
6104 no_cache=0
6105 # Check whether --enable-checklst or --disable-checklst was given.
6106 if test "${enable_checklst+set}" = set; then
6107 enableval="$enable_checklst"
6108
6109 if test "$enableval" = yes; then
6110 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6111 else
6112 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6113 fi
6114
6115 else
6116
6117 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6118 if test "x$LINE" != x ; then
6119 eval "DEFAULT_$LINE"
6120 else
6121 no_cache=1
6122 fi
6123
6124 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6125
6126 fi
6127
6128
6129 eval "$ac_cv_use_checklst"
6130 if test "$no_cache" != 1; then
6131 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6132 fi
6133
6134 if test "$wxUSE_CHECKLST" = yes; then
6135 echo "$ac_t""yes" 1>&6
6136 else
6137 echo "$ac_t""no" 1>&6
6138 fi
6139
6140
6141 enablestring=
6142 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6143 echo "configure:6144: checking for --${enablestring:-enable}-choice" >&5
6144 no_cache=0
6145 # Check whether --enable-choice or --disable-choice was given.
6146 if test "${enable_choice+set}" = set; then
6147 enableval="$enable_choice"
6148
6149 if test "$enableval" = yes; then
6150 ac_cv_use_choice='wxUSE_CHOICE=yes'
6151 else
6152 ac_cv_use_choice='wxUSE_CHOICE=no'
6153 fi
6154
6155 else
6156
6157 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6158 if test "x$LINE" != x ; then
6159 eval "DEFAULT_$LINE"
6160 else
6161 no_cache=1
6162 fi
6163
6164 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6165
6166 fi
6167
6168
6169 eval "$ac_cv_use_choice"
6170 if test "$no_cache" != 1; then
6171 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6172 fi
6173
6174 if test "$wxUSE_CHOICE" = yes; then
6175 echo "$ac_t""yes" 1>&6
6176 else
6177 echo "$ac_t""no" 1>&6
6178 fi
6179
6180
6181 enablestring=
6182 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6183 echo "configure:6184: checking for --${enablestring:-enable}-combobox" >&5
6184 no_cache=0
6185 # Check whether --enable-combobox or --disable-combobox was given.
6186 if test "${enable_combobox+set}" = set; then
6187 enableval="$enable_combobox"
6188
6189 if test "$enableval" = yes; then
6190 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6191 else
6192 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6193 fi
6194
6195 else
6196
6197 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6198 if test "x$LINE" != x ; then
6199 eval "DEFAULT_$LINE"
6200 else
6201 no_cache=1
6202 fi
6203
6204 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6205
6206 fi
6207
6208
6209 eval "$ac_cv_use_combobox"
6210 if test "$no_cache" != 1; then
6211 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6212 fi
6213
6214 if test "$wxUSE_COMBOBOX" = yes; then
6215 echo "$ac_t""yes" 1>&6
6216 else
6217 echo "$ac_t""no" 1>&6
6218 fi
6219
6220
6221 enablestring=
6222 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
6223 echo "configure:6224: checking for --${enablestring:-enable}-display" >&5
6224 no_cache=0
6225 # Check whether --enable-display or --disable-display was given.
6226 if test "${enable_display+set}" = set; then
6227 enableval="$enable_display"
6228
6229 if test "$enableval" = yes; then
6230 ac_cv_use_display='wxUSE_DISPLAY=yes'
6231 else
6232 ac_cv_use_display='wxUSE_DISPLAY=no'
6233 fi
6234
6235 else
6236
6237 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6238 if test "x$LINE" != x ; then
6239 eval "DEFAULT_$LINE"
6240 else
6241 no_cache=1
6242 fi
6243
6244 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6245
6246 fi
6247
6248
6249 eval "$ac_cv_use_display"
6250 if test "$no_cache" != 1; then
6251 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6252 fi
6253
6254 if test "$wxUSE_DISPLAY" = yes; then
6255 echo "$ac_t""yes" 1>&6
6256 else
6257 echo "$ac_t""no" 1>&6
6258 fi
6259
6260
6261 enablestring=
6262 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6263 echo "configure:6264: checking for --${enablestring:-enable}-gauge" >&5
6264 no_cache=0
6265 # Check whether --enable-gauge or --disable-gauge was given.
6266 if test "${enable_gauge+set}" = set; then
6267 enableval="$enable_gauge"
6268
6269 if test "$enableval" = yes; then
6270 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6271 else
6272 ac_cv_use_gauge='wxUSE_GAUGE=no'
6273 fi
6274
6275 else
6276
6277 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6278 if test "x$LINE" != x ; then
6279 eval "DEFAULT_$LINE"
6280 else
6281 no_cache=1
6282 fi
6283
6284 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6285
6286 fi
6287
6288
6289 eval "$ac_cv_use_gauge"
6290 if test "$no_cache" != 1; then
6291 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6292 fi
6293
6294 if test "$wxUSE_GAUGE" = yes; then
6295 echo "$ac_t""yes" 1>&6
6296 else
6297 echo "$ac_t""no" 1>&6
6298 fi
6299
6300
6301 enablestring=
6302 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6303 echo "configure:6304: checking for --${enablestring:-enable}-grid" >&5
6304 no_cache=0
6305 # Check whether --enable-grid or --disable-grid was given.
6306 if test "${enable_grid+set}" = set; then
6307 enableval="$enable_grid"
6308
6309 if test "$enableval" = yes; then
6310 ac_cv_use_grid='wxUSE_GRID=yes'
6311 else
6312 ac_cv_use_grid='wxUSE_GRID=no'
6313 fi
6314
6315 else
6316
6317 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6318 if test "x$LINE" != x ; then
6319 eval "DEFAULT_$LINE"
6320 else
6321 no_cache=1
6322 fi
6323
6324 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6325
6326 fi
6327
6328
6329 eval "$ac_cv_use_grid"
6330 if test "$no_cache" != 1; then
6331 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6332 fi
6333
6334 if test "$wxUSE_GRID" = yes; then
6335 echo "$ac_t""yes" 1>&6
6336 else
6337 echo "$ac_t""no" 1>&6
6338 fi
6339
6340
6341 enablestring=
6342 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6343 echo "configure:6344: checking for --${enablestring:-enable}-imaglist" >&5
6344 no_cache=0
6345 # Check whether --enable-imaglist or --disable-imaglist was given.
6346 if test "${enable_imaglist+set}" = set; then
6347 enableval="$enable_imaglist"
6348
6349 if test "$enableval" = yes; then
6350 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6351 else
6352 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6353 fi
6354
6355 else
6356
6357 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6358 if test "x$LINE" != x ; then
6359 eval "DEFAULT_$LINE"
6360 else
6361 no_cache=1
6362 fi
6363
6364 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6365
6366 fi
6367
6368
6369 eval "$ac_cv_use_imaglist"
6370 if test "$no_cache" != 1; then
6371 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6372 fi
6373
6374 if test "$wxUSE_IMAGLIST" = yes; then
6375 echo "$ac_t""yes" 1>&6
6376 else
6377 echo "$ac_t""no" 1>&6
6378 fi
6379
6380
6381 enablestring=
6382 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6383 echo "configure:6384: checking for --${enablestring:-enable}-listbox" >&5
6384 no_cache=0
6385 # Check whether --enable-listbox or --disable-listbox was given.
6386 if test "${enable_listbox+set}" = set; then
6387 enableval="$enable_listbox"
6388
6389 if test "$enableval" = yes; then
6390 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6391 else
6392 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6393 fi
6394
6395 else
6396
6397 LINE=`grep "wxUSE_LISTBOX" ${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_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6405
6406 fi
6407
6408
6409 eval "$ac_cv_use_listbox"
6410 if test "$no_cache" != 1; then
6411 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6412 fi
6413
6414 if test "$wxUSE_LISTBOX" = yes; then
6415 echo "$ac_t""yes" 1>&6
6416 else
6417 echo "$ac_t""no" 1>&6
6418 fi
6419
6420
6421 enablestring=
6422 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6423 echo "configure:6424: checking for --${enablestring:-enable}-listctrl" >&5
6424 no_cache=0
6425 # Check whether --enable-listctrl or --disable-listctrl was given.
6426 if test "${enable_listctrl+set}" = set; then
6427 enableval="$enable_listctrl"
6428
6429 if test "$enableval" = yes; then
6430 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6431 else
6432 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6433 fi
6434
6435 else
6436
6437 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6438 if test "x$LINE" != x ; then
6439 eval "DEFAULT_$LINE"
6440 else
6441 no_cache=1
6442 fi
6443
6444 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6445
6446 fi
6447
6448
6449 eval "$ac_cv_use_listctrl"
6450 if test "$no_cache" != 1; then
6451 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6452 fi
6453
6454 if test "$wxUSE_LISTCTRL" = yes; then
6455 echo "$ac_t""yes" 1>&6
6456 else
6457 echo "$ac_t""no" 1>&6
6458 fi
6459
6460
6461 enablestring=
6462 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6463 echo "configure:6464: checking for --${enablestring:-enable}-notebook" >&5
6464 no_cache=0
6465 # Check whether --enable-notebook or --disable-notebook was given.
6466 if test "${enable_notebook+set}" = set; then
6467 enableval="$enable_notebook"
6468
6469 if test "$enableval" = yes; then
6470 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6471 else
6472 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6473 fi
6474
6475 else
6476
6477 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6478 if test "x$LINE" != x ; then
6479 eval "DEFAULT_$LINE"
6480 else
6481 no_cache=1
6482 fi
6483
6484 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6485
6486 fi
6487
6488
6489 eval "$ac_cv_use_notebook"
6490 if test "$no_cache" != 1; then
6491 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6492 fi
6493
6494 if test "$wxUSE_NOTEBOOK" = yes; then
6495 echo "$ac_t""yes" 1>&6
6496 else
6497 echo "$ac_t""no" 1>&6
6498 fi
6499
6500
6501 enablestring=
6502 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6503 echo "configure:6504: checking for --${enablestring:-enable}-radiobox" >&5
6504 no_cache=0
6505 # Check whether --enable-radiobox or --disable-radiobox was given.
6506 if test "${enable_radiobox+set}" = set; then
6507 enableval="$enable_radiobox"
6508
6509 if test "$enableval" = yes; then
6510 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6511 else
6512 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6513 fi
6514
6515 else
6516
6517 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6518 if test "x$LINE" != x ; then
6519 eval "DEFAULT_$LINE"
6520 else
6521 no_cache=1
6522 fi
6523
6524 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6525
6526 fi
6527
6528
6529 eval "$ac_cv_use_radiobox"
6530 if test "$no_cache" != 1; then
6531 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6532 fi
6533
6534 if test "$wxUSE_RADIOBOX" = yes; then
6535 echo "$ac_t""yes" 1>&6
6536 else
6537 echo "$ac_t""no" 1>&6
6538 fi
6539
6540
6541 enablestring=
6542 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6543 echo "configure:6544: checking for --${enablestring:-enable}-radiobtn" >&5
6544 no_cache=0
6545 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6546 if test "${enable_radiobtn+set}" = set; then
6547 enableval="$enable_radiobtn"
6548
6549 if test "$enableval" = yes; then
6550 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6551 else
6552 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6553 fi
6554
6555 else
6556
6557 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6558 if test "x$LINE" != x ; then
6559 eval "DEFAULT_$LINE"
6560 else
6561 no_cache=1
6562 fi
6563
6564 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6565
6566 fi
6567
6568
6569 eval "$ac_cv_use_radiobtn"
6570 if test "$no_cache" != 1; then
6571 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6572 fi
6573
6574 if test "$wxUSE_RADIOBTN" = yes; then
6575 echo "$ac_t""yes" 1>&6
6576 else
6577 echo "$ac_t""no" 1>&6
6578 fi
6579
6580
6581 enablestring=
6582 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6583 echo "configure:6584: checking for --${enablestring:-enable}-sash" >&5
6584 no_cache=0
6585 # Check whether --enable-sash or --disable-sash was given.
6586 if test "${enable_sash+set}" = set; then
6587 enableval="$enable_sash"
6588
6589 if test "$enableval" = yes; then
6590 ac_cv_use_sash='wxUSE_SASH=yes'
6591 else
6592 ac_cv_use_sash='wxUSE_SASH=no'
6593 fi
6594
6595 else
6596
6597 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6598 if test "x$LINE" != x ; then
6599 eval "DEFAULT_$LINE"
6600 else
6601 no_cache=1
6602 fi
6603
6604 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6605
6606 fi
6607
6608
6609 eval "$ac_cv_use_sash"
6610 if test "$no_cache" != 1; then
6611 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6612 fi
6613
6614 if test "$wxUSE_SASH" = yes; then
6615 echo "$ac_t""yes" 1>&6
6616 else
6617 echo "$ac_t""no" 1>&6
6618 fi
6619
6620
6621 enablestring=
6622 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6623 echo "configure:6624: checking for --${enablestring:-enable}-scrollbar" >&5
6624 no_cache=0
6625 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6626 if test "${enable_scrollbar+set}" = set; then
6627 enableval="$enable_scrollbar"
6628
6629 if test "$enableval" = yes; then
6630 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6631 else
6632 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6633 fi
6634
6635 else
6636
6637 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6638 if test "x$LINE" != x ; then
6639 eval "DEFAULT_$LINE"
6640 else
6641 no_cache=1
6642 fi
6643
6644 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6645
6646 fi
6647
6648
6649 eval "$ac_cv_use_scrollbar"
6650 if test "$no_cache" != 1; then
6651 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6652 fi
6653
6654 if test "$wxUSE_SCROLLBAR" = yes; then
6655 echo "$ac_t""yes" 1>&6
6656 else
6657 echo "$ac_t""no" 1>&6
6658 fi
6659
6660
6661 enablestring=
6662 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6663 echo "configure:6664: checking for --${enablestring:-enable}-slider" >&5
6664 no_cache=0
6665 # Check whether --enable-slider or --disable-slider was given.
6666 if test "${enable_slider+set}" = set; then
6667 enableval="$enable_slider"
6668
6669 if test "$enableval" = yes; then
6670 ac_cv_use_slider='wxUSE_SLIDER=yes'
6671 else
6672 ac_cv_use_slider='wxUSE_SLIDER=no'
6673 fi
6674
6675 else
6676
6677 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6678 if test "x$LINE" != x ; then
6679 eval "DEFAULT_$LINE"
6680 else
6681 no_cache=1
6682 fi
6683
6684 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6685
6686 fi
6687
6688
6689 eval "$ac_cv_use_slider"
6690 if test "$no_cache" != 1; then
6691 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6692 fi
6693
6694 if test "$wxUSE_SLIDER" = yes; then
6695 echo "$ac_t""yes" 1>&6
6696 else
6697 echo "$ac_t""no" 1>&6
6698 fi
6699
6700
6701 enablestring=
6702 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6703 echo "configure:6704: checking for --${enablestring:-enable}-spinbtn" >&5
6704 no_cache=0
6705 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6706 if test "${enable_spinbtn+set}" = set; then
6707 enableval="$enable_spinbtn"
6708
6709 if test "$enableval" = yes; then
6710 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6711 else
6712 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6713 fi
6714
6715 else
6716
6717 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6718 if test "x$LINE" != x ; then
6719 eval "DEFAULT_$LINE"
6720 else
6721 no_cache=1
6722 fi
6723
6724 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6725
6726 fi
6727
6728
6729 eval "$ac_cv_use_spinbtn"
6730 if test "$no_cache" != 1; then
6731 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6732 fi
6733
6734 if test "$wxUSE_SPINBTN" = yes; then
6735 echo "$ac_t""yes" 1>&6
6736 else
6737 echo "$ac_t""no" 1>&6
6738 fi
6739
6740
6741 enablestring=
6742 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6743 echo "configure:6744: checking for --${enablestring:-enable}-spinctrl" >&5
6744 no_cache=0
6745 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6746 if test "${enable_spinctrl+set}" = set; then
6747 enableval="$enable_spinctrl"
6748
6749 if test "$enableval" = yes; then
6750 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6751 else
6752 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6753 fi
6754
6755 else
6756
6757 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6758 if test "x$LINE" != x ; then
6759 eval "DEFAULT_$LINE"
6760 else
6761 no_cache=1
6762 fi
6763
6764 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6765
6766 fi
6767
6768
6769 eval "$ac_cv_use_spinctrl"
6770 if test "$no_cache" != 1; then
6771 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6772 fi
6773
6774 if test "$wxUSE_SPINCTRL" = yes; then
6775 echo "$ac_t""yes" 1>&6
6776 else
6777 echo "$ac_t""no" 1>&6
6778 fi
6779
6780
6781 enablestring=
6782 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6783 echo "configure:6784: checking for --${enablestring:-enable}-splitter" >&5
6784 no_cache=0
6785 # Check whether --enable-splitter or --disable-splitter was given.
6786 if test "${enable_splitter+set}" = set; then
6787 enableval="$enable_splitter"
6788
6789 if test "$enableval" = yes; then
6790 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6791 else
6792 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6793 fi
6794
6795 else
6796
6797 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6798 if test "x$LINE" != x ; then
6799 eval "DEFAULT_$LINE"
6800 else
6801 no_cache=1
6802 fi
6803
6804 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6805
6806 fi
6807
6808
6809 eval "$ac_cv_use_splitter"
6810 if test "$no_cache" != 1; then
6811 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6812 fi
6813
6814 if test "$wxUSE_SPLITTER" = yes; then
6815 echo "$ac_t""yes" 1>&6
6816 else
6817 echo "$ac_t""no" 1>&6
6818 fi
6819
6820
6821 enablestring=
6822 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6823 echo "configure:6824: checking for --${enablestring:-enable}-statbmp" >&5
6824 no_cache=0
6825 # Check whether --enable-statbmp or --disable-statbmp was given.
6826 if test "${enable_statbmp+set}" = set; then
6827 enableval="$enable_statbmp"
6828
6829 if test "$enableval" = yes; then
6830 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6831 else
6832 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6833 fi
6834
6835 else
6836
6837 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6838 if test "x$LINE" != x ; then
6839 eval "DEFAULT_$LINE"
6840 else
6841 no_cache=1
6842 fi
6843
6844 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6845
6846 fi
6847
6848
6849 eval "$ac_cv_use_statbmp"
6850 if test "$no_cache" != 1; then
6851 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6852 fi
6853
6854 if test "$wxUSE_STATBMP" = yes; then
6855 echo "$ac_t""yes" 1>&6
6856 else
6857 echo "$ac_t""no" 1>&6
6858 fi
6859
6860
6861 enablestring=
6862 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6863 echo "configure:6864: checking for --${enablestring:-enable}-statbox" >&5
6864 no_cache=0
6865 # Check whether --enable-statbox or --disable-statbox was given.
6866 if test "${enable_statbox+set}" = set; then
6867 enableval="$enable_statbox"
6868
6869 if test "$enableval" = yes; then
6870 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6871 else
6872 ac_cv_use_statbox='wxUSE_STATBOX=no'
6873 fi
6874
6875 else
6876
6877 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6878 if test "x$LINE" != x ; then
6879 eval "DEFAULT_$LINE"
6880 else
6881 no_cache=1
6882 fi
6883
6884 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6885
6886 fi
6887
6888
6889 eval "$ac_cv_use_statbox"
6890 if test "$no_cache" != 1; then
6891 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6892 fi
6893
6894 if test "$wxUSE_STATBOX" = yes; then
6895 echo "$ac_t""yes" 1>&6
6896 else
6897 echo "$ac_t""no" 1>&6
6898 fi
6899
6900
6901 enablestring=
6902 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
6903 echo "configure:6904: checking for --${enablestring:-enable}-statline" >&5
6904 no_cache=0
6905 # Check whether --enable-statline or --disable-statline was given.
6906 if test "${enable_statline+set}" = set; then
6907 enableval="$enable_statline"
6908
6909 if test "$enableval" = yes; then
6910 ac_cv_use_statline='wxUSE_STATLINE=yes'
6911 else
6912 ac_cv_use_statline='wxUSE_STATLINE=no'
6913 fi
6914
6915 else
6916
6917 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6918 if test "x$LINE" != x ; then
6919 eval "DEFAULT_$LINE"
6920 else
6921 no_cache=1
6922 fi
6923
6924 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6925
6926 fi
6927
6928
6929 eval "$ac_cv_use_statline"
6930 if test "$no_cache" != 1; then
6931 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6932 fi
6933
6934 if test "$wxUSE_STATLINE" = yes; then
6935 echo "$ac_t""yes" 1>&6
6936 else
6937 echo "$ac_t""no" 1>&6
6938 fi
6939
6940
6941 enablestring=
6942 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
6943 echo "configure:6944: checking for --${enablestring:-enable}-stattext" >&5
6944 no_cache=0
6945 # Check whether --enable-stattext or --disable-stattext was given.
6946 if test "${enable_stattext+set}" = set; then
6947 enableval="$enable_stattext"
6948
6949 if test "$enableval" = yes; then
6950 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6951 else
6952 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6953 fi
6954
6955 else
6956
6957 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6958 if test "x$LINE" != x ; then
6959 eval "DEFAULT_$LINE"
6960 else
6961 no_cache=1
6962 fi
6963
6964 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6965
6966 fi
6967
6968
6969 eval "$ac_cv_use_stattext"
6970 if test "$no_cache" != 1; then
6971 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6972 fi
6973
6974 if test "$wxUSE_STATTEXT" = yes; then
6975 echo "$ac_t""yes" 1>&6
6976 else
6977 echo "$ac_t""no" 1>&6
6978 fi
6979
6980
6981 enablestring=
6982 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
6983 echo "configure:6984: checking for --${enablestring:-enable}-statusbar" >&5
6984 no_cache=0
6985 # Check whether --enable-statusbar or --disable-statusbar was given.
6986 if test "${enable_statusbar+set}" = set; then
6987 enableval="$enable_statusbar"
6988
6989 if test "$enableval" = yes; then
6990 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6991 else
6992 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6993 fi
6994
6995 else
6996
6997 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6998 if test "x$LINE" != x ; then
6999 eval "DEFAULT_$LINE"
7000 else
7001 no_cache=1
7002 fi
7003
7004 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7005
7006 fi
7007
7008
7009 eval "$ac_cv_use_statusbar"
7010 if test "$no_cache" != 1; then
7011 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7012 fi
7013
7014 if test "$wxUSE_STATUSBAR" = yes; then
7015 echo "$ac_t""yes" 1>&6
7016 else
7017 echo "$ac_t""no" 1>&6
7018 fi
7019
7020
7021 enablestring=
7022 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7023 echo "configure:7024: checking for --${enablestring:-enable}-tabdialog" >&5
7024 no_cache=0
7025 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7026 if test "${enable_tabdialog+set}" = set; then
7027 enableval="$enable_tabdialog"
7028
7029 if test "$enableval" = yes; then
7030 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7031 else
7032 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7033 fi
7034
7035 else
7036
7037 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7038 if test "x$LINE" != x ; then
7039 eval "DEFAULT_$LINE"
7040 else
7041 no_cache=1
7042 fi
7043
7044 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7045
7046 fi
7047
7048
7049 eval "$ac_cv_use_tabdialog"
7050 if test "$no_cache" != 1; then
7051 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7052 fi
7053
7054 if test "$wxUSE_TABDIALOG" = yes; then
7055 echo "$ac_t""yes" 1>&6
7056 else
7057 echo "$ac_t""no" 1>&6
7058 fi
7059
7060
7061 enablestring=
7062 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7063 echo "configure:7064: checking for --${enablestring:-enable}-textctrl" >&5
7064 no_cache=0
7065 # Check whether --enable-textctrl or --disable-textctrl was given.
7066 if test "${enable_textctrl+set}" = set; then
7067 enableval="$enable_textctrl"
7068
7069 if test "$enableval" = yes; then
7070 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7071 else
7072 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7073 fi
7074
7075 else
7076
7077 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7078 if test "x$LINE" != x ; then
7079 eval "DEFAULT_$LINE"
7080 else
7081 no_cache=1
7082 fi
7083
7084 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7085
7086 fi
7087
7088
7089 eval "$ac_cv_use_textctrl"
7090 if test "$no_cache" != 1; then
7091 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7092 fi
7093
7094 if test "$wxUSE_TEXTCTRL" = yes; then
7095 echo "$ac_t""yes" 1>&6
7096 else
7097 echo "$ac_t""no" 1>&6
7098 fi
7099
7100
7101 enablestring=
7102 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7103 echo "configure:7104: checking for --${enablestring:-enable}-togglebtn" >&5
7104 no_cache=0
7105 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7106 if test "${enable_togglebtn+set}" = set; then
7107 enableval="$enable_togglebtn"
7108
7109 if test "$enableval" = yes; then
7110 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7111 else
7112 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7113 fi
7114
7115 else
7116
7117 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7118 if test "x$LINE" != x ; then
7119 eval "DEFAULT_$LINE"
7120 else
7121 no_cache=1
7122 fi
7123
7124 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7125
7126 fi
7127
7128
7129 eval "$ac_cv_use_togglebtn"
7130 if test "$no_cache" != 1; then
7131 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7132 fi
7133
7134 if test "$wxUSE_TOGGLEBTN" = yes; then
7135 echo "$ac_t""yes" 1>&6
7136 else
7137 echo "$ac_t""no" 1>&6
7138 fi
7139
7140
7141 enablestring=
7142 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7143 echo "configure:7144: checking for --${enablestring:-enable}-toolbar" >&5
7144 no_cache=0
7145 # Check whether --enable-toolbar or --disable-toolbar was given.
7146 if test "${enable_toolbar+set}" = set; then
7147 enableval="$enable_toolbar"
7148
7149 if test "$enableval" = yes; then
7150 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7151 else
7152 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7153 fi
7154
7155 else
7156
7157 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7158 if test "x$LINE" != x ; then
7159 eval "DEFAULT_$LINE"
7160 else
7161 no_cache=1
7162 fi
7163
7164 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7165
7166 fi
7167
7168
7169 eval "$ac_cv_use_toolbar"
7170 if test "$no_cache" != 1; then
7171 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7172 fi
7173
7174 if test "$wxUSE_TOOLBAR" = yes; then
7175 echo "$ac_t""yes" 1>&6
7176 else
7177 echo "$ac_t""no" 1>&6
7178 fi
7179
7180
7181 enablestring=
7182 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7183 echo "configure:7184: checking for --${enablestring:-enable}-tbarnative" >&5
7184 no_cache=0
7185 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7186 if test "${enable_tbarnative+set}" = set; then
7187 enableval="$enable_tbarnative"
7188
7189 if test "$enableval" = yes; then
7190 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7191 else
7192 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7193 fi
7194
7195 else
7196
7197 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7198 if test "x$LINE" != x ; then
7199 eval "DEFAULT_$LINE"
7200 else
7201 no_cache=1
7202 fi
7203
7204 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7205
7206 fi
7207
7208
7209 eval "$ac_cv_use_tbarnative"
7210 if test "$no_cache" != 1; then
7211 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7212 fi
7213
7214 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7215 echo "$ac_t""yes" 1>&6
7216 else
7217 echo "$ac_t""no" 1>&6
7218 fi
7219
7220
7221 enablestring=
7222 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7223 echo "configure:7224: checking for --${enablestring:-enable}-tbarsmpl" >&5
7224 no_cache=0
7225 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7226 if test "${enable_tbarsmpl+set}" = set; then
7227 enableval="$enable_tbarsmpl"
7228
7229 if test "$enableval" = yes; then
7230 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7231 else
7232 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7233 fi
7234
7235 else
7236
7237 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7238 if test "x$LINE" != x ; then
7239 eval "DEFAULT_$LINE"
7240 else
7241 no_cache=1
7242 fi
7243
7244 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7245
7246 fi
7247
7248
7249 eval "$ac_cv_use_tbarsmpl"
7250 if test "$no_cache" != 1; then
7251 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7252 fi
7253
7254 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7255 echo "$ac_t""yes" 1>&6
7256 else
7257 echo "$ac_t""no" 1>&6
7258 fi
7259
7260
7261 enablestring=
7262 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7263 echo "configure:7264: checking for --${enablestring:-enable}-treectrl" >&5
7264 no_cache=0
7265 # Check whether --enable-treectrl or --disable-treectrl was given.
7266 if test "${enable_treectrl+set}" = set; then
7267 enableval="$enable_treectrl"
7268
7269 if test "$enableval" = yes; then
7270 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7271 else
7272 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7273 fi
7274
7275 else
7276
7277 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7278 if test "x$LINE" != x ; then
7279 eval "DEFAULT_$LINE"
7280 else
7281 no_cache=1
7282 fi
7283
7284 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7285
7286 fi
7287
7288
7289 eval "$ac_cv_use_treectrl"
7290 if test "$no_cache" != 1; then
7291 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7292 fi
7293
7294 if test "$wxUSE_TREECTRL" = yes; then
7295 echo "$ac_t""yes" 1>&6
7296 else
7297 echo "$ac_t""no" 1>&6
7298 fi
7299
7300
7301 enablestring=
7302 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7303 echo "configure:7304: checking for --${enablestring:-enable}-tipwindow" >&5
7304 no_cache=0
7305 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7306 if test "${enable_tipwindow+set}" = set; then
7307 enableval="$enable_tipwindow"
7308
7309 if test "$enableval" = yes; then
7310 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7311 else
7312 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7313 fi
7314
7315 else
7316
7317 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7318 if test "x$LINE" != x ; then
7319 eval "DEFAULT_$LINE"
7320 else
7321 no_cache=1
7322 fi
7323
7324 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7325
7326 fi
7327
7328
7329 eval "$ac_cv_use_tipwindow"
7330 if test "$no_cache" != 1; then
7331 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7332 fi
7333
7334 if test "$wxUSE_TIPWINDOW" = yes; then
7335 echo "$ac_t""yes" 1>&6
7336 else
7337 echo "$ac_t""no" 1>&6
7338 fi
7339
7340
7341 enablestring=
7342 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7343 echo "configure:7344: checking for --${enablestring:-enable}-popupwin" >&5
7344 no_cache=0
7345 # Check whether --enable-popupwin or --disable-popupwin was given.
7346 if test "${enable_popupwin+set}" = set; then
7347 enableval="$enable_popupwin"
7348
7349 if test "$enableval" = yes; then
7350 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7351 else
7352 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7353 fi
7354
7355 else
7356
7357 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7358 if test "x$LINE" != x ; then
7359 eval "DEFAULT_$LINE"
7360 else
7361 no_cache=1
7362 fi
7363
7364 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7365
7366 fi
7367
7368
7369 eval "$ac_cv_use_popupwin"
7370 if test "$no_cache" != 1; then
7371 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7372 fi
7373
7374 if test "$wxUSE_POPUPWIN" = yes; then
7375 echo "$ac_t""yes" 1>&6
7376 else
7377 echo "$ac_t""no" 1>&6
7378 fi
7379
7380
7381
7382
7383 enablestring=
7384 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7385 echo "configure:7386: checking for --${enablestring:-enable}-commondlg" >&5
7386 no_cache=0
7387 # Check whether --enable-commondlg or --disable-commondlg was given.
7388 if test "${enable_commondlg+set}" = set; then
7389 enableval="$enable_commondlg"
7390
7391 if test "$enableval" = yes; then
7392 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7393 else
7394 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7395 fi
7396
7397 else
7398
7399 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7400 if test "x$LINE" != x ; then
7401 eval "DEFAULT_$LINE"
7402 else
7403 no_cache=1
7404 fi
7405
7406 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7407
7408 fi
7409
7410
7411 eval "$ac_cv_use_commondlg"
7412 if test "$no_cache" != 1; then
7413 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7414 fi
7415
7416 if test "$wxUSE_COMMONDLGS" = yes; then
7417 echo "$ac_t""yes" 1>&6
7418 else
7419 echo "$ac_t""no" 1>&6
7420 fi
7421
7422
7423 enablestring=
7424 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7425 echo "configure:7426: checking for --${enablestring:-enable}-choicedlg" >&5
7426 no_cache=0
7427 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7428 if test "${enable_choicedlg+set}" = set; then
7429 enableval="$enable_choicedlg"
7430
7431 if test "$enableval" = yes; then
7432 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7433 else
7434 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7435 fi
7436
7437 else
7438
7439 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7440 if test "x$LINE" != x ; then
7441 eval "DEFAULT_$LINE"
7442 else
7443 no_cache=1
7444 fi
7445
7446 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7447
7448 fi
7449
7450
7451 eval "$ac_cv_use_choicedlg"
7452 if test "$no_cache" != 1; then
7453 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7454 fi
7455
7456 if test "$wxUSE_CHOICEDLG" = yes; then
7457 echo "$ac_t""yes" 1>&6
7458 else
7459 echo "$ac_t""no" 1>&6
7460 fi
7461
7462
7463 enablestring=
7464 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7465 echo "configure:7466: checking for --${enablestring:-enable}-coldlg" >&5
7466 no_cache=0
7467 # Check whether --enable-coldlg or --disable-coldlg was given.
7468 if test "${enable_coldlg+set}" = set; then
7469 enableval="$enable_coldlg"
7470
7471 if test "$enableval" = yes; then
7472 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7473 else
7474 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7475 fi
7476
7477 else
7478
7479 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7480 if test "x$LINE" != x ; then
7481 eval "DEFAULT_$LINE"
7482 else
7483 no_cache=1
7484 fi
7485
7486 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7487
7488 fi
7489
7490
7491 eval "$ac_cv_use_coldlg"
7492 if test "$no_cache" != 1; then
7493 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7494 fi
7495
7496 if test "$wxUSE_COLOURDLG" = yes; then
7497 echo "$ac_t""yes" 1>&6
7498 else
7499 echo "$ac_t""no" 1>&6
7500 fi
7501
7502
7503 enablestring=
7504 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7505 echo "configure:7506: checking for --${enablestring:-enable}-filedlg" >&5
7506 no_cache=0
7507 # Check whether --enable-filedlg or --disable-filedlg was given.
7508 if test "${enable_filedlg+set}" = set; then
7509 enableval="$enable_filedlg"
7510
7511 if test "$enableval" = yes; then
7512 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7513 else
7514 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7515 fi
7516
7517 else
7518
7519 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7520 if test "x$LINE" != x ; then
7521 eval "DEFAULT_$LINE"
7522 else
7523 no_cache=1
7524 fi
7525
7526 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7527
7528 fi
7529
7530
7531 eval "$ac_cv_use_filedlg"
7532 if test "$no_cache" != 1; then
7533 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7534 fi
7535
7536 if test "$wxUSE_FILEDLG" = yes; then
7537 echo "$ac_t""yes" 1>&6
7538 else
7539 echo "$ac_t""no" 1>&6
7540 fi
7541
7542
7543 enablestring=
7544 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7545 echo "configure:7546: checking for --${enablestring:-enable}-finddlg" >&5
7546 no_cache=0
7547 # Check whether --enable-finddlg or --disable-finddlg was given.
7548 if test "${enable_finddlg+set}" = set; then
7549 enableval="$enable_finddlg"
7550
7551 if test "$enableval" = yes; then
7552 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7553 else
7554 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7555 fi
7556
7557 else
7558
7559 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7560 if test "x$LINE" != x ; then
7561 eval "DEFAULT_$LINE"
7562 else
7563 no_cache=1
7564 fi
7565
7566 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7567
7568 fi
7569
7570
7571 eval "$ac_cv_use_finddlg"
7572 if test "$no_cache" != 1; then
7573 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7574 fi
7575
7576 if test "$wxUSE_FINDREPLDLG" = yes; then
7577 echo "$ac_t""yes" 1>&6
7578 else
7579 echo "$ac_t""no" 1>&6
7580 fi
7581
7582
7583 enablestring=
7584 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7585 echo "configure:7586: checking for --${enablestring:-enable}-fontdlg" >&5
7586 no_cache=0
7587 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7588 if test "${enable_fontdlg+set}" = set; then
7589 enableval="$enable_fontdlg"
7590
7591 if test "$enableval" = yes; then
7592 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7593 else
7594 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7595 fi
7596
7597 else
7598
7599 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7600 if test "x$LINE" != x ; then
7601 eval "DEFAULT_$LINE"
7602 else
7603 no_cache=1
7604 fi
7605
7606 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7607
7608 fi
7609
7610
7611 eval "$ac_cv_use_fontdlg"
7612 if test "$no_cache" != 1; then
7613 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7614 fi
7615
7616 if test "$wxUSE_FONTDLG" = yes; then
7617 echo "$ac_t""yes" 1>&6
7618 else
7619 echo "$ac_t""no" 1>&6
7620 fi
7621
7622
7623 enablestring=
7624 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7625 echo "configure:7626: checking for --${enablestring:-enable}-dirdlg" >&5
7626 no_cache=0
7627 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7628 if test "${enable_dirdlg+set}" = set; then
7629 enableval="$enable_dirdlg"
7630
7631 if test "$enableval" = yes; then
7632 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7633 else
7634 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7635 fi
7636
7637 else
7638
7639 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7640 if test "x$LINE" != x ; then
7641 eval "DEFAULT_$LINE"
7642 else
7643 no_cache=1
7644 fi
7645
7646 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7647
7648 fi
7649
7650
7651 eval "$ac_cv_use_dirdlg"
7652 if test "$no_cache" != 1; then
7653 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7654 fi
7655
7656 if test "$wxUSE_DIRDLG" = yes; then
7657 echo "$ac_t""yes" 1>&6
7658 else
7659 echo "$ac_t""no" 1>&6
7660 fi
7661
7662
7663 enablestring=
7664 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7665 echo "configure:7666: checking for --${enablestring:-enable}-msgdlg" >&5
7666 no_cache=0
7667 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7668 if test "${enable_msgdlg+set}" = set; then
7669 enableval="$enable_msgdlg"
7670
7671 if test "$enableval" = yes; then
7672 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7673 else
7674 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7675 fi
7676
7677 else
7678
7679 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7680 if test "x$LINE" != x ; then
7681 eval "DEFAULT_$LINE"
7682 else
7683 no_cache=1
7684 fi
7685
7686 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7687
7688 fi
7689
7690
7691 eval "$ac_cv_use_msgdlg"
7692 if test "$no_cache" != 1; then
7693 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7694 fi
7695
7696 if test "$wxUSE_MSGDLG" = yes; then
7697 echo "$ac_t""yes" 1>&6
7698 else
7699 echo "$ac_t""no" 1>&6
7700 fi
7701
7702
7703 enablestring=
7704 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7705 echo "configure:7706: checking for --${enablestring:-enable}-numberdlg" >&5
7706 no_cache=0
7707 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7708 if test "${enable_numberdlg+set}" = set; then
7709 enableval="$enable_numberdlg"
7710
7711 if test "$enableval" = yes; then
7712 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7713 else
7714 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7715 fi
7716
7717 else
7718
7719 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7720 if test "x$LINE" != x ; then
7721 eval "DEFAULT_$LINE"
7722 else
7723 no_cache=1
7724 fi
7725
7726 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7727
7728 fi
7729
7730
7731 eval "$ac_cv_use_numberdlg"
7732 if test "$no_cache" != 1; then
7733 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7734 fi
7735
7736 if test "$wxUSE_NUMBERDLG" = yes; then
7737 echo "$ac_t""yes" 1>&6
7738 else
7739 echo "$ac_t""no" 1>&6
7740 fi
7741
7742
7743 enablestring=
7744 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7745 echo "configure:7746: checking for --${enablestring:-enable}-splash" >&5
7746 no_cache=0
7747 # Check whether --enable-splash or --disable-splash was given.
7748 if test "${enable_splash+set}" = set; then
7749 enableval="$enable_splash"
7750
7751 if test "$enableval" = yes; then
7752 ac_cv_use_splash='wxUSE_SPLASH=yes'
7753 else
7754 ac_cv_use_splash='wxUSE_SPLASH=no'
7755 fi
7756
7757 else
7758
7759 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7760 if test "x$LINE" != x ; then
7761 eval "DEFAULT_$LINE"
7762 else
7763 no_cache=1
7764 fi
7765
7766 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7767
7768 fi
7769
7770
7771 eval "$ac_cv_use_splash"
7772 if test "$no_cache" != 1; then
7773 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7774 fi
7775
7776 if test "$wxUSE_SPLASH" = yes; then
7777 echo "$ac_t""yes" 1>&6
7778 else
7779 echo "$ac_t""no" 1>&6
7780 fi
7781
7782
7783 enablestring=
7784 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7785 echo "configure:7786: checking for --${enablestring:-enable}-textdlg" >&5
7786 no_cache=0
7787 # Check whether --enable-textdlg or --disable-textdlg was given.
7788 if test "${enable_textdlg+set}" = set; then
7789 enableval="$enable_textdlg"
7790
7791 if test "$enableval" = yes; then
7792 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7793 else
7794 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7795 fi
7796
7797 else
7798
7799 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7800 if test "x$LINE" != x ; then
7801 eval "DEFAULT_$LINE"
7802 else
7803 no_cache=1
7804 fi
7805
7806 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7807
7808 fi
7809
7810
7811 eval "$ac_cv_use_textdlg"
7812 if test "$no_cache" != 1; then
7813 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7814 fi
7815
7816 if test "$wxUSE_TEXTDLG" = yes; then
7817 echo "$ac_t""yes" 1>&6
7818 else
7819 echo "$ac_t""no" 1>&6
7820 fi
7821
7822
7823 enablestring=
7824 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7825 echo "configure:7826: checking for --${enablestring:-enable}-tipdlg" >&5
7826 no_cache=0
7827 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7828 if test "${enable_tipdlg+set}" = set; then
7829 enableval="$enable_tipdlg"
7830
7831 if test "$enableval" = yes; then
7832 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7833 else
7834 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7835 fi
7836
7837 else
7838
7839 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7840 if test "x$LINE" != x ; then
7841 eval "DEFAULT_$LINE"
7842 else
7843 no_cache=1
7844 fi
7845
7846 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7847
7848 fi
7849
7850
7851 eval "$ac_cv_use_tipdlg"
7852 if test "$no_cache" != 1; then
7853 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7854 fi
7855
7856 if test "$wxUSE_STARTUP_TIPS" = yes; then
7857 echo "$ac_t""yes" 1>&6
7858 else
7859 echo "$ac_t""no" 1>&6
7860 fi
7861
7862
7863 enablestring=
7864 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7865 echo "configure:7866: checking for --${enablestring:-enable}-progressdlg" >&5
7866 no_cache=0
7867 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7868 if test "${enable_progressdlg+set}" = set; then
7869 enableval="$enable_progressdlg"
7870
7871 if test "$enableval" = yes; then
7872 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7873 else
7874 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7875 fi
7876
7877 else
7878
7879 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7880 if test "x$LINE" != x ; then
7881 eval "DEFAULT_$LINE"
7882 else
7883 no_cache=1
7884 fi
7885
7886 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7887
7888 fi
7889
7890
7891 eval "$ac_cv_use_progressdlg"
7892 if test "$no_cache" != 1; then
7893 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7894 fi
7895
7896 if test "$wxUSE_PROGRESSDLG" = yes; then
7897 echo "$ac_t""yes" 1>&6
7898 else
7899 echo "$ac_t""no" 1>&6
7900 fi
7901
7902
7903 enablestring=
7904 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7905 echo "configure:7906: checking for --${enablestring:-enable}-wizarddlg" >&5
7906 no_cache=0
7907 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7908 if test "${enable_wizarddlg+set}" = set; then
7909 enableval="$enable_wizarddlg"
7910
7911 if test "$enableval" = yes; then
7912 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7913 else
7914 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7915 fi
7916
7917 else
7918
7919 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7920 if test "x$LINE" != x ; then
7921 eval "DEFAULT_$LINE"
7922 else
7923 no_cache=1
7924 fi
7925
7926 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7927
7928 fi
7929
7930
7931 eval "$ac_cv_use_wizarddlg"
7932 if test "$no_cache" != 1; then
7933 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7934 fi
7935
7936 if test "$wxUSE_WIZARDDLG" = yes; then
7937 echo "$ac_t""yes" 1>&6
7938 else
7939 echo "$ac_t""no" 1>&6
7940 fi
7941
7942
7943
7944
7945 enablestring=
7946 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
7947 echo "configure:7948: checking for --${enablestring:-enable}-menus" >&5
7948 no_cache=0
7949 # Check whether --enable-menus or --disable-menus was given.
7950 if test "${enable_menus+set}" = set; then
7951 enableval="$enable_menus"
7952
7953 if test "$enableval" = yes; then
7954 ac_cv_use_menus='wxUSE_MENUS=yes'
7955 else
7956 ac_cv_use_menus='wxUSE_MENUS=no'
7957 fi
7958
7959 else
7960
7961 LINE=`grep "wxUSE_MENUS" ${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_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7969
7970 fi
7971
7972
7973 eval "$ac_cv_use_menus"
7974 if test "$no_cache" != 1; then
7975 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7976 fi
7977
7978 if test "$wxUSE_MENUS" = yes; then
7979 echo "$ac_t""yes" 1>&6
7980 else
7981 echo "$ac_t""no" 1>&6
7982 fi
7983
7984
7985 enablestring=
7986 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
7987 echo "configure:7988: checking for --${enablestring:-enable}-miniframe" >&5
7988 no_cache=0
7989 # Check whether --enable-miniframe or --disable-miniframe was given.
7990 if test "${enable_miniframe+set}" = set; then
7991 enableval="$enable_miniframe"
7992
7993 if test "$enableval" = yes; then
7994 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7995 else
7996 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7997 fi
7998
7999 else
8000
8001 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8002 if test "x$LINE" != x ; then
8003 eval "DEFAULT_$LINE"
8004 else
8005 no_cache=1
8006 fi
8007
8008 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8009
8010 fi
8011
8012
8013 eval "$ac_cv_use_miniframe"
8014 if test "$no_cache" != 1; then
8015 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8016 fi
8017
8018 if test "$wxUSE_MINIFRAME" = yes; then
8019 echo "$ac_t""yes" 1>&6
8020 else
8021 echo "$ac_t""no" 1>&6
8022 fi
8023
8024
8025 enablestring=
8026 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8027 echo "configure:8028: checking for --${enablestring:-enable}-tooltips" >&5
8028 no_cache=0
8029 # Check whether --enable-tooltips or --disable-tooltips was given.
8030 if test "${enable_tooltips+set}" = set; then
8031 enableval="$enable_tooltips"
8032
8033 if test "$enableval" = yes; then
8034 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8035 else
8036 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8037 fi
8038
8039 else
8040
8041 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8042 if test "x$LINE" != x ; then
8043 eval "DEFAULT_$LINE"
8044 else
8045 no_cache=1
8046 fi
8047
8048 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8049
8050 fi
8051
8052
8053 eval "$ac_cv_use_tooltips"
8054 if test "$no_cache" != 1; then
8055 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8056 fi
8057
8058 if test "$wxUSE_TOOLTIPS" = yes; then
8059 echo "$ac_t""yes" 1>&6
8060 else
8061 echo "$ac_t""no" 1>&6
8062 fi
8063
8064
8065 enablestring=
8066 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8067 echo "configure:8068: checking for --${enablestring:-enable}-splines" >&5
8068 no_cache=0
8069 # Check whether --enable-splines or --disable-splines was given.
8070 if test "${enable_splines+set}" = set; then
8071 enableval="$enable_splines"
8072
8073 if test "$enableval" = yes; then
8074 ac_cv_use_splines='wxUSE_SPLINES=yes'
8075 else
8076 ac_cv_use_splines='wxUSE_SPLINES=no'
8077 fi
8078
8079 else
8080
8081 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8082 if test "x$LINE" != x ; then
8083 eval "DEFAULT_$LINE"
8084 else
8085 no_cache=1
8086 fi
8087
8088 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8089
8090 fi
8091
8092
8093 eval "$ac_cv_use_splines"
8094 if test "$no_cache" != 1; then
8095 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8096 fi
8097
8098 if test "$wxUSE_SPLINES" = yes; then
8099 echo "$ac_t""yes" 1>&6
8100 else
8101 echo "$ac_t""no" 1>&6
8102 fi
8103
8104
8105 enablestring=
8106 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8107 echo "configure:8108: checking for --${enablestring:-enable}-validators" >&5
8108 no_cache=0
8109 # Check whether --enable-validators or --disable-validators was given.
8110 if test "${enable_validators+set}" = set; then
8111 enableval="$enable_validators"
8112
8113 if test "$enableval" = yes; then
8114 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8115 else
8116 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8117 fi
8118
8119 else
8120
8121 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8122 if test "x$LINE" != x ; then
8123 eval "DEFAULT_$LINE"
8124 else
8125 no_cache=1
8126 fi
8127
8128 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8129
8130 fi
8131
8132
8133 eval "$ac_cv_use_validators"
8134 if test "$no_cache" != 1; then
8135 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8136 fi
8137
8138 if test "$wxUSE_VALIDATORS" = yes; then
8139 echo "$ac_t""yes" 1>&6
8140 else
8141 echo "$ac_t""no" 1>&6
8142 fi
8143
8144
8145 enablestring=
8146 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8147 echo "configure:8148: checking for --${enablestring:-enable}-busyinfo" >&5
8148 no_cache=0
8149 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8150 if test "${enable_busyinfo+set}" = set; then
8151 enableval="$enable_busyinfo"
8152
8153 if test "$enableval" = yes; then
8154 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8155 else
8156 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8157 fi
8158
8159 else
8160
8161 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8162 if test "x$LINE" != x ; then
8163 eval "DEFAULT_$LINE"
8164 else
8165 no_cache=1
8166 fi
8167
8168 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8169
8170 fi
8171
8172
8173 eval "$ac_cv_use_busyinfo"
8174 if test "$no_cache" != 1; then
8175 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8176 fi
8177
8178 if test "$wxUSE_BUSYINFO" = yes; then
8179 echo "$ac_t""yes" 1>&6
8180 else
8181 echo "$ac_t""no" 1>&6
8182 fi
8183
8184
8185 enablestring=
8186 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8187 echo "configure:8188: checking for --${enablestring:-enable}-joystick" >&5
8188 no_cache=0
8189 # Check whether --enable-joystick or --disable-joystick was given.
8190 if test "${enable_joystick+set}" = set; then
8191 enableval="$enable_joystick"
8192
8193 if test "$enableval" = yes; then
8194 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8195 else
8196 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8197 fi
8198
8199 else
8200
8201 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8202 if test "x$LINE" != x ; then
8203 eval "DEFAULT_$LINE"
8204 else
8205 no_cache=1
8206 fi
8207
8208 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8209
8210 fi
8211
8212
8213 eval "$ac_cv_use_joystick"
8214 if test "$no_cache" != 1; then
8215 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8216 fi
8217
8218 if test "$wxUSE_JOYSTICK" = yes; then
8219 echo "$ac_t""yes" 1>&6
8220 else
8221 echo "$ac_t""no" 1>&6
8222 fi
8223
8224
8225 enablestring=
8226 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8227 echo "configure:8228: checking for --${enablestring:-enable}-metafile" >&5
8228 no_cache=0
8229 # Check whether --enable-metafile or --disable-metafile was given.
8230 if test "${enable_metafile+set}" = set; then
8231 enableval="$enable_metafile"
8232
8233 if test "$enableval" = yes; then
8234 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8235 else
8236 ac_cv_use_metafile='wxUSE_METAFILE=no'
8237 fi
8238
8239 else
8240
8241 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8242 if test "x$LINE" != x ; then
8243 eval "DEFAULT_$LINE"
8244 else
8245 no_cache=1
8246 fi
8247
8248 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8249
8250 fi
8251
8252
8253 eval "$ac_cv_use_metafile"
8254 if test "$no_cache" != 1; then
8255 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8256 fi
8257
8258 if test "$wxUSE_METAFILE" = yes; then
8259 echo "$ac_t""yes" 1>&6
8260 else
8261 echo "$ac_t""no" 1>&6
8262 fi
8263
8264
8265 enablestring=
8266 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8267 echo "configure:8268: checking for --${enablestring:-enable}-dragimage" >&5
8268 no_cache=0
8269 # Check whether --enable-dragimage or --disable-dragimage was given.
8270 if test "${enable_dragimage+set}" = set; then
8271 enableval="$enable_dragimage"
8272
8273 if test "$enableval" = yes; then
8274 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8275 else
8276 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8277 fi
8278
8279 else
8280
8281 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8282 if test "x$LINE" != x ; then
8283 eval "DEFAULT_$LINE"
8284 else
8285 no_cache=1
8286 fi
8287
8288 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8289
8290 fi
8291
8292
8293 eval "$ac_cv_use_dragimage"
8294 if test "$no_cache" != 1; then
8295 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8296 fi
8297
8298 if test "$wxUSE_DRAGIMAGE" = yes; then
8299 echo "$ac_t""yes" 1>&6
8300 else
8301 echo "$ac_t""no" 1>&6
8302 fi
8303
8304
8305 enablestring=
8306 echo $ac_n "checking for --${enablestring:-enable}-accessibility""... $ac_c" 1>&6
8307 echo "configure:8308: checking for --${enablestring:-enable}-accessibility" >&5
8308 no_cache=0
8309 # Check whether --enable-accessibility or --disable-accessibility was given.
8310 if test "${enable_accessibility+set}" = set; then
8311 enableval="$enable_accessibility"
8312
8313 if test "$enableval" = yes; then
8314 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
8315 else
8316 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
8317 fi
8318
8319 else
8320
8321 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
8322 if test "x$LINE" != x ; then
8323 eval "DEFAULT_$LINE"
8324 else
8325 no_cache=1
8326 fi
8327
8328 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
8329
8330 fi
8331
8332
8333 eval "$ac_cv_use_accessibility"
8334 if test "$no_cache" != 1; then
8335 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
8336 fi
8337
8338 if test "$wxUSE_ACCESSIBILITY" = yes; then
8339 echo "$ac_t""yes" 1>&6
8340 else
8341 echo "$ac_t""no" 1>&6
8342 fi
8343
8344
8345
8346
8347 enablestring=
8348 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8349 echo "configure:8350: checking for --${enablestring:-enable}-palette" >&5
8350 no_cache=0
8351 # Check whether --enable-palette or --disable-palette was given.
8352 if test "${enable_palette+set}" = set; then
8353 enableval="$enable_palette"
8354
8355 if test "$enableval" = yes; then
8356 ac_cv_use_palette='wxUSE_PALETTE=yes'
8357 else
8358 ac_cv_use_palette='wxUSE_PALETTE=no'
8359 fi
8360
8361 else
8362
8363 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8364 if test "x$LINE" != x ; then
8365 eval "DEFAULT_$LINE"
8366 else
8367 no_cache=1
8368 fi
8369
8370 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8371
8372 fi
8373
8374
8375 eval "$ac_cv_use_palette"
8376 if test "$no_cache" != 1; then
8377 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8378 fi
8379
8380 if test "$wxUSE_PALETTE" = yes; then
8381 echo "$ac_t""yes" 1>&6
8382 else
8383 echo "$ac_t""no" 1>&6
8384 fi
8385
8386
8387 enablestring=
8388 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8389 echo "configure:8390: checking for --${enablestring:-enable}-image" >&5
8390 no_cache=0
8391 # Check whether --enable-image or --disable-image was given.
8392 if test "${enable_image+set}" = set; then
8393 enableval="$enable_image"
8394
8395 if test "$enableval" = yes; then
8396 ac_cv_use_image='wxUSE_IMAGE=yes'
8397 else
8398 ac_cv_use_image='wxUSE_IMAGE=no'
8399 fi
8400
8401 else
8402
8403 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8404 if test "x$LINE" != x ; then
8405 eval "DEFAULT_$LINE"
8406 else
8407 no_cache=1
8408 fi
8409
8410 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8411
8412 fi
8413
8414
8415 eval "$ac_cv_use_image"
8416 if test "$no_cache" != 1; then
8417 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8418 fi
8419
8420 if test "$wxUSE_IMAGE" = yes; then
8421 echo "$ac_t""yes" 1>&6
8422 else
8423 echo "$ac_t""no" 1>&6
8424 fi
8425
8426
8427 enablestring=
8428 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8429 echo "configure:8430: checking for --${enablestring:-enable}-gif" >&5
8430 no_cache=0
8431 # Check whether --enable-gif or --disable-gif was given.
8432 if test "${enable_gif+set}" = set; then
8433 enableval="$enable_gif"
8434
8435 if test "$enableval" = yes; then
8436 ac_cv_use_gif='wxUSE_GIF=yes'
8437 else
8438 ac_cv_use_gif='wxUSE_GIF=no'
8439 fi
8440
8441 else
8442
8443 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8444 if test "x$LINE" != x ; then
8445 eval "DEFAULT_$LINE"
8446 else
8447 no_cache=1
8448 fi
8449
8450 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8451
8452 fi
8453
8454
8455 eval "$ac_cv_use_gif"
8456 if test "$no_cache" != 1; then
8457 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8458 fi
8459
8460 if test "$wxUSE_GIF" = yes; then
8461 echo "$ac_t""yes" 1>&6
8462 else
8463 echo "$ac_t""no" 1>&6
8464 fi
8465
8466
8467 enablestring=
8468 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8469 echo "configure:8470: checking for --${enablestring:-enable}-pcx" >&5
8470 no_cache=0
8471 # Check whether --enable-pcx or --disable-pcx was given.
8472 if test "${enable_pcx+set}" = set; then
8473 enableval="$enable_pcx"
8474
8475 if test "$enableval" = yes; then
8476 ac_cv_use_pcx='wxUSE_PCX=yes'
8477 else
8478 ac_cv_use_pcx='wxUSE_PCX=no'
8479 fi
8480
8481 else
8482
8483 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8484 if test "x$LINE" != x ; then
8485 eval "DEFAULT_$LINE"
8486 else
8487 no_cache=1
8488 fi
8489
8490 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8491
8492 fi
8493
8494
8495 eval "$ac_cv_use_pcx"
8496 if test "$no_cache" != 1; then
8497 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8498 fi
8499
8500 if test "$wxUSE_PCX" = yes; then
8501 echo "$ac_t""yes" 1>&6
8502 else
8503 echo "$ac_t""no" 1>&6
8504 fi
8505
8506
8507 enablestring=
8508 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8509 echo "configure:8510: checking for --${enablestring:-enable}-iff" >&5
8510 no_cache=0
8511 # Check whether --enable-iff or --disable-iff was given.
8512 if test "${enable_iff+set}" = set; then
8513 enableval="$enable_iff"
8514
8515 if test "$enableval" = yes; then
8516 ac_cv_use_iff='wxUSE_IFF=yes'
8517 else
8518 ac_cv_use_iff='wxUSE_IFF=no'
8519 fi
8520
8521 else
8522
8523 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8524 if test "x$LINE" != x ; then
8525 eval "DEFAULT_$LINE"
8526 else
8527 no_cache=1
8528 fi
8529
8530 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8531
8532 fi
8533
8534
8535 eval "$ac_cv_use_iff"
8536 if test "$no_cache" != 1; then
8537 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8538 fi
8539
8540 if test "$wxUSE_IFF" = yes; then
8541 echo "$ac_t""yes" 1>&6
8542 else
8543 echo "$ac_t""no" 1>&6
8544 fi
8545
8546
8547 enablestring=
8548 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8549 echo "configure:8550: checking for --${enablestring:-enable}-pnm" >&5
8550 no_cache=0
8551 # Check whether --enable-pnm or --disable-pnm was given.
8552 if test "${enable_pnm+set}" = set; then
8553 enableval="$enable_pnm"
8554
8555 if test "$enableval" = yes; then
8556 ac_cv_use_pnm='wxUSE_PNM=yes'
8557 else
8558 ac_cv_use_pnm='wxUSE_PNM=no'
8559 fi
8560
8561 else
8562
8563 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8564 if test "x$LINE" != x ; then
8565 eval "DEFAULT_$LINE"
8566 else
8567 no_cache=1
8568 fi
8569
8570 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8571
8572 fi
8573
8574
8575 eval "$ac_cv_use_pnm"
8576 if test "$no_cache" != 1; then
8577 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8578 fi
8579
8580 if test "$wxUSE_PNM" = yes; then
8581 echo "$ac_t""yes" 1>&6
8582 else
8583 echo "$ac_t""no" 1>&6
8584 fi
8585
8586
8587 enablestring=
8588 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8589 echo "configure:8590: checking for --${enablestring:-enable}-xpm" >&5
8590 no_cache=0
8591 # Check whether --enable-xpm or --disable-xpm was given.
8592 if test "${enable_xpm+set}" = set; then
8593 enableval="$enable_xpm"
8594
8595 if test "$enableval" = yes; then
8596 ac_cv_use_xpm='wxUSE_XPM=yes'
8597 else
8598 ac_cv_use_xpm='wxUSE_XPM=no'
8599 fi
8600
8601 else
8602
8603 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8604 if test "x$LINE" != x ; then
8605 eval "DEFAULT_$LINE"
8606 else
8607 no_cache=1
8608 fi
8609
8610 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8611
8612 fi
8613
8614
8615 eval "$ac_cv_use_xpm"
8616 if test "$no_cache" != 1; then
8617 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8618 fi
8619
8620 if test "$wxUSE_XPM" = yes; then
8621 echo "$ac_t""yes" 1>&6
8622 else
8623 echo "$ac_t""no" 1>&6
8624 fi
8625
8626
8627 enablestring=
8628 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8629 echo "configure:8630: checking for --${enablestring:-enable}-ico_cur" >&5
8630 no_cache=0
8631 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8632 if test "${enable_ico_cur+set}" = set; then
8633 enableval="$enable_ico_cur"
8634
8635 if test "$enableval" = yes; then
8636 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8637 else
8638 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8639 fi
8640
8641 else
8642
8643 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8644 if test "x$LINE" != x ; then
8645 eval "DEFAULT_$LINE"
8646 else
8647 no_cache=1
8648 fi
8649
8650 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8651
8652 fi
8653
8654
8655 eval "$ac_cv_use_ico_cur"
8656 if test "$no_cache" != 1; then
8657 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8658 fi
8659
8660 if test "$wxUSE_ICO_CUR" = yes; then
8661 echo "$ac_t""yes" 1>&6
8662 else
8663 echo "$ac_t""no" 1>&6
8664 fi
8665
8666
8667 fi
8668
8669 case "${host}" in
8670 *-pc-os2_emx | *-pc-os2-emx )
8671 PATH_IFS=';'
8672 LEX_STEM="lexyy"
8673 ;;
8674 *)
8675 PATH_IFS=':'
8676 LEX_STEM="lex.yy"
8677 ;;
8678 esac
8679
8680
8681
8682 echo "saving argument cache $wx_arg_cache_file"
8683 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8684
8685
8686
8687 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8688 echo "configure:8689: checking for toolkit" >&5
8689
8690 # In Wine, we need to default to MSW, not GTK or MOTIF
8691 if test "$wxUSE_WINE" = "yes"; then
8692 DEFAULT_DEFAULT_wxUSE_GTK=0
8693 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8694 DEFAULT_DEFAULT_wxUSE_MSW=1
8695 fi
8696
8697 if test "$wxUSE_GUI" = "yes"; then
8698
8699 if test "$USE_BEOS" = 1; then
8700 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8701 fi
8702
8703 if test "$TOOLKIT_GIVEN" = 1; then
8704 for toolkit in `echo $ALL_TOOLKITS`; do
8705 var=wxUSE_$toolkit
8706 eval "value=\$${var}"
8707 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8708 done
8709 else
8710 for toolkit in `echo $ALL_TOOLKITS`; do
8711 if test "$has_toolkit_in_cache" != 1; then
8712 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8713 else
8714 var=DEFAULT_wxUSE_$toolkit
8715 fi
8716 eval "wxUSE_$toolkit=\$${var}"
8717 done
8718 fi
8719
8720 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8721 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8722 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
8723
8724 case "${host}" in
8725 *-pc-os2_emx | *-pc-os2-emx )
8726 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8727 esac
8728
8729 case "$NUM_TOOLKITS" in
8730 1)
8731 ;;
8732 0)
8733 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8734 ;;
8735 *)
8736 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8737 esac
8738
8739 for toolkit in `echo $ALL_TOOLKITS`; do
8740 var=wxUSE_$toolkit
8741 eval "value=\$${var}"
8742 if test "x$value" != x; then
8743 cache_var=CACHE_$toolkit
8744 eval "cache=\$${cache_var}"
8745 if test "$cache" = 1; then
8746 echo "$var=$value" >> ${wx_arg_cache_file}
8747 fi
8748 if test "$value" = 1; then
8749 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8750 echo "$ac_t""$toolkit_echo" 1>&6
8751 fi
8752 fi
8753 done
8754 else
8755 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8756 fi
8757
8758 wants_win32=0
8759 doesnt_want_win32=0
8760 case "${host}" in
8761 *-*-cygwin*)
8762 if test "$wxUSE_MSW" = 1 ; then
8763 wants_win32=1
8764 else
8765 doesnt_want_win32=1
8766 fi
8767 ;;
8768 *-*-mingw*)
8769 wants_win32=1
8770 ;;
8771 esac
8772
8773 if test "$wxUSE_WINE" = "yes"; then
8774 wants_win32=1
8775 CC=winegcc
8776 CXX=wineg++
8777 RESCOMP=wrc
8778 fi
8779
8780 if test "$wants_win32" = 1 ; then
8781 USE_UNIX=0
8782 USE_WIN32=1
8783 cat >> confdefs.h <<\EOF
8784 #define __WIN32__ 1
8785 EOF
8786
8787 cat >> confdefs.h <<\EOF
8788 #define __WIN95__ 1
8789 EOF
8790
8791 cat >> confdefs.h <<\EOF
8792 #define __WINDOWS__ 1
8793 EOF
8794
8795 cat >> confdefs.h <<\EOF
8796 #define __GNUWIN32__ 1
8797 EOF
8798
8799 cat >> confdefs.h <<\EOF
8800 #define STRICT 1
8801 EOF
8802
8803 cat >> confdefs.h <<\EOF
8804 #define WINVER 0x0400
8805 EOF
8806
8807 fi
8808 if test "$doesnt_want_win32" = 1 ; then
8809 USE_UNIX=1
8810 USE_WIN32=0
8811 fi
8812
8813 if test "$USE_UNIX" = 1 ; then
8814 wxUSE_UNIX=yes
8815 cat >> confdefs.h <<\EOF
8816 #define __UNIX__ 1
8817 EOF
8818
8819 fi
8820
8821
8822 cat > confcache <<\EOF
8823 # This file is a shell script that caches the results of configure
8824 # tests run on this system so they can be shared between configure
8825 # scripts and configure runs. It is not useful on other systems.
8826 # If it contains results you don't want to keep, you may remove or edit it.
8827 #
8828 # By default, configure uses ./config.cache as the cache file,
8829 # creating it if it does not exist already. You can give configure
8830 # the --cache-file=FILE option to use a different cache file; that is
8831 # what configure does when it calls configure scripts in
8832 # subdirectories, so they share the cache.
8833 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8834 # config.status only pays attention to the cache file if you give it the
8835 # --recheck option to rerun configure.
8836 #
8837 EOF
8838 # The following way of writing the cache mishandles newlines in values,
8839 # but we know of no workaround that is simple, portable, and efficient.
8840 # So, don't put newlines in cache variables' values.
8841 # Ultrix sh set writes to stderr and can't be redirected directly,
8842 # and sets the high bit in the cache file unless we assign to the vars.
8843 (set) 2>&1 |
8844 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8845 *ac_space=\ *)
8846 # `set' does not quote correctly, so add quotes (double-quote substitution
8847 # turns \\\\ into \\, and sed turns \\ into \).
8848 sed -n \
8849 -e "s/'/'\\\\''/g" \
8850 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8851 ;;
8852 *)
8853 # `set' quotes correctly as required by POSIX, so do not add quotes.
8854 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8855 ;;
8856 esac >> confcache
8857 if cmp -s $cache_file confcache; then
8858 :
8859 else
8860 if test -w $cache_file; then
8861 echo "updating cache $cache_file"
8862 cat confcache > $cache_file
8863 else
8864 echo "not updating unwritable cache $cache_file"
8865 fi
8866 fi
8867 rm -f confcache
8868
8869
8870 if test "$build" != "$host" ; then
8871 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8872 CC=$host_alias-gcc
8873 CXX=$host_alias-c++
8874 AR=$host_alias-ar
8875 RANLIB=$host_alias-ranlib
8876 DLLTOOL=$host_alias-dlltool
8877 RESCOMP=$host_alias-windres
8878 LD=$host_alias-ld
8879 NM=$host_alias-nm
8880 STRIP=$host_alias-strip
8881 else
8882 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8883 fi
8884 fi
8885
8886 CFLAGS=${CFLAGS:=}
8887 # Extract the first word of "gcc", so it can be a program name with args.
8888 set dummy gcc; ac_word=$2
8889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8890 echo "configure:8891: checking for $ac_word" >&5
8891 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8892 echo $ac_n "(cached) $ac_c" 1>&6
8893 else
8894 if test -n "$CC"; then
8895 ac_cv_prog_CC="$CC" # Let the user override the test.
8896 else
8897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8898 ac_dummy="$PATH"
8899 for ac_dir in $ac_dummy; do
8900 test -z "$ac_dir" && ac_dir=.
8901 if test -f $ac_dir/$ac_word; then
8902 ac_cv_prog_CC="gcc"
8903 break
8904 fi
8905 done
8906 IFS="$ac_save_ifs"
8907 fi
8908 fi
8909 CC="$ac_cv_prog_CC"
8910 if test -n "$CC"; then
8911 echo "$ac_t""$CC" 1>&6
8912 else
8913 echo "$ac_t""no" 1>&6
8914 fi
8915
8916 if test -z "$CC"; then
8917 # Extract the first word of "cc", so it can be a program name with args.
8918 set dummy cc; ac_word=$2
8919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8920 echo "configure:8921: checking for $ac_word" >&5
8921 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8922 echo $ac_n "(cached) $ac_c" 1>&6
8923 else
8924 if test -n "$CC"; then
8925 ac_cv_prog_CC="$CC" # Let the user override the test.
8926 else
8927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8928 ac_prog_rejected=no
8929 ac_dummy="$PATH"
8930 for ac_dir in $ac_dummy; do
8931 test -z "$ac_dir" && ac_dir=.
8932 if test -f $ac_dir/$ac_word; then
8933 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8934 ac_prog_rejected=yes
8935 continue
8936 fi
8937 ac_cv_prog_CC="cc"
8938 break
8939 fi
8940 done
8941 IFS="$ac_save_ifs"
8942 if test $ac_prog_rejected = yes; then
8943 # We found a bogon in the path, so make sure we never use it.
8944 set dummy $ac_cv_prog_CC
8945 shift
8946 if test $# -gt 0; then
8947 # We chose a different compiler from the bogus one.
8948 # However, it has the same basename, so the bogon will be chosen
8949 # first if we set CC to just the basename; use the full file name.
8950 shift
8951 set dummy "$ac_dir/$ac_word" "$@"
8952 shift
8953 ac_cv_prog_CC="$@"
8954 fi
8955 fi
8956 fi
8957 fi
8958 CC="$ac_cv_prog_CC"
8959 if test -n "$CC"; then
8960 echo "$ac_t""$CC" 1>&6
8961 else
8962 echo "$ac_t""no" 1>&6
8963 fi
8964
8965 if test -z "$CC"; then
8966 case "`uname -s`" in
8967 *win32* | *WIN32*)
8968 # Extract the first word of "cl", so it can be a program name with args.
8969 set dummy cl; ac_word=$2
8970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8971 echo "configure:8972: checking for $ac_word" >&5
8972 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8973 echo $ac_n "(cached) $ac_c" 1>&6
8974 else
8975 if test -n "$CC"; then
8976 ac_cv_prog_CC="$CC" # Let the user override the test.
8977 else
8978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8979 ac_dummy="$PATH"
8980 for ac_dir in $ac_dummy; do
8981 test -z "$ac_dir" && ac_dir=.
8982 if test -f $ac_dir/$ac_word; then
8983 ac_cv_prog_CC="cl"
8984 break
8985 fi
8986 done
8987 IFS="$ac_save_ifs"
8988 fi
8989 fi
8990 CC="$ac_cv_prog_CC"
8991 if test -n "$CC"; then
8992 echo "$ac_t""$CC" 1>&6
8993 else
8994 echo "$ac_t""no" 1>&6
8995 fi
8996 ;;
8997 esac
8998 fi
8999 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9000 fi
9001
9002 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9003 echo "configure:9004: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9004
9005 ac_ext=c
9006 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9007 ac_cpp='$CPP $CPPFLAGS'
9008 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9009 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9010 cross_compiling=$ac_cv_prog_cc_cross
9011
9012 cat > conftest.$ac_ext << EOF
9013
9014 #line 9015 "configure"
9015 #include "confdefs.h"
9016
9017 main(){return(0);}
9018 EOF
9019 if { (eval echo configure:9020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9020 ac_cv_prog_cc_works=yes
9021 # If we can't run a trivial program, we are probably using a cross compiler.
9022 if (./conftest; exit) 2>/dev/null; then
9023 ac_cv_prog_cc_cross=no
9024 else
9025 ac_cv_prog_cc_cross=yes
9026 fi
9027 else
9028 echo "configure: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9030 ac_cv_prog_cc_works=no
9031 fi
9032 rm -fr conftest*
9033 ac_ext=c
9034 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9035 ac_cpp='$CPP $CPPFLAGS'
9036 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9037 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9038 cross_compiling=$ac_cv_prog_cc_cross
9039
9040 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9041 if test $ac_cv_prog_cc_works = no; then
9042 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9043 fi
9044 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9045 echo "configure:9046: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9046 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9047 cross_compiling=$ac_cv_prog_cc_cross
9048
9049 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9050 echo "configure:9051: checking whether we are using GNU C" >&5
9051 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9052 echo $ac_n "(cached) $ac_c" 1>&6
9053 else
9054 cat > conftest.c <<EOF
9055 #ifdef __GNUC__
9056 yes;
9057 #endif
9058 EOF
9059 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9060 ac_cv_prog_gcc=yes
9061 else
9062 ac_cv_prog_gcc=no
9063 fi
9064 fi
9065
9066 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9067
9068 if test $ac_cv_prog_gcc = yes; then
9069 GCC=yes
9070 else
9071 GCC=
9072 fi
9073
9074 ac_test_CFLAGS="${CFLAGS+set}"
9075 ac_save_CFLAGS="$CFLAGS"
9076 CFLAGS=
9077 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9078 echo "configure:9079: checking whether ${CC-cc} accepts -g" >&5
9079 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9080 echo $ac_n "(cached) $ac_c" 1>&6
9081 else
9082 echo 'void f(){}' > conftest.c
9083 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9084 ac_cv_prog_cc_g=yes
9085 else
9086 ac_cv_prog_cc_g=no
9087 fi
9088 rm -f conftest*
9089
9090 fi
9091
9092 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9093 if test "$ac_test_CFLAGS" = set; then
9094 CFLAGS="$ac_save_CFLAGS"
9095 elif test $ac_cv_prog_cc_g = yes; then
9096 if test "$GCC" = yes; then
9097 CFLAGS="-g -O2"
9098 else
9099 CFLAGS="-g"
9100 fi
9101 else
9102 if test "$GCC" = yes; then
9103 CFLAGS="-O2"
9104 else
9105 CFLAGS=
9106 fi
9107 fi
9108
9109
9110 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9111 echo "configure:9112: checking how to run the C preprocessor" >&5
9112 # On Suns, sometimes $CPP names a directory.
9113 if test -n "$CPP" && test -d "$CPP"; then
9114 CPP=
9115 fi
9116 if test -z "$CPP"; then
9117 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9118 echo $ac_n "(cached) $ac_c" 1>&6
9119 else
9120 # This must be in double quotes, not single quotes, because CPP may get
9121 # substituted into the Makefile and "${CC-cc}" will confuse make.
9122 CPP="${CC-cc} -E"
9123 # On the NeXT, cc -E runs the code through the compiler's parser,
9124 # not just through cpp.
9125 cat > conftest.$ac_ext <<EOF
9126 #line 9127 "configure"
9127 #include "confdefs.h"
9128 #include <assert.h>
9129 Syntax Error
9130 EOF
9131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9132 { (eval echo configure:9133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9134 if test -z "$ac_err"; then
9135 :
9136 else
9137 echo "$ac_err" >&5
9138 echo "configure: failed program was:" >&5
9139 cat conftest.$ac_ext >&5
9140 rm -rf conftest*
9141 CPP="${CC-cc} -E -traditional-cpp"
9142 cat > conftest.$ac_ext <<EOF
9143 #line 9144 "configure"
9144 #include "confdefs.h"
9145 #include <assert.h>
9146 Syntax Error
9147 EOF
9148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9149 { (eval echo configure:9150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9151 if test -z "$ac_err"; then
9152 :
9153 else
9154 echo "$ac_err" >&5
9155 echo "configure: failed program was:" >&5
9156 cat conftest.$ac_ext >&5
9157 rm -rf conftest*
9158 CPP="${CC-cc} -nologo -E"
9159 cat > conftest.$ac_ext <<EOF
9160 #line 9161 "configure"
9161 #include "confdefs.h"
9162 #include <assert.h>
9163 Syntax Error
9164 EOF
9165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9166 { (eval echo configure:9167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9168 if test -z "$ac_err"; then
9169 :
9170 else
9171 echo "$ac_err" >&5
9172 echo "configure: failed program was:" >&5
9173 cat conftest.$ac_ext >&5
9174 rm -rf conftest*
9175 CPP=/lib/cpp
9176 fi
9177 rm -f conftest*
9178 fi
9179 rm -f conftest*
9180 fi
9181 rm -f conftest*
9182 ac_cv_prog_CPP="$CPP"
9183 fi
9184 CPP="$ac_cv_prog_CPP"
9185 else
9186 ac_cv_prog_CPP="$CPP"
9187 fi
9188 echo "$ac_t""$CPP" 1>&6
9189
9190 if test $ac_cv_prog_gcc = yes; then
9191 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9192 echo "configure:9193: checking whether ${CC-cc} needs -traditional" >&5
9193 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9194 echo $ac_n "(cached) $ac_c" 1>&6
9195 else
9196 ac_pattern="Autoconf.*'x'"
9197 cat > conftest.$ac_ext <<EOF
9198 #line 9199 "configure"
9199 #include "confdefs.h"
9200 #include <sgtty.h>
9201 Autoconf TIOCGETP
9202 EOF
9203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9204 egrep "$ac_pattern" >/dev/null 2>&1; then
9205 rm -rf conftest*
9206 ac_cv_prog_gcc_traditional=yes
9207 else
9208 rm -rf conftest*
9209 ac_cv_prog_gcc_traditional=no
9210 fi
9211 rm -f conftest*
9212
9213
9214 if test $ac_cv_prog_gcc_traditional = no; then
9215 cat > conftest.$ac_ext <<EOF
9216 #line 9217 "configure"
9217 #include "confdefs.h"
9218 #include <termio.h>
9219 Autoconf TCGETA
9220 EOF
9221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9222 egrep "$ac_pattern" >/dev/null 2>&1; then
9223 rm -rf conftest*
9224 ac_cv_prog_gcc_traditional=yes
9225 fi
9226 rm -f conftest*
9227
9228 fi
9229 fi
9230
9231 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9232 if test $ac_cv_prog_gcc_traditional = yes; then
9233 CC="$CC -traditional"
9234 fi
9235 fi
9236
9237
9238
9239 ac_ext=C
9240 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9241 ac_cpp='$CXXCPP $CPPFLAGS'
9242 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9243 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9244 cross_compiling=$ac_cv_prog_cxx_cross
9245
9246
9247 CXXFLAGS=${CXXFLAGS:=}
9248 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9249 do
9250 # Extract the first word of "$ac_prog", so it can be a program name with args.
9251 set dummy $ac_prog; ac_word=$2
9252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9253 echo "configure:9254: checking for $ac_word" >&5
9254 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9255 echo $ac_n "(cached) $ac_c" 1>&6
9256 else
9257 if test -n "$CXX"; then
9258 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9259 else
9260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9261 ac_dummy="$PATH"
9262 for ac_dir in $ac_dummy; do
9263 test -z "$ac_dir" && ac_dir=.
9264 if test -f $ac_dir/$ac_word; then
9265 ac_cv_prog_CXX="$ac_prog"
9266 break
9267 fi
9268 done
9269 IFS="$ac_save_ifs"
9270 fi
9271 fi
9272 CXX="$ac_cv_prog_CXX"
9273 if test -n "$CXX"; then
9274 echo "$ac_t""$CXX" 1>&6
9275 else
9276 echo "$ac_t""no" 1>&6
9277 fi
9278
9279 test -n "$CXX" && break
9280 done
9281 test -n "$CXX" || CXX="gcc"
9282
9283
9284 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9285 echo "configure:9286: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9286
9287 ac_ext=C
9288 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9289 ac_cpp='$CXXCPP $CPPFLAGS'
9290 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9291 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9292 cross_compiling=$ac_cv_prog_cxx_cross
9293
9294 cat > conftest.$ac_ext << EOF
9295
9296 #line 9297 "configure"
9297 #include "confdefs.h"
9298
9299 int main(){return(0);}
9300 EOF
9301 if { (eval echo configure:9302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9302 ac_cv_prog_cxx_works=yes
9303 # If we can't run a trivial program, we are probably using a cross compiler.
9304 if (./conftest; exit) 2>/dev/null; then
9305 ac_cv_prog_cxx_cross=no
9306 else
9307 ac_cv_prog_cxx_cross=yes
9308 fi
9309 else
9310 echo "configure: failed program was:" >&5
9311 cat conftest.$ac_ext >&5
9312 ac_cv_prog_cxx_works=no
9313 fi
9314 rm -fr conftest*
9315 ac_ext=C
9316 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9317 ac_cpp='$CXXCPP $CPPFLAGS'
9318 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9319 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9320 cross_compiling=$ac_cv_prog_cxx_cross
9321
9322 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9323 if test $ac_cv_prog_cxx_works = no; then
9324 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9325 fi
9326 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9327 echo "configure:9328: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9328 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9329 cross_compiling=$ac_cv_prog_cxx_cross
9330
9331 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9332 echo "configure:9333: checking whether we are using GNU C++" >&5
9333 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9334 echo $ac_n "(cached) $ac_c" 1>&6
9335 else
9336 cat > conftest.C <<EOF
9337 #ifdef __GNUC__
9338 yes;
9339 #endif
9340 EOF
9341 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9342 ac_cv_prog_gxx=yes
9343 else
9344 ac_cv_prog_gxx=no
9345 fi
9346 fi
9347
9348 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9349
9350 if test $ac_cv_prog_gxx = yes; then
9351 GXX=yes
9352 else
9353 GXX=
9354 fi
9355
9356 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9357 ac_save_CXXFLAGS="$CXXFLAGS"
9358 CXXFLAGS=
9359 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9360 echo "configure:9361: checking whether ${CXX-g++} accepts -g" >&5
9361 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9362 echo $ac_n "(cached) $ac_c" 1>&6
9363 else
9364 echo 'void f(){}' > conftest.cc
9365 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9366 ac_cv_prog_cxx_g=yes
9367 else
9368 ac_cv_prog_cxx_g=no
9369 fi
9370 rm -f conftest*
9371
9372 fi
9373
9374 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9375 if test "$ac_test_CXXFLAGS" = set; then
9376 CXXFLAGS="$ac_save_CXXFLAGS"
9377 elif test $ac_cv_prog_cxx_g = yes; then
9378 if test "$GXX" = yes; then
9379 CXXFLAGS="-g -O2"
9380 else
9381 CXXFLAGS="-g"
9382 fi
9383 else
9384 if test "$GXX" = yes; then
9385 CXXFLAGS="-O2"
9386 else
9387 CXXFLAGS=
9388 fi
9389 fi
9390
9391
9392 ac_ext=c
9393 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9394 ac_cpp='$CPP $CPPFLAGS'
9395 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9396 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9397 cross_compiling=$ac_cv_prog_cc_cross
9398
9399
9400 # Extract the first word of "ranlib", so it can be a program name with args.
9401 set dummy ranlib; ac_word=$2
9402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9403 echo "configure:9404: checking for $ac_word" >&5
9404 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9405 echo $ac_n "(cached) $ac_c" 1>&6
9406 else
9407 if test -n "$RANLIB"; then
9408 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9409 else
9410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9411 ac_dummy="$PATH"
9412 for ac_dir in $ac_dummy; do
9413 test -z "$ac_dir" && ac_dir=.
9414 if test -f $ac_dir/$ac_word; then
9415 ac_cv_prog_RANLIB="ranlib"
9416 break
9417 fi
9418 done
9419 IFS="$ac_save_ifs"
9420 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9421 fi
9422 fi
9423 RANLIB="$ac_cv_prog_RANLIB"
9424 if test -n "$RANLIB"; then
9425 echo "$ac_t""$RANLIB" 1>&6
9426 else
9427 echo "$ac_t""no" 1>&6
9428 fi
9429
9430
9431 # Extract the first word of "ar", so it can be a program name with args.
9432 set dummy ar; ac_word=$2
9433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9434 echo "configure:9435: checking for $ac_word" >&5
9435 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9436 echo $ac_n "(cached) $ac_c" 1>&6
9437 else
9438 if test -n "$AR"; then
9439 ac_cv_prog_AR="$AR" # Let the user override the test.
9440 else
9441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9442 ac_dummy="$PATH"
9443 for ac_dir in $ac_dummy; do
9444 test -z "$ac_dir" && ac_dir=.
9445 if test -f $ac_dir/$ac_word; then
9446 ac_cv_prog_AR="ar"
9447 break
9448 fi
9449 done
9450 IFS="$ac_save_ifs"
9451 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9452 fi
9453 fi
9454 AR="$ac_cv_prog_AR"
9455 if test -n "$AR"; then
9456 echo "$ac_t""$AR" 1>&6
9457 else
9458 echo "$ac_t""no" 1>&6
9459 fi
9460
9461
9462 # Find a good install program. We prefer a C program (faster),
9463 # so one script is as good as another. But avoid the broken or
9464 # incompatible versions:
9465 # SysV /etc/install, /usr/sbin/install
9466 # SunOS /usr/etc/install
9467 # IRIX /sbin/install
9468 # AIX /bin/install
9469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9472 # ./install, which can be erroneously created by make from ./install.sh.
9473 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9474 echo "configure:9475: checking for a BSD compatible install" >&5
9475 if test -z "$INSTALL"; then
9476 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9477 echo $ac_n "(cached) $ac_c" 1>&6
9478 else
9479 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9480 for ac_dir in $PATH; do
9481 # Account for people who put trailing slashes in PATH elements.
9482 case "$ac_dir/" in
9483 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9484 *)
9485 # OSF1 and SCO ODT 3.0 have their own names for install.
9486 # Don't use installbsd from OSF since it installs stuff as root
9487 # by default.
9488 for ac_prog in ginstall scoinst install; do
9489 if test -f $ac_dir/$ac_prog; then
9490 if test $ac_prog = install &&
9491 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9492 # AIX install. It has an incompatible calling convention.
9493 :
9494 else
9495 ac_cv_path_install="$ac_dir/$ac_prog -c"
9496 break 2
9497 fi
9498 fi
9499 done
9500 ;;
9501 esac
9502 done
9503 IFS="$ac_save_IFS"
9504
9505 fi
9506 if test "${ac_cv_path_install+set}" = set; then
9507 INSTALL="$ac_cv_path_install"
9508 else
9509 # As a last resort, use the slow shell script. We don't cache a
9510 # path for INSTALL within a source directory, because that will
9511 # break other packages using the cache if that directory is
9512 # removed, or if the path is relative.
9513 INSTALL="$ac_install_sh"
9514 fi
9515 fi
9516 echo "$ac_t""$INSTALL" 1>&6
9517
9518 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9519 # It thinks the first close brace ends the variable substitution.
9520 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9521
9522 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9523
9524 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9525
9526
9527 case ${INSTALL} in
9528 /* ) # Absolute
9529 ;;
9530 ?:* ) # Drive letter, considered as absolute.
9531 ;;
9532 *)
9533 INSTALL=`pwd`/${INSTALL} ;;
9534 esac
9535
9536 case ${host} in
9537 *-hp-hpux* )
9538 INSTALL_DIR="mkdir"
9539 ;;
9540
9541 *) INSTALL_DIR="$INSTALL -d"
9542 ;;
9543 esac
9544
9545
9546 case "${host}" in
9547
9548 powerpc-*-darwin* )
9549 INSTALL_PROGRAM="cp -fp"
9550 INSTALL_DATA="cp -fp"
9551 ;;
9552 *)
9553 ;;
9554 esac
9555
9556 # Extract the first word of "strip", so it can be a program name with args.
9557 set dummy strip; ac_word=$2
9558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9559 echo "configure:9560: checking for $ac_word" >&5
9560 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9561 echo $ac_n "(cached) $ac_c" 1>&6
9562 else
9563 if test -n "$STRIP"; then
9564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9565 else
9566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9567 ac_dummy="$PATH"
9568 for ac_dir in $ac_dummy; do
9569 test -z "$ac_dir" && ac_dir=.
9570 if test -f $ac_dir/$ac_word; then
9571 ac_cv_prog_STRIP="strip"
9572 break
9573 fi
9574 done
9575 IFS="$ac_save_ifs"
9576 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9577 fi
9578 fi
9579 STRIP="$ac_cv_prog_STRIP"
9580 if test -n "$STRIP"; then
9581 echo "$ac_t""$STRIP" 1>&6
9582 else
9583 echo "$ac_t""no" 1>&6
9584 fi
9585
9586
9587 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9588 echo "configure:9589: checking if make is GNU make" >&5
9589 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9590 echo $ac_n "(cached) $ac_c" 1>&6
9591 else
9592
9593 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9594 egrep -s GNU > /dev/null); then
9595 wx_cv_prog_makeisgnu="yes"
9596 else
9597 wx_cv_prog_makeisgnu="no"
9598 fi
9599
9600 fi
9601
9602 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9603
9604 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9605 IF_GNU_MAKE=""
9606 else
9607 IF_GNU_MAKE="#"
9608 fi
9609
9610
9611
9612 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9613 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9614 echo "configure:9615: checking if make supports VPATH" >&5
9615 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9616 echo $ac_n "(cached) $ac_c" 1>&6
9617 else
9618
9619 cat - << EOF > confMake
9620 check : file
9621 cp \$? \$@
9622 cp \$? final_file
9623 EOF
9624
9625 if test ! -d sub ; then
9626 mkdir sub
9627 fi
9628 echo dummy > sub/file
9629 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9630 RESULT=$?
9631 rm -f sub/file check final_file confMake
9632 rmdir sub
9633 if test "$RESULT" = 0; then
9634 wx_cv_prog_makevpath="yes"
9635 else
9636 wx_cv_prog_makevpath="no"
9637 fi
9638
9639 fi
9640
9641 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9642
9643 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9644 { echo "configure: error:
9645 You need a make-utility that is able to use the variable
9646 VPATH correctly.
9647 If your version of make does not support VPATH correctly,
9648 please install GNU-make (possibly as gmake), and start
9649 configure with the following command:
9650 export MAKE=gmake; ./configure for sh-type shells
9651 setenv MAKE gmake; ./configure for csh-type shells
9652 Also please do remember to use gmake in this case every time
9653 you are trying to compile.
9654 " 1>&2; exit 1; }
9655 fi fi
9656 for ac_prog in 'bison -y' byacc
9657 do
9658 # Extract the first word of "$ac_prog", so it can be a program name with args.
9659 set dummy $ac_prog; ac_word=$2
9660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9661 echo "configure:9662: checking for $ac_word" >&5
9662 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9663 echo $ac_n "(cached) $ac_c" 1>&6
9664 else
9665 if test -n "$YACC"; then
9666 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9667 else
9668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9669 ac_dummy="$PATH"
9670 for ac_dir in $ac_dummy; do
9671 test -z "$ac_dir" && ac_dir=.
9672 if test -f $ac_dir/$ac_word; then
9673 ac_cv_prog_YACC="$ac_prog"
9674 break
9675 fi
9676 done
9677 IFS="$ac_save_ifs"
9678 fi
9679 fi
9680 YACC="$ac_cv_prog_YACC"
9681 if test -n "$YACC"; then
9682 echo "$ac_t""$YACC" 1>&6
9683 else
9684 echo "$ac_t""no" 1>&6
9685 fi
9686
9687 test -n "$YACC" && break
9688 done
9689 test -n "$YACC" || YACC="yacc"
9690
9691
9692 # Extract the first word of "flex", so it can be a program name with args.
9693 set dummy flex; ac_word=$2
9694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9695 echo "configure:9696: checking for $ac_word" >&5
9696 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9697 echo $ac_n "(cached) $ac_c" 1>&6
9698 else
9699 if test -n "$LEX"; then
9700 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9701 else
9702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9703 ac_dummy="$PATH"
9704 for ac_dir in $ac_dummy; do
9705 test -z "$ac_dir" && ac_dir=.
9706 if test -f $ac_dir/$ac_word; then
9707 ac_cv_prog_LEX="flex"
9708 break
9709 fi
9710 done
9711 IFS="$ac_save_ifs"
9712 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9713 fi
9714 fi
9715 LEX="$ac_cv_prog_LEX"
9716 if test -n "$LEX"; then
9717 echo "$ac_t""$LEX" 1>&6
9718 else
9719 echo "$ac_t""no" 1>&6
9720 fi
9721
9722 if test -z "$LEXLIB"
9723 then
9724 case "$LEX" in
9725 flex*) ac_lib=fl ;;
9726 *) ac_lib=l ;;
9727 esac
9728 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9729 echo "configure:9730: checking for yywrap in -l$ac_lib" >&5
9730 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9732 echo $ac_n "(cached) $ac_c" 1>&6
9733 else
9734 ac_save_LIBS="$LIBS"
9735 LIBS="-l$ac_lib $LIBS"
9736 cat > conftest.$ac_ext <<EOF
9737 #line 9738 "configure"
9738 #include "confdefs.h"
9739 /* Override any gcc2 internal prototype to avoid an error. */
9740 /* We use char because int might match the return type of a gcc2
9741 builtin and then its argument prototype would still apply. */
9742 char yywrap();
9743
9744 int main() {
9745 yywrap()
9746 ; return 0; }
9747 EOF
9748 if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9749 rm -rf conftest*
9750 eval "ac_cv_lib_$ac_lib_var=yes"
9751 else
9752 echo "configure: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9754 rm -rf conftest*
9755 eval "ac_cv_lib_$ac_lib_var=no"
9756 fi
9757 rm -f conftest*
9758 LIBS="$ac_save_LIBS"
9759
9760 fi
9761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9762 echo "$ac_t""yes" 1>&6
9763 LEXLIB="-l$ac_lib"
9764 else
9765 echo "$ac_t""no" 1>&6
9766 fi
9767
9768 fi
9769
9770
9771 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9772 echo "configure:9773: checking whether ln -s works" >&5
9773 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9774 echo $ac_n "(cached) $ac_c" 1>&6
9775 else
9776 rm -f conftestdata
9777 if ln -s X conftestdata 2>/dev/null
9778 then
9779 rm -f conftestdata
9780 ac_cv_prog_LN_S="ln -s"
9781 else
9782 ac_cv_prog_LN_S=ln
9783 fi
9784 fi
9785 LN_S="$ac_cv_prog_LN_S"
9786 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9787 echo "$ac_t""yes" 1>&6
9788 else
9789 echo "$ac_t""no" 1>&6
9790 fi
9791
9792
9793 case "${host}" in
9794 *-pc-os2_emx | *-pc-os2-emx )
9795 LIBS="$LIBS -lstdcpp"
9796 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9797 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9798 echo "configure:9799: checking for drand48 in -lcExt" >&5
9799 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9801 echo $ac_n "(cached) $ac_c" 1>&6
9802 else
9803 ac_save_LIBS="$LIBS"
9804 LIBS="-lcExt $LIBS"
9805 cat > conftest.$ac_ext <<EOF
9806 #line 9807 "configure"
9807 #include "confdefs.h"
9808 /* Override any gcc2 internal prototype to avoid an error. */
9809 /* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */
9811 char drand48();
9812
9813 int main() {
9814 drand48()
9815 ; return 0; }
9816 EOF
9817 if { (eval echo configure:9818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9818 rm -rf conftest*
9819 eval "ac_cv_lib_$ac_lib_var=yes"
9820 else
9821 echo "configure: failed program was:" >&5
9822 cat conftest.$ac_ext >&5
9823 rm -rf conftest*
9824 eval "ac_cv_lib_$ac_lib_var=no"
9825 fi
9826 rm -f conftest*
9827 LIBS="$ac_save_LIBS"
9828
9829 fi
9830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9831 echo "$ac_t""yes" 1>&6
9832 LIBS="$LIBS -lcExt"
9833 else
9834 echo "$ac_t""no" 1>&6
9835 fi
9836
9837 else
9838 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9839 fi
9840 ;;
9841 esac
9842
9843
9844 if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
9845 for ac_hdr in strings.h
9846 do
9847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9849 echo "configure:9850: checking for $ac_hdr" >&5
9850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9851 echo $ac_n "(cached) $ac_c" 1>&6
9852 else
9853 cat > conftest.$ac_ext <<EOF
9854 #line 9855 "configure"
9855 #include "confdefs.h"
9856 #include <$ac_hdr>
9857 EOF
9858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9859 { (eval echo configure:9860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9861 if test -z "$ac_err"; then
9862 rm -rf conftest*
9863 eval "ac_cv_header_$ac_safe=yes"
9864 else
9865 echo "$ac_err" >&5
9866 echo "configure: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9868 rm -rf conftest*
9869 eval "ac_cv_header_$ac_safe=no"
9870 fi
9871 rm -f conftest*
9872 fi
9873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9874 echo "$ac_t""yes" 1>&6
9875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9876 cat >> confdefs.h <<EOF
9877 #define $ac_tr_hdr 1
9878 EOF
9879
9880 else
9881 echo "$ac_t""no" 1>&6
9882 fi
9883 done
9884
9885 fi
9886
9887 for ac_hdr in stdlib.h
9888 do
9889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9891 echo "configure:9892: checking for $ac_hdr" >&5
9892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9893 echo $ac_n "(cached) $ac_c" 1>&6
9894 else
9895 cat > conftest.$ac_ext <<EOF
9896 #line 9897 "configure"
9897 #include "confdefs.h"
9898 #include <$ac_hdr>
9899 EOF
9900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9901 { (eval echo configure:9902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9903 if test -z "$ac_err"; then
9904 rm -rf conftest*
9905 eval "ac_cv_header_$ac_safe=yes"
9906 else
9907 echo "$ac_err" >&5
9908 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9910 rm -rf conftest*
9911 eval "ac_cv_header_$ac_safe=no"
9912 fi
9913 rm -f conftest*
9914 fi
9915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9916 echo "$ac_t""yes" 1>&6
9917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9918 cat >> confdefs.h <<EOF
9919 #define $ac_tr_hdr 1
9920 EOF
9921
9922 else
9923 echo "$ac_t""no" 1>&6
9924 fi
9925 done
9926
9927 for ac_hdr in malloc.h
9928 do
9929 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9931 echo "configure:9932: checking for $ac_hdr" >&5
9932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9933 echo $ac_n "(cached) $ac_c" 1>&6
9934 else
9935 cat > conftest.$ac_ext <<EOF
9936 #line 9937 "configure"
9937 #include "confdefs.h"
9938 #include <$ac_hdr>
9939 EOF
9940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9941 { (eval echo configure:9942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9943 if test -z "$ac_err"; then
9944 rm -rf conftest*
9945 eval "ac_cv_header_$ac_safe=yes"
9946 else
9947 echo "$ac_err" >&5
9948 echo "configure: failed program was:" >&5
9949 cat conftest.$ac_ext >&5
9950 rm -rf conftest*
9951 eval "ac_cv_header_$ac_safe=no"
9952 fi
9953 rm -f conftest*
9954 fi
9955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9956 echo "$ac_t""yes" 1>&6
9957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9958 cat >> confdefs.h <<EOF
9959 #define $ac_tr_hdr 1
9960 EOF
9961
9962 else
9963 echo "$ac_t""no" 1>&6
9964 fi
9965 done
9966
9967 for ac_hdr in unistd.h
9968 do
9969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9971 echo "configure:9972: checking for $ac_hdr" >&5
9972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9973 echo $ac_n "(cached) $ac_c" 1>&6
9974 else
9975 cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9978 #include <$ac_hdr>
9979 EOF
9980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9981 { (eval echo configure:9982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9983 if test -z "$ac_err"; then
9984 rm -rf conftest*
9985 eval "ac_cv_header_$ac_safe=yes"
9986 else
9987 echo "$ac_err" >&5
9988 echo "configure: failed program was:" >&5
9989 cat conftest.$ac_ext >&5
9990 rm -rf conftest*
9991 eval "ac_cv_header_$ac_safe=no"
9992 fi
9993 rm -f conftest*
9994 fi
9995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9996 echo "$ac_t""yes" 1>&6
9997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9998 cat >> confdefs.h <<EOF
9999 #define $ac_tr_hdr 1
10000 EOF
10001
10002 else
10003 echo "$ac_t""no" 1>&6
10004 fi
10005 done
10006
10007 for ac_hdr in wchar.h
10008 do
10009 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10010 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10011 echo "configure:10012: checking for $ac_hdr" >&5
10012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10013 echo $ac_n "(cached) $ac_c" 1>&6
10014 else
10015 cat > conftest.$ac_ext <<EOF
10016 #line 10017 "configure"
10017 #include "confdefs.h"
10018 #include <$ac_hdr>
10019 EOF
10020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10021 { (eval echo configure:10022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10023 if test -z "$ac_err"; then
10024 rm -rf conftest*
10025 eval "ac_cv_header_$ac_safe=yes"
10026 else
10027 echo "$ac_err" >&5
10028 echo "configure: failed program was:" >&5
10029 cat conftest.$ac_ext >&5
10030 rm -rf conftest*
10031 eval "ac_cv_header_$ac_safe=no"
10032 fi
10033 rm -f conftest*
10034 fi
10035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10036 echo "$ac_t""yes" 1>&6
10037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10038 cat >> confdefs.h <<EOF
10039 #define $ac_tr_hdr 1
10040 EOF
10041
10042 else
10043 echo "$ac_t""no" 1>&6
10044 fi
10045 done
10046
10047
10048 if test "$ac_cv_header_wchar_h" != "yes"; then
10049 for ac_hdr in wcstr.h
10050 do
10051 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10052 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10053 echo "configure:10054: checking for $ac_hdr" >&5
10054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10055 echo $ac_n "(cached) $ac_c" 1>&6
10056 else
10057 cat > conftest.$ac_ext <<EOF
10058 #line 10059 "configure"
10059 #include "confdefs.h"
10060 #include <$ac_hdr>
10061 EOF
10062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10063 { (eval echo configure:10064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10065 if test -z "$ac_err"; then
10066 rm -rf conftest*
10067 eval "ac_cv_header_$ac_safe=yes"
10068 else
10069 echo "$ac_err" >&5
10070 echo "configure: failed program was:" >&5
10071 cat conftest.$ac_ext >&5
10072 rm -rf conftest*
10073 eval "ac_cv_header_$ac_safe=no"
10074 fi
10075 rm -f conftest*
10076 fi
10077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10078 echo "$ac_t""yes" 1>&6
10079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10080 cat >> confdefs.h <<EOF
10081 #define $ac_tr_hdr 1
10082 EOF
10083
10084 else
10085 echo "$ac_t""no" 1>&6
10086 fi
10087 done
10088
10089 fi
10090
10091 for ac_hdr in fnmatch.h
10092 do
10093 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10095 echo "configure:10096: checking for $ac_hdr" >&5
10096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10097 echo $ac_n "(cached) $ac_c" 1>&6
10098 else
10099 cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10102 #include <$ac_hdr>
10103 EOF
10104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10105 { (eval echo configure:10106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10107 if test -z "$ac_err"; then
10108 rm -rf conftest*
10109 eval "ac_cv_header_$ac_safe=yes"
10110 else
10111 echo "$ac_err" >&5
10112 echo "configure: failed program was:" >&5
10113 cat conftest.$ac_ext >&5
10114 rm -rf conftest*
10115 eval "ac_cv_header_$ac_safe=no"
10116 fi
10117 rm -f conftest*
10118 fi
10119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10120 echo "$ac_t""yes" 1>&6
10121 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10122 cat >> confdefs.h <<EOF
10123 #define $ac_tr_hdr 1
10124 EOF
10125
10126 else
10127 echo "$ac_t""no" 1>&6
10128 fi
10129 done
10130
10131
10132 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10133 for ac_func in fnmatch
10134 do
10135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10136 echo "configure:10137: checking for $ac_func" >&5
10137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10138 echo $ac_n "(cached) $ac_c" 1>&6
10139 else
10140 cat > conftest.$ac_ext <<EOF
10141 #line 10142 "configure"
10142 #include "confdefs.h"
10143 /* System header to define __stub macros and hopefully few prototypes,
10144 which can conflict with char $ac_func(); below. */
10145 #include <assert.h>
10146 /* Override any gcc2 internal prototype to avoid an error. */
10147 /* We use char because int might match the return type of a gcc2
10148 builtin and then its argument prototype would still apply. */
10149 char $ac_func();
10150
10151 int main() {
10152
10153 /* The GNU C library defines this for functions which it implements
10154 to always fail with ENOSYS. Some functions are actually named
10155 something starting with __ and the normal name is an alias. */
10156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10157 choke me
10158 #else
10159 $ac_func();
10160 #endif
10161
10162 ; return 0; }
10163 EOF
10164 if { (eval echo configure:10165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10165 rm -rf conftest*
10166 eval "ac_cv_func_$ac_func=yes"
10167 else
10168 echo "configure: failed program was:" >&5
10169 cat conftest.$ac_ext >&5
10170 rm -rf conftest*
10171 eval "ac_cv_func_$ac_func=no"
10172 fi
10173 rm -f conftest*
10174 fi
10175
10176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10177 echo "$ac_t""yes" 1>&6
10178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10179 cat >> confdefs.h <<EOF
10180 #define $ac_tr_func 1
10181 EOF
10182
10183 else
10184 echo "$ac_t""no" 1>&6
10185 fi
10186 done
10187
10188 fi
10189
10190 for ac_hdr in langinfo.h
10191 do
10192 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10193 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10194 echo "configure:10195: checking for $ac_hdr" >&5
10195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10196 echo $ac_n "(cached) $ac_c" 1>&6
10197 else
10198 cat > conftest.$ac_ext <<EOF
10199 #line 10200 "configure"
10200 #include "confdefs.h"
10201 #include <$ac_hdr>
10202 EOF
10203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10204 { (eval echo configure:10205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10206 if test -z "$ac_err"; then
10207 rm -rf conftest*
10208 eval "ac_cv_header_$ac_safe=yes"
10209 else
10210 echo "$ac_err" >&5
10211 echo "configure: failed program was:" >&5
10212 cat conftest.$ac_ext >&5
10213 rm -rf conftest*
10214 eval "ac_cv_header_$ac_safe=no"
10215 fi
10216 rm -f conftest*
10217 fi
10218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10219 echo "$ac_t""yes" 1>&6
10220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10221 cat >> confdefs.h <<EOF
10222 #define $ac_tr_hdr 1
10223 EOF
10224
10225 else
10226 echo "$ac_t""no" 1>&6
10227 fi
10228 done
10229
10230
10231 case "${host}" in
10232 *-pc-os2_emx | *-pc-os2-emx )
10233 if test $ac_cv_header_langinfo_h = "yes"; then
10234 LIBS="$LIBS -lintl"
10235 fi
10236 ;;
10237 esac
10238
10239 if test "$wxUSE_GUI" = "yes"; then
10240 if test "$wxUSE_UNIX" = "yes"; then
10241 for ac_hdr in X11/XKBlib.h
10242 do
10243 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10244 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10245 echo "configure:10246: checking for $ac_hdr" >&5
10246 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10247 echo $ac_n "(cached) $ac_c" 1>&6
10248 else
10249 cat > conftest.$ac_ext <<EOF
10250 #line 10251 "configure"
10251 #include "confdefs.h"
10252 #include <$ac_hdr>
10253 EOF
10254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10255 { (eval echo configure:10256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10257 if test -z "$ac_err"; then
10258 rm -rf conftest*
10259 eval "ac_cv_header_$ac_safe=yes"
10260 else
10261 echo "$ac_err" >&5
10262 echo "configure: failed program was:" >&5
10263 cat conftest.$ac_ext >&5
10264 rm -rf conftest*
10265 eval "ac_cv_header_$ac_safe=no"
10266 fi
10267 rm -f conftest*
10268 fi
10269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10270 echo "$ac_t""yes" 1>&6
10271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10272 cat >> confdefs.h <<EOF
10273 #define $ac_tr_hdr 1
10274 EOF
10275
10276 else
10277 echo "$ac_t""no" 1>&6
10278 fi
10279 done
10280
10281 fi
10282 fi
10283
10284
10285 echo $ac_n "checking for working const""... $ac_c" 1>&6
10286 echo "configure:10287: checking for working const" >&5
10287 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10288 echo $ac_n "(cached) $ac_c" 1>&6
10289 else
10290 cat > conftest.$ac_ext <<EOF
10291 #line 10292 "configure"
10292 #include "confdefs.h"
10293
10294 int main() {
10295
10296 /* Ultrix mips cc rejects this. */
10297 typedef int charset[2]; const charset x;
10298 /* SunOS 4.1.1 cc rejects this. */
10299 char const *const *ccp;
10300 char **p;
10301 /* NEC SVR4.0.2 mips cc rejects this. */
10302 struct point {int x, y;};
10303 static struct point const zero = {0,0};
10304 /* AIX XL C 1.02.0.0 rejects this.
10305 It does not let you subtract one const X* pointer from another in an arm
10306 of an if-expression whose if-part is not a constant expression */
10307 const char *g = "string";
10308 ccp = &g + (g ? g-g : 0);
10309 /* HPUX 7.0 cc rejects these. */
10310 ++ccp;
10311 p = (char**) ccp;
10312 ccp = (char const *const *) p;
10313 { /* SCO 3.2v4 cc rejects this. */
10314 char *t;
10315 char const *s = 0 ? (char *) 0 : (char const *) 0;
10316
10317 *t++ = 0;
10318 }
10319 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10320 int x[] = {25, 17};
10321 const int *foo = &x[0];
10322 ++foo;
10323 }
10324 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10325 typedef const int *iptr;
10326 iptr p = 0;
10327 ++p;
10328 }
10329 { /* AIX XL C 1.02.0.0 rejects this saying
10330 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10331 struct s { int j; const int *ap[3]; };
10332 struct s *b; b->j = 5;
10333 }
10334 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10335 const int foo = 10;
10336 }
10337
10338 ; return 0; }
10339 EOF
10340 if { (eval echo configure:10341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10341 rm -rf conftest*
10342 ac_cv_c_const=yes
10343 else
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10346 rm -rf conftest*
10347 ac_cv_c_const=no
10348 fi
10349 rm -f conftest*
10350 fi
10351
10352 echo "$ac_t""$ac_cv_c_const" 1>&6
10353 if test $ac_cv_c_const = no; then
10354 cat >> confdefs.h <<\EOF
10355 #define const
10356 EOF
10357
10358 fi
10359
10360 echo $ac_n "checking for inline""... $ac_c" 1>&6
10361 echo "configure:10362: checking for inline" >&5
10362 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10363 echo $ac_n "(cached) $ac_c" 1>&6
10364 else
10365 ac_cv_c_inline=no
10366 for ac_kw in inline __inline__ __inline; do
10367 cat > conftest.$ac_ext <<EOF
10368 #line 10369 "configure"
10369 #include "confdefs.h"
10370
10371 int main() {
10372 } $ac_kw foo() {
10373 ; return 0; }
10374 EOF
10375 if { (eval echo configure:10376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10376 rm -rf conftest*
10377 ac_cv_c_inline=$ac_kw; break
10378 else
10379 echo "configure: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10381 fi
10382 rm -f conftest*
10383 done
10384
10385 fi
10386
10387 echo "$ac_t""$ac_cv_c_inline" 1>&6
10388 case "$ac_cv_c_inline" in
10389 inline | yes) ;;
10390 no) cat >> confdefs.h <<\EOF
10391 #define inline
10392 EOF
10393 ;;
10394 *) cat >> confdefs.h <<EOF
10395 #define inline $ac_cv_c_inline
10396 EOF
10397 ;;
10398 esac
10399
10400
10401 echo $ac_n "checking size of char""... $ac_c" 1>&6
10402 echo "configure:10403: checking size of char" >&5
10403 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10404 echo $ac_n "(cached) $ac_c" 1>&6
10405 else
10406 if test "$cross_compiling" = yes; then
10407 ac_cv_sizeof_char=1
10408 else
10409 cat > conftest.$ac_ext <<EOF
10410 #line 10411 "configure"
10411 #include "confdefs.h"
10412 #include <stdio.h>
10413 #include <sys/types.h>
10414 main()
10415 {
10416 FILE *f=fopen("conftestval", "w");
10417 if (!f) exit(1);
10418 fprintf(f, "%d\n", sizeof(char));
10419 exit(0);
10420 }
10421 EOF
10422 if { (eval echo configure:10423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10423 then
10424 ac_cv_sizeof_char=`cat conftestval`
10425 else
10426 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5
10428 rm -fr conftest*
10429 ac_cv_sizeof_char=0
10430 fi
10431 rm -fr conftest*
10432 fi
10433
10434 fi
10435 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10436 cat >> confdefs.h <<EOF
10437 #define SIZEOF_CHAR $ac_cv_sizeof_char
10438 EOF
10439
10440
10441 echo $ac_n "checking size of short""... $ac_c" 1>&6
10442 echo "configure:10443: checking size of short" >&5
10443 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10444 echo $ac_n "(cached) $ac_c" 1>&6
10445 else
10446 if test "$cross_compiling" = yes; then
10447 ac_cv_sizeof_short=2
10448 else
10449 cat > conftest.$ac_ext <<EOF
10450 #line 10451 "configure"
10451 #include "confdefs.h"
10452 #include <stdio.h>
10453 #include <sys/types.h>
10454 main()
10455 {
10456 FILE *f=fopen("conftestval", "w");
10457 if (!f) exit(1);
10458 fprintf(f, "%d\n", sizeof(short));
10459 exit(0);
10460 }
10461 EOF
10462 if { (eval echo configure:10463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10463 then
10464 ac_cv_sizeof_short=`cat conftestval`
10465 else
10466 echo "configure: failed program was:" >&5
10467 cat conftest.$ac_ext >&5
10468 rm -fr conftest*
10469 ac_cv_sizeof_short=0
10470 fi
10471 rm -fr conftest*
10472 fi
10473
10474 fi
10475 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10476 cat >> confdefs.h <<EOF
10477 #define SIZEOF_SHORT $ac_cv_sizeof_short
10478 EOF
10479
10480
10481 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10482 echo "configure:10483: checking size of void *" >&5
10483 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10484 echo $ac_n "(cached) $ac_c" 1>&6
10485 else
10486 if test "$cross_compiling" = yes; then
10487 ac_cv_sizeof_void_p=4
10488 else
10489 cat > conftest.$ac_ext <<EOF
10490 #line 10491 "configure"
10491 #include "confdefs.h"
10492 #include <stdio.h>
10493 #include <sys/types.h>
10494 main()
10495 {
10496 FILE *f=fopen("conftestval", "w");
10497 if (!f) exit(1);
10498 fprintf(f, "%d\n", sizeof(void *));
10499 exit(0);
10500 }
10501 EOF
10502 if { (eval echo configure:10503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10503 then
10504 ac_cv_sizeof_void_p=`cat conftestval`
10505 else
10506 echo "configure: failed program was:" >&5
10507 cat conftest.$ac_ext >&5
10508 rm -fr conftest*
10509 ac_cv_sizeof_void_p=0
10510 fi
10511 rm -fr conftest*
10512 fi
10513
10514 fi
10515 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10516 cat >> confdefs.h <<EOF
10517 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10518 EOF
10519
10520
10521 echo $ac_n "checking size of int""... $ac_c" 1>&6
10522 echo "configure:10523: checking size of int" >&5
10523 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10524 echo $ac_n "(cached) $ac_c" 1>&6
10525 else
10526 if test "$cross_compiling" = yes; then
10527 ac_cv_sizeof_int=4
10528 else
10529 cat > conftest.$ac_ext <<EOF
10530 #line 10531 "configure"
10531 #include "confdefs.h"
10532 #include <stdio.h>
10533 #include <sys/types.h>
10534 main()
10535 {
10536 FILE *f=fopen("conftestval", "w");
10537 if (!f) exit(1);
10538 fprintf(f, "%d\n", sizeof(int));
10539 exit(0);
10540 }
10541 EOF
10542 if { (eval echo configure:10543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10543 then
10544 ac_cv_sizeof_int=`cat conftestval`
10545 else
10546 echo "configure: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10548 rm -fr conftest*
10549 ac_cv_sizeof_int=0
10550 fi
10551 rm -fr conftest*
10552 fi
10553
10554 fi
10555 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10556 cat >> confdefs.h <<EOF
10557 #define SIZEOF_INT $ac_cv_sizeof_int
10558 EOF
10559
10560
10561 echo $ac_n "checking size of long""... $ac_c" 1>&6
10562 echo "configure:10563: checking size of long" >&5
10563 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10564 echo $ac_n "(cached) $ac_c" 1>&6
10565 else
10566 if test "$cross_compiling" = yes; then
10567 ac_cv_sizeof_long=4
10568 else
10569 cat > conftest.$ac_ext <<EOF
10570 #line 10571 "configure"
10571 #include "confdefs.h"
10572 #include <stdio.h>
10573 #include <sys/types.h>
10574 main()
10575 {
10576 FILE *f=fopen("conftestval", "w");
10577 if (!f) exit(1);
10578 fprintf(f, "%d\n", sizeof(long));
10579 exit(0);
10580 }
10581 EOF
10582 if { (eval echo configure:10583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10583 then
10584 ac_cv_sizeof_long=`cat conftestval`
10585 else
10586 echo "configure: failed program was:" >&5
10587 cat conftest.$ac_ext >&5
10588 rm -fr conftest*
10589 ac_cv_sizeof_long=0
10590 fi
10591 rm -fr conftest*
10592 fi
10593
10594 fi
10595 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10596 cat >> confdefs.h <<EOF
10597 #define SIZEOF_LONG $ac_cv_sizeof_long
10598 EOF
10599
10600
10601
10602 case "${host}" in
10603 arm-*-linux* )
10604 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10605 echo "configure:10606: checking size of long long" >&5
10606 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10607 echo $ac_n "(cached) $ac_c" 1>&6
10608 else
10609 if test "$cross_compiling" = yes; then
10610 ac_cv_sizeof_long_long=8
10611 else
10612 cat > conftest.$ac_ext <<EOF
10613 #line 10614 "configure"
10614 #include "confdefs.h"
10615 #include <stdio.h>
10616 #include <sys/types.h>
10617 main()
10618 {
10619 FILE *f=fopen("conftestval", "w");
10620 if (!f) exit(1);
10621 fprintf(f, "%d\n", sizeof(long long));
10622 exit(0);
10623 }
10624 EOF
10625 if { (eval echo configure:10626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10626 then
10627 ac_cv_sizeof_long_long=`cat conftestval`
10628 else
10629 echo "configure: failed program was:" >&5
10630 cat conftest.$ac_ext >&5
10631 rm -fr conftest*
10632 ac_cv_sizeof_long_long=0
10633 fi
10634 rm -fr conftest*
10635 fi
10636
10637 fi
10638 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10639 cat >> confdefs.h <<EOF
10640 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10641 EOF
10642
10643
10644 ;;
10645 *-hp-hpux* )
10646 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10647 echo "configure:10648: checking size of long long" >&5
10648 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10649 echo $ac_n "(cached) $ac_c" 1>&6
10650 else
10651 if test "$cross_compiling" = yes; then
10652 ac_cv_sizeof_long_long=0
10653 else
10654 cat > conftest.$ac_ext <<EOF
10655 #line 10656 "configure"
10656 #include "confdefs.h"
10657 #include <stdio.h>
10658 #include <sys/types.h>
10659 main()
10660 {
10661 FILE *f=fopen("conftestval", "w");
10662 if (!f) exit(1);
10663 fprintf(f, "%d\n", sizeof(long long));
10664 exit(0);
10665 }
10666 EOF
10667 if { (eval echo configure:10668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10668 then
10669 ac_cv_sizeof_long_long=`cat conftestval`
10670 else
10671 echo "configure: failed program was:" >&5
10672 cat conftest.$ac_ext >&5
10673 rm -fr conftest*
10674 ac_cv_sizeof_long_long=0
10675 fi
10676 rm -fr conftest*
10677 fi
10678
10679 fi
10680 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10681 cat >> confdefs.h <<EOF
10682 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10683 EOF
10684
10685
10686 if test "$ac_cv_sizeof_long_long" != "0"; then
10687 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10688 fi
10689 ;;
10690 * )
10691 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10692 echo "configure:10693: checking size of long long" >&5
10693 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10694 echo $ac_n "(cached) $ac_c" 1>&6
10695 else
10696 if test "$cross_compiling" = yes; then
10697 ac_cv_sizeof_long_long=0
10698 else
10699 cat > conftest.$ac_ext <<EOF
10700 #line 10701 "configure"
10701 #include "confdefs.h"
10702 #include <stdio.h>
10703 #include <sys/types.h>
10704 main()
10705 {
10706 FILE *f=fopen("conftestval", "w");
10707 if (!f) exit(1);
10708 fprintf(f, "%d\n", sizeof(long long));
10709 exit(0);
10710 }
10711 EOF
10712 if { (eval echo configure:10713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10713 then
10714 ac_cv_sizeof_long_long=`cat conftestval`
10715 else
10716 echo "configure: failed program was:" >&5
10717 cat conftest.$ac_ext >&5
10718 rm -fr conftest*
10719 ac_cv_sizeof_long_long=0
10720 fi
10721 rm -fr conftest*
10722 fi
10723
10724 fi
10725 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10726 cat >> confdefs.h <<EOF
10727 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10728 EOF
10729
10730
10731 esac
10732
10733 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10734 echo "configure:10735: checking size of wchar_t" >&5
10735 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10736 echo $ac_n "(cached) $ac_c" 1>&6
10737 else
10738
10739 if test "$cross_compiling" = yes; then
10740
10741 case "${host}" in
10742 *-pc-msdosdjgpp )
10743 wx_cv_sizeof_wchar_t=0
10744 ;;
10745 * )
10746 wx_cv_sizeof_wchar_t=4
10747 ;;
10748 esac
10749
10750
10751 else
10752 cat > conftest.$ac_ext <<EOF
10753 #line 10754 "configure"
10754 #include "confdefs.h"
10755
10756 /* DJGPP only has fake wchar_t: */
10757 #ifdef __DJGPP__
10758 # error "fake wchar_t"
10759 #endif
10760 #ifdef HAVE_WCHAR_H
10761 # ifdef __CYGWIN__
10762 # include <stddef.h>
10763 # endif
10764 # include <wchar.h>
10765 #endif
10766 #ifdef HAVE_STDLIB_H
10767 # include <stdlib.h>
10768 #endif
10769 #include <stdio.h>
10770 int main()
10771 {
10772 FILE *f=fopen("conftestval", "w");
10773 if (!f) exit(1);
10774 fprintf(f, "%i", sizeof(wchar_t));
10775 exit(0);
10776 }
10777
10778 EOF
10779 if { (eval echo configure:10780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10780 then
10781 wx_cv_sizeof_wchar_t=`cat conftestval`
10782 else
10783 echo "configure: failed program was:" >&5
10784 cat conftest.$ac_ext >&5
10785 rm -fr conftest*
10786 wx_cv_sizeof_wchar_t=0
10787 fi
10788 rm -fr conftest*
10789 fi
10790
10791
10792 fi
10793
10794 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10795
10796 cat >> confdefs.h <<EOF
10797 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10798 EOF
10799
10800
10801 # Check whether --enable-largefile or --disable-largefile was given.
10802 if test "${enable_largefile+set}" = set; then
10803 enableval="$enable_largefile"
10804 :
10805 fi
10806
10807 if test "$enable_largefile" != no; then
10808 wx_largefile=no
10809
10810 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10811 echo "configure:10812: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10812 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10813 echo $ac_n "(cached) $ac_c" 1>&6
10814 else
10815
10816 cat > conftest.$ac_ext <<EOF
10817 #line 10818 "configure"
10818 #include "confdefs.h"
10819 #define _FILE_OFFSET_BITS 64
10820 #include <sys/types.h>
10821 int main() {
10822 typedef struct {
10823 unsigned int field: sizeof(off_t) == 8;
10824 } wxlf;
10825
10826 ; return 0; }
10827 EOF
10828 if { (eval echo configure:10829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10829 rm -rf conftest*
10830 ac_cv_sys_file_offset_bits=64
10831 else
10832 echo "configure: failed program was:" >&5
10833 cat conftest.$ac_ext >&5
10834 rm -rf conftest*
10835 ac_cv_sys_file_offset_bits=no
10836 fi
10837 rm -f conftest*
10838
10839
10840 fi
10841
10842 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10843
10844 if test "$ac_cv_sys_file_offset_bits" != no; then
10845 wx_largefile=yes
10846 cat >> confdefs.h <<EOF
10847 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10848 EOF
10849
10850 fi
10851
10852 if test "x$wx_largefile" != "xyes"; then
10853
10854 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10855 echo "configure:10856: checking for _LARGE_FILES value needed for large files" >&5
10856 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10857 echo $ac_n "(cached) $ac_c" 1>&6
10858 else
10859
10860 cat > conftest.$ac_ext <<EOF
10861 #line 10862 "configure"
10862 #include "confdefs.h"
10863 #define _LARGE_FILES 1
10864 #include <sys/types.h>
10865 int main() {
10866 typedef struct {
10867 unsigned int field: sizeof(off_t) == 8;
10868 } wxlf;
10869
10870 ; return 0; }
10871 EOF
10872 if { (eval echo configure:10873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10873 rm -rf conftest*
10874 ac_cv_sys_large_files=1
10875 else
10876 echo "configure: failed program was:" >&5
10877 cat conftest.$ac_ext >&5
10878 rm -rf conftest*
10879 ac_cv_sys_large_files=no
10880 fi
10881 rm -f conftest*
10882
10883
10884 fi
10885
10886 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10887
10888 if test "$ac_cv_sys_large_files" != no; then
10889 wx_largefile=yes
10890 cat >> confdefs.h <<EOF
10891 #define _LARGE_FILES $ac_cv_sys_large_files
10892 EOF
10893
10894 fi
10895
10896 fi
10897
10898 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10899 echo "configure:10900: checking if large file support is available" >&5
10900 if test "x$wx_largefile" = "xyes"; then
10901 cat >> confdefs.h <<\EOF
10902 #define HAVE_LARGEFILE_SUPPORT 1
10903 EOF
10904
10905 fi
10906 echo "$ac_t""$wx_largefile" 1>&6
10907 fi
10908
10909
10910 if test "x$wx_largefile" = "xyes"; then
10911 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10912 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10913 else
10914 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10915 fi
10916 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10917 fi
10918
10919 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10920 echo "configure:10921: checking whether byte ordering is bigendian" >&5
10921 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10922 echo $ac_n "(cached) $ac_c" 1>&6
10923 else
10924 ac_cv_c_bigendian=unknown
10925 # See if sys/param.h defines the BYTE_ORDER macro.
10926 cat > conftest.$ac_ext <<EOF
10927 #line 10928 "configure"
10928 #include "confdefs.h"
10929 #include <sys/types.h>
10930 #include <sys/param.h>
10931 int main() {
10932
10933 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10934 bogus endian macros
10935 #endif
10936 ; return 0; }
10937 EOF
10938 if { (eval echo configure:10939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10939 rm -rf conftest*
10940 # It does; now see whether it defined to BIG_ENDIAN or not.
10941 cat > conftest.$ac_ext <<EOF
10942 #line 10943 "configure"
10943 #include "confdefs.h"
10944 #include <sys/types.h>
10945 #include <sys/param.h>
10946 int main() {
10947
10948 #if BYTE_ORDER != BIG_ENDIAN
10949 not big endian
10950 #endif
10951 ; return 0; }
10952 EOF
10953 if { (eval echo configure:10954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10954 rm -rf conftest*
10955 ac_cv_c_bigendian=yes
10956 else
10957 echo "configure: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10959 rm -rf conftest*
10960 ac_cv_c_bigendian=no
10961 fi
10962 rm -f conftest*
10963 else
10964 echo "configure: failed program was:" >&5
10965 cat conftest.$ac_ext >&5
10966 fi
10967 rm -f conftest*
10968 if test $ac_cv_c_bigendian = unknown; then
10969 if test "$cross_compiling" = yes; then
10970 ac_cv_c_bigendian=unknown
10971 else
10972 cat > conftest.$ac_ext <<EOF
10973 #line 10974 "configure"
10974 #include "confdefs.h"
10975 main () {
10976 /* Are we little or big endian? From Harbison&Steele. */
10977 union
10978 {
10979 long l;
10980 char c[sizeof (long)];
10981 } u;
10982 u.l = 1;
10983 exit (u.c[sizeof (long) - 1] == 1);
10984 }
10985 EOF
10986 if { (eval echo configure:10987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10987 then
10988 ac_cv_c_bigendian=no
10989 else
10990 echo "configure: failed program was:" >&5
10991 cat conftest.$ac_ext >&5
10992 rm -fr conftest*
10993 ac_cv_c_bigendian=yes
10994 fi
10995 rm -fr conftest*
10996 fi
10997
10998 fi
10999 fi
11000
11001 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11002 if test $ac_cv_c_bigendian = unknown; then
11003 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
11004 fi
11005 if test $ac_cv_c_bigendian = yes; then
11006 cat >> confdefs.h <<\EOF
11007 #define WORDS_BIGENDIAN 1
11008 EOF
11009
11010 fi
11011
11012
11013 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11014 echo "configure:11015: checking how to run the C++ preprocessor" >&5
11015 if test -z "$CXXCPP"; then
11016 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11017 echo $ac_n "(cached) $ac_c" 1>&6
11018 else
11019 ac_ext=C
11020 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11021 ac_cpp='$CXXCPP $CPPFLAGS'
11022 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11023 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11024 cross_compiling=$ac_cv_prog_cxx_cross
11025 CXXCPP="${CXX-g++} -E"
11026 cat > conftest.$ac_ext <<EOF
11027 #line 11028 "configure"
11028 #include "confdefs.h"
11029 #include <stdlib.h>
11030 EOF
11031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11032 { (eval echo configure:11033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11034 if test -z "$ac_err"; then
11035 :
11036 else
11037 echo "$ac_err" >&5
11038 echo "configure: failed program was:" >&5
11039 cat conftest.$ac_ext >&5
11040 rm -rf conftest*
11041 CXXCPP=/lib/cpp
11042 fi
11043 rm -f conftest*
11044 ac_cv_prog_CXXCPP="$CXXCPP"
11045 ac_ext=C
11046 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11047 ac_cpp='$CXXCPP $CPPFLAGS'
11048 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11049 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11050 cross_compiling=$ac_cv_prog_cxx_cross
11051 fi
11052 fi
11053 CXXCPP="$ac_cv_prog_CXXCPP"
11054 echo "$ac_t""$CXXCPP" 1>&6
11055
11056
11057 if test "$cross_compiling" = "yes"; then
11058 cat >> confdefs.h <<\EOF
11059 #define wxUSE_IOSTREAMH 1
11060 EOF
11061
11062 else
11063
11064 ac_ext=C
11065 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11066 ac_cpp='$CXXCPP $CPPFLAGS'
11067 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11068 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11069 cross_compiling=$ac_cv_prog_cxx_cross
11070
11071
11072 for ac_hdr in iostream
11073 do
11074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11076 echo "configure:11077: checking for $ac_hdr" >&5
11077 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11079 else
11080 cat > conftest.$ac_ext <<EOF
11081 #line 11082 "configure"
11082 #include "confdefs.h"
11083 #include <$ac_hdr>
11084 EOF
11085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11086 { (eval echo configure:11087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11088 if test -z "$ac_err"; then
11089 rm -rf conftest*
11090 eval "ac_cv_header_$ac_safe=yes"
11091 else
11092 echo "$ac_err" >&5
11093 echo "configure: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11095 rm -rf conftest*
11096 eval "ac_cv_header_$ac_safe=no"
11097 fi
11098 rm -f conftest*
11099 fi
11100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11101 echo "$ac_t""yes" 1>&6
11102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11103 cat >> confdefs.h <<EOF
11104 #define $ac_tr_hdr 1
11105 EOF
11106
11107 else
11108 echo "$ac_t""no" 1>&6
11109 fi
11110 done
11111
11112
11113 if test "$ac_cv_header_iostream" = "yes" ; then
11114 :
11115 else
11116 cat >> confdefs.h <<\EOF
11117 #define wxUSE_IOSTREAMH 1
11118 EOF
11119
11120 fi
11121
11122 ac_ext=c
11123 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11124 ac_cpp='$CPP $CPPFLAGS'
11125 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11126 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11127 cross_compiling=$ac_cv_prog_cc_cross
11128
11129 fi
11130
11131
11132
11133 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11134 echo "configure:11135: checking if C++ compiler supports bool" >&5
11135 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11136 echo $ac_n "(cached) $ac_c" 1>&6
11137 else
11138
11139
11140 ac_ext=C
11141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11142 ac_cpp='$CXXCPP $CPPFLAGS'
11143 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11144 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11145 cross_compiling=$ac_cv_prog_cxx_cross
11146
11147
11148 cat > conftest.$ac_ext <<EOF
11149 #line 11150 "configure"
11150 #include "confdefs.h"
11151
11152
11153 int main() {
11154
11155 bool b = true;
11156
11157 return 0;
11158
11159 ; return 0; }
11160 EOF
11161 if { (eval echo configure:11162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11162 rm -rf conftest*
11163
11164 wx_cv_cpp_bool=yes
11165
11166 else
11167 echo "configure: failed program was:" >&5
11168 cat conftest.$ac_ext >&5
11169 rm -rf conftest*
11170
11171 wx_cv_cpp_bool=no
11172
11173
11174 fi
11175 rm -f conftest*
11176
11177 ac_ext=c
11178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11179 ac_cpp='$CPP $CPPFLAGS'
11180 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11181 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11182 cross_compiling=$ac_cv_prog_cc_cross
11183
11184
11185 fi
11186
11187 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11188
11189 if test "$wx_cv_cpp_bool" = "yes"; then
11190 cat >> confdefs.h <<\EOF
11191 #define HAVE_BOOL 1
11192 EOF
11193
11194 fi
11195
11196
11197
11198 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11199 echo "configure:11200: checking if C++ compiler supports the explicit keyword" >&5
11200 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11201 echo $ac_n "(cached) $ac_c" 1>&6
11202 else
11203
11204
11205 ac_ext=C
11206 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11207 ac_cpp='$CXXCPP $CPPFLAGS'
11208 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11209 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11210 cross_compiling=$ac_cv_prog_cxx_cross
11211
11212
11213 cat > conftest.$ac_ext <<EOF
11214 #line 11215 "configure"
11215 #include "confdefs.h"
11216
11217 class Foo { public: explicit Foo(int) {} };
11218
11219 int main() {
11220
11221 return 0;
11222
11223 ; return 0; }
11224 EOF
11225 if { (eval echo configure:11226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11226 rm -rf conftest*
11227
11228 cat > conftest.$ac_ext <<EOF
11229 #line 11230 "configure"
11230 #include "confdefs.h"
11231
11232 class Foo { public: explicit Foo(int) {} };
11233 static void TakeFoo(const Foo& foo) { }
11234
11235 int main() {
11236
11237 TakeFoo(17);
11238 return 0;
11239
11240 ; return 0; }
11241 EOF
11242 if { (eval echo configure:11243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11243 rm -rf conftest*
11244 wx_cv_explicit=no
11245 else
11246 echo "configure: failed program was:" >&5
11247 cat conftest.$ac_ext >&5
11248 rm -rf conftest*
11249 wx_cv_explicit=yes
11250
11251 fi
11252 rm -f conftest*
11253
11254 else
11255 echo "configure: failed program was:" >&5
11256 cat conftest.$ac_ext >&5
11257 rm -rf conftest*
11258 wx_cv_explicit=no
11259
11260 fi
11261 rm -f conftest*
11262
11263 ac_ext=c
11264 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11265 ac_cpp='$CPP $CPPFLAGS'
11266 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11267 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11268 cross_compiling=$ac_cv_prog_cc_cross
11269
11270
11271 fi
11272
11273 echo "$ac_t""$wx_cv_explicit" 1>&6
11274
11275 if test "$wx_cv_explicit" = "yes"; then
11276 cat >> confdefs.h <<\EOF
11277 #define HAVE_EXPLICIT 1
11278 EOF
11279
11280 fi
11281
11282
11283 echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
11284 echo "configure:11285: checking whether the compiler supports const_cast<>" >&5
11285 if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11286 echo $ac_n "(cached) $ac_c" 1>&6
11287 else
11288
11289 ac_ext=C
11290 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11291 ac_cpp='$CXXCPP $CPPFLAGS'
11292 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11293 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11294 cross_compiling=$ac_cv_prog_cxx_cross
11295
11296 cat > conftest.$ac_ext <<EOF
11297 #line 11298 "configure"
11298 #include "confdefs.h"
11299
11300 int main() {
11301 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11302 ; return 0; }
11303 EOF
11304 if { (eval echo configure:11305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11305 rm -rf conftest*
11306 ac_cv_cxx_const_cast=yes
11307 else
11308 echo "configure: failed program was:" >&5
11309 cat conftest.$ac_ext >&5
11310 rm -rf conftest*
11311 ac_cv_cxx_const_cast=no
11312 fi
11313 rm -f conftest*
11314 ac_ext=c
11315 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11316 ac_cpp='$CPP $CPPFLAGS'
11317 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11318 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11319 cross_compiling=$ac_cv_prog_cc_cross
11320
11321
11322 fi
11323
11324 echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11325 if test "$ac_cv_cxx_const_cast" = yes; then
11326 cat >> confdefs.h <<\EOF
11327 #define HAVE_CONST_CAST
11328 EOF
11329
11330 fi
11331
11332
11333
11334 SEARCH_INCLUDE="\
11335 /usr/local/include \
11336 \
11337 /usr/Motif-1.2/include \
11338 /usr/Motif-2.1/include \
11339 \
11340 /usr/include/Motif1.2 \
11341 /opt/xpm/include/X11 \
11342 /opt/GBxpm/include/ \
11343 /opt/GBxpm/X11/include/ \
11344 \
11345 /usr/Motif1.2/include \
11346 /usr/dt/include \
11347 /usr/openwin/include \
11348 \
11349 /usr/include/Xm \
11350 \
11351 /usr/X11R6/include \
11352 /usr/X11R6.4/include \
11353 /usr/X11R5/include \
11354 /usr/X11R4/include \
11355 \
11356 /usr/include/X11R6 \
11357 /usr/include/X11R5 \
11358 /usr/include/X11R4 \
11359 \
11360 /usr/local/X11R6/include \
11361 /usr/local/X11R5/include \
11362 /usr/local/X11R4/include \
11363 \
11364 /usr/local/include/X11R6 \
11365 /usr/local/include/X11R5 \
11366 /usr/local/include/X11R4 \
11367 \
11368 /usr/X11/include \
11369 /usr/include/X11 \
11370 /usr/local/X11/include \
11371 /usr/local/include/X11 \
11372 \
11373 /usr/X386/include \
11374 /usr/x386/include \
11375 /usr/XFree86/include/X11 \
11376 \
11377 X:/XFree86/include \
11378 X:/XFree86/include/X11 \
11379 \
11380 /usr/include/gtk \
11381 /usr/local/include/gtk \
11382 /usr/include/glib \
11383 /usr/local/include/glib \
11384 \
11385 /usr/include/qt \
11386 /usr/local/include/qt \
11387 \
11388 /usr/include/windows \
11389 /usr/include/wine \
11390 /usr/local/include/wine \
11391 \
11392 /usr/unsupported/include \
11393 /usr/athena/include \
11394 /usr/local/x11r5/include \
11395 /usr/lpp/Xamples/include \
11396 \
11397 /usr/openwin/share/include"
11398
11399 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11400
11401
11402 cat > confcache <<\EOF
11403 # This file is a shell script that caches the results of configure
11404 # tests run on this system so they can be shared between configure
11405 # scripts and configure runs. It is not useful on other systems.
11406 # If it contains results you don't want to keep, you may remove or edit it.
11407 #
11408 # By default, configure uses ./config.cache as the cache file,
11409 # creating it if it does not exist already. You can give configure
11410 # the --cache-file=FILE option to use a different cache file; that is
11411 # what configure does when it calls configure scripts in
11412 # subdirectories, so they share the cache.
11413 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11414 # config.status only pays attention to the cache file if you give it the
11415 # --recheck option to rerun configure.
11416 #
11417 EOF
11418 # The following way of writing the cache mishandles newlines in values,
11419 # but we know of no workaround that is simple, portable, and efficient.
11420 # So, don't put newlines in cache variables' values.
11421 # Ultrix sh set writes to stderr and can't be redirected directly,
11422 # and sets the high bit in the cache file unless we assign to the vars.
11423 (set) 2>&1 |
11424 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11425 *ac_space=\ *)
11426 # `set' does not quote correctly, so add quotes (double-quote substitution
11427 # turns \\\\ into \\, and sed turns \\ into \).
11428 sed -n \
11429 -e "s/'/'\\\\''/g" \
11430 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11431 ;;
11432 *)
11433 # `set' quotes correctly as required by POSIX, so do not add quotes.
11434 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11435 ;;
11436 esac >> confcache
11437 if cmp -s $cache_file confcache; then
11438 :
11439 else
11440 if test -w $cache_file; then
11441 echo "updating cache $cache_file"
11442 cat confcache > $cache_file
11443 else
11444 echo "not updating unwritable cache $cache_file"
11445 fi
11446 fi
11447 rm -f confcache
11448
11449
11450 if test "$USE_LINUX" = 1; then
11451 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11452 echo "configure:11453: checking for glibc 2.1 or later" >&5
11453 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11454 echo $ac_n "(cached) $ac_c" 1>&6
11455 else
11456
11457 cat > conftest.$ac_ext <<EOF
11458 #line 11459 "configure"
11459 #include "confdefs.h"
11460 #include <features.h>
11461 int main() {
11462
11463 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11464 #error not glibc2.1
11465 #endif
11466
11467 ; return 0; }
11468 EOF
11469 if { (eval echo configure:11470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11470 rm -rf conftest*
11471
11472 wx_cv_lib_glibc21=yes
11473
11474 else
11475 echo "configure: failed program was:" >&5
11476 cat conftest.$ac_ext >&5
11477 rm -rf conftest*
11478
11479 wx_cv_lib_glibc21=no
11480
11481
11482 fi
11483 rm -f conftest*
11484
11485 fi
11486
11487 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11488 if test "$wx_cv_lib_glibc21" = "yes"; then
11489 cat >> confdefs.h <<\EOF
11490 #define wxHAVE_GLIBC2 1
11491 EOF
11492
11493 fi
11494 fi
11495
11496 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11497 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11498 cat >> confdefs.h <<\EOF
11499 #define _GNU_SOURCE 1
11500 EOF
11501
11502 fi
11503 fi
11504
11505
11506
11507 REGEX_INCLUDE=
11508 if test "$wxUSE_REGEX" != "no"; then
11509 cat >> confdefs.h <<\EOF
11510 #define wxUSE_REGEX 1
11511 EOF
11512
11513
11514 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11515 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11516 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11517 echo "configure:11518: checking for regex.h" >&5
11518 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11519 echo $ac_n "(cached) $ac_c" 1>&6
11520 else
11521 cat > conftest.$ac_ext <<EOF
11522 #line 11523 "configure"
11523 #include "confdefs.h"
11524 #include <regex.h>
11525 EOF
11526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11527 { (eval echo configure:11528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11529 if test -z "$ac_err"; then
11530 rm -rf conftest*
11531 eval "ac_cv_header_$ac_safe=yes"
11532 else
11533 echo "$ac_err" >&5
11534 echo "configure: failed program was:" >&5
11535 cat conftest.$ac_ext >&5
11536 rm -rf conftest*
11537 eval "ac_cv_header_$ac_safe=no"
11538 fi
11539 rm -f conftest*
11540 fi
11541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11542 echo "$ac_t""yes" 1>&6
11543 for ac_func in regcomp
11544 do
11545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11546 echo "configure:11547: checking for $ac_func" >&5
11547 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11548 echo $ac_n "(cached) $ac_c" 1>&6
11549 else
11550 cat > conftest.$ac_ext <<EOF
11551 #line 11552 "configure"
11552 #include "confdefs.h"
11553 /* System header to define __stub macros and hopefully few prototypes,
11554 which can conflict with char $ac_func(); below. */
11555 #include <assert.h>
11556 /* Override any gcc2 internal prototype to avoid an error. */
11557 /* We use char because int might match the return type of a gcc2
11558 builtin and then its argument prototype would still apply. */
11559 char $ac_func();
11560
11561 int main() {
11562
11563 /* The GNU C library defines this for functions which it implements
11564 to always fail with ENOSYS. Some functions are actually named
11565 something starting with __ and the normal name is an alias. */
11566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11567 choke me
11568 #else
11569 $ac_func();
11570 #endif
11571
11572 ; return 0; }
11573 EOF
11574 if { (eval echo configure:11575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11575 rm -rf conftest*
11576 eval "ac_cv_func_$ac_func=yes"
11577 else
11578 echo "configure: failed program was:" >&5
11579 cat conftest.$ac_ext >&5
11580 rm -rf conftest*
11581 eval "ac_cv_func_$ac_func=no"
11582 fi
11583 rm -f conftest*
11584 fi
11585
11586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11587 echo "$ac_t""yes" 1>&6
11588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11589 cat >> confdefs.h <<EOF
11590 #define $ac_tr_func 1
11591 EOF
11592
11593 else
11594 echo "$ac_t""no" 1>&6
11595 fi
11596 done
11597
11598 else
11599 echo "$ac_t""no" 1>&6
11600 fi
11601
11602
11603 if test "x$ac_cv_func_regcomp" != "xyes"; then
11604 if test "$wxUSE_REGEX" = "sys" ; then
11605 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11606 else
11607 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11608 wxUSE_REGEX=builtin
11609 fi
11610 else
11611 wxUSE_REGEX=sys
11612 fi
11613 fi
11614
11615 if test "$wxUSE_REGEX" = "builtin" ; then
11616 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11617 fi
11618 fi
11619
11620
11621 ZLIB_INCLUDE=
11622 ZLIB_LINK=
11623 if test "$wxUSE_ZLIB" != "no" ; then
11624 cat >> confdefs.h <<\EOF
11625 #define wxUSE_ZLIB 1
11626 EOF
11627
11628
11629 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11630 if test "$USE_DARWIN" = 1; then
11631 system_zlib_h_ok="yes"
11632 else
11633 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11634 echo "configure:11635: checking for zlib.h >= 1.1.4" >&5
11635 if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11636 echo $ac_n "(cached) $ac_c" 1>&6
11637 else
11638 if test "$cross_compiling" = yes; then
11639 unset ac_cv_header_zlib_h
11640
11641 else
11642 cat > conftest.$ac_ext <<EOF
11643 #line 11644 "configure"
11644 #include "confdefs.h"
11645
11646 #include <zlib.h>
11647 #include <stdio.h>
11648
11649 int main()
11650 {
11651 FILE *f=fopen("conftestval", "w");
11652 if (!f) exit(1);
11653 fprintf(f, "%s",
11654 ZLIB_VERSION[0] == '1' &&
11655 (ZLIB_VERSION[2] > '1' ||
11656 (ZLIB_VERSION[2] == '1' &&
11657 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11658 exit(0);
11659 }
11660
11661 EOF
11662 if { (eval echo configure:11663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11663 then
11664 ac_cv_header_zlib_h=`cat conftestval`
11665 else
11666 echo "configure: failed program was:" >&5
11667 cat conftest.$ac_ext >&5
11668 rm -fr conftest*
11669 ac_cv_header_zlib_h=no
11670 fi
11671 rm -fr conftest*
11672 fi
11673
11674
11675 fi
11676
11677 echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11678 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11679 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11680 echo "configure:11681: checking for zlib.h" >&5
11681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11682 echo $ac_n "(cached) $ac_c" 1>&6
11683 else
11684 cat > conftest.$ac_ext <<EOF
11685 #line 11686 "configure"
11686 #include "confdefs.h"
11687 #include <zlib.h>
11688 EOF
11689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11690 { (eval echo configure:11691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11692 if test -z "$ac_err"; then
11693 rm -rf conftest*
11694 eval "ac_cv_header_$ac_safe=yes"
11695 else
11696 echo "$ac_err" >&5
11697 echo "configure: failed program was:" >&5
11698 cat conftest.$ac_ext >&5
11699 rm -rf conftest*
11700 eval "ac_cv_header_$ac_safe=no"
11701 fi
11702 rm -f conftest*
11703 fi
11704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11705 echo "$ac_t""yes" 1>&6
11706 :
11707 else
11708 echo "$ac_t""no" 1>&6
11709 fi
11710
11711
11712 system_zlib_h_ok=$ac_cv_header_zlib_h
11713 fi
11714
11715 if test "$system_zlib_h_ok" = "yes"; then
11716 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11717 echo "configure:11718: checking for deflate in -lz" >&5
11718 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11720 echo $ac_n "(cached) $ac_c" 1>&6
11721 else
11722 ac_save_LIBS="$LIBS"
11723 LIBS="-lz $LIBS"
11724 cat > conftest.$ac_ext <<EOF
11725 #line 11726 "configure"
11726 #include "confdefs.h"
11727 /* Override any gcc2 internal prototype to avoid an error. */
11728 /* We use char because int might match the return type of a gcc2
11729 builtin and then its argument prototype would still apply. */
11730 char deflate();
11731
11732 int main() {
11733 deflate()
11734 ; return 0; }
11735 EOF
11736 if { (eval echo configure:11737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11737 rm -rf conftest*
11738 eval "ac_cv_lib_$ac_lib_var=yes"
11739 else
11740 echo "configure: failed program was:" >&5
11741 cat conftest.$ac_ext >&5
11742 rm -rf conftest*
11743 eval "ac_cv_lib_$ac_lib_var=no"
11744 fi
11745 rm -f conftest*
11746 LIBS="$ac_save_LIBS"
11747
11748 fi
11749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11750 echo "$ac_t""yes" 1>&6
11751 ZLIB_LINK=" -lz"
11752 else
11753 echo "$ac_t""no" 1>&6
11754 fi
11755
11756 fi
11757
11758 if test "x$ZLIB_LINK" = "x" ; then
11759 if test "$wxUSE_ZLIB" = "sys" ; then
11760 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11761 else
11762 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11763 wxUSE_ZLIB=builtin
11764 fi
11765 else
11766 wxUSE_ZLIB=sys
11767 fi
11768 fi
11769
11770 if test "$wxUSE_ZLIB" = "builtin" ; then
11771 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11772 fi
11773 fi
11774
11775
11776 PNG_INCLUDE=
11777 PNG_LINK=
11778 if test "$wxUSE_LIBPNG" != "no" ; then
11779 cat >> confdefs.h <<\EOF
11780 #define wxUSE_LIBPNG 1
11781 EOF
11782
11783
11784 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11785 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11786 wxUSE_LIBPNG=sys
11787 fi
11788
11789 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11790 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11791 wxUSE_LIBPNG=builtin
11792 fi
11793
11794 if test "$wxUSE_MGL" != 1 ; then
11795 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11796 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11797 echo "configure:11798: checking for png.h > 0.90" >&5
11798 if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11799 echo $ac_n "(cached) $ac_c" 1>&6
11800 else
11801 if test "$cross_compiling" = yes; then
11802 unset ac_cv_header_png_h
11803
11804 else
11805 cat > conftest.$ac_ext <<EOF
11806 #line 11807 "configure"
11807 #include "confdefs.h"
11808
11809 #include <png.h>
11810 #include <stdio.h>
11811
11812 int main()
11813 {
11814 FILE *f=fopen("conftestval", "w");
11815 if (!f) exit(1);
11816 fprintf(f, "%s",
11817 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11818 exit(0);
11819 }
11820
11821 EOF
11822 if { (eval echo configure:11823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11823 then
11824 ac_cv_header_png_h=`cat conftestval`
11825 else
11826 echo "configure: failed program was:" >&5
11827 cat conftest.$ac_ext >&5
11828 rm -fr conftest*
11829 ac_cv_header_png_h=no
11830 fi
11831 rm -fr conftest*
11832 fi
11833
11834
11835 fi
11836
11837 echo "$ac_t""$ac_cv_header_png_h" 1>&6
11838 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11839 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11840 echo "configure:11841: checking for png.h" >&5
11841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11842 echo $ac_n "(cached) $ac_c" 1>&6
11843 else
11844 cat > conftest.$ac_ext <<EOF
11845 #line 11846 "configure"
11846 #include "confdefs.h"
11847 #include <png.h>
11848 EOF
11849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11850 { (eval echo configure:11851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11852 if test -z "$ac_err"; then
11853 rm -rf conftest*
11854 eval "ac_cv_header_$ac_safe=yes"
11855 else
11856 echo "$ac_err" >&5
11857 echo "configure: failed program was:" >&5
11858 cat conftest.$ac_ext >&5
11859 rm -rf conftest*
11860 eval "ac_cv_header_$ac_safe=no"
11861 fi
11862 rm -f conftest*
11863 fi
11864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11865 echo "$ac_t""yes" 1>&6
11866 :
11867 else
11868 echo "$ac_t""no" 1>&6
11869 fi
11870
11871
11872 if test "$ac_cv_header_png_h" = "yes"; then
11873 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11874 echo "configure:11875: checking for png_check_sig in -lpng" >&5
11875 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11877 echo $ac_n "(cached) $ac_c" 1>&6
11878 else
11879 ac_save_LIBS="$LIBS"
11880 LIBS="-lpng -lz -lm $LIBS"
11881 cat > conftest.$ac_ext <<EOF
11882 #line 11883 "configure"
11883 #include "confdefs.h"
11884 /* Override any gcc2 internal prototype to avoid an error. */
11885 /* We use char because int might match the return type of a gcc2
11886 builtin and then its argument prototype would still apply. */
11887 char png_check_sig();
11888
11889 int main() {
11890 png_check_sig()
11891 ; return 0; }
11892 EOF
11893 if { (eval echo configure:11894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11894 rm -rf conftest*
11895 eval "ac_cv_lib_$ac_lib_var=yes"
11896 else
11897 echo "configure: failed program was:" >&5
11898 cat conftest.$ac_ext >&5
11899 rm -rf conftest*
11900 eval "ac_cv_lib_$ac_lib_var=no"
11901 fi
11902 rm -f conftest*
11903 LIBS="$ac_save_LIBS"
11904
11905 fi
11906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11907 echo "$ac_t""yes" 1>&6
11908 PNG_LINK=" -lpng"
11909 else
11910 echo "$ac_t""no" 1>&6
11911 fi
11912
11913 fi
11914
11915 if test "x$PNG_LINK" = "x" ; then
11916 if test "$wxUSE_LIBPNG" = "sys" ; then
11917 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11918 else
11919 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11920 wxUSE_LIBPNG=builtin
11921 fi
11922 else
11923 wxUSE_LIBPNG=sys
11924 fi
11925 fi
11926 fi
11927
11928 if test "$wxUSE_LIBPNG" = "builtin" ; then
11929 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11930 fi
11931
11932 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11933 fi
11934
11935
11936 JPEG_INCLUDE=
11937 JPEG_LINK=
11938 if test "$wxUSE_LIBJPEG" != "no" ; then
11939 cat >> confdefs.h <<\EOF
11940 #define wxUSE_LIBJPEG 1
11941 EOF
11942
11943
11944 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11945 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11946 wxUSE_LIBJPEG=sys
11947 fi
11948
11949 if test "$wxUSE_MGL" != 1 ; then
11950 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11951 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11952 echo "configure:11953: checking for jpeglib.h" >&5
11953 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11954 echo $ac_n "(cached) $ac_c" 1>&6
11955 else
11956 cat > conftest.$ac_ext <<EOF
11957 #line 11958 "configure"
11958 #include "confdefs.h"
11959
11960 #undef HAVE_STDLIB_H
11961 #include <stdio.h>
11962 #include <jpeglib.h>
11963
11964 int main() {
11965
11966
11967 ; return 0; }
11968 EOF
11969 if { (eval echo configure:11970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11970 rm -rf conftest*
11971 ac_cv_header_jpeglib_h=yes
11972 else
11973 echo "configure: failed program was:" >&5
11974 cat conftest.$ac_ext >&5
11975 rm -rf conftest*
11976 ac_cv_header_jpeglib_h=no
11977
11978 fi
11979 rm -f conftest*
11980
11981 fi
11982
11983 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11984
11985 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11986 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11987 echo "configure:11988: checking for jpeg_read_header in -ljpeg" >&5
11988 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11990 echo $ac_n "(cached) $ac_c" 1>&6
11991 else
11992 ac_save_LIBS="$LIBS"
11993 LIBS="-ljpeg $LIBS"
11994 cat > conftest.$ac_ext <<EOF
11995 #line 11996 "configure"
11996 #include "confdefs.h"
11997 /* Override any gcc2 internal prototype to avoid an error. */
11998 /* We use char because int might match the return type of a gcc2
11999 builtin and then its argument prototype would still apply. */
12000 char jpeg_read_header();
12001
12002 int main() {
12003 jpeg_read_header()
12004 ; return 0; }
12005 EOF
12006 if { (eval echo configure:12007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12007 rm -rf conftest*
12008 eval "ac_cv_lib_$ac_lib_var=yes"
12009 else
12010 echo "configure: failed program was:" >&5
12011 cat conftest.$ac_ext >&5
12012 rm -rf conftest*
12013 eval "ac_cv_lib_$ac_lib_var=no"
12014 fi
12015 rm -f conftest*
12016 LIBS="$ac_save_LIBS"
12017
12018 fi
12019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12020 echo "$ac_t""yes" 1>&6
12021 JPEG_LINK=" -ljpeg"
12022 else
12023 echo "$ac_t""no" 1>&6
12024 fi
12025
12026 fi
12027
12028 if test "x$JPEG_LINK" = "x" ; then
12029 if test "$wxUSE_LIBJPEG" = "sys" ; then
12030 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
12031 else
12032 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
12033 wxUSE_LIBJPEG=builtin
12034 fi
12035 else
12036 wxUSE_LIBJPEG=sys
12037 fi
12038 fi
12039 fi
12040
12041 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12042 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12043 fi
12044 fi
12045
12046
12047 TIFF_INCLUDE=
12048 TIFF_LINK=
12049 TIFF_PREREQ_LINKS=-lm
12050 if test "$wxUSE_LIBTIFF" != "no" ; then
12051 cat >> confdefs.h <<\EOF
12052 #define wxUSE_LIBTIFF 1
12053 EOF
12054
12055
12056 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12057 if test "$wxUSE_LIBJPEG" = "sys"; then
12058 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12059 fi
12060 if test "$wxUSE_ZLIB" = "sys"; then
12061 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12062 fi
12063 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12064 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12065 echo "configure:12066: checking for tiffio.h" >&5
12066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12067 echo $ac_n "(cached) $ac_c" 1>&6
12068 else
12069 cat > conftest.$ac_ext <<EOF
12070 #line 12071 "configure"
12071 #include "confdefs.h"
12072 #include <tiffio.h>
12073 EOF
12074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12075 { (eval echo configure:12076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12077 if test -z "$ac_err"; then
12078 rm -rf conftest*
12079 eval "ac_cv_header_$ac_safe=yes"
12080 else
12081 echo "$ac_err" >&5
12082 echo "configure: failed program was:" >&5
12083 cat conftest.$ac_ext >&5
12084 rm -rf conftest*
12085 eval "ac_cv_header_$ac_safe=no"
12086 fi
12087 rm -f conftest*
12088 fi
12089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12090 echo "$ac_t""yes" 1>&6
12091 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12092 echo "configure:12093: checking for TIFFError in -ltiff" >&5
12093 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12095 echo $ac_n "(cached) $ac_c" 1>&6
12096 else
12097 ac_save_LIBS="$LIBS"
12098 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12099 cat > conftest.$ac_ext <<EOF
12100 #line 12101 "configure"
12101 #include "confdefs.h"
12102 /* Override any gcc2 internal prototype to avoid an error. */
12103 /* We use char because int might match the return type of a gcc2
12104 builtin and then its argument prototype would still apply. */
12105 char TIFFError();
12106
12107 int main() {
12108 TIFFError()
12109 ; return 0; }
12110 EOF
12111 if { (eval echo configure:12112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12112 rm -rf conftest*
12113 eval "ac_cv_lib_$ac_lib_var=yes"
12114 else
12115 echo "configure: failed program was:" >&5
12116 cat conftest.$ac_ext >&5
12117 rm -rf conftest*
12118 eval "ac_cv_lib_$ac_lib_var=no"
12119 fi
12120 rm -f conftest*
12121 LIBS="$ac_save_LIBS"
12122
12123 fi
12124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12125 echo "$ac_t""yes" 1>&6
12126 TIFF_LINK=" -ltiff"
12127 else
12128 echo "$ac_t""no" 1>&6
12129 fi
12130
12131
12132 else
12133 echo "$ac_t""no" 1>&6
12134 fi
12135
12136
12137 if test "x$TIFF_LINK" = "x" ; then
12138 if test "$wxUSE_LIBTIFF" = "sys" ; then
12139 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12140 else
12141 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12142 wxUSE_LIBTIFF=builtin
12143 fi
12144 else
12145 wxUSE_LIBTIFF=sys
12146 fi
12147 fi
12148
12149 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12150 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12151 fi
12152 fi
12153
12154
12155 AFMINSTALL=
12156 WIN32INSTALL=
12157
12158 TOOLKIT=
12159 TOOLKIT_INCLUDE=
12160 WIDGET_SET=
12161
12162 if test "$USE_WIN32" = 1 ; then
12163 for ac_hdr in w32api.h
12164 do
12165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12167 echo "configure:12168: checking for $ac_hdr" >&5
12168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12169 echo $ac_n "(cached) $ac_c" 1>&6
12170 else
12171 cat > conftest.$ac_ext <<EOF
12172 #line 12173 "configure"
12173 #include "confdefs.h"
12174 #include <$ac_hdr>
12175 EOF
12176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12177 { (eval echo configure:12178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12179 if test -z "$ac_err"; then
12180 rm -rf conftest*
12181 eval "ac_cv_header_$ac_safe=yes"
12182 else
12183 echo "$ac_err" >&5
12184 echo "configure: failed program was:" >&5
12185 cat conftest.$ac_ext >&5
12186 rm -rf conftest*
12187 eval "ac_cv_header_$ac_safe=no"
12188 fi
12189 rm -f conftest*
12190 fi
12191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12192 echo "$ac_t""yes" 1>&6
12193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12194 cat >> confdefs.h <<EOF
12195 #define $ac_tr_hdr 1
12196 EOF
12197
12198 else
12199 echo "$ac_t""no" 1>&6
12200 fi
12201 done
12202
12203 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12204 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12205 echo "configure:12206: checking for windows.h" >&5
12206 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12207 echo $ac_n "(cached) $ac_c" 1>&6
12208 else
12209 cat > conftest.$ac_ext <<EOF
12210 #line 12211 "configure"
12211 #include "confdefs.h"
12212 #include <windows.h>
12213 EOF
12214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12215 { (eval echo configure:12216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12217 if test -z "$ac_err"; then
12218 rm -rf conftest*
12219 eval "ac_cv_header_$ac_safe=yes"
12220 else
12221 echo "$ac_err" >&5
12222 echo "configure: failed program was:" >&5
12223 cat conftest.$ac_ext >&5
12224 rm -rf conftest*
12225 eval "ac_cv_header_$ac_safe=no"
12226 fi
12227 rm -f conftest*
12228 fi
12229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12230 echo "$ac_t""yes" 1>&6
12231 :
12232 else
12233 echo "$ac_t""no" 1>&6
12234
12235 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12236
12237 fi
12238
12239
12240 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12241 echo "configure:12242: checking if w32api has good enough MSIE support" >&5
12242 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12243 echo $ac_n "(cached) $ac_c" 1>&6
12244 else
12245
12246 cat > conftest.$ac_ext <<EOF
12247 #line 12248 "configure"
12248 #include "confdefs.h"
12249 #include <w32api.h>
12250 int main() {
12251
12252 #define wxCHECK_W32API_VERSION( major, minor ) \
12253 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12254 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12255 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12256
12257 #if !wxCHECK_W32API_VERSION(1,1)
12258 #error You need w32api 1.1 or newer
12259 #endif
12260
12261 ; return 0; }
12262 EOF
12263 if { (eval echo configure:12264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12264 rm -rf conftest*
12265
12266 wx_cv_w32api_win32_ie=yes
12267
12268 else
12269 echo "configure: failed program was:" >&5
12270 cat conftest.$ac_ext >&5
12271 rm -rf conftest*
12272
12273 wx_cv_w32api_win32_ie=no
12274
12275 fi
12276 rm -f conftest*
12277
12278 fi
12279
12280 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12281 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12282 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12283 fi
12284
12285 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12286
12287 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
12288 LIBS="$LIBS -loleacc"
12289 fi
12290
12291 case "${host}" in
12292 *-*-cygwin* )
12293 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12294 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12295 esac
12296
12297 if test "$wxUSE_ODBC" = "sys" ; then
12298 wxUSE_ODBC = "yes"
12299 fi
12300 if test "$wxUSE_ODBC" = "yes" ; then
12301 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12302 cat >> confdefs.h <<\EOF
12303 #define wxUSE_ODBC 1
12304 EOF
12305
12306 fi
12307
12308 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12309 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12310
12311 WIN32INSTALL=win32install
12312 fi
12313
12314 if test "$USE_DARWIN" = 1; then
12315 if test "$wxUSE_PRECOMP" = "yes"; then
12316 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12317 else
12318 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12319 fi
12320 fi
12321
12322 if test "$wxUSE_GUI" = "yes"; then
12323 USE_GUI=1
12324
12325 GUI_TK_LIBRARY=
12326
12327 WXGTK12=
12328 WXGTK127=
12329 WXGTK20=
12330
12331 if test "$wxUSE_MSW" = 1 ; then
12332 TOOLKIT=MSW
12333 GUIDIST=MSW_DIST
12334
12335 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12336 fi
12337
12338 if test "$wxUSE_GTK" = 1; then
12339 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12340 echo "configure:12341: checking for GTK+ version" >&5
12341
12342 gtk_version_cached=1
12343 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12344 echo $ac_n "(cached) $ac_c" 1>&6
12345 else
12346
12347 gtk_version_cached=0
12348 echo "$ac_t""" 1>&6
12349
12350 GTK_MODULES=
12351 if test "$wxUSE_THREADS" = "yes"; then
12352 GTK_MODULES=gthread
12353 fi
12354
12355 wx_cv_lib_gtk=
12356 if test "x$wxUSE_GTK2" = "xyes"; then
12357 # Check whether --enable-gtktest or --disable-gtktest was given.
12358 if test "${enable_gtktest+set}" = set; then
12359 enableval="$enable_gtktest"
12360 :
12361 else
12362 enable_gtktest=yes
12363 fi
12364
12365
12366 pkg_config_args=gtk+-2.0
12367 for module in . $GTK_MODULES
12368 do
12369 case "$module" in
12370 gthread)
12371 pkg_config_args="$pkg_config_args gthread-2.0"
12372 ;;
12373 esac
12374 done
12375
12376 no_gtk=""
12377
12378 # Extract the first word of "pkg-config", so it can be a program name with args.
12379 set dummy pkg-config; ac_word=$2
12380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12381 echo "configure:12382: checking for $ac_word" >&5
12382 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12383 echo $ac_n "(cached) $ac_c" 1>&6
12384 else
12385 case "$PKG_CONFIG" in
12386 /*)
12387 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12388 ;;
12389 ?:/*)
12390 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12391 ;;
12392 *)
12393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12394 ac_dummy="$PATH"
12395 for ac_dir in $ac_dummy; do
12396 test -z "$ac_dir" && ac_dir=.
12397 if test -f $ac_dir/$ac_word; then
12398 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12399 break
12400 fi
12401 done
12402 IFS="$ac_save_ifs"
12403 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12404 ;;
12405 esac
12406 fi
12407 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12408 if test -n "$PKG_CONFIG"; then
12409 echo "$ac_t""$PKG_CONFIG" 1>&6
12410 else
12411 echo "$ac_t""no" 1>&6
12412 fi
12413
12414
12415 if test x$PKG_CONFIG != xno ; then
12416 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12417 :
12418 else
12419 echo *** pkg-config too old; version 0.7 or better required.
12420 no_gtk=yes
12421 PKG_CONFIG=no
12422 fi
12423 else
12424 no_gtk=yes
12425 fi
12426
12427 min_gtk_version=2.0.0
12428 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12429 echo "configure:12430: checking for GTK+ - version >= $min_gtk_version" >&5
12430
12431 if test x$PKG_CONFIG != xno ; then
12432 ## don't try to run the test against uninstalled libtool libs
12433 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12434 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12435 enable_gtktest=no
12436 fi
12437
12438 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12439 :
12440 else
12441 no_gtk=yes
12442 fi
12443 fi
12444
12445 if test x"$no_gtk" = x ; then
12446 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12447 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12448 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12449 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12450 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12451 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12452 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12453 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12454 if test "x$enable_gtktest" = "xyes" ; then
12455 ac_save_CFLAGS="$CFLAGS"
12456 ac_save_LIBS="$LIBS"
12457 CFLAGS="$CFLAGS $GTK_CFLAGS"
12458 LIBS="$GTK_LIBS $LIBS"
12459 rm -f conf.gtktest
12460 if test "$cross_compiling" = yes; then
12461 echo $ac_n "cross compiling; assumed OK... $ac_c"
12462 else
12463 cat > conftest.$ac_ext <<EOF
12464 #line 12465 "configure"
12465 #include "confdefs.h"
12466
12467 #include <gtk/gtk.h>
12468 #include <stdio.h>
12469 #include <stdlib.h>
12470
12471 int
12472 main ()
12473 {
12474 int major, minor, micro;
12475 char *tmp_version;
12476
12477 system ("touch conf.gtktest");
12478
12479 /* HP/UX 9 (%@#!) writes to sscanf strings */
12480 tmp_version = g_strdup("$min_gtk_version");
12481 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12482 printf("%s, bad version string\n", "$min_gtk_version");
12483 exit(1);
12484 }
12485
12486 if ((gtk_major_version != $gtk_config_major_version) ||
12487 (gtk_minor_version != $gtk_config_minor_version) ||
12488 (gtk_micro_version != $gtk_config_micro_version))
12489 {
12490 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12491 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12492 gtk_major_version, gtk_minor_version, gtk_micro_version);
12493 printf ("*** was found! If pkg-config was correct, then it is best\n");
12494 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12495 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12496 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12497 printf("*** required on your system.\n");
12498 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12499 printf("*** to point to the correct configuration files\n");
12500 }
12501 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12502 (gtk_minor_version != GTK_MINOR_VERSION) ||
12503 (gtk_micro_version != GTK_MICRO_VERSION))
12504 {
12505 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12506 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12507 printf("*** library (version %d.%d.%d)\n",
12508 gtk_major_version, gtk_minor_version, gtk_micro_version);
12509 }
12510 else
12511 {
12512 if ((gtk_major_version > major) ||
12513 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12514 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12515 {
12516 return 0;
12517 }
12518 else
12519 {
12520 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12521 gtk_major_version, gtk_minor_version, gtk_micro_version);
12522 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12523 major, minor, micro);
12524 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12525 printf("***\n");
12526 printf("*** If you have already installed a sufficiently new version, this error\n");
12527 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12528 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12529 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12530 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12531 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12532 printf("*** so that the correct libraries are found at run-time))\n");
12533 }
12534 }
12535 return 1;
12536 }
12537
12538 EOF
12539 if { (eval echo configure:12540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12540 then
12541 :
12542 else
12543 echo "configure: failed program was:" >&5
12544 cat conftest.$ac_ext >&5
12545 rm -fr conftest*
12546 no_gtk=yes
12547 fi
12548 rm -fr conftest*
12549 fi
12550
12551 CFLAGS="$ac_save_CFLAGS"
12552 LIBS="$ac_save_LIBS"
12553 fi
12554 fi
12555 if test "x$no_gtk" = x ; then
12556 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12557 wx_cv_lib_gtk=2.0
12558 else
12559 echo "$ac_t""no" 1>&6
12560 if test "$PKG_CONFIG" = "no" ; then
12561 echo "*** A new enough version of pkg-config was not found."
12562 echo "*** See http://pkgconfig.sourceforge.net"
12563 else
12564 if test -f conf.gtktest ; then
12565 :
12566 else
12567 echo "*** Could not run GTK+ test program, checking why..."
12568 ac_save_CFLAGS="$CFLAGS"
12569 ac_save_LIBS="$LIBS"
12570 CFLAGS="$CFLAGS $GTK_CFLAGS"
12571 LIBS="$LIBS $GTK_LIBS"
12572 cat > conftest.$ac_ext <<EOF
12573 #line 12574 "configure"
12574 #include "confdefs.h"
12575
12576 #include <gtk/gtk.h>
12577 #include <stdio.h>
12578
12579 int main() {
12580 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12581 ; return 0; }
12582 EOF
12583 if { (eval echo configure:12584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12584 rm -rf conftest*
12585 echo "*** The test program compiled, but did not run. This usually means"
12586 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12587 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12588 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12589 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12590 echo "*** is required on your system"
12591 echo "***"
12592 echo "*** If you have an old version installed, it is best to remove it, although"
12593 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12594 else
12595 echo "configure: failed program was:" >&5
12596 cat conftest.$ac_ext >&5
12597 rm -rf conftest*
12598 echo "*** The test program failed to compile or link. See the file config.log for the"
12599 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12600 fi
12601 rm -f conftest*
12602 CFLAGS="$ac_save_CFLAGS"
12603 LIBS="$ac_save_LIBS"
12604 fi
12605 fi
12606 GTK_CFLAGS=""
12607 GTK_LIBS=""
12608 :
12609 fi
12610
12611
12612 rm -f conf.gtktest
12613
12614 else
12615 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12616 if test "${with_gtk_prefix+set}" = set; then
12617 withval="$with_gtk_prefix"
12618 gtk_config_prefix="$withval"
12619 else
12620 gtk_config_prefix=""
12621 fi
12622
12623 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12624 if test "${with_gtk_exec_prefix+set}" = set; then
12625 withval="$with_gtk_exec_prefix"
12626 gtk_config_exec_prefix="$withval"
12627 else
12628 gtk_config_exec_prefix=""
12629 fi
12630
12631 # Check whether --enable-gtktest or --disable-gtktest was given.
12632 if test "${enable_gtktest+set}" = set; then
12633 enableval="$enable_gtktest"
12634 :
12635 else
12636 enable_gtktest=yes
12637 fi
12638
12639
12640 for module in . $GTK_MODULES
12641 do
12642 case "$module" in
12643 gthread)
12644 gtk_config_args="$gtk_config_args gthread"
12645 ;;
12646 esac
12647 done
12648
12649 if test x$gtk_config_exec_prefix != x ; then
12650 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12651 if test x${GTK_CONFIG+set} != xset ; then
12652 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12653 fi
12654 fi
12655 if test x$gtk_config_prefix != x ; then
12656 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12657 if test x${GTK_CONFIG+set} != xset ; then
12658 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12659 fi
12660 fi
12661
12662 # Extract the first word of "gtk-config", so it can be a program name with args.
12663 set dummy gtk-config; ac_word=$2
12664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12665 echo "configure:12666: checking for $ac_word" >&5
12666 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12667 echo $ac_n "(cached) $ac_c" 1>&6
12668 else
12669 case "$GTK_CONFIG" in
12670 /*)
12671 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12672 ;;
12673 ?:/*)
12674 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12675 ;;
12676 *)
12677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12678 ac_dummy="$PATH"
12679 for ac_dir in $ac_dummy; do
12680 test -z "$ac_dir" && ac_dir=.
12681 if test -f $ac_dir/$ac_word; then
12682 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12683 break
12684 fi
12685 done
12686 IFS="$ac_save_ifs"
12687 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12688 ;;
12689 esac
12690 fi
12691 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12692 if test -n "$GTK_CONFIG"; then
12693 echo "$ac_t""$GTK_CONFIG" 1>&6
12694 else
12695 echo "$ac_t""no" 1>&6
12696 fi
12697
12698 min_gtk_version=1.2.7
12699 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12700 echo "configure:12701: checking for GTK - version >= $min_gtk_version" >&5
12701 no_gtk=""
12702 if test "$GTK_CONFIG" = "no" ; then
12703 no_gtk=yes
12704 else
12705 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12706 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12707 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12708 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12709 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12710 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12711 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12712 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12713 if test "x$enable_gtktest" = "xyes" ; then
12714 ac_save_CFLAGS="$CFLAGS"
12715 ac_save_LIBS="$LIBS"
12716 CFLAGS="$CFLAGS $GTK_CFLAGS"
12717 LIBS="$GTK_LIBS $LIBS"
12718 rm -f conf.gtktest
12719 if test "$cross_compiling" = yes; then
12720 echo $ac_n "cross compiling; assumed OK... $ac_c"
12721 else
12722 cat > conftest.$ac_ext <<EOF
12723 #line 12724 "configure"
12724 #include "confdefs.h"
12725
12726 #include <gtk/gtk.h>
12727 #include <stdio.h>
12728 #include <stdlib.h>
12729
12730 int
12731 main ()
12732 {
12733 int major, minor, micro;
12734 char *tmp_version;
12735
12736 system ("touch conf.gtktest");
12737
12738 /* HP/UX 9 (%@#!) writes to sscanf strings */
12739 tmp_version = g_strdup("$min_gtk_version");
12740 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12741 printf("%s, bad version string\n", "$min_gtk_version");
12742 exit(1);
12743 }
12744
12745 if ((gtk_major_version != $gtk_config_major_version) ||
12746 (gtk_minor_version != $gtk_config_minor_version) ||
12747 (gtk_micro_version != $gtk_config_micro_version))
12748 {
12749 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12750 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12751 gtk_major_version, gtk_minor_version, gtk_micro_version);
12752 printf ("*** was found! If gtk-config was correct, then it is best\n");
12753 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12754 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12755 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12756 printf("*** required on your system.\n");
12757 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12758 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12759 printf("*** before re-running configure\n");
12760 }
12761 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12762 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12763 (gtk_minor_version != GTK_MINOR_VERSION) ||
12764 (gtk_micro_version != GTK_MICRO_VERSION))
12765 {
12766 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12767 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12768 printf("*** library (version %d.%d.%d)\n",
12769 gtk_major_version, gtk_minor_version, gtk_micro_version);
12770 }
12771 #endif /* defined (GTK_MAJOR_VERSION) ... */
12772 else
12773 {
12774 if ((gtk_major_version > major) ||
12775 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12776 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12777 {
12778 return 0;
12779 }
12780 else
12781 {
12782 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12783 gtk_major_version, gtk_minor_version, gtk_micro_version);
12784 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12785 major, minor, micro);
12786 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12787 printf("***\n");
12788 printf("*** If you have already installed a sufficiently new version, this error\n");
12789 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12790 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12791 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12792 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12793 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12794 printf("*** so that the correct libraries are found at run-time))\n");
12795 }
12796 }
12797 return 1;
12798 }
12799
12800 EOF
12801 if { (eval echo configure:12802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12802 then
12803 :
12804 else
12805 echo "configure: failed program was:" >&5
12806 cat conftest.$ac_ext >&5
12807 rm -fr conftest*
12808 no_gtk=yes
12809 fi
12810 rm -fr conftest*
12811 fi
12812
12813 CFLAGS="$ac_save_CFLAGS"
12814 LIBS="$ac_save_LIBS"
12815 fi
12816 fi
12817 if test "x$no_gtk" = x ; then
12818 echo "$ac_t""yes" 1>&6
12819 wx_cv_lib_gtk=1.2.7
12820 else
12821 echo "$ac_t""no" 1>&6
12822 if test "$GTK_CONFIG" = "no" ; then
12823 echo "*** The gtk-config script installed by GTK could not be found"
12824 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12825 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12826 echo "*** full path to gtk-config."
12827 else
12828 if test -f conf.gtktest ; then
12829 :
12830 else
12831 echo "*** Could not run GTK test program, checking why..."
12832 CFLAGS="$CFLAGS $GTK_CFLAGS"
12833 LIBS="$LIBS $GTK_LIBS"
12834 cat > conftest.$ac_ext <<EOF
12835 #line 12836 "configure"
12836 #include "confdefs.h"
12837
12838 #include <gtk/gtk.h>
12839 #include <stdio.h>
12840
12841 int main() {
12842 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12843 ; return 0; }
12844 EOF
12845 if { (eval echo configure:12846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12846 rm -rf conftest*
12847 echo "*** The test program compiled, but did not run. This usually means"
12848 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12849 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12850 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12851 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12852 echo "*** is required on your system"
12853 echo "***"
12854 echo "*** If you have an old version installed, it is best to remove it, although"
12855 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12856 echo "***"
12857 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12858 echo "*** came with the system with the command"
12859 echo "***"
12860 echo "*** rpm --erase --nodeps gtk gtk-devel"
12861 else
12862 echo "configure: failed program was:" >&5
12863 cat conftest.$ac_ext >&5
12864 rm -rf conftest*
12865 echo "*** The test program failed to compile or link. See the file config.log for the"
12866 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12867 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12868 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12869 fi
12870 rm -f conftest*
12871 CFLAGS="$ac_save_CFLAGS"
12872 LIBS="$ac_save_LIBS"
12873 fi
12874 fi
12875 GTK_CFLAGS=""
12876 GTK_LIBS=""
12877 :
12878 fi
12879
12880
12881 rm -f conf.gtktest
12882
12883
12884 if test -z "$wx_cv_lib_gtk"; then
12885 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12886 if test "${with_gtk_prefix+set}" = set; then
12887 withval="$with_gtk_prefix"
12888 gtk_config_prefix="$withval"
12889 else
12890 gtk_config_prefix=""
12891 fi
12892
12893 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12894 if test "${with_gtk_exec_prefix+set}" = set; then
12895 withval="$with_gtk_exec_prefix"
12896 gtk_config_exec_prefix="$withval"
12897 else
12898 gtk_config_exec_prefix=""
12899 fi
12900
12901 # Check whether --enable-gtktest or --disable-gtktest was given.
12902 if test "${enable_gtktest+set}" = set; then
12903 enableval="$enable_gtktest"
12904 :
12905 else
12906 enable_gtktest=yes
12907 fi
12908
12909
12910 for module in . $GTK_MODULES
12911 do
12912 case "$module" in
12913 gthread)
12914 gtk_config_args="$gtk_config_args gthread"
12915 ;;
12916 esac
12917 done
12918
12919 if test x$gtk_config_exec_prefix != x ; then
12920 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12921 if test x${GTK_CONFIG+set} != xset ; then
12922 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12923 fi
12924 fi
12925 if test x$gtk_config_prefix != x ; then
12926 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12927 if test x${GTK_CONFIG+set} != xset ; then
12928 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12929 fi
12930 fi
12931
12932 # Extract the first word of "gtk-config", so it can be a program name with args.
12933 set dummy gtk-config; ac_word=$2
12934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12935 echo "configure:12936: checking for $ac_word" >&5
12936 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12937 echo $ac_n "(cached) $ac_c" 1>&6
12938 else
12939 case "$GTK_CONFIG" in
12940 /*)
12941 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12942 ;;
12943 ?:/*)
12944 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12945 ;;
12946 *)
12947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12948 ac_dummy="$PATH"
12949 for ac_dir in $ac_dummy; do
12950 test -z "$ac_dir" && ac_dir=.
12951 if test -f $ac_dir/$ac_word; then
12952 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12953 break
12954 fi
12955 done
12956 IFS="$ac_save_ifs"
12957 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12958 ;;
12959 esac
12960 fi
12961 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12962 if test -n "$GTK_CONFIG"; then
12963 echo "$ac_t""$GTK_CONFIG" 1>&6
12964 else
12965 echo "$ac_t""no" 1>&6
12966 fi
12967
12968 min_gtk_version=1.2.3
12969 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12970 echo "configure:12971: checking for GTK - version >= $min_gtk_version" >&5
12971 no_gtk=""
12972 if test "$GTK_CONFIG" = "no" ; then
12973 no_gtk=yes
12974 else
12975 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12976 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12977 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12978 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12979 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12980 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12981 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12982 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12983 if test "x$enable_gtktest" = "xyes" ; then
12984 ac_save_CFLAGS="$CFLAGS"
12985 ac_save_LIBS="$LIBS"
12986 CFLAGS="$CFLAGS $GTK_CFLAGS"
12987 LIBS="$GTK_LIBS $LIBS"
12988 rm -f conf.gtktest
12989 if test "$cross_compiling" = yes; then
12990 echo $ac_n "cross compiling; assumed OK... $ac_c"
12991 else
12992 cat > conftest.$ac_ext <<EOF
12993 #line 12994 "configure"
12994 #include "confdefs.h"
12995
12996 #include <gtk/gtk.h>
12997 #include <stdio.h>
12998 #include <stdlib.h>
12999
13000 int
13001 main ()
13002 {
13003 int major, minor, micro;
13004 char *tmp_version;
13005
13006 system ("touch conf.gtktest");
13007
13008 /* HP/UX 9 (%@#!) writes to sscanf strings */
13009 tmp_version = g_strdup("$min_gtk_version");
13010 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13011 printf("%s, bad version string\n", "$min_gtk_version");
13012 exit(1);
13013 }
13014
13015 if ((gtk_major_version != $gtk_config_major_version) ||
13016 (gtk_minor_version != $gtk_config_minor_version) ||
13017 (gtk_micro_version != $gtk_config_micro_version))
13018 {
13019 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
13020 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13021 gtk_major_version, gtk_minor_version, gtk_micro_version);
13022 printf ("*** was found! If gtk-config was correct, then it is best\n");
13023 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13024 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13025 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13026 printf("*** required on your system.\n");
13027 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13028 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13029 printf("*** before re-running configure\n");
13030 }
13031 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13032 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13033 (gtk_minor_version != GTK_MINOR_VERSION) ||
13034 (gtk_micro_version != GTK_MICRO_VERSION))
13035 {
13036 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13037 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13038 printf("*** library (version %d.%d.%d)\n",
13039 gtk_major_version, gtk_minor_version, gtk_micro_version);
13040 }
13041 #endif /* defined (GTK_MAJOR_VERSION) ... */
13042 else
13043 {
13044 if ((gtk_major_version > major) ||
13045 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13046 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13047 {
13048 return 0;
13049 }
13050 else
13051 {
13052 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13053 gtk_major_version, gtk_minor_version, gtk_micro_version);
13054 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13055 major, minor, micro);
13056 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13057 printf("***\n");
13058 printf("*** If you have already installed a sufficiently new version, this error\n");
13059 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13060 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13061 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13062 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13063 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13064 printf("*** so that the correct libraries are found at run-time))\n");
13065 }
13066 }
13067 return 1;
13068 }
13069
13070 EOF
13071 if { (eval echo configure:13072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13072 then
13073 :
13074 else
13075 echo "configure: failed program was:" >&5
13076 cat conftest.$ac_ext >&5
13077 rm -fr conftest*
13078 no_gtk=yes
13079 fi
13080 rm -fr conftest*
13081 fi
13082
13083 CFLAGS="$ac_save_CFLAGS"
13084 LIBS="$ac_save_LIBS"
13085 fi
13086 fi
13087 if test "x$no_gtk" = x ; then
13088 echo "$ac_t""yes" 1>&6
13089 wx_cv_lib_gtk=1.2.3
13090 else
13091 echo "$ac_t""no" 1>&6
13092 if test "$GTK_CONFIG" = "no" ; then
13093 echo "*** The gtk-config script installed by GTK could not be found"
13094 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13095 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13096 echo "*** full path to gtk-config."
13097 else
13098 if test -f conf.gtktest ; then
13099 :
13100 else
13101 echo "*** Could not run GTK test program, checking why..."
13102 CFLAGS="$CFLAGS $GTK_CFLAGS"
13103 LIBS="$LIBS $GTK_LIBS"
13104 cat > conftest.$ac_ext <<EOF
13105 #line 13106 "configure"
13106 #include "confdefs.h"
13107
13108 #include <gtk/gtk.h>
13109 #include <stdio.h>
13110
13111 int main() {
13112 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13113 ; return 0; }
13114 EOF
13115 if { (eval echo configure:13116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13116 rm -rf conftest*
13117 echo "*** The test program compiled, but did not run. This usually means"
13118 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13119 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13120 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13121 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13122 echo "*** is required on your system"
13123 echo "***"
13124 echo "*** If you have an old version installed, it is best to remove it, although"
13125 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13126 echo "***"
13127 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13128 echo "*** came with the system with the command"
13129 echo "***"
13130 echo "*** rpm --erase --nodeps gtk gtk-devel"
13131 else
13132 echo "configure: failed program was:" >&5
13133 cat conftest.$ac_ext >&5
13134 rm -rf conftest*
13135 echo "*** The test program failed to compile or link. See the file config.log for the"
13136 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13137 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13138 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13139 fi
13140 rm -f conftest*
13141 CFLAGS="$ac_save_CFLAGS"
13142 LIBS="$ac_save_LIBS"
13143 fi
13144 fi
13145 GTK_CFLAGS=""
13146 GTK_LIBS=""
13147 :
13148 fi
13149
13150
13151 rm -f conf.gtktest
13152
13153 fi
13154 fi
13155
13156 if test -z "$wx_cv_lib_gtk"; then
13157 wx_cv_lib_gtk=none
13158 else
13159 wx_cv_cflags_gtk=$GTK_CFLAGS
13160 wx_cv_libs_gtk=$GTK_LIBS
13161 fi
13162
13163
13164 fi
13165
13166
13167 if test "$gtk_version_cached" = 1; then
13168 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13169 fi
13170
13171 case "$wx_cv_lib_gtk" in
13172 2.0) WXGTK20=1
13173 TOOLKIT_VERSION=2
13174 ;;
13175 1.2.7) WXGTK127=1
13176 WXGTK12=1
13177 ;;
13178 1.2.3) WXGTK12=1
13179 ;;
13180 *) { echo "configure: error:
13181 Please check that gtk-config is in path, the directory
13182 where GTK+ libraries are installed (returned by
13183 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13184 equivalent variable and GTK+ is version 1.2.3 or above.
13185 " 1>&2; exit 1; }
13186 ;;
13187 esac
13188
13189 if test "$WXGTK20" = 1; then
13190 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13191
13192 succeeded=no
13193
13194 if test -z "$PKG_CONFIG"; then
13195 # Extract the first word of "pkg-config", so it can be a program name with args.
13196 set dummy pkg-config; ac_word=$2
13197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13198 echo "configure:13199: checking for $ac_word" >&5
13199 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13200 echo $ac_n "(cached) $ac_c" 1>&6
13201 else
13202 case "$PKG_CONFIG" in
13203 /*)
13204 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13205 ;;
13206 ?:/*)
13207 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13208 ;;
13209 *)
13210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13211 ac_dummy="$PATH"
13212 for ac_dir in $ac_dummy; do
13213 test -z "$ac_dir" && ac_dir=.
13214 if test -f $ac_dir/$ac_word; then
13215 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13216 break
13217 fi
13218 done
13219 IFS="$ac_save_ifs"
13220 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13221 ;;
13222 esac
13223 fi
13224 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13225 if test -n "$PKG_CONFIG"; then
13226 echo "$ac_t""$PKG_CONFIG" 1>&6
13227 else
13228 echo "$ac_t""no" 1>&6
13229 fi
13230
13231 fi
13232
13233 if test "$PKG_CONFIG" = "no" ; then
13234 echo "*** The pkg-config script could not be found. Make sure it is"
13235 echo "*** in your path, or set the PKG_CONFIG environment variable"
13236 echo "*** to the full path to pkg-config."
13237 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13238 else
13239 PKG_CONFIG_MIN_VERSION=0.9.0
13240 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13241 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13242 echo "configure:13243: checking for pangoft2" >&5
13243
13244 if $PKG_CONFIG --exists "pangoft2" ; then
13245 echo "$ac_t""yes" 1>&6
13246 succeeded=yes
13247
13248 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13249 echo "configure:13250: checking PANGOFT2_CFLAGS" >&5
13250 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13251 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13252
13253 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13254 echo "configure:13255: checking PANGOFT2_LIBS" >&5
13255 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13256 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13257 else
13258 PANGOFT2_CFLAGS=""
13259 PANGOFT2_LIBS=""
13260 ## If we have a custom action on failure, don't print errors, but
13261 ## do set a variable so people can do so.
13262 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13263
13264 fi
13265
13266
13267
13268 else
13269 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13270 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13271 fi
13272 fi
13273
13274 if test $succeeded = yes; then
13275
13276 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13277 LIBS="$LIBS $PANGOFT2_LIBS"
13278
13279 else
13280
13281 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13282 wxUSE_PRINTING_ARCHITECTURE="no"
13283
13284
13285 fi
13286
13287 fi
13288 else
13289 if test "$wxUSE_UNICODE" = "yes"; then
13290 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13291 wxUSE_UNICODE=no
13292 fi
13293 fi
13294
13295 if test "$USE_DARWIN" != 1; then
13296 for ac_func in poll
13297 do
13298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13299 echo "configure:13300: checking for $ac_func" >&5
13300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13301 echo $ac_n "(cached) $ac_c" 1>&6
13302 else
13303 cat > conftest.$ac_ext <<EOF
13304 #line 13305 "configure"
13305 #include "confdefs.h"
13306 /* System header to define __stub macros and hopefully few prototypes,
13307 which can conflict with char $ac_func(); below. */
13308 #include <assert.h>
13309 /* Override any gcc2 internal prototype to avoid an error. */
13310 /* We use char because int might match the return type of a gcc2
13311 builtin and then its argument prototype would still apply. */
13312 char $ac_func();
13313
13314 int main() {
13315
13316 /* The GNU C library defines this for functions which it implements
13317 to always fail with ENOSYS. Some functions are actually named
13318 something starting with __ and the normal name is an alias. */
13319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13320 choke me
13321 #else
13322 $ac_func();
13323 #endif
13324
13325 ; return 0; }
13326 EOF
13327 if { (eval echo configure:13328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13328 rm -rf conftest*
13329 eval "ac_cv_func_$ac_func=yes"
13330 else
13331 echo "configure: failed program was:" >&5
13332 cat conftest.$ac_ext >&5
13333 rm -rf conftest*
13334 eval "ac_cv_func_$ac_func=no"
13335 fi
13336 rm -f conftest*
13337 fi
13338
13339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13340 echo "$ac_t""yes" 1>&6
13341 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13342 cat >> confdefs.h <<EOF
13343 #define $ac_tr_func 1
13344 EOF
13345
13346 else
13347 echo "$ac_t""no" 1>&6
13348 fi
13349 done
13350
13351 fi
13352
13353 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13354 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13355
13356 AFMINSTALL=afminstall
13357 TOOLKIT=GTK
13358 GUIDIST=GTK_DIST
13359
13360 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13361 echo "configure:13362: checking for gdk_im_open in -lgdk" >&5
13362 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13364 echo $ac_n "(cached) $ac_c" 1>&6
13365 else
13366 ac_save_LIBS="$LIBS"
13367 LIBS="-lgdk $LIBS"
13368 cat > conftest.$ac_ext <<EOF
13369 #line 13370 "configure"
13370 #include "confdefs.h"
13371 /* Override any gcc2 internal prototype to avoid an error. */
13372 /* We use char because int might match the return type of a gcc2
13373 builtin and then its argument prototype would still apply. */
13374 char gdk_im_open();
13375
13376 int main() {
13377 gdk_im_open()
13378 ; return 0; }
13379 EOF
13380 if { (eval echo configure:13381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13381 rm -rf conftest*
13382 eval "ac_cv_lib_$ac_lib_var=yes"
13383 else
13384 echo "configure: failed program was:" >&5
13385 cat conftest.$ac_ext >&5
13386 rm -rf conftest*
13387 eval "ac_cv_lib_$ac_lib_var=no"
13388 fi
13389 rm -f conftest*
13390 LIBS="$ac_save_LIBS"
13391
13392 fi
13393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13394 echo "$ac_t""yes" 1>&6
13395 cat >> confdefs.h <<\EOF
13396 #define HAVE_XIM 1
13397 EOF
13398
13399 else
13400 echo "$ac_t""no" 1>&6
13401 fi
13402
13403 fi
13404
13405 if test "$wxUSE_MGL" = 1; then
13406 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13407 echo "configure:13408: checking for SciTech MGL library" >&5
13408 if test "x$MGL_ROOT" = x ; then
13409 echo "$ac_t""not found" 1>&6
13410 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13411 else
13412 echo "$ac_t""$MGL_ROOT" 1>&6
13413 fi
13414
13415 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13416 echo "configure:13417: checking for libmgl location" >&5
13417 case "${host}" in
13418 *-*-linux* )
13419 if test "x$wxUSE_SHARED" = xyes ; then
13420 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13421 else
13422 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13423 fi
13424 ;;
13425 *-pc-msdosdjgpp )
13426 mgl_os_candidates="dos32/dj2"
13427 ;;
13428 *)
13429 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13430 esac
13431
13432 mgl_lib_type=""
13433 mgl_os=""
13434
13435 for mgl_os_i in $mgl_os_candidates ; do
13436 if test "x$mgl_os" = x ; then
13437 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13438 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13439 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13440 mgl_lib_type=debug
13441 mgl_os=$mgl_os_i
13442 fi
13443 fi
13444 if test "x$mgl_lib_type" = x ; then
13445 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13446 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13447 mgl_lib_type=release
13448 mgl_os=$mgl_os_i
13449 fi
13450 fi
13451 fi
13452 done
13453
13454 if test "x$mgl_os" = x ; then
13455 echo "$ac_t""not found" 1>&6
13456 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13457 fi
13458 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13459
13460 wxUSE_UNIVERSAL="yes"
13461
13462 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13463 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13464
13465 AFMINSTALL=afminstall
13466 TOOLKIT=MGL
13467 GUIDIST=MGL_DIST
13468 fi
13469
13470 if test "$wxUSE_MICROWIN" = 1; then
13471 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13472 echo "configure:13473: checking for MicroWindows" >&5
13473 if test "x$MICROWINDOWS" = x ; then
13474 echo "$ac_t""not found" 1>&6
13475 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13476 else
13477 echo "$ac_t""$MICROWINDOWS" 1>&6
13478 fi
13479
13480 if test -f $MICROWINDOWS/lib/libmwin.a; then
13481 echo "$ac_t""MicroWindows' libraries found." 1>&6
13482 else
13483 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13484 fi
13485
13486 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13487 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13488
13489 wxUSE_UNIVERSAL="yes"
13490
13491 AFMINSTALL=afminstall
13492 TOOLKIT=MICROWIN
13493 GUIDIST=MICROWIN_DIST
13494
13495 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13496 fi
13497
13498 if test "$wxUSE_X11" = 1; then
13499 # If we find X, set shell vars x_includes and x_libraries to the
13500 # paths, otherwise set no_x=yes.
13501 # Uses ac_ vars as temps to allow command line to override cache and checks.
13502 # --without-x overrides everything else, but does not touch the cache.
13503 echo $ac_n "checking for X""... $ac_c" 1>&6
13504 echo "configure:13505: checking for X" >&5
13505
13506 # Check whether --with-x or --without-x was given.
13507 if test "${with_x+set}" = set; then
13508 withval="$with_x"
13509 :
13510 fi
13511
13512 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13513 if test "x$with_x" = xno; then
13514 # The user explicitly disabled X.
13515 have_x=disabled
13516 else
13517 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13518 # Both variables are already set.
13519 have_x=yes
13520 else
13521 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13522 echo $ac_n "(cached) $ac_c" 1>&6
13523 else
13524 # One or both of the vars are not set, and there is no cached value.
13525 ac_x_includes=NO ac_x_libraries=NO
13526 rm -fr conftestdir
13527 if mkdir conftestdir; then
13528 cd conftestdir
13529 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13530 cat > Imakefile <<'EOF'
13531 acfindx:
13532 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13533 EOF
13534 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13535 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13536 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13537 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13538 for ac_extension in a so sl; do
13539 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13540 test -f $ac_im_libdir/libX11.$ac_extension; then
13541 ac_im_usrlibdir=$ac_im_libdir; break
13542 fi
13543 done
13544 # Screen out bogus values from the imake configuration. They are
13545 # bogus both because they are the default anyway, and because
13546 # using them would break gcc on systems where it needs fixed includes.
13547 case "$ac_im_incroot" in
13548 /usr/include) ;;
13549 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13550 esac
13551 case "$ac_im_usrlibdir" in
13552 /usr/lib | /lib) ;;
13553 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13554 esac
13555 fi
13556 cd ..
13557 rm -fr conftestdir
13558 fi
13559
13560 if test "$ac_x_includes" = NO; then
13561 # Guess where to find include files, by looking for this one X11 .h file.
13562 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13563
13564 # First, try using that file with no special directory specified.
13565 cat > conftest.$ac_ext <<EOF
13566 #line 13567 "configure"
13567 #include "confdefs.h"
13568 #include <$x_direct_test_include>
13569 EOF
13570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13571 { (eval echo configure:13572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13573 if test -z "$ac_err"; then
13574 rm -rf conftest*
13575 # We can compile using X headers with no special include directory.
13576 ac_x_includes=
13577 else
13578 echo "$ac_err" >&5
13579 echo "configure: failed program was:" >&5
13580 cat conftest.$ac_ext >&5
13581 rm -rf conftest*
13582 # Look for the header file in a standard set of common directories.
13583 # Check X11 before X11Rn because it is often a symlink to the current release.
13584 for ac_dir in \
13585 /usr/X11/include \
13586 /usr/X11R6/include \
13587 /usr/X11R5/include \
13588 /usr/X11R4/include \
13589 \
13590 /usr/include/X11 \
13591 /usr/include/X11R6 \
13592 /usr/include/X11R5 \
13593 /usr/include/X11R4 \
13594 \
13595 /usr/local/X11/include \
13596 /usr/local/X11R6/include \
13597 /usr/local/X11R5/include \
13598 /usr/local/X11R4/include \
13599 \
13600 /usr/local/include/X11 \
13601 /usr/local/include/X11R6 \
13602 /usr/local/include/X11R5 \
13603 /usr/local/include/X11R4 \
13604 \
13605 /usr/X386/include \
13606 /usr/x386/include \
13607 /usr/XFree86/include/X11 \
13608 \
13609 /usr/include \
13610 /usr/local/include \
13611 /usr/unsupported/include \
13612 /usr/athena/include \
13613 /usr/local/x11r5/include \
13614 /usr/lpp/Xamples/include \
13615 \
13616 /usr/openwin/include \
13617 /usr/openwin/share/include \
13618 ; \
13619 do
13620 if test -r "$ac_dir/$x_direct_test_include"; then
13621 ac_x_includes=$ac_dir
13622 break
13623 fi
13624 done
13625 fi
13626 rm -f conftest*
13627 fi # $ac_x_includes = NO
13628
13629 if test "$ac_x_libraries" = NO; then
13630 # Check for the libraries.
13631
13632 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13633 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13634
13635 # See if we find them without any special options.
13636 # Don't add to $LIBS permanently.
13637 ac_save_LIBS="$LIBS"
13638 LIBS="-l$x_direct_test_library $LIBS"
13639 cat > conftest.$ac_ext <<EOF
13640 #line 13641 "configure"
13641 #include "confdefs.h"
13642
13643 int main() {
13644 ${x_direct_test_function}()
13645 ; return 0; }
13646 EOF
13647 if { (eval echo configure:13648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13648 rm -rf conftest*
13649 LIBS="$ac_save_LIBS"
13650 # We can link X programs with no special library path.
13651 ac_x_libraries=
13652 else
13653 echo "configure: failed program was:" >&5
13654 cat conftest.$ac_ext >&5
13655 rm -rf conftest*
13656 LIBS="$ac_save_LIBS"
13657 # First see if replacing the include by lib works.
13658 # Check X11 before X11Rn because it is often a symlink to the current release.
13659 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13660 /usr/X11/lib \
13661 /usr/X11R6/lib \
13662 /usr/X11R5/lib \
13663 /usr/X11R4/lib \
13664 \
13665 /usr/lib/X11 \
13666 /usr/lib/X11R6 \
13667 /usr/lib/X11R5 \
13668 /usr/lib/X11R4 \
13669 \
13670 /usr/local/X11/lib \
13671 /usr/local/X11R6/lib \
13672 /usr/local/X11R5/lib \
13673 /usr/local/X11R4/lib \
13674 \
13675 /usr/local/lib/X11 \
13676 /usr/local/lib/X11R6 \
13677 /usr/local/lib/X11R5 \
13678 /usr/local/lib/X11R4 \
13679 \
13680 /usr/X386/lib \
13681 /usr/x386/lib \
13682 /usr/XFree86/lib/X11 \
13683 \
13684 /usr/lib \
13685 /usr/local/lib \
13686 /usr/unsupported/lib \
13687 /usr/athena/lib \
13688 /usr/local/x11r5/lib \
13689 /usr/lpp/Xamples/lib \
13690 /lib/usr/lib/X11 \
13691 \
13692 /usr/openwin/lib \
13693 /usr/openwin/share/lib \
13694 ; \
13695 do
13696 for ac_extension in a so sl; do
13697 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13698 ac_x_libraries=$ac_dir
13699 break 2
13700 fi
13701 done
13702 done
13703 fi
13704 rm -f conftest*
13705 fi # $ac_x_libraries = NO
13706
13707 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13708 # Didn't find X anywhere. Cache the known absence of X.
13709 ac_cv_have_x="have_x=no"
13710 else
13711 # Record where we found X for the cache.
13712 ac_cv_have_x="have_x=yes \
13713 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13714 fi
13715 fi
13716 fi
13717 eval "$ac_cv_have_x"
13718 fi # $with_x != no
13719
13720 if test "$have_x" != yes; then
13721 echo "$ac_t""$have_x" 1>&6
13722 no_x=yes
13723 else
13724 # If each of the values was on the command line, it overrides each guess.
13725 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13726 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13727 # Update the cache value to reflect the command line values.
13728 ac_cv_have_x="have_x=yes \
13729 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13730 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13731 fi
13732
13733 if test "$no_x" = yes; then
13734 # Not all programs may use this symbol, but it does not hurt to define it.
13735 cat >> confdefs.h <<\EOF
13736 #define X_DISPLAY_MISSING 1
13737 EOF
13738
13739 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13740 else
13741 if test -n "$x_includes"; then
13742 X_CFLAGS="$X_CFLAGS -I$x_includes"
13743 fi
13744
13745 # It would also be nice to do this for all -L options, not just this one.
13746 if test -n "$x_libraries"; then
13747 X_LIBS="$X_LIBS -L$x_libraries"
13748 # For Solaris; some versions of Sun CC require a space after -R and
13749 # others require no space. Words are not sufficient . . . .
13750 case "`(uname -sr) 2>/dev/null`" in
13751 "SunOS 5"*)
13752 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13753 echo "configure:13754: checking whether -R must be followed by a space" >&5
13754 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13755 cat > conftest.$ac_ext <<EOF
13756 #line 13757 "configure"
13757 #include "confdefs.h"
13758
13759 int main() {
13760
13761 ; return 0; }
13762 EOF
13763 if { (eval echo configure:13764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13764 rm -rf conftest*
13765 ac_R_nospace=yes
13766 else
13767 echo "configure: failed program was:" >&5
13768 cat conftest.$ac_ext >&5
13769 rm -rf conftest*
13770 ac_R_nospace=no
13771 fi
13772 rm -f conftest*
13773 if test $ac_R_nospace = yes; then
13774 echo "$ac_t""no" 1>&6
13775 X_LIBS="$X_LIBS -R$x_libraries"
13776 else
13777 LIBS="$ac_xsave_LIBS -R $x_libraries"
13778 cat > conftest.$ac_ext <<EOF
13779 #line 13780 "configure"
13780 #include "confdefs.h"
13781
13782 int main() {
13783
13784 ; return 0; }
13785 EOF
13786 if { (eval echo configure:13787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13787 rm -rf conftest*
13788 ac_R_space=yes
13789 else
13790 echo "configure: failed program was:" >&5
13791 cat conftest.$ac_ext >&5
13792 rm -rf conftest*
13793 ac_R_space=no
13794 fi
13795 rm -f conftest*
13796 if test $ac_R_space = yes; then
13797 echo "$ac_t""yes" 1>&6
13798 X_LIBS="$X_LIBS -R $x_libraries"
13799 else
13800 echo "$ac_t""neither works" 1>&6
13801 fi
13802 fi
13803 LIBS="$ac_xsave_LIBS"
13804 esac
13805 fi
13806
13807 # Check for system-dependent libraries X programs must link with.
13808 # Do this before checking for the system-independent R6 libraries
13809 # (-lICE), since we may need -lsocket or whatever for X linking.
13810
13811 if test "$ISC" = yes; then
13812 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13813 else
13814 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13815 # libraries were built with DECnet support. And karl@cs.umb.edu says
13816 # the Alpha needs dnet_stub (dnet does not exist).
13817 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13818 echo "configure:13819: checking for dnet_ntoa in -ldnet" >&5
13819 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13820 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13821 echo $ac_n "(cached) $ac_c" 1>&6
13822 else
13823 ac_save_LIBS="$LIBS"
13824 LIBS="-ldnet $LIBS"
13825 cat > conftest.$ac_ext <<EOF
13826 #line 13827 "configure"
13827 #include "confdefs.h"
13828 /* Override any gcc2 internal prototype to avoid an error. */
13829 /* We use char because int might match the return type of a gcc2
13830 builtin and then its argument prototype would still apply. */
13831 char dnet_ntoa();
13832
13833 int main() {
13834 dnet_ntoa()
13835 ; return 0; }
13836 EOF
13837 if { (eval echo configure:13838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13838 rm -rf conftest*
13839 eval "ac_cv_lib_$ac_lib_var=yes"
13840 else
13841 echo "configure: failed program was:" >&5
13842 cat conftest.$ac_ext >&5
13843 rm -rf conftest*
13844 eval "ac_cv_lib_$ac_lib_var=no"
13845 fi
13846 rm -f conftest*
13847 LIBS="$ac_save_LIBS"
13848
13849 fi
13850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13851 echo "$ac_t""yes" 1>&6
13852 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13853 else
13854 echo "$ac_t""no" 1>&6
13855 fi
13856
13857 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13858 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13859 echo "configure:13860: checking for dnet_ntoa in -ldnet_stub" >&5
13860 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13862 echo $ac_n "(cached) $ac_c" 1>&6
13863 else
13864 ac_save_LIBS="$LIBS"
13865 LIBS="-ldnet_stub $LIBS"
13866 cat > conftest.$ac_ext <<EOF
13867 #line 13868 "configure"
13868 #include "confdefs.h"
13869 /* Override any gcc2 internal prototype to avoid an error. */
13870 /* We use char because int might match the return type of a gcc2
13871 builtin and then its argument prototype would still apply. */
13872 char dnet_ntoa();
13873
13874 int main() {
13875 dnet_ntoa()
13876 ; return 0; }
13877 EOF
13878 if { (eval echo configure:13879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13879 rm -rf conftest*
13880 eval "ac_cv_lib_$ac_lib_var=yes"
13881 else
13882 echo "configure: failed program was:" >&5
13883 cat conftest.$ac_ext >&5
13884 rm -rf conftest*
13885 eval "ac_cv_lib_$ac_lib_var=no"
13886 fi
13887 rm -f conftest*
13888 LIBS="$ac_save_LIBS"
13889
13890 fi
13891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13892 echo "$ac_t""yes" 1>&6
13893 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13894 else
13895 echo "$ac_t""no" 1>&6
13896 fi
13897
13898 fi
13899
13900 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13901 # to get the SysV transport functions.
13902 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13903 # needs -lnsl.
13904 # The nsl library prevents programs from opening the X display
13905 # on Irix 5.2, according to dickey@clark.net.
13906 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13907 echo "configure:13908: checking for gethostbyname" >&5
13908 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13909 echo $ac_n "(cached) $ac_c" 1>&6
13910 else
13911 cat > conftest.$ac_ext <<EOF
13912 #line 13913 "configure"
13913 #include "confdefs.h"
13914 /* System header to define __stub macros and hopefully few prototypes,
13915 which can conflict with char gethostbyname(); below. */
13916 #include <assert.h>
13917 /* Override any gcc2 internal prototype to avoid an error. */
13918 /* We use char because int might match the return type of a gcc2
13919 builtin and then its argument prototype would still apply. */
13920 char gethostbyname();
13921
13922 int main() {
13923
13924 /* The GNU C library defines this for functions which it implements
13925 to always fail with ENOSYS. Some functions are actually named
13926 something starting with __ and the normal name is an alias. */
13927 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13928 choke me
13929 #else
13930 gethostbyname();
13931 #endif
13932
13933 ; return 0; }
13934 EOF
13935 if { (eval echo configure:13936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13936 rm -rf conftest*
13937 eval "ac_cv_func_gethostbyname=yes"
13938 else
13939 echo "configure: failed program was:" >&5
13940 cat conftest.$ac_ext >&5
13941 rm -rf conftest*
13942 eval "ac_cv_func_gethostbyname=no"
13943 fi
13944 rm -f conftest*
13945 fi
13946
13947 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13948 echo "$ac_t""yes" 1>&6
13949 :
13950 else
13951 echo "$ac_t""no" 1>&6
13952 fi
13953
13954 if test $ac_cv_func_gethostbyname = no; then
13955 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13956 echo "configure:13957: checking for gethostbyname in -lnsl" >&5
13957 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13959 echo $ac_n "(cached) $ac_c" 1>&6
13960 else
13961 ac_save_LIBS="$LIBS"
13962 LIBS="-lnsl $LIBS"
13963 cat > conftest.$ac_ext <<EOF
13964 #line 13965 "configure"
13965 #include "confdefs.h"
13966 /* Override any gcc2 internal prototype to avoid an error. */
13967 /* We use char because int might match the return type of a gcc2
13968 builtin and then its argument prototype would still apply. */
13969 char gethostbyname();
13970
13971 int main() {
13972 gethostbyname()
13973 ; return 0; }
13974 EOF
13975 if { (eval echo configure:13976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13976 rm -rf conftest*
13977 eval "ac_cv_lib_$ac_lib_var=yes"
13978 else
13979 echo "configure: failed program was:" >&5
13980 cat conftest.$ac_ext >&5
13981 rm -rf conftest*
13982 eval "ac_cv_lib_$ac_lib_var=no"
13983 fi
13984 rm -f conftest*
13985 LIBS="$ac_save_LIBS"
13986
13987 fi
13988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13989 echo "$ac_t""yes" 1>&6
13990 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13991 else
13992 echo "$ac_t""no" 1>&6
13993 fi
13994
13995 fi
13996
13997 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13998 # socket/setsockopt and other routines are undefined under SCO ODT
13999 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14000 # on later versions), says simon@lia.di.epfl.ch: it contains
14001 # gethostby* variants that don't use the nameserver (or something).
14002 # -lsocket must be given before -lnsl if both are needed.
14003 # We assume that if connect needs -lnsl, so does gethostbyname.
14004 echo $ac_n "checking for connect""... $ac_c" 1>&6
14005 echo "configure:14006: checking for connect" >&5
14006 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14007 echo $ac_n "(cached) $ac_c" 1>&6
14008 else
14009 cat > conftest.$ac_ext <<EOF
14010 #line 14011 "configure"
14011 #include "confdefs.h"
14012 /* System header to define __stub macros and hopefully few prototypes,
14013 which can conflict with char connect(); below. */
14014 #include <assert.h>
14015 /* Override any gcc2 internal prototype to avoid an error. */
14016 /* We use char because int might match the return type of a gcc2
14017 builtin and then its argument prototype would still apply. */
14018 char connect();
14019
14020 int main() {
14021
14022 /* The GNU C library defines this for functions which it implements
14023 to always fail with ENOSYS. Some functions are actually named
14024 something starting with __ and the normal name is an alias. */
14025 #if defined (__stub_connect) || defined (__stub___connect)
14026 choke me
14027 #else
14028 connect();
14029 #endif
14030
14031 ; return 0; }
14032 EOF
14033 if { (eval echo configure:14034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14034 rm -rf conftest*
14035 eval "ac_cv_func_connect=yes"
14036 else
14037 echo "configure: failed program was:" >&5
14038 cat conftest.$ac_ext >&5
14039 rm -rf conftest*
14040 eval "ac_cv_func_connect=no"
14041 fi
14042 rm -f conftest*
14043 fi
14044
14045 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14046 echo "$ac_t""yes" 1>&6
14047 :
14048 else
14049 echo "$ac_t""no" 1>&6
14050 fi
14051
14052 if test $ac_cv_func_connect = no; then
14053 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14054 echo "configure:14055: checking for connect in -lsocket" >&5
14055 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14057 echo $ac_n "(cached) $ac_c" 1>&6
14058 else
14059 ac_save_LIBS="$LIBS"
14060 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14061 cat > conftest.$ac_ext <<EOF
14062 #line 14063 "configure"
14063 #include "confdefs.h"
14064 /* Override any gcc2 internal prototype to avoid an error. */
14065 /* We use char because int might match the return type of a gcc2
14066 builtin and then its argument prototype would still apply. */
14067 char connect();
14068
14069 int main() {
14070 connect()
14071 ; return 0; }
14072 EOF
14073 if { (eval echo configure:14074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14074 rm -rf conftest*
14075 eval "ac_cv_lib_$ac_lib_var=yes"
14076 else
14077 echo "configure: failed program was:" >&5
14078 cat conftest.$ac_ext >&5
14079 rm -rf conftest*
14080 eval "ac_cv_lib_$ac_lib_var=no"
14081 fi
14082 rm -f conftest*
14083 LIBS="$ac_save_LIBS"
14084
14085 fi
14086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14087 echo "$ac_t""yes" 1>&6
14088 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14089 else
14090 echo "$ac_t""no" 1>&6
14091 fi
14092
14093 fi
14094
14095 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14096 echo $ac_n "checking for remove""... $ac_c" 1>&6
14097 echo "configure:14098: checking for remove" >&5
14098 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14099 echo $ac_n "(cached) $ac_c" 1>&6
14100 else
14101 cat > conftest.$ac_ext <<EOF
14102 #line 14103 "configure"
14103 #include "confdefs.h"
14104 /* System header to define __stub macros and hopefully few prototypes,
14105 which can conflict with char remove(); below. */
14106 #include <assert.h>
14107 /* Override any gcc2 internal prototype to avoid an error. */
14108 /* We use char because int might match the return type of a gcc2
14109 builtin and then its argument prototype would still apply. */
14110 char remove();
14111
14112 int main() {
14113
14114 /* The GNU C library defines this for functions which it implements
14115 to always fail with ENOSYS. Some functions are actually named
14116 something starting with __ and the normal name is an alias. */
14117 #if defined (__stub_remove) || defined (__stub___remove)
14118 choke me
14119 #else
14120 remove();
14121 #endif
14122
14123 ; return 0; }
14124 EOF
14125 if { (eval echo configure:14126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14126 rm -rf conftest*
14127 eval "ac_cv_func_remove=yes"
14128 else
14129 echo "configure: failed program was:" >&5
14130 cat conftest.$ac_ext >&5
14131 rm -rf conftest*
14132 eval "ac_cv_func_remove=no"
14133 fi
14134 rm -f conftest*
14135 fi
14136
14137 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14138 echo "$ac_t""yes" 1>&6
14139 :
14140 else
14141 echo "$ac_t""no" 1>&6
14142 fi
14143
14144 if test $ac_cv_func_remove = no; then
14145 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14146 echo "configure:14147: checking for remove in -lposix" >&5
14147 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14149 echo $ac_n "(cached) $ac_c" 1>&6
14150 else
14151 ac_save_LIBS="$LIBS"
14152 LIBS="-lposix $LIBS"
14153 cat > conftest.$ac_ext <<EOF
14154 #line 14155 "configure"
14155 #include "confdefs.h"
14156 /* Override any gcc2 internal prototype to avoid an error. */
14157 /* We use char because int might match the return type of a gcc2
14158 builtin and then its argument prototype would still apply. */
14159 char remove();
14160
14161 int main() {
14162 remove()
14163 ; return 0; }
14164 EOF
14165 if { (eval echo configure:14166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14166 rm -rf conftest*
14167 eval "ac_cv_lib_$ac_lib_var=yes"
14168 else
14169 echo "configure: failed program was:" >&5
14170 cat conftest.$ac_ext >&5
14171 rm -rf conftest*
14172 eval "ac_cv_lib_$ac_lib_var=no"
14173 fi
14174 rm -f conftest*
14175 LIBS="$ac_save_LIBS"
14176
14177 fi
14178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14179 echo "$ac_t""yes" 1>&6
14180 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14181 else
14182 echo "$ac_t""no" 1>&6
14183 fi
14184
14185 fi
14186
14187 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14188 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14189 echo "configure:14190: checking for shmat" >&5
14190 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14191 echo $ac_n "(cached) $ac_c" 1>&6
14192 else
14193 cat > conftest.$ac_ext <<EOF
14194 #line 14195 "configure"
14195 #include "confdefs.h"
14196 /* System header to define __stub macros and hopefully few prototypes,
14197 which can conflict with char shmat(); below. */
14198 #include <assert.h>
14199 /* Override any gcc2 internal prototype to avoid an error. */
14200 /* We use char because int might match the return type of a gcc2
14201 builtin and then its argument prototype would still apply. */
14202 char shmat();
14203
14204 int main() {
14205
14206 /* The GNU C library defines this for functions which it implements
14207 to always fail with ENOSYS. Some functions are actually named
14208 something starting with __ and the normal name is an alias. */
14209 #if defined (__stub_shmat) || defined (__stub___shmat)
14210 choke me
14211 #else
14212 shmat();
14213 #endif
14214
14215 ; return 0; }
14216 EOF
14217 if { (eval echo configure:14218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14218 rm -rf conftest*
14219 eval "ac_cv_func_shmat=yes"
14220 else
14221 echo "configure: failed program was:" >&5
14222 cat conftest.$ac_ext >&5
14223 rm -rf conftest*
14224 eval "ac_cv_func_shmat=no"
14225 fi
14226 rm -f conftest*
14227 fi
14228
14229 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14230 echo "$ac_t""yes" 1>&6
14231 :
14232 else
14233 echo "$ac_t""no" 1>&6
14234 fi
14235
14236 if test $ac_cv_func_shmat = no; then
14237 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14238 echo "configure:14239: checking for shmat in -lipc" >&5
14239 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14241 echo $ac_n "(cached) $ac_c" 1>&6
14242 else
14243 ac_save_LIBS="$LIBS"
14244 LIBS="-lipc $LIBS"
14245 cat > conftest.$ac_ext <<EOF
14246 #line 14247 "configure"
14247 #include "confdefs.h"
14248 /* Override any gcc2 internal prototype to avoid an error. */
14249 /* We use char because int might match the return type of a gcc2
14250 builtin and then its argument prototype would still apply. */
14251 char shmat();
14252
14253 int main() {
14254 shmat()
14255 ; return 0; }
14256 EOF
14257 if { (eval echo configure:14258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14258 rm -rf conftest*
14259 eval "ac_cv_lib_$ac_lib_var=yes"
14260 else
14261 echo "configure: failed program was:" >&5
14262 cat conftest.$ac_ext >&5
14263 rm -rf conftest*
14264 eval "ac_cv_lib_$ac_lib_var=no"
14265 fi
14266 rm -f conftest*
14267 LIBS="$ac_save_LIBS"
14268
14269 fi
14270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14271 echo "$ac_t""yes" 1>&6
14272 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14273 else
14274 echo "$ac_t""no" 1>&6
14275 fi
14276
14277 fi
14278 fi
14279
14280 # Check for libraries that X11R6 Xt/Xaw programs need.
14281 ac_save_LDFLAGS="$LDFLAGS"
14282 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14283 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14284 # check for ICE first), but we must link in the order -lSM -lICE or
14285 # we get undefined symbols. So assume we have SM if we have ICE.
14286 # These have to be linked with before -lX11, unlike the other
14287 # libraries we check for below, so use a different variable.
14288 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14289 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14290 echo "configure:14291: checking for IceConnectionNumber in -lICE" >&5
14291 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14293 echo $ac_n "(cached) $ac_c" 1>&6
14294 else
14295 ac_save_LIBS="$LIBS"
14296 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14297 cat > conftest.$ac_ext <<EOF
14298 #line 14299 "configure"
14299 #include "confdefs.h"
14300 /* Override any gcc2 internal prototype to avoid an error. */
14301 /* We use char because int might match the return type of a gcc2
14302 builtin and then its argument prototype would still apply. */
14303 char IceConnectionNumber();
14304
14305 int main() {
14306 IceConnectionNumber()
14307 ; return 0; }
14308 EOF
14309 if { (eval echo configure:14310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14310 rm -rf conftest*
14311 eval "ac_cv_lib_$ac_lib_var=yes"
14312 else
14313 echo "configure: failed program was:" >&5
14314 cat conftest.$ac_ext >&5
14315 rm -rf conftest*
14316 eval "ac_cv_lib_$ac_lib_var=no"
14317 fi
14318 rm -f conftest*
14319 LIBS="$ac_save_LIBS"
14320
14321 fi
14322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14323 echo "$ac_t""yes" 1>&6
14324 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14325 else
14326 echo "$ac_t""no" 1>&6
14327 fi
14328
14329 LDFLAGS="$ac_save_LDFLAGS"
14330
14331 fi
14332
14333
14334 if test "$no_x" = "yes"; then
14335 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14336 fi
14337
14338 GUI_TK_LIBRARY="$X_LIBS"
14339 TOOLKIT_INCLUDE="$X_CFLAGS"
14340 AFMINSTALL=afminstall
14341 COMPILED_X_PROGRAM=0
14342
14343 if test "$wxUSE_NANOX" = "yes"; then
14344 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14345 echo "configure:14346: checking for MicroWindows/NanoX distribution" >&5
14346 if test "x$MICROWIN" = x ; then
14347 echo "$ac_t""not found" 1>&6
14348 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14349 else
14350 echo "$ac_t""$MICROWIN" 1>&6
14351 cat >> confdefs.h <<\EOF
14352 #define wxUSE_NANOX 1
14353 EOF
14354
14355 fi
14356 fi
14357
14358 xpm_link=
14359 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14360 echo "configure:14361: checking for Xpm library" >&5
14361
14362 ac_find_libraries=
14363 for ac_dir in $SEARCH_LIB /usr/lib;
14364 do
14365 for ac_extension in a so sl dylib; do
14366 if test -f "$ac_dir/libXpm.$ac_extension"; then
14367 ac_find_libraries=$ac_dir
14368 break 2
14369 fi
14370 done
14371 done
14372
14373 if test "$ac_find_libraries" != "" ; then
14374
14375 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14376 result=$?
14377 if test $result = 0; then
14378 ac_path_to_link=""
14379 else
14380 ac_path_to_link=" -L$ac_find_libraries"
14381 fi
14382
14383 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14384 xpm_link=" -lXpm"
14385 cat >> confdefs.h <<\EOF
14386 #define wxHAVE_LIB_XPM 1
14387 EOF
14388
14389 echo "$ac_t""found at $ac_find_libraries" 1>&6
14390 else
14391 cat > conftest.$ac_ext <<EOF
14392 #line 14393 "configure"
14393 #include "confdefs.h"
14394
14395 #include <X11/xpm.h>
14396
14397 int main() {
14398
14399 int version;
14400 version = XpmLibraryVersion();
14401
14402 ; return 0; }
14403 EOF
14404 if { (eval echo configure:14405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14405 rm -rf conftest*
14406
14407 xpm_link=" -lXpm"
14408 cat >> confdefs.h <<\EOF
14409 #define wxHAVE_LIB_XPM 1
14410 EOF
14411
14412 echo "$ac_t""found in default search path" 1>&6
14413 COMPILED_X_PROGRAM=0
14414
14415 else
14416 echo "configure: failed program was:" >&5
14417 cat conftest.$ac_ext >&5
14418 rm -rf conftest*
14419
14420 echo "$ac_t""no" 1>&6
14421 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14422
14423
14424 fi
14425 rm -f conftest*
14426 fi
14427
14428 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
14429 echo "configure:14430: checking for XShapeQueryExtension in -lXext" >&5
14430 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
14431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14432 echo $ac_n "(cached) $ac_c" 1>&6
14433 else
14434 ac_save_LIBS="$LIBS"
14435 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
14436 cat > conftest.$ac_ext <<EOF
14437 #line 14438 "configure"
14438 #include "confdefs.h"
14439 /* Override any gcc2 internal prototype to avoid an error. */
14440 /* We use char because int might match the return type of a gcc2
14441 builtin and then its argument prototype would still apply. */
14442 char XShapeQueryExtension();
14443
14444 int main() {
14445 XShapeQueryExtension()
14446 ; return 0; }
14447 EOF
14448 if { (eval echo configure:14449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14449 rm -rf conftest*
14450 eval "ac_cv_lib_$ac_lib_var=yes"
14451 else
14452 echo "configure: failed program was:" >&5
14453 cat conftest.$ac_ext >&5
14454 rm -rf conftest*
14455 eval "ac_cv_lib_$ac_lib_var=no"
14456 fi
14457 rm -f conftest*
14458 LIBS="$ac_save_LIBS"
14459
14460 fi
14461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14462 echo "$ac_t""yes" 1>&6
14463
14464 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
14465 wxHAVE_XEXT_LIB=1
14466
14467 else
14468 echo "$ac_t""no" 1>&6
14469 fi
14470
14471
14472 if test "$wxUSE_UNICODE" = "yes"; then
14473
14474 succeeded=no
14475
14476 if test -z "$PKG_CONFIG"; then
14477 # Extract the first word of "pkg-config", so it can be a program name with args.
14478 set dummy pkg-config; ac_word=$2
14479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14480 echo "configure:14481: checking for $ac_word" >&5
14481 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14482 echo $ac_n "(cached) $ac_c" 1>&6
14483 else
14484 case "$PKG_CONFIG" in
14485 /*)
14486 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14487 ;;
14488 ?:/*)
14489 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14490 ;;
14491 *)
14492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14493 ac_dummy="$PATH"
14494 for ac_dir in $ac_dummy; do
14495 test -z "$ac_dir" && ac_dir=.
14496 if test -f $ac_dir/$ac_word; then
14497 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14498 break
14499 fi
14500 done
14501 IFS="$ac_save_ifs"
14502 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14503 ;;
14504 esac
14505 fi
14506 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14507 if test -n "$PKG_CONFIG"; then
14508 echo "$ac_t""$PKG_CONFIG" 1>&6
14509 else
14510 echo "$ac_t""no" 1>&6
14511 fi
14512
14513 fi
14514
14515 if test "$PKG_CONFIG" = "no" ; then
14516 echo "*** The pkg-config script could not be found. Make sure it is"
14517 echo "*** in your path, or set the PKG_CONFIG environment variable"
14518 echo "*** to the full path to pkg-config."
14519 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14520 else
14521 PKG_CONFIG_MIN_VERSION=0.9.0
14522 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14523 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14524 echo "configure:14525: checking for pangox" >&5
14525
14526 if $PKG_CONFIG --exists "pangox" ; then
14527 echo "$ac_t""yes" 1>&6
14528 succeeded=yes
14529
14530 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14531 echo "configure:14532: checking PANGOX_CFLAGS" >&5
14532 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14533 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14534
14535 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14536 echo "configure:14537: checking PANGOX_LIBS" >&5
14537 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14538 echo "$ac_t""$PANGOX_LIBS" 1>&6
14539 else
14540 PANGOX_CFLAGS=""
14541 PANGOX_LIBS=""
14542 ## If we have a custom action on failure, don't print errors, but
14543 ## do set a variable so people can do so.
14544 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14545
14546 fi
14547
14548
14549
14550 else
14551 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14552 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14553 fi
14554 fi
14555
14556 if test $succeeded = yes; then
14557
14558 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14559 LIBS="$LIBS $PANGOX_LIBS"
14560
14561 else
14562
14563 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14564
14565
14566 fi
14567
14568
14569 succeeded=no
14570
14571 if test -z "$PKG_CONFIG"; then
14572 # Extract the first word of "pkg-config", so it can be a program name with args.
14573 set dummy pkg-config; ac_word=$2
14574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14575 echo "configure:14576: checking for $ac_word" >&5
14576 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14577 echo $ac_n "(cached) $ac_c" 1>&6
14578 else
14579 case "$PKG_CONFIG" in
14580 /*)
14581 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14582 ;;
14583 ?:/*)
14584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14585 ;;
14586 *)
14587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14588 ac_dummy="$PATH"
14589 for ac_dir in $ac_dummy; do
14590 test -z "$ac_dir" && ac_dir=.
14591 if test -f $ac_dir/$ac_word; then
14592 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14593 break
14594 fi
14595 done
14596 IFS="$ac_save_ifs"
14597 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14598 ;;
14599 esac
14600 fi
14601 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14602 if test -n "$PKG_CONFIG"; then
14603 echo "$ac_t""$PKG_CONFIG" 1>&6
14604 else
14605 echo "$ac_t""no" 1>&6
14606 fi
14607
14608 fi
14609
14610 if test "$PKG_CONFIG" = "no" ; then
14611 echo "*** The pkg-config script could not be found. Make sure it is"
14612 echo "*** in your path, or set the PKG_CONFIG environment variable"
14613 echo "*** to the full path to pkg-config."
14614 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14615 else
14616 PKG_CONFIG_MIN_VERSION=0.9.0
14617 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14618 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14619 echo "configure:14620: checking for pangoft2" >&5
14620
14621 if $PKG_CONFIG --exists "pangoft2" ; then
14622 echo "$ac_t""yes" 1>&6
14623 succeeded=yes
14624
14625 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14626 echo "configure:14627: checking PANGOFT2_CFLAGS" >&5
14627 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14628 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14629
14630 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14631 echo "configure:14632: checking PANGOFT2_LIBS" >&5
14632 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14633 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14634 else
14635 PANGOFT2_CFLAGS=""
14636 PANGOFT2_LIBS=""
14637 ## If we have a custom action on failure, don't print errors, but
14638 ## do set a variable so people can do so.
14639 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14640
14641 fi
14642
14643
14644
14645 else
14646 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14647 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14648 fi
14649 fi
14650
14651 if test $succeeded = yes; then
14652
14653 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14654 LIBS="$LIBS $PANGOFT2_LIBS"
14655
14656 else
14657
14658 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14659 wxUSE_PRINTING_ARCHITECTURE="no"
14660
14661
14662 fi
14663
14664
14665 succeeded=no
14666
14667 if test -z "$PKG_CONFIG"; then
14668 # Extract the first word of "pkg-config", so it can be a program name with args.
14669 set dummy pkg-config; ac_word=$2
14670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14671 echo "configure:14672: checking for $ac_word" >&5
14672 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14673 echo $ac_n "(cached) $ac_c" 1>&6
14674 else
14675 case "$PKG_CONFIG" in
14676 /*)
14677 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14678 ;;
14679 ?:/*)
14680 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14681 ;;
14682 *)
14683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14684 ac_dummy="$PATH"
14685 for ac_dir in $ac_dummy; do
14686 test -z "$ac_dir" && ac_dir=.
14687 if test -f $ac_dir/$ac_word; then
14688 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14689 break
14690 fi
14691 done
14692 IFS="$ac_save_ifs"
14693 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14694 ;;
14695 esac
14696 fi
14697 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14698 if test -n "$PKG_CONFIG"; then
14699 echo "$ac_t""$PKG_CONFIG" 1>&6
14700 else
14701 echo "$ac_t""no" 1>&6
14702 fi
14703
14704 fi
14705
14706 if test "$PKG_CONFIG" = "no" ; then
14707 echo "*** The pkg-config script could not be found. Make sure it is"
14708 echo "*** in your path, or set the PKG_CONFIG environment variable"
14709 echo "*** to the full path to pkg-config."
14710 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14711 else
14712 PKG_CONFIG_MIN_VERSION=0.9.0
14713 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14714 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14715 echo "configure:14716: checking for pangoxft" >&5
14716
14717 if $PKG_CONFIG --exists "pangoxft" ; then
14718 echo "$ac_t""yes" 1>&6
14719 succeeded=yes
14720
14721 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14722 echo "configure:14723: checking PANGOXFT_CFLAGS" >&5
14723 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14724 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14725
14726 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14727 echo "configure:14728: checking PANGOXFT_LIBS" >&5
14728 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14729 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14730 else
14731 PANGOXFT_CFLAGS=""
14732 PANGOXFT_LIBS=""
14733 ## If we have a custom action on failure, don't print errors, but
14734 ## do set a variable so people can do so.
14735 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14736
14737 fi
14738
14739
14740
14741 else
14742 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14743 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14744 fi
14745 fi
14746
14747 if test $succeeded = yes; then
14748
14749 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14750 LIBS="$LIBS $PANGOXFT_LIBS"
14751
14752 else
14753
14754 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14755
14756
14757 fi
14758
14759 fi
14760
14761 wxUSE_UNIVERSAL="yes"
14762
14763 if test "$wxUSE_NANOX" = "yes"; then
14764 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14765 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"
14766 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14767 else
14768 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14769 fi
14770
14771 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14772 TOOLKIT=X11
14773 GUIDIST=X11_DIST
14774 fi
14775
14776 if test "$wxUSE_MOTIF" = 1; then
14777 if test "$no_x" = yes; then
14778 # Not all programs may use this symbol, but it does not hurt to define it.
14779 cat >> confdefs.h <<\EOF
14780 #define X_DISPLAY_MISSING 1
14781 EOF
14782
14783 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14784 else
14785 if test -n "$x_includes"; then
14786 X_CFLAGS="$X_CFLAGS -I$x_includes"
14787 fi
14788
14789 # It would also be nice to do this for all -L options, not just this one.
14790 if test -n "$x_libraries"; then
14791 X_LIBS="$X_LIBS -L$x_libraries"
14792 # For Solaris; some versions of Sun CC require a space after -R and
14793 # others require no space. Words are not sufficient . . . .
14794 case "`(uname -sr) 2>/dev/null`" in
14795 "SunOS 5"*)
14796 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14797 echo "configure:14798: checking whether -R must be followed by a space" >&5
14798 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14799 cat > conftest.$ac_ext <<EOF
14800 #line 14801 "configure"
14801 #include "confdefs.h"
14802
14803 int main() {
14804
14805 ; return 0; }
14806 EOF
14807 if { (eval echo configure:14808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14808 rm -rf conftest*
14809 ac_R_nospace=yes
14810 else
14811 echo "configure: failed program was:" >&5
14812 cat conftest.$ac_ext >&5
14813 rm -rf conftest*
14814 ac_R_nospace=no
14815 fi
14816 rm -f conftest*
14817 if test $ac_R_nospace = yes; then
14818 echo "$ac_t""no" 1>&6
14819 X_LIBS="$X_LIBS -R$x_libraries"
14820 else
14821 LIBS="$ac_xsave_LIBS -R $x_libraries"
14822 cat > conftest.$ac_ext <<EOF
14823 #line 14824 "configure"
14824 #include "confdefs.h"
14825
14826 int main() {
14827
14828 ; return 0; }
14829 EOF
14830 if { (eval echo configure:14831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14831 rm -rf conftest*
14832 ac_R_space=yes
14833 else
14834 echo "configure: failed program was:" >&5
14835 cat conftest.$ac_ext >&5
14836 rm -rf conftest*
14837 ac_R_space=no
14838 fi
14839 rm -f conftest*
14840 if test $ac_R_space = yes; then
14841 echo "$ac_t""yes" 1>&6
14842 X_LIBS="$X_LIBS -R $x_libraries"
14843 else
14844 echo "$ac_t""neither works" 1>&6
14845 fi
14846 fi
14847 LIBS="$ac_xsave_LIBS"
14848 esac
14849 fi
14850
14851 # Check for system-dependent libraries X programs must link with.
14852 # Do this before checking for the system-independent R6 libraries
14853 # (-lICE), since we may need -lsocket or whatever for X linking.
14854
14855 if test "$ISC" = yes; then
14856 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14857 else
14858 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14859 # libraries were built with DECnet support. And karl@cs.umb.edu says
14860 # the Alpha needs dnet_stub (dnet does not exist).
14861 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14862 echo "configure:14863: checking for dnet_ntoa in -ldnet" >&5
14863 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14865 echo $ac_n "(cached) $ac_c" 1>&6
14866 else
14867 ac_save_LIBS="$LIBS"
14868 LIBS="-ldnet $LIBS"
14869 cat > conftest.$ac_ext <<EOF
14870 #line 14871 "configure"
14871 #include "confdefs.h"
14872 /* Override any gcc2 internal prototype to avoid an error. */
14873 /* We use char because int might match the return type of a gcc2
14874 builtin and then its argument prototype would still apply. */
14875 char dnet_ntoa();
14876
14877 int main() {
14878 dnet_ntoa()
14879 ; return 0; }
14880 EOF
14881 if { (eval echo configure:14882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14882 rm -rf conftest*
14883 eval "ac_cv_lib_$ac_lib_var=yes"
14884 else
14885 echo "configure: failed program was:" >&5
14886 cat conftest.$ac_ext >&5
14887 rm -rf conftest*
14888 eval "ac_cv_lib_$ac_lib_var=no"
14889 fi
14890 rm -f conftest*
14891 LIBS="$ac_save_LIBS"
14892
14893 fi
14894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14895 echo "$ac_t""yes" 1>&6
14896 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14897 else
14898 echo "$ac_t""no" 1>&6
14899 fi
14900
14901 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14902 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14903 echo "configure:14904: checking for dnet_ntoa in -ldnet_stub" >&5
14904 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14906 echo $ac_n "(cached) $ac_c" 1>&6
14907 else
14908 ac_save_LIBS="$LIBS"
14909 LIBS="-ldnet_stub $LIBS"
14910 cat > conftest.$ac_ext <<EOF
14911 #line 14912 "configure"
14912 #include "confdefs.h"
14913 /* Override any gcc2 internal prototype to avoid an error. */
14914 /* We use char because int might match the return type of a gcc2
14915 builtin and then its argument prototype would still apply. */
14916 char dnet_ntoa();
14917
14918 int main() {
14919 dnet_ntoa()
14920 ; return 0; }
14921 EOF
14922 if { (eval echo configure:14923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14923 rm -rf conftest*
14924 eval "ac_cv_lib_$ac_lib_var=yes"
14925 else
14926 echo "configure: failed program was:" >&5
14927 cat conftest.$ac_ext >&5
14928 rm -rf conftest*
14929 eval "ac_cv_lib_$ac_lib_var=no"
14930 fi
14931 rm -f conftest*
14932 LIBS="$ac_save_LIBS"
14933
14934 fi
14935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14936 echo "$ac_t""yes" 1>&6
14937 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14938 else
14939 echo "$ac_t""no" 1>&6
14940 fi
14941
14942 fi
14943
14944 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14945 # to get the SysV transport functions.
14946 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14947 # needs -lnsl.
14948 # The nsl library prevents programs from opening the X display
14949 # on Irix 5.2, according to dickey@clark.net.
14950 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14951 echo "configure:14952: checking for gethostbyname" >&5
14952 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14953 echo $ac_n "(cached) $ac_c" 1>&6
14954 else
14955 cat > conftest.$ac_ext <<EOF
14956 #line 14957 "configure"
14957 #include "confdefs.h"
14958 /* System header to define __stub macros and hopefully few prototypes,
14959 which can conflict with char gethostbyname(); below. */
14960 #include <assert.h>
14961 /* Override any gcc2 internal prototype to avoid an error. */
14962 /* We use char because int might match the return type of a gcc2
14963 builtin and then its argument prototype would still apply. */
14964 char gethostbyname();
14965
14966 int main() {
14967
14968 /* The GNU C library defines this for functions which it implements
14969 to always fail with ENOSYS. Some functions are actually named
14970 something starting with __ and the normal name is an alias. */
14971 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14972 choke me
14973 #else
14974 gethostbyname();
14975 #endif
14976
14977 ; return 0; }
14978 EOF
14979 if { (eval echo configure:14980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14980 rm -rf conftest*
14981 eval "ac_cv_func_gethostbyname=yes"
14982 else
14983 echo "configure: failed program was:" >&5
14984 cat conftest.$ac_ext >&5
14985 rm -rf conftest*
14986 eval "ac_cv_func_gethostbyname=no"
14987 fi
14988 rm -f conftest*
14989 fi
14990
14991 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14992 echo "$ac_t""yes" 1>&6
14993 :
14994 else
14995 echo "$ac_t""no" 1>&6
14996 fi
14997
14998 if test $ac_cv_func_gethostbyname = no; then
14999 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
15000 echo "configure:15001: checking for gethostbyname in -lnsl" >&5
15001 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
15002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15003 echo $ac_n "(cached) $ac_c" 1>&6
15004 else
15005 ac_save_LIBS="$LIBS"
15006 LIBS="-lnsl $LIBS"
15007 cat > conftest.$ac_ext <<EOF
15008 #line 15009 "configure"
15009 #include "confdefs.h"
15010 /* Override any gcc2 internal prototype to avoid an error. */
15011 /* We use char because int might match the return type of a gcc2
15012 builtin and then its argument prototype would still apply. */
15013 char gethostbyname();
15014
15015 int main() {
15016 gethostbyname()
15017 ; return 0; }
15018 EOF
15019 if { (eval echo configure:15020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15020 rm -rf conftest*
15021 eval "ac_cv_lib_$ac_lib_var=yes"
15022 else
15023 echo "configure: failed program was:" >&5
15024 cat conftest.$ac_ext >&5
15025 rm -rf conftest*
15026 eval "ac_cv_lib_$ac_lib_var=no"
15027 fi
15028 rm -f conftest*
15029 LIBS="$ac_save_LIBS"
15030
15031 fi
15032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15033 echo "$ac_t""yes" 1>&6
15034 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15035 else
15036 echo "$ac_t""no" 1>&6
15037 fi
15038
15039 fi
15040
15041 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15042 # socket/setsockopt and other routines are undefined under SCO ODT
15043 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15044 # on later versions), says simon@lia.di.epfl.ch: it contains
15045 # gethostby* variants that don't use the nameserver (or something).
15046 # -lsocket must be given before -lnsl if both are needed.
15047 # We assume that if connect needs -lnsl, so does gethostbyname.
15048 echo $ac_n "checking for connect""... $ac_c" 1>&6
15049 echo "configure:15050: checking for connect" >&5
15050 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15051 echo $ac_n "(cached) $ac_c" 1>&6
15052 else
15053 cat > conftest.$ac_ext <<EOF
15054 #line 15055 "configure"
15055 #include "confdefs.h"
15056 /* System header to define __stub macros and hopefully few prototypes,
15057 which can conflict with char connect(); below. */
15058 #include <assert.h>
15059 /* Override any gcc2 internal prototype to avoid an error. */
15060 /* We use char because int might match the return type of a gcc2
15061 builtin and then its argument prototype would still apply. */
15062 char connect();
15063
15064 int main() {
15065
15066 /* The GNU C library defines this for functions which it implements
15067 to always fail with ENOSYS. Some functions are actually named
15068 something starting with __ and the normal name is an alias. */
15069 #if defined (__stub_connect) || defined (__stub___connect)
15070 choke me
15071 #else
15072 connect();
15073 #endif
15074
15075 ; return 0; }
15076 EOF
15077 if { (eval echo configure:15078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15078 rm -rf conftest*
15079 eval "ac_cv_func_connect=yes"
15080 else
15081 echo "configure: failed program was:" >&5
15082 cat conftest.$ac_ext >&5
15083 rm -rf conftest*
15084 eval "ac_cv_func_connect=no"
15085 fi
15086 rm -f conftest*
15087 fi
15088
15089 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15090 echo "$ac_t""yes" 1>&6
15091 :
15092 else
15093 echo "$ac_t""no" 1>&6
15094 fi
15095
15096 if test $ac_cv_func_connect = no; then
15097 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15098 echo "configure:15099: checking for connect in -lsocket" >&5
15099 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15100 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15101 echo $ac_n "(cached) $ac_c" 1>&6
15102 else
15103 ac_save_LIBS="$LIBS"
15104 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15105 cat > conftest.$ac_ext <<EOF
15106 #line 15107 "configure"
15107 #include "confdefs.h"
15108 /* Override any gcc2 internal prototype to avoid an error. */
15109 /* We use char because int might match the return type of a gcc2
15110 builtin and then its argument prototype would still apply. */
15111 char connect();
15112
15113 int main() {
15114 connect()
15115 ; return 0; }
15116 EOF
15117 if { (eval echo configure:15118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15118 rm -rf conftest*
15119 eval "ac_cv_lib_$ac_lib_var=yes"
15120 else
15121 echo "configure: failed program was:" >&5
15122 cat conftest.$ac_ext >&5
15123 rm -rf conftest*
15124 eval "ac_cv_lib_$ac_lib_var=no"
15125 fi
15126 rm -f conftest*
15127 LIBS="$ac_save_LIBS"
15128
15129 fi
15130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15131 echo "$ac_t""yes" 1>&6
15132 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15133 else
15134 echo "$ac_t""no" 1>&6
15135 fi
15136
15137 fi
15138
15139 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15140 echo $ac_n "checking for remove""... $ac_c" 1>&6
15141 echo "configure:15142: checking for remove" >&5
15142 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15143 echo $ac_n "(cached) $ac_c" 1>&6
15144 else
15145 cat > conftest.$ac_ext <<EOF
15146 #line 15147 "configure"
15147 #include "confdefs.h"
15148 /* System header to define __stub macros and hopefully few prototypes,
15149 which can conflict with char remove(); below. */
15150 #include <assert.h>
15151 /* Override any gcc2 internal prototype to avoid an error. */
15152 /* We use char because int might match the return type of a gcc2
15153 builtin and then its argument prototype would still apply. */
15154 char remove();
15155
15156 int main() {
15157
15158 /* The GNU C library defines this for functions which it implements
15159 to always fail with ENOSYS. Some functions are actually named
15160 something starting with __ and the normal name is an alias. */
15161 #if defined (__stub_remove) || defined (__stub___remove)
15162 choke me
15163 #else
15164 remove();
15165 #endif
15166
15167 ; return 0; }
15168 EOF
15169 if { (eval echo configure:15170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15170 rm -rf conftest*
15171 eval "ac_cv_func_remove=yes"
15172 else
15173 echo "configure: failed program was:" >&5
15174 cat conftest.$ac_ext >&5
15175 rm -rf conftest*
15176 eval "ac_cv_func_remove=no"
15177 fi
15178 rm -f conftest*
15179 fi
15180
15181 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15182 echo "$ac_t""yes" 1>&6
15183 :
15184 else
15185 echo "$ac_t""no" 1>&6
15186 fi
15187
15188 if test $ac_cv_func_remove = no; then
15189 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15190 echo "configure:15191: checking for remove in -lposix" >&5
15191 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15193 echo $ac_n "(cached) $ac_c" 1>&6
15194 else
15195 ac_save_LIBS="$LIBS"
15196 LIBS="-lposix $LIBS"
15197 cat > conftest.$ac_ext <<EOF
15198 #line 15199 "configure"
15199 #include "confdefs.h"
15200 /* Override any gcc2 internal prototype to avoid an error. */
15201 /* We use char because int might match the return type of a gcc2
15202 builtin and then its argument prototype would still apply. */
15203 char remove();
15204
15205 int main() {
15206 remove()
15207 ; return 0; }
15208 EOF
15209 if { (eval echo configure:15210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15210 rm -rf conftest*
15211 eval "ac_cv_lib_$ac_lib_var=yes"
15212 else
15213 echo "configure: failed program was:" >&5
15214 cat conftest.$ac_ext >&5
15215 rm -rf conftest*
15216 eval "ac_cv_lib_$ac_lib_var=no"
15217 fi
15218 rm -f conftest*
15219 LIBS="$ac_save_LIBS"
15220
15221 fi
15222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15223 echo "$ac_t""yes" 1>&6
15224 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15225 else
15226 echo "$ac_t""no" 1>&6
15227 fi
15228
15229 fi
15230
15231 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15232 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15233 echo "configure:15234: checking for shmat" >&5
15234 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15235 echo $ac_n "(cached) $ac_c" 1>&6
15236 else
15237 cat > conftest.$ac_ext <<EOF
15238 #line 15239 "configure"
15239 #include "confdefs.h"
15240 /* System header to define __stub macros and hopefully few prototypes,
15241 which can conflict with char shmat(); below. */
15242 #include <assert.h>
15243 /* Override any gcc2 internal prototype to avoid an error. */
15244 /* We use char because int might match the return type of a gcc2
15245 builtin and then its argument prototype would still apply. */
15246 char shmat();
15247
15248 int main() {
15249
15250 /* The GNU C library defines this for functions which it implements
15251 to always fail with ENOSYS. Some functions are actually named
15252 something starting with __ and the normal name is an alias. */
15253 #if defined (__stub_shmat) || defined (__stub___shmat)
15254 choke me
15255 #else
15256 shmat();
15257 #endif
15258
15259 ; return 0; }
15260 EOF
15261 if { (eval echo configure:15262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15262 rm -rf conftest*
15263 eval "ac_cv_func_shmat=yes"
15264 else
15265 echo "configure: failed program was:" >&5
15266 cat conftest.$ac_ext >&5
15267 rm -rf conftest*
15268 eval "ac_cv_func_shmat=no"
15269 fi
15270 rm -f conftest*
15271 fi
15272
15273 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15274 echo "$ac_t""yes" 1>&6
15275 :
15276 else
15277 echo "$ac_t""no" 1>&6
15278 fi
15279
15280 if test $ac_cv_func_shmat = no; then
15281 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15282 echo "configure:15283: checking for shmat in -lipc" >&5
15283 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15285 echo $ac_n "(cached) $ac_c" 1>&6
15286 else
15287 ac_save_LIBS="$LIBS"
15288 LIBS="-lipc $LIBS"
15289 cat > conftest.$ac_ext <<EOF
15290 #line 15291 "configure"
15291 #include "confdefs.h"
15292 /* Override any gcc2 internal prototype to avoid an error. */
15293 /* We use char because int might match the return type of a gcc2
15294 builtin and then its argument prototype would still apply. */
15295 char shmat();
15296
15297 int main() {
15298 shmat()
15299 ; return 0; }
15300 EOF
15301 if { (eval echo configure:15302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15302 rm -rf conftest*
15303 eval "ac_cv_lib_$ac_lib_var=yes"
15304 else
15305 echo "configure: failed program was:" >&5
15306 cat conftest.$ac_ext >&5
15307 rm -rf conftest*
15308 eval "ac_cv_lib_$ac_lib_var=no"
15309 fi
15310 rm -f conftest*
15311 LIBS="$ac_save_LIBS"
15312
15313 fi
15314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15315 echo "$ac_t""yes" 1>&6
15316 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15317 else
15318 echo "$ac_t""no" 1>&6
15319 fi
15320
15321 fi
15322 fi
15323
15324 # Check for libraries that X11R6 Xt/Xaw programs need.
15325 ac_save_LDFLAGS="$LDFLAGS"
15326 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15327 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15328 # check for ICE first), but we must link in the order -lSM -lICE or
15329 # we get undefined symbols. So assume we have SM if we have ICE.
15330 # These have to be linked with before -lX11, unlike the other
15331 # libraries we check for below, so use a different variable.
15332 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15333 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15334 echo "configure:15335: checking for IceConnectionNumber in -lICE" >&5
15335 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15337 echo $ac_n "(cached) $ac_c" 1>&6
15338 else
15339 ac_save_LIBS="$LIBS"
15340 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15341 cat > conftest.$ac_ext <<EOF
15342 #line 15343 "configure"
15343 #include "confdefs.h"
15344 /* Override any gcc2 internal prototype to avoid an error. */
15345 /* We use char because int might match the return type of a gcc2
15346 builtin and then its argument prototype would still apply. */
15347 char IceConnectionNumber();
15348
15349 int main() {
15350 IceConnectionNumber()
15351 ; return 0; }
15352 EOF
15353 if { (eval echo configure:15354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15354 rm -rf conftest*
15355 eval "ac_cv_lib_$ac_lib_var=yes"
15356 else
15357 echo "configure: failed program was:" >&5
15358 cat conftest.$ac_ext >&5
15359 rm -rf conftest*
15360 eval "ac_cv_lib_$ac_lib_var=no"
15361 fi
15362 rm -f conftest*
15363 LIBS="$ac_save_LIBS"
15364
15365 fi
15366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15367 echo "$ac_t""yes" 1>&6
15368 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15369 else
15370 echo "$ac_t""no" 1>&6
15371 fi
15372
15373 LDFLAGS="$ac_save_LDFLAGS"
15374
15375 fi
15376
15377
15378 if test "$no_x" = "yes"; then
15379 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15380 fi
15381
15382 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15383 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15384 AFMINSTALL=afminstall
15385 COMPILED_X_PROGRAM=0
15386
15387 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15388 echo "configure:15389: checking for Motif/Lesstif headers" >&5
15389
15390 ac_find_includes=
15391 for ac_dir in $SEARCH_INCLUDE /usr/include;
15392 do
15393 if test -f "$ac_dir/Xm/Xm.h"; then
15394 ac_find_includes=$ac_dir
15395 break
15396 fi
15397 done
15398
15399 if test "$ac_find_includes" != "" ; then
15400 echo "$ac_t""found in $ac_find_includes" 1>&6
15401
15402 if test "x$ac_find_includes" = "x/usr/include"; then
15403 ac_path_to_include=""
15404 else
15405 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15406 result=$?
15407 if test $result = 0; then
15408 ac_path_to_include=""
15409 else
15410 ac_path_to_include=" -I$ac_find_includes"
15411 fi
15412 fi
15413
15414 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15415 else
15416 cat > conftest.$ac_ext <<EOF
15417 #line 15418 "configure"
15418 #include "confdefs.h"
15419
15420 #include <Xm/Xm.h>
15421
15422 int main() {
15423
15424 int version;
15425 version = xmUseVersion;
15426
15427 ; return 0; }
15428 EOF
15429 if { (eval echo configure:15430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15430 rm -rf conftest*
15431
15432 echo "$ac_t""found in default search path" 1>&6
15433 COMPILED_X_PROGRAM=1
15434
15435 else
15436 echo "configure: failed program was:" >&5
15437 cat conftest.$ac_ext >&5
15438 rm -rf conftest*
15439
15440 echo "$ac_t""no" 1>&6
15441 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15442
15443
15444 fi
15445 rm -f conftest*
15446 fi
15447
15448 if test "$COMPILED_X_PROGRAM" = 0; then
15449 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15450 echo "configure:15451: checking for Motif/Lesstif library" >&5
15451
15452 ac_find_libraries=
15453 for ac_dir in $SEARCH_LIB /usr/lib;
15454 do
15455 for ac_extension in a so sl dylib; do
15456 if test -f "$ac_dir/libXm.$ac_extension"; then
15457 ac_find_libraries=$ac_dir
15458 break 2
15459 fi
15460 done
15461 done
15462
15463 if test "$ac_find_libraries" != "" ; then
15464 echo "$ac_t""found at $ac_find_libraries" 1>&6
15465
15466
15467 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15468 result=$?
15469 if test $result = 0; then
15470 ac_path_to_link=""
15471 else
15472 ac_path_to_link=" -L$ac_find_libraries"
15473 fi
15474
15475 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15476 else
15477 save_CFLAGS=$CFLAGS
15478 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15479
15480 cat > conftest.$ac_ext <<EOF
15481 #line 15482 "configure"
15482 #include "confdefs.h"
15483
15484 #include <Xm/Xm.h>
15485
15486 int main() {
15487
15488 int version;
15489 version = xmUseVersion;
15490
15491 ; return 0; }
15492 EOF
15493 if { (eval echo configure:15494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15494 rm -rf conftest*
15495
15496 echo "$ac_t""found in default search path" 1>&6
15497 COMPILED_X_PROGRAM=1
15498
15499 else
15500 echo "configure: failed program was:" >&5
15501 cat conftest.$ac_ext >&5
15502 rm -rf conftest*
15503
15504 echo "$ac_t""no" 1>&6
15505 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15506
15507
15508 fi
15509 rm -f conftest*
15510
15511 CFLAGS=$save_CFLAGS
15512 fi
15513 fi
15514
15515 xpm_link=
15516 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15517 echo "configure:15518: checking for Xpm library" >&5
15518
15519 ac_find_libraries=
15520 for ac_dir in $SEARCH_LIB /usr/lib;
15521 do
15522 for ac_extension in a so sl dylib; do
15523 if test -f "$ac_dir/libXpm.$ac_extension"; then
15524 ac_find_libraries=$ac_dir
15525 break 2
15526 fi
15527 done
15528 done
15529
15530 if test "$ac_find_libraries" != "" ; then
15531
15532 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15533 result=$?
15534 if test $result = 0; then
15535 ac_path_to_link=""
15536 else
15537 ac_path_to_link=" -L$ac_find_libraries"
15538 fi
15539
15540 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15541
15542 xpm_link=" -lXpm"
15543 cat >> confdefs.h <<\EOF
15544 #define wxHAVE_LIB_XPM 1
15545 EOF
15546
15547 echo "$ac_t""found at $ac_find_libraries" 1>&6
15548 else
15549 save_CFLAGS=$CFLAGS
15550 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15551
15552 cat > conftest.$ac_ext <<EOF
15553 #line 15554 "configure"
15554 #include "confdefs.h"
15555
15556 #include <X11/xpm.h>
15557
15558 int main() {
15559
15560 int version;
15561 version = XpmLibraryVersion();
15562
15563 ; return 0; }
15564 EOF
15565 if { (eval echo configure:15566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15566 rm -rf conftest*
15567
15568 xpm_link=" -lXpm"
15569 cat >> confdefs.h <<\EOF
15570 #define wxHAVE_LIB_XPM 1
15571 EOF
15572
15573 echo "$ac_t""found in default search path" 1>&6
15574 COMPILED_X_PROGRAM=0
15575
15576 else
15577 echo "configure: failed program was:" >&5
15578 cat conftest.$ac_ext >&5
15579 rm -rf conftest*
15580
15581 echo "$ac_t""no" 1>&6
15582 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15583
15584
15585 fi
15586 rm -f conftest*
15587
15588 CFLAGS=$save_CFLAGS
15589 fi
15590
15591 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15592 echo "configure:15593: checking if we need -lXp and/or -lSM -lICE" >&5
15593 libp_link=""
15594 libsm_ice_link=""
15595 libs_found=0
15596 for libp in "" " -lXp"; do
15597 if test "$libs_found" = "0"; then
15598 for libsm_ice in " -lSM -lICE"; do
15599 if test "$libs_found" = "0"; then
15600 save_LIBS="$LIBS"
15601 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15602 save_CFLAGS=$CFLAGS
15603 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15604
15605 cat > conftest.$ac_ext <<EOF
15606 #line 15607 "configure"
15607 #include "confdefs.h"
15608
15609 #include <Xm/Xm.h>
15610 #include <Xm/List.h>
15611
15612 int main() {
15613
15614 XmString string = NULL;
15615 Widget w = NULL;
15616 int position = 0;
15617 XmListAddItem(w, string, position);
15618
15619 ; return 0; }
15620 EOF
15621 if { (eval echo configure:15622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15622 rm -rf conftest*
15623
15624 libp_link="$libp"
15625 libsm_ice_link="$libsm_ice"
15626 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15627 libs_found=1
15628
15629 else
15630 echo "configure: failed program was:" >&5
15631 cat conftest.$ac_ext >&5
15632 rm -rf conftest*
15633
15634
15635 fi
15636 rm -f conftest*
15637
15638 LIBS="$save_LIBS"
15639 CFLAGS=$save_CFLAGS
15640 fi
15641 done
15642 fi
15643 done
15644
15645 if test "$libs_found" = "0"; then
15646 echo "$ac_t""can't find the right libraries" 1>&6
15647 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15648 fi
15649
15650 save_CFLAGS=$CFLAGS
15651 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15652 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
15653 echo "configure:15654: checking for Motif 2" >&5
15654 cat > conftest.$ac_ext <<EOF
15655 #line 15656 "configure"
15656 #include "confdefs.h"
15657
15658 #include <Xm/Xm.h>
15659
15660 int main() {
15661
15662 #if XmVersion < 2000
15663 #error "Not Motif 2"
15664 #endif
15665
15666 ; return 0; }
15667 EOF
15668 if { (eval echo configure:15669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15669 rm -rf conftest*
15670
15671 cat >> confdefs.h <<\EOF
15672 #define __WXMOTIF20__ 1
15673 EOF
15674
15675 echo "$ac_t""found" 1>&6
15676
15677 else
15678 echo "configure: failed program was:" >&5
15679 cat conftest.$ac_ext >&5
15680 rm -rf conftest*
15681
15682 cat >> confdefs.h <<\EOF
15683 #define __WXMOTIF20__ 0
15684 EOF
15685
15686 echo "$ac_t""not found" 1>&6
15687
15688 fi
15689 rm -f conftest*
15690 CFLAGS=$save_CFLAGS
15691
15692 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15693 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
15694 TOOLKIT=MOTIF
15695 GUIDIST=MOTIF_DIST
15696 wxHAVE_XEXT_LIB=1
15697 fi
15698
15699 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
15700 test "$wxHAVE_XEXT_LIB" = 1; then
15701 save_CFLAGS="$CFLAGS"
15702 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15703
15704 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
15705 echo "configure:15706: checking for X11/extensions/shape.h" >&5
15706 cat > conftest.$ac_ext <<EOF
15707 #line 15708 "configure"
15708 #include "confdefs.h"
15709
15710 #include <X11/Xlib.h>
15711 #include <X11/extensions/shape.h>
15712
15713 int main() {
15714
15715 int dummy1, dummy2;
15716 XShapeQueryExtension((Display*)NULL,
15717 (int*)NULL, (int*)NULL);
15718
15719 ; return 0; }
15720 EOF
15721 if { (eval echo configure:15722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15722 rm -rf conftest*
15723
15724 cat >> confdefs.h <<\EOF
15725 #define HAVE_XSHAPE 1
15726 EOF
15727
15728 echo "$ac_t""found" 1>&6
15729
15730 else
15731 echo "configure: failed program was:" >&5
15732 cat conftest.$ac_ext >&5
15733 rm -rf conftest*
15734
15735 echo "$ac_t""not found" 1>&6
15736
15737 fi
15738 rm -f conftest*
15739 CFLAGS="$save_CFLAGS"
15740 fi
15741
15742 if test "$wxUSE_MAC" = 1; then
15743 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15744
15745 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15746 TOOLKIT=MAC
15747 GUIDIST=MACX_DIST
15748 fi
15749
15750 if test "$wxUSE_COCOA" = 1; then
15751 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15752 TOOLKIT=COCOA
15753 GUIDIST=COCOA_DIST
15754 fi
15755
15756 if test "$wxUSE_PM" = 1; then
15757 TOOLKIT=PM
15758 GUIDIST=GTK_DIST
15759 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15760 wxUSE_THREADS="no"
15761 fi
15762
15763 if test "$TOOLKIT" = "PM" ; then
15764 TOOLKIT_DIR="os2"
15765 else
15766 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15767 fi
15768
15769 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15770
15771 if test "$wxUSE_UNIVERSAL" = "yes"; then
15772 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15773
15774 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15775 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15776
15777 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15778 if test "$wxUSE_X11" = 1; then
15779 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15780 else
15781 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15782 fi
15783 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15784 WIDGET_SET=univ
15785 else
15786 ALL_OBJECTS="\$(GUIOBJS)"
15787 ALL_SOURCES="\$(ALL_SOURCES)"
15788 ALL_HEADERS="\$(ALL_HEADERS)"
15789 fi
15790
15791 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15792
15793 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15794 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15795 fi
15796
15797 if test "$wxUSE_HTML" = "yes"; then
15798 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15799 fi
15800
15801 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15802 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15803 fi
15804 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15805 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15806 fi
15807 if test "$wxUSE_LIBPNG" = "builtin" ; then
15808 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15809 fi
15810
15811 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15812 DISTDIR="wx\$(TOOLKIT)"
15813 else
15814 USE_GUI=0
15815
15816 TOOLKIT_DIR="base"
15817
15818 if test "$USE_WIN32" = 1 ; then
15819 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15820 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15821
15822 TOOLKIT="MSW"
15823 else
15824 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15825 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15826 fi
15827
15828 ALL_SOURCES="\$(ALL_SOURCES)"
15829 ALL_HEADERS="\$(ALL_HEADERS)"
15830
15831 PORT_FILES="\${top_srcdir}/src/files.lst"
15832
15833 GUIDIST="BASE_DIST"
15834 DISTDIR="wxBase"
15835 fi
15836
15837
15838
15839
15840 IODBC_C_SRC=""
15841
15842
15843 if test "$TOOLKIT" != "MSW" ; then
15844
15845 if test "$wxUSE_ODBC" != "no" ; then
15846 cat >> confdefs.h <<\EOF
15847 #define wxUSE_ODBC 1
15848 EOF
15849
15850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
15851
15852 WXODBCFLAG="-D_IODBC_"
15853
15854
15855 if test "$wxUSE_ODBC" = "sys" ; then
15856
15857 ac_safe=`echo "sql.h" | sed 'y%./+-%__p_%'`
15858 echo $ac_n "checking for sql.h""... $ac_c" 1>&6
15859 echo "configure:15860: checking for sql.h" >&5
15860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15861 echo $ac_n "(cached) $ac_c" 1>&6
15862 else
15863 cat > conftest.$ac_ext <<EOF
15864 #line 15865 "configure"
15865 #include "confdefs.h"
15866 #include <sql.h>
15867 EOF
15868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15869 { (eval echo configure:15870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15871 if test -z "$ac_err"; then
15872 rm -rf conftest*
15873 eval "ac_cv_header_$ac_safe=yes"
15874 else
15875 echo "$ac_err" >&5
15876 echo "configure: failed program was:" >&5
15877 cat conftest.$ac_ext >&5
15878 rm -rf conftest*
15879 eval "ac_cv_header_$ac_safe=no"
15880 fi
15881 rm -f conftest*
15882 fi
15883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15884 echo "$ac_t""yes" 1>&6
15885 :
15886 else
15887 echo "$ac_t""no" 1>&6
15888 fi
15889
15890
15891 echo $ac_n "checking for library containing SQLAllocEnv""... $ac_c" 1>&6
15892 echo "configure:15893: checking for library containing SQLAllocEnv" >&5
15893 if eval "test \"`echo '$''{'ac_cv_search_SQLAllocEnv'+set}'`\" = set"; then
15894 echo $ac_n "(cached) $ac_c" 1>&6
15895 else
15896 ac_func_search_save_LIBS="$LIBS"
15897 ac_cv_search_SQLAllocEnv="no"
15898 cat > conftest.$ac_ext <<EOF
15899 #line 15900 "configure"
15900 #include "confdefs.h"
15901 /* Override any gcc2 internal prototype to avoid an error. */
15902 /* We use char because int might match the return type of a gcc2
15903 builtin and then its argument prototype would still apply. */
15904 char SQLAllocEnv();
15905
15906 int main() {
15907 SQLAllocEnv()
15908 ; return 0; }
15909 EOF
15910 if { (eval echo configure:15911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15911 rm -rf conftest*
15912 ac_cv_search_SQLAllocEnv="none required"
15913 else
15914 echo "configure: failed program was:" >&5
15915 cat conftest.$ac_ext >&5
15916 fi
15917 rm -f conftest*
15918 test "$ac_cv_search_SQLAllocEnv" = "no" && for i in iodbc unixodbc odbc ; do
15919 LIBS="-l$i $ac_func_search_save_LIBS"
15920 cat > conftest.$ac_ext <<EOF
15921 #line 15922 "configure"
15922 #include "confdefs.h"
15923 /* Override any gcc2 internal prototype to avoid an error. */
15924 /* We use char because int might match the return type of a gcc2
15925 builtin and then its argument prototype would still apply. */
15926 char SQLAllocEnv();
15927
15928 int main() {
15929 SQLAllocEnv()
15930 ; return 0; }
15931 EOF
15932 if { (eval echo configure:15933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15933 rm -rf conftest*
15934 ac_cv_search_SQLAllocEnv="-l$i"
15935 break
15936 else
15937 echo "configure: failed program was:" >&5
15938 cat conftest.$ac_ext >&5
15939 fi
15940 rm -f conftest*
15941 done
15942 LIBS="$ac_func_search_save_LIBS"
15943 fi
15944
15945 echo "$ac_t""$ac_cv_search_SQLAllocEnv" 1>&6
15946 if test "$ac_cv_search_SQLAllocEnv" != "no"; then
15947 test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
15948
15949 else :
15950 wxUSE_ODBC=builtin
15951 fi
15952 fi
15953
15954 fi
15955
15956 if test "$wxUSE_ODBC" != "sys" ; then
15957 echo "configure: warning: can't find system Odbc library falling back to builtin " 1>&2
15958 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15959 fi
15960 fi
15961
15962 if test "$wxUSE_REGEX" = "builtin" ; then
15963 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15964 fi
15965 if test "$wxUSE_ZLIB" = "builtin" ; then
15966 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15967 fi
15968
15969
15970 if test "$wxUSE_OPENGL" = "yes"; then
15971 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
15972 OPENGL_LIBS="-framework OpenGL -framework AGL"
15973 elif test "$wxUSE_MSW" = 1; then
15974 OPENGL_LIBS="-lopengl32 -lglu32"
15975 else
15976 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15977 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15978 echo "configure:15979: checking for GL/gl.h" >&5
15979 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15980 echo $ac_n "(cached) $ac_c" 1>&6
15981 else
15982 cat > conftest.$ac_ext <<EOF
15983 #line 15984 "configure"
15984 #include "confdefs.h"
15985 #include <GL/gl.h>
15986 EOF
15987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15988 { (eval echo configure:15989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15990 if test -z "$ac_err"; then
15991 rm -rf conftest*
15992 eval "ac_cv_header_$ac_safe=yes"
15993 else
15994 echo "$ac_err" >&5
15995 echo "configure: failed program was:" >&5
15996 cat conftest.$ac_ext >&5
15997 rm -rf conftest*
15998 eval "ac_cv_header_$ac_safe=no"
15999 fi
16000 rm -f conftest*
16001 fi
16002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16003 echo "$ac_t""yes" 1>&6
16004
16005 found_gl=0
16006
16007 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
16008 echo "configure:16009: checking for -lGL" >&5
16009
16010 ac_find_libraries=
16011 for ac_dir in $SEARCH_LIB /usr/lib;
16012 do
16013 for ac_extension in a so sl dylib; do
16014 if test -f "$ac_dir/libGL.$ac_extension"; then
16015 ac_find_libraries=$ac_dir
16016 break 2
16017 fi
16018 done
16019 done
16020
16021 if test "$ac_find_libraries" != "" ; then
16022
16023 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16024 result=$?
16025 if test $result = 0; then
16026 ac_path_to_link=""
16027 else
16028 ac_path_to_link=" -L$ac_find_libraries"
16029 fi
16030
16031 if test "$ac_path_to_link" != " -L/usr/lib" ; then
16032 LDFLAGS_GL="$ac_path_to_link"
16033 fi
16034
16035
16036 ac_find_libraries=
16037 for ac_dir in $SEARCH_LIB /usr/lib;
16038 do
16039 for ac_extension in a so sl dylib; do
16040 if test -f "$ac_dir/libGLU.$ac_extension"; then
16041 ac_find_libraries=$ac_dir
16042 break 2
16043 fi
16044 done
16045 done
16046
16047 if test "$ac_find_libraries" != "" ; then
16048
16049 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16050 result=$?
16051 if test $result = 0; then
16052 ac_path_to_link=""
16053 else
16054 ac_path_to_link=" -L$ac_find_libraries"
16055 fi
16056
16057 if test "$ac_path_to_link" != " -L/usr/lib" -a \
16058 "$ac_path_to_link" != "$LDFLAGS_GL"; then
16059 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
16060 fi
16061
16062 found_gl=1
16063 OPENGL_LIBS="-lGL -lGLU"
16064 echo "$ac_t""yes" 1>&6
16065 fi
16066 fi
16067
16068 if "$found_gl" != 1; then
16069 echo "$ac_t""no" 1>&6
16070 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
16071 echo "configure:16072: checking for -lMesaGL" >&5
16072
16073 ac_find_libraries=
16074 for ac_dir in $SEARCH_LIB /usr/lib;
16075 do
16076 for ac_extension in a so sl dylib; do
16077 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
16078 ac_find_libraries=$ac_dir
16079 break 2
16080 fi
16081 done
16082 done
16083
16084 if test "$ac_find_libraries" != "" ; then
16085
16086 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16087 result=$?
16088 if test $result = 0; then
16089 ac_path_to_link=""
16090 else
16091 ac_path_to_link=" -L$ac_find_libraries"
16092 fi
16093
16094 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
16095 OPENGL_LIBS="-lMesaGL -lMesaGLU"
16096 echo "$ac_t""yes" 1>&6
16097 else
16098 echo "$ac_t""no" 1>&6
16099 fi
16100 fi
16101
16102 else
16103 echo "$ac_t""no" 1>&6
16104 fi
16105
16106
16107 if test "x$OPENGL_LIBS" = "x"; then
16108 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
16109 fi
16110 fi
16111
16112 if test "$wxUSE_OPENGL" = "yes"; then
16113 cat >> confdefs.h <<\EOF
16114 #define wxUSE_OPENGL 1
16115 EOF
16116
16117 cat >> confdefs.h <<\EOF
16118 #define wxUSE_GLCANVAS 1
16119 EOF
16120
16121 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
16122 fi
16123 fi
16124
16125 if test -z "$TOOLKIT_VPATH" ; then
16126 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
16127 fi
16128
16129 if test -n "$TOOLKIT" ; then
16130 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
16131 fi
16132
16133 lib_unicode_suffix=
16134 if test "$wxUSE_UNICODE" = "yes"; then
16135 lib_unicode_suffix=u
16136 fi
16137
16138 lib_debug_suffix=
16139 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
16140 lib_debug_suffix=d
16141 fi
16142
16143 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
16144
16145 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
16146 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
16147
16148 if test "$cross_compiling" = "yes"; then
16149 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
16150 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
16151 fi
16152
16153 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
16154 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
16155 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
16156
16157 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16158 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16159
16160 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
16161 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16162 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
16163 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16164
16165 case "${host}" in
16166 *-*-cygwin* | *-*-mingw32* )
16167
16168
16169
16170 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
16171 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16172 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16173 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
16174 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
16175 else
16176 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
16177 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16178 fi
16179 ;;
16180
16181 *-*-darwin* )
16182
16183 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16184 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16185
16186 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16187 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16188 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16189 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16190
16191 if test "$wxUSE_MAC" = 1; then
16192 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16193 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
16194 fi
16195 ;;
16196 esac
16197
16198 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16199 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16200
16201 WXCONFIG_LIBS="-l${WX_LIBRARY}"
16202 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16203
16204 if test "$wxUSE_OPENGL" = "yes"; then
16205 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16206 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16207 fi
16208
16209
16210
16211 if test "$wxUSE_SHARED" = "yes"; then
16212 case "${host}" in
16213 *-pc-os2_emx | *-pc-os2-emx | \
16214 *-pc-msdosdjgpp )
16215 wxUSE_SHARED=no
16216 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
16217 ;;
16218 esac
16219 fi
16220
16221 if test "$wxUSE_SHARED" = "yes"; then
16222
16223 if test "$wxUSE_OPENGL" = "yes"; then
16224 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16225 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16226 else
16227 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16228 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16229 fi
16230
16231 if test "$GCC" = "yes"; then
16232 PIC_FLAG="-fPIC"
16233 fi
16234
16235
16236
16237 found_versioning=no
16238
16239
16240 if test $found_versioning = no ; then
16241 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
16242 echo "configure:16243: checking if the linker accepts --version-script" >&5
16243 if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16244 echo $ac_n "(cached) $ac_c" 1>&6
16245 else
16246
16247 echo "VER_1 { *; };" >conftest.sym
16248 echo "int main() { return 0; }" >conftest.cpp
16249
16250 if { ac_try='
16251 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
16252 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
16253 if test -s conftest.stderr ; then
16254 wx_cv_version_script=no
16255 else
16256 wx_cv_version_script=yes
16257 fi
16258 else
16259 wx_cv_version_script=no
16260 fi
16261 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16262
16263 fi
16264
16265 echo "$ac_t""$wx_cv_version_script" 1>&6
16266 if test $wx_cv_version_script = yes ; then
16267 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16268 fi
16269 fi
16270
16271
16272 SHARED_LD="${CXX} -shared -o"
16273
16274 case "${host}" in
16275 *-hp-hpux* )
16276 if test "$GCC" = "yes"; then
16277 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
16278 else
16279 LDFLAGS="$LDFLAGS -L/usr/lib"
16280
16281 SHARED_LD="${CXX} -b -o"
16282 PIC_FLAG="+Z"
16283 fi
16284
16285 if test "$wxUSE_OPENGL" = "yes"; then
16286 WX_ALL_INSTALLED="preinstall_gl"
16287 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16288 else
16289 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16290 fi
16291 ;;
16292
16293 *-*-linux* )
16294 if test "$GCC" != "yes"; then
16295 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16296 echo "configure:16297: checking for Intel compiler" >&5
16297 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16298 echo $ac_n "(cached) $ac_c" 1>&6
16299 else
16300
16301 cat > conftest.$ac_ext <<EOF
16302 #line 16303 "configure"
16303 #include "confdefs.h"
16304
16305 int main() {
16306
16307 #ifndef __INTEL_COMPILER
16308 #error Not icc
16309 #endif
16310
16311 ; return 0; }
16312 EOF
16313 if { (eval echo configure:16314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16314 rm -rf conftest*
16315 wx_cv_prog_icc=yes
16316 else
16317 echo "configure: failed program was:" >&5
16318 cat conftest.$ac_ext >&5
16319 rm -rf conftest*
16320 wx_cv_prog_icc=no
16321
16322 fi
16323 rm -f conftest*
16324
16325 fi
16326
16327 echo "$ac_t""$wx_cv_prog_icc" 1>&6
16328 if test "$wx_cv_prog_icc" = "yes"; then
16329 PIC_FLAG="-KPIC"
16330 fi
16331 fi
16332
16333 if test "$wxUSE_SONAME" = "yes" ; then
16334 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16335 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16336 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16337 fi
16338 ;;
16339
16340 *-*-solaris2* )
16341 if test "$GCC" = yes ; then
16342 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16343 else
16344 SHARED_LD="${CXX} -G -o"
16345 PIC_FLAG="-KPIC"
16346 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16347 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16348 fi
16349 ;;
16350
16351 *-*-darwin* )
16352 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16353 CFLAGS="$CFLAGS -fno-common"
16354 CXXFLAGS="$CXXFLAGS -fno-common"
16355 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16356 PIC_FLAG="-dynamic -fPIC"
16357 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16358 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16359 ;;
16360
16361 *-*-aix* )
16362 if test "$GCC" != "yes"; then
16363 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16364 set dummy makeC++SharedLib; ac_word=$2
16365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16366 echo "configure:16367: checking for $ac_word" >&5
16367 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16368 echo $ac_n "(cached) $ac_c" 1>&6
16369 else
16370 if test -n "$AIX_CXX_LD"; then
16371 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16372 else
16373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16374 ac_dummy="$PATH"
16375 for ac_dir in $ac_dummy; do
16376 test -z "$ac_dir" && ac_dir=.
16377 if test -f $ac_dir/$ac_word; then
16378 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16379 break
16380 fi
16381 done
16382 IFS="$ac_save_ifs"
16383 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16384 fi
16385 fi
16386 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16387 if test -n "$AIX_CXX_LD"; then
16388 echo "$ac_t""$AIX_CXX_LD" 1>&6
16389 else
16390 echo "$ac_t""no" 1>&6
16391 fi
16392
16393
16394 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16395 fi
16396 ;;
16397
16398 *-*-cygwin* | *-*-mingw32* )
16399 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16400
16401 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16402 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16403
16404 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16405
16406 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16407 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16408
16409 if test "$wxUSE_OPENGL" = "yes"; then
16410 LIBS="${LIBS} ${OPENGL_LIBS}"
16411 fi
16412 ;;
16413
16414 *-*-beos* )
16415 SHARED_LD="${LD} -shared -o"
16416 ;;
16417
16418 *-*-irix* )
16419 if test "$GCC" != "yes"; then
16420 PIC_FLAG="-KPIC"
16421 fi
16422 ;;
16423
16424 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16425 *-*-sunos4* | \
16426 *-*-osf* | \
16427 *-*-dgux5* | \
16428 *-*-sysv5* )
16429 ;;
16430
16431 *)
16432 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16433 esac
16434
16435 if test "x$WX_TARGET_LIBRARY" = "x"; then
16436 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16437 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16438 fi
16439
16440 WX_TARGET_LIBRARY_TYPE="so"
16441 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16442 fi
16443
16444 if test "$wxUSE_SHARED" = "no"; then
16445
16446 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16447 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16448 fi
16449
16450 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
16451 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16452 fi
16453
16454 if test "$wxUSE_OPENGL" = "yes"; then
16455 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16456 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16457 else
16458 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16459 fi
16460
16461 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16462 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16463
16464 WX_TARGET_LIBRARY_TYPE="a"
16465 INSTALL_LIBRARY='$(INSTALL_DATA)'
16466
16467 STATIC_FLAG="yes"
16468 else
16469 STATIC_FLAG="no"
16470 fi
16471
16472 MACRESCOMP="@#"
16473 MACSETFILE="@#"
16474 MACRESWXCONFIG="#"
16475 if test "$wxUSE_MAC" = 1; then
16476 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16477 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16478 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16479 # Extract the first word of "Rez", so it can be a program name with args.
16480 set dummy Rez; ac_word=$2
16481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16482 echo "configure:16483: checking for $ac_word" >&5
16483 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16484 echo $ac_n "(cached) $ac_c" 1>&6
16485 else
16486 if test -n "$RESCOMP"; then
16487 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16488 else
16489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16490 ac_dummy="$PATH"
16491 for ac_dir in $ac_dummy; do
16492 test -z "$ac_dir" && ac_dir=.
16493 if test -f $ac_dir/$ac_word; then
16494 ac_cv_prog_RESCOMP="Rez"
16495 break
16496 fi
16497 done
16498 IFS="$ac_save_ifs"
16499 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16500 fi
16501 fi
16502 RESCOMP="$ac_cv_prog_RESCOMP"
16503 if test -n "$RESCOMP"; then
16504 echo "$ac_t""$RESCOMP" 1>&6
16505 else
16506 echo "$ac_t""no" 1>&6
16507 fi
16508
16509 # Extract the first word of "DeRez", so it can be a program name with args.
16510 set dummy DeRez; ac_word=$2
16511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16512 echo "configure:16513: checking for $ac_word" >&5
16513 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16514 echo $ac_n "(cached) $ac_c" 1>&6
16515 else
16516 if test -n "$DEREZ"; then
16517 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16518 else
16519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16520 ac_dummy="$PATH"
16521 for ac_dir in $ac_dummy; do
16522 test -z "$ac_dir" && ac_dir=.
16523 if test -f $ac_dir/$ac_word; then
16524 ac_cv_prog_DEREZ="DeRez"
16525 break
16526 fi
16527 done
16528 IFS="$ac_save_ifs"
16529 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16530 fi
16531 fi
16532 DEREZ="$ac_cv_prog_DEREZ"
16533 if test -n "$DEREZ"; then
16534 echo "$ac_t""$DEREZ" 1>&6
16535 else
16536 echo "$ac_t""no" 1>&6
16537 fi
16538
16539 # Extract the first word of "SetFile", so it can be a program name with args.
16540 set dummy SetFile; ac_word=$2
16541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16542 echo "configure:16543: checking for $ac_word" >&5
16543 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16544 echo $ac_n "(cached) $ac_c" 1>&6
16545 else
16546 if test -n "$SETFILE"; then
16547 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16548 else
16549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16550 ac_dummy="$PATH"
16551 for ac_dir in $ac_dummy; do
16552 test -z "$ac_dir" && ac_dir=.
16553 if test -f $ac_dir/$ac_word; then
16554 ac_cv_prog_SETFILE="SetFile"
16555 break
16556 fi
16557 done
16558 IFS="$ac_save_ifs"
16559 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16560 fi
16561 fi
16562 SETFILE="$ac_cv_prog_SETFILE"
16563 if test -n "$SETFILE"; then
16564 echo "$ac_t""$SETFILE" 1>&6
16565 else
16566 echo "$ac_t""no" 1>&6
16567 fi
16568
16569 MACOSX_BUNDLE="bundle"
16570 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16571 MACSETFILE="\$(SETFILE)"
16572 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16573 elif test "$wxUSE_COCOA" = 1; then
16574 # Extract the first word of "Rez", so it can be a program name with args.
16575 set dummy Rez; ac_word=$2
16576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16577 echo "configure:16578: checking for $ac_word" >&5
16578 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16579 echo $ac_n "(cached) $ac_c" 1>&6
16580 else
16581 if test -n "$RESCOMP"; then
16582 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16583 else
16584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16585 ac_dummy="$PATH"
16586 for ac_dir in $ac_dummy; do
16587 test -z "$ac_dir" && ac_dir=.
16588 if test -f $ac_dir/$ac_word; then
16589 ac_cv_prog_RESCOMP="Rez"
16590 break
16591 fi
16592 done
16593 IFS="$ac_save_ifs"
16594 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16595 fi
16596 fi
16597 RESCOMP="$ac_cv_prog_RESCOMP"
16598 if test -n "$RESCOMP"; then
16599 echo "$ac_t""$RESCOMP" 1>&6
16600 else
16601 echo "$ac_t""no" 1>&6
16602 fi
16603
16604 # Extract the first word of "DeRez", so it can be a program name with args.
16605 set dummy DeRez; ac_word=$2
16606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16607 echo "configure:16608: checking for $ac_word" >&5
16608 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16609 echo $ac_n "(cached) $ac_c" 1>&6
16610 else
16611 if test -n "$DEREZ"; then
16612 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16613 else
16614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16615 ac_dummy="$PATH"
16616 for ac_dir in $ac_dummy; do
16617 test -z "$ac_dir" && ac_dir=.
16618 if test -f $ac_dir/$ac_word; then
16619 ac_cv_prog_DEREZ="DeRez"
16620 break
16621 fi
16622 done
16623 IFS="$ac_save_ifs"
16624 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16625 fi
16626 fi
16627 DEREZ="$ac_cv_prog_DEREZ"
16628 if test -n "$DEREZ"; then
16629 echo "$ac_t""$DEREZ" 1>&6
16630 else
16631 echo "$ac_t""no" 1>&6
16632 fi
16633
16634 # Extract the first word of "SetFile", so it can be a program name with args.
16635 set dummy SetFile; ac_word=$2
16636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16637 echo "configure:16638: checking for $ac_word" >&5
16638 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16639 echo $ac_n "(cached) $ac_c" 1>&6
16640 else
16641 if test -n "$SETFILE"; then
16642 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16643 else
16644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16645 ac_dummy="$PATH"
16646 for ac_dir in $ac_dummy; do
16647 test -z "$ac_dir" && ac_dir=.
16648 if test -f $ac_dir/$ac_word; then
16649 ac_cv_prog_SETFILE="SetFile"
16650 break
16651 fi
16652 done
16653 IFS="$ac_save_ifs"
16654 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16655 fi
16656 fi
16657 SETFILE="$ac_cv_prog_SETFILE"
16658 if test -n "$SETFILE"; then
16659 echo "$ac_t""$SETFILE" 1>&6
16660 else
16661 echo "$ac_t""no" 1>&6
16662 fi
16663
16664 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
16665 MACSETFILE="\$(SETFILE)"
16666 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16667 else
16668 if test "$wxUSE_PM" = 1; then
16669 MACRESCOMP="emxbind -ep"
16670 fi
16671 fi
16672
16673
16674 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16675 echo "configure:16676: checking for ANSI C header files" >&5
16676 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16677 echo $ac_n "(cached) $ac_c" 1>&6
16678 else
16679 cat > conftest.$ac_ext <<EOF
16680 #line 16681 "configure"
16681 #include "confdefs.h"
16682 #include <stdlib.h>
16683 #include <stdarg.h>
16684 #include <string.h>
16685 #include <float.h>
16686 EOF
16687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16688 { (eval echo configure:16689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16690 if test -z "$ac_err"; then
16691 rm -rf conftest*
16692 ac_cv_header_stdc=yes
16693 else
16694 echo "$ac_err" >&5
16695 echo "configure: failed program was:" >&5
16696 cat conftest.$ac_ext >&5
16697 rm -rf conftest*
16698 ac_cv_header_stdc=no
16699 fi
16700 rm -f conftest*
16701
16702 if test $ac_cv_header_stdc = yes; then
16703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16704 cat > conftest.$ac_ext <<EOF
16705 #line 16706 "configure"
16706 #include "confdefs.h"
16707 #include <string.h>
16708 EOF
16709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16710 egrep "memchr" >/dev/null 2>&1; then
16711 :
16712 else
16713 rm -rf conftest*
16714 ac_cv_header_stdc=no
16715 fi
16716 rm -f conftest*
16717
16718 fi
16719
16720 if test $ac_cv_header_stdc = yes; then
16721 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16722 cat > conftest.$ac_ext <<EOF
16723 #line 16724 "configure"
16724 #include "confdefs.h"
16725 #include <stdlib.h>
16726 EOF
16727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16728 egrep "free" >/dev/null 2>&1; then
16729 :
16730 else
16731 rm -rf conftest*
16732 ac_cv_header_stdc=no
16733 fi
16734 rm -f conftest*
16735
16736 fi
16737
16738 if test $ac_cv_header_stdc = yes; then
16739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16740 if test "$cross_compiling" = yes; then
16741 :
16742 else
16743 cat > conftest.$ac_ext <<EOF
16744 #line 16745 "configure"
16745 #include "confdefs.h"
16746 #include <ctype.h>
16747 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16748 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16749 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16750 int main () { int i; for (i = 0; i < 256; i++)
16751 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16752 exit (0); }
16753
16754 EOF
16755 if { (eval echo configure:16756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16756 then
16757 :
16758 else
16759 echo "configure: failed program was:" >&5
16760 cat conftest.$ac_ext >&5
16761 rm -fr conftest*
16762 ac_cv_header_stdc=no
16763 fi
16764 rm -fr conftest*
16765 fi
16766
16767 fi
16768 fi
16769
16770 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16771 if test $ac_cv_header_stdc = yes; then
16772 cat >> confdefs.h <<\EOF
16773 #define STDC_HEADERS 1
16774 EOF
16775
16776 fi
16777
16778 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16779 echo "configure:16780: checking for mode_t" >&5
16780 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16781 echo $ac_n "(cached) $ac_c" 1>&6
16782 else
16783 cat > conftest.$ac_ext <<EOF
16784 #line 16785 "configure"
16785 #include "confdefs.h"
16786 #include <sys/types.h>
16787 #if STDC_HEADERS
16788 #include <stdlib.h>
16789 #include <stddef.h>
16790 #endif
16791 EOF
16792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16793 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16794 rm -rf conftest*
16795 ac_cv_type_mode_t=yes
16796 else
16797 rm -rf conftest*
16798 ac_cv_type_mode_t=no
16799 fi
16800 rm -f conftest*
16801
16802 fi
16803 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16804 if test $ac_cv_type_mode_t = no; then
16805 cat >> confdefs.h <<\EOF
16806 #define mode_t int
16807 EOF
16808
16809 fi
16810
16811 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16812 echo "configure:16813: checking for off_t" >&5
16813 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16814 echo $ac_n "(cached) $ac_c" 1>&6
16815 else
16816 cat > conftest.$ac_ext <<EOF
16817 #line 16818 "configure"
16818 #include "confdefs.h"
16819 #include <sys/types.h>
16820 #if STDC_HEADERS
16821 #include <stdlib.h>
16822 #include <stddef.h>
16823 #endif
16824 EOF
16825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16826 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16827 rm -rf conftest*
16828 ac_cv_type_off_t=yes
16829 else
16830 rm -rf conftest*
16831 ac_cv_type_off_t=no
16832 fi
16833 rm -f conftest*
16834
16835 fi
16836 echo "$ac_t""$ac_cv_type_off_t" 1>&6
16837 if test $ac_cv_type_off_t = no; then
16838 cat >> confdefs.h <<\EOF
16839 #define off_t long
16840 EOF
16841
16842 fi
16843
16844 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16845 echo "configure:16846: checking for pid_t" >&5
16846 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16847 echo $ac_n "(cached) $ac_c" 1>&6
16848 else
16849 cat > conftest.$ac_ext <<EOF
16850 #line 16851 "configure"
16851 #include "confdefs.h"
16852 #include <sys/types.h>
16853 #if STDC_HEADERS
16854 #include <stdlib.h>
16855 #include <stddef.h>
16856 #endif
16857 EOF
16858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16859 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16860 rm -rf conftest*
16861 ac_cv_type_pid_t=yes
16862 else
16863 rm -rf conftest*
16864 ac_cv_type_pid_t=no
16865 fi
16866 rm -f conftest*
16867
16868 fi
16869 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16870 if test $ac_cv_type_pid_t = no; then
16871 cat >> confdefs.h <<\EOF
16872 #define pid_t int
16873 EOF
16874
16875 fi
16876
16877 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16878 echo "configure:16879: checking for size_t" >&5
16879 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16880 echo $ac_n "(cached) $ac_c" 1>&6
16881 else
16882 cat > conftest.$ac_ext <<EOF
16883 #line 16884 "configure"
16884 #include "confdefs.h"
16885 #include <sys/types.h>
16886 #if STDC_HEADERS
16887 #include <stdlib.h>
16888 #include <stddef.h>
16889 #endif
16890 EOF
16891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16892 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16893 rm -rf conftest*
16894 ac_cv_type_size_t=yes
16895 else
16896 rm -rf conftest*
16897 ac_cv_type_size_t=no
16898 fi
16899 rm -f conftest*
16900
16901 fi
16902 echo "$ac_t""$ac_cv_type_size_t" 1>&6
16903 if test $ac_cv_type_size_t = no; then
16904 cat >> confdefs.h <<\EOF
16905 #define size_t unsigned
16906 EOF
16907
16908 fi
16909
16910 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16911 echo "configure:16912: checking for uid_t in sys/types.h" >&5
16912 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16913 echo $ac_n "(cached) $ac_c" 1>&6
16914 else
16915 cat > conftest.$ac_ext <<EOF
16916 #line 16917 "configure"
16917 #include "confdefs.h"
16918 #include <sys/types.h>
16919 EOF
16920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16921 egrep "uid_t" >/dev/null 2>&1; then
16922 rm -rf conftest*
16923 ac_cv_type_uid_t=yes
16924 else
16925 rm -rf conftest*
16926 ac_cv_type_uid_t=no
16927 fi
16928 rm -f conftest*
16929
16930 fi
16931
16932 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16933 if test $ac_cv_type_uid_t = no; then
16934 cat >> confdefs.h <<\EOF
16935 #define uid_t int
16936 EOF
16937
16938 cat >> confdefs.h <<\EOF
16939 #define gid_t int
16940 EOF
16941
16942 fi
16943
16944
16945
16946 ac_ext=C
16947 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16948 ac_cpp='$CXXCPP $CPPFLAGS'
16949 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16950 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16951 cross_compiling=$ac_cv_prog_cxx_cross
16952
16953 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16954 echo "configure:16955: checking if size_t is unsigned int" >&5
16955 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16956 echo $ac_n "(cached) $ac_c" 1>&6
16957 else
16958
16959 cat > conftest.$ac_ext <<EOF
16960 #line 16961 "configure"
16961 #include "confdefs.h"
16962 #include <stddef.h>
16963 int main() {
16964
16965 return 0; }
16966
16967 struct Foo { void foo(size_t); void foo(unsigned int); };
16968
16969 int bar() {
16970
16971 ; return 0; }
16972 EOF
16973 if { (eval echo configure:16974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16974 rm -rf conftest*
16975 wx_cv_size_t_is_uint=no
16976 else
16977 echo "configure: failed program was:" >&5
16978 cat conftest.$ac_ext >&5
16979 rm -rf conftest*
16980 wx_cv_size_t_is_uint=yes
16981
16982 fi
16983 rm -f conftest*
16984
16985
16986 fi
16987
16988 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16989
16990 if test "$wx_cv_size_t_is_uint" = "yes"; then
16991 cat >> confdefs.h <<\EOF
16992 #define wxSIZE_T_IS_UINT 1
16993 EOF
16994
16995 else
16996 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16997 echo "configure:16998: checking if size_t is unsigned long" >&5
16998 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16999 echo $ac_n "(cached) $ac_c" 1>&6
17000 else
17001 cat > conftest.$ac_ext <<EOF
17002 #line 17003 "configure"
17003 #include "confdefs.h"
17004 #include <stddef.h>
17005 int main() {
17006
17007 return 0; }
17008
17009 struct Foo { void foo(size_t); void foo(unsigned long); };
17010
17011 int bar() {
17012
17013 ; return 0; }
17014 EOF
17015 if { (eval echo configure:17016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17016 rm -rf conftest*
17017 wx_cv_size_t_is_ulong=no
17018 else
17019 echo "configure: failed program was:" >&5
17020 cat conftest.$ac_ext >&5
17021 rm -rf conftest*
17022 wx_cv_size_t_is_ulong=yes
17023
17024 fi
17025 rm -f conftest*
17026
17027 fi
17028
17029 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
17030
17031 if test "$wx_cv_size_t_is_ulong" = "yes"; then
17032 cat >> confdefs.h <<\EOF
17033 #define wxSIZE_T_IS_ULONG 1
17034 EOF
17035
17036 fi
17037 fi
17038
17039 ac_ext=c
17040 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17041 ac_cpp='$CPP $CPPFLAGS'
17042 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17043 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17044 cross_compiling=$ac_cv_prog_cc_cross
17045
17046
17047
17048 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
17049 echo "configure:17050: checking for pw_gecos in struct passwd" >&5
17050 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
17051 echo $ac_n "(cached) $ac_c" 1>&6
17052 else
17053
17054 cat > conftest.$ac_ext <<EOF
17055 #line 17056 "configure"
17056 #include "confdefs.h"
17057 #include <pwd.h>
17058 int main() {
17059
17060 char *p;
17061 struct passwd *pw;
17062 p = pw->pw_gecos;
17063
17064 ; return 0; }
17065 EOF
17066 if { (eval echo configure:17067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17067 rm -rf conftest*
17068
17069 wx_cv_struct_pw_gecos=yes
17070
17071 else
17072 echo "configure: failed program was:" >&5
17073 cat conftest.$ac_ext >&5
17074 rm -rf conftest*
17075
17076 wx_cv_struct_pw_gecos=no
17077
17078
17079 fi
17080 rm -f conftest*
17081
17082
17083 fi
17084
17085 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
17086
17087 if test "$wx_cv_struct_pw_gecos" = "yes"; then
17088 cat >> confdefs.h <<\EOF
17089 #define HAVE_PW_GECOS 1
17090 EOF
17091
17092 fi
17093
17094
17095 if test "$wx_cv_sizeof_wchar_t" != "0"; then
17096 cat >> confdefs.h <<\EOF
17097 #define wxUSE_WCHAR_T 1
17098 EOF
17099
17100
17101 WCSLEN_FOUND=0
17102 WCHAR_LINK=
17103 for ac_func in wcslen
17104 do
17105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17106 echo "configure:17107: checking for $ac_func" >&5
17107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17108 echo $ac_n "(cached) $ac_c" 1>&6
17109 else
17110 cat > conftest.$ac_ext <<EOF
17111 #line 17112 "configure"
17112 #include "confdefs.h"
17113 /* System header to define __stub macros and hopefully few prototypes,
17114 which can conflict with char $ac_func(); below. */
17115 #include <assert.h>
17116 /* Override any gcc2 internal prototype to avoid an error. */
17117 /* We use char because int might match the return type of a gcc2
17118 builtin and then its argument prototype would still apply. */
17119 char $ac_func();
17120
17121 int main() {
17122
17123 /* The GNU C library defines this for functions which it implements
17124 to always fail with ENOSYS. Some functions are actually named
17125 something starting with __ and the normal name is an alias. */
17126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17127 choke me
17128 #else
17129 $ac_func();
17130 #endif
17131
17132 ; return 0; }
17133 EOF
17134 if { (eval echo configure:17135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17135 rm -rf conftest*
17136 eval "ac_cv_func_$ac_func=yes"
17137 else
17138 echo "configure: failed program was:" >&5
17139 cat conftest.$ac_ext >&5
17140 rm -rf conftest*
17141 eval "ac_cv_func_$ac_func=no"
17142 fi
17143 rm -f conftest*
17144 fi
17145
17146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17147 echo "$ac_t""yes" 1>&6
17148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17149 cat >> confdefs.h <<EOF
17150 #define $ac_tr_func 1
17151 EOF
17152 WCSLEN_FOUND=1
17153 else
17154 echo "$ac_t""no" 1>&6
17155 fi
17156 done
17157
17158
17159 if test "$WCSLEN_FOUND" = 0; then
17160 if test "$TOOLKIT" = "MSW"; then
17161 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
17162 echo "configure:17163: checking for wcslen in -lmsvcrt" >&5
17163 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
17164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17165 echo $ac_n "(cached) $ac_c" 1>&6
17166 else
17167 ac_save_LIBS="$LIBS"
17168 LIBS="-lmsvcrt $LIBS"
17169 cat > conftest.$ac_ext <<EOF
17170 #line 17171 "configure"
17171 #include "confdefs.h"
17172 /* Override any gcc2 internal prototype to avoid an error. */
17173 /* We use char because int might match the return type of a gcc2
17174 builtin and then its argument prototype would still apply. */
17175 char wcslen();
17176
17177 int main() {
17178 wcslen()
17179 ; return 0; }
17180 EOF
17181 if { (eval echo configure:17182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17182 rm -rf conftest*
17183 eval "ac_cv_lib_$ac_lib_var=yes"
17184 else
17185 echo "configure: failed program was:" >&5
17186 cat conftest.$ac_ext >&5
17187 rm -rf conftest*
17188 eval "ac_cv_lib_$ac_lib_var=no"
17189 fi
17190 rm -f conftest*
17191 LIBS="$ac_save_LIBS"
17192
17193 fi
17194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17195 echo "$ac_t""yes" 1>&6
17196 WCHAR_OK=1
17197 else
17198 echo "$ac_t""no" 1>&6
17199 fi
17200
17201 else
17202 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
17203 echo "configure:17204: checking for wcslen in -lw" >&5
17204 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17206 echo $ac_n "(cached) $ac_c" 1>&6
17207 else
17208 ac_save_LIBS="$LIBS"
17209 LIBS="-lw $LIBS"
17210 cat > conftest.$ac_ext <<EOF
17211 #line 17212 "configure"
17212 #include "confdefs.h"
17213 /* Override any gcc2 internal prototype to avoid an error. */
17214 /* We use char because int might match the return type of a gcc2
17215 builtin and then its argument prototype would still apply. */
17216 char wcslen();
17217
17218 int main() {
17219 wcslen()
17220 ; return 0; }
17221 EOF
17222 if { (eval echo configure:17223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17223 rm -rf conftest*
17224 eval "ac_cv_lib_$ac_lib_var=yes"
17225 else
17226 echo "configure: failed program was:" >&5
17227 cat conftest.$ac_ext >&5
17228 rm -rf conftest*
17229 eval "ac_cv_lib_$ac_lib_var=no"
17230 fi
17231 rm -f conftest*
17232 LIBS="$ac_save_LIBS"
17233
17234 fi
17235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17236 echo "$ac_t""yes" 1>&6
17237
17238 WCHAR_LINK=" -lw"
17239 WCSLEN_FOUND=1
17240
17241 else
17242 echo "$ac_t""no" 1>&6
17243 fi
17244
17245 fi
17246 fi
17247
17248 if test "$WCSLEN_FOUND" = 1; then
17249 cat >> confdefs.h <<\EOF
17250 #define HAVE_WCSLEN 1
17251 EOF
17252
17253 fi
17254
17255 for ac_func in wcsrtombs
17256 do
17257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17258 echo "configure:17259: checking for $ac_func" >&5
17259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17260 echo $ac_n "(cached) $ac_c" 1>&6
17261 else
17262 cat > conftest.$ac_ext <<EOF
17263 #line 17264 "configure"
17264 #include "confdefs.h"
17265 /* System header to define __stub macros and hopefully few prototypes,
17266 which can conflict with char $ac_func(); below. */
17267 #include <assert.h>
17268 /* Override any gcc2 internal prototype to avoid an error. */
17269 /* We use char because int might match the return type of a gcc2
17270 builtin and then its argument prototype would still apply. */
17271 char $ac_func();
17272
17273 int main() {
17274
17275 /* The GNU C library defines this for functions which it implements
17276 to always fail with ENOSYS. Some functions are actually named
17277 something starting with __ and the normal name is an alias. */
17278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17279 choke me
17280 #else
17281 $ac_func();
17282 #endif
17283
17284 ; return 0; }
17285 EOF
17286 if { (eval echo configure:17287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17287 rm -rf conftest*
17288 eval "ac_cv_func_$ac_func=yes"
17289 else
17290 echo "configure: failed program was:" >&5
17291 cat conftest.$ac_ext >&5
17292 rm -rf conftest*
17293 eval "ac_cv_func_$ac_func=no"
17294 fi
17295 rm -f conftest*
17296 fi
17297
17298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17299 echo "$ac_t""yes" 1>&6
17300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17301 cat >> confdefs.h <<EOF
17302 #define $ac_tr_func 1
17303 EOF
17304
17305 else
17306 echo "$ac_t""no" 1>&6
17307 fi
17308 done
17309
17310 else
17311 echo "configure: warning: Wide character support is unavailable" 1>&2
17312 fi
17313
17314
17315 ac_ext=C
17316 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17317 ac_cpp='$CXXCPP $CPPFLAGS'
17318 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17319 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17320 cross_compiling=$ac_cv_prog_cxx_cross
17321
17322
17323 for ac_func in vsnprintf
17324 do
17325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17326 echo "configure:17327: checking for $ac_func" >&5
17327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17328 echo $ac_n "(cached) $ac_c" 1>&6
17329 else
17330 cat > conftest.$ac_ext <<EOF
17331 #line 17332 "configure"
17332 #include "confdefs.h"
17333 /* System header to define __stub macros and hopefully few prototypes,
17334 which can conflict with char $ac_func(); below. */
17335 #include <assert.h>
17336 /* Override any gcc2 internal prototype to avoid an error. */
17337 #ifdef __cplusplus
17338 extern "C"
17339 #endif
17340 /* We use char because int might match the return type of a gcc2
17341 builtin and then its argument prototype would still apply. */
17342 char $ac_func();
17343
17344 int main() {
17345
17346 /* The GNU C library defines this for functions which it implements
17347 to always fail with ENOSYS. Some functions are actually named
17348 something starting with __ and the normal name is an alias. */
17349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17350 choke me
17351 #else
17352 $ac_func();
17353 #endif
17354
17355 ; return 0; }
17356 EOF
17357 if { (eval echo configure:17358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17358 rm -rf conftest*
17359 eval "ac_cv_func_$ac_func=yes"
17360 else
17361 echo "configure: failed program was:" >&5
17362 cat conftest.$ac_ext >&5
17363 rm -rf conftest*
17364 eval "ac_cv_func_$ac_func=no"
17365 fi
17366 rm -f conftest*
17367 fi
17368
17369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17370 echo "$ac_t""yes" 1>&6
17371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17372 cat >> confdefs.h <<EOF
17373 #define $ac_tr_func 1
17374 EOF
17375
17376 else
17377 echo "$ac_t""no" 1>&6
17378 fi
17379 done
17380
17381
17382 if test "$ac_cv_func_vsnprintf" = "yes"; then
17383 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
17384 echo "configure:17385: checking for vsnprintf declaration" >&5
17385 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17386 echo $ac_n "(cached) $ac_c" 1>&6
17387 else
17388
17389 cat > conftest.$ac_ext <<EOF
17390 #line 17391 "configure"
17391 #include "confdefs.h"
17392
17393 #include <stdio.h>
17394 #include <stdarg.h>
17395
17396 int main() {
17397
17398 char *buf;
17399 va_list ap;
17400 vsnprintf(buf, 10u, "%s", ap);
17401
17402 ; return 0; }
17403 EOF
17404 if { (eval echo configure:17405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17405 rm -rf conftest*
17406 wx_cv_func_vsnprintf_decl=yes
17407 else
17408 echo "configure: failed program was:" >&5
17409 cat conftest.$ac_ext >&5
17410 rm -rf conftest*
17411 wx_cv_func_vsnprintf_decl=no
17412
17413 fi
17414 rm -f conftest*
17415
17416
17417 fi
17418
17419 echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17420
17421 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17422 cat >> confdefs.h <<\EOF
17423 #define HAVE_VSNPRINTF_DECL 1
17424 EOF
17425
17426 fi
17427 fi
17428
17429 if test "$wxUSE_UNICODE" = yes; then
17430 for ac_func in fputwc wprintf vswprintf
17431 do
17432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17433 echo "configure:17434: checking for $ac_func" >&5
17434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17435 echo $ac_n "(cached) $ac_c" 1>&6
17436 else
17437 cat > conftest.$ac_ext <<EOF
17438 #line 17439 "configure"
17439 #include "confdefs.h"
17440 /* System header to define __stub macros and hopefully few prototypes,
17441 which can conflict with char $ac_func(); below. */
17442 #include <assert.h>
17443 /* Override any gcc2 internal prototype to avoid an error. */
17444 #ifdef __cplusplus
17445 extern "C"
17446 #endif
17447 /* We use char because int might match the return type of a gcc2
17448 builtin and then its argument prototype would still apply. */
17449 char $ac_func();
17450
17451 int main() {
17452
17453 /* The GNU C library defines this for functions which it implements
17454 to always fail with ENOSYS. Some functions are actually named
17455 something starting with __ and the normal name is an alias. */
17456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17457 choke me
17458 #else
17459 $ac_func();
17460 #endif
17461
17462 ; return 0; }
17463 EOF
17464 if { (eval echo configure:17465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17465 rm -rf conftest*
17466 eval "ac_cv_func_$ac_func=yes"
17467 else
17468 echo "configure: failed program was:" >&5
17469 cat conftest.$ac_ext >&5
17470 rm -rf conftest*
17471 eval "ac_cv_func_$ac_func=no"
17472 fi
17473 rm -f conftest*
17474 fi
17475
17476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17477 echo "$ac_t""yes" 1>&6
17478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17479 cat >> confdefs.h <<EOF
17480 #define $ac_tr_func 1
17481 EOF
17482
17483 else
17484 echo "$ac_t""no" 1>&6
17485 fi
17486 done
17487
17488
17489 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17490 echo "configure:17491: checking for _vsnwprintf" >&5
17491 cat > conftest.$ac_ext <<EOF
17492 #line 17493 "configure"
17493 #include "confdefs.h"
17494 #include <wchar.h>
17495 int main() {
17496 &_vsnwprintf;
17497 ; return 0; }
17498 EOF
17499 if { (eval echo configure:17500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17500 rm -rf conftest*
17501 echo "$ac_t""yes" 1>&6
17502 cat >> confdefs.h <<\EOF
17503 #define HAVE__VSNWPRINTF 1
17504 EOF
17505
17506 else
17507 echo "configure: failed program was:" >&5
17508 cat conftest.$ac_ext >&5
17509 rm -rf conftest*
17510 echo "$ac_t""no" 1>&6
17511 fi
17512 rm -f conftest*;
17513 fi
17514
17515 ac_ext=c
17516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17517 ac_cpp='$CPP $CPPFLAGS'
17518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17520 cross_compiling=$ac_cv_prog_cc_cross
17521
17522
17523
17524
17525 if test "$TOOLKIT" != "MSW"; then
17526
17527
17528
17529 ac_ext=C
17530 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17531 ac_cpp='$CXXCPP $CPPFLAGS'
17532 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17533 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17534 cross_compiling=$ac_cv_prog_cxx_cross
17535
17536
17537
17538 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17539 if test "${with_libiconv_prefix+set}" = set; then
17540 withval="$with_libiconv_prefix"
17541
17542 for dir in `echo "$withval" | tr : ' '`; do
17543 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17544 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17545 done
17546
17547 fi
17548
17549
17550 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17551 echo "configure:17552: checking for iconv" >&5
17552 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17553 echo $ac_n "(cached) $ac_c" 1>&6
17554 else
17555
17556 am_cv_func_iconv="no, consider installing GNU libiconv"
17557 am_cv_lib_iconv=no
17558 cat > conftest.$ac_ext <<EOF
17559 #line 17560 "configure"
17560 #include "confdefs.h"
17561 #include <stdlib.h>
17562 #include <iconv.h>
17563 int main() {
17564 iconv_t cd = iconv_open("","");
17565 iconv(cd,NULL,NULL,NULL,NULL);
17566 iconv_close(cd);
17567 ; return 0; }
17568 EOF
17569 if { (eval echo configure:17570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17570 rm -rf conftest*
17571 am_cv_func_iconv=yes
17572 else
17573 echo "configure: failed program was:" >&5
17574 cat conftest.$ac_ext >&5
17575 fi
17576 rm -f conftest*
17577 if test "$am_cv_func_iconv" != yes; then
17578 am_save_LIBS="$LIBS"
17579 LIBS="$LIBS -liconv"
17580 cat > conftest.$ac_ext <<EOF
17581 #line 17582 "configure"
17582 #include "confdefs.h"
17583 #include <stdlib.h>
17584 #include <iconv.h>
17585 int main() {
17586 iconv_t cd = iconv_open("","");
17587 iconv(cd,NULL,NULL,NULL,NULL);
17588 iconv_close(cd);
17589 ; return 0; }
17590 EOF
17591 if { (eval echo configure:17592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17592 rm -rf conftest*
17593 am_cv_lib_iconv=yes
17594 am_cv_func_iconv=yes
17595 else
17596 echo "configure: failed program was:" >&5
17597 cat conftest.$ac_ext >&5
17598 fi
17599 rm -f conftest*
17600 LIBS="$am_save_LIBS"
17601 fi
17602
17603 fi
17604
17605 echo "$ac_t""$am_cv_func_iconv" 1>&6
17606 if test "$am_cv_func_iconv" = yes; then
17607 cat >> confdefs.h <<\EOF
17608 #define HAVE_ICONV 1
17609 EOF
17610
17611 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17612 echo "configure:17613: checking if iconv needs const" >&5
17613 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17614 echo $ac_n "(cached) $ac_c" 1>&6
17615 else
17616 cat > conftest.$ac_ext <<EOF
17617 #line 17618 "configure"
17618 #include "confdefs.h"
17619
17620 #include <stdlib.h>
17621 #include <iconv.h>
17622 extern
17623 #ifdef __cplusplus
17624 "C"
17625 #endif
17626 #if defined(__STDC__) || defined(__cplusplus)
17627 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17628 #else
17629 size_t iconv();
17630 #endif
17631
17632 int main() {
17633
17634 ; return 0; }
17635 EOF
17636 if { (eval echo configure:17637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17637 rm -rf conftest*
17638 wx_cv_func_iconv_const="no"
17639 else
17640 echo "configure: failed program was:" >&5
17641 cat conftest.$ac_ext >&5
17642 rm -rf conftest*
17643 wx_cv_func_iconv_const="yes"
17644
17645 fi
17646 rm -f conftest*
17647
17648 fi
17649
17650 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17651
17652 iconv_const=
17653 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17654 iconv_const="const"
17655 fi
17656
17657 cat >> confdefs.h <<EOF
17658 #define ICONV_CONST $iconv_const
17659 EOF
17660
17661 fi
17662 LIBICONV=
17663 if test "$am_cv_lib_iconv" = yes; then
17664 LIBICONV="-liconv"
17665 fi
17666
17667
17668 LIBS="$LIBICONV $LIBS"
17669 ac_ext=c
17670 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17671 ac_cpp='$CPP $CPPFLAGS'
17672 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17673 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17674 cross_compiling=$ac_cv_prog_cc_cross
17675
17676
17677 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17678 for ac_func in sigaction
17679 do
17680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17681 echo "configure:17682: checking for $ac_func" >&5
17682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17683 echo $ac_n "(cached) $ac_c" 1>&6
17684 else
17685 cat > conftest.$ac_ext <<EOF
17686 #line 17687 "configure"
17687 #include "confdefs.h"
17688 /* System header to define __stub macros and hopefully few prototypes,
17689 which can conflict with char $ac_func(); below. */
17690 #include <assert.h>
17691 /* Override any gcc2 internal prototype to avoid an error. */
17692 /* We use char because int might match the return type of a gcc2
17693 builtin and then its argument prototype would still apply. */
17694 char $ac_func();
17695
17696 int main() {
17697
17698 /* The GNU C library defines this for functions which it implements
17699 to always fail with ENOSYS. Some functions are actually named
17700 something starting with __ and the normal name is an alias. */
17701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17702 choke me
17703 #else
17704 $ac_func();
17705 #endif
17706
17707 ; return 0; }
17708 EOF
17709 if { (eval echo configure:17710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17710 rm -rf conftest*
17711 eval "ac_cv_func_$ac_func=yes"
17712 else
17713 echo "configure: failed program was:" >&5
17714 cat conftest.$ac_ext >&5
17715 rm -rf conftest*
17716 eval "ac_cv_func_$ac_func=no"
17717 fi
17718 rm -f conftest*
17719 fi
17720
17721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17722 echo "$ac_t""yes" 1>&6
17723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17724 cat >> confdefs.h <<EOF
17725 #define $ac_tr_func 1
17726 EOF
17727
17728 else
17729 echo "$ac_t""no" 1>&6
17730 fi
17731 done
17732
17733
17734 if test "$ac_cv_func_sigaction" = "no"; then
17735 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17736 wxUSE_ON_FATAL_EXCEPTION=no
17737 fi
17738
17739 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17740
17741 ac_ext=C
17742 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17743 ac_cpp='$CXXCPP $CPPFLAGS'
17744 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17745 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17746 cross_compiling=$ac_cv_prog_cxx_cross
17747
17748
17749 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17750 echo "configure:17751: checking for sa_handler type" >&5
17751 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17752 echo $ac_n "(cached) $ac_c" 1>&6
17753 else
17754
17755 cat > conftest.$ac_ext <<EOF
17756 #line 17757 "configure"
17757 #include "confdefs.h"
17758 #include <signal.h>
17759 int main() {
17760
17761 extern void testSigHandler(int);
17762
17763 struct sigaction sa;
17764 sa.sa_handler = testSigHandler;
17765
17766 ; return 0; }
17767 EOF
17768 if { (eval echo configure:17769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17769 rm -rf conftest*
17770
17771 wx_cv_type_sa_handler=int
17772
17773 else
17774 echo "configure: failed program was:" >&5
17775 cat conftest.$ac_ext >&5
17776 rm -rf conftest*
17777
17778 wx_cv_type_sa_handler=void
17779
17780 fi
17781 rm -f conftest*
17782
17783 fi
17784
17785 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17786
17787 ac_ext=c
17788 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17789 ac_cpp='$CPP $CPPFLAGS'
17790 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17791 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17792 cross_compiling=$ac_cv_prog_cc_cross
17793
17794
17795 cat >> confdefs.h <<EOF
17796 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17797 EOF
17798
17799 fi
17800 fi
17801
17802 for ac_func in mkstemp mktemp
17803 do
17804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17805 echo "configure:17806: checking for $ac_func" >&5
17806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17807 echo $ac_n "(cached) $ac_c" 1>&6
17808 else
17809 cat > conftest.$ac_ext <<EOF
17810 #line 17811 "configure"
17811 #include "confdefs.h"
17812 /* System header to define __stub macros and hopefully few prototypes,
17813 which can conflict with char $ac_func(); below. */
17814 #include <assert.h>
17815 /* Override any gcc2 internal prototype to avoid an error. */
17816 /* We use char because int might match the return type of a gcc2
17817 builtin and then its argument prototype would still apply. */
17818 char $ac_func();
17819
17820 int main() {
17821
17822 /* The GNU C library defines this for functions which it implements
17823 to always fail with ENOSYS. Some functions are actually named
17824 something starting with __ and the normal name is an alias. */
17825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17826 choke me
17827 #else
17828 $ac_func();
17829 #endif
17830
17831 ; return 0; }
17832 EOF
17833 if { (eval echo configure:17834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17834 rm -rf conftest*
17835 eval "ac_cv_func_$ac_func=yes"
17836 else
17837 echo "configure: failed program was:" >&5
17838 cat conftest.$ac_ext >&5
17839 rm -rf conftest*
17840 eval "ac_cv_func_$ac_func=no"
17841 fi
17842 rm -f conftest*
17843 fi
17844
17845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17846 echo "$ac_t""yes" 1>&6
17847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17848 cat >> confdefs.h <<EOF
17849 #define $ac_tr_func 1
17850 EOF
17851 break
17852 else
17853 echo "$ac_t""no" 1>&6
17854 fi
17855 done
17856
17857
17858 echo $ac_n "checking for statfs""... $ac_c" 1>&6
17859 echo "configure:17860: checking for statfs" >&5
17860 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17861 echo $ac_n "(cached) $ac_c" 1>&6
17862 else
17863 cat > conftest.$ac_ext <<EOF
17864 #line 17865 "configure"
17865 #include "confdefs.h"
17866
17867 #if defined(__BSD__)
17868 #include <sys/param.h>
17869 #include <sys/mount.h>
17870 #else
17871 #include <sys/vfs.h>
17872 #endif
17873
17874 int main() {
17875
17876 long l;
17877 struct statfs fs;
17878 statfs("/", &fs);
17879 l = fs.f_bsize;
17880 l += fs.f_blocks;
17881 l += fs.f_bavail;
17882
17883 ; return 0; }
17884 EOF
17885 if { (eval echo configure:17886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17886 rm -rf conftest*
17887
17888 wx_cv_func_statfs=yes
17889
17890 else
17891 echo "configure: failed program was:" >&5
17892 cat conftest.$ac_ext >&5
17893 rm -rf conftest*
17894
17895 wx_cv_func_statfs=no
17896
17897
17898 fi
17899 rm -f conftest*
17900
17901 fi
17902
17903 echo "$ac_t""$wx_cv_func_statfs" 1>&6
17904
17905 if test "$wx_cv_func_statfs" = "yes"; then
17906 wx_cv_type_statvfs_t="struct statfs"
17907 cat >> confdefs.h <<\EOF
17908 #define HAVE_STATFS 1
17909 EOF
17910
17911 else
17912 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17913 echo "configure:17914: checking for statvfs" >&5
17914 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17915 echo $ac_n "(cached) $ac_c" 1>&6
17916 else
17917 cat > conftest.$ac_ext <<EOF
17918 #line 17919 "configure"
17919 #include "confdefs.h"
17920
17921 #include <stddef.h>
17922 #include <sys/statvfs.h>
17923
17924 int main() {
17925
17926 statvfs("/", NULL);
17927
17928 ; return 0; }
17929 EOF
17930 if { (eval echo configure:17931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17931 rm -rf conftest*
17932 wx_cv_func_statvfs=yes
17933 else
17934 echo "configure: failed program was:" >&5
17935 cat conftest.$ac_ext >&5
17936 rm -rf conftest*
17937 wx_cv_func_statvfs=no
17938
17939 fi
17940 rm -f conftest*
17941
17942 fi
17943
17944 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17945
17946 if test "$wx_cv_func_statvfs" = "yes"; then
17947
17948 ac_ext=C
17949 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17950 ac_cpp='$CXXCPP $CPPFLAGS'
17951 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17952 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17953 cross_compiling=$ac_cv_prog_cxx_cross
17954
17955
17956 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17957 echo "configure:17958: checking for statvfs argument type" >&5
17958 if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17959 echo $ac_n "(cached) $ac_c" 1>&6
17960 else
17961 cat > conftest.$ac_ext <<EOF
17962 #line 17963 "configure"
17963 #include "confdefs.h"
17964
17965 #include <sys/statvfs.h>
17966
17967 int main() {
17968
17969 long l;
17970 statvfs_t fs;
17971 statvfs("/", &fs);
17972 l = fs.f_bsize;
17973 l += fs.f_blocks;
17974 l += fs.f_bavail;
17975
17976 ; return 0; }
17977 EOF
17978 if { (eval echo configure:17979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17979 rm -rf conftest*
17980 wx_cv_type_statvfs_t=statvfs_t
17981 else
17982 echo "configure: failed program was:" >&5
17983 cat conftest.$ac_ext >&5
17984 rm -rf conftest*
17985
17986 cat > conftest.$ac_ext <<EOF
17987 #line 17988 "configure"
17988 #include "confdefs.h"
17989
17990 #include <sys/statvfs.h>
17991
17992 int main() {
17993
17994 long l;
17995 struct statvfs fs;
17996 statvfs("/", &fs);
17997 l = fs.f_bsize;
17998 l += fs.f_blocks;
17999 l += fs.f_bavail;
18000
18001 ; return 0; }
18002 EOF
18003 if { (eval echo configure:18004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18004 rm -rf conftest*
18005 wx_cv_type_statvfs_t="struct statvfs"
18006 else
18007 echo "configure: failed program was:" >&5
18008 cat conftest.$ac_ext >&5
18009 rm -rf conftest*
18010 wx_cv_type_statvfs_t="unknown"
18011
18012 fi
18013 rm -f conftest*
18014
18015
18016 fi
18017 rm -f conftest*
18018
18019 fi
18020
18021 echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
18022
18023 ac_ext=c
18024 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18025 ac_cpp='$CPP $CPPFLAGS'
18026 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18027 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18028 cross_compiling=$ac_cv_prog_cc_cross
18029
18030
18031 if test "$wx_cv_type_statvfs_t" != "unknown"; then
18032 cat >> confdefs.h <<\EOF
18033 #define HAVE_STATVFS 1
18034 EOF
18035
18036 fi
18037 else
18038 wx_cv_type_statvfs_t="unknown"
18039 fi
18040 fi
18041
18042 if test "$wx_cv_type_statvfs_t" != "unknown"; then
18043 cat >> confdefs.h <<EOF
18044 #define WX_STATFS_T $wx_cv_type_statvfs_t
18045 EOF
18046
18047 else
18048 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
18049 fi
18050
18051 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18052 for ac_func in fcntl flock
18053 do
18054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18055 echo "configure:18056: checking for $ac_func" >&5
18056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18057 echo $ac_n "(cached) $ac_c" 1>&6
18058 else
18059 cat > conftest.$ac_ext <<EOF
18060 #line 18061 "configure"
18061 #include "confdefs.h"
18062 /* System header to define __stub macros and hopefully few prototypes,
18063 which can conflict with char $ac_func(); below. */
18064 #include <assert.h>
18065 /* Override any gcc2 internal prototype to avoid an error. */
18066 /* We use char because int might match the return type of a gcc2
18067 builtin and then its argument prototype would still apply. */
18068 char $ac_func();
18069
18070 int main() {
18071
18072 /* The GNU C library defines this for functions which it implements
18073 to always fail with ENOSYS. Some functions are actually named
18074 something starting with __ and the normal name is an alias. */
18075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18076 choke me
18077 #else
18078 $ac_func();
18079 #endif
18080
18081 ; return 0; }
18082 EOF
18083 if { (eval echo configure:18084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18084 rm -rf conftest*
18085 eval "ac_cv_func_$ac_func=yes"
18086 else
18087 echo "configure: failed program was:" >&5
18088 cat conftest.$ac_ext >&5
18089 rm -rf conftest*
18090 eval "ac_cv_func_$ac_func=no"
18091 fi
18092 rm -f conftest*
18093 fi
18094
18095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18096 echo "$ac_t""yes" 1>&6
18097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18098 cat >> confdefs.h <<EOF
18099 #define $ac_tr_func 1
18100 EOF
18101 break
18102 else
18103 echo "$ac_t""no" 1>&6
18104 fi
18105 done
18106
18107
18108 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
18109 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
18110 wxUSE_SNGLINST_CHECKER=no
18111 fi
18112 fi
18113
18114 for ac_func in timegm
18115 do
18116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18117 echo "configure:18118: checking for $ac_func" >&5
18118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18119 echo $ac_n "(cached) $ac_c" 1>&6
18120 else
18121 cat > conftest.$ac_ext <<EOF
18122 #line 18123 "configure"
18123 #include "confdefs.h"
18124 /* System header to define __stub macros and hopefully few prototypes,
18125 which can conflict with char $ac_func(); below. */
18126 #include <assert.h>
18127 /* Override any gcc2 internal prototype to avoid an error. */
18128 /* We use char because int might match the return type of a gcc2
18129 builtin and then its argument prototype would still apply. */
18130 char $ac_func();
18131
18132 int main() {
18133
18134 /* The GNU C library defines this for functions which it implements
18135 to always fail with ENOSYS. Some functions are actually named
18136 something starting with __ and the normal name is an alias. */
18137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18138 choke me
18139 #else
18140 $ac_func();
18141 #endif
18142
18143 ; return 0; }
18144 EOF
18145 if { (eval echo configure:18146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18146 rm -rf conftest*
18147 eval "ac_cv_func_$ac_func=yes"
18148 else
18149 echo "configure: failed program was:" >&5
18150 cat conftest.$ac_ext >&5
18151 rm -rf conftest*
18152 eval "ac_cv_func_$ac_func=no"
18153 fi
18154 rm -f conftest*
18155 fi
18156
18157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18158 echo "$ac_t""yes" 1>&6
18159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18160 cat >> confdefs.h <<EOF
18161 #define $ac_tr_func 1
18162 EOF
18163
18164 else
18165 echo "$ac_t""no" 1>&6
18166 fi
18167 done
18168
18169
18170 for ac_func in putenv setenv
18171 do
18172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18173 echo "configure:18174: checking for $ac_func" >&5
18174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18175 echo $ac_n "(cached) $ac_c" 1>&6
18176 else
18177 cat > conftest.$ac_ext <<EOF
18178 #line 18179 "configure"
18179 #include "confdefs.h"
18180 /* System header to define __stub macros and hopefully few prototypes,
18181 which can conflict with char $ac_func(); below. */
18182 #include <assert.h>
18183 /* Override any gcc2 internal prototype to avoid an error. */
18184 /* We use char because int might match the return type of a gcc2
18185 builtin and then its argument prototype would still apply. */
18186 char $ac_func();
18187
18188 int main() {
18189
18190 /* The GNU C library defines this for functions which it implements
18191 to always fail with ENOSYS. Some functions are actually named
18192 something starting with __ and the normal name is an alias. */
18193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18194 choke me
18195 #else
18196 $ac_func();
18197 #endif
18198
18199 ; return 0; }
18200 EOF
18201 if { (eval echo configure:18202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18202 rm -rf conftest*
18203 eval "ac_cv_func_$ac_func=yes"
18204 else
18205 echo "configure: failed program was:" >&5
18206 cat conftest.$ac_ext >&5
18207 rm -rf conftest*
18208 eval "ac_cv_func_$ac_func=no"
18209 fi
18210 rm -f conftest*
18211 fi
18212
18213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18214 echo "$ac_t""yes" 1>&6
18215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18216 cat >> confdefs.h <<EOF
18217 #define $ac_tr_func 1
18218 EOF
18219 break
18220 else
18221 echo "$ac_t""no" 1>&6
18222 fi
18223 done
18224
18225
18226 HAVE_SOME_SLEEP_FUNC=0
18227 if test "$USE_BEOS" = 1; then
18228 cat >> confdefs.h <<\EOF
18229 #define HAVE_SLEEP 1
18230 EOF
18231
18232 HAVE_SOME_SLEEP_FUNC=1
18233 fi
18234
18235 if test "$USE_DARWIN" = 1; then
18236 cat >> confdefs.h <<\EOF
18237 #define HAVE_USLEEP 1
18238 EOF
18239
18240 HAVE_SOME_SLEEP_FUNC=1
18241 fi
18242
18243 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18244 POSIX4_LINK=
18245 for ac_func in nanosleep
18246 do
18247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18248 echo "configure:18249: checking for $ac_func" >&5
18249 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18250 echo $ac_n "(cached) $ac_c" 1>&6
18251 else
18252 cat > conftest.$ac_ext <<EOF
18253 #line 18254 "configure"
18254 #include "confdefs.h"
18255 /* System header to define __stub macros and hopefully few prototypes,
18256 which can conflict with char $ac_func(); below. */
18257 #include <assert.h>
18258 /* Override any gcc2 internal prototype to avoid an error. */
18259 /* We use char because int might match the return type of a gcc2
18260 builtin and then its argument prototype would still apply. */
18261 char $ac_func();
18262
18263 int main() {
18264
18265 /* The GNU C library defines this for functions which it implements
18266 to always fail with ENOSYS. Some functions are actually named
18267 something starting with __ and the normal name is an alias. */
18268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18269 choke me
18270 #else
18271 $ac_func();
18272 #endif
18273
18274 ; return 0; }
18275 EOF
18276 if { (eval echo configure:18277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18277 rm -rf conftest*
18278 eval "ac_cv_func_$ac_func=yes"
18279 else
18280 echo "configure: failed program was:" >&5
18281 cat conftest.$ac_ext >&5
18282 rm -rf conftest*
18283 eval "ac_cv_func_$ac_func=no"
18284 fi
18285 rm -f conftest*
18286 fi
18287
18288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18289 echo "$ac_t""yes" 1>&6
18290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18291 cat >> confdefs.h <<EOF
18292 #define $ac_tr_func 1
18293 EOF
18294 cat >> confdefs.h <<\EOF
18295 #define HAVE_NANOSLEEP 1
18296 EOF
18297
18298 else
18299 echo "$ac_t""no" 1>&6
18300 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
18301 echo "configure:18302: checking for nanosleep in -lposix4" >&5
18302 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18304 echo $ac_n "(cached) $ac_c" 1>&6
18305 else
18306 ac_save_LIBS="$LIBS"
18307 LIBS="-lposix4 $LIBS"
18308 cat > conftest.$ac_ext <<EOF
18309 #line 18310 "configure"
18310 #include "confdefs.h"
18311 /* Override any gcc2 internal prototype to avoid an error. */
18312 /* We use char because int might match the return type of a gcc2
18313 builtin and then its argument prototype would still apply. */
18314 char nanosleep();
18315
18316 int main() {
18317 nanosleep()
18318 ; return 0; }
18319 EOF
18320 if { (eval echo configure:18321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18321 rm -rf conftest*
18322 eval "ac_cv_lib_$ac_lib_var=yes"
18323 else
18324 echo "configure: failed program was:" >&5
18325 cat conftest.$ac_ext >&5
18326 rm -rf conftest*
18327 eval "ac_cv_lib_$ac_lib_var=no"
18328 fi
18329 rm -f conftest*
18330 LIBS="$ac_save_LIBS"
18331
18332 fi
18333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18334 echo "$ac_t""yes" 1>&6
18335
18336 cat >> confdefs.h <<\EOF
18337 #define HAVE_NANOSLEEP 1
18338 EOF
18339
18340 POSIX4_LINK=" -lposix4"
18341
18342 else
18343 echo "$ac_t""no" 1>&6
18344
18345 for ac_func in usleep
18346 do
18347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18348 echo "configure:18349: checking for $ac_func" >&5
18349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18350 echo $ac_n "(cached) $ac_c" 1>&6
18351 else
18352 cat > conftest.$ac_ext <<EOF
18353 #line 18354 "configure"
18354 #include "confdefs.h"
18355 /* System header to define __stub macros and hopefully few prototypes,
18356 which can conflict with char $ac_func(); below. */
18357 #include <assert.h>
18358 /* Override any gcc2 internal prototype to avoid an error. */
18359 /* We use char because int might match the return type of a gcc2
18360 builtin and then its argument prototype would still apply. */
18361 char $ac_func();
18362
18363 int main() {
18364
18365 /* The GNU C library defines this for functions which it implements
18366 to always fail with ENOSYS. Some functions are actually named
18367 something starting with __ and the normal name is an alias. */
18368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18369 choke me
18370 #else
18371 $ac_func();
18372 #endif
18373
18374 ; return 0; }
18375 EOF
18376 if { (eval echo configure:18377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18377 rm -rf conftest*
18378 eval "ac_cv_func_$ac_func=yes"
18379 else
18380 echo "configure: failed program was:" >&5
18381 cat conftest.$ac_ext >&5
18382 rm -rf conftest*
18383 eval "ac_cv_func_$ac_func=no"
18384 fi
18385 rm -f conftest*
18386 fi
18387
18388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18389 echo "$ac_t""yes" 1>&6
18390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18391 cat >> confdefs.h <<EOF
18392 #define $ac_tr_func 1
18393 EOF
18394 cat >> confdefs.h <<\EOF
18395 #define HAVE_USLEEP 1
18396 EOF
18397
18398 else
18399 echo "$ac_t""no" 1>&6
18400 echo "configure: warning: wxSleep() function will not work" 1>&2
18401
18402 fi
18403 done
18404
18405
18406
18407 fi
18408
18409
18410
18411 fi
18412 done
18413
18414 fi
18415
18416 for ac_func in uname gethostname
18417 do
18418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18419 echo "configure:18420: checking for $ac_func" >&5
18420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18421 echo $ac_n "(cached) $ac_c" 1>&6
18422 else
18423 cat > conftest.$ac_ext <<EOF
18424 #line 18425 "configure"
18425 #include "confdefs.h"
18426 /* System header to define __stub macros and hopefully few prototypes,
18427 which can conflict with char $ac_func(); below. */
18428 #include <assert.h>
18429 /* Override any gcc2 internal prototype to avoid an error. */
18430 /* We use char because int might match the return type of a gcc2
18431 builtin and then its argument prototype would still apply. */
18432 char $ac_func();
18433
18434 int main() {
18435
18436 /* The GNU C library defines this for functions which it implements
18437 to always fail with ENOSYS. Some functions are actually named
18438 something starting with __ and the normal name is an alias. */
18439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18440 choke me
18441 #else
18442 $ac_func();
18443 #endif
18444
18445 ; return 0; }
18446 EOF
18447 if { (eval echo configure:18448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18448 rm -rf conftest*
18449 eval "ac_cv_func_$ac_func=yes"
18450 else
18451 echo "configure: failed program was:" >&5
18452 cat conftest.$ac_ext >&5
18453 rm -rf conftest*
18454 eval "ac_cv_func_$ac_func=no"
18455 fi
18456 rm -f conftest*
18457 fi
18458
18459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18460 echo "$ac_t""yes" 1>&6
18461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18462 cat >> confdefs.h <<EOF
18463 #define $ac_tr_func 1
18464 EOF
18465 break
18466 else
18467 echo "$ac_t""no" 1>&6
18468 fi
18469 done
18470
18471
18472
18473 ac_ext=C
18474 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18475 ac_cpp='$CXXCPP $CPPFLAGS'
18476 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18477 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18478 cross_compiling=$ac_cv_prog_cxx_cross
18479
18480
18481 for ac_func in strtok_r
18482 do
18483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18484 echo "configure:18485: checking for $ac_func" >&5
18485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18486 echo $ac_n "(cached) $ac_c" 1>&6
18487 else
18488 cat > conftest.$ac_ext <<EOF
18489 #line 18490 "configure"
18490 #include "confdefs.h"
18491 /* System header to define __stub macros and hopefully few prototypes,
18492 which can conflict with char $ac_func(); below. */
18493 #include <assert.h>
18494 /* Override any gcc2 internal prototype to avoid an error. */
18495 #ifdef __cplusplus
18496 extern "C"
18497 #endif
18498 /* We use char because int might match the return type of a gcc2
18499 builtin and then its argument prototype would still apply. */
18500 char $ac_func();
18501
18502 int main() {
18503
18504 /* The GNU C library defines this for functions which it implements
18505 to always fail with ENOSYS. Some functions are actually named
18506 something starting with __ and the normal name is an alias. */
18507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18508 choke me
18509 #else
18510 $ac_func();
18511 #endif
18512
18513 ; return 0; }
18514 EOF
18515 if { (eval echo configure:18516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18516 rm -rf conftest*
18517 eval "ac_cv_func_$ac_func=yes"
18518 else
18519 echo "configure: failed program was:" >&5
18520 cat conftest.$ac_ext >&5
18521 rm -rf conftest*
18522 eval "ac_cv_func_$ac_func=no"
18523 fi
18524 rm -f conftest*
18525 fi
18526
18527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18528 echo "$ac_t""yes" 1>&6
18529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18530 cat >> confdefs.h <<EOF
18531 #define $ac_tr_func 1
18532 EOF
18533
18534 else
18535 echo "$ac_t""no" 1>&6
18536 fi
18537 done
18538
18539
18540 ac_ext=c
18541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18542 ac_cpp='$CPP $CPPFLAGS'
18543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18545 cross_compiling=$ac_cv_prog_cc_cross
18546
18547
18548 INET_LINK=
18549 for ac_func in inet_addr
18550 do
18551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18552 echo "configure:18553: checking for $ac_func" >&5
18553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18554 echo $ac_n "(cached) $ac_c" 1>&6
18555 else
18556 cat > conftest.$ac_ext <<EOF
18557 #line 18558 "configure"
18558 #include "confdefs.h"
18559 /* System header to define __stub macros and hopefully few prototypes,
18560 which can conflict with char $ac_func(); below. */
18561 #include <assert.h>
18562 /* Override any gcc2 internal prototype to avoid an error. */
18563 /* We use char because int might match the return type of a gcc2
18564 builtin and then its argument prototype would still apply. */
18565 char $ac_func();
18566
18567 int main() {
18568
18569 /* The GNU C library defines this for functions which it implements
18570 to always fail with ENOSYS. Some functions are actually named
18571 something starting with __ and the normal name is an alias. */
18572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18573 choke me
18574 #else
18575 $ac_func();
18576 #endif
18577
18578 ; return 0; }
18579 EOF
18580 if { (eval echo configure:18581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18581 rm -rf conftest*
18582 eval "ac_cv_func_$ac_func=yes"
18583 else
18584 echo "configure: failed program was:" >&5
18585 cat conftest.$ac_ext >&5
18586 rm -rf conftest*
18587 eval "ac_cv_func_$ac_func=no"
18588 fi
18589 rm -f conftest*
18590 fi
18591
18592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18593 echo "$ac_t""yes" 1>&6
18594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18595 cat >> confdefs.h <<EOF
18596 #define $ac_tr_func 1
18597 EOF
18598 cat >> confdefs.h <<\EOF
18599 #define HAVE_INET_ADDR 1
18600 EOF
18601
18602 else
18603 echo "$ac_t""no" 1>&6
18604 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18605 echo "configure:18606: checking for inet_addr in -lnsl" >&5
18606 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18608 echo $ac_n "(cached) $ac_c" 1>&6
18609 else
18610 ac_save_LIBS="$LIBS"
18611 LIBS="-lnsl $LIBS"
18612 cat > conftest.$ac_ext <<EOF
18613 #line 18614 "configure"
18614 #include "confdefs.h"
18615 /* Override any gcc2 internal prototype to avoid an error. */
18616 /* We use char because int might match the return type of a gcc2
18617 builtin and then its argument prototype would still apply. */
18618 char inet_addr();
18619
18620 int main() {
18621 inet_addr()
18622 ; return 0; }
18623 EOF
18624 if { (eval echo configure:18625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18625 rm -rf conftest*
18626 eval "ac_cv_lib_$ac_lib_var=yes"
18627 else
18628 echo "configure: failed program was:" >&5
18629 cat conftest.$ac_ext >&5
18630 rm -rf conftest*
18631 eval "ac_cv_lib_$ac_lib_var=no"
18632 fi
18633 rm -f conftest*
18634 LIBS="$ac_save_LIBS"
18635
18636 fi
18637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18638 echo "$ac_t""yes" 1>&6
18639 INET_LINK="nsl"
18640 else
18641 echo "$ac_t""no" 1>&6
18642 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18643 echo "configure:18644: checking for inet_addr in -lresolv" >&5
18644 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18646 echo $ac_n "(cached) $ac_c" 1>&6
18647 else
18648 ac_save_LIBS="$LIBS"
18649 LIBS="-lresolv $LIBS"
18650 cat > conftest.$ac_ext <<EOF
18651 #line 18652 "configure"
18652 #include "confdefs.h"
18653 /* Override any gcc2 internal prototype to avoid an error. */
18654 /* We use char because int might match the return type of a gcc2
18655 builtin and then its argument prototype would still apply. */
18656 char inet_addr();
18657
18658 int main() {
18659 inet_addr()
18660 ; return 0; }
18661 EOF
18662 if { (eval echo configure:18663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18663 rm -rf conftest*
18664 eval "ac_cv_lib_$ac_lib_var=yes"
18665 else
18666 echo "configure: failed program was:" >&5
18667 cat conftest.$ac_ext >&5
18668 rm -rf conftest*
18669 eval "ac_cv_lib_$ac_lib_var=no"
18670 fi
18671 rm -f conftest*
18672 LIBS="$ac_save_LIBS"
18673
18674 fi
18675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18676 echo "$ac_t""yes" 1>&6
18677 INET_LINK="resolv"
18678 else
18679 echo "$ac_t""no" 1>&6
18680 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18681 echo "configure:18682: checking for inet_addr in -lsocket" >&5
18682 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18684 echo $ac_n "(cached) $ac_c" 1>&6
18685 else
18686 ac_save_LIBS="$LIBS"
18687 LIBS="-lsocket $LIBS"
18688 cat > conftest.$ac_ext <<EOF
18689 #line 18690 "configure"
18690 #include "confdefs.h"
18691 /* Override any gcc2 internal prototype to avoid an error. */
18692 /* We use char because int might match the return type of a gcc2
18693 builtin and then its argument prototype would still apply. */
18694 char inet_addr();
18695
18696 int main() {
18697 inet_addr()
18698 ; return 0; }
18699 EOF
18700 if { (eval echo configure:18701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18701 rm -rf conftest*
18702 eval "ac_cv_lib_$ac_lib_var=yes"
18703 else
18704 echo "configure: failed program was:" >&5
18705 cat conftest.$ac_ext >&5
18706 rm -rf conftest*
18707 eval "ac_cv_lib_$ac_lib_var=no"
18708 fi
18709 rm -f conftest*
18710 LIBS="$ac_save_LIBS"
18711
18712 fi
18713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18714 echo "$ac_t""yes" 1>&6
18715 INET_LINK="socket"
18716
18717 else
18718 echo "$ac_t""no" 1>&6
18719 fi
18720
18721
18722 fi
18723
18724
18725 fi
18726
18727
18728
18729 fi
18730 done
18731
18732
18733 for ac_func in inet_aton
18734 do
18735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18736 echo "configure:18737: checking for $ac_func" >&5
18737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18738 echo $ac_n "(cached) $ac_c" 1>&6
18739 else
18740 cat > conftest.$ac_ext <<EOF
18741 #line 18742 "configure"
18742 #include "confdefs.h"
18743 /* System header to define __stub macros and hopefully few prototypes,
18744 which can conflict with char $ac_func(); below. */
18745 #include <assert.h>
18746 /* Override any gcc2 internal prototype to avoid an error. */
18747 /* We use char because int might match the return type of a gcc2
18748 builtin and then its argument prototype would still apply. */
18749 char $ac_func();
18750
18751 int main() {
18752
18753 /* The GNU C library defines this for functions which it implements
18754 to always fail with ENOSYS. Some functions are actually named
18755 something starting with __ and the normal name is an alias. */
18756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18757 choke me
18758 #else
18759 $ac_func();
18760 #endif
18761
18762 ; return 0; }
18763 EOF
18764 if { (eval echo configure:18765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18765 rm -rf conftest*
18766 eval "ac_cv_func_$ac_func=yes"
18767 else
18768 echo "configure: failed program was:" >&5
18769 cat conftest.$ac_ext >&5
18770 rm -rf conftest*
18771 eval "ac_cv_func_$ac_func=no"
18772 fi
18773 rm -f conftest*
18774 fi
18775
18776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18777 echo "$ac_t""yes" 1>&6
18778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18779 cat >> confdefs.h <<EOF
18780 #define $ac_tr_func 1
18781 EOF
18782 cat >> confdefs.h <<\EOF
18783 #define HAVE_INET_ATON 1
18784 EOF
18785
18786 else
18787 echo "$ac_t""no" 1>&6
18788 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18789 echo "configure:18790: checking for inet_aton in -l$INET_LINK" >&5
18790 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18792 echo $ac_n "(cached) $ac_c" 1>&6
18793 else
18794 ac_save_LIBS="$LIBS"
18795 LIBS="-l$INET_LINK $LIBS"
18796 cat > conftest.$ac_ext <<EOF
18797 #line 18798 "configure"
18798 #include "confdefs.h"
18799 /* Override any gcc2 internal prototype to avoid an error. */
18800 /* We use char because int might match the return type of a gcc2
18801 builtin and then its argument prototype would still apply. */
18802 char inet_aton();
18803
18804 int main() {
18805 inet_aton()
18806 ; return 0; }
18807 EOF
18808 if { (eval echo configure:18809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18809 rm -rf conftest*
18810 eval "ac_cv_lib_$ac_lib_var=yes"
18811 else
18812 echo "configure: failed program was:" >&5
18813 cat conftest.$ac_ext >&5
18814 rm -rf conftest*
18815 eval "ac_cv_lib_$ac_lib_var=no"
18816 fi
18817 rm -f conftest*
18818 LIBS="$ac_save_LIBS"
18819
18820 fi
18821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18822 echo "$ac_t""yes" 1>&6
18823 cat >> confdefs.h <<\EOF
18824 #define HAVE_INET_ATON 1
18825 EOF
18826
18827 else
18828 echo "$ac_t""no" 1>&6
18829 fi
18830
18831
18832 fi
18833 done
18834
18835
18836 if test "x$INET_LINK" != "x"; then
18837 cat >> confdefs.h <<\EOF
18838 #define HAVE_INET_ADDR 1
18839 EOF
18840
18841 INET_LINK=" -l$INET_LINK"
18842 fi
18843
18844 fi
18845
18846
18847 cat > confcache <<\EOF
18848 # This file is a shell script that caches the results of configure
18849 # tests run on this system so they can be shared between configure
18850 # scripts and configure runs. It is not useful on other systems.
18851 # If it contains results you don't want to keep, you may remove or edit it.
18852 #
18853 # By default, configure uses ./config.cache as the cache file,
18854 # creating it if it does not exist already. You can give configure
18855 # the --cache-file=FILE option to use a different cache file; that is
18856 # what configure does when it calls configure scripts in
18857 # subdirectories, so they share the cache.
18858 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18859 # config.status only pays attention to the cache file if you give it the
18860 # --recheck option to rerun configure.
18861 #
18862 EOF
18863 # The following way of writing the cache mishandles newlines in values,
18864 # but we know of no workaround that is simple, portable, and efficient.
18865 # So, don't put newlines in cache variables' values.
18866 # Ultrix sh set writes to stderr and can't be redirected directly,
18867 # and sets the high bit in the cache file unless we assign to the vars.
18868 (set) 2>&1 |
18869 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18870 *ac_space=\ *)
18871 # `set' does not quote correctly, so add quotes (double-quote substitution
18872 # turns \\\\ into \\, and sed turns \\ into \).
18873 sed -n \
18874 -e "s/'/'\\\\''/g" \
18875 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18876 ;;
18877 *)
18878 # `set' quotes correctly as required by POSIX, so do not add quotes.
18879 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18880 ;;
18881 esac >> confcache
18882 if cmp -s $cache_file confcache; then
18883 :
18884 else
18885 if test -w $cache_file; then
18886 echo "updating cache $cache_file"
18887 cat confcache > $cache_file
18888 else
18889 echo "not updating unwritable cache $cache_file"
18890 fi
18891 fi
18892 rm -f confcache
18893
18894
18895
18896 CPP_MT_FLAG=
18897 if test "$TOOLKIT" != "MSW"; then
18898
18899
18900 THREADS_LINK=
18901 THREADS_CFLAGS=
18902
18903 if test "$wxUSE_THREADS" = "yes" ; then
18904 if test "$USE_BEOS" = 1; then
18905 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18906 wxUSE_THREADS="no"
18907 fi
18908 fi
18909
18910 if test "$wxUSE_THREADS" = "yes" ; then
18911
18912
18913 THREAD_OPTS="-pthread"
18914 case "${host}" in
18915 *-*-solaris2* | *-*-sunos4* )
18916 if test "x$GCC" = "xyes"; then
18917 THREAD_OPTS="-pthreads $THREAD_OPTS"
18918 else
18919 THREAD_OPTS="-mt $THREAD_OPTS"
18920 fi
18921 ;;
18922 *-*-freebsd*)
18923 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18924 ;;
18925 *-*-darwin* | *-*-cygwin* )
18926 THREAD_OPTS=""
18927 ;;
18928 *-*-aix*)
18929 THREAD_OPTS="pthreads"
18930 ;;
18931 *-hp-hpux* )
18932 if test "x$GCC" != "xyes"; then
18933 THREAD_OPTS=""
18934 fi
18935 ;;
18936
18937 *-*-irix* )
18938 if test "x$GCC" = "xyes"; then
18939 THREAD_OPTS=""
18940 fi
18941 ;;
18942
18943 *-*-*UnixWare*)
18944 if test "x$GCC" != "xyes"; then
18945 THREAD_OPTS="-Ethread"
18946 fi
18947 ;;
18948 esac
18949
18950 THREAD_OPTS="$THREAD_OPTS pthread none"
18951
18952 THREADS_OK=no
18953 for flag in $THREAD_OPTS; do
18954 case $flag in
18955 none)
18956 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18957 echo "configure:18958: checking whether pthreads work without any flags" >&5
18958 ;;
18959
18960 -*)
18961 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18962 echo "configure:18963: checking whether pthreads work with $flag" >&5
18963 THREADS_CFLAGS="$flag"
18964 ;;
18965
18966 *)
18967 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18968 echo "configure:18969: checking for the pthreads library -l$flag" >&5
18969 THREADS_LINK="-l$flag"
18970 ;;
18971 esac
18972
18973 save_LIBS="$LIBS"
18974 save_CFLAGS="$CFLAGS"
18975 LIBS="$THREADS_LINK $LIBS"
18976 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18977
18978 cat > conftest.$ac_ext <<EOF
18979 #line 18980 "configure"
18980 #include "confdefs.h"
18981 #include <pthread.h>
18982 int main() {
18983 pthread_create(0,0,0,0);
18984 ; return 0; }
18985 EOF
18986 if { (eval echo configure:18987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18987 rm -rf conftest*
18988 THREADS_OK=yes
18989 else
18990 echo "configure: failed program was:" >&5
18991 cat conftest.$ac_ext >&5
18992 fi
18993 rm -f conftest*
18994
18995 LIBS="$save_LIBS"
18996 CFLAGS="$save_CFLAGS"
18997
18998 echo "$ac_t""$THREADS_OK" 1>&6
18999 if test "x$THREADS_OK" = "xyes"; then
19000 break;
19001 fi
19002
19003 THREADS_LINK=""
19004 THREADS_CFLAGS=""
19005 done
19006
19007 if test "x$THREADS_OK" != "xyes"; then
19008 wxUSE_THREADS=no
19009 echo "configure: warning: No thread support on this system... disabled" 1>&2
19010 else
19011 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
19012 LIBS="$THREADS_LINK $LIBS"
19013
19014 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
19015 echo "configure:19016: checking if more special flags are required for pthreads" >&5
19016 flag=no
19017 case "${host}" in
19018 *-aix*)
19019 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
19020 flag="-D_THREAD_SAFE"
19021 ;;
19022 *-freebsd*)
19023 flag="-D_THREAD_SAFE"
19024 ;;
19025 *-hp-hpux* )
19026 flag="-D_REENTRANT"
19027 if test "x$GCC" != "xyes"; then
19028 flag="$flag -D_RWSTD_MULTI_THREAD"
19029 fi
19030 ;;
19031 *solaris* | alpha*-osf*)
19032 flag="-D_REENTRANT"
19033 ;;
19034 esac
19035 echo "$ac_t""${flag}" 1>&6
19036 if test "x$flag" != xno; then
19037 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
19038 fi
19039
19040 if test "x$THREADS_CFLAGS" != "x"; then
19041 CFLAGS="$CFLAGS $THREADS_CFLAGS"
19042 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
19043 fi
19044 fi
19045 fi
19046
19047 if test "$wxUSE_THREADS" = "yes" ; then
19048 for ac_func in thr_setconcurrency
19049 do
19050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19051 echo "configure:19052: checking for $ac_func" >&5
19052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19053 echo $ac_n "(cached) $ac_c" 1>&6
19054 else
19055 cat > conftest.$ac_ext <<EOF
19056 #line 19057 "configure"
19057 #include "confdefs.h"
19058 /* System header to define __stub macros and hopefully few prototypes,
19059 which can conflict with char $ac_func(); below. */
19060 #include <assert.h>
19061 /* Override any gcc2 internal prototype to avoid an error. */
19062 /* We use char because int might match the return type of a gcc2
19063 builtin and then its argument prototype would still apply. */
19064 char $ac_func();
19065
19066 int main() {
19067
19068 /* The GNU C library defines this for functions which it implements
19069 to always fail with ENOSYS. Some functions are actually named
19070 something starting with __ and the normal name is an alias. */
19071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19072 choke me
19073 #else
19074 $ac_func();
19075 #endif
19076
19077 ; return 0; }
19078 EOF
19079 if { (eval echo configure:19080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19080 rm -rf conftest*
19081 eval "ac_cv_func_$ac_func=yes"
19082 else
19083 echo "configure: failed program was:" >&5
19084 cat conftest.$ac_ext >&5
19085 rm -rf conftest*
19086 eval "ac_cv_func_$ac_func=no"
19087 fi
19088 rm -f conftest*
19089 fi
19090
19091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19092 echo "$ac_t""yes" 1>&6
19093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19094 cat >> confdefs.h <<EOF
19095 #define $ac_tr_func 1
19096 EOF
19097
19098 else
19099 echo "$ac_t""no" 1>&6
19100 fi
19101 done
19102
19103
19104 for ac_hdr in sched.h
19105 do
19106 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19108 echo "configure:19109: checking for $ac_hdr" >&5
19109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19110 echo $ac_n "(cached) $ac_c" 1>&6
19111 else
19112 cat > conftest.$ac_ext <<EOF
19113 #line 19114 "configure"
19114 #include "confdefs.h"
19115 #include <$ac_hdr>
19116 EOF
19117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19118 { (eval echo configure:19119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19120 if test -z "$ac_err"; then
19121 rm -rf conftest*
19122 eval "ac_cv_header_$ac_safe=yes"
19123 else
19124 echo "$ac_err" >&5
19125 echo "configure: failed program was:" >&5
19126 cat conftest.$ac_ext >&5
19127 rm -rf conftest*
19128 eval "ac_cv_header_$ac_safe=no"
19129 fi
19130 rm -f conftest*
19131 fi
19132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19133 echo "$ac_t""yes" 1>&6
19134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19135 cat >> confdefs.h <<EOF
19136 #define $ac_tr_hdr 1
19137 EOF
19138
19139 else
19140 echo "$ac_t""no" 1>&6
19141 fi
19142 done
19143
19144 if test "$ac_cv_header_sched_h" = "yes"; then
19145 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
19146 echo "configure:19147: checking for sched_yield" >&5
19147 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
19148 echo $ac_n "(cached) $ac_c" 1>&6
19149 else
19150 cat > conftest.$ac_ext <<EOF
19151 #line 19152 "configure"
19152 #include "confdefs.h"
19153 /* System header to define __stub macros and hopefully few prototypes,
19154 which can conflict with char sched_yield(); below. */
19155 #include <assert.h>
19156 /* Override any gcc2 internal prototype to avoid an error. */
19157 /* We use char because int might match the return type of a gcc2
19158 builtin and then its argument prototype would still apply. */
19159 char sched_yield();
19160
19161 int main() {
19162
19163 /* The GNU C library defines this for functions which it implements
19164 to always fail with ENOSYS. Some functions are actually named
19165 something starting with __ and the normal name is an alias. */
19166 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
19167 choke me
19168 #else
19169 sched_yield();
19170 #endif
19171
19172 ; return 0; }
19173 EOF
19174 if { (eval echo configure:19175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19175 rm -rf conftest*
19176 eval "ac_cv_func_sched_yield=yes"
19177 else
19178 echo "configure: failed program was:" >&5
19179 cat conftest.$ac_ext >&5
19180 rm -rf conftest*
19181 eval "ac_cv_func_sched_yield=no"
19182 fi
19183 rm -f conftest*
19184 fi
19185
19186 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
19187 echo "$ac_t""yes" 1>&6
19188 cat >> confdefs.h <<\EOF
19189 #define HAVE_SCHED_YIELD 1
19190 EOF
19191
19192 else
19193 echo "$ac_t""no" 1>&6
19194
19195 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
19196 echo "configure:19197: checking for sched_yield in -lposix4" >&5
19197 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
19198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19199 echo $ac_n "(cached) $ac_c" 1>&6
19200 else
19201 ac_save_LIBS="$LIBS"
19202 LIBS="-lposix4 $LIBS"
19203 cat > conftest.$ac_ext <<EOF
19204 #line 19205 "configure"
19205 #include "confdefs.h"
19206 /* Override any gcc2 internal prototype to avoid an error. */
19207 /* We use char because int might match the return type of a gcc2
19208 builtin and then its argument prototype would still apply. */
19209 char sched_yield();
19210
19211 int main() {
19212 sched_yield()
19213 ; return 0; }
19214 EOF
19215 if { (eval echo configure:19216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19216 rm -rf conftest*
19217 eval "ac_cv_lib_$ac_lib_var=yes"
19218 else
19219 echo "configure: failed program was:" >&5
19220 cat conftest.$ac_ext >&5
19221 rm -rf conftest*
19222 eval "ac_cv_lib_$ac_lib_var=no"
19223 fi
19224 rm -f conftest*
19225 LIBS="$ac_save_LIBS"
19226
19227 fi
19228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19229 echo "$ac_t""yes" 1>&6
19230 cat >> confdefs.h <<\EOF
19231 #define HAVE_SCHED_YIELD 1
19232 EOF
19233 POSIX4_LINK=" -lposix4"
19234 else
19235 echo "$ac_t""no" 1>&6
19236 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19237
19238 fi
19239
19240
19241
19242 fi
19243
19244 fi
19245
19246 HAVE_PRIOR_FUNCS=0
19247 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
19248 echo "configure:19249: checking for pthread_attr_getschedpolicy" >&5
19249 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19250 echo $ac_n "(cached) $ac_c" 1>&6
19251 else
19252 cat > conftest.$ac_ext <<EOF
19253 #line 19254 "configure"
19254 #include "confdefs.h"
19255 /* System header to define __stub macros and hopefully few prototypes,
19256 which can conflict with char pthread_attr_getschedpolicy(); below. */
19257 #include <assert.h>
19258 /* Override any gcc2 internal prototype to avoid an error. */
19259 /* We use char because int might match the return type of a gcc2
19260 builtin and then its argument prototype would still apply. */
19261 char pthread_attr_getschedpolicy();
19262
19263 int main() {
19264
19265 /* The GNU C library defines this for functions which it implements
19266 to always fail with ENOSYS. Some functions are actually named
19267 something starting with __ and the normal name is an alias. */
19268 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19269 choke me
19270 #else
19271 pthread_attr_getschedpolicy();
19272 #endif
19273
19274 ; return 0; }
19275 EOF
19276 if { (eval echo configure:19277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19277 rm -rf conftest*
19278 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19279 else
19280 echo "configure: failed program was:" >&5
19281 cat conftest.$ac_ext >&5
19282 rm -rf conftest*
19283 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19284 fi
19285 rm -f conftest*
19286 fi
19287
19288 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19289 echo "$ac_t""yes" 1>&6
19290 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
19291 echo "configure:19292: checking for pthread_attr_setschedparam" >&5
19292 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19293 echo $ac_n "(cached) $ac_c" 1>&6
19294 else
19295 cat > conftest.$ac_ext <<EOF
19296 #line 19297 "configure"
19297 #include "confdefs.h"
19298 /* System header to define __stub macros and hopefully few prototypes,
19299 which can conflict with char pthread_attr_setschedparam(); below. */
19300 #include <assert.h>
19301 /* Override any gcc2 internal prototype to avoid an error. */
19302 /* We use char because int might match the return type of a gcc2
19303 builtin and then its argument prototype would still apply. */
19304 char pthread_attr_setschedparam();
19305
19306 int main() {
19307
19308 /* The GNU C library defines this for functions which it implements
19309 to always fail with ENOSYS. Some functions are actually named
19310 something starting with __ and the normal name is an alias. */
19311 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19312 choke me
19313 #else
19314 pthread_attr_setschedparam();
19315 #endif
19316
19317 ; return 0; }
19318 EOF
19319 if { (eval echo configure:19320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19320 rm -rf conftest*
19321 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19322 else
19323 echo "configure: failed program was:" >&5
19324 cat conftest.$ac_ext >&5
19325 rm -rf conftest*
19326 eval "ac_cv_func_pthread_attr_setschedparam=no"
19327 fi
19328 rm -f conftest*
19329 fi
19330
19331 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19332 echo "$ac_t""yes" 1>&6
19333 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
19334 echo "configure:19335: checking for sched_get_priority_max" >&5
19335 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19336 echo $ac_n "(cached) $ac_c" 1>&6
19337 else
19338 cat > conftest.$ac_ext <<EOF
19339 #line 19340 "configure"
19340 #include "confdefs.h"
19341 /* System header to define __stub macros and hopefully few prototypes,
19342 which can conflict with char sched_get_priority_max(); below. */
19343 #include <assert.h>
19344 /* Override any gcc2 internal prototype to avoid an error. */
19345 /* We use char because int might match the return type of a gcc2
19346 builtin and then its argument prototype would still apply. */
19347 char sched_get_priority_max();
19348
19349 int main() {
19350
19351 /* The GNU C library defines this for functions which it implements
19352 to always fail with ENOSYS. Some functions are actually named
19353 something starting with __ and the normal name is an alias. */
19354 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19355 choke me
19356 #else
19357 sched_get_priority_max();
19358 #endif
19359
19360 ; return 0; }
19361 EOF
19362 if { (eval echo configure:19363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19363 rm -rf conftest*
19364 eval "ac_cv_func_sched_get_priority_max=yes"
19365 else
19366 echo "configure: failed program was:" >&5
19367 cat conftest.$ac_ext >&5
19368 rm -rf conftest*
19369 eval "ac_cv_func_sched_get_priority_max=no"
19370 fi
19371 rm -f conftest*
19372 fi
19373
19374 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19375 echo "$ac_t""yes" 1>&6
19376 HAVE_PRIOR_FUNCS=1
19377 else
19378 echo "$ac_t""no" 1>&6
19379 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
19380 echo "configure:19381: checking for sched_get_priority_max in -lposix4" >&5
19381 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19383 echo $ac_n "(cached) $ac_c" 1>&6
19384 else
19385 ac_save_LIBS="$LIBS"
19386 LIBS="-lposix4 $LIBS"
19387 cat > conftest.$ac_ext <<EOF
19388 #line 19389 "configure"
19389 #include "confdefs.h"
19390 /* Override any gcc2 internal prototype to avoid an error. */
19391 /* We use char because int might match the return type of a gcc2
19392 builtin and then its argument prototype would still apply. */
19393 char sched_get_priority_max();
19394
19395 int main() {
19396 sched_get_priority_max()
19397 ; return 0; }
19398 EOF
19399 if { (eval echo configure:19400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19400 rm -rf conftest*
19401 eval "ac_cv_lib_$ac_lib_var=yes"
19402 else
19403 echo "configure: failed program was:" >&5
19404 cat conftest.$ac_ext >&5
19405 rm -rf conftest*
19406 eval "ac_cv_lib_$ac_lib_var=no"
19407 fi
19408 rm -f conftest*
19409 LIBS="$ac_save_LIBS"
19410
19411 fi
19412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19413 echo "$ac_t""yes" 1>&6
19414
19415 HAVE_PRIOR_FUNCS=1
19416 POSIX4_LINK=" -lposix4"
19417
19418 else
19419 echo "$ac_t""no" 1>&6
19420 fi
19421
19422
19423 fi
19424
19425
19426 else
19427 echo "$ac_t""no" 1>&6
19428 fi
19429
19430
19431 else
19432 echo "$ac_t""no" 1>&6
19433 fi
19434
19435
19436 if test "$HAVE_PRIOR_FUNCS" = 1; then
19437 cat >> confdefs.h <<\EOF
19438 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19439 EOF
19440
19441 else
19442 echo "configure: warning: Setting thread priority will not work" 1>&2
19443 fi
19444
19445 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19446 echo "configure:19447: checking for pthread_cancel" >&5
19447 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19448 echo $ac_n "(cached) $ac_c" 1>&6
19449 else
19450 cat > conftest.$ac_ext <<EOF
19451 #line 19452 "configure"
19452 #include "confdefs.h"
19453 /* System header to define __stub macros and hopefully few prototypes,
19454 which can conflict with char pthread_cancel(); below. */
19455 #include <assert.h>
19456 /* Override any gcc2 internal prototype to avoid an error. */
19457 /* We use char because int might match the return type of a gcc2
19458 builtin and then its argument prototype would still apply. */
19459 char pthread_cancel();
19460
19461 int main() {
19462
19463 /* The GNU C library defines this for functions which it implements
19464 to always fail with ENOSYS. Some functions are actually named
19465 something starting with __ and the normal name is an alias. */
19466 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19467 choke me
19468 #else
19469 pthread_cancel();
19470 #endif
19471
19472 ; return 0; }
19473 EOF
19474 if { (eval echo configure:19475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19475 rm -rf conftest*
19476 eval "ac_cv_func_pthread_cancel=yes"
19477 else
19478 echo "configure: failed program was:" >&5
19479 cat conftest.$ac_ext >&5
19480 rm -rf conftest*
19481 eval "ac_cv_func_pthread_cancel=no"
19482 fi
19483 rm -f conftest*
19484 fi
19485
19486 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19487 echo "$ac_t""yes" 1>&6
19488 cat >> confdefs.h <<\EOF
19489 #define HAVE_PTHREAD_CANCEL 1
19490 EOF
19491
19492 else
19493 echo "$ac_t""no" 1>&6
19494 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19495 fi
19496
19497
19498 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19499 echo "configure:19500: checking for pthread_cleanup_push/pop" >&5
19500 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19501 echo $ac_n "(cached) $ac_c" 1>&6
19502 else
19503
19504 cat > conftest.$ac_ext <<EOF
19505 #line 19506 "configure"
19506 #include "confdefs.h"
19507 #include <pthread.h>
19508 int main() {
19509
19510 pthread_cleanup_push(NULL, NULL);
19511 pthread_cleanup_pop(0);
19512
19513 ; return 0; }
19514 EOF
19515 if { (eval echo configure:19516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19516 rm -rf conftest*
19517
19518 wx_cv_func_pthread_cleanup_push=yes
19519
19520 else
19521 echo "configure: failed program was:" >&5
19522 cat conftest.$ac_ext >&5
19523 rm -rf conftest*
19524
19525 wx_cv_func_pthread_cleanup_push=no
19526
19527 fi
19528 rm -f conftest*
19529
19530 fi
19531
19532 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19533
19534 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19535 cat >> confdefs.h <<\EOF
19536 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19537 EOF
19538
19539 fi
19540
19541
19542 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19543 echo "configure:19544: checking for pthread_mutexattr_t" >&5
19544 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19545 echo $ac_n "(cached) $ac_c" 1>&6
19546 else
19547
19548 cat > conftest.$ac_ext <<EOF
19549 #line 19550 "configure"
19550 #include "confdefs.h"
19551 #include <pthread.h>
19552 int main() {
19553
19554 pthread_mutexattr_t attr;
19555 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19556
19557 ; return 0; }
19558 EOF
19559 if { (eval echo configure:19560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19560 rm -rf conftest*
19561
19562 wx_cv_type_pthread_mutexattr_t=yes
19563
19564 else
19565 echo "configure: failed program was:" >&5
19566 cat conftest.$ac_ext >&5
19567 rm -rf conftest*
19568
19569 wx_cv_type_pthread_mutexattr_t=no
19570
19571
19572 fi
19573 rm -f conftest*
19574
19575 fi
19576
19577 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19578
19579 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19580 cat >> confdefs.h <<\EOF
19581 #define HAVE_PTHREAD_MUTEXATTR_T 1
19582 EOF
19583
19584 else
19585 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19586 echo "configure:19587: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19587 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19588 echo $ac_n "(cached) $ac_c" 1>&6
19589 else
19590
19591 cat > conftest.$ac_ext <<EOF
19592 #line 19593 "configure"
19593 #include "confdefs.h"
19594 #include <pthread.h>
19595 int main() {
19596
19597 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19598
19599 ; return 0; }
19600 EOF
19601 if { (eval echo configure:19602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19602 rm -rf conftest*
19603
19604 wx_cv_type_pthread_rec_mutex_init=yes
19605
19606 else
19607 echo "configure: failed program was:" >&5
19608 cat conftest.$ac_ext >&5
19609 rm -rf conftest*
19610
19611 wx_cv_type_pthread_rec_mutex_init=no
19612
19613
19614 fi
19615 rm -f conftest*
19616
19617 fi
19618
19619 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19620 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19621 cat >> confdefs.h <<\EOF
19622 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19623 EOF
19624
19625 else
19626 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19627 fi
19628 fi
19629 fi
19630
19631 else
19632 if test "$wxUSE_THREADS" = "yes" ; then
19633 case "${host}" in
19634 *-*-mingw32* )
19635 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19636 echo "configure:19637: checking if compiler supports -mthreads" >&5
19637 if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19638 echo $ac_n "(cached) $ac_c" 1>&6
19639 else
19640
19641 CFLAGS_OLD="$CFLAGS"
19642 CFLAGS="$CFLAGS -mthreads"
19643 cat > conftest.$ac_ext <<EOF
19644 #line 19645 "configure"
19645 #include "confdefs.h"
19646
19647 int main() {
19648
19649 ; return 0; }
19650 EOF
19651 if { (eval echo configure:19652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19652 rm -rf conftest*
19653 wx_cv_cflags_mthread=yes
19654 else
19655 echo "configure: failed program was:" >&5
19656 cat conftest.$ac_ext >&5
19657 rm -rf conftest*
19658 wx_cv_cflags_mthread=no
19659
19660 fi
19661 rm -f conftest*
19662
19663
19664 fi
19665
19666 echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19667
19668 if test "$wx_cv_cflags_mthread" = "yes"; then
19669 CXXFLAGS="$CXXFLAGS -mthreads"
19670 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19671 LDFLAGS="$LDFLAGS -mthreads"
19672 else
19673 CFLAGS="$CFLAGS_OLD"
19674 fi
19675 ;;
19676 esac
19677 fi
19678 fi
19679
19680 if test "$wxUSE_THREADS" = "yes"; then
19681 cat >> confdefs.h <<\EOF
19682 #define wxUSE_THREADS 1
19683 EOF
19684
19685
19686 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19687 else
19688 if test "$ac_cv_func_strtok_r" = "yes"; then
19689 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19690 echo "configure:19691: checking if -D_REENTRANT is needed" >&5
19691 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19692 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19693 echo "$ac_t""yes" 1>&6
19694 else
19695 echo "$ac_t""no" 1>&6
19696 fi
19697 fi
19698 fi
19699
19700 if test "$WXGTK20" = 1 ; then
19701 cat >> confdefs.h <<EOF
19702 #define __WXGTK20__ $WXGTK20
19703 EOF
19704
19705 WXGTK12=1
19706 fi
19707
19708 if test "$WXGTK12" = 1 ; then
19709 cat >> confdefs.h <<EOF
19710 #define __WXGTK12__ $WXGTK12
19711 EOF
19712
19713 fi
19714
19715 if test "$WXGTK127" = 1 ; then
19716 cat >> confdefs.h <<EOF
19717 #define __WXGTK127__ $WXGTK127
19718 EOF
19719
19720 fi
19721
19722 WXDEBUG=
19723
19724 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19725 WXDEBUG="-g"
19726 wxUSE_OPTIMISE=no
19727 fi
19728
19729 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19730 wxUSE_DEBUG_INFO=yes
19731 WXDEBUG="-ggdb"
19732 fi
19733
19734 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19735 cat >> confdefs.h <<\EOF
19736 #define WXDEBUG 1
19737 EOF
19738
19739 WXDEBUG_DEFINE="-D__WXDEBUG__"
19740 else
19741 if test "$wxUSE_GTK" = 1 ; then
19742 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19743 fi
19744 fi
19745
19746 if test "$wxUSE_MEM_TRACING" = "yes" ; then
19747 cat >> confdefs.h <<\EOF
19748 #define wxUSE_MEMORY_TRACING 1
19749 EOF
19750
19751 cat >> confdefs.h <<\EOF
19752 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19753 EOF
19754
19755 cat >> confdefs.h <<\EOF
19756 #define wxUSE_DEBUG_NEW_ALWAYS 1
19757 EOF
19758
19759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19760 fi
19761
19762 if test "$wxUSE_DMALLOC" = "yes" ; then
19763 DMALLOC_LIBS="-ldmalloc"
19764 fi
19765
19766 PROFILE=
19767 if test "$wxUSE_PROFILE" = "yes" ; then
19768 PROFILE=" -pg"
19769 fi
19770
19771 CODE_GEN_FLAGS=
19772 CODE_GEN_FLAGS_CXX=
19773 if test "$GCC" = "yes" ; then
19774 if test "$wxUSE_NO_RTTI" = "yes" ; then
19775 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19776 fi
19777 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19778 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19779 fi
19780 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19781 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19782 fi
19783 if test "$USE_WIN32" = 1 ; then
19784 # I'm not even really sure what this was ever added to solve,
19785 # but someone added it for mingw native builds, so I guess
19786 # they had a reason, right??
19787 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19788 fi
19789
19790 case "${host}" in
19791 powerpc*-*-aix* )
19792 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19793 ;;
19794 *-hppa* )
19795 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19796 ;;
19797 esac
19798 fi
19799
19800 OPTIMISE=
19801 if test "$wxUSE_OPTIMISE" = "no" ; then
19802 if test "$GCC" = yes ; then
19803 OPTIMISE="-O0"
19804 fi
19805 else
19806 if test "$GCC" = yes ; then
19807 OPTIMISE="-O2"
19808
19809 case "${host}" in
19810 i586-*-*|i686-*-* )
19811 OPTIMISE="${OPTIMISE} "
19812 ;;
19813 esac
19814 else
19815 OPTIMISE="-O"
19816 fi
19817 fi
19818
19819
19820 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19821 cat >> confdefs.h <<\EOF
19822 #define WXWIN_COMPATIBILITY_2 1
19823 EOF
19824
19825
19826 WXWIN_COMPATIBILITY_2_2="yes"
19827 fi
19828
19829 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19830 cat >> confdefs.h <<\EOF
19831 #define WXWIN_COMPATIBILITY_2_2 1
19832 EOF
19833
19834
19835 WXWIN_COMPATIBILITY_2_4="yes"
19836 fi
19837
19838 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19839 cat >> confdefs.h <<\EOF
19840 #define WXWIN_COMPATIBILITY_2_4 1
19841 EOF
19842
19843 fi
19844
19845
19846 if test "$wxUSE_GUI" = "yes"; then
19847 cat >> confdefs.h <<\EOF
19848 #define wxUSE_GUI 1
19849 EOF
19850
19851
19852 else
19853 cat >> confdefs.h <<\EOF
19854 #define wxUSE_NOGUI 1
19855 EOF
19856
19857 fi
19858
19859
19860 if test "$wxUSE_UNIX" = "yes"; then
19861 cat >> confdefs.h <<\EOF
19862 #define wxUSE_UNIX 1
19863 EOF
19864
19865 fi
19866
19867
19868 if test "$wxUSE_APPLE_IEEE" = "yes"; then
19869 cat >> confdefs.h <<\EOF
19870 #define wxUSE_APPLE_IEEE 1
19871 EOF
19872
19873 fi
19874
19875 if test "$wxUSE_TIMER" = "yes"; then
19876 cat >> confdefs.h <<\EOF
19877 #define wxUSE_TIMER 1
19878 EOF
19879
19880 fi
19881
19882 if test "$wxUSE_WAVE" = "yes"; then
19883 cat >> confdefs.h <<\EOF
19884 #define wxUSE_WAVE 1
19885 EOF
19886
19887 fi
19888
19889 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19890 cat >> confdefs.h <<\EOF
19891 #define wxUSE_CMDLINE_PARSER 1
19892 EOF
19893
19894 fi
19895
19896 if test "$wxUSE_STOPWATCH" = "yes"; then
19897 cat >> confdefs.h <<\EOF
19898 #define wxUSE_STOPWATCH 1
19899 EOF
19900
19901 fi
19902
19903 if test "$wxUSE_DATETIME" = "yes"; then
19904 cat >> confdefs.h <<\EOF
19905 #define wxUSE_DATETIME 1
19906 EOF
19907
19908 fi
19909
19910 if test "$wxUSE_FILE" = "yes"; then
19911 cat >> confdefs.h <<\EOF
19912 #define wxUSE_FILE 1
19913 EOF
19914
19915 fi
19916
19917 if test "$wxUSE_FFILE" = "yes"; then
19918 cat >> confdefs.h <<\EOF
19919 #define wxUSE_FFILE 1
19920 EOF
19921
19922 fi
19923
19924 if test "$wxUSE_FILESYSTEM" = "yes"; then
19925 cat >> confdefs.h <<\EOF
19926 #define wxUSE_FILESYSTEM 1
19927 EOF
19928
19929 fi
19930
19931 if test "$wxUSE_FS_INET" = "yes"; then
19932 cat >> confdefs.h <<\EOF
19933 #define wxUSE_FS_INET 1
19934 EOF
19935
19936 fi
19937
19938 if test "$wxUSE_FS_ZIP" = "yes"; then
19939 cat >> confdefs.h <<\EOF
19940 #define wxUSE_FS_ZIP 1
19941 EOF
19942
19943 fi
19944
19945 if test "$wxUSE_ZIPSTREAM" = "yes"; then
19946 cat >> confdefs.h <<\EOF
19947 #define wxUSE_ZIPSTREAM 1
19948 EOF
19949
19950 fi
19951
19952 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19953 cat >> confdefs.h <<\EOF
19954 #define wxUSE_ON_FATAL_EXCEPTION 1
19955 EOF
19956
19957 fi
19958
19959 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19960 cat >> confdefs.h <<\EOF
19961 #define wxUSE_SNGLINST_CHECKER 1
19962 EOF
19963
19964 fi
19965
19966 if test "$wxUSE_BUSYINFO" = "yes"; then
19967 cat >> confdefs.h <<\EOF
19968 #define wxUSE_BUSYINFO 1
19969 EOF
19970
19971 fi
19972
19973 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19974 cat >> confdefs.h <<\EOF
19975 #define wxUSE_STD_IOSTREAM 1
19976 EOF
19977
19978 fi
19979
19980 if test "$wxUSE_TEXTBUFFER" = "yes"; then
19981 cat >> confdefs.h <<\EOF
19982 #define wxUSE_TEXTBUFFER 1
19983 EOF
19984
19985 fi
19986
19987 if test "$wxUSE_TEXTFILE" = "yes"; then
19988 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19989 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19990 else
19991 cat >> confdefs.h <<\EOF
19992 #define wxUSE_TEXTFILE 1
19993 EOF
19994
19995 fi
19996 fi
19997
19998 if test "$wxUSE_CONFIG" = "yes" ; then
19999 if test "$wxUSE_TEXTFILE" != "yes"; then
20000 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
20001 else
20002 cat >> confdefs.h <<\EOF
20003 #define wxUSE_CONFIG 1
20004 EOF
20005
20006 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
20007 fi
20008 fi
20009
20010 if test "$wxUSE_INTL" = "yes" ; then
20011 if test "$wxUSE_FILE" != "yes"; then
20012 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
20013 else
20014 cat >> confdefs.h <<\EOF
20015 #define wxUSE_INTL 1
20016 EOF
20017
20018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
20019 GUIDIST="$GUIDIST INTL_DIST"
20020 fi
20021 fi
20022
20023 if test "$wxUSE_LOG" = "yes"; then
20024 cat >> confdefs.h <<\EOF
20025 #define wxUSE_LOG 1
20026 EOF
20027
20028
20029 if test "$wxUSE_LOGGUI" = "yes"; then
20030 cat >> confdefs.h <<\EOF
20031 #define wxUSE_LOGGUI 1
20032 EOF
20033
20034 fi
20035
20036 if test "$wxUSE_LOGWINDOW" = "yes"; then
20037 cat >> confdefs.h <<\EOF
20038 #define wxUSE_LOGWINDOW 1
20039 EOF
20040
20041 fi
20042
20043 if test "$wxUSE_LOGDIALOG" = "yes"; then
20044 cat >> confdefs.h <<\EOF
20045 #define wxUSE_LOG_DIALOG 1
20046 EOF
20047
20048 fi
20049 fi
20050
20051 if test "$wxUSE_LONGLONG" = "yes"; then
20052 cat >> confdefs.h <<\EOF
20053 #define wxUSE_LONGLONG 1
20054 EOF
20055
20056 fi
20057
20058 if test "$wxUSE_GEOMETRY" = "yes"; then
20059 cat >> confdefs.h <<\EOF
20060 #define wxUSE_GEOMETRY 1
20061 EOF
20062
20063 fi
20064
20065 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
20066 cat >> confdefs.h <<\EOF
20067 #define wxUSE_DIALUP_MANAGER 1
20068 EOF
20069
20070 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
20071 fi
20072
20073 if test "$wxUSE_STREAMS" = "yes" ; then
20074 cat >> confdefs.h <<\EOF
20075 #define wxUSE_STREAMS 1
20076 EOF
20077
20078 fi
20079
20080
20081 if test "$wxUSE_DATETIME" = "yes"; then
20082 for ac_func in strptime
20083 do
20084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20085 echo "configure:20086: checking for $ac_func" >&5
20086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20087 echo $ac_n "(cached) $ac_c" 1>&6
20088 else
20089 cat > conftest.$ac_ext <<EOF
20090 #line 20091 "configure"
20091 #include "confdefs.h"
20092 /* System header to define __stub macros and hopefully few prototypes,
20093 which can conflict with char $ac_func(); below. */
20094 #include <assert.h>
20095 /* Override any gcc2 internal prototype to avoid an error. */
20096 /* We use char because int might match the return type of a gcc2
20097 builtin and then its argument prototype would still apply. */
20098 char $ac_func();
20099
20100 int main() {
20101
20102 /* The GNU C library defines this for functions which it implements
20103 to always fail with ENOSYS. Some functions are actually named
20104 something starting with __ and the normal name is an alias. */
20105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20106 choke me
20107 #else
20108 $ac_func();
20109 #endif
20110
20111 ; return 0; }
20112 EOF
20113 if { (eval echo configure:20114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20114 rm -rf conftest*
20115 eval "ac_cv_func_$ac_func=yes"
20116 else
20117 echo "configure: failed program was:" >&5
20118 cat conftest.$ac_ext >&5
20119 rm -rf conftest*
20120 eval "ac_cv_func_$ac_func=no"
20121 fi
20122 rm -f conftest*
20123 fi
20124
20125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20126 echo "$ac_t""yes" 1>&6
20127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20128 cat >> confdefs.h <<EOF
20129 #define $ac_tr_func 1
20130 EOF
20131
20132 else
20133 echo "$ac_t""no" 1>&6
20134 fi
20135 done
20136
20137
20138 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
20139 echo "configure:20140: checking for timezone variable in <time.h>" >&5
20140 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
20141 echo $ac_n "(cached) $ac_c" 1>&6
20142 else
20143
20144 cat > conftest.$ac_ext <<EOF
20145 #line 20146 "configure"
20146 #include "confdefs.h"
20147
20148 #include <time.h>
20149
20150 int main() {
20151
20152 int tz;
20153 tz = timezone;
20154
20155 ; return 0; }
20156 EOF
20157 if { (eval echo configure:20158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20158 rm -rf conftest*
20159
20160 wx_cv_var_timezone=timezone
20161
20162 else
20163 echo "configure: failed program was:" >&5
20164 cat conftest.$ac_ext >&5
20165 rm -rf conftest*
20166
20167 cat > conftest.$ac_ext <<EOF
20168 #line 20169 "configure"
20169 #include "confdefs.h"
20170
20171 #include <time.h>
20172
20173 int main() {
20174
20175 int tz;
20176 tz = _timezone;
20177
20178 ; return 0; }
20179 EOF
20180 if { (eval echo configure:20181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20181 rm -rf conftest*
20182
20183 wx_cv_var_timezone=_timezone
20184
20185 else
20186 echo "configure: failed program was:" >&5
20187 cat conftest.$ac_ext >&5
20188 rm -rf conftest*
20189
20190 cat > conftest.$ac_ext <<EOF
20191 #line 20192 "configure"
20192 #include "confdefs.h"
20193
20194 #include <time.h>
20195
20196 int main() {
20197
20198 int tz;
20199 tz = __timezone;
20200
20201 ; return 0; }
20202 EOF
20203 if { (eval echo configure:20204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20204 rm -rf conftest*
20205
20206 wx_cv_var_timezone=__timezone
20207
20208 else
20209 echo "configure: failed program was:" >&5
20210 cat conftest.$ac_ext >&5
20211 rm -rf conftest*
20212
20213 if test "$USE_DOS" = 0 ; then
20214 echo "configure: warning: no timezone variable" 1>&2
20215 fi
20216
20217
20218 fi
20219 rm -f conftest*
20220
20221
20222 fi
20223 rm -f conftest*
20224
20225
20226 fi
20227 rm -f conftest*
20228
20229
20230 fi
20231
20232 echo "$ac_t""$wx_cv_var_timezone" 1>&6
20233
20234 if test "x$wx_cv_var_timezone" != x ; then
20235 cat >> confdefs.h <<EOF
20236 #define WX_TIMEZONE $wx_cv_var_timezone
20237 EOF
20238
20239 fi
20240
20241 for ac_func in localtime
20242 do
20243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20244 echo "configure:20245: checking for $ac_func" >&5
20245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20246 echo $ac_n "(cached) $ac_c" 1>&6
20247 else
20248 cat > conftest.$ac_ext <<EOF
20249 #line 20250 "configure"
20250 #include "confdefs.h"
20251 /* System header to define __stub macros and hopefully few prototypes,
20252 which can conflict with char $ac_func(); below. */
20253 #include <assert.h>
20254 /* Override any gcc2 internal prototype to avoid an error. */
20255 /* We use char because int might match the return type of a gcc2
20256 builtin and then its argument prototype would still apply. */
20257 char $ac_func();
20258
20259 int main() {
20260
20261 /* The GNU C library defines this for functions which it implements
20262 to always fail with ENOSYS. Some functions are actually named
20263 something starting with __ and the normal name is an alias. */
20264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20265 choke me
20266 #else
20267 $ac_func();
20268 #endif
20269
20270 ; return 0; }
20271 EOF
20272 if { (eval echo configure:20273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20273 rm -rf conftest*
20274 eval "ac_cv_func_$ac_func=yes"
20275 else
20276 echo "configure: failed program was:" >&5
20277 cat conftest.$ac_ext >&5
20278 rm -rf conftest*
20279 eval "ac_cv_func_$ac_func=no"
20280 fi
20281 rm -f conftest*
20282 fi
20283
20284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20285 echo "$ac_t""yes" 1>&6
20286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20287 cat >> confdefs.h <<EOF
20288 #define $ac_tr_func 1
20289 EOF
20290
20291 else
20292 echo "$ac_t""no" 1>&6
20293 fi
20294 done
20295
20296
20297 if test "$ac_cv_func_localtime" = "yes"; then
20298 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
20299 echo "configure:20300: checking for tm_gmtoff in struct tm" >&5
20300 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20301 echo $ac_n "(cached) $ac_c" 1>&6
20302 else
20303
20304 cat > conftest.$ac_ext <<EOF
20305 #line 20306 "configure"
20306 #include "confdefs.h"
20307
20308 #include <time.h>
20309
20310 int main() {
20311
20312 struct tm tm;
20313 tm.tm_gmtoff++;
20314
20315 ; return 0; }
20316 EOF
20317 if { (eval echo configure:20318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20318 rm -rf conftest*
20319
20320 wx_cv_struct_tm_has_gmtoff=yes
20321
20322 else
20323 echo "configure: failed program was:" >&5
20324 cat conftest.$ac_ext >&5
20325 rm -rf conftest*
20326 wx_cv_struct_tm_has_gmtoff=no
20327
20328 fi
20329 rm -f conftest*
20330
20331 fi
20332
20333 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
20334 fi
20335
20336 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
20337 cat >> confdefs.h <<\EOF
20338 #define WX_GMTOFF_IN_TM 1
20339 EOF
20340
20341 fi
20342
20343 for ac_func in gettimeofday ftime
20344 do
20345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20346 echo "configure:20347: checking for $ac_func" >&5
20347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20348 echo $ac_n "(cached) $ac_c" 1>&6
20349 else
20350 cat > conftest.$ac_ext <<EOF
20351 #line 20352 "configure"
20352 #include "confdefs.h"
20353 /* System header to define __stub macros and hopefully few prototypes,
20354 which can conflict with char $ac_func(); below. */
20355 #include <assert.h>
20356 /* Override any gcc2 internal prototype to avoid an error. */
20357 /* We use char because int might match the return type of a gcc2
20358 builtin and then its argument prototype would still apply. */
20359 char $ac_func();
20360
20361 int main() {
20362
20363 /* The GNU C library defines this for functions which it implements
20364 to always fail with ENOSYS. Some functions are actually named
20365 something starting with __ and the normal name is an alias. */
20366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20367 choke me
20368 #else
20369 $ac_func();
20370 #endif
20371
20372 ; return 0; }
20373 EOF
20374 if { (eval echo configure:20375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20375 rm -rf conftest*
20376 eval "ac_cv_func_$ac_func=yes"
20377 else
20378 echo "configure: failed program was:" >&5
20379 cat conftest.$ac_ext >&5
20380 rm -rf conftest*
20381 eval "ac_cv_func_$ac_func=no"
20382 fi
20383 rm -f conftest*
20384 fi
20385
20386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20387 echo "$ac_t""yes" 1>&6
20388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20389 cat >> confdefs.h <<EOF
20390 #define $ac_tr_func 1
20391 EOF
20392 break
20393 else
20394 echo "$ac_t""no" 1>&6
20395 fi
20396 done
20397
20398
20399 if test "$ac_cv_func_gettimeofday" = "yes"; then
20400 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
20401 echo "configure:20402: checking whether gettimeofday takes two arguments" >&5
20402 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20403 echo $ac_n "(cached) $ac_c" 1>&6
20404 else
20405
20406
20407 ac_ext=C
20408 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20409 ac_cpp='$CXXCPP $CPPFLAGS'
20410 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20411 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20412 cross_compiling=$ac_cv_prog_cxx_cross
20413
20414
20415 cat > conftest.$ac_ext <<EOF
20416 #line 20417 "configure"
20417 #include "confdefs.h"
20418
20419 #include <sys/time.h>
20420 #include <unistd.h>
20421
20422 int main() {
20423
20424 struct timeval tv;
20425 gettimeofday(&tv, NULL);
20426
20427 ; return 0; }
20428 EOF
20429 if { (eval echo configure:20430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20430 rm -rf conftest*
20431 wx_cv_func_gettimeofday_has_2_args=yes
20432 else
20433 echo "configure: failed program was:" >&5
20434 cat conftest.$ac_ext >&5
20435 rm -rf conftest*
20436 cat > conftest.$ac_ext <<EOF
20437 #line 20438 "configure"
20438 #include "confdefs.h"
20439
20440 #include <sys/time.h>
20441 #include <unistd.h>
20442
20443 int main() {
20444
20445 struct timeval tv;
20446 gettimeofday(&tv);
20447
20448 ; return 0; }
20449 EOF
20450 if { (eval echo configure:20451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20451 rm -rf conftest*
20452 wx_cv_func_gettimeofday_has_2_args=no
20453 else
20454 echo "configure: failed program was:" >&5
20455 cat conftest.$ac_ext >&5
20456 rm -rf conftest*
20457
20458 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20459 wx_cv_func_gettimeofday_has_2_args=unknown
20460
20461
20462 fi
20463 rm -f conftest*
20464
20465 fi
20466 rm -f conftest*
20467 ac_ext=c
20468 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20469 ac_cpp='$CPP $CPPFLAGS'
20470 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20471 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20472 cross_compiling=$ac_cv_prog_cc_cross
20473
20474
20475 fi
20476
20477 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20478
20479 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20480 cat >> confdefs.h <<\EOF
20481 #define WX_GETTIMEOFDAY_NO_TZ 1
20482 EOF
20483
20484 fi
20485 fi
20486
20487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20488 fi
20489
20490
20491 if test "$wxUSE_SOCKETS" = "yes"; then
20492 if test "$wxUSE_MGL" = "1"; then
20493 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20494 wxUSE_SOCKETS="no"
20495 fi
20496 fi
20497
20498 if test "$wxUSE_SOCKETS" = "yes"; then
20499 if test "$TOOLKIT" != "MSW"; then
20500 echo $ac_n "checking for socket""... $ac_c" 1>&6
20501 echo "configure:20502: checking for socket" >&5
20502 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20503 echo $ac_n "(cached) $ac_c" 1>&6
20504 else
20505 cat > conftest.$ac_ext <<EOF
20506 #line 20507 "configure"
20507 #include "confdefs.h"
20508 /* System header to define __stub macros and hopefully few prototypes,
20509 which can conflict with char socket(); below. */
20510 #include <assert.h>
20511 /* Override any gcc2 internal prototype to avoid an error. */
20512 /* We use char because int might match the return type of a gcc2
20513 builtin and then its argument prototype would still apply. */
20514 char socket();
20515
20516 int main() {
20517
20518 /* The GNU C library defines this for functions which it implements
20519 to always fail with ENOSYS. Some functions are actually named
20520 something starting with __ and the normal name is an alias. */
20521 #if defined (__stub_socket) || defined (__stub___socket)
20522 choke me
20523 #else
20524 socket();
20525 #endif
20526
20527 ; return 0; }
20528 EOF
20529 if { (eval echo configure:20530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20530 rm -rf conftest*
20531 eval "ac_cv_func_socket=yes"
20532 else
20533 echo "configure: failed program was:" >&5
20534 cat conftest.$ac_ext >&5
20535 rm -rf conftest*
20536 eval "ac_cv_func_socket=no"
20537 fi
20538 rm -f conftest*
20539 fi
20540
20541 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20542 echo "$ac_t""yes" 1>&6
20543 :
20544 else
20545 echo "$ac_t""no" 1>&6
20546 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20547 echo "configure:20548: checking for socket in -lsocket" >&5
20548 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20550 echo $ac_n "(cached) $ac_c" 1>&6
20551 else
20552 ac_save_LIBS="$LIBS"
20553 LIBS="-lsocket $LIBS"
20554 cat > conftest.$ac_ext <<EOF
20555 #line 20556 "configure"
20556 #include "confdefs.h"
20557 /* Override any gcc2 internal prototype to avoid an error. */
20558 /* We use char because int might match the return type of a gcc2
20559 builtin and then its argument prototype would still apply. */
20560 char socket();
20561
20562 int main() {
20563 socket()
20564 ; return 0; }
20565 EOF
20566 if { (eval echo configure:20567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20567 rm -rf conftest*
20568 eval "ac_cv_lib_$ac_lib_var=yes"
20569 else
20570 echo "configure: failed program was:" >&5
20571 cat conftest.$ac_ext >&5
20572 rm -rf conftest*
20573 eval "ac_cv_lib_$ac_lib_var=no"
20574 fi
20575 rm -f conftest*
20576 LIBS="$ac_save_LIBS"
20577
20578 fi
20579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20580 echo "$ac_t""yes" 1>&6
20581 if test "$INET_LINK" != " -lsocket"; then
20582 INET_LINK="$INET_LINK -lsocket"
20583 fi
20584 else
20585 echo "$ac_t""no" 1>&6
20586
20587 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20588 wxUSE_SOCKETS=no
20589
20590
20591 fi
20592
20593
20594 fi
20595
20596 fi
20597 fi
20598
20599 if test "$wxUSE_SOCKETS" = "yes" ; then
20600 if test "$TOOLKIT" != "MSW"; then
20601 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20602 echo "configure:20603: checking what is the type of the third argument of getsockname" >&5
20603 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20604 echo $ac_n "(cached) $ac_c" 1>&6
20605 else
20606
20607
20608 ac_ext=C
20609 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20610 ac_cpp='$CXXCPP $CPPFLAGS'
20611 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20612 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20613 cross_compiling=$ac_cv_prog_cxx_cross
20614
20615
20616 cat > conftest.$ac_ext <<EOF
20617 #line 20618 "configure"
20618 #include "confdefs.h"
20619
20620 #include <sys/types.h>
20621 #include <sys/socket.h>
20622
20623 int main() {
20624
20625 socklen_t len;
20626 getsockname(0, 0, &len);
20627
20628 ; return 0; }
20629 EOF
20630 if { (eval echo configure:20631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20631 rm -rf conftest*
20632 wx_cv_type_getsockname3=socklen_t
20633 else
20634 echo "configure: failed program was:" >&5
20635 cat conftest.$ac_ext >&5
20636 rm -rf conftest*
20637 cat > conftest.$ac_ext <<EOF
20638 #line 20639 "configure"
20639 #include "confdefs.h"
20640
20641 #include <sys/types.h>
20642 #include <sys/socket.h>
20643
20644 int main() {
20645
20646 size_t len;
20647 getsockname(0, 0, &len);
20648
20649 ; return 0; }
20650 EOF
20651 if { (eval echo configure:20652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20652 rm -rf conftest*
20653 wx_cv_type_getsockname3=size_t
20654 else
20655 echo "configure: failed program was:" >&5
20656 cat conftest.$ac_ext >&5
20657 rm -rf conftest*
20658 cat > conftest.$ac_ext <<EOF
20659 #line 20660 "configure"
20660 #include "confdefs.h"
20661
20662 #include <sys/types.h>
20663 #include <sys/socket.h>
20664
20665 int main() {
20666
20667 int len;
20668 getsockname(0, 0, &len);
20669
20670 ; return 0; }
20671 EOF
20672 if { (eval echo configure:20673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20673 rm -rf conftest*
20674 wx_cv_type_getsockname3=int
20675 else
20676 echo "configure: failed program was:" >&5
20677 cat conftest.$ac_ext >&5
20678 rm -rf conftest*
20679 wx_cv_type_getsockname3=unknown
20680
20681 fi
20682 rm -f conftest*
20683
20684 fi
20685 rm -f conftest*
20686
20687 fi
20688 rm -f conftest*
20689
20690 ac_ext=c
20691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20692 ac_cpp='$CPP $CPPFLAGS'
20693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20695 cross_compiling=$ac_cv_prog_cc_cross
20696
20697
20698 fi
20699
20700 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20701
20702 if test "$wx_cv_type_getsockname3" = "unknown"; then
20703 wxUSE_SOCKETS=no
20704 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20705 else
20706 cat >> confdefs.h <<EOF
20707 #define SOCKLEN_T $wx_cv_type_getsockname3
20708 EOF
20709
20710 fi
20711 fi
20712 fi
20713
20714 if test "$wxUSE_SOCKETS" = "yes" ; then
20715 cat >> confdefs.h <<\EOF
20716 #define wxUSE_SOCKETS 1
20717 EOF
20718
20719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20720 fi
20721
20722
20723 if test "$wxUSE_GUI" = "yes"; then
20724
20725 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
20726 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20727 wxUSE_JOYSTICK=no
20728 fi
20729 if test "$TOOLKIT" = "MOTIF"; then
20730 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20731 wxUSE_JOYSTICK=no
20732 fi
20733 if test "$TOOLKIT" = "X11"; then
20734 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20735 wxUSE_JOYSTICK=no
20736 fi
20737
20738 if test "$TOOLKIT" != "MSW"; then
20739 if test "$wxUSE_JOYSTICK" = "yes"; then
20740 for ac_hdr in linux/joystick.h
20741 do
20742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20744 echo "configure:20745: checking for $ac_hdr" >&5
20745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20746 echo $ac_n "(cached) $ac_c" 1>&6
20747 else
20748 cat > conftest.$ac_ext <<EOF
20749 #line 20750 "configure"
20750 #include "confdefs.h"
20751 #include <$ac_hdr>
20752 EOF
20753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20754 { (eval echo configure:20755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20756 if test -z "$ac_err"; then
20757 rm -rf conftest*
20758 eval "ac_cv_header_$ac_safe=yes"
20759 else
20760 echo "$ac_err" >&5
20761 echo "configure: failed program was:" >&5
20762 cat conftest.$ac_ext >&5
20763 rm -rf conftest*
20764 eval "ac_cv_header_$ac_safe=no"
20765 fi
20766 rm -f conftest*
20767 fi
20768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20769 echo "$ac_t""yes" 1>&6
20770 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20771 cat >> confdefs.h <<EOF
20772 #define $ac_tr_hdr 1
20773 EOF
20774
20775 else
20776 echo "$ac_t""no" 1>&6
20777 fi
20778 done
20779
20780 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20781 wxUSE_JOYSTICK=no
20782 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20783 fi
20784 fi
20785 fi
20786
20787 if test "$wxUSE_JOYSTICK" = "yes"; then
20788 cat >> confdefs.h <<\EOF
20789 #define wxUSE_JOYSTICK 1
20790 EOF
20791
20792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20793 fi
20794 fi
20795
20796
20797 if test "$TOOLKIT" != "MSW"; then
20798
20799 HAVE_DL_FUNCS=0
20800 HAVE_SHL_FUNCS=0
20801 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20802 if test "$USE_DARWIN" = 1; then
20803 HAVE_DL_FUNCS=1
20804 else
20805 for ac_func in dlopen
20806 do
20807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20808 echo "configure:20809: checking for $ac_func" >&5
20809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20810 echo $ac_n "(cached) $ac_c" 1>&6
20811 else
20812 cat > conftest.$ac_ext <<EOF
20813 #line 20814 "configure"
20814 #include "confdefs.h"
20815 /* System header to define __stub macros and hopefully few prototypes,
20816 which can conflict with char $ac_func(); below. */
20817 #include <assert.h>
20818 /* Override any gcc2 internal prototype to avoid an error. */
20819 /* We use char because int might match the return type of a gcc2
20820 builtin and then its argument prototype would still apply. */
20821 char $ac_func();
20822
20823 int main() {
20824
20825 /* The GNU C library defines this for functions which it implements
20826 to always fail with ENOSYS. Some functions are actually named
20827 something starting with __ and the normal name is an alias. */
20828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20829 choke me
20830 #else
20831 $ac_func();
20832 #endif
20833
20834 ; return 0; }
20835 EOF
20836 if { (eval echo configure:20837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20837 rm -rf conftest*
20838 eval "ac_cv_func_$ac_func=yes"
20839 else
20840 echo "configure: failed program was:" >&5
20841 cat conftest.$ac_ext >&5
20842 rm -rf conftest*
20843 eval "ac_cv_func_$ac_func=no"
20844 fi
20845 rm -f conftest*
20846 fi
20847
20848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20849 echo "$ac_t""yes" 1>&6
20850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20851 cat >> confdefs.h <<EOF
20852 #define $ac_tr_func 1
20853 EOF
20854
20855 cat >> confdefs.h <<\EOF
20856 #define HAVE_DLOPEN 1
20857 EOF
20858
20859 HAVE_DL_FUNCS=1
20860
20861 else
20862 echo "$ac_t""no" 1>&6
20863 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20864 echo "configure:20865: checking for dlopen in -ldl" >&5
20865 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20867 echo $ac_n "(cached) $ac_c" 1>&6
20868 else
20869 ac_save_LIBS="$LIBS"
20870 LIBS="-ldl $LIBS"
20871 cat > conftest.$ac_ext <<EOF
20872 #line 20873 "configure"
20873 #include "confdefs.h"
20874 /* Override any gcc2 internal prototype to avoid an error. */
20875 /* We use char because int might match the return type of a gcc2
20876 builtin and then its argument prototype would still apply. */
20877 char dlopen();
20878
20879 int main() {
20880 dlopen()
20881 ; return 0; }
20882 EOF
20883 if { (eval echo configure:20884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20884 rm -rf conftest*
20885 eval "ac_cv_lib_$ac_lib_var=yes"
20886 else
20887 echo "configure: failed program was:" >&5
20888 cat conftest.$ac_ext >&5
20889 rm -rf conftest*
20890 eval "ac_cv_lib_$ac_lib_var=no"
20891 fi
20892 rm -f conftest*
20893 LIBS="$ac_save_LIBS"
20894
20895 fi
20896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20897 echo "$ac_t""yes" 1>&6
20898
20899 cat >> confdefs.h <<\EOF
20900 #define HAVE_DLOPEN 1
20901 EOF
20902
20903 HAVE_DL_FUNCS=1
20904 DL_LINK=" -ldl$DL_LINK"
20905
20906 else
20907 echo "$ac_t""no" 1>&6
20908
20909 for ac_func in shl_load
20910 do
20911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20912 echo "configure:20913: checking for $ac_func" >&5
20913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20914 echo $ac_n "(cached) $ac_c" 1>&6
20915 else
20916 cat > conftest.$ac_ext <<EOF
20917 #line 20918 "configure"
20918 #include "confdefs.h"
20919 /* System header to define __stub macros and hopefully few prototypes,
20920 which can conflict with char $ac_func(); below. */
20921 #include <assert.h>
20922 /* Override any gcc2 internal prototype to avoid an error. */
20923 /* We use char because int might match the return type of a gcc2
20924 builtin and then its argument prototype would still apply. */
20925 char $ac_func();
20926
20927 int main() {
20928
20929 /* The GNU C library defines this for functions which it implements
20930 to always fail with ENOSYS. Some functions are actually named
20931 something starting with __ and the normal name is an alias. */
20932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20933 choke me
20934 #else
20935 $ac_func();
20936 #endif
20937
20938 ; return 0; }
20939 EOF
20940 if { (eval echo configure:20941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20941 rm -rf conftest*
20942 eval "ac_cv_func_$ac_func=yes"
20943 else
20944 echo "configure: failed program was:" >&5
20945 cat conftest.$ac_ext >&5
20946 rm -rf conftest*
20947 eval "ac_cv_func_$ac_func=no"
20948 fi
20949 rm -f conftest*
20950 fi
20951
20952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20953 echo "$ac_t""yes" 1>&6
20954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20955 cat >> confdefs.h <<EOF
20956 #define $ac_tr_func 1
20957 EOF
20958
20959 cat >> confdefs.h <<\EOF
20960 #define HAVE_SHL_LOAD 1
20961 EOF
20962
20963 HAVE_SHL_FUNCS=1
20964
20965 else
20966 echo "$ac_t""no" 1>&6
20967 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20968 echo "configure:20969: checking for dld in -lshl_load" >&5
20969 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20971 echo $ac_n "(cached) $ac_c" 1>&6
20972 else
20973 ac_save_LIBS="$LIBS"
20974 LIBS="-lshl_load $LIBS"
20975 cat > conftest.$ac_ext <<EOF
20976 #line 20977 "configure"
20977 #include "confdefs.h"
20978 /* Override any gcc2 internal prototype to avoid an error. */
20979 /* We use char because int might match the return type of a gcc2
20980 builtin and then its argument prototype would still apply. */
20981 char dld();
20982
20983 int main() {
20984 dld()
20985 ; return 0; }
20986 EOF
20987 if { (eval echo configure:20988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20988 rm -rf conftest*
20989 eval "ac_cv_lib_$ac_lib_var=yes"
20990 else
20991 echo "configure: failed program was:" >&5
20992 cat conftest.$ac_ext >&5
20993 rm -rf conftest*
20994 eval "ac_cv_lib_$ac_lib_var=no"
20995 fi
20996 rm -f conftest*
20997 LIBS="$ac_save_LIBS"
20998
20999 fi
21000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21001 echo "$ac_t""yes" 1>&6
21002
21003 HAVE_SHL_FUNCS=1
21004 DL_LINK=" -ldld$DL_LINK"
21005
21006 else
21007 echo "$ac_t""no" 1>&6
21008 fi
21009
21010
21011 fi
21012 done
21013
21014
21015 fi
21016
21017
21018 fi
21019 done
21020
21021
21022 if test "$HAVE_DL_FUNCS" = 1; then
21023 for ac_func in dlerror
21024 do
21025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21026 echo "configure:21027: checking for $ac_func" >&5
21027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21028 echo $ac_n "(cached) $ac_c" 1>&6
21029 else
21030 cat > conftest.$ac_ext <<EOF
21031 #line 21032 "configure"
21032 #include "confdefs.h"
21033 /* System header to define __stub macros and hopefully few prototypes,
21034 which can conflict with char $ac_func(); below. */
21035 #include <assert.h>
21036 /* Override any gcc2 internal prototype to avoid an error. */
21037 /* We use char because int might match the return type of a gcc2
21038 builtin and then its argument prototype would still apply. */
21039 char $ac_func();
21040
21041 int main() {
21042
21043 /* The GNU C library defines this for functions which it implements
21044 to always fail with ENOSYS. Some functions are actually named
21045 something starting with __ and the normal name is an alias. */
21046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21047 choke me
21048 #else
21049 $ac_func();
21050 #endif
21051
21052 ; return 0; }
21053 EOF
21054 if { (eval echo configure:21055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21055 rm -rf conftest*
21056 eval "ac_cv_func_$ac_func=yes"
21057 else
21058 echo "configure: failed program was:" >&5
21059 cat conftest.$ac_ext >&5
21060 rm -rf conftest*
21061 eval "ac_cv_func_$ac_func=no"
21062 fi
21063 rm -f conftest*
21064 fi
21065
21066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21067 echo "$ac_t""yes" 1>&6
21068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21069 cat >> confdefs.h <<EOF
21070 #define $ac_tr_func 1
21071 EOF
21072 cat >> confdefs.h <<\EOF
21073 #define HAVE_DLERROR 1
21074 EOF
21075
21076 else
21077 echo "$ac_t""no" 1>&6
21078 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
21079 echo "configure:21080: checking for dlerror in -ldl" >&5
21080 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
21081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21082 echo $ac_n "(cached) $ac_c" 1>&6
21083 else
21084 ac_save_LIBS="$LIBS"
21085 LIBS="-ldl $LIBS"
21086 cat > conftest.$ac_ext <<EOF
21087 #line 21088 "configure"
21088 #include "confdefs.h"
21089 /* Override any gcc2 internal prototype to avoid an error. */
21090 /* We use char because int might match the return type of a gcc2
21091 builtin and then its argument prototype would still apply. */
21092 char dlerror();
21093
21094 int main() {
21095 dlerror()
21096 ; return 0; }
21097 EOF
21098 if { (eval echo configure:21099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21099 rm -rf conftest*
21100 eval "ac_cv_lib_$ac_lib_var=yes"
21101 else
21102 echo "configure: failed program was:" >&5
21103 cat conftest.$ac_ext >&5
21104 rm -rf conftest*
21105 eval "ac_cv_lib_$ac_lib_var=no"
21106 fi
21107 rm -f conftest*
21108 LIBS="$ac_save_LIBS"
21109
21110 fi
21111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21112 echo "$ac_t""yes" 1>&6
21113 cat >> confdefs.h <<\EOF
21114 #define HAVE_DLERROR 1
21115 EOF
21116
21117 else
21118 echo "$ac_t""no" 1>&6
21119 fi
21120
21121 fi
21122 done
21123
21124 fi
21125 fi
21126
21127 if test "$HAVE_DL_FUNCS" = 0; then
21128 if test "$HAVE_SHL_FUNCS" = 0; then
21129 if test "$USE_UNIX" = 1; then
21130 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
21131 wxUSE_DYNAMIC_LOADER=no
21132 wxUSE_DYNLIB_CLASS=no
21133 else
21134 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
21135 fi
21136 fi
21137 fi
21138 fi
21139 fi
21140
21141 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
21142 cat >> confdefs.h <<\EOF
21143 #define wxUSE_DYNAMIC_LOADER 1
21144 EOF
21145
21146 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
21147 cat >> confdefs.h <<\EOF
21148 #define wxUSE_DYNLIB_CLASS 1
21149 EOF
21150
21151 fi
21152
21153
21154 if test "$wxUSE_FONTMAP" = "yes" ; then
21155 cat >> confdefs.h <<\EOF
21156 #define wxUSE_FONTMAP 1
21157 EOF
21158
21159 fi
21160
21161 if test "$wxUSE_UNICODE" = "yes" ; then
21162 cat >> confdefs.h <<\EOF
21163 #define wxUSE_UNICODE 1
21164 EOF
21165
21166
21167 if test "$wxUSE_MSW" != 1; then
21168 wxUSE_UNICODE_MSLU=no
21169 fi
21170
21171 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
21172 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
21173 echo "configure:21174: checking for main in -lunicows" >&5
21174 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
21175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21176 echo $ac_n "(cached) $ac_c" 1>&6
21177 else
21178 ac_save_LIBS="$LIBS"
21179 LIBS="-lunicows $LIBS"
21180 cat > conftest.$ac_ext <<EOF
21181 #line 21182 "configure"
21182 #include "confdefs.h"
21183
21184 int main() {
21185 main()
21186 ; return 0; }
21187 EOF
21188 if { (eval echo configure:21189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21189 rm -rf conftest*
21190 eval "ac_cv_lib_$ac_lib_var=yes"
21191 else
21192 echo "configure: failed program was:" >&5
21193 cat conftest.$ac_ext >&5
21194 rm -rf conftest*
21195 eval "ac_cv_lib_$ac_lib_var=no"
21196 fi
21197 rm -f conftest*
21198 LIBS="$ac_save_LIBS"
21199
21200 fi
21201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21202 echo "$ac_t""yes" 1>&6
21203
21204 cat >> confdefs.h <<\EOF
21205 #define wxUSE_UNICODE_MSLU 1
21206 EOF
21207
21208
21209 else
21210 echo "$ac_t""no" 1>&6
21211
21212 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21213 Applications will only run on Windows NT/2000/XP!" 1>&2
21214 wxUSE_UNICODE_MSLU=no
21215
21216 fi
21217
21218 fi
21219 fi
21220
21221 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
21222 cat >> confdefs.h <<\EOF
21223 #define wxUSE_EXPERIMENTAL_PRINTF 1
21224 EOF
21225
21226 fi
21227
21228
21229 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
21230 cat >> confdefs.h <<\EOF
21231 #define wxUSE_POSTSCRIPT 1
21232 EOF
21233
21234 fi
21235
21236 cat >> confdefs.h <<\EOF
21237 #define wxUSE_AFM_FOR_POSTSCRIPT 1
21238 EOF
21239
21240
21241 cat >> confdefs.h <<\EOF
21242 #define wxUSE_NORMALIZED_PS_FONTS 1
21243 EOF
21244
21245
21246
21247 if test "$wxUSE_CONSTRAINTS" = "yes"; then
21248 cat >> confdefs.h <<\EOF
21249 #define wxUSE_CONSTRAINTS 1
21250 EOF
21251
21252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21253 fi
21254
21255 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21256
21257
21258 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21259 cat >> confdefs.h <<\EOF
21260 #define wxUSE_MDI_ARCHITECTURE 1
21261 EOF
21262
21263 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21264 fi
21265 fi
21266
21267 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
21268 cat >> confdefs.h <<\EOF
21269 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
21270 EOF
21271
21272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21273 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21275 fi
21276 fi
21277
21278 if test "$wxUSE_HELP" = "yes"; then
21279 cat >> confdefs.h <<\EOF
21280 #define wxUSE_HELP 1
21281 EOF
21282
21283 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
21284
21285 if test "$wxUSE_MSW" = 1; then
21286 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
21287 cat >> confdefs.h <<\EOF
21288 #define wxUSE_MS_HTML_HELP 1
21289 EOF
21290
21291 fi
21292 fi
21293
21294 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21295 if test "$wxUSE_HTML" = "yes"; then
21296 cat >> confdefs.h <<\EOF
21297 #define wxUSE_WXHTML_HELP 1
21298 EOF
21299
21300 else
21301 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
21302 wxUSE_WXHTML_HELP=no
21303 fi
21304 fi
21305 fi
21306
21307 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21308 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21309 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
21310 else
21311 cat >> confdefs.h <<\EOF
21312 #define wxUSE_PRINTING_ARCHITECTURE 1
21313 EOF
21314
21315 fi
21316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21317 fi
21318
21319 if test "$wxUSE_PROLOGIO" = "yes" -o test "$wxUSE_RESOURCES" = "yes"; then
21320 { echo "configure: error: wxExpr and old-style resources are now available in contrib only" 1>&2; exit 1; }
21321 fi
21322
21323
21324 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21325 -o "$wxUSE_CLIPBOARD" = "yes" \
21326 -o "$wxUSE_OLE" = "yes" \
21327 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
21328 for ac_hdr in ole2.h
21329 do
21330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21332 echo "configure:21333: checking for $ac_hdr" >&5
21333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21334 echo $ac_n "(cached) $ac_c" 1>&6
21335 else
21336 cat > conftest.$ac_ext <<EOF
21337 #line 21338 "configure"
21338 #include "confdefs.h"
21339 #include <$ac_hdr>
21340 EOF
21341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21342 { (eval echo configure:21343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21344 if test -z "$ac_err"; then
21345 rm -rf conftest*
21346 eval "ac_cv_header_$ac_safe=yes"
21347 else
21348 echo "$ac_err" >&5
21349 echo "configure: failed program was:" >&5
21350 cat conftest.$ac_ext >&5
21351 rm -rf conftest*
21352 eval "ac_cv_header_$ac_safe=no"
21353 fi
21354 rm -f conftest*
21355 fi
21356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21357 echo "$ac_t""yes" 1>&6
21358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21359 cat >> confdefs.h <<EOF
21360 #define $ac_tr_hdr 1
21361 EOF
21362
21363 else
21364 echo "$ac_t""no" 1>&6
21365 fi
21366 done
21367
21368
21369 if test "$ac_cv_header_ole2_h" = "yes" ; then
21370 if test "$GCC" = yes ; then
21371
21372 ac_ext=C
21373 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21374 ac_cpp='$CXXCPP $CPPFLAGS'
21375 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21376 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21377 cross_compiling=$ac_cv_prog_cxx_cross
21378
21379
21380 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21381 echo "configure:21382: checking if g++ requires -fvtable-thunks" >&5
21382 cat > conftest.$ac_ext <<EOF
21383 #line 21384 "configure"
21384 #include "confdefs.h"
21385 #include <windows.h>
21386 #include <ole2.h>
21387 int main() {
21388
21389 ; return 0; }
21390 EOF
21391 if { (eval echo configure:21392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21392 rm -rf conftest*
21393 echo "$ac_t""no" 1>&6
21394 else
21395 echo "configure: failed program was:" >&5
21396 cat conftest.$ac_ext >&5
21397 rm -rf conftest*
21398 echo "$ac_t""yes" 1>&6
21399 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21400 fi
21401 rm -f conftest*
21402 ac_ext=c
21403 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21404 ac_cpp='$CPP $CPPFLAGS'
21405 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21406 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21407 cross_compiling=$ac_cv_prog_cc_cross
21408
21409 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21410 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21411 cat >> confdefs.h <<\EOF
21412 #define wxUSE_OLE 1
21413 EOF
21414
21415
21416 fi
21417
21418 cat >> confdefs.h <<\EOF
21419 #define wxUSE_DATAOBJ 1
21420 EOF
21421
21422 else
21423 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21424
21425 wxUSE_CLIPBOARD=no
21426 wxUSE_DRAG_AND_DROP=no
21427 wxUSE_DATAOBJ=no
21428 wxUSE_OLE=no
21429 fi
21430
21431 if test "$wxUSE_METAFILE" = "yes"; then
21432 cat >> confdefs.h <<\EOF
21433 #define wxUSE_METAFILE 1
21434 EOF
21435
21436
21437 cat >> confdefs.h <<\EOF
21438 #define wxUSE_ENH_METAFILE 1
21439 EOF
21440
21441 fi
21442 fi
21443
21444 if test "$wxUSE_IPC" = "yes"; then
21445 if test "$wxUSE_SOCKETS" != "yes"; then
21446 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21447 fi
21448
21449 cat >> confdefs.h <<\EOF
21450 #define wxUSE_IPC 1
21451 EOF
21452
21453 fi
21454
21455 if test "$wxUSE_CLIPBOARD" = "yes"; then
21456 if test "$wxUSE_MGL" = 1; then
21457 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21458 wxUSE_CLIPBOARD=no
21459 fi
21460
21461 if test "$wxUSE_CLIPBOARD" = "yes"; then
21462 cat >> confdefs.h <<\EOF
21463 #define wxUSE_CLIPBOARD 1
21464 EOF
21465
21466
21467 cat >> confdefs.h <<\EOF
21468 #define wxUSE_DATAOBJ 1
21469 EOF
21470
21471 fi
21472 fi
21473
21474 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21475 if test "$wxUSE_GTK" = 1; then
21476 if test "$WXGTK12" != 1; then
21477 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21478 wxUSE_DRAG_AND_DROP=no
21479 fi
21480 fi
21481
21482 if test "$wxUSE_MOTIF" = 1; then
21483 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21484 wxUSE_DRAG_AND_DROP=no
21485 fi
21486
21487 if test "$wxUSE_X11" = 1; then
21488 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21489 wxUSE_DRAG_AND_DROP=no
21490 fi
21491
21492 if test "$wxUSE_MGL" = 1; then
21493 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21494 wxUSE_DRAG_AND_DROP=no
21495 fi
21496
21497 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21498 cat >> confdefs.h <<\EOF
21499 #define wxUSE_DRAG_AND_DROP 1
21500 EOF
21501
21502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21503 fi
21504
21505 fi
21506
21507 if test "$wxUSE_SPLINES" = "yes" ; then
21508 cat >> confdefs.h <<\EOF
21509 #define wxUSE_SPLINES 1
21510 EOF
21511
21512 fi
21513
21514
21515 USES_CONTROLS=0
21516 if test "$wxUSE_CONTROLS" = "yes"; then
21517 USES_CONTROLS=1
21518 fi
21519
21520 if test "$wxUSE_ACCEL" = "yes"; then
21521 cat >> confdefs.h <<\EOF
21522 #define wxUSE_ACCEL 1
21523 EOF
21524
21525 USES_CONTROLS=1
21526 fi
21527
21528 if test "$wxUSE_BUTTON" = "yes"; then
21529 cat >> confdefs.h <<\EOF
21530 #define wxUSE_BUTTON 1
21531 EOF
21532
21533 USES_CONTROLS=1
21534 fi
21535
21536 if test "$wxUSE_BMPBUTTON" = "yes"; then
21537 cat >> confdefs.h <<\EOF
21538 #define wxUSE_BMPBUTTON 1
21539 EOF
21540
21541 USES_CONTROLS=1
21542 fi
21543
21544 if test "$wxUSE_CALCTRL" = "yes"; then
21545 cat >> confdefs.h <<\EOF
21546 #define wxUSE_CALENDARCTRL 1
21547 EOF
21548
21549 USES_CONTROLS=1
21550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21551 fi
21552
21553 if test "$wxUSE_CARET" = "yes"; then
21554 cat >> confdefs.h <<\EOF
21555 #define wxUSE_CARET 1
21556 EOF
21557
21558 USES_CONTROLS=1
21559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21560 fi
21561
21562 if test "$wxUSE_COMBOBOX" = "yes"; then
21563 cat >> confdefs.h <<\EOF
21564 #define wxUSE_COMBOBOX 1
21565 EOF
21566
21567 USES_CONTROLS=1
21568 fi
21569
21570 if test "$wxUSE_CHOICE" = "yes"; then
21571 cat >> confdefs.h <<\EOF
21572 #define wxUSE_CHOICE 1
21573 EOF
21574
21575 USES_CONTROLS=1
21576 fi
21577
21578 if test "$wxUSE_CHECKBOX" = "yes"; then
21579 cat >> confdefs.h <<\EOF
21580 #define wxUSE_CHECKBOX 1
21581 EOF
21582
21583 USES_CONTROLS=1
21584 fi
21585
21586 if test "$wxUSE_CHECKLST" = "yes"; then
21587 cat >> confdefs.h <<\EOF
21588 #define wxUSE_CHECKLISTBOX 1
21589 EOF
21590
21591 USES_CONTROLS=1
21592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21593 fi
21594
21595 if test "$wxUSE_DISPLAY" = "yes"; then
21596 cat >> confdefs.h <<\EOF
21597 #define wxUSE_DISPLAY 1
21598 EOF
21599
21600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21601 fi
21602
21603 if test "$wxUSE_GAUGE" = "yes"; then
21604 cat >> confdefs.h <<\EOF
21605 #define wxUSE_GAUGE 1
21606 EOF
21607
21608 USES_CONTROLS=1
21609 fi
21610
21611 if test "$wxUSE_GRID" = "yes"; then
21612 cat >> confdefs.h <<\EOF
21613 #define wxUSE_GRID 1
21614 EOF
21615
21616 USES_CONTROLS=1
21617 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21618 fi
21619
21620 if test "$wxUSE_IMAGLIST" = "yes"; then
21621 cat >> confdefs.h <<\EOF
21622 #define wxUSE_IMAGLIST 1
21623 EOF
21624
21625 fi
21626
21627 if test "$wxUSE_LISTBOX" = "yes"; then
21628 cat >> confdefs.h <<\EOF
21629 #define wxUSE_LISTBOX 1
21630 EOF
21631
21632 USES_CONTROLS=1
21633 fi
21634
21635 if test "$wxUSE_LISTCTRL" = "yes"; then
21636 if test "$wxUSE_IMAGLIST" = "yes"; then
21637 cat >> confdefs.h <<\EOF
21638 #define wxUSE_LISTCTRL 1
21639 EOF
21640
21641 USES_CONTROLS=1
21642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21643 else
21644 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21645 fi
21646 fi
21647
21648 if test "$wxUSE_NOTEBOOK" = "yes"; then
21649 cat >> confdefs.h <<\EOF
21650 #define wxUSE_NOTEBOOK 1
21651 EOF
21652
21653 USES_CONTROLS=1
21654 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21655 fi
21656
21657
21658 if test "$wxUSE_RADIOBOX" = "yes"; then
21659 cat >> confdefs.h <<\EOF
21660 #define wxUSE_RADIOBOX 1
21661 EOF
21662
21663 USES_CONTROLS=1
21664 fi
21665
21666 if test "$wxUSE_RADIOBTN" = "yes"; then
21667 cat >> confdefs.h <<\EOF
21668 #define wxUSE_RADIOBTN 1
21669 EOF
21670
21671 USES_CONTROLS=1
21672 fi
21673
21674 if test "$wxUSE_SASH" = "yes"; then
21675 cat >> confdefs.h <<\EOF
21676 #define wxUSE_SASH 1
21677 EOF
21678
21679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21680 fi
21681
21682 if test "$wxUSE_SCROLLBAR" = "yes"; then
21683 cat >> confdefs.h <<\EOF
21684 #define wxUSE_SCROLLBAR 1
21685 EOF
21686
21687 USES_CONTROLS=1
21688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21689 fi
21690
21691 if test "$wxUSE_SLIDER" = "yes"; then
21692 cat >> confdefs.h <<\EOF
21693 #define wxUSE_SLIDER 1
21694 EOF
21695
21696 USES_CONTROLS=1
21697 fi
21698
21699 if test "$wxUSE_SPINBTN" = "yes"; then
21700 cat >> confdefs.h <<\EOF
21701 #define wxUSE_SPINBTN 1
21702 EOF
21703
21704 USES_CONTROLS=1
21705 fi
21706
21707 if test "$wxUSE_SPINCTRL" = "yes"; then
21708 cat >> confdefs.h <<\EOF
21709 #define wxUSE_SPINCTRL 1
21710 EOF
21711
21712 USES_CONTROLS=1
21713 fi
21714
21715 if test "$wxUSE_SPLITTER" = "yes"; then
21716 cat >> confdefs.h <<\EOF
21717 #define wxUSE_SPLITTER 1
21718 EOF
21719
21720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21721 fi
21722
21723 if test "$wxUSE_STATBMP" = "yes"; then
21724 cat >> confdefs.h <<\EOF
21725 #define wxUSE_STATBMP 1
21726 EOF
21727
21728 USES_CONTROLS=1
21729 fi
21730
21731 if test "$wxUSE_STATBOX" = "yes"; then
21732 cat >> confdefs.h <<\EOF
21733 #define wxUSE_STATBOX 1
21734 EOF
21735
21736 USES_CONTROLS=1
21737 fi
21738
21739 if test "$wxUSE_STATTEXT" = "yes"; then
21740 cat >> confdefs.h <<\EOF
21741 #define wxUSE_STATTEXT 1
21742 EOF
21743
21744 USES_CONTROLS=1
21745 fi
21746
21747 if test "$wxUSE_STATLINE" = "yes"; then
21748 cat >> confdefs.h <<\EOF
21749 #define wxUSE_STATLINE 1
21750 EOF
21751
21752 USES_CONTROLS=1
21753 fi
21754
21755 if test "$wxUSE_STATUSBAR" = "yes"; then
21756 cat >> confdefs.h <<\EOF
21757 #define wxUSE_STATUSBAR 1
21758 EOF
21759
21760 USES_CONTROLS=1
21761
21762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21763 fi
21764
21765 if test "$wxUSE_TABDIALOG" = "yes"; then
21766 cat >> confdefs.h <<\EOF
21767 #define wxUSE_TAB_DIALOG 1
21768 EOF
21769
21770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21771 fi
21772
21773 if test "$wxUSE_TEXTCTRL" = "yes"; then
21774 cat >> confdefs.h <<\EOF
21775 #define wxUSE_TEXTCTRL 1
21776 EOF
21777
21778 USES_CONTROLS=1
21779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21780 fi
21781
21782 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21783 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21784 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21785 wxUSE_TOGGLEBTN=no
21786 fi
21787 if test "$wxUSE_UNIVERSAL" = "yes"; then
21788 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21789 wxUSE_TOGGLEBTN=no
21790 fi
21791
21792 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21793 cat >> confdefs.h <<\EOF
21794 #define wxUSE_TOGGLEBTN 1
21795 EOF
21796
21797 USES_CONTROLS=1
21798 fi
21799 fi
21800
21801 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21802 cat >> confdefs.h <<\EOF
21803 #define wxUSE_TOOLBAR_SIMPLE 1
21804 EOF
21805
21806 wxUSE_TOOLBAR="yes"
21807 USES_CONTROLS=1
21808 fi
21809
21810 if test "$wxUSE_TOOLBAR" = "yes"; then
21811 cat >> confdefs.h <<\EOF
21812 #define wxUSE_TOOLBAR 1
21813 EOF
21814
21815 USES_CONTROLS=1
21816
21817 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21818 wxUSE_TOOLBAR_NATIVE="yes"
21819 fi
21820
21821 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21822 cat >> confdefs.h <<\EOF
21823 #define wxUSE_TOOLBAR_NATIVE 1
21824 EOF
21825
21826 USES_CONTROLS=1
21827 fi
21828
21829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21830 fi
21831
21832 if test "$wxUSE_TOOLTIPS" = "yes"; then
21833 if test "$wxUSE_MOTIF" = 1; then
21834 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21835 else
21836 if test "$wxUSE_UNIVERSAL" = "yes"; then
21837 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21838 else
21839 cat >> confdefs.h <<\EOF
21840 #define wxUSE_TOOLTIPS 1
21841 EOF
21842
21843 fi
21844 fi
21845 fi
21846
21847 if test "$wxUSE_TREECTRL" = "yes"; then
21848 if test "$wxUSE_IMAGLIST" = "yes"; then
21849 cat >> confdefs.h <<\EOF
21850 #define wxUSE_TREECTRL 1
21851 EOF
21852
21853 USES_CONTROLS=1
21854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21855 else
21856 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21857 fi
21858 fi
21859
21860 if test "$wxUSE_POPUPWIN" = "yes"; then
21861 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21862 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21863 else
21864 if test "$wxUSE_MOTIF" = 1; then
21865 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21866 else
21867 if test "$wxUSE_PM" = 1; then
21868 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21869 else
21870 cat >> confdefs.h <<\EOF
21871 #define wxUSE_POPUPWIN 1
21872 EOF
21873
21874
21875 USES_CONTROLS=1
21876 fi
21877 fi
21878 fi
21879 fi
21880
21881 if test "$wxUSE_TIPWINDOW" = "yes"; then
21882 if test "$wxUSE_PM" = 1; then
21883 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21884 else
21885 cat >> confdefs.h <<\EOF
21886 #define wxUSE_TIPWINDOW 1
21887 EOF
21888
21889 fi
21890 fi
21891
21892 if test "$USES_CONTROLS" = 1; then
21893 cat >> confdefs.h <<\EOF
21894 #define wxUSE_CONTROLS 1
21895 EOF
21896
21897 fi
21898
21899
21900
21901 if test "$wxUSE_DRAGIMAGE" = "yes"; then
21902 cat >> confdefs.h <<\EOF
21903 #define wxUSE_DRAGIMAGE 1
21904 EOF
21905
21906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21907 fi
21908
21909 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
21910 cat >> confdefs.h <<\EOF
21911 #define wxUSE_ACCESSIBILITY 1
21912 EOF
21913
21914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
21915 fi
21916
21917 if test "$wxUSE_MENUS" = "yes"; then
21918 cat >> confdefs.h <<\EOF
21919 #define wxUSE_MENUS 1
21920 EOF
21921
21922 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21923 fi
21924
21925 if test "$wxUSE_METAFILE" = "yes"; then
21926 cat >> confdefs.h <<\EOF
21927 #define wxUSE_METAFILE 1
21928 EOF
21929
21930 fi
21931
21932 if test "$wxUSE_MIMETYPE" = "yes"; then
21933 cat >> confdefs.h <<\EOF
21934 #define wxUSE_MIMETYPE 1
21935 EOF
21936
21937 fi
21938
21939 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21940 cat >> confdefs.h <<\EOF
21941 #define wxUSE_SYSTEM_OPTIONS 1
21942 EOF
21943
21944 if test "$TOOLKIT" = "MSW"; then
21945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21946 fi
21947
21948 fi
21949
21950 if test "$wxUSE_PROTOCOL" = "yes"; then
21951 if test "$wxUSE_SOCKETS" != "yes"; then
21952 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21953 wxUSE_PROTOCOL=no
21954 fi
21955
21956 if test "$wxUSE_PROTOCOL" = "yes"; then
21957 cat >> confdefs.h <<\EOF
21958 #define wxUSE_PROTOCOL 1
21959 EOF
21960
21961
21962 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21963 cat >> confdefs.h <<\EOF
21964 #define wxUSE_PROTOCOL_HTTP 1
21965 EOF
21966
21967 fi
21968 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21969 cat >> confdefs.h <<\EOF
21970 #define wxUSE_PROTOCOL_FTP 1
21971 EOF
21972
21973 fi
21974 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21975 cat >> confdefs.h <<\EOF
21976 #define wxUSE_PROTOCOL_FILE 1
21977 EOF
21978
21979 fi
21980 fi
21981 fi
21982
21983 if test "$wxUSE_URL" = "yes"; then
21984 if test "$wxUSE_PROTOCOL" != "yes"; then
21985 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21986 wxUSE_URL=no
21987 fi
21988 if test "$wxUSE_URL" = "yes"; then
21989 cat >> confdefs.h <<\EOF
21990 #define wxUSE_URL 1
21991 EOF
21992
21993 fi
21994 fi
21995
21996 if test "$wxUSE_MINIFRAME" = "yes"; then
21997 cat >> confdefs.h <<\EOF
21998 #define wxUSE_MINIFRAME 1
21999 EOF
22000
22001 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
22002 fi
22003
22004 if test "$wxUSE_HTML" = "yes"; then
22005 cat >> confdefs.h <<\EOF
22006 #define wxUSE_HTML 1
22007 EOF
22008
22009 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
22010 fi
22011
22012 if test "$wxUSE_VALIDATORS" = "yes"; then
22013 cat >> confdefs.h <<\EOF
22014 #define wxUSE_VALIDATORS 1
22015 EOF
22016
22017 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
22018 fi
22019
22020 if test "$wxUSE_PALETTE" = "yes" ; then
22021 cat >> confdefs.h <<\EOF
22022 #define wxUSE_PALETTE 1
22023 EOF
22024
22025 fi
22026
22027 if test "$wxUSE_IMAGE" = "yes" ; then
22028 cat >> confdefs.h <<\EOF
22029 #define wxUSE_IMAGE 1
22030 EOF
22031
22032 fi
22033
22034 if test "$wxUSE_GIF" = "yes" ; then
22035 cat >> confdefs.h <<\EOF
22036 #define wxUSE_GIF 1
22037 EOF
22038
22039 fi
22040
22041 if test "$wxUSE_PCX" = "yes" ; then
22042 cat >> confdefs.h <<\EOF
22043 #define wxUSE_PCX 1
22044 EOF
22045
22046 fi
22047
22048 if test "$wxUSE_IFF" = "yes" ; then
22049 cat >> confdefs.h <<\EOF
22050 #define wxUSE_IFF 1
22051 EOF
22052
22053 fi
22054
22055 if test "$wxUSE_PNM" = "yes" ; then
22056 cat >> confdefs.h <<\EOF
22057 #define wxUSE_PNM 1
22058 EOF
22059
22060 fi
22061
22062 if test "$wxUSE_XPM" = "yes" ; then
22063 cat >> confdefs.h <<\EOF
22064 #define wxUSE_XPM 1
22065 EOF
22066
22067 fi
22068
22069 if test "$wxUSE_ICO_CUR" = "yes" ; then
22070 cat >> confdefs.h <<\EOF
22071 #define wxUSE_ICO_CUR 1
22072 EOF
22073
22074 fi
22075
22076 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
22077 LIBS=" -lunicows $LIBS"
22078 fi
22079
22080
22081 if test "$wxUSE_CHOICEDLG" = "yes"; then
22082 cat >> confdefs.h <<\EOF
22083 #define wxUSE_CHOICEDLG 1
22084 EOF
22085
22086 fi
22087
22088 if test "$wxUSE_COLOURDLG" = "yes"; then
22089 cat >> confdefs.h <<\EOF
22090 #define wxUSE_COLOURDLG 1
22091 EOF
22092
22093 fi
22094
22095 if test "$wxUSE_FILEDLG" = "yes"; then
22096 cat >> confdefs.h <<\EOF
22097 #define wxUSE_FILEDLG 1
22098 EOF
22099
22100 fi
22101
22102 if test "$wxUSE_FINDREPLDLG" = "yes"; then
22103 cat >> confdefs.h <<\EOF
22104 #define wxUSE_FINDREPLDLG 1
22105 EOF
22106
22107 fi
22108
22109 if test "$wxUSE_FONTDLG" = "yes"; then
22110 cat >> confdefs.h <<\EOF
22111 #define wxUSE_FONTDLG 1
22112 EOF
22113
22114 fi
22115
22116 if test "$wxUSE_DIRDLG" = "yes"; then
22117 if test "$wxUSE_TREECTRL" != "yes"; then
22118 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
22119 else
22120 cat >> confdefs.h <<\EOF
22121 #define wxUSE_DIRDLG 1
22122 EOF
22123
22124 fi
22125 fi
22126
22127 if test "$wxUSE_MSGDLG" = "yes"; then
22128 cat >> confdefs.h <<\EOF
22129 #define wxUSE_MSGDLG 1
22130 EOF
22131
22132 fi
22133
22134 if test "$wxUSE_NUMBERDLG" = "yes"; then
22135 cat >> confdefs.h <<\EOF
22136 #define wxUSE_NUMBERDLG 1
22137 EOF
22138
22139 fi
22140
22141 if test "$wxUSE_PROGRESSDLG" = "yes"; then
22142 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22143 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
22144 else
22145 cat >> confdefs.h <<\EOF
22146 #define wxUSE_PROGRESSDLG 1
22147 EOF
22148
22149 fi
22150 fi
22151
22152 if test "$wxUSE_SPLASH" = "yes"; then
22153 cat >> confdefs.h <<\EOF
22154 #define wxUSE_SPLASH 1
22155 EOF
22156
22157 fi
22158
22159 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
22160 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22161 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
22162 else
22163 cat >> confdefs.h <<\EOF
22164 #define wxUSE_STARTUP_TIPS 1
22165 EOF
22166
22167 fi
22168 fi
22169
22170 if test "$wxUSE_TEXTDLG" = "yes"; then
22171 cat >> confdefs.h <<\EOF
22172 #define wxUSE_TEXTDLG 1
22173 EOF
22174
22175 fi
22176
22177 if test "$wxUSE_WIZARDDLG" = "yes"; then
22178 cat >> confdefs.h <<\EOF
22179 #define wxUSE_WIZARDDLG 1
22180 EOF
22181
22182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22183 fi
22184
22185
22186 if test "$cross_compiling" = "yes"; then
22187 OSINFO="\"$host\""
22188 else
22189 OSINFO=`uname -s -r -m`
22190 OSINFO="\"$OSINFO\""
22191 fi
22192
22193 cat >> confdefs.h <<EOF
22194 #define WXWIN_OS_DESCRIPTION $OSINFO
22195 EOF
22196
22197
22198
22199 if test "x$prefix" != "xNONE"; then
22200 wxPREFIX=$prefix
22201 else
22202 wxPREFIX=$ac_default_prefix
22203 fi
22204
22205 cat >> confdefs.h <<EOF
22206 #define wxINSTALL_PREFIX "$wxPREFIX"
22207 EOF
22208
22209
22210 top_builddir=`pwd`
22211
22212
22213
22214
22215 if test "$wxUSE_MAC" = 1 ; then
22216 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22217 fi
22218 if test "$wxUSE_COCOA" = 1 ; then
22219 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22220 fi
22221
22222
22223 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22224
22225 have_cos=0
22226 have_floor=0
22227 for ac_func in cos
22228 do
22229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22230 echo "configure:22231: checking for $ac_func" >&5
22231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22232 echo $ac_n "(cached) $ac_c" 1>&6
22233 else
22234 cat > conftest.$ac_ext <<EOF
22235 #line 22236 "configure"
22236 #include "confdefs.h"
22237 /* System header to define __stub macros and hopefully few prototypes,
22238 which can conflict with char $ac_func(); below. */
22239 #include <assert.h>
22240 /* Override any gcc2 internal prototype to avoid an error. */
22241 /* We use char because int might match the return type of a gcc2
22242 builtin and then its argument prototype would still apply. */
22243 char $ac_func();
22244
22245 int main() {
22246
22247 /* The GNU C library defines this for functions which it implements
22248 to always fail with ENOSYS. Some functions are actually named
22249 something starting with __ and the normal name is an alias. */
22250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22251 choke me
22252 #else
22253 $ac_func();
22254 #endif
22255
22256 ; return 0; }
22257 EOF
22258 if { (eval echo configure:22259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22259 rm -rf conftest*
22260 eval "ac_cv_func_$ac_func=yes"
22261 else
22262 echo "configure: failed program was:" >&5
22263 cat conftest.$ac_ext >&5
22264 rm -rf conftest*
22265 eval "ac_cv_func_$ac_func=no"
22266 fi
22267 rm -f conftest*
22268 fi
22269
22270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22271 echo "$ac_t""yes" 1>&6
22272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22273 cat >> confdefs.h <<EOF
22274 #define $ac_tr_func 1
22275 EOF
22276 have_cos=1
22277 else
22278 echo "$ac_t""no" 1>&6
22279 fi
22280 done
22281
22282 for ac_func in floor
22283 do
22284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22285 echo "configure:22286: checking for $ac_func" >&5
22286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22287 echo $ac_n "(cached) $ac_c" 1>&6
22288 else
22289 cat > conftest.$ac_ext <<EOF
22290 #line 22291 "configure"
22291 #include "confdefs.h"
22292 /* System header to define __stub macros and hopefully few prototypes,
22293 which can conflict with char $ac_func(); below. */
22294 #include <assert.h>
22295 /* Override any gcc2 internal prototype to avoid an error. */
22296 /* We use char because int might match the return type of a gcc2
22297 builtin and then its argument prototype would still apply. */
22298 char $ac_func();
22299
22300 int main() {
22301
22302 /* The GNU C library defines this for functions which it implements
22303 to always fail with ENOSYS. Some functions are actually named
22304 something starting with __ and the normal name is an alias. */
22305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22306 choke me
22307 #else
22308 $ac_func();
22309 #endif
22310
22311 ; return 0; }
22312 EOF
22313 if { (eval echo configure:22314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22314 rm -rf conftest*
22315 eval "ac_cv_func_$ac_func=yes"
22316 else
22317 echo "configure: failed program was:" >&5
22318 cat conftest.$ac_ext >&5
22319 rm -rf conftest*
22320 eval "ac_cv_func_$ac_func=no"
22321 fi
22322 rm -f conftest*
22323 fi
22324
22325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22326 echo "$ac_t""yes" 1>&6
22327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22328 cat >> confdefs.h <<EOF
22329 #define $ac_tr_func 1
22330 EOF
22331 have_floor=1
22332 else
22333 echo "$ac_t""no" 1>&6
22334 fi
22335 done
22336
22337 echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
22338 echo "configure:22339: checking if floating point functions link without -lm" >&5
22339 if test "$have_cos" = 1 -a "$have_floor" = 1; then
22340 echo "$ac_t""yes" 1>&6
22341 else
22342 echo "$ac_t""no" 1>&6
22343 LIBS="$LIBS -lm"
22344 # use different functions to avoid configure caching
22345 have_sin=0
22346 have_ceil=0
22347 for ac_func in sin
22348 do
22349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22350 echo "configure:22351: checking for $ac_func" >&5
22351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22352 echo $ac_n "(cached) $ac_c" 1>&6
22353 else
22354 cat > conftest.$ac_ext <<EOF
22355 #line 22356 "configure"
22356 #include "confdefs.h"
22357 /* System header to define __stub macros and hopefully few prototypes,
22358 which can conflict with char $ac_func(); below. */
22359 #include <assert.h>
22360 /* Override any gcc2 internal prototype to avoid an error. */
22361 /* We use char because int might match the return type of a gcc2
22362 builtin and then its argument prototype would still apply. */
22363 char $ac_func();
22364
22365 int main() {
22366
22367 /* The GNU C library defines this for functions which it implements
22368 to always fail with ENOSYS. Some functions are actually named
22369 something starting with __ and the normal name is an alias. */
22370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22371 choke me
22372 #else
22373 $ac_func();
22374 #endif
22375
22376 ; return 0; }
22377 EOF
22378 if { (eval echo configure:22379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22379 rm -rf conftest*
22380 eval "ac_cv_func_$ac_func=yes"
22381 else
22382 echo "configure: failed program was:" >&5
22383 cat conftest.$ac_ext >&5
22384 rm -rf conftest*
22385 eval "ac_cv_func_$ac_func=no"
22386 fi
22387 rm -f conftest*
22388 fi
22389
22390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22391 echo "$ac_t""yes" 1>&6
22392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22393 cat >> confdefs.h <<EOF
22394 #define $ac_tr_func 1
22395 EOF
22396 have_sin=1
22397 else
22398 echo "$ac_t""no" 1>&6
22399 fi
22400 done
22401
22402 for ac_func in ceil
22403 do
22404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22405 echo "configure:22406: checking for $ac_func" >&5
22406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22407 echo $ac_n "(cached) $ac_c" 1>&6
22408 else
22409 cat > conftest.$ac_ext <<EOF
22410 #line 22411 "configure"
22411 #include "confdefs.h"
22412 /* System header to define __stub macros and hopefully few prototypes,
22413 which can conflict with char $ac_func(); below. */
22414 #include <assert.h>
22415 /* Override any gcc2 internal prototype to avoid an error. */
22416 /* We use char because int might match the return type of a gcc2
22417 builtin and then its argument prototype would still apply. */
22418 char $ac_func();
22419
22420 int main() {
22421
22422 /* The GNU C library defines this for functions which it implements
22423 to always fail with ENOSYS. Some functions are actually named
22424 something starting with __ and the normal name is an alias. */
22425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22426 choke me
22427 #else
22428 $ac_func();
22429 #endif
22430
22431 ; return 0; }
22432 EOF
22433 if { (eval echo configure:22434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22434 rm -rf conftest*
22435 eval "ac_cv_func_$ac_func=yes"
22436 else
22437 echo "configure: failed program was:" >&5
22438 cat conftest.$ac_ext >&5
22439 rm -rf conftest*
22440 eval "ac_cv_func_$ac_func=no"
22441 fi
22442 rm -f conftest*
22443 fi
22444
22445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22446 echo "$ac_t""yes" 1>&6
22447 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22448 cat >> confdefs.h <<EOF
22449 #define $ac_tr_func 1
22450 EOF
22451 have_ceil=1
22452 else
22453 echo "$ac_t""no" 1>&6
22454 fi
22455 done
22456
22457 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22458 echo "configure:22459: checking if floating point functions link with -lm" >&5
22459 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22460 echo "$ac_t""yes" 1>&6
22461 else
22462 echo "$ac_t""no" 1>&6
22463 # not sure we should warn the user, crash, etc.
22464 fi
22465 fi
22466
22467 if test "$wxUSE_GUI" = "yes"; then
22468
22469 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22470
22471
22472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22473 drawing dynamic erase event exec font image \
22474 minimal propsize rotate shaped widgets"
22475
22476 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22477 else
22478 SAMPLES_SUBDIRS="console"
22479 fi
22480
22481
22482 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22483 -I\${top_srcdir}/include \
22484 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22485 $TOOLKIT_INCLUDE"
22486
22487 if test "$wxUSE_GTK" = 1; then
22488 WXCONFIG_INCLUDE=
22489 else
22490 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22491 fi
22492
22493 if test "$GXX" = yes ; then
22494 CXXWARNINGS="-Wall"
22495
22496 if test "$wxUSE_NO_DEPS" = "no" ; then
22497 CFLAGS="-MMD $CFLAGS"
22498 CXXFLAGS="-MMD $CXXFLAGS"
22499 fi
22500 fi
22501
22502 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22503
22504 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22505 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22506 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22507 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22508
22509 LDFLAGS="$LDFLAGS $PROFILE"
22510
22511 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22614 echo "configure:22615: checking whether ${MAKE-make} sets \${MAKE}" >&5
22615 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22616 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22617 echo $ac_n "(cached) $ac_c" 1>&6
22618 else
22619 cat > conftestmake <<\EOF
22620 all:
22621 @echo 'ac_maketemp="${MAKE}"'
22622 EOF
22623 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22624 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22625 if test -n "$ac_maketemp"; then
22626 eval ac_cv_prog_make_${ac_make}_set=yes
22627 else
22628 eval ac_cv_prog_make_${ac_make}_set=no
22629 fi
22630 rm -f conftestmake
22631 fi
22632 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22633 echo "$ac_t""yes" 1>&6
22634 SET_MAKE=
22635 else
22636 echo "$ac_t""no" 1>&6
22637 SET_MAKE="MAKE=${MAKE-make}"
22638 fi
22639
22640
22641 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22642 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22643 fi
22644
22645
22646
22647 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22648 wx_cv_if_gnu_make=$IF_GNU_MAKE
22649 wx_cv_path_ifs=$PATH_IFS
22650 wx_cv_program_ext=$PROGRAM_EXT
22651 wx_cv_target_library=$WX_TARGET_LIBRARY
22652 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22653 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22654 wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22655 wx_cv_release=${WX_RELEASE}
22656 wx_cv_current=${WX_CURRENT}
22657 wx_cv_revision=${WX_REVISION}
22658 wx_cv_age=${WX_AGE}
22659 wx_cv_use_gui=${USE_GUI}
22660 wx_cv_use_resources=${wxUSE_RESOURCES}
22661 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22662 wx_cv_path_ifs wx_cv_program_ext \
22663 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22664 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22665 wx_cv_use_gui wx_cv_use_resources
22666
22667 subdirs="demos samples utils contrib"
22668
22669
22670 trap '' 1 2 15
22671 cat > confcache <<\EOF
22672 # This file is a shell script that caches the results of configure
22673 # tests run on this system so they can be shared between configure
22674 # scripts and configure runs. It is not useful on other systems.
22675 # If it contains results you don't want to keep, you may remove or edit it.
22676 #
22677 # By default, configure uses ./config.cache as the cache file,
22678 # creating it if it does not exist already. You can give configure
22679 # the --cache-file=FILE option to use a different cache file; that is
22680 # what configure does when it calls configure scripts in
22681 # subdirectories, so they share the cache.
22682 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22683 # config.status only pays attention to the cache file if you give it the
22684 # --recheck option to rerun configure.
22685 #
22686 EOF
22687 # The following way of writing the cache mishandles newlines in values,
22688 # but we know of no workaround that is simple, portable, and efficient.
22689 # So, don't put newlines in cache variables' values.
22690 # Ultrix sh set writes to stderr and can't be redirected directly,
22691 # and sets the high bit in the cache file unless we assign to the vars.
22692 (set) 2>&1 |
22693 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22694 *ac_space=\ *)
22695 # `set' does not quote correctly, so add quotes (double-quote substitution
22696 # turns \\\\ into \\, and sed turns \\ into \).
22697 sed -n \
22698 -e "s/'/'\\\\''/g" \
22699 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22700 ;;
22701 *)
22702 # `set' quotes correctly as required by POSIX, so do not add quotes.
22703 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22704 ;;
22705 esac >> confcache
22706 if cmp -s $cache_file confcache; then
22707 :
22708 else
22709 if test -w $cache_file; then
22710 echo "updating cache $cache_file"
22711 cat confcache > $cache_file
22712 else
22713 echo "not updating unwritable cache $cache_file"
22714 fi
22715 fi
22716 rm -f confcache
22717
22718 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22719
22720 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22721 # Let make expand exec_prefix.
22722 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22723
22724 # Any assignment to VPATH causes Sun make to only execute
22725 # the first set of double-colon rules, so remove it if not needed.
22726 # If there is a colon in the path, we need to keep it.
22727 if test "x$srcdir" = x.; then
22728 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22729 fi
22730
22731 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22732
22733 DEFS=-DHAVE_CONFIG_H
22734
22735 # Without the "./", some shells look in PATH for config.status.
22736 : ${CONFIG_STATUS=./config.status}
22737
22738 echo creating $CONFIG_STATUS
22739 rm -f $CONFIG_STATUS
22740 cat > $CONFIG_STATUS <<EOF
22741 #! /bin/sh
22742 # Generated automatically by configure.
22743 # Run this file to recreate the current configuration.
22744 # This directory was configured as follows,
22745 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22746 #
22747 # $0 $ac_configure_args
22748 #
22749 # Compiler output produced by configure, useful for debugging
22750 # configure, is in ./config.log if it exists.
22751
22752 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22753 for ac_option
22754 do
22755 case "\$ac_option" in
22756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22757 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22758 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22759 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22760 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22761 exit 0 ;;
22762 -help | --help | --hel | --he | --h)
22763 echo "\$ac_cs_usage"; exit 0 ;;
22764 *) echo "\$ac_cs_usage"; exit 1 ;;
22765 esac
22766 done
22767
22768 ac_given_srcdir=$srcdir
22769 ac_given_INSTALL="$INSTALL"
22770
22771 trap 'rm -fr `echo "
22772 wx-config
22773 version-script
22774 src/make.env
22775 src/makeprog.env
22776 src/makelib.env
22777 Makefile
22778 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22779 EOF
22780 cat >> $CONFIG_STATUS <<EOF
22781
22782 # Protect against being on the right side of a sed subst in config.status.
22783 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22784 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22785 $ac_vpsub
22786 $extrasub
22787 s%@SHELL@%$SHELL%g
22788 s%@CFLAGS@%$CFLAGS%g
22789 s%@CPPFLAGS@%$CPPFLAGS%g
22790 s%@CXXFLAGS@%$CXXFLAGS%g
22791 s%@FFLAGS@%$FFLAGS%g
22792 s%@DEFS@%$DEFS%g
22793 s%@LDFLAGS@%$LDFLAGS%g
22794 s%@LIBS@%$LIBS%g
22795 s%@exec_prefix@%$exec_prefix%g
22796 s%@prefix@%$prefix%g
22797 s%@program_transform_name@%$program_transform_name%g
22798 s%@bindir@%$bindir%g
22799 s%@sbindir@%$sbindir%g
22800 s%@libexecdir@%$libexecdir%g
22801 s%@datadir@%$datadir%g
22802 s%@sysconfdir@%$sysconfdir%g
22803 s%@sharedstatedir@%$sharedstatedir%g
22804 s%@localstatedir@%$localstatedir%g
22805 s%@libdir@%$libdir%g
22806 s%@includedir@%$includedir%g
22807 s%@oldincludedir@%$oldincludedir%g
22808 s%@infodir@%$infodir%g
22809 s%@mandir@%$mandir%g
22810 s%@host@%$host%g
22811 s%@host_alias@%$host_alias%g
22812 s%@host_cpu@%$host_cpu%g
22813 s%@host_vendor@%$host_vendor%g
22814 s%@host_os@%$host_os%g
22815 s%@target@%$target%g
22816 s%@target_alias@%$target_alias%g
22817 s%@target_cpu@%$target_cpu%g
22818 s%@target_vendor@%$target_vendor%g
22819 s%@target_os@%$target_os%g
22820 s%@build@%$build%g
22821 s%@build_alias@%$build_alias%g
22822 s%@build_cpu@%$build_cpu%g
22823 s%@build_vendor@%$build_vendor%g
22824 s%@build_os@%$build_os%g
22825 s%@CC@%$CC%g
22826 s%@CPP@%$CPP%g
22827 s%@CXX@%$CXX%g
22828 s%@RANLIB@%$RANLIB%g
22829 s%@AR@%$AR%g
22830 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22831 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22832 s%@INSTALL_DATA@%$INSTALL_DATA%g
22833 s%@STRIP@%$STRIP%g
22834 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22835 s%@YACC@%$YACC%g
22836 s%@LEX@%$LEX%g
22837 s%@LEXLIB@%$LEXLIB%g
22838 s%@LN_S@%$LN_S%g
22839 s%@CXXCPP@%$CXXCPP%g
22840 s%@PKG_CONFIG@%$PKG_CONFIG%g
22841 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22842 s%@GTK_LIBS@%$GTK_LIBS%g
22843 s%@GTK_CONFIG@%$GTK_CONFIG%g
22844 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22845 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22846 s%@X_CFLAGS@%$X_CFLAGS%g
22847 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22848 s%@X_LIBS@%$X_LIBS%g
22849 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22850 s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22851 s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22852 s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22853 s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22854 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22855 s%@RESCOMP@%$RESCOMP%g
22856 s%@DEREZ@%$DEREZ%g
22857 s%@SETFILE@%$SETFILE%g
22858 s%@LIBICONV@%$LIBICONV%g
22859 s%@LEX_STEM@%$LEX_STEM%g
22860 s%@PATH_IFS@%$PATH_IFS%g
22861 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22862 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22863 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22864 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22865 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22866 s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22867 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22868 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22869 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22870 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22871 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22872 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22873 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22874 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22875 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22876 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22877 s%@WX_ALL@%$WX_ALL%g
22878 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22879 s%@SHARED_LD@%$SHARED_LD%g
22880 s%@PIC_FLAG@%$PIC_FLAG%g
22881 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22882 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22883 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22884 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22885 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22886 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22887 s%@STATIC_FLAG@%$STATIC_FLAG%g
22888 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22889 s%@USE_GUI@%$USE_GUI%g
22890 s%@AFMINSTALL@%$AFMINSTALL%g
22891 s%@WIN32INSTALL@%$WIN32INSTALL%g
22892 s%@TOOLKIT@%$TOOLKIT%g
22893 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22894 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22895 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22896 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22897 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22898 s%@top_builddir@%$top_builddir%g
22899 s%@cross_compiling@%$cross_compiling%g
22900 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22901 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22902 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22903 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22904 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22905 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22906 s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22907 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22908 s%@ALL_HEADERS@%$ALL_HEADERS%g
22909 s%@ALL_SOURCES@%$ALL_SOURCES%g
22910 s%@GUIDIST@%$GUIDIST%g
22911 s%@PORT_FILES@%$PORT_FILES%g
22912 s%@DISTDIR@%$DISTDIR%g
22913 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22914 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22915 s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22916 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22917 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22918 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22919 s%@EXTRADEFS@%$EXTRADEFS%g
22920 s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22921 s%@RESFLAGS@%$RESFLAGS%g
22922 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22923 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22924 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22925 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22926 s%@LIBWXMACRES@%$LIBWXMACRES%g
22927 s%@MACRESCOMP@%$MACRESCOMP%g
22928 s%@MACSETFILE@%$MACSETFILE%g
22929 s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22930 s%@GCC@%$GCC%g
22931 s%@DLLTOOL@%$DLLTOOL%g
22932 s%@AS@%$AS%g
22933 s%@NM@%$NM%g
22934 s%@LD@%$LD%g
22935 s%@MAKEINFO@%$MAKEINFO%g
22936 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22937 s%@INSTALL_DIR@%$INSTALL_DIR%g
22938 s%@SET_MAKE@%$SET_MAKE%g
22939 s%@subdirs@%$subdirs%g
22940
22941 CEOF
22942 EOF
22943
22944 cat >> $CONFIG_STATUS <<\EOF
22945
22946 # Split the substitutions into bite-sized pieces for seds with
22947 # small command number limits, like on Digital OSF/1 and HP-UX.
22948 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22949 ac_file=1 # Number of current file.
22950 ac_beg=1 # First line for current file.
22951 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22952 ac_more_lines=:
22953 ac_sed_cmds=""
22954 while $ac_more_lines; do
22955 if test $ac_beg -gt 1; then
22956 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22957 else
22958 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22959 fi
22960 if test ! -s conftest.s$ac_file; then
22961 ac_more_lines=false
22962 rm -f conftest.s$ac_file
22963 else
22964 if test -z "$ac_sed_cmds"; then
22965 ac_sed_cmds="sed -f conftest.s$ac_file"
22966 else
22967 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22968 fi
22969 ac_file=`expr $ac_file + 1`
22970 ac_beg=$ac_end
22971 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22972 fi
22973 done
22974 if test -z "$ac_sed_cmds"; then
22975 ac_sed_cmds=cat
22976 fi
22977 EOF
22978
22979 cat >> $CONFIG_STATUS <<EOF
22980
22981 CONFIG_FILES=\${CONFIG_FILES-"wx-config
22982 version-script
22983 src/make.env
22984 src/makeprog.env
22985 src/makelib.env
22986 Makefile
22987 "}
22988 EOF
22989 cat >> $CONFIG_STATUS <<\EOF
22990 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22991 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22992 case "$ac_file" in
22993 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22994 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22995 *) ac_file_in="${ac_file}.in" ;;
22996 esac
22997
22998 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22999
23000 # Remove last slash and all that follows it. Not all systems have dirname.
23001 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23002 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23003 # The file is in a subdirectory.
23004 test ! -d "$ac_dir" && mkdir "$ac_dir"
23005 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23006 # A "../" for each directory in $ac_dir_suffix.
23007 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23008 else
23009 ac_dir_suffix= ac_dots=
23010 fi
23011
23012 case "$ac_given_srcdir" in
23013 .) srcdir=.
23014 if test -z "$ac_dots"; then top_srcdir=.
23015 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23016 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23017 *) # Relative path.
23018 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23019 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23020 esac
23021
23022 case "$ac_given_INSTALL" in
23023 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23024 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23025 esac
23026
23027 echo creating "$ac_file"
23028 rm -f "$ac_file"
23029 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23030 case "$ac_file" in
23031 *Makefile*) ac_comsub="1i\\
23032 # $configure_input" ;;
23033 *) ac_comsub= ;;
23034 esac
23035
23036 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23037 sed -e "$ac_comsub
23038 s%@configure_input@%$configure_input%g
23039 s%@srcdir@%$srcdir%g
23040 s%@top_srcdir@%$top_srcdir%g
23041 s%@INSTALL@%$INSTALL%g
23042 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23043 fi; done
23044 rm -f conftest.s*
23045
23046 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23047 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23048 #
23049 # ac_d sets the value in "#define NAME VALUE" lines.
23050 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23051 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23052 ac_dC='\3'
23053 ac_dD='%g'
23054 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23055 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23056 ac_uB='\([ ]\)%\1#\2define\3'
23057 ac_uC=' '
23058 ac_uD='\4%g'
23059 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23060 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23061 ac_eB='$%\1#\2define\3'
23062 ac_eC=' '
23063 ac_eD='%g'
23064
23065 if test "${CONFIG_HEADERS+set}" != set; then
23066 EOF
23067 cat >> $CONFIG_STATUS <<EOF
23068 CONFIG_HEADERS="setup.h:setup.h.in"
23069 EOF
23070 cat >> $CONFIG_STATUS <<\EOF
23071 fi
23072 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23073 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23074 case "$ac_file" in
23075 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23076 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23077 *) ac_file_in="${ac_file}.in" ;;
23078 esac
23079
23080 echo creating $ac_file
23081
23082 rm -f conftest.frag conftest.in conftest.out
23083 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23084 cat $ac_file_inputs > conftest.in
23085
23086 EOF
23087
23088 # Transform confdefs.h into a sed script conftest.vals that substitutes
23089 # the proper values into config.h.in to produce config.h. And first:
23090 # Protect against being on the right side of a sed subst in config.status.
23091 # Protect against being in an unquoted here document in config.status.
23092 rm -f conftest.vals
23093 cat > conftest.hdr <<\EOF
23094 s/[\\&%]/\\&/g
23095 s%[\\$`]%\\&%g
23096 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23097 s%ac_d%ac_u%gp
23098 s%ac_u%ac_e%gp
23099 EOF
23100 sed -n -f conftest.hdr confdefs.h > conftest.vals
23101 rm -f conftest.hdr
23102
23103 # This sed command replaces #undef with comments. This is necessary, for
23104 # example, in the case of _POSIX_SOURCE, which is predefined and required
23105 # on some systems where configure will not decide to define it.
23106 cat >> conftest.vals <<\EOF
23107 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23108 EOF
23109
23110 # Break up conftest.vals because some shells have a limit on
23111 # the size of here documents, and old seds have small limits too.
23112
23113 rm -f conftest.tail
23114 while :
23115 do
23116 ac_lines=`grep -c . conftest.vals`
23117 # grep -c gives empty output for an empty file on some AIX systems.
23118 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23119 # Write a limited-size here document to conftest.frag.
23120 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23121 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23122 echo 'CEOF
23123 sed -f conftest.frag conftest.in > conftest.out
23124 rm -f conftest.in
23125 mv conftest.out conftest.in
23126 ' >> $CONFIG_STATUS
23127 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23128 rm -f conftest.vals
23129 mv conftest.tail conftest.vals
23130 done
23131 rm -f conftest.vals
23132
23133 cat >> $CONFIG_STATUS <<\EOF
23134 rm -f conftest.frag conftest.h
23135 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23136 cat conftest.in >> conftest.h
23137 rm -f conftest.in
23138 if cmp -s $ac_file conftest.h 2>/dev/null; then
23139 echo "$ac_file is unchanged"
23140 rm -f conftest.h
23141 else
23142 # Remove last slash and all that follows it. Not all systems have dirname.
23143 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23144 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23145 # The file is in a subdirectory.
23146 test ! -d "$ac_dir" && mkdir "$ac_dir"
23147 fi
23148 rm -f $ac_file
23149 mv conftest.h $ac_file
23150 fi
23151 fi; done
23152
23153 EOF
23154 cat >> $CONFIG_STATUS <<EOF
23155
23156 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
23157 LN_S="${LN_S}"
23158
23159
23160 EOF
23161 cat >> $CONFIG_STATUS <<\EOF
23162
23163 if test ! -h wx-config; then
23164 chmod +x wx-config
23165 mv wx-config wx${TOOLCHAIN_NAME}-config
23166 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
23167 fi
23168
23169 if test ! -d lib; then
23170 mkdir lib
23171 fi
23172 if test ! -d lib/wx; then
23173 mkdir lib/wx
23174 fi
23175 if test ! -d lib/wx/include; then
23176 mkdir lib/wx/include
23177 fi
23178 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
23179 mkdir lib/wx/include/${TOOLCHAIN_NAME}
23180 fi
23181 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
23182 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
23183 fi
23184 if test -f setup.h; then
23185 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
23186 fi
23187
23188 exit 0
23189 EOF
23190 chmod +x $CONFIG_STATUS
23191 rm -fr confdefs* $ac_clean_files
23192 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
23193
23194 if test "$no_recursion" != yes; then
23195
23196 # Remove --cache-file and --srcdir arguments so they do not pile up.
23197 ac_sub_configure_args=
23198 ac_prev=
23199 for ac_arg in $ac_configure_args; do
23200 if test -n "$ac_prev"; then
23201 ac_prev=
23202 continue
23203 fi
23204 case "$ac_arg" in
23205 -cache-file | --cache-file | --cache-fil | --cache-fi \
23206 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23207 ac_prev=cache_file ;;
23208 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23209 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
23210 ;;
23211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23212 ac_prev=srcdir ;;
23213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23214 ;;
23215 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23216 esac
23217 done
23218
23219 for ac_config_dir in demos samples utils contrib; do
23220
23221 # Do not complain, so a configure script can configure whichever
23222 # parts of a large source tree are present.
23223 if test ! -d $srcdir/$ac_config_dir; then
23224 continue
23225 fi
23226
23227 echo configuring in $ac_config_dir
23228
23229 case "$srcdir" in
23230 .) ;;
23231 *)
23232 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
23233 else
23234 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23235 fi
23236 ;;
23237 esac
23238
23239 ac_popdir=`pwd`
23240 cd $ac_config_dir
23241
23242 # A "../" for each directory in /$ac_config_dir.
23243 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
23244
23245 case "$srcdir" in
23246 .) # No --srcdir option. We are building in place.
23247 ac_sub_srcdir=$srcdir ;;
23248 /*) # Absolute path.
23249 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23250 *) # Relative path.
23251 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23252 esac
23253
23254 # Check for guested configure; otherwise get Cygnus style configure.
23255 if test -f $ac_sub_srcdir/configure; then
23256 ac_sub_configure=$ac_sub_srcdir/configure
23257 elif test -f $ac_sub_srcdir/configure.in; then
23258 ac_sub_configure=$ac_configure
23259 else
23260 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
23261 ac_sub_configure=
23262 fi
23263
23264 # The recursion is here.
23265 if test -n "$ac_sub_configure"; then
23266
23267 # Make the cache file name correct relative to the subdirectory.
23268 case "$cache_file" in
23269 /*) ac_sub_cache_file=$cache_file ;;
23270 *) # Relative path.
23271 ac_sub_cache_file="$ac_dots$cache_file" ;;
23272 esac
23273 case "$ac_given_INSTALL" in
23274 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23275 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23276 esac
23277
23278 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
23279 # The eval makes quoting arguments work.
23280 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23281 then :
23282 else
23283 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23284 fi
23285 fi
23286
23287 cd $ac_popdir
23288 done
23289 fi
23290
23291
23292 echo
23293 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23294 echo ""
23295 echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23296
23297 echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23298 echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23299 echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23300
23301 echo " What level of wxWindows compatibility should be enabled?"
23302 echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
23303 echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23304 echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
23305
23306 echo " Which libraries should wxWindows use?"
23307 echo " jpeg ${wxUSE_LIBJPEG-none}"
23308 echo " png ${wxUSE_LIBPNG-none}"
23309 echo " regex ${wxUSE_REGEX}"
23310 echo " tiff ${wxUSE_LIBTIFF-none}"
23311 echo " zlib ${wxUSE_ZLIB}"
23312
23313 echo ""
23314