]> git.saurik.com Git - wxWidgets.git/blob - configure
Removed everything since it's now in datacmn.cpp
[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-resources use wxWindows resources"
293 ac_help="$ac_help
294 --enable-xresources use X resources for save (default for gtk+)"
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-palette use wxPalette class"
427 ac_help="$ac_help
428 --enable-image use wxImage class"
429 ac_help="$ac_help
430 --enable-gif use gif images (GIF file format)"
431 ac_help="$ac_help
432 --enable-pcx use pcx images (PCX file format)"
433 ac_help="$ac_help
434 --enable-iff use iff images (IFF file format)"
435 ac_help="$ac_help
436 --enable-pnm use pnm images (PNM file format)"
437 ac_help="$ac_help
438 --enable-xpm use xpm images (XPM file format)"
439 ac_help="$ac_help
440 --enable-icocur use Windows ICO and CUR formats"
441 ac_help="$ac_help
442 --disable-largefile omit support for large files"
443 ac_help="$ac_help
444 --disable-gtktest do not try to compile and run a test GTK+ program"
445 ac_help="$ac_help
446 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
447 ac_help="$ac_help
448 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
449 ac_help="$ac_help
450 --disable-gtktest Do not try to compile and run a test GTK program"
451 ac_help="$ac_help
452 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
453 ac_help="$ac_help
454 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
455 ac_help="$ac_help
456 --disable-gtktest Do not try to compile and run a test GTK program"
457 ac_help="$ac_help
458 --with-x use the X Window System"
459 ac_help="$ac_help
460 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
461
462 # Initialize some variables set by options.
463 # The variables have the same names as the options, with
464 # dashes changed to underlines.
465 build=NONE
466 cache_file=./config.cache
467 exec_prefix=NONE
468 host=NONE
469 no_create=
470 nonopt=NONE
471 no_recursion=
472 prefix=NONE
473 program_prefix=NONE
474 program_suffix=NONE
475 program_transform_name=s,x,x,
476 silent=
477 site=
478 srcdir=
479 target=NONE
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483 bindir='${exec_prefix}/bin'
484 sbindir='${exec_prefix}/sbin'
485 libexecdir='${exec_prefix}/libexec'
486 datadir='${prefix}/share'
487 sysconfdir='${prefix}/etc'
488 sharedstatedir='${prefix}/com'
489 localstatedir='${prefix}/var'
490 libdir='${exec_prefix}/lib'
491 includedir='${prefix}/include'
492 oldincludedir='/usr/include'
493 infodir='${prefix}/info'
494 mandir='${prefix}/man'
495
496 # Initialize some other variables.
497 subdirs=
498 MFLAGS= MAKEFLAGS=
499 SHELL=${CONFIG_SHELL-/bin/sh}
500 # Maximum number of lines to put in a shell here document.
501 ac_max_here_lines=12
502
503 ac_prev=
504 for ac_option
505 do
506
507 # If the previous option needs an argument, assign it.
508 if test -n "$ac_prev"; then
509 eval "$ac_prev=\$ac_option"
510 ac_prev=
511 continue
512 fi
513
514 case "$ac_option" in
515 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
516 *) ac_optarg= ;;
517 esac
518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
521 case "$ac_option" in
522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir="$ac_optarg" ;;
527
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build="$ac_optarg" ;;
532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file="$ac_optarg" ;;
539
540 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 ac_prev=datadir ;;
542 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 | --da=*)
544 datadir="$ac_optarg" ;;
545
546 -disable-* | --disable-*)
547 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
548 # Reject names that are not valid shell variable names.
549 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
550 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
551 fi
552 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
553 eval "enable_${ac_feature}=no" ;;
554
555 -enable-* | --enable-*)
556 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
557 # Reject names that are not valid shell variable names.
558 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
559 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
560 fi
561 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
562 case "$ac_option" in
563 *=*) ;;
564 *) ac_optarg=yes ;;
565 esac
566 eval "enable_${ac_feature}='$ac_optarg'" ;;
567
568 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570 | --exec | --exe | --ex)
571 ac_prev=exec_prefix ;;
572 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574 | --exec=* | --exe=* | --ex=*)
575 exec_prefix="$ac_optarg" ;;
576
577 -gas | --gas | --ga | --g)
578 # Obsolete; use --with-gas.
579 with_gas=yes ;;
580
581 -help | --help | --hel | --he)
582 # Omit some internal or obsolete options to make the list less imposing.
583 # This message is too long to be a string in the A/UX 3.1 sh.
584 cat << EOF
585 Usage: configure [options] [host]
586 Options: [defaults in brackets after descriptions]
587 Configuration:
588 --cache-file=FILE cache test results in FILE
589 --help print this message
590 --no-create do not create output files
591 --quiet, --silent do not print \`checking...' messages
592 --version print the version of autoconf that created configure
593 Directory and file names:
594 --prefix=PREFIX install architecture-independent files in PREFIX
595 [$ac_default_prefix]
596 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
597 [same as prefix]
598 --bindir=DIR user executables in DIR [EPREFIX/bin]
599 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
600 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
601 --datadir=DIR read-only architecture-independent data in DIR
602 [PREFIX/share]
603 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
604 --sharedstatedir=DIR modifiable architecture-independent data in DIR
605 [PREFIX/com]
606 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
607 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
608 --includedir=DIR C header files in DIR [PREFIX/include]
609 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
610 --infodir=DIR info documentation in DIR [PREFIX/info]
611 --mandir=DIR man documentation in DIR [PREFIX/man]
612 --srcdir=DIR find the sources in DIR [configure dir or ..]
613 --program-prefix=PREFIX prepend PREFIX to installed program names
614 --program-suffix=SUFFIX append SUFFIX to installed program names
615 --program-transform-name=PROGRAM
616 run sed PROGRAM on installed program names
617 EOF
618 cat << EOF
619 Host type:
620 --build=BUILD configure for building on BUILD [BUILD=HOST]
621 --host=HOST configure for HOST [guessed]
622 --target=TARGET configure for TARGET [TARGET=HOST]
623 Features and packages:
624 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
625 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
626 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
627 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
628 --x-includes=DIR X include files are in DIR
629 --x-libraries=DIR X library files are in DIR
630 EOF
631 if test -n "$ac_help"; then
632 echo "--enable and --with options recognized:$ac_help"
633 fi
634 exit 0 ;;
635
636 -host | --host | --hos | --ho)
637 ac_prev=host ;;
638 -host=* | --host=* | --hos=* | --ho=*)
639 host="$ac_optarg" ;;
640
641 -includedir | --includedir | --includedi | --included | --include \
642 | --includ | --inclu | --incl | --inc)
643 ac_prev=includedir ;;
644 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
645 | --includ=* | --inclu=* | --incl=* | --inc=*)
646 includedir="$ac_optarg" ;;
647
648 -infodir | --infodir | --infodi | --infod | --info | --inf)
649 ac_prev=infodir ;;
650 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
651 infodir="$ac_optarg" ;;
652
653 -libdir | --libdir | --libdi | --libd)
654 ac_prev=libdir ;;
655 -libdir=* | --libdir=* | --libdi=* | --libd=*)
656 libdir="$ac_optarg" ;;
657
658 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
659 | --libexe | --libex | --libe)
660 ac_prev=libexecdir ;;
661 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
662 | --libexe=* | --libex=* | --libe=*)
663 libexecdir="$ac_optarg" ;;
664
665 -localstatedir | --localstatedir | --localstatedi | --localstated \
666 | --localstate | --localstat | --localsta | --localst \
667 | --locals | --local | --loca | --loc | --lo)
668 ac_prev=localstatedir ;;
669 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
670 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
671 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
672 localstatedir="$ac_optarg" ;;
673
674 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
675 ac_prev=mandir ;;
676 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
677 mandir="$ac_optarg" ;;
678
679 -nfp | --nfp | --nf)
680 # Obsolete; use --without-fp.
681 with_fp=no ;;
682
683 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
684 | --no-cr | --no-c)
685 no_create=yes ;;
686
687 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
688 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
689 no_recursion=yes ;;
690
691 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
692 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
693 | --oldin | --oldi | --old | --ol | --o)
694 ac_prev=oldincludedir ;;
695 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
696 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
697 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698 oldincludedir="$ac_optarg" ;;
699
700 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
701 ac_prev=prefix ;;
702 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
703 prefix="$ac_optarg" ;;
704
705 -program-prefix | --program-prefix | --program-prefi | --program-pref \
706 | --program-pre | --program-pr | --program-p)
707 ac_prev=program_prefix ;;
708 -program-prefix=* | --program-prefix=* | --program-prefi=* \
709 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
710 program_prefix="$ac_optarg" ;;
711
712 -program-suffix | --program-suffix | --program-suffi | --program-suff \
713 | --program-suf | --program-su | --program-s)
714 ac_prev=program_suffix ;;
715 -program-suffix=* | --program-suffix=* | --program-suffi=* \
716 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
717 program_suffix="$ac_optarg" ;;
718
719 -program-transform-name | --program-transform-name \
720 | --program-transform-nam | --program-transform-na \
721 | --program-transform-n | --program-transform- \
722 | --program-transform | --program-transfor \
723 | --program-transfo | --program-transf \
724 | --program-trans | --program-tran \
725 | --progr-tra | --program-tr | --program-t)
726 ac_prev=program_transform_name ;;
727 -program-transform-name=* | --program-transform-name=* \
728 | --program-transform-nam=* | --program-transform-na=* \
729 | --program-transform-n=* | --program-transform-=* \
730 | --program-transform=* | --program-transfor=* \
731 | --program-transfo=* | --program-transf=* \
732 | --program-trans=* | --program-tran=* \
733 | --progr-tra=* | --program-tr=* | --program-t=*)
734 program_transform_name="$ac_optarg" ;;
735
736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
737 | -silent | --silent | --silen | --sile | --sil)
738 silent=yes ;;
739
740 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
741 ac_prev=sbindir ;;
742 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
743 | --sbi=* | --sb=*)
744 sbindir="$ac_optarg" ;;
745
746 -sharedstatedir | --sharedstatedir | --sharedstatedi \
747 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
748 | --sharedst | --shareds | --shared | --share | --shar \
749 | --sha | --sh)
750 ac_prev=sharedstatedir ;;
751 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
752 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
753 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
754 | --sha=* | --sh=*)
755 sharedstatedir="$ac_optarg" ;;
756
757 -site | --site | --sit)
758 ac_prev=site ;;
759 -site=* | --site=* | --sit=*)
760 site="$ac_optarg" ;;
761
762 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
763 ac_prev=srcdir ;;
764 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
765 srcdir="$ac_optarg" ;;
766
767 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
768 | --syscon | --sysco | --sysc | --sys | --sy)
769 ac_prev=sysconfdir ;;
770 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
771 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
772 sysconfdir="$ac_optarg" ;;
773
774 -target | --target | --targe | --targ | --tar | --ta | --t)
775 ac_prev=target ;;
776 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
777 target="$ac_optarg" ;;
778
779 -v | -verbose | --verbose | --verbos | --verbo | --verb)
780 verbose=yes ;;
781
782 -version | --version | --versio | --versi | --vers)
783 echo "configure generated by autoconf version 2.13"
784 exit 0 ;;
785
786 -with-* | --with-*)
787 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
788 # Reject names that are not valid shell variable names.
789 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
790 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
791 fi
792 ac_package=`echo $ac_package| sed 's/-/_/g'`
793 case "$ac_option" in
794 *=*) ;;
795 *) ac_optarg=yes ;;
796 esac
797 eval "with_${ac_package}='$ac_optarg'" ;;
798
799 -without-* | --without-*)
800 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
801 # Reject names that are not valid shell variable names.
802 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
803 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
804 fi
805 ac_package=`echo $ac_package| sed 's/-/_/g'`
806 eval "with_${ac_package}=no" ;;
807
808 --x)
809 # Obsolete; use --with-x.
810 with_x=yes ;;
811
812 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
813 | --x-incl | --x-inc | --x-in | --x-i)
814 ac_prev=x_includes ;;
815 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
816 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
817 x_includes="$ac_optarg" ;;
818
819 -x-libraries | --x-libraries | --x-librarie | --x-librari \
820 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
821 ac_prev=x_libraries ;;
822 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
823 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
824 x_libraries="$ac_optarg" ;;
825
826 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
827 ;;
828
829 *)
830 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
831 echo "configure: warning: $ac_option: invalid host type" 1>&2
832 fi
833 if test "x$nonopt" != xNONE; then
834 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
835 fi
836 nonopt="$ac_option"
837 ;;
838
839 esac
840 done
841
842 if test -n "$ac_prev"; then
843 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
844 fi
845
846 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
847
848 # File descriptor usage:
849 # 0 standard input
850 # 1 file creation
851 # 2 errors and warnings
852 # 3 some systems may open it to /dev/tty
853 # 4 used on the Kubota Titan
854 # 6 checking for... messages and results
855 # 5 compiler messages saved in config.log
856 if test "$silent" = yes; then
857 exec 6>/dev/null
858 else
859 exec 6>&1
860 fi
861 exec 5>./config.log
862
863 echo "\
864 This file contains any messages produced by compilers while
865 running configure, to aid debugging if configure makes a mistake.
866 " 1>&5
867
868 # Strip out --no-create and --no-recursion so they do not pile up.
869 # Also quote any args containing shell metacharacters.
870 ac_configure_args=
871 for ac_arg
872 do
873 case "$ac_arg" in
874 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
875 | --no-cr | --no-c) ;;
876 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
877 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
878 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
879 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
880 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
881 esac
882 done
883
884 # NLS nuisances.
885 # Only set these to C if already set. These must not be set unconditionally
886 # because not all systems understand e.g. LANG=C (notably SCO).
887 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
888 # Non-C LC_CTYPE values break the ctype check.
889 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
890 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
891 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
892 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
893
894 # confdefs.h avoids OS command line length limits that DEFS can exceed.
895 rm -rf conftest* confdefs.h
896 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
897 echo > confdefs.h
898
899 # A filename unique to this package, relative to the directory that
900 # configure is in, which we can look for to find out if srcdir is correct.
901 ac_unique_file=wx-config.in
902
903 # Find the source files, if location was not specified.
904 if test -z "$srcdir"; then
905 ac_srcdir_defaulted=yes
906 # Try the directory containing this script, then its parent.
907 ac_prog=$0
908 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
909 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
910 srcdir=$ac_confdir
911 if test ! -r $srcdir/$ac_unique_file; then
912 srcdir=..
913 fi
914 else
915 ac_srcdir_defaulted=no
916 fi
917 if test ! -r $srcdir/$ac_unique_file; then
918 if test "$ac_srcdir_defaulted" = yes; then
919 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
920 else
921 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
922 fi
923 fi
924 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
925
926 # Prefer explicitly selected file to automatically selected ones.
927 if test -z "$CONFIG_SITE"; then
928 if test "x$prefix" != xNONE; then
929 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
930 else
931 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
932 fi
933 fi
934 for ac_site_file in $CONFIG_SITE; do
935 if test -r "$ac_site_file"; then
936 echo "loading site script $ac_site_file"
937 . "$ac_site_file"
938 fi
939 done
940
941 if test -r "$cache_file"; then
942 echo "loading cache $cache_file"
943 . $cache_file
944 else
945 echo "creating cache $cache_file"
946 > $cache_file
947 fi
948
949 ac_ext=c
950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
951 ac_cpp='$CPP $CPPFLAGS'
952 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
953 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
954 cross_compiling=$ac_cv_prog_cc_cross
955
956 ac_exeext=
957 ac_objext=o
958 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
959 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
960 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
961 ac_n= ac_c='
962 ' ac_t=' '
963 else
964 ac_n=-n ac_c= ac_t=
965 fi
966 else
967 ac_n= ac_c='\c' ac_t=
968 fi
969
970
971
972 ac_aux_dir=
973 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
974 if test -f $ac_dir/install-sh; then
975 ac_aux_dir=$ac_dir
976 ac_install_sh="$ac_aux_dir/install-sh -c"
977 break
978 elif test -f $ac_dir/install.sh; then
979 ac_aux_dir=$ac_dir
980 ac_install_sh="$ac_aux_dir/install.sh -c"
981 break
982 fi
983 done
984 if test -z "$ac_aux_dir"; then
985 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
986 fi
987 ac_config_guess=$ac_aux_dir/config.guess
988 ac_config_sub=$ac_aux_dir/config.sub
989 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
990
991
992 # Do some error checking and defaulting for the host and target type.
993 # The inputs are:
994 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
995 #
996 # The rules are:
997 # 1. You are not allowed to specify --host, --target, and nonopt at the
998 # same time.
999 # 2. Host defaults to nonopt.
1000 # 3. If nonopt is not specified, then host defaults to the current host,
1001 # as determined by config.guess.
1002 # 4. Target and build default to nonopt.
1003 # 5. If nonopt is not specified, then target and build default to host.
1004
1005 # The aliases save the names the user supplied, while $host etc.
1006 # will get canonicalized.
1007 case $host---$target---$nonopt in
1008 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1009 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1010 esac
1011
1012
1013 # Make sure we can run config.sub.
1014 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1015 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1016 fi
1017
1018 echo $ac_n "checking host system type""... $ac_c" 1>&6
1019 echo "configure:1020: checking host system type" >&5
1020
1021 host_alias=$host
1022 case "$host_alias" in
1023 NONE)
1024 case $nonopt in
1025 NONE)
1026 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1027 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1028 fi ;;
1029 *) host_alias=$nonopt ;;
1030 esac ;;
1031 esac
1032
1033 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1034 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1035 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1036 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1037 echo "$ac_t""$host" 1>&6
1038
1039 echo $ac_n "checking target system type""... $ac_c" 1>&6
1040 echo "configure:1041: checking target system type" >&5
1041
1042 target_alias=$target
1043 case "$target_alias" in
1044 NONE)
1045 case $nonopt in
1046 NONE) target_alias=$host_alias ;;
1047 *) target_alias=$nonopt ;;
1048 esac ;;
1049 esac
1050
1051 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1052 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1053 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1054 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1055 echo "$ac_t""$target" 1>&6
1056
1057 echo $ac_n "checking build system type""... $ac_c" 1>&6
1058 echo "configure:1059: checking build system type" >&5
1059
1060 build_alias=$build
1061 case "$build_alias" in
1062 NONE)
1063 case $nonopt in
1064 NONE) build_alias=$host_alias ;;
1065 *) build_alias=$nonopt ;;
1066 esac ;;
1067 esac
1068
1069 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1070 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1071 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1072 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1073 echo "$ac_t""$build" 1>&6
1074
1075 test "$host_alias" != "$target_alias" &&
1076 test "$program_prefix$program_suffix$program_transform_name" = \
1077 NONENONEs,x,x, &&
1078 program_prefix=${target_alias}-
1079
1080
1081
1082 WX_MAJOR_VERSION_NUMBER=2
1083 WX_MINOR_VERSION_NUMBER=5
1084 WX_RELEASE_NUMBER=0
1085
1086 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1087 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1088
1089 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1090
1091 WX_CURRENT=0
1092 WX_REVISION=0
1093 WX_AGE=0
1094
1095
1096
1097 USE_UNIX=1
1098 USE_WIN32=0
1099 USE_DOS=0
1100 USE_BEOS=0
1101 USE_MAC=0
1102
1103 USE_AIX=
1104 USE_BSD=
1105 USE_DARWIN=
1106 USE_FREEBSD=
1107 USE_HPUX=
1108 USE_LINUX=
1109 USE_NETBSD=
1110 USE_OPENBSD=
1111 USE_OSF=
1112 USE_SGI=
1113 USE_SOLARIS=
1114 USE_SUN=
1115 USE_SUNOS=
1116 USE_SVR4=
1117 USE_SYSV=
1118 USE_VMS=
1119 USE_ULTRIX=
1120 USE_UNIXWARE=
1121
1122 USE_ALPHA=
1123
1124 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1125
1126 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1127
1128 DEFAULT_wxUSE_COCOA=0
1129 DEFAULT_wxUSE_GTK=0
1130 DEFAULT_wxUSE_MAC=0
1131 DEFAULT_wxUSE_MGL=0
1132 DEFAULT_wxUSE_MICROWIN=0
1133 DEFAULT_wxUSE_MOTIF=0
1134 DEFAULT_wxUSE_MSW=0
1135 DEFAULT_wxUSE_PM=0
1136 DEFAULT_wxUSE_X11=0
1137
1138 DEFAULT_DEFAULT_wxUSE_COCOA=0
1139 DEFAULT_DEFAULT_wxUSE_GTK=0
1140 DEFAULT_DEFAULT_wxUSE_MAC=0
1141 DEFAULT_DEFAULT_wxUSE_MGL=0
1142 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1143 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1144 DEFAULT_DEFAULT_wxUSE_MSW=0
1145 DEFAULT_DEFAULT_wxUSE_PM=0
1146 DEFAULT_DEFAULT_wxUSE_X11=0
1147
1148 PROGRAM_EXT=
1149 SO_SUFFIX=so
1150
1151 case "${host}" in
1152 *-hp-hpux* )
1153 USE_HPUX=1
1154 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1155 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1156 SO_SUFFIX=sl
1157 cat >> confdefs.h <<\EOF
1158 #define __HPUX__ 1
1159 EOF
1160
1161 ;;
1162 *-*-linux* )
1163 USE_LINUX=1
1164 cat >> confdefs.h <<\EOF
1165 #define __LINUX__ 1
1166 EOF
1167
1168 TMP=`uname -m`
1169 if test "x$TMP" = "xalpha"; then
1170 USE_ALPHA=1
1171 cat >> confdefs.h <<\EOF
1172 #define __ALPHA__ 1
1173 EOF
1174
1175 fi
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-irix5* | *-*-irix6* )
1179 USE_SGI=1
1180 USE_SVR4=1
1181 cat >> confdefs.h <<\EOF
1182 #define __SGI__ 1
1183 EOF
1184
1185 cat >> confdefs.h <<\EOF
1186 #define __SVR4__ 1
1187 EOF
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1190 ;;
1191 *-*-solaris2* )
1192 USE_SUN=1
1193 USE_SOLARIS=1
1194 USE_SVR4=1
1195 cat >> confdefs.h <<\EOF
1196 #define __SUN__ 1
1197 EOF
1198
1199 cat >> confdefs.h <<\EOF
1200 #define __SOLARIS__ 1
1201 EOF
1202
1203 cat >> confdefs.h <<\EOF
1204 #define __SVR4__ 1
1205 EOF
1206
1207 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1208 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1209 ;;
1210 *-*-sunos4* )
1211 USE_SUN=1
1212 USE_SUNOS=1
1213 USE_BSD=1
1214 cat >> confdefs.h <<\EOF
1215 #define __SUN__ 1
1216 EOF
1217
1218 cat >> confdefs.h <<\EOF
1219 #define __SUNOS__ 1
1220 EOF
1221
1222 cat >> confdefs.h <<\EOF
1223 #define __BSD__ 1
1224 EOF
1225
1226 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1227 ;;
1228 *-*-freebsd*)
1229 USE_BSD=1
1230 USE_FREEBSD=1
1231 cat >> confdefs.h <<\EOF
1232 #define __FREEBSD__ 1
1233 EOF
1234
1235 cat >> confdefs.h <<\EOF
1236 #define __BSD__ 1
1237 EOF
1238
1239 DEFAULT_DEFAULT_wxUSE_GTK=1
1240 ;;
1241 *-*-openbsd*)
1242 USE_BSD=1
1243 USE_OPENBSD=1
1244 cat >> confdefs.h <<\EOF
1245 #define __OPENBSD__ 1
1246 EOF
1247
1248 cat >> confdefs.h <<\EOF
1249 #define __BSD__ 1
1250 EOF
1251
1252 DEFAULT_DEFAULT_wxUSE_GTK=1
1253 ;;
1254 *-*-netbsd*)
1255 USE_BSD=1
1256 USE_NETBSD=1
1257 cat >> confdefs.h <<\EOF
1258 #define __NETBSD__ 1
1259 EOF
1260
1261 cat >> confdefs.h <<\EOF
1262 #define __BSD__ 1
1263 EOF
1264
1265 DEFAULT_DEFAULT_wxUSE_GTK=1
1266 ;;
1267 *-*-osf* )
1268 USE_ALPHA=1
1269 USE_OSF=1
1270 cat >> confdefs.h <<\EOF
1271 #define __ALPHA__ 1
1272 EOF
1273
1274 cat >> confdefs.h <<\EOF
1275 #define __OSF__ 1
1276 EOF
1277
1278 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1279 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1280 ;;
1281 *-*-dgux5* )
1282 USE_ALPHA=1
1283 USE_SVR4=1
1284 cat >> confdefs.h <<\EOF
1285 #define __ALPHA__ 1
1286 EOF
1287
1288 cat >> confdefs.h <<\EOF
1289 #define __SVR4__ 1
1290 EOF
1291
1292 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1293 ;;
1294 *-*-sysv5* )
1295 USE_SYSV=1
1296 USE_SVR4=1
1297 cat >> confdefs.h <<\EOF
1298 #define __SYSV__ 1
1299 EOF
1300
1301 cat >> confdefs.h <<\EOF
1302 #define __SVR4__ 1
1303 EOF
1304
1305 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1306 ;;
1307 *-*-aix* )
1308 USE_AIX=1
1309 USE_SYSV=1
1310 USE_SVR4=1
1311 SO_SUFFIX=a
1312 cat >> confdefs.h <<\EOF
1313 #define __AIX__ 1
1314 EOF
1315
1316 cat >> confdefs.h <<\EOF
1317 #define __SYSV__ 1
1318 EOF
1319
1320 cat >> confdefs.h <<\EOF
1321 #define __SVR4__ 1
1322 EOF
1323
1324 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1325 ;;
1326
1327 *-*-*UnixWare*)
1328 USE_SYSV=1
1329 USE_SVR4=1
1330 USE_UNIXWARE=1
1331 cat >> confdefs.h <<\EOF
1332 #define __UNIXWARE__ 1
1333 EOF
1334
1335 ;;
1336
1337 *-*-cygwin* | *-*-mingw32* )
1338 SO_SUFFIX=dll
1339 PROGRAM_EXT=".exe"
1340 RESCOMP=windres
1341 DEFAULT_DEFAULT_wxUSE_MSW=1
1342 ;;
1343
1344 *-pc-msdosdjgpp )
1345 USE_UNIX=0
1346 USE_DOS=1
1347 cat >> confdefs.h <<\EOF
1348 #define __DOS__ 1
1349 EOF
1350
1351 PROGRAM_EXT=".exe"
1352 DEFAULT_DEFAULT_wxUSE_MGL=1
1353 LIBS="$LIBS -lstdc++"
1354 ;;
1355
1356 *-pc-os2_emx | *-pc-os2-emx )
1357 cat >> confdefs.h <<\EOF
1358 #define __EMX__ 1
1359 EOF
1360
1361 PROGRAM_EXT=".exe"
1362 DEFAULT_DEFAULT_wxUSE_PM=1
1363 ;;
1364
1365 powerpc-*-darwin* )
1366 USE_BSD=1
1367 USE_DARWIN=1
1368 SO_SUFFIX=dylib
1369 cat >> confdefs.h <<\EOF
1370 #define __BSD__ 1
1371 EOF
1372
1373 cat >> confdefs.h <<\EOF
1374 #define __DARWIN__ 1
1375 EOF
1376
1377 cat >> confdefs.h <<\EOF
1378 #define __POWERPC__ 1
1379 EOF
1380
1381 cat >> confdefs.h <<\EOF
1382 #define TARGET_CARBON 1
1383 EOF
1384
1385 DEFAULT_DEFAULT_wxUSE_MAC=1
1386 ;;
1387
1388 *-*-beos* )
1389 USE_BEOS=1
1390 cat >> confdefs.h <<\EOF
1391 #define __BEOS__ 1
1392 EOF
1393
1394 ;;
1395
1396 *)
1397 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1398 esac
1399
1400
1401
1402
1403 wx_arg_cache_file="configarg.cache"
1404 echo "loading argument cache $wx_arg_cache_file"
1405 rm -f ${wx_arg_cache_file}.tmp
1406 touch ${wx_arg_cache_file}.tmp
1407 touch ${wx_arg_cache_file}
1408
1409
1410 DEBUG_CONFIGURE=0
1411 if test $DEBUG_CONFIGURE = 1; then
1412 DEFAULT_wxUSE_UNIVERSAL=no
1413
1414 DEFAULT_wxUSE_NANOX=no
1415
1416 DEFAULT_wxUSE_THREADS=yes
1417
1418 DEFAULT_wxUSE_SHARED=yes
1419 DEFAULT_wxUSE_SONAME=no
1420 DEFAULT_wxUSE_OPTIMISE=no
1421 DEFAULT_wxUSE_PROFILE=no
1422 DEFAULT_wxUSE_NO_DEPS=no
1423 DEFAULT_wxUSE_NO_RTTI=no
1424 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1425 DEFAULT_wxUSE_PERMISSIVE=no
1426 DEFAULT_wxUSE_DEBUG_FLAG=yes
1427 DEFAULT_wxUSE_DEBUG_INFO=yes
1428 DEFAULT_wxUSE_DEBUG_GDB=yes
1429 DEFAULT_wxUSE_MEM_TRACING=no
1430 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1431 DEFAULT_wxUSE_DMALLOC=no
1432 DEFAULT_wxUSE_PRECOMP=no
1433 DEFAULT_wxUSE_APPLE_IEEE=no
1434
1435 DEFAULT_wxUSE_LOG=yes
1436 DEFAULT_wxUSE_LOGWINDOW=no
1437 DEFAULT_wxUSE_LOGGUI=no
1438 DEFAULT_wxUSE_LOGDIALOG=no
1439
1440 DEFAULT_wxUSE_GUI=yes
1441 DEFAULT_wxUSE_CONTROLS=no
1442
1443 DEFAULT_wxUSE_REGEX=no
1444 DEFAULT_wxUSE_ZLIB=no
1445 DEFAULT_wxUSE_LIBPNG=no
1446 DEFAULT_wxUSE_LIBJPEG=no
1447 DEFAULT_wxUSE_LIBTIFF=no
1448 DEFAULT_wxUSE_ODBC=no
1449 DEFAULT_wxUSE_OPENGL=no
1450
1451 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1452 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1453 DEFAULT_wxUSE_STD_IOSTREAM=no
1454 DEFAULT_wxUSE_CMDLINE_PARSER=no
1455 DEFAULT_wxUSE_DATETIME=no
1456 DEFAULT_wxUSE_TIMER=no
1457 DEFAULT_wxUSE_STOPWATCH=no
1458 DEFAULT_wxUSE_FILE=no
1459 DEFAULT_wxUSE_FFILE=no
1460 DEFAULT_wxUSE_TEXTBUFFER=no
1461 DEFAULT_wxUSE_TEXTFILE=no
1462 DEFAULT_wxUSE_WAVE=no
1463 DEFAULT_wxUSE_INTL=no
1464 DEFAULT_wxUSE_CONFIG=no
1465 DEFAULT_wxUSE_FONTMAP=no
1466 DEFAULT_wxUSE_STREAMS=no
1467 DEFAULT_wxUSE_SOCKETS=no
1468 DEFAULT_wxUSE_OLE=no
1469 DEFAULT_wxUSE_DATAOBJ=no
1470 DEFAULT_wxUSE_DIALUP_MANAGER=no
1471 DEFAULT_wxUSE_JOYSTICK=no
1472 DEFAULT_wxUSE_DYNLIB_CLASS=no
1473 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1474 DEFAULT_wxUSE_LONGLONG=no
1475 DEFAULT_wxUSE_GEOMETRY=no
1476
1477 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1478 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1479 DEFAULT_wxUSE_POSTSCRIPT=no
1480
1481 DEFAULT_wxUSE_X_RESOURCES=no
1482 DEFAULT_wxUSE_CLIPBOARD=no
1483 DEFAULT_wxUSE_TOOLTIPS=no
1484 DEFAULT_wxUSE_DRAG_AND_DROP=no
1485 DEFAULT_wxUSE_DRAGIMAGE=no
1486 DEFAULT_wxUSE_SPLINES=no
1487
1488 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1489 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1490 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1491
1492 DEFAULT_wxUSE_RESOURCES=no
1493 DEFAULT_wxUSE_CONSTRAINTS=no
1494 DEFAULT_wxUSE_IPC=no
1495 DEFAULT_wxUSE_HELP=no
1496 DEFAULT_wxUSE_MS_HTML_HELP=no
1497 DEFAULT_wxUSE_WXHTML_HELP=no
1498 DEFAULT_wxUSE_TREELAYOUT=no
1499 DEFAULT_wxUSE_METAFILE=no
1500 DEFAULT_wxUSE_MIMETYPE=no
1501 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1502 DEFAULT_wxUSE_PROTOCOL=no
1503 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1504 DEFAULT_wxUSE_PROTOCOL_FTP=no
1505 DEFAULT_wxUSE_PROTOCOL_FILE=no
1506 DEFAULT_wxUSE_URL=no
1507
1508 DEFAULT_wxUSE_COMMONDLGS=no
1509 DEFAULT_wxUSE_CHOICEDLG=no
1510 DEFAULT_wxUSE_COLOURDLG=no
1511 DEFAULT_wxUSE_DIRDLG=no
1512 DEFAULT_wxUSE_FILEDLG=no
1513 DEFAULT_wxUSE_FINDREPLDLG=no
1514 DEFAULT_wxUSE_FONTDLG=no
1515 DEFAULT_wxUSE_MSGDLG=no
1516 DEFAULT_wxUSE_NUMBERDLG=no
1517 DEFAULT_wxUSE_TEXTDLG=no
1518 DEFAULT_wxUSE_SPLASH=no
1519 DEFAULT_wxUSE_STARTUP_TIPS=no
1520 DEFAULT_wxUSE_PROGRESSDLG=no
1521 DEFAULT_wxUSE_WIZARDDLG=no
1522
1523 DEFAULT_wxUSE_MENUS=no
1524 DEFAULT_wxUSE_MINIFRAME=no
1525 DEFAULT_wxUSE_HTML=no
1526 DEFAULT_wxUSE_FILESYSTEM=no
1527 DEFAULT_wxUSE_FS_INET=no
1528 DEFAULT_wxUSE_FS_ZIP=no
1529 DEFAULT_wxUSE_BUSYINFO=no
1530 DEFAULT_wxUSE_ZIPSTREAM=no
1531 DEFAULT_wxUSE_VALIDATORS=no
1532
1533 DEFAULT_wxUSE_ACCEL=no
1534 DEFAULT_wxUSE_BUTTON=no
1535 DEFAULT_wxUSE_BMPBUTTON=no
1536 DEFAULT_wxUSE_CALCTRL=no
1537 DEFAULT_wxUSE_CARET=no
1538 DEFAULT_wxUSE_CHECKBOX=no
1539 DEFAULT_wxUSE_CHECKLST=no
1540 DEFAULT_wxUSE_CHOICE=no
1541 DEFAULT_wxUSE_COMBOBOX=no
1542 DEFAULT_wxUSE_DISPLAY=no
1543 DEFAULT_wxUSE_GAUGE=no
1544 DEFAULT_wxUSE_GRID=no
1545 DEFAULT_wxUSE_IMAGLIST=no
1546 DEFAULT_wxUSE_LISTBOX=no
1547 DEFAULT_wxUSE_LISTCTRL=no
1548 DEFAULT_wxUSE_NOTEBOOK=no
1549 DEFAULT_wxUSE_RADIOBOX=no
1550 DEFAULT_wxUSE_RADIOBTN=no
1551 DEFAULT_wxUSE_SASH=no
1552 DEFAULT_wxUSE_SCROLLBAR=no
1553 DEFAULT_wxUSE_SLIDER=no
1554 DEFAULT_wxUSE_SPINBTN=no
1555 DEFAULT_wxUSE_SPINCTRL=no
1556 DEFAULT_wxUSE_SPLITTER=no
1557 DEFAULT_wxUSE_STATBMP=no
1558 DEFAULT_wxUSE_STATBOX=no
1559 DEFAULT_wxUSE_STATLINE=no
1560 DEFAULT_wxUSE_STATTEXT=no
1561 DEFAULT_wxUSE_STATUSBAR=yes
1562 DEFAULT_wxUSE_TABDIALOG=no
1563 DEFAULT_wxUSE_TEXTCTRL=no
1564 DEFAULT_wxUSE_TOGGLEBTN=no
1565 DEFAULT_wxUSE_TOOLBAR=no
1566 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1567 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1568 DEFAULT_wxUSE_TREECTRL=no
1569 DEFAULT_wxUSE_POPUPWIN=no
1570 DEFAULT_wxUSE_TIPWINDOW=no
1571
1572 DEFAULT_wxUSE_UNICODE=no
1573 DEFAULT_wxUSE_UNICODE_MSLU=no
1574 DEFAULT_wxUSE_WCSRTOMBS=no
1575
1576 DEFAULT_wxUSE_PALETTE=no
1577 DEFAULT_wxUSE_IMAGE=no
1578 DEFAULT_wxUSE_GIF=no
1579 DEFAULT_wxUSE_PCX=no
1580 DEFAULT_wxUSE_PNM=no
1581 DEFAULT_wxUSE_IFF=no
1582 DEFAULT_wxUSE_XPM=no
1583 DEFAULT_wxUSE_ICO_CUR=no
1584 else
1585 DEFAULT_wxUSE_UNIVERSAL=no
1586
1587 DEFAULT_wxUSE_NANOX=no
1588
1589 DEFAULT_wxUSE_THREADS=yes
1590
1591 DEFAULT_wxUSE_SHARED=yes
1592 DEFAULT_wxUSE_SONAME=no
1593 DEFAULT_wxUSE_OPTIMISE=yes
1594 DEFAULT_wxUSE_PROFILE=no
1595 DEFAULT_wxUSE_NO_DEPS=no
1596 DEFAULT_wxUSE_NO_RTTI=no
1597 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1598 DEFAULT_wxUSE_PERMISSIVE=no
1599 DEFAULT_wxUSE_DEBUG_FLAG=no
1600 DEFAULT_wxUSE_DEBUG_INFO=no
1601 DEFAULT_wxUSE_DEBUG_GDB=no
1602 DEFAULT_wxUSE_MEM_TRACING=no
1603 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1604 DEFAULT_wxUSE_DMALLOC=no
1605 DEFAULT_wxUSE_PRECOMP=no
1606 DEFAULT_wxUSE_APPLE_IEEE=yes
1607
1608 DEFAULT_wxUSE_LOG=yes
1609 DEFAULT_wxUSE_LOGWINDOW=yes
1610 DEFAULT_wxUSE_LOGGUI=yes
1611 DEFAULT_wxUSE_LOGDIALOG=yes
1612
1613 DEFAULT_wxUSE_GUI=yes
1614
1615 DEFAULT_wxUSE_REGEX=yes
1616 DEFAULT_wxUSE_ZLIB=yes
1617 DEFAULT_wxUSE_LIBPNG=yes
1618 DEFAULT_wxUSE_LIBJPEG=yes
1619 DEFAULT_wxUSE_LIBTIFF=yes
1620 DEFAULT_wxUSE_ODBC=no
1621 DEFAULT_wxUSE_OPENGL=no
1622
1623 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1624 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1625 DEFAULT_wxUSE_STD_IOSTREAM=no
1626 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1627 DEFAULT_wxUSE_DATETIME=yes
1628 DEFAULT_wxUSE_TIMER=yes
1629 DEFAULT_wxUSE_STOPWATCH=yes
1630 DEFAULT_wxUSE_FILE=yes
1631 DEFAULT_wxUSE_FFILE=yes
1632 DEFAULT_wxUSE_TEXTBUFFER=yes
1633 DEFAULT_wxUSE_TEXTFILE=yes
1634 DEFAULT_wxUSE_WAVE=no
1635 DEFAULT_wxUSE_INTL=yes
1636 DEFAULT_wxUSE_CONFIG=yes
1637 DEFAULT_wxUSE_FONTMAP=yes
1638 DEFAULT_wxUSE_STREAMS=yes
1639 DEFAULT_wxUSE_SOCKETS=yes
1640 DEFAULT_wxUSE_OLE=yes
1641 DEFAULT_wxUSE_DATAOBJ=yes
1642 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1643 DEFAULT_wxUSE_JOYSTICK=yes
1644 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1645 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1646 DEFAULT_wxUSE_LONGLONG=yes
1647 DEFAULT_wxUSE_GEOMETRY=yes
1648
1649 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1650 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1651 DEFAULT_wxUSE_POSTSCRIPT=yes
1652
1653 DEFAULT_wxUSE_X_RESOURCES=no
1654 DEFAULT_wxUSE_CLIPBOARD=yes
1655 DEFAULT_wxUSE_TOOLTIPS=yes
1656 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1657 DEFAULT_wxUSE_DRAGIMAGE=yes
1658 DEFAULT_wxUSE_SPLINES=yes
1659
1660 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1661 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1662 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1663
1664 DEFAULT_wxUSE_RESOURCES=no
1665 DEFAULT_wxUSE_CONSTRAINTS=yes
1666 DEFAULT_wxUSE_IPC=yes
1667 DEFAULT_wxUSE_HELP=yes
1668 DEFAULT_wxUSE_MS_HTML_HELP=yes
1669 DEFAULT_wxUSE_WXHTML_HELP=yes
1670 DEFAULT_wxUSE_TREELAYOUT=yes
1671 DEFAULT_wxUSE_METAFILE=yes
1672 DEFAULT_wxUSE_MIMETYPE=yes
1673 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1674 DEFAULT_wxUSE_PROTOCOL=yes
1675 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1676 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1677 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1678 DEFAULT_wxUSE_URL=yes
1679
1680 DEFAULT_wxUSE_COMMONDLGS=yes
1681 DEFAULT_wxUSE_CHOICEDLG=yes
1682 DEFAULT_wxUSE_COLOURDLG=yes
1683 DEFAULT_wxUSE_DIRDLG=yes
1684 DEFAULT_wxUSE_FILEDLG=yes
1685 DEFAULT_wxUSE_FINDREPLDLG=yes
1686 DEFAULT_wxUSE_FONTDLG=yes
1687 DEFAULT_wxUSE_MSGDLG=yes
1688 DEFAULT_wxUSE_NUMBERDLG=yes
1689 DEFAULT_wxUSE_TEXTDLG=yes
1690 DEFAULT_wxUSE_SPLASH=yes
1691 DEFAULT_wxUSE_STARTUP_TIPS=yes
1692 DEFAULT_wxUSE_PROGRESSDLG=yes
1693 DEFAULT_wxUSE_WIZARDDLG=yes
1694
1695 DEFAULT_wxUSE_MENUS=yes
1696 DEFAULT_wxUSE_MINIFRAME=yes
1697 DEFAULT_wxUSE_HTML=yes
1698 DEFAULT_wxUSE_FILESYSTEM=yes
1699 DEFAULT_wxUSE_FS_INET=yes
1700 DEFAULT_wxUSE_FS_ZIP=yes
1701 DEFAULT_wxUSE_BUSYINFO=yes
1702 DEFAULT_wxUSE_ZIPSTREAM=yes
1703 DEFAULT_wxUSE_VALIDATORS=yes
1704
1705 DEFAULT_wxUSE_ACCEL=yes
1706 DEFAULT_wxUSE_BUTTON=yes
1707 DEFAULT_wxUSE_BMPBUTTON=yes
1708 DEFAULT_wxUSE_CALCTRL=yes
1709 DEFAULT_wxUSE_CARET=yes
1710 DEFAULT_wxUSE_CHECKBOX=yes
1711 DEFAULT_wxUSE_CHECKLST=yes
1712 DEFAULT_wxUSE_CHOICE=yes
1713 DEFAULT_wxUSE_COMBOBOX=yes
1714 DEFAULT_wxUSE_DISPLAY=no
1715 DEFAULT_wxUSE_GAUGE=yes
1716 DEFAULT_wxUSE_GRID=yes
1717 DEFAULT_wxUSE_IMAGLIST=yes
1718 DEFAULT_wxUSE_LISTBOX=yes
1719 DEFAULT_wxUSE_LISTCTRL=yes
1720 DEFAULT_wxUSE_NOTEBOOK=yes
1721 DEFAULT_wxUSE_RADIOBOX=yes
1722 DEFAULT_wxUSE_RADIOBTN=yes
1723 DEFAULT_wxUSE_SASH=yes
1724 DEFAULT_wxUSE_SCROLLBAR=yes
1725 DEFAULT_wxUSE_SLIDER=yes
1726 DEFAULT_wxUSE_SPINBTN=yes
1727 DEFAULT_wxUSE_SPINCTRL=yes
1728 DEFAULT_wxUSE_SPLITTER=yes
1729 DEFAULT_wxUSE_STATBMP=yes
1730 DEFAULT_wxUSE_STATBOX=yes
1731 DEFAULT_wxUSE_STATLINE=yes
1732 DEFAULT_wxUSE_STATTEXT=yes
1733 DEFAULT_wxUSE_STATUSBAR=yes
1734 DEFAULT_wxUSE_TABDIALOG=no
1735 DEFAULT_wxUSE_TEXTCTRL=yes
1736 DEFAULT_wxUSE_TOGGLEBTN=yes
1737 DEFAULT_wxUSE_TOOLBAR=yes
1738 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1739 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1740 DEFAULT_wxUSE_TREECTRL=yes
1741 DEFAULT_wxUSE_POPUPWIN=yes
1742 DEFAULT_wxUSE_TIPWINDOW=yes
1743
1744 DEFAULT_wxUSE_UNICODE=no
1745 DEFAULT_wxUSE_UNICODE_MSLU=yes
1746 DEFAULT_wxUSE_WCSRTOMBS=no
1747
1748 DEFAULT_wxUSE_PALETTE=yes
1749 DEFAULT_wxUSE_IMAGE=yes
1750 DEFAULT_wxUSE_GIF=yes
1751 DEFAULT_wxUSE_PCX=yes
1752 DEFAULT_wxUSE_IFF=no
1753 DEFAULT_wxUSE_PNM=yes
1754 DEFAULT_wxUSE_XPM=yes
1755 DEFAULT_wxUSE_ICO_CUR=yes
1756 fi
1757
1758
1759
1760 for toolkit in `echo $ALL_TOOLKITS`; do
1761 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1762 if test "x$LINE" != "x" ; then
1763 has_toolkit_in_cache=1
1764 eval "DEFAULT_$LINE"
1765 eval "CACHE_$toolkit=1"
1766 fi
1767 done
1768
1769
1770
1771 enablestring=
1772 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1773 echo "configure:1774: checking for --${enablestring:-enable}-gui" >&5
1774 no_cache=0
1775 # Check whether --enable-gui or --disable-gui was given.
1776 if test "${enable_gui+set}" = set; then
1777 enableval="$enable_gui"
1778
1779 if test "$enableval" = yes; then
1780 ac_cv_use_gui='wxUSE_GUI=yes'
1781 else
1782 ac_cv_use_gui='wxUSE_GUI=no'
1783 fi
1784
1785 else
1786
1787 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1788 if test "x$LINE" != x ; then
1789 eval "DEFAULT_$LINE"
1790 else
1791 no_cache=1
1792 fi
1793
1794 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1795
1796 fi
1797
1798
1799 eval "$ac_cv_use_gui"
1800 if test "$no_cache" != 1; then
1801 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1802 fi
1803
1804 if test "$wxUSE_GUI" = yes; then
1805 echo "$ac_t""yes" 1>&6
1806 else
1807 echo "$ac_t""no" 1>&6
1808 fi
1809
1810
1811 if test "$wxUSE_GUI" = "yes"; then
1812
1813
1814 enablestring=
1815 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1816 echo "configure:1817: checking for --${enablestring:-enable}-universal" >&5
1817 no_cache=0
1818 # Check whether --enable-universal or --disable-universal was given.
1819 if test "${enable_universal+set}" = set; then
1820 enableval="$enable_universal"
1821
1822 if test "$enableval" = yes; then
1823 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1824 else
1825 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1826 fi
1827
1828 else
1829
1830 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1831 if test "x$LINE" != x ; then
1832 eval "DEFAULT_$LINE"
1833 else
1834 no_cache=1
1835 fi
1836
1837 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1838
1839 fi
1840
1841
1842 eval "$ac_cv_use_universal"
1843 if test "$no_cache" != 1; then
1844 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1845 fi
1846
1847 if test "$wxUSE_UNIVERSAL" = yes; then
1848 echo "$ac_t""yes" 1>&6
1849 else
1850 echo "$ac_t""no" 1>&6
1851 fi
1852
1853 # Check whether --with-gtk or --without-gtk was given.
1854 if test "${with_gtk+set}" = set; then
1855 withval="$with_gtk"
1856 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1857 fi
1858
1859 # Check whether --with-motif or --without-motif was given.
1860 if test "${with_motif+set}" = set; then
1861 withval="$with_motif"
1862 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1863 fi
1864
1865 # Check whether --with-mac or --without-mac was given.
1866 if test "${with_mac+set}" = set; then
1867 withval="$with_mac"
1868 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1869 fi
1870
1871 # Check whether --with-cocoa or --without-cocoa was given.
1872 if test "${with_cocoa+set}" = set; then
1873 withval="$with_cocoa"
1874 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1875 fi
1876
1877 # Check whether --with-wine or --without-wine was given.
1878 if test "${with_wine+set}" = set; then
1879 withval="$with_wine"
1880 wxUSE_WINE="$withval" CACHE_WINE=1
1881 fi
1882
1883 # Check whether --with-msw or --without-msw was given.
1884 if test "${with_msw+set}" = set; then
1885 withval="$with_msw"
1886 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1887 fi
1888
1889 # Check whether --with-pm or --without-pm was given.
1890 if test "${with_pm+set}" = set; then
1891 withval="$with_pm"
1892 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1893 fi
1894
1895 # Check whether --with-mgl or --without-mgl was given.
1896 if test "${with_mgl+set}" = set; then
1897 withval="$with_mgl"
1898 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1899 fi
1900
1901 # Check whether --with-microwin or --without-microwin was given.
1902 if test "${with_microwin+set}" = set; then
1903 withval="$with_microwin"
1904 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1905 fi
1906
1907 # Check whether --with-x11 or --without-x11 was given.
1908 if test "${with_x11+set}" = set; then
1909 withval="$with_x11"
1910 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1911 fi
1912
1913
1914 enablestring=
1915 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1916 echo "configure:1917: checking for --${enablestring:-enable}-nanox" >&5
1917 no_cache=0
1918 # Check whether --enable-nanox or --disable-nanox was given.
1919 if test "${enable_nanox+set}" = set; then
1920 enableval="$enable_nanox"
1921
1922 if test "$enableval" = yes; then
1923 ac_cv_use_nanox='wxUSE_NANOX=yes'
1924 else
1925 ac_cv_use_nanox='wxUSE_NANOX=no'
1926 fi
1927
1928 else
1929
1930 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1931 if test "x$LINE" != x ; then
1932 eval "DEFAULT_$LINE"
1933 else
1934 no_cache=1
1935 fi
1936
1937 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1938
1939 fi
1940
1941
1942 eval "$ac_cv_use_nanox"
1943 if test "$no_cache" != 1; then
1944 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1945 fi
1946
1947 if test "$wxUSE_NANOX" = yes; then
1948 echo "$ac_t""yes" 1>&6
1949 else
1950 echo "$ac_t""no" 1>&6
1951 fi
1952
1953
1954
1955 enablestring=
1956 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1957 echo "configure:1958: checking for --${enablestring:-enable}-gtk2" >&5
1958 no_cache=0
1959 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1960 if test "${enable_gtk2+set}" = set; then
1961 enableval="$enable_gtk2"
1962
1963 if test "$enableval" = yes; then
1964 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1965 else
1966 ac_cv_use_gtk2='wxUSE_GTK2=no'
1967 fi
1968
1969 else
1970
1971 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1972 if test "x$LINE" != x ; then
1973 eval "DEFAULT_$LINE"
1974 else
1975 no_cache=1
1976 fi
1977
1978 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1979
1980 fi
1981
1982
1983 eval "$ac_cv_use_gtk2"
1984 if test "$no_cache" != 1; then
1985 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1986 fi
1987
1988 if test "$wxUSE_GTK2" = yes; then
1989 echo "$ac_t""yes" 1>&6
1990 else
1991 echo "$ac_t""no" 1>&6
1992 fi
1993
1994
1995
1996 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1997 echo "configure:1998: checking for --with-libpng" >&5
1998 no_cache=0
1999 # Check whether --with-libpng or --without-libpng was given.
2000 if test "${with_libpng+set}" = set; then
2001 withval="$with_libpng"
2002
2003 if test "$withval" = yes; then
2004 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2005 elif test "$withval" = no; then
2006 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2007 elif test "$withval" = sys; then
2008 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2009 elif test "$withval" = builtin; then
2010 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2011 else
2012 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2013 fi
2014
2015 else
2016
2017 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2018 if test "x$LINE" != x ; then
2019 eval "DEFAULT_$LINE"
2020 else
2021 no_cache=1
2022 fi
2023
2024 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2025
2026 fi
2027
2028
2029 eval "$ac_cv_use_libpng"
2030 if test "$no_cache" != 1; then
2031 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2032 fi
2033
2034 if test "$wxUSE_LIBPNG" = yes; then
2035 echo "$ac_t""yes" 1>&6
2036 elif test "$wxUSE_LIBPNG" = no; then
2037 echo "$ac_t""no" 1>&6
2038 elif test "$wxUSE_LIBPNG" = sys; then
2039 echo "$ac_t""system version" 1>&6
2040 elif test "$wxUSE_LIBPNG" = builtin; then
2041 echo "$ac_t""builtin version" 1>&6
2042 else
2043 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2044 fi
2045
2046
2047 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2048 echo "configure:2049: checking for --with-libjpeg" >&5
2049 no_cache=0
2050 # Check whether --with-libjpeg or --without-libjpeg was given.
2051 if test "${with_libjpeg+set}" = set; then
2052 withval="$with_libjpeg"
2053
2054 if test "$withval" = yes; then
2055 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2056 elif test "$withval" = no; then
2057 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2058 elif test "$withval" = sys; then
2059 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2060 elif test "$withval" = builtin; then
2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2062 else
2063 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2064 fi
2065
2066 else
2067
2068 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2069 if test "x$LINE" != x ; then
2070 eval "DEFAULT_$LINE"
2071 else
2072 no_cache=1
2073 fi
2074
2075 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2076
2077 fi
2078
2079
2080 eval "$ac_cv_use_libjpeg"
2081 if test "$no_cache" != 1; then
2082 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2083 fi
2084
2085 if test "$wxUSE_LIBJPEG" = yes; then
2086 echo "$ac_t""yes" 1>&6
2087 elif test "$wxUSE_LIBJPEG" = no; then
2088 echo "$ac_t""no" 1>&6
2089 elif test "$wxUSE_LIBJPEG" = sys; then
2090 echo "$ac_t""system version" 1>&6
2091 elif test "$wxUSE_LIBJPEG" = builtin; then
2092 echo "$ac_t""builtin version" 1>&6
2093 else
2094 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2095 fi
2096
2097
2098 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2099 echo "configure:2100: checking for --with-libtiff" >&5
2100 no_cache=0
2101 # Check whether --with-libtiff or --without-libtiff was given.
2102 if test "${with_libtiff+set}" = set; then
2103 withval="$with_libtiff"
2104
2105 if test "$withval" = yes; then
2106 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2107 elif test "$withval" = no; then
2108 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2109 elif test "$withval" = sys; then
2110 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2111 elif test "$withval" = builtin; then
2112 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2113 else
2114 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2115 fi
2116
2117 else
2118
2119 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2120 if test "x$LINE" != x ; then
2121 eval "DEFAULT_$LINE"
2122 else
2123 no_cache=1
2124 fi
2125
2126 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2127
2128 fi
2129
2130
2131 eval "$ac_cv_use_libtiff"
2132 if test "$no_cache" != 1; then
2133 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2134 fi
2135
2136 if test "$wxUSE_LIBTIFF" = yes; then
2137 echo "$ac_t""yes" 1>&6
2138 elif test "$wxUSE_LIBTIFF" = no; then
2139 echo "$ac_t""no" 1>&6
2140 elif test "$wxUSE_LIBTIFF" = sys; then
2141 echo "$ac_t""system version" 1>&6
2142 elif test "$wxUSE_LIBTIFF" = builtin; then
2143 echo "$ac_t""builtin version" 1>&6
2144 else
2145 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2146 fi
2147
2148
2149 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2150 echo "configure:2151: checking for --with-opengl" >&5
2151 no_cache=0
2152 # Check whether --with-opengl or --without-opengl was given.
2153 if test "${with_opengl+set}" = set; then
2154 withval="$with_opengl"
2155
2156 if test "$withval" = yes; then
2157 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2158 else
2159 ac_cv_use_opengl='wxUSE_OPENGL=no'
2160 fi
2161
2162 else
2163
2164 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2165 if test "x$LINE" != x ; then
2166 eval "DEFAULT_$LINE"
2167 else
2168 no_cache=1
2169 fi
2170
2171 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2172
2173 fi
2174
2175
2176 eval "$ac_cv_use_opengl"
2177 if test "$no_cache" != 1; then
2178 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2179 fi
2180
2181 if test "$wxUSE_OPENGL" = yes; then
2182 echo "$ac_t""yes" 1>&6
2183 else
2184 echo "$ac_t""no" 1>&6
2185 fi
2186
2187
2188 fi
2189
2190
2191 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2192 echo "configure:2193: checking for --with-dmalloc" >&5
2193 no_cache=0
2194 # Check whether --with-dmalloc or --without-dmalloc was given.
2195 if test "${with_dmalloc+set}" = set; then
2196 withval="$with_dmalloc"
2197
2198 if test "$withval" = yes; then
2199 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2200 else
2201 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2202 fi
2203
2204 else
2205
2206 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2207 if test "x$LINE" != x ; then
2208 eval "DEFAULT_$LINE"
2209 else
2210 no_cache=1
2211 fi
2212
2213 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2214
2215 fi
2216
2217
2218 eval "$ac_cv_use_dmalloc"
2219 if test "$no_cache" != 1; then
2220 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2221 fi
2222
2223 if test "$wxUSE_DMALLOC" = yes; then
2224 echo "$ac_t""yes" 1>&6
2225 else
2226 echo "$ac_t""no" 1>&6
2227 fi
2228
2229
2230 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2231 echo "configure:2232: checking for --with-regex" >&5
2232 no_cache=0
2233 # Check whether --with-regex or --without-regex was given.
2234 if test "${with_regex+set}" = set; then
2235 withval="$with_regex"
2236
2237 if test "$withval" = yes; then
2238 ac_cv_use_regex='wxUSE_REGEX=yes'
2239 elif test "$withval" = no; then
2240 ac_cv_use_regex='wxUSE_REGEX=no'
2241 elif test "$withval" = sys; then
2242 ac_cv_use_regex='wxUSE_REGEX=sys'
2243 elif test "$withval" = builtin; then
2244 ac_cv_use_regex='wxUSE_REGEX=builtin'
2245 else
2246 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2247 fi
2248
2249 else
2250
2251 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2252 if test "x$LINE" != x ; then
2253 eval "DEFAULT_$LINE"
2254 else
2255 no_cache=1
2256 fi
2257
2258 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2259
2260 fi
2261
2262
2263 eval "$ac_cv_use_regex"
2264 if test "$no_cache" != 1; then
2265 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2266 fi
2267
2268 if test "$wxUSE_REGEX" = yes; then
2269 echo "$ac_t""yes" 1>&6
2270 elif test "$wxUSE_REGEX" = no; then
2271 echo "$ac_t""no" 1>&6
2272 elif test "$wxUSE_REGEX" = sys; then
2273 echo "$ac_t""system version" 1>&6
2274 elif test "$wxUSE_REGEX" = builtin; then
2275 echo "$ac_t""builtin version" 1>&6
2276 else
2277 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2278 fi
2279
2280
2281 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2282 echo "configure:2283: checking for --with-zlib" >&5
2283 no_cache=0
2284 # Check whether --with-zlib or --without-zlib was given.
2285 if test "${with_zlib+set}" = set; then
2286 withval="$with_zlib"
2287
2288 if test "$withval" = yes; then
2289 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2290 elif test "$withval" = no; then
2291 ac_cv_use_zlib='wxUSE_ZLIB=no'
2292 elif test "$withval" = sys; then
2293 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2294 elif test "$withval" = builtin; then
2295 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2296 else
2297 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2298 fi
2299
2300 else
2301
2302 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2303 if test "x$LINE" != x ; then
2304 eval "DEFAULT_$LINE"
2305 else
2306 no_cache=1
2307 fi
2308
2309 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2310
2311 fi
2312
2313
2314 eval "$ac_cv_use_zlib"
2315 if test "$no_cache" != 1; then
2316 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2317 fi
2318
2319 if test "$wxUSE_ZLIB" = yes; then
2320 echo "$ac_t""yes" 1>&6
2321 elif test "$wxUSE_ZLIB" = no; then
2322 echo "$ac_t""no" 1>&6
2323 elif test "$wxUSE_ZLIB" = sys; then
2324 echo "$ac_t""system version" 1>&6
2325 elif test "$wxUSE_ZLIB" = builtin; then
2326 echo "$ac_t""builtin version" 1>&6
2327 else
2328 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2329 fi
2330
2331
2332 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2333 echo "configure:2334: checking for --with-odbc" >&5
2334 no_cache=0
2335 # Check whether --with-odbc or --without-odbc was given.
2336 if test "${with_odbc+set}" = set; then
2337 withval="$with_odbc"
2338
2339 if test "$withval" = yes; then
2340 ac_cv_use_odbc='wxUSE_ODBC=yes'
2341 else
2342 ac_cv_use_odbc='wxUSE_ODBC=no'
2343 fi
2344
2345 else
2346
2347 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2348 if test "x$LINE" != x ; then
2349 eval "DEFAULT_$LINE"
2350 else
2351 no_cache=1
2352 fi
2353
2354 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2355
2356 fi
2357
2358
2359 eval "$ac_cv_use_odbc"
2360 if test "$no_cache" != 1; then
2361 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2362 fi
2363
2364 if test "$wxUSE_ODBC" = yes; then
2365 echo "$ac_t""yes" 1>&6
2366 else
2367 echo "$ac_t""no" 1>&6
2368 fi
2369
2370
2371
2372
2373 enablestring=
2374 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2375 echo "configure:2376: checking for --${enablestring:-enable}-shared" >&5
2376 no_cache=0
2377 # Check whether --enable-shared or --disable-shared was given.
2378 if test "${enable_shared+set}" = set; then
2379 enableval="$enable_shared"
2380
2381 if test "$enableval" = yes; then
2382 ac_cv_use_shared='wxUSE_SHARED=yes'
2383 else
2384 ac_cv_use_shared='wxUSE_SHARED=no'
2385 fi
2386
2387 else
2388
2389 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2390 if test "x$LINE" != x ; then
2391 eval "DEFAULT_$LINE"
2392 else
2393 no_cache=1
2394 fi
2395
2396 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2397
2398 fi
2399
2400
2401 eval "$ac_cv_use_shared"
2402 if test "$no_cache" != 1; then
2403 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2404 fi
2405
2406 if test "$wxUSE_SHARED" = yes; then
2407 echo "$ac_t""yes" 1>&6
2408 else
2409 echo "$ac_t""no" 1>&6
2410 fi
2411
2412
2413 enablestring=
2414 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2415 echo "configure:2416: checking for --${enablestring:-enable}-soname" >&5
2416 no_cache=0
2417 # Check whether --enable-soname or --disable-soname was given.
2418 if test "${enable_soname+set}" = set; then
2419 enableval="$enable_soname"
2420
2421 if test "$enableval" = yes; then
2422 ac_cv_use_soname='wxUSE_SONAME=yes'
2423 else
2424 ac_cv_use_soname='wxUSE_SONAME=no'
2425 fi
2426
2427 else
2428
2429 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2430 if test "x$LINE" != x ; then
2431 eval "DEFAULT_$LINE"
2432 else
2433 no_cache=1
2434 fi
2435
2436 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2437
2438 fi
2439
2440
2441 eval "$ac_cv_use_soname"
2442 if test "$no_cache" != 1; then
2443 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2444 fi
2445
2446 if test "$wxUSE_SONAME" = yes; then
2447 echo "$ac_t""yes" 1>&6
2448 else
2449 echo "$ac_t""no" 1>&6
2450 fi
2451
2452
2453 enablestring=
2454 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2455 echo "configure:2456: checking for --${enablestring:-enable}-optimise" >&5
2456 no_cache=0
2457 # Check whether --enable-optimise or --disable-optimise was given.
2458 if test "${enable_optimise+set}" = set; then
2459 enableval="$enable_optimise"
2460
2461 if test "$enableval" = yes; then
2462 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2463 else
2464 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2465 fi
2466
2467 else
2468
2469 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2470 if test "x$LINE" != x ; then
2471 eval "DEFAULT_$LINE"
2472 else
2473 no_cache=1
2474 fi
2475
2476 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2477
2478 fi
2479
2480
2481 eval "$ac_cv_use_optimise"
2482 if test "$no_cache" != 1; then
2483 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2484 fi
2485
2486 if test "$wxUSE_OPTIMISE" = yes; then
2487 echo "$ac_t""yes" 1>&6
2488 else
2489 echo "$ac_t""no" 1>&6
2490 fi
2491
2492
2493 enablestring=
2494 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2495 echo "configure:2496: checking for --${enablestring:-enable}-debug" >&5
2496 no_cache=0
2497 # Check whether --enable-debug or --disable-debug was given.
2498 if test "${enable_debug+set}" = set; then
2499 enableval="$enable_debug"
2500
2501 if test "$enableval" = yes; then
2502 ac_cv_use_debug='wxUSE_DEBUG=yes'
2503 else
2504 ac_cv_use_debug='wxUSE_DEBUG=no'
2505 fi
2506
2507 else
2508
2509 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2510 if test "x$LINE" != x ; then
2511 eval "DEFAULT_$LINE"
2512 else
2513 no_cache=1
2514 fi
2515
2516 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2517
2518 fi
2519
2520
2521 eval "$ac_cv_use_debug"
2522 if test "$no_cache" != 1; then
2523 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2524 fi
2525
2526 if test "$wxUSE_DEBUG" = yes; then
2527 echo "$ac_t""yes" 1>&6
2528 else
2529 echo "$ac_t""no" 1>&6
2530 fi
2531
2532
2533
2534 enablestring=
2535 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2536 echo "configure:2537: checking for --${enablestring:-enable}-precomp" >&5
2537 no_cache=0
2538 # Check whether --enable-precomp or --disable-precomp was given.
2539 if test "${enable_precomp+set}" = set; then
2540 enableval="$enable_precomp"
2541
2542 if test "$enableval" = yes; then
2543 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2544 else
2545 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2546 fi
2547
2548 else
2549
2550 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2551 if test "x$LINE" != x ; then
2552 eval "DEFAULT_$LINE"
2553 else
2554 no_cache=1
2555 fi
2556
2557 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2558
2559 fi
2560
2561
2562 eval "$ac_cv_use_precomp"
2563 if test "$no_cache" != 1; then
2564 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2565 fi
2566
2567 if test "$wxUSE_PRECOMP" = yes; then
2568 echo "$ac_t""yes" 1>&6
2569 else
2570 echo "$ac_t""no" 1>&6
2571 fi
2572
2573
2574 if test "$wxUSE_DEBUG" = "yes"; then
2575 DEFAULT_wxUSE_DEBUG_FLAG=yes
2576 DEFAULT_wxUSE_DEBUG_INFO=yes
2577 elif test "$wxUSE_DEBUG" = "no"; then
2578 DEFAULT_wxUSE_DEBUG_FLAG=no
2579 DEFAULT_wxUSE_DEBUG_INFO=no
2580 fi
2581
2582
2583 enablestring=
2584 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2585 echo "configure:2586: checking for --${enablestring:-enable}-debug_flag" >&5
2586 no_cache=0
2587 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2588 if test "${enable_debug_flag+set}" = set; then
2589 enableval="$enable_debug_flag"
2590
2591 if test "$enableval" = yes; then
2592 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2593 else
2594 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2595 fi
2596
2597 else
2598
2599 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2600 if test "x$LINE" != x ; then
2601 eval "DEFAULT_$LINE"
2602 else
2603 no_cache=1
2604 fi
2605
2606 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2607
2608 fi
2609
2610
2611 eval "$ac_cv_use_debug_flag"
2612 if test "$no_cache" != 1; then
2613 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2614 fi
2615
2616 if test "$wxUSE_DEBUG_FLAG" = yes; then
2617 echo "$ac_t""yes" 1>&6
2618 else
2619 echo "$ac_t""no" 1>&6
2620 fi
2621
2622
2623 enablestring=
2624 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2625 echo "configure:2626: checking for --${enablestring:-enable}-debug_info" >&5
2626 no_cache=0
2627 # Check whether --enable-debug_info or --disable-debug_info was given.
2628 if test "${enable_debug_info+set}" = set; then
2629 enableval="$enable_debug_info"
2630
2631 if test "$enableval" = yes; then
2632 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2633 else
2634 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2635 fi
2636
2637 else
2638
2639 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2640 if test "x$LINE" != x ; then
2641 eval "DEFAULT_$LINE"
2642 else
2643 no_cache=1
2644 fi
2645
2646 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2647
2648 fi
2649
2650
2651 eval "$ac_cv_use_debug_info"
2652 if test "$no_cache" != 1; then
2653 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2654 fi
2655
2656 if test "$wxUSE_DEBUG_INFO" = yes; then
2657 echo "$ac_t""yes" 1>&6
2658 else
2659 echo "$ac_t""no" 1>&6
2660 fi
2661
2662
2663 enablestring=
2664 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2665 echo "configure:2666: checking for --${enablestring:-enable}-debug_gdb" >&5
2666 no_cache=0
2667 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2668 if test "${enable_debug_gdb+set}" = set; then
2669 enableval="$enable_debug_gdb"
2670
2671 if test "$enableval" = yes; then
2672 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2673 else
2674 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2675 fi
2676
2677 else
2678
2679 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2680 if test "x$LINE" != x ; then
2681 eval "DEFAULT_$LINE"
2682 else
2683 no_cache=1
2684 fi
2685
2686 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2687
2688 fi
2689
2690
2691 eval "$ac_cv_use_debug_gdb"
2692 if test "$no_cache" != 1; then
2693 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2694 fi
2695
2696 if test "$wxUSE_DEBUG_GDB" = yes; then
2697 echo "$ac_t""yes" 1>&6
2698 else
2699 echo "$ac_t""no" 1>&6
2700 fi
2701
2702
2703 enablestring=
2704 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2705 echo "configure:2706: checking for --${enablestring:-enable}-debug_cntxt" >&5
2706 no_cache=0
2707 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2708 if test "${enable_debug_cntxt+set}" = set; then
2709 enableval="$enable_debug_cntxt"
2710
2711 if test "$enableval" = yes; then
2712 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2713 else
2714 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2715 fi
2716
2717 else
2718
2719 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2720 if test "x$LINE" != x ; then
2721 eval "DEFAULT_$LINE"
2722 else
2723 no_cache=1
2724 fi
2725
2726 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2727
2728 fi
2729
2730
2731 eval "$ac_cv_use_debug_cntxt"
2732 if test "$no_cache" != 1; then
2733 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2734 fi
2735
2736 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2737 echo "$ac_t""yes" 1>&6
2738 else
2739 echo "$ac_t""no" 1>&6
2740 fi
2741
2742
2743 enablestring=
2744 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2745 echo "configure:2746: checking for --${enablestring:-enable}-mem_tracing" >&5
2746 no_cache=0
2747 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2748 if test "${enable_mem_tracing+set}" = set; then
2749 enableval="$enable_mem_tracing"
2750
2751 if test "$enableval" = yes; then
2752 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2753 else
2754 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2755 fi
2756
2757 else
2758
2759 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2760 if test "x$LINE" != x ; then
2761 eval "DEFAULT_$LINE"
2762 else
2763 no_cache=1
2764 fi
2765
2766 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2767
2768 fi
2769
2770
2771 eval "$ac_cv_use_mem_tracing"
2772 if test "$no_cache" != 1; then
2773 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2774 fi
2775
2776 if test "$wxUSE_MEM_TRACING" = yes; then
2777 echo "$ac_t""yes" 1>&6
2778 else
2779 echo "$ac_t""no" 1>&6
2780 fi
2781
2782
2783 enablestring=
2784 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2785 echo "configure:2786: checking for --${enablestring:-enable}-profile" >&5
2786 no_cache=0
2787 # Check whether --enable-profile or --disable-profile was given.
2788 if test "${enable_profile+set}" = set; then
2789 enableval="$enable_profile"
2790
2791 if test "$enableval" = yes; then
2792 ac_cv_use_profile='wxUSE_PROFILE=yes'
2793 else
2794 ac_cv_use_profile='wxUSE_PROFILE=no'
2795 fi
2796
2797 else
2798
2799 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2800 if test "x$LINE" != x ; then
2801 eval "DEFAULT_$LINE"
2802 else
2803 no_cache=1
2804 fi
2805
2806 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2807
2808 fi
2809
2810
2811 eval "$ac_cv_use_profile"
2812 if test "$no_cache" != 1; then
2813 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2814 fi
2815
2816 if test "$wxUSE_PROFILE" = yes; then
2817 echo "$ac_t""yes" 1>&6
2818 else
2819 echo "$ac_t""no" 1>&6
2820 fi
2821
2822
2823 enablestring=
2824 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2825 echo "configure:2826: checking for --${enablestring:-enable}-no_rtti" >&5
2826 no_cache=0
2827 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2828 if test "${enable_no_rtti+set}" = set; then
2829 enableval="$enable_no_rtti"
2830
2831 if test "$enableval" = yes; then
2832 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2833 else
2834 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2835 fi
2836
2837 else
2838
2839 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2840 if test "x$LINE" != x ; then
2841 eval "DEFAULT_$LINE"
2842 else
2843 no_cache=1
2844 fi
2845
2846 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2847
2848 fi
2849
2850
2851 eval "$ac_cv_use_no_rtti"
2852 if test "$no_cache" != 1; then
2853 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2854 fi
2855
2856 if test "$wxUSE_NO_RTTI" = yes; then
2857 echo "$ac_t""yes" 1>&6
2858 else
2859 echo "$ac_t""no" 1>&6
2860 fi
2861
2862
2863 enablestring=
2864 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2865 echo "configure:2866: checking for --${enablestring:-enable}-no_exceptions" >&5
2866 no_cache=0
2867 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2868 if test "${enable_no_exceptions+set}" = set; then
2869 enableval="$enable_no_exceptions"
2870
2871 if test "$enableval" = yes; then
2872 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2873 else
2874 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2875 fi
2876
2877 else
2878
2879 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2880 if test "x$LINE" != x ; then
2881 eval "DEFAULT_$LINE"
2882 else
2883 no_cache=1
2884 fi
2885
2886 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2887
2888 fi
2889
2890
2891 eval "$ac_cv_use_no_exceptions"
2892 if test "$no_cache" != 1; then
2893 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2894 fi
2895
2896 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2897 echo "$ac_t""yes" 1>&6
2898 else
2899 echo "$ac_t""no" 1>&6
2900 fi
2901
2902
2903 enablestring=
2904 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2905 echo "configure:2906: checking for --${enablestring:-enable}-permissive" >&5
2906 no_cache=0
2907 # Check whether --enable-permissive or --disable-permissive was given.
2908 if test "${enable_permissive+set}" = set; then
2909 enableval="$enable_permissive"
2910
2911 if test "$enableval" = yes; then
2912 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2913 else
2914 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2915 fi
2916
2917 else
2918
2919 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2920 if test "x$LINE" != x ; then
2921 eval "DEFAULT_$LINE"
2922 else
2923 no_cache=1
2924 fi
2925
2926 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2927
2928 fi
2929
2930
2931 eval "$ac_cv_use_permissive"
2932 if test "$no_cache" != 1; then
2933 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2934 fi
2935
2936 if test "$wxUSE_PERMISSIVE" = yes; then
2937 echo "$ac_t""yes" 1>&6
2938 else
2939 echo "$ac_t""no" 1>&6
2940 fi
2941
2942
2943 enablestring=
2944 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2945 echo "configure:2946: checking for --${enablestring:-enable}-no_deps" >&5
2946 no_cache=0
2947 # Check whether --enable-no_deps or --disable-no_deps was given.
2948 if test "${enable_no_deps+set}" = set; then
2949 enableval="$enable_no_deps"
2950
2951 if test "$enableval" = yes; then
2952 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2953 else
2954 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2955 fi
2956
2957 else
2958
2959 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2960 if test "x$LINE" != x ; then
2961 eval "DEFAULT_$LINE"
2962 else
2963 no_cache=1
2964 fi
2965
2966 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2967
2968 fi
2969
2970
2971 eval "$ac_cv_use_no_deps"
2972 if test "$no_cache" != 1; then
2973 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2974 fi
2975
2976 if test "$wxUSE_NO_DEPS" = yes; then
2977 echo "$ac_t""yes" 1>&6
2978 else
2979 echo "$ac_t""no" 1>&6
2980 fi
2981
2982
2983
2984 enablestring=
2985 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2986 echo "configure:2987: checking for --${enablestring:-enable}-compat20" >&5
2987 no_cache=0
2988 # Check whether --enable-compat20 or --disable-compat20 was given.
2989 if test "${enable_compat20+set}" = set; then
2990 enableval="$enable_compat20"
2991
2992 if test "$enableval" = yes; then
2993 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2994 else
2995 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2996 fi
2997
2998 else
2999
3000 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3001 if test "x$LINE" != x ; then
3002 eval "DEFAULT_$LINE"
3003 else
3004 no_cache=1
3005 fi
3006
3007 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3008
3009 fi
3010
3011
3012 eval "$ac_cv_use_compat20"
3013 if test "$no_cache" != 1; then
3014 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3015 fi
3016
3017 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3018 echo "$ac_t""yes" 1>&6
3019 else
3020 echo "$ac_t""no" 1>&6
3021 fi
3022
3023
3024 enablestring=
3025 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3026 echo "configure:3027: checking for --${enablestring:-enable}-compat22" >&5
3027 no_cache=0
3028 # Check whether --enable-compat22 or --disable-compat22 was given.
3029 if test "${enable_compat22+set}" = set; then
3030 enableval="$enable_compat22"
3031
3032 if test "$enableval" = yes; then
3033 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3034 else
3035 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3036 fi
3037
3038 else
3039
3040 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3041 if test "x$LINE" != x ; then
3042 eval "DEFAULT_$LINE"
3043 else
3044 no_cache=1
3045 fi
3046
3047 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3048
3049 fi
3050
3051
3052 eval "$ac_cv_use_compat22"
3053 if test "$no_cache" != 1; then
3054 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3055 fi
3056
3057 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3058 echo "$ac_t""yes" 1>&6
3059 else
3060 echo "$ac_t""no" 1>&6
3061 fi
3062
3063
3064 enablestring=disable
3065 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3066 echo "configure:3067: checking for --${enablestring:-enable}-compat24" >&5
3067 no_cache=0
3068 # Check whether --enable-compat24 or --disable-compat24 was given.
3069 if test "${enable_compat24+set}" = set; then
3070 enableval="$enable_compat24"
3071
3072 if test "$enableval" = yes; then
3073 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3074 else
3075 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3076 fi
3077
3078 else
3079
3080 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3081 if test "x$LINE" != x ; then
3082 eval "DEFAULT_$LINE"
3083 else
3084 no_cache=1
3085 fi
3086
3087 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3088
3089 fi
3090
3091
3092 eval "$ac_cv_use_compat24"
3093 if test "$no_cache" != 1; then
3094 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3095 fi
3096
3097 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3098 echo "$ac_t""yes" 1>&6
3099 else
3100 echo "$ac_t""no" 1>&6
3101 fi
3102
3103
3104 # Check whether --enable-rpath or --disable-rpath was given.
3105 if test "${enable_rpath+set}" = set; then
3106 enableval="$enable_rpath"
3107 wxRPATH_DIR="$enableval"
3108 fi
3109
3110
3111 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3112 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3113 fi
3114
3115
3116
3117
3118 enablestring=
3119 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3120 echo "configure:3121: checking for --${enablestring:-enable}-intl" >&5
3121 no_cache=0
3122 # Check whether --enable-intl or --disable-intl was given.
3123 if test "${enable_intl+set}" = set; then
3124 enableval="$enable_intl"
3125
3126 if test "$enableval" = yes; then
3127 ac_cv_use_intl='wxUSE_INTL=yes'
3128 else
3129 ac_cv_use_intl='wxUSE_INTL=no'
3130 fi
3131
3132 else
3133
3134 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3142
3143 fi
3144
3145
3146 eval "$ac_cv_use_intl"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_INTL" = yes; then
3152 echo "$ac_t""yes" 1>&6
3153 else
3154 echo "$ac_t""no" 1>&6
3155 fi
3156
3157
3158 enablestring=
3159 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3160 echo "configure:3161: checking for --${enablestring:-enable}-config" >&5
3161 no_cache=0
3162 # Check whether --enable-config or --disable-config was given.
3163 if test "${enable_config+set}" = set; then
3164 enableval="$enable_config"
3165
3166 if test "$enableval" = yes; then
3167 ac_cv_use_config='wxUSE_CONFIG=yes'
3168 else
3169 ac_cv_use_config='wxUSE_CONFIG=no'
3170 fi
3171
3172 else
3173
3174 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3175 if test "x$LINE" != x ; then
3176 eval "DEFAULT_$LINE"
3177 else
3178 no_cache=1
3179 fi
3180
3181 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3182
3183 fi
3184
3185
3186 eval "$ac_cv_use_config"
3187 if test "$no_cache" != 1; then
3188 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3189 fi
3190
3191 if test "$wxUSE_CONFIG" = yes; then
3192 echo "$ac_t""yes" 1>&6
3193 else
3194 echo "$ac_t""no" 1>&6
3195 fi
3196
3197
3198
3199 enablestring=
3200 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3201 echo "configure:3202: checking for --${enablestring:-enable}-protocols" >&5
3202 no_cache=0
3203 # Check whether --enable-protocols or --disable-protocols was given.
3204 if test "${enable_protocols+set}" = set; then
3205 enableval="$enable_protocols"
3206
3207 if test "$enableval" = yes; then
3208 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3209 else
3210 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3211 fi
3212
3213 else
3214
3215 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3216 if test "x$LINE" != x ; then
3217 eval "DEFAULT_$LINE"
3218 else
3219 no_cache=1
3220 fi
3221
3222 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3223
3224 fi
3225
3226
3227 eval "$ac_cv_use_protocols"
3228 if test "$no_cache" != 1; then
3229 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3230 fi
3231
3232 if test "$wxUSE_PROTOCOL" = yes; then
3233 echo "$ac_t""yes" 1>&6
3234 else
3235 echo "$ac_t""no" 1>&6
3236 fi
3237
3238
3239 enablestring=
3240 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3241 echo "configure:3242: checking for --${enablestring:-enable}-ftp" >&5
3242 no_cache=0
3243 # Check whether --enable-ftp or --disable-ftp was given.
3244 if test "${enable_ftp+set}" = set; then
3245 enableval="$enable_ftp"
3246
3247 if test "$enableval" = yes; then
3248 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3249 else
3250 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3251 fi
3252
3253 else
3254
3255 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3256 if test "x$LINE" != x ; then
3257 eval "DEFAULT_$LINE"
3258 else
3259 no_cache=1
3260 fi
3261
3262 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3263
3264 fi
3265
3266
3267 eval "$ac_cv_use_ftp"
3268 if test "$no_cache" != 1; then
3269 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3270 fi
3271
3272 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3273 echo "$ac_t""yes" 1>&6
3274 else
3275 echo "$ac_t""no" 1>&6
3276 fi
3277
3278
3279 enablestring=
3280 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3281 echo "configure:3282: checking for --${enablestring:-enable}-http" >&5
3282 no_cache=0
3283 # Check whether --enable-http or --disable-http was given.
3284 if test "${enable_http+set}" = set; then
3285 enableval="$enable_http"
3286
3287 if test "$enableval" = yes; then
3288 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3289 else
3290 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3291 fi
3292
3293 else
3294
3295 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3296 if test "x$LINE" != x ; then
3297 eval "DEFAULT_$LINE"
3298 else
3299 no_cache=1
3300 fi
3301
3302 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3303
3304 fi
3305
3306
3307 eval "$ac_cv_use_http"
3308 if test "$no_cache" != 1; then
3309 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3310 fi
3311
3312 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3313 echo "$ac_t""yes" 1>&6
3314 else
3315 echo "$ac_t""no" 1>&6
3316 fi
3317
3318
3319 enablestring=
3320 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3321 echo "configure:3322: checking for --${enablestring:-enable}-fileproto" >&5
3322 no_cache=0
3323 # Check whether --enable-fileproto or --disable-fileproto was given.
3324 if test "${enable_fileproto+set}" = set; then
3325 enableval="$enable_fileproto"
3326
3327 if test "$enableval" = yes; then
3328 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3329 else
3330 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3331 fi
3332
3333 else
3334
3335 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3336 if test "x$LINE" != x ; then
3337 eval "DEFAULT_$LINE"
3338 else
3339 no_cache=1
3340 fi
3341
3342 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3343
3344 fi
3345
3346
3347 eval "$ac_cv_use_fileproto"
3348 if test "$no_cache" != 1; then
3349 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3350 fi
3351
3352 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3353 echo "$ac_t""yes" 1>&6
3354 else
3355 echo "$ac_t""no" 1>&6
3356 fi
3357
3358
3359 enablestring=
3360 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3361 echo "configure:3362: checking for --${enablestring:-enable}-sockets" >&5
3362 no_cache=0
3363 # Check whether --enable-sockets or --disable-sockets was given.
3364 if test "${enable_sockets+set}" = set; then
3365 enableval="$enable_sockets"
3366
3367 if test "$enableval" = yes; then
3368 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3369 else
3370 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3371 fi
3372
3373 else
3374
3375 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3376 if test "x$LINE" != x ; then
3377 eval "DEFAULT_$LINE"
3378 else
3379 no_cache=1
3380 fi
3381
3382 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3383
3384 fi
3385
3386
3387 eval "$ac_cv_use_sockets"
3388 if test "$no_cache" != 1; then
3389 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3390 fi
3391
3392 if test "$wxUSE_SOCKETS" = yes; then
3393 echo "$ac_t""yes" 1>&6
3394 else
3395 echo "$ac_t""no" 1>&6
3396 fi
3397
3398
3399 enablestring=
3400 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3401 echo "configure:3402: checking for --${enablestring:-enable}-ole" >&5
3402 no_cache=0
3403 # Check whether --enable-ole or --disable-ole was given.
3404 if test "${enable_ole+set}" = set; then
3405 enableval="$enable_ole"
3406
3407 if test "$enableval" = yes; then
3408 ac_cv_use_ole='wxUSE_OLE=yes'
3409 else
3410 ac_cv_use_ole='wxUSE_OLE=no'
3411 fi
3412
3413 else
3414
3415 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3416 if test "x$LINE" != x ; then
3417 eval "DEFAULT_$LINE"
3418 else
3419 no_cache=1
3420 fi
3421
3422 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3423
3424 fi
3425
3426
3427 eval "$ac_cv_use_ole"
3428 if test "$no_cache" != 1; then
3429 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3430 fi
3431
3432 if test "$wxUSE_OLE" = yes; then
3433 echo "$ac_t""yes" 1>&6
3434 else
3435 echo "$ac_t""no" 1>&6
3436 fi
3437
3438
3439 enablestring=
3440 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3441 echo "configure:3442: checking for --${enablestring:-enable}-dataobj" >&5
3442 no_cache=0
3443 # Check whether --enable-dataobj or --disable-dataobj was given.
3444 if test "${enable_dataobj+set}" = set; then
3445 enableval="$enable_dataobj"
3446
3447 if test "$enableval" = yes; then
3448 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3449 else
3450 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3451 fi
3452
3453 else
3454
3455 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3456 if test "x$LINE" != x ; then
3457 eval "DEFAULT_$LINE"
3458 else
3459 no_cache=1
3460 fi
3461
3462 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3463
3464 fi
3465
3466
3467 eval "$ac_cv_use_dataobj"
3468 if test "$no_cache" != 1; then
3469 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3470 fi
3471
3472 if test "$wxUSE_DATAOBJ" = yes; then
3473 echo "$ac_t""yes" 1>&6
3474 else
3475 echo "$ac_t""no" 1>&6
3476 fi
3477
3478
3479
3480 enablestring=
3481 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3482 echo "configure:3483: checking for --${enablestring:-enable}-ipc" >&5
3483 no_cache=0
3484 # Check whether --enable-ipc or --disable-ipc was given.
3485 if test "${enable_ipc+set}" = set; then
3486 enableval="$enable_ipc"
3487
3488 if test "$enableval" = yes; then
3489 ac_cv_use_ipc='wxUSE_IPC=yes'
3490 else
3491 ac_cv_use_ipc='wxUSE_IPC=no'
3492 fi
3493
3494 else
3495
3496 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3497 if test "x$LINE" != x ; then
3498 eval "DEFAULT_$LINE"
3499 else
3500 no_cache=1
3501 fi
3502
3503 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3504
3505 fi
3506
3507
3508 eval "$ac_cv_use_ipc"
3509 if test "$no_cache" != 1; then
3510 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3511 fi
3512
3513 if test "$wxUSE_IPC" = yes; then
3514 echo "$ac_t""yes" 1>&6
3515 else
3516 echo "$ac_t""no" 1>&6
3517 fi
3518
3519
3520
3521 enablestring=
3522 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3523 echo "configure:3524: checking for --${enablestring:-enable}-cmdline" >&5
3524 no_cache=0
3525 # Check whether --enable-cmdline or --disable-cmdline was given.
3526 if test "${enable_cmdline+set}" = set; then
3527 enableval="$enable_cmdline"
3528
3529 if test "$enableval" = yes; then
3530 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3531 else
3532 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3533 fi
3534
3535 else
3536
3537 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3538 if test "x$LINE" != x ; then
3539 eval "DEFAULT_$LINE"
3540 else
3541 no_cache=1
3542 fi
3543
3544 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3545
3546 fi
3547
3548
3549 eval "$ac_cv_use_cmdline"
3550 if test "$no_cache" != 1; then
3551 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3552 fi
3553
3554 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3555 echo "$ac_t""yes" 1>&6
3556 else
3557 echo "$ac_t""no" 1>&6
3558 fi
3559
3560
3561 enablestring=
3562 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3563 echo "configure:3564: checking for --${enablestring:-enable}-datetime" >&5
3564 no_cache=0
3565 # Check whether --enable-datetime or --disable-datetime was given.
3566 if test "${enable_datetime+set}" = set; then
3567 enableval="$enable_datetime"
3568
3569 if test "$enableval" = yes; then
3570 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3571 else
3572 ac_cv_use_datetime='wxUSE_DATETIME=no'
3573 fi
3574
3575 else
3576
3577 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3578 if test "x$LINE" != x ; then
3579 eval "DEFAULT_$LINE"
3580 else
3581 no_cache=1
3582 fi
3583
3584 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3585
3586 fi
3587
3588
3589 eval "$ac_cv_use_datetime"
3590 if test "$no_cache" != 1; then
3591 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3592 fi
3593
3594 if test "$wxUSE_DATETIME" = yes; then
3595 echo "$ac_t""yes" 1>&6
3596 else
3597 echo "$ac_t""no" 1>&6
3598 fi
3599
3600
3601 enablestring=
3602 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3603 echo "configure:3604: checking for --${enablestring:-enable}-stopwatch" >&5
3604 no_cache=0
3605 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3606 if test "${enable_stopwatch+set}" = set; then
3607 enableval="$enable_stopwatch"
3608
3609 if test "$enableval" = yes; then
3610 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3611 else
3612 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3613 fi
3614
3615 else
3616
3617 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3618 if test "x$LINE" != x ; then
3619 eval "DEFAULT_$LINE"
3620 else
3621 no_cache=1
3622 fi
3623
3624 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3625
3626 fi
3627
3628
3629 eval "$ac_cv_use_stopwatch"
3630 if test "$no_cache" != 1; then
3631 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3632 fi
3633
3634 if test "$wxUSE_STOPWATCH" = yes; then
3635 echo "$ac_t""yes" 1>&6
3636 else
3637 echo "$ac_t""no" 1>&6
3638 fi
3639
3640
3641 enablestring=
3642 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3643 echo "configure:3644: checking for --${enablestring:-enable}-dialupman" >&5
3644 no_cache=0
3645 # Check whether --enable-dialupman or --disable-dialupman was given.
3646 if test "${enable_dialupman+set}" = set; then
3647 enableval="$enable_dialupman"
3648
3649 if test "$enableval" = yes; then
3650 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3651 else
3652 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3653 fi
3654
3655 else
3656
3657 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3658 if test "x$LINE" != x ; then
3659 eval "DEFAULT_$LINE"
3660 else
3661 no_cache=1
3662 fi
3663
3664 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3665
3666 fi
3667
3668
3669 eval "$ac_cv_use_dialupman"
3670 if test "$no_cache" != 1; then
3671 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3672 fi
3673
3674 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3675 echo "$ac_t""yes" 1>&6
3676 else
3677 echo "$ac_t""no" 1>&6
3678 fi
3679
3680
3681 enablestring=
3682 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3683 echo "configure:3684: checking for --${enablestring:-enable}-apple_ieee" >&5
3684 no_cache=0
3685 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3686 if test "${enable_apple_ieee+set}" = set; then
3687 enableval="$enable_apple_ieee"
3688
3689 if test "$enableval" = yes; then
3690 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3691 else
3692 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3693 fi
3694
3695 else
3696
3697 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3698 if test "x$LINE" != x ; then
3699 eval "DEFAULT_$LINE"
3700 else
3701 no_cache=1
3702 fi
3703
3704 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3705
3706 fi
3707
3708
3709 eval "$ac_cv_use_apple_ieee"
3710 if test "$no_cache" != 1; then
3711 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3712 fi
3713
3714 if test "$wxUSE_APPLE_IEEE" = yes; then
3715 echo "$ac_t""yes" 1>&6
3716 else
3717 echo "$ac_t""no" 1>&6
3718 fi
3719
3720
3721 enablestring=
3722 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3723 echo "configure:3724: checking for --${enablestring:-enable}-timer" >&5
3724 no_cache=0
3725 # Check whether --enable-timer or --disable-timer was given.
3726 if test "${enable_timer+set}" = set; then
3727 enableval="$enable_timer"
3728
3729 if test "$enableval" = yes; then
3730 ac_cv_use_timer='wxUSE_TIMER=yes'
3731 else
3732 ac_cv_use_timer='wxUSE_TIMER=no'
3733 fi
3734
3735 else
3736
3737 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3738 if test "x$LINE" != x ; then
3739 eval "DEFAULT_$LINE"
3740 else
3741 no_cache=1
3742 fi
3743
3744 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3745
3746 fi
3747
3748
3749 eval "$ac_cv_use_timer"
3750 if test "$no_cache" != 1; then
3751 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3752 fi
3753
3754 if test "$wxUSE_TIMER" = yes; then
3755 echo "$ac_t""yes" 1>&6
3756 else
3757 echo "$ac_t""no" 1>&6
3758 fi
3759
3760
3761 enablestring=
3762 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3763 echo "configure:3764: checking for --${enablestring:-enable}-wave" >&5
3764 no_cache=0
3765 # Check whether --enable-wave or --disable-wave was given.
3766 if test "${enable_wave+set}" = set; then
3767 enableval="$enable_wave"
3768
3769 if test "$enableval" = yes; then
3770 ac_cv_use_wave='wxUSE_WAVE=yes'
3771 else
3772 ac_cv_use_wave='wxUSE_WAVE=no'
3773 fi
3774
3775 else
3776
3777 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3778 if test "x$LINE" != x ; then
3779 eval "DEFAULT_$LINE"
3780 else
3781 no_cache=1
3782 fi
3783
3784 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3785
3786 fi
3787
3788
3789 eval "$ac_cv_use_wave"
3790 if test "$no_cache" != 1; then
3791 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3792 fi
3793
3794 if test "$wxUSE_WAVE" = yes; then
3795 echo "$ac_t""yes" 1>&6
3796 else
3797 echo "$ac_t""no" 1>&6
3798 fi
3799
3800
3801 enablestring=
3802 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3803 echo "configure:3804: checking for --${enablestring:-enable}-fraction" >&5
3804 no_cache=0
3805 # Check whether --enable-fraction or --disable-fraction was given.
3806 if test "${enable_fraction+set}" = set; then
3807 enableval="$enable_fraction"
3808
3809 if test "$enableval" = yes; then
3810 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3811 else
3812 ac_cv_use_fraction='wxUSE_FRACTION=no'
3813 fi
3814
3815 else
3816
3817 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3818 if test "x$LINE" != x ; then
3819 eval "DEFAULT_$LINE"
3820 else
3821 no_cache=1
3822 fi
3823
3824 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3825
3826 fi
3827
3828
3829 eval "$ac_cv_use_fraction"
3830 if test "$no_cache" != 1; then
3831 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3832 fi
3833
3834 if test "$wxUSE_FRACTION" = yes; then
3835 echo "$ac_t""yes" 1>&6
3836 else
3837 echo "$ac_t""no" 1>&6
3838 fi
3839
3840
3841 enablestring=
3842 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3843 echo "configure:3844: checking for --${enablestring:-enable}-dynlib" >&5
3844 no_cache=0
3845 # Check whether --enable-dynlib or --disable-dynlib was given.
3846 if test "${enable_dynlib+set}" = set; then
3847 enableval="$enable_dynlib"
3848
3849 if test "$enableval" = yes; then
3850 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3851 else
3852 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3853 fi
3854
3855 else
3856
3857 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3858 if test "x$LINE" != x ; then
3859 eval "DEFAULT_$LINE"
3860 else
3861 no_cache=1
3862 fi
3863
3864 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3865
3866 fi
3867
3868
3869 eval "$ac_cv_use_dynlib"
3870 if test "$no_cache" != 1; then
3871 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3872 fi
3873
3874 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3875 echo "$ac_t""yes" 1>&6
3876 else
3877 echo "$ac_t""no" 1>&6
3878 fi
3879
3880
3881 enablestring=
3882 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3883 echo "configure:3884: checking for --${enablestring:-enable}-dynamicloader" >&5
3884 no_cache=0
3885 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3886 if test "${enable_dynamicloader+set}" = set; then
3887 enableval="$enable_dynamicloader"
3888
3889 if test "$enableval" = yes; then
3890 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3891 else
3892 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3893 fi
3894
3895 else
3896
3897 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3898 if test "x$LINE" != x ; then
3899 eval "DEFAULT_$LINE"
3900 else
3901 no_cache=1
3902 fi
3903
3904 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3905
3906 fi
3907
3908
3909 eval "$ac_cv_use_dynamicloader"
3910 if test "$no_cache" != 1; then
3911 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3912 fi
3913
3914 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3915 echo "$ac_t""yes" 1>&6
3916 else
3917 echo "$ac_t""no" 1>&6
3918 fi
3919
3920
3921 enablestring=
3922 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3923 echo "configure:3924: checking for --${enablestring:-enable}-longlong" >&5
3924 no_cache=0
3925 # Check whether --enable-longlong or --disable-longlong was given.
3926 if test "${enable_longlong+set}" = set; then
3927 enableval="$enable_longlong"
3928
3929 if test "$enableval" = yes; then
3930 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3931 else
3932 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3933 fi
3934
3935 else
3936
3937 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3938 if test "x$LINE" != x ; then
3939 eval "DEFAULT_$LINE"
3940 else
3941 no_cache=1
3942 fi
3943
3944 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3945
3946 fi
3947
3948
3949 eval "$ac_cv_use_longlong"
3950 if test "$no_cache" != 1; then
3951 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3952 fi
3953
3954 if test "$wxUSE_LONGLONG" = yes; then
3955 echo "$ac_t""yes" 1>&6
3956 else
3957 echo "$ac_t""no" 1>&6
3958 fi
3959
3960
3961 enablestring=
3962 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3963 echo "configure:3964: checking for --${enablestring:-enable}-geometry" >&5
3964 no_cache=0
3965 # Check whether --enable-geometry or --disable-geometry was given.
3966 if test "${enable_geometry+set}" = set; then
3967 enableval="$enable_geometry"
3968
3969 if test "$enableval" = yes; then
3970 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3971 else
3972 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3973 fi
3974
3975 else
3976
3977 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3978 if test "x$LINE" != x ; then
3979 eval "DEFAULT_$LINE"
3980 else
3981 no_cache=1
3982 fi
3983
3984 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3985
3986 fi
3987
3988
3989 eval "$ac_cv_use_geometry"
3990 if test "$no_cache" != 1; then
3991 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3992 fi
3993
3994 if test "$wxUSE_GEOMETRY" = yes; then
3995 echo "$ac_t""yes" 1>&6
3996 else
3997 echo "$ac_t""no" 1>&6
3998 fi
3999
4000
4001 enablestring=
4002 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4003 echo "configure:4004: checking for --${enablestring:-enable}-log" >&5
4004 no_cache=0
4005 # Check whether --enable-log or --disable-log was given.
4006 if test "${enable_log+set}" = set; then
4007 enableval="$enable_log"
4008
4009 if test "$enableval" = yes; then
4010 ac_cv_use_log='wxUSE_LOG=yes'
4011 else
4012 ac_cv_use_log='wxUSE_LOG=no'
4013 fi
4014
4015 else
4016
4017 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4018 if test "x$LINE" != x ; then
4019 eval "DEFAULT_$LINE"
4020 else
4021 no_cache=1
4022 fi
4023
4024 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4025
4026 fi
4027
4028
4029 eval "$ac_cv_use_log"
4030 if test "$no_cache" != 1; then
4031 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4032 fi
4033
4034 if test "$wxUSE_LOG" = yes; then
4035 echo "$ac_t""yes" 1>&6
4036 else
4037 echo "$ac_t""no" 1>&6
4038 fi
4039
4040
4041 enablestring=
4042 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4043 echo "configure:4044: checking for --${enablestring:-enable}-streams" >&5
4044 no_cache=0
4045 # Check whether --enable-streams or --disable-streams was given.
4046 if test "${enable_streams+set}" = set; then
4047 enableval="$enable_streams"
4048
4049 if test "$enableval" = yes; then
4050 ac_cv_use_streams='wxUSE_STREAMS=yes'
4051 else
4052 ac_cv_use_streams='wxUSE_STREAMS=no'
4053 fi
4054
4055 else
4056
4057 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4058 if test "x$LINE" != x ; then
4059 eval "DEFAULT_$LINE"
4060 else
4061 no_cache=1
4062 fi
4063
4064 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4065
4066 fi
4067
4068
4069 eval "$ac_cv_use_streams"
4070 if test "$no_cache" != 1; then
4071 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4072 fi
4073
4074 if test "$wxUSE_STREAMS" = yes; then
4075 echo "$ac_t""yes" 1>&6
4076 else
4077 echo "$ac_t""no" 1>&6
4078 fi
4079
4080
4081 enablestring=
4082 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4083 echo "configure:4084: checking for --${enablestring:-enable}-file" >&5
4084 no_cache=0
4085 # Check whether --enable-file or --disable-file was given.
4086 if test "${enable_file+set}" = set; then
4087 enableval="$enable_file"
4088
4089 if test "$enableval" = yes; then
4090 ac_cv_use_file='wxUSE_FILE=yes'
4091 else
4092 ac_cv_use_file='wxUSE_FILE=no'
4093 fi
4094
4095 else
4096
4097 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4098 if test "x$LINE" != x ; then
4099 eval "DEFAULT_$LINE"
4100 else
4101 no_cache=1
4102 fi
4103
4104 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4105
4106 fi
4107
4108
4109 eval "$ac_cv_use_file"
4110 if test "$no_cache" != 1; then
4111 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4112 fi
4113
4114 if test "$wxUSE_FILE" = yes; then
4115 echo "$ac_t""yes" 1>&6
4116 else
4117 echo "$ac_t""no" 1>&6
4118 fi
4119
4120
4121 enablestring=
4122 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4123 echo "configure:4124: checking for --${enablestring:-enable}-ffile" >&5
4124 no_cache=0
4125 # Check whether --enable-ffile or --disable-ffile was given.
4126 if test "${enable_ffile+set}" = set; then
4127 enableval="$enable_ffile"
4128
4129 if test "$enableval" = yes; then
4130 ac_cv_use_ffile='wxUSE_FFILE=yes'
4131 else
4132 ac_cv_use_ffile='wxUSE_FFILE=no'
4133 fi
4134
4135 else
4136
4137 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4138 if test "x$LINE" != x ; then
4139 eval "DEFAULT_$LINE"
4140 else
4141 no_cache=1
4142 fi
4143
4144 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4145
4146 fi
4147
4148
4149 eval "$ac_cv_use_ffile"
4150 if test "$no_cache" != 1; then
4151 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4152 fi
4153
4154 if test "$wxUSE_FFILE" = yes; then
4155 echo "$ac_t""yes" 1>&6
4156 else
4157 echo "$ac_t""no" 1>&6
4158 fi
4159
4160
4161 enablestring=
4162 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4163 echo "configure:4164: checking for --${enablestring:-enable}-textbuf" >&5
4164 no_cache=0
4165 # Check whether --enable-textbuf or --disable-textbuf was given.
4166 if test "${enable_textbuf+set}" = set; then
4167 enableval="$enable_textbuf"
4168
4169 if test "$enableval" = yes; then
4170 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4171 else
4172 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4173 fi
4174
4175 else
4176
4177 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4178 if test "x$LINE" != x ; then
4179 eval "DEFAULT_$LINE"
4180 else
4181 no_cache=1
4182 fi
4183
4184 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4185
4186 fi
4187
4188
4189 eval "$ac_cv_use_textbuf"
4190 if test "$no_cache" != 1; then
4191 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4192 fi
4193
4194 if test "$wxUSE_TEXTBUFFER" = yes; then
4195 echo "$ac_t""yes" 1>&6
4196 else
4197 echo "$ac_t""no" 1>&6
4198 fi
4199
4200
4201 enablestring=
4202 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4203 echo "configure:4204: checking for --${enablestring:-enable}-textfile" >&5
4204 no_cache=0
4205 # Check whether --enable-textfile or --disable-textfile was given.
4206 if test "${enable_textfile+set}" = set; then
4207 enableval="$enable_textfile"
4208
4209 if test "$enableval" = yes; then
4210 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4211 else
4212 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4213 fi
4214
4215 else
4216
4217 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4218 if test "x$LINE" != x ; then
4219 eval "DEFAULT_$LINE"
4220 else
4221 no_cache=1
4222 fi
4223
4224 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4225
4226 fi
4227
4228
4229 eval "$ac_cv_use_textfile"
4230 if test "$no_cache" != 1; then
4231 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4232 fi
4233
4234 if test "$wxUSE_TEXTFILE" = yes; then
4235 echo "$ac_t""yes" 1>&6
4236 else
4237 echo "$ac_t""no" 1>&6
4238 fi
4239
4240
4241 enablestring=
4242 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4243 echo "configure:4244: checking for --${enablestring:-enable}-fontmap" >&5
4244 no_cache=0
4245 # Check whether --enable-fontmap or --disable-fontmap was given.
4246 if test "${enable_fontmap+set}" = set; then
4247 enableval="$enable_fontmap"
4248
4249 if test "$enableval" = yes; then
4250 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4251 else
4252 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4253 fi
4254
4255 else
4256
4257 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4258 if test "x$LINE" != x ; then
4259 eval "DEFAULT_$LINE"
4260 else
4261 no_cache=1
4262 fi
4263
4264 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4265
4266 fi
4267
4268
4269 eval "$ac_cv_use_fontmap"
4270 if test "$no_cache" != 1; then
4271 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4272 fi
4273
4274 if test "$wxUSE_FONTMAP" = yes; then
4275 echo "$ac_t""yes" 1>&6
4276 else
4277 echo "$ac_t""no" 1>&6
4278 fi
4279
4280
4281 enablestring=
4282 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4283 echo "configure:4284: checking for --${enablestring:-enable}-unicode" >&5
4284 no_cache=0
4285 # Check whether --enable-unicode or --disable-unicode was given.
4286 if test "${enable_unicode+set}" = set; then
4287 enableval="$enable_unicode"
4288
4289 if test "$enableval" = yes; then
4290 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4291 else
4292 ac_cv_use_unicode='wxUSE_UNICODE=no'
4293 fi
4294
4295 else
4296
4297 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4298 if test "x$LINE" != x ; then
4299 eval "DEFAULT_$LINE"
4300 else
4301 no_cache=1
4302 fi
4303
4304 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4305
4306 fi
4307
4308
4309 eval "$ac_cv_use_unicode"
4310 if test "$no_cache" != 1; then
4311 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4312 fi
4313
4314 if test "$wxUSE_UNICODE" = yes; then
4315 echo "$ac_t""yes" 1>&6
4316 else
4317 echo "$ac_t""no" 1>&6
4318 fi
4319
4320
4321 enablestring=
4322 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4323 echo "configure:4324: checking for --${enablestring:-enable}-mslu" >&5
4324 no_cache=0
4325 # Check whether --enable-mslu or --disable-mslu was given.
4326 if test "${enable_mslu+set}" = set; then
4327 enableval="$enable_mslu"
4328
4329 if test "$enableval" = yes; then
4330 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4331 else
4332 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4333 fi
4334
4335 else
4336
4337 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4338 if test "x$LINE" != x ; then
4339 eval "DEFAULT_$LINE"
4340 else
4341 no_cache=1
4342 fi
4343
4344 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4345
4346 fi
4347
4348
4349 eval "$ac_cv_use_mslu"
4350 if test "$no_cache" != 1; then
4351 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4352 fi
4353
4354 if test "$wxUSE_UNICODE_MSLU" = yes; then
4355 echo "$ac_t""yes" 1>&6
4356 else
4357 echo "$ac_t""no" 1>&6
4358 fi
4359
4360
4361 enablestring=
4362 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4363 echo "configure:4364: checking for --${enablestring:-enable}-wxprintfv" >&5
4364 no_cache=0
4365 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4366 if test "${enable_wxprintfv+set}" = set; then
4367 enableval="$enable_wxprintfv"
4368
4369 if test "$enableval" = yes; then
4370 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4371 else
4372 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4373 fi
4374
4375 else
4376
4377 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4378 if test "x$LINE" != x ; then
4379 eval "DEFAULT_$LINE"
4380 else
4381 no_cache=1
4382 fi
4383
4384 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4385
4386 fi
4387
4388
4389 eval "$ac_cv_use_wxprintfv"
4390 if test "$no_cache" != 1; then
4391 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4392 fi
4393
4394 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4395 echo "$ac_t""yes" 1>&6
4396 else
4397 echo "$ac_t""no" 1>&6
4398 fi
4399
4400
4401 enablestring=
4402 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4403 echo "configure:4404: checking for --${enablestring:-enable}-std_iostreams" >&5
4404 no_cache=0
4405 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4406 if test "${enable_std_iostreams+set}" = set; then
4407 enableval="$enable_std_iostreams"
4408
4409 if test "$enableval" = yes; then
4410 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4411 else
4412 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4413 fi
4414
4415 else
4416
4417 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4418 if test "x$LINE" != x ; then
4419 eval "DEFAULT_$LINE"
4420 else
4421 no_cache=1
4422 fi
4423
4424 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4425
4426 fi
4427
4428
4429 eval "$ac_cv_use_std_iostreams"
4430 if test "$no_cache" != 1; then
4431 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4432 fi
4433
4434 if test "$wxUSE_STD_IOSTREAM" = yes; then
4435 echo "$ac_t""yes" 1>&6
4436 else
4437 echo "$ac_t""no" 1>&6
4438 fi
4439
4440
4441 enablestring=
4442 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4443 echo "configure:4444: checking for --${enablestring:-enable}-filesystem" >&5
4444 no_cache=0
4445 # Check whether --enable-filesystem or --disable-filesystem was given.
4446 if test "${enable_filesystem+set}" = set; then
4447 enableval="$enable_filesystem"
4448
4449 if test "$enableval" = yes; then
4450 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4451 else
4452 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4453 fi
4454
4455 else
4456
4457 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4458 if test "x$LINE" != x ; then
4459 eval "DEFAULT_$LINE"
4460 else
4461 no_cache=1
4462 fi
4463
4464 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4465
4466 fi
4467
4468
4469 eval "$ac_cv_use_filesystem"
4470 if test "$no_cache" != 1; then
4471 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4472 fi
4473
4474 if test "$wxUSE_FILESYSTEM" = yes; then
4475 echo "$ac_t""yes" 1>&6
4476 else
4477 echo "$ac_t""no" 1>&6
4478 fi
4479
4480
4481 enablestring=
4482 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4483 echo "configure:4484: checking for --${enablestring:-enable}-fs_inet" >&5
4484 no_cache=0
4485 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4486 if test "${enable_fs_inet+set}" = set; then
4487 enableval="$enable_fs_inet"
4488
4489 if test "$enableval" = yes; then
4490 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4491 else
4492 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4493 fi
4494
4495 else
4496
4497 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4498 if test "x$LINE" != x ; then
4499 eval "DEFAULT_$LINE"
4500 else
4501 no_cache=1
4502 fi
4503
4504 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4505
4506 fi
4507
4508
4509 eval "$ac_cv_use_fs_inet"
4510 if test "$no_cache" != 1; then
4511 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4512 fi
4513
4514 if test "$wxUSE_FS_INET" = yes; then
4515 echo "$ac_t""yes" 1>&6
4516 else
4517 echo "$ac_t""no" 1>&6
4518 fi
4519
4520
4521 enablestring=
4522 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4523 echo "configure:4524: checking for --${enablestring:-enable}-fs_zip" >&5
4524 no_cache=0
4525 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4526 if test "${enable_fs_zip+set}" = set; then
4527 enableval="$enable_fs_zip"
4528
4529 if test "$enableval" = yes; then
4530 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4531 else
4532 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4533 fi
4534
4535 else
4536
4537 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4538 if test "x$LINE" != x ; then
4539 eval "DEFAULT_$LINE"
4540 else
4541 no_cache=1
4542 fi
4543
4544 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4545
4546 fi
4547
4548
4549 eval "$ac_cv_use_fs_zip"
4550 if test "$no_cache" != 1; then
4551 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4552 fi
4553
4554 if test "$wxUSE_FS_ZIP" = yes; then
4555 echo "$ac_t""yes" 1>&6
4556 else
4557 echo "$ac_t""no" 1>&6
4558 fi
4559
4560
4561 enablestring=
4562 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4563 echo "configure:4564: checking for --${enablestring:-enable}-zipstream" >&5
4564 no_cache=0
4565 # Check whether --enable-zipstream or --disable-zipstream was given.
4566 if test "${enable_zipstream+set}" = set; then
4567 enableval="$enable_zipstream"
4568
4569 if test "$enableval" = yes; then
4570 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4571 else
4572 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4573 fi
4574
4575 else
4576
4577 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4578 if test "x$LINE" != x ; then
4579 eval "DEFAULT_$LINE"
4580 else
4581 no_cache=1
4582 fi
4583
4584 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4585
4586 fi
4587
4588
4589 eval "$ac_cv_use_zipstream"
4590 if test "$no_cache" != 1; then
4591 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4592 fi
4593
4594 if test "$wxUSE_ZIPSTREAM" = yes; then
4595 echo "$ac_t""yes" 1>&6
4596 else
4597 echo "$ac_t""no" 1>&6
4598 fi
4599
4600
4601
4602 enablestring=
4603 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4604 echo "configure:4605: checking for --${enablestring:-enable}-catch_segvs" >&5
4605 no_cache=0
4606 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4607 if test "${enable_catch_segvs+set}" = set; then
4608 enableval="$enable_catch_segvs"
4609
4610 if test "$enableval" = yes; then
4611 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4612 else
4613 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4614 fi
4615
4616 else
4617
4618 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4619 if test "x$LINE" != x ; then
4620 eval "DEFAULT_$LINE"
4621 else
4622 no_cache=1
4623 fi
4624
4625 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4626
4627 fi
4628
4629
4630 eval "$ac_cv_use_catch_segvs"
4631 if test "$no_cache" != 1; then
4632 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4633 fi
4634
4635 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4636 echo "$ac_t""yes" 1>&6
4637 else
4638 echo "$ac_t""no" 1>&6
4639 fi
4640
4641
4642 enablestring=
4643 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4644 echo "configure:4645: checking for --${enablestring:-enable}-snglinst" >&5
4645 no_cache=0
4646 # Check whether --enable-snglinst or --disable-snglinst was given.
4647 if test "${enable_snglinst+set}" = set; then
4648 enableval="$enable_snglinst"
4649
4650 if test "$enableval" = yes; then
4651 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4652 else
4653 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4654 fi
4655
4656 else
4657
4658 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4659 if test "x$LINE" != x ; then
4660 eval "DEFAULT_$LINE"
4661 else
4662 no_cache=1
4663 fi
4664
4665 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4666
4667 fi
4668
4669
4670 eval "$ac_cv_use_snglinst"
4671 if test "$no_cache" != 1; then
4672 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4673 fi
4674
4675 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4676 echo "$ac_t""yes" 1>&6
4677 else
4678 echo "$ac_t""no" 1>&6
4679 fi
4680
4681
4682
4683 enablestring=
4684 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4685 echo "configure:4686: checking for --${enablestring:-enable}-mimetype" >&5
4686 no_cache=0
4687 # Check whether --enable-mimetype or --disable-mimetype was given.
4688 if test "${enable_mimetype+set}" = set; then
4689 enableval="$enable_mimetype"
4690
4691 if test "$enableval" = yes; then
4692 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4693 else
4694 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4695 fi
4696
4697 else
4698
4699 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4700 if test "x$LINE" != x ; then
4701 eval "DEFAULT_$LINE"
4702 else
4703 no_cache=1
4704 fi
4705
4706 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4707
4708 fi
4709
4710
4711 eval "$ac_cv_use_mimetype"
4712 if test "$no_cache" != 1; then
4713 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4714 fi
4715
4716 if test "$wxUSE_MIMETYPE" = yes; then
4717 echo "$ac_t""yes" 1>&6
4718 else
4719 echo "$ac_t""no" 1>&6
4720 fi
4721
4722
4723 enablestring=
4724 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4725 echo "configure:4726: checking for --${enablestring:-enable}-system_options" >&5
4726 no_cache=0
4727 # Check whether --enable-system_options or --disable-system_options was given.
4728 if test "${enable_system_options+set}" = set; then
4729 enableval="$enable_system_options"
4730
4731 if test "$enableval" = yes; then
4732 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4733 else
4734 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4735 fi
4736
4737 else
4738
4739 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
4746 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4747
4748 fi
4749
4750
4751 eval "$ac_cv_use_system_options"
4752 if test "$no_cache" != 1; then
4753 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4754 fi
4755
4756 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4757 echo "$ac_t""yes" 1>&6
4758 else
4759 echo "$ac_t""no" 1>&6
4760 fi
4761
4762
4763
4764 enablestring=
4765 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4766 echo "configure:4767: checking for --${enablestring:-enable}-url" >&5
4767 no_cache=0
4768 # Check whether --enable-url or --disable-url was given.
4769 if test "${enable_url+set}" = set; then
4770 enableval="$enable_url"
4771
4772 if test "$enableval" = yes; then
4773 ac_cv_use_url='wxUSE_URL=yes'
4774 else
4775 ac_cv_use_url='wxUSE_URL=no'
4776 fi
4777
4778 else
4779
4780 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4781 if test "x$LINE" != x ; then
4782 eval "DEFAULT_$LINE"
4783 else
4784 no_cache=1
4785 fi
4786
4787 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4788
4789 fi
4790
4791
4792 eval "$ac_cv_use_url"
4793 if test "$no_cache" != 1; then
4794 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4795 fi
4796
4797 if test "$wxUSE_URL" = yes; then
4798 echo "$ac_t""yes" 1>&6
4799 else
4800 echo "$ac_t""no" 1>&6
4801 fi
4802
4803
4804 enablestring=
4805 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4806 echo "configure:4807: checking for --${enablestring:-enable}-protocol" >&5
4807 no_cache=0
4808 # Check whether --enable-protocol or --disable-protocol was given.
4809 if test "${enable_protocol+set}" = set; then
4810 enableval="$enable_protocol"
4811
4812 if test "$enableval" = yes; then
4813 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4814 else
4815 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4816 fi
4817
4818 else
4819
4820 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4821 if test "x$LINE" != x ; then
4822 eval "DEFAULT_$LINE"
4823 else
4824 no_cache=1
4825 fi
4826
4827 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4828
4829 fi
4830
4831
4832 eval "$ac_cv_use_protocol"
4833 if test "$no_cache" != 1; then
4834 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4835 fi
4836
4837 if test "$wxUSE_PROTOCOL" = yes; then
4838 echo "$ac_t""yes" 1>&6
4839 else
4840 echo "$ac_t""no" 1>&6
4841 fi
4842
4843
4844 enablestring=
4845 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4846 echo "configure:4847: checking for --${enablestring:-enable}-protocol_http" >&5
4847 no_cache=0
4848 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4849 if test "${enable_protocol_http+set}" = set; then
4850 enableval="$enable_protocol_http"
4851
4852 if test "$enableval" = yes; then
4853 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4854 else
4855 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4856 fi
4857
4858 else
4859
4860 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4861 if test "x$LINE" != x ; then
4862 eval "DEFAULT_$LINE"
4863 else
4864 no_cache=1
4865 fi
4866
4867 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4868
4869 fi
4870
4871
4872 eval "$ac_cv_use_protocol_http"
4873 if test "$no_cache" != 1; then
4874 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4875 fi
4876
4877 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4878 echo "$ac_t""yes" 1>&6
4879 else
4880 echo "$ac_t""no" 1>&6
4881 fi
4882
4883
4884 enablestring=
4885 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4886 echo "configure:4887: checking for --${enablestring:-enable}-protocol_ftp" >&5
4887 no_cache=0
4888 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4889 if test "${enable_protocol_ftp+set}" = set; then
4890 enableval="$enable_protocol_ftp"
4891
4892 if test "$enableval" = yes; then
4893 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4894 else
4895 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4896 fi
4897
4898 else
4899
4900 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4901 if test "x$LINE" != x ; then
4902 eval "DEFAULT_$LINE"
4903 else
4904 no_cache=1
4905 fi
4906
4907 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4908
4909 fi
4910
4911
4912 eval "$ac_cv_use_protocol_ftp"
4913 if test "$no_cache" != 1; then
4914 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4915 fi
4916
4917 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4918 echo "$ac_t""yes" 1>&6
4919 else
4920 echo "$ac_t""no" 1>&6
4921 fi
4922
4923
4924 enablestring=
4925 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4926 echo "configure:4927: checking for --${enablestring:-enable}-protocol_file" >&5
4927 no_cache=0
4928 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4929 if test "${enable_protocol_file+set}" = set; then
4930 enableval="$enable_protocol_file"
4931
4932 if test "$enableval" = yes; then
4933 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4934 else
4935 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4936 fi
4937
4938 else
4939
4940 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4948
4949 fi
4950
4951
4952 eval "$ac_cv_use_protocol_file"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4958 echo "$ac_t""yes" 1>&6
4959 else
4960 echo "$ac_t""no" 1>&6
4961 fi
4962
4963
4964
4965
4966
4967 enablestring=
4968 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4969 echo "configure:4970: checking for --${enablestring:-enable}-threads" >&5
4970 no_cache=0
4971 # Check whether --enable-threads or --disable-threads was given.
4972 if test "${enable_threads+set}" = set; then
4973 enableval="$enable_threads"
4974
4975 if test "$enableval" = yes; then
4976 ac_cv_use_threads='wxUSE_THREADS=yes'
4977 else
4978 ac_cv_use_threads='wxUSE_THREADS=no'
4979 fi
4980
4981 else
4982
4983 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4984 if test "x$LINE" != x ; then
4985 eval "DEFAULT_$LINE"
4986 else
4987 no_cache=1
4988 fi
4989
4990 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4991
4992 fi
4993
4994
4995 eval "$ac_cv_use_threads"
4996 if test "$no_cache" != 1; then
4997 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4998 fi
4999
5000 if test "$wxUSE_THREADS" = yes; then
5001 echo "$ac_t""yes" 1>&6
5002 else
5003 echo "$ac_t""no" 1>&6
5004 fi
5005
5006
5007 if test "$wxUSE_GUI" = "yes"; then
5008
5009
5010
5011 enablestring=
5012 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5013 echo "configure:5014: checking for --${enablestring:-enable}-docview" >&5
5014 no_cache=0
5015 # Check whether --enable-docview or --disable-docview was given.
5016 if test "${enable_docview+set}" = set; then
5017 enableval="$enable_docview"
5018
5019 if test "$enableval" = yes; then
5020 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5021 else
5022 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5023 fi
5024
5025 else
5026
5027 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5028 if test "x$LINE" != x ; then
5029 eval "DEFAULT_$LINE"
5030 else
5031 no_cache=1
5032 fi
5033
5034 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5035
5036 fi
5037
5038
5039 eval "$ac_cv_use_docview"
5040 if test "$no_cache" != 1; then
5041 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5042 fi
5043
5044 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5045 echo "$ac_t""yes" 1>&6
5046 else
5047 echo "$ac_t""no" 1>&6
5048 fi
5049
5050
5051 enablestring=
5052 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5053 echo "configure:5054: checking for --${enablestring:-enable}-help" >&5
5054 no_cache=0
5055 # Check whether --enable-help or --disable-help was given.
5056 if test "${enable_help+set}" = set; then
5057 enableval="$enable_help"
5058
5059 if test "$enableval" = yes; then
5060 ac_cv_use_help='wxUSE_HELP=yes'
5061 else
5062 ac_cv_use_help='wxUSE_HELP=no'
5063 fi
5064
5065 else
5066
5067 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5068 if test "x$LINE" != x ; then
5069 eval "DEFAULT_$LINE"
5070 else
5071 no_cache=1
5072 fi
5073
5074 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5075
5076 fi
5077
5078
5079 eval "$ac_cv_use_help"
5080 if test "$no_cache" != 1; then
5081 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5082 fi
5083
5084 if test "$wxUSE_HELP" = yes; then
5085 echo "$ac_t""yes" 1>&6
5086 else
5087 echo "$ac_t""no" 1>&6
5088 fi
5089
5090
5091 enablestring=
5092 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5093 echo "configure:5094: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5094 no_cache=0
5095 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5096 if test "${enable_mshtmlhelp+set}" = set; then
5097 enableval="$enable_mshtmlhelp"
5098
5099 if test "$enableval" = yes; then
5100 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5101 else
5102 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5103 fi
5104
5105 else
5106
5107 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5108 if test "x$LINE" != x ; then
5109 eval "DEFAULT_$LINE"
5110 else
5111 no_cache=1
5112 fi
5113
5114 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5115
5116 fi
5117
5118
5119 eval "$ac_cv_use_mshtmlhelp"
5120 if test "$no_cache" != 1; then
5121 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5122 fi
5123
5124 if test "$wxUSE_MS_HTML_HELP" = yes; then
5125 echo "$ac_t""yes" 1>&6
5126 else
5127 echo "$ac_t""no" 1>&6
5128 fi
5129
5130
5131 enablestring=
5132 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5133 echo "configure:5134: checking for --${enablestring:-enable}-html" >&5
5134 no_cache=0
5135 # Check whether --enable-html or --disable-html was given.
5136 if test "${enable_html+set}" = set; then
5137 enableval="$enable_html"
5138
5139 if test "$enableval" = yes; then
5140 ac_cv_use_html='wxUSE_HTML=yes'
5141 else
5142 ac_cv_use_html='wxUSE_HTML=no'
5143 fi
5144
5145 else
5146
5147 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5148 if test "x$LINE" != x ; then
5149 eval "DEFAULT_$LINE"
5150 else
5151 no_cache=1
5152 fi
5153
5154 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5155
5156 fi
5157
5158
5159 eval "$ac_cv_use_html"
5160 if test "$no_cache" != 1; then
5161 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5162 fi
5163
5164 if test "$wxUSE_HTML" = yes; then
5165 echo "$ac_t""yes" 1>&6
5166 else
5167 echo "$ac_t""no" 1>&6
5168 fi
5169
5170
5171 enablestring=
5172 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5173 echo "configure:5174: checking for --${enablestring:-enable}-htmlhelp" >&5
5174 no_cache=0
5175 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5176 if test "${enable_htmlhelp+set}" = set; then
5177 enableval="$enable_htmlhelp"
5178
5179 if test "$enableval" = yes; then
5180 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5181 else
5182 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5183 fi
5184
5185 else
5186
5187 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5188 if test "x$LINE" != x ; then
5189 eval "DEFAULT_$LINE"
5190 else
5191 no_cache=1
5192 fi
5193
5194 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5195
5196 fi
5197
5198
5199 eval "$ac_cv_use_htmlhelp"
5200 if test "$no_cache" != 1; then
5201 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5202 fi
5203
5204 if test "$wxUSE_WXHTML_HELP" = yes; then
5205 echo "$ac_t""yes" 1>&6
5206 else
5207 echo "$ac_t""no" 1>&6
5208 fi
5209
5210
5211 enablestring=
5212 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5213 echo "configure:5214: checking for --${enablestring:-enable}-constraints" >&5
5214 no_cache=0
5215 # Check whether --enable-constraints or --disable-constraints was given.
5216 if test "${enable_constraints+set}" = set; then
5217 enableval="$enable_constraints"
5218
5219 if test "$enableval" = yes; then
5220 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5221 else
5222 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5223 fi
5224
5225 else
5226
5227 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5228 if test "x$LINE" != x ; then
5229 eval "DEFAULT_$LINE"
5230 else
5231 no_cache=1
5232 fi
5233
5234 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5235
5236 fi
5237
5238
5239 eval "$ac_cv_use_constraints"
5240 if test "$no_cache" != 1; then
5241 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5242 fi
5243
5244 if test "$wxUSE_CONSTRAINTS" = yes; then
5245 echo "$ac_t""yes" 1>&6
5246 else
5247 echo "$ac_t""no" 1>&6
5248 fi
5249
5250
5251 enablestring=
5252 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5253 echo "configure:5254: checking for --${enablestring:-enable}-printarch" >&5
5254 no_cache=0
5255 # Check whether --enable-printarch or --disable-printarch was given.
5256 if test "${enable_printarch+set}" = set; then
5257 enableval="$enable_printarch"
5258
5259 if test "$enableval" = yes; then
5260 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5261 else
5262 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5263 fi
5264
5265 else
5266
5267 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5275
5276 fi
5277
5278
5279 eval "$ac_cv_use_printarch"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5285 echo "$ac_t""yes" 1>&6
5286 else
5287 echo "$ac_t""no" 1>&6
5288 fi
5289
5290
5291 enablestring=
5292 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5293 echo "configure:5294: checking for --${enablestring:-enable}-mdi" >&5
5294 no_cache=0
5295 # Check whether --enable-mdi or --disable-mdi was given.
5296 if test "${enable_mdi+set}" = set; then
5297 enableval="$enable_mdi"
5298
5299 if test "$enableval" = yes; then
5300 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5301 else
5302 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5303 fi
5304
5305 else
5306
5307 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5308 if test "x$LINE" != x ; then
5309 eval "DEFAULT_$LINE"
5310 else
5311 no_cache=1
5312 fi
5313
5314 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5315
5316 fi
5317
5318
5319 eval "$ac_cv_use_mdi"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5325 echo "$ac_t""yes" 1>&6
5326 else
5327 echo "$ac_t""no" 1>&6
5328 fi
5329
5330
5331 enablestring=
5332 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5333 echo "configure:5334: checking for --${enablestring:-enable}-loggui" >&5
5334 no_cache=0
5335 # Check whether --enable-loggui or --disable-loggui was given.
5336 if test "${enable_loggui+set}" = set; then
5337 enableval="$enable_loggui"
5338
5339 if test "$enableval" = yes; then
5340 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5341 else
5342 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5343 fi
5344
5345 else
5346
5347 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5348 if test "x$LINE" != x ; then
5349 eval "DEFAULT_$LINE"
5350 else
5351 no_cache=1
5352 fi
5353
5354 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5355
5356 fi
5357
5358
5359 eval "$ac_cv_use_loggui"
5360 if test "$no_cache" != 1; then
5361 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5362 fi
5363
5364 if test "$wxUSE_LOGGUI" = yes; then
5365 echo "$ac_t""yes" 1>&6
5366 else
5367 echo "$ac_t""no" 1>&6
5368 fi
5369
5370
5371 enablestring=
5372 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5373 echo "configure:5374: checking for --${enablestring:-enable}-logwin" >&5
5374 no_cache=0
5375 # Check whether --enable-logwin or --disable-logwin was given.
5376 if test "${enable_logwin+set}" = set; then
5377 enableval="$enable_logwin"
5378
5379 if test "$enableval" = yes; then
5380 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5381 else
5382 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5383 fi
5384
5385 else
5386
5387 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5388 if test "x$LINE" != x ; then
5389 eval "DEFAULT_$LINE"
5390 else
5391 no_cache=1
5392 fi
5393
5394 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5395
5396 fi
5397
5398
5399 eval "$ac_cv_use_logwin"
5400 if test "$no_cache" != 1; then
5401 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5402 fi
5403
5404 if test "$wxUSE_LOGWINDOW" = yes; then
5405 echo "$ac_t""yes" 1>&6
5406 else
5407 echo "$ac_t""no" 1>&6
5408 fi
5409
5410
5411 enablestring=
5412 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5413 echo "configure:5414: checking for --${enablestring:-enable}-logdialog" >&5
5414 no_cache=0
5415 # Check whether --enable-logdialog or --disable-logdialog was given.
5416 if test "${enable_logdialog+set}" = set; then
5417 enableval="$enable_logdialog"
5418
5419 if test "$enableval" = yes; then
5420 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5421 else
5422 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5423 fi
5424
5425 else
5426
5427 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5428 if test "x$LINE" != x ; then
5429 eval "DEFAULT_$LINE"
5430 else
5431 no_cache=1
5432 fi
5433
5434 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5435
5436 fi
5437
5438
5439 eval "$ac_cv_use_logdialog"
5440 if test "$no_cache" != 1; then
5441 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5442 fi
5443
5444 if test "$wxUSE_LOGDIALOG" = yes; then
5445 echo "$ac_t""yes" 1>&6
5446 else
5447 echo "$ac_t""no" 1>&6
5448 fi
5449
5450
5451
5452 enablestring=
5453 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5454 echo "configure:5455: checking for --${enablestring:-enable}-postscript" >&5
5455 no_cache=0
5456 # Check whether --enable-postscript or --disable-postscript was given.
5457 if test "${enable_postscript+set}" = set; then
5458 enableval="$enable_postscript"
5459
5460 if test "$enableval" = yes; then
5461 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5462 else
5463 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5464 fi
5465
5466 else
5467
5468 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5469 if test "x$LINE" != x ; then
5470 eval "DEFAULT_$LINE"
5471 else
5472 no_cache=1
5473 fi
5474
5475 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5476
5477 fi
5478
5479
5480 eval "$ac_cv_use_postscript"
5481 if test "$no_cache" != 1; then
5482 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5483 fi
5484
5485 if test "$wxUSE_POSTSCRIPT" = yes; then
5486 echo "$ac_t""yes" 1>&6
5487 else
5488 echo "$ac_t""no" 1>&6
5489 fi
5490
5491
5492
5493
5494
5495 enablestring=
5496 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5497 echo "configure:5498: checking for --${enablestring:-enable}-resources" >&5
5498 no_cache=0
5499 # Check whether --enable-resources or --disable-resources was given.
5500 if test "${enable_resources+set}" = set; then
5501 enableval="$enable_resources"
5502
5503 if test "$enableval" = yes; then
5504 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5505 else
5506 ac_cv_use_resources='wxUSE_RESOURCES=no'
5507 fi
5508
5509 else
5510
5511 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5512 if test "x$LINE" != x ; then
5513 eval "DEFAULT_$LINE"
5514 else
5515 no_cache=1
5516 fi
5517
5518 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5519
5520 fi
5521
5522
5523 eval "$ac_cv_use_resources"
5524 if test "$no_cache" != 1; then
5525 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5526 fi
5527
5528 if test "$wxUSE_RESOURCES" = yes; then
5529 echo "$ac_t""yes" 1>&6
5530 else
5531 echo "$ac_t""no" 1>&6
5532 fi
5533
5534
5535
5536 enablestring=
5537 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5538 echo "configure:5539: checking for --${enablestring:-enable}-xresources" >&5
5539 no_cache=0
5540 # Check whether --enable-xresources or --disable-xresources was given.
5541 if test "${enable_xresources+set}" = set; then
5542 enableval="$enable_xresources"
5543
5544 if test "$enableval" = yes; then
5545 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5546 else
5547 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5548 fi
5549
5550 else
5551
5552 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5553 if test "x$LINE" != x ; then
5554 eval "DEFAULT_$LINE"
5555 else
5556 no_cache=1
5557 fi
5558
5559 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5560
5561 fi
5562
5563
5564 eval "$ac_cv_use_xresources"
5565 if test "$no_cache" != 1; then
5566 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5567 fi
5568
5569 if test "$wxUSE_X_RESOURCES" = yes; then
5570 echo "$ac_t""yes" 1>&6
5571 else
5572 echo "$ac_t""no" 1>&6
5573 fi
5574
5575
5576
5577
5578 enablestring=
5579 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5580 echo "configure:5581: checking for --${enablestring:-enable}-clipboard" >&5
5581 no_cache=0
5582 # Check whether --enable-clipboard or --disable-clipboard was given.
5583 if test "${enable_clipboard+set}" = set; then
5584 enableval="$enable_clipboard"
5585
5586 if test "$enableval" = yes; then
5587 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5588 else
5589 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5590 fi
5591
5592 else
5593
5594 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5595 if test "x$LINE" != x ; then
5596 eval "DEFAULT_$LINE"
5597 else
5598 no_cache=1
5599 fi
5600
5601 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5602
5603 fi
5604
5605
5606 eval "$ac_cv_use_clipboard"
5607 if test "$no_cache" != 1; then
5608 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5609 fi
5610
5611 if test "$wxUSE_CLIPBOARD" = yes; then
5612 echo "$ac_t""yes" 1>&6
5613 else
5614 echo "$ac_t""no" 1>&6
5615 fi
5616
5617
5618 enablestring=
5619 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5620 echo "configure:5621: checking for --${enablestring:-enable}-dnd" >&5
5621 no_cache=0
5622 # Check whether --enable-dnd or --disable-dnd was given.
5623 if test "${enable_dnd+set}" = set; then
5624 enableval="$enable_dnd"
5625
5626 if test "$enableval" = yes; then
5627 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5628 else
5629 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5630 fi
5631
5632 else
5633
5634 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5635 if test "x$LINE" != x ; then
5636 eval "DEFAULT_$LINE"
5637 else
5638 no_cache=1
5639 fi
5640
5641 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5642
5643 fi
5644
5645
5646 eval "$ac_cv_use_dnd"
5647 if test "$no_cache" != 1; then
5648 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5649 fi
5650
5651 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5652 echo "$ac_t""yes" 1>&6
5653 else
5654 echo "$ac_t""no" 1>&6
5655 fi
5656
5657
5658 enablestring=
5659 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5660 echo "configure:5661: checking for --${enablestring:-enable}-metafile" >&5
5661 no_cache=0
5662 # Check whether --enable-metafile or --disable-metafile was given.
5663 if test "${enable_metafile+set}" = set; then
5664 enableval="$enable_metafile"
5665
5666 if test "$enableval" = yes; then
5667 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5668 else
5669 ac_cv_use_metafile='wxUSE_METAFILE=no'
5670 fi
5671
5672 else
5673
5674 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5675 if test "x$LINE" != x ; then
5676 eval "DEFAULT_$LINE"
5677 else
5678 no_cache=1
5679 fi
5680
5681 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5682
5683 fi
5684
5685
5686 eval "$ac_cv_use_metafile"
5687 if test "$no_cache" != 1; then
5688 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5689 fi
5690
5691 if test "$wxUSE_METAFILE" = yes; then
5692 echo "$ac_t""yes" 1>&6
5693 else
5694 echo "$ac_t""no" 1>&6
5695 fi
5696
5697
5698
5699
5700
5701 enablestring=
5702 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5703 echo "configure:5704: checking for --${enablestring:-enable}-controls" >&5
5704 no_cache=0
5705 # Check whether --enable-controls or --disable-controls was given.
5706 if test "${enable_controls+set}" = set; then
5707 enableval="$enable_controls"
5708
5709 if test "$enableval" = yes; then
5710 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5711 else
5712 ac_cv_use_controls='wxUSE_CONTROLS=no'
5713 fi
5714
5715 else
5716
5717 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5718 if test "x$LINE" != x ; then
5719 eval "DEFAULT_$LINE"
5720 else
5721 no_cache=1
5722 fi
5723
5724 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5725
5726 fi
5727
5728
5729 eval "$ac_cv_use_controls"
5730 if test "$no_cache" != 1; then
5731 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5732 fi
5733
5734 if test "$wxUSE_CONTROLS" = yes; then
5735 echo "$ac_t""yes" 1>&6
5736 else
5737 echo "$ac_t""no" 1>&6
5738 fi
5739
5740
5741 if test "$wxUSE_CONTROLS" = "yes"; then
5742 DEFAULT_wxUSE_ACCEL=yes
5743 DEFAULT_wxUSE_BMPBUTTON=yes
5744 DEFAULT_wxUSE_BUTTON=yes
5745 DEFAULT_wxUSE_CALCTRL=no
5746 DEFAULT_wxUSE_CARET=yes
5747 DEFAULT_wxUSE_COMBOBOX=yes
5748 DEFAULT_wxUSE_CHECKBOX=yes
5749 DEFAULT_wxUSE_CHECKLISTBOX=yes
5750 DEFAULT_wxUSE_CHOICE=yes
5751 DEFAULT_wxUSE_GAUGE=yes
5752 DEFAULT_wxUSE_GRID=yes
5753 DEFAULT_wxUSE_IMAGLIST=yes
5754 DEFAULT_wxUSE_LISTBOX=yes
5755 DEFAULT_wxUSE_LISTCTRL=yes
5756 DEFAULT_wxUSE_NOTEBOOK=yes
5757 DEFAULT_wxUSE_RADIOBOX=yes
5758 DEFAULT_wxUSE_RADIOBTN=yes
5759 DEFAULT_wxUSE_SASH=yes
5760 DEFAULT_wxUSE_SCROLLBAR=yes
5761 DEFAULT_wxUSE_SLIDER=yes
5762 DEFAULT_wxUSE_SPINBTN=yes
5763 DEFAULT_wxUSE_SPINCTRL=yes
5764 DEFAULT_wxUSE_SPLITTER=yes
5765 DEFAULT_wxUSE_STATBMP=yes
5766 DEFAULT_wxUSE_STATBOX=yes
5767 DEFAULT_wxUSE_STATLINE=yes
5768 DEFAULT_wxUSE_STATUSBAR=yes
5769 DEFAULT_wxUSE_TAB_DIALOG=yes
5770 DEFAULT_wxUSE_TOGGLEBTN=yes
5771 DEFAULT_wxUSE_TOOLBAR=yes
5772 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5773 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5774 DEFAULT_wxUSE_TOOLTIPS=yes
5775 DEFAULT_wxUSE_TREECTRL=yes
5776 DEFAULT_wxUSE_POPUPWIN=yes
5777 DEFAULT_wxUSE_TIPWINDOW=yes
5778 elif test "$wxUSE_CONTROLS" = "no"; then
5779 DEFAULT_wxUSE_ACCEL=no
5780 DEFAULT_wxUSE_BMPBUTTON=no
5781 DEFAULT_wxUSE_BUTTON=no
5782 DEFAULT_wxUSE_CALCTRL=no
5783 DEFAULT_wxUSE_CARET=no
5784 DEFAULT_wxUSE_COMBOBOX=no
5785 DEFAULT_wxUSE_CHECKBOX=no
5786 DEFAULT_wxUSE_CHECKLISTBOX=no
5787 DEFAULT_wxUSE_CHOICE=no
5788 DEFAULT_wxUSE_GAUGE=no
5789 DEFAULT_wxUSE_GRID=no
5790 DEFAULT_wxUSE_IMAGLIST=no
5791 DEFAULT_wxUSE_LISTBOX=no
5792 DEFAULT_wxUSE_LISTCTRL=no
5793 DEFAULT_wxUSE_NOTEBOOK=no
5794 DEFAULT_wxUSE_RADIOBOX=no
5795 DEFAULT_wxUSE_RADIOBTN=no
5796 DEFAULT_wxUSE_SASH=no
5797 DEFAULT_wxUSE_SCROLLBAR=no
5798 DEFAULT_wxUSE_SLIDER=no
5799 DEFAULT_wxUSE_SPINBTN=no
5800 DEFAULT_wxUSE_SPINCTRL=no
5801 DEFAULT_wxUSE_SPLITTER=no
5802 DEFAULT_wxUSE_STATBMP=no
5803 DEFAULT_wxUSE_STATBOX=no
5804 DEFAULT_wxUSE_STATLINE=no
5805 DEFAULT_wxUSE_STATUSBAR=no
5806 DEFAULT_wxUSE_TAB_DIALOG=no
5807 DEFAULT_wxUSE_TOGGLEBTN=no
5808 DEFAULT_wxUSE_TOOLBAR=no
5809 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5810 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5811 DEFAULT_wxUSE_TOOLTIPS=no
5812 DEFAULT_wxUSE_TREECTRL=no
5813 DEFAULT_wxUSE_POPUPWIN=no
5814 DEFAULT_wxUSE_TIPWINDOW=no
5815 fi
5816
5817 ## FIXME: This is a blatant hack
5818 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5819 wxUSE_PRINTING_ARCHITECTURE=no
5820 wxUSE_HELP=no
5821 wxUSE_CLIPBOARD=no
5822 wxUSE_DRAG_AND_DROP=no
5823 wxUSE_DATAOBJ=no
5824 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5825 DEFAULT_wxUSE_TEXTDLG=no
5826 DEFAULT_wxUSE_GAUGE=no
5827 DEFAULT_wxUSE_SCROLLBAR=no
5828 DEFAULT_wxUSE_SLIDER=no
5829 DEFAULT_wxUSE_COMBOBOX=no
5830 DEFAULT_wxUSE_CALCTRL=no
5831 DEFAULT_wxUSE_SPINBTN=no
5832 DEFAULT_wxUSE_SPINCTRL=no
5833 DEFAULT_wxUSE_TOOLTIPS=no
5834 DEFAULT_wxUSE_COLOURDLG=no
5835 DEFAULT_wxUSE_DRAGIMAGE=no
5836 DEFAULT_wxUSE_FINDREPLDLG=no
5837 DEFAULT_wxUSE_FONTDLG=no
5838 DEFAULT_wxUSE_GRID=no
5839 DEFAULT_wxUSE_NUMBERDLG=no
5840 DEFAULT_wxUSE_PROGRESSDLG=no
5841 DEFAULT_wxUSE_SASH=no
5842 DEFAULT_wxUSE_SPLITTER=no
5843 DEFAULT_wxUSE_WIZARDDLG=no
5844 DEFAULT_wxUSE_SPLITTER=no
5845 DEFAULT_wxUSE_STARTUP_TIPS=no
5846 fi
5847
5848
5849 enablestring=
5850 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5851 echo "configure:5852: checking for --${enablestring:-enable}-accel" >&5
5852 no_cache=0
5853 # Check whether --enable-accel or --disable-accel was given.
5854 if test "${enable_accel+set}" = set; then
5855 enableval="$enable_accel"
5856
5857 if test "$enableval" = yes; then
5858 ac_cv_use_accel='wxUSE_ACCEL=yes'
5859 else
5860 ac_cv_use_accel='wxUSE_ACCEL=no'
5861 fi
5862
5863 else
5864
5865 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
5872 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5873
5874 fi
5875
5876
5877 eval "$ac_cv_use_accel"
5878 if test "$no_cache" != 1; then
5879 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5880 fi
5881
5882 if test "$wxUSE_ACCEL" = yes; then
5883 echo "$ac_t""yes" 1>&6
5884 else
5885 echo "$ac_t""no" 1>&6
5886 fi
5887
5888
5889 enablestring=
5890 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5891 echo "configure:5892: checking for --${enablestring:-enable}-button" >&5
5892 no_cache=0
5893 # Check whether --enable-button or --disable-button was given.
5894 if test "${enable_button+set}" = set; then
5895 enableval="$enable_button"
5896
5897 if test "$enableval" = yes; then
5898 ac_cv_use_button='wxUSE_BUTTON=yes'
5899 else
5900 ac_cv_use_button='wxUSE_BUTTON=no'
5901 fi
5902
5903 else
5904
5905 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5906 if test "x$LINE" != x ; then
5907 eval "DEFAULT_$LINE"
5908 else
5909 no_cache=1
5910 fi
5911
5912 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5913
5914 fi
5915
5916
5917 eval "$ac_cv_use_button"
5918 if test "$no_cache" != 1; then
5919 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5920 fi
5921
5922 if test "$wxUSE_BUTTON" = yes; then
5923 echo "$ac_t""yes" 1>&6
5924 else
5925 echo "$ac_t""no" 1>&6
5926 fi
5927
5928
5929 enablestring=
5930 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
5931 echo "configure:5932: checking for --${enablestring:-enable}-bmpbutton" >&5
5932 no_cache=0
5933 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5934 if test "${enable_bmpbutton+set}" = set; then
5935 enableval="$enable_bmpbutton"
5936
5937 if test "$enableval" = yes; then
5938 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5939 else
5940 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5941 fi
5942
5943 else
5944
5945 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5946 if test "x$LINE" != x ; then
5947 eval "DEFAULT_$LINE"
5948 else
5949 no_cache=1
5950 fi
5951
5952 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5953
5954 fi
5955
5956
5957 eval "$ac_cv_use_bmpbutton"
5958 if test "$no_cache" != 1; then
5959 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5960 fi
5961
5962 if test "$wxUSE_BMPBUTTON" = yes; then
5963 echo "$ac_t""yes" 1>&6
5964 else
5965 echo "$ac_t""no" 1>&6
5966 fi
5967
5968
5969 enablestring=
5970 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
5971 echo "configure:5972: checking for --${enablestring:-enable}-calendar" >&5
5972 no_cache=0
5973 # Check whether --enable-calendar or --disable-calendar was given.
5974 if test "${enable_calendar+set}" = set; then
5975 enableval="$enable_calendar"
5976
5977 if test "$enableval" = yes; then
5978 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5979 else
5980 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5981 fi
5982
5983 else
5984
5985 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5986 if test "x$LINE" != x ; then
5987 eval "DEFAULT_$LINE"
5988 else
5989 no_cache=1
5990 fi
5991
5992 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5993
5994 fi
5995
5996
5997 eval "$ac_cv_use_calendar"
5998 if test "$no_cache" != 1; then
5999 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6000 fi
6001
6002 if test "$wxUSE_CALCTRL" = yes; then
6003 echo "$ac_t""yes" 1>&6
6004 else
6005 echo "$ac_t""no" 1>&6
6006 fi
6007
6008
6009 enablestring=
6010 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6011 echo "configure:6012: checking for --${enablestring:-enable}-caret" >&5
6012 no_cache=0
6013 # Check whether --enable-caret or --disable-caret was given.
6014 if test "${enable_caret+set}" = set; then
6015 enableval="$enable_caret"
6016
6017 if test "$enableval" = yes; then
6018 ac_cv_use_caret='wxUSE_CARET=yes'
6019 else
6020 ac_cv_use_caret='wxUSE_CARET=no'
6021 fi
6022
6023 else
6024
6025 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6026 if test "x$LINE" != x ; then
6027 eval "DEFAULT_$LINE"
6028 else
6029 no_cache=1
6030 fi
6031
6032 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6033
6034 fi
6035
6036
6037 eval "$ac_cv_use_caret"
6038 if test "$no_cache" != 1; then
6039 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6040 fi
6041
6042 if test "$wxUSE_CARET" = yes; then
6043 echo "$ac_t""yes" 1>&6
6044 else
6045 echo "$ac_t""no" 1>&6
6046 fi
6047
6048
6049 enablestring=
6050 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6051 echo "configure:6052: checking for --${enablestring:-enable}-checkbox" >&5
6052 no_cache=0
6053 # Check whether --enable-checkbox or --disable-checkbox was given.
6054 if test "${enable_checkbox+set}" = set; then
6055 enableval="$enable_checkbox"
6056
6057 if test "$enableval" = yes; then
6058 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6059 else
6060 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6061 fi
6062
6063 else
6064
6065 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6066 if test "x$LINE" != x ; then
6067 eval "DEFAULT_$LINE"
6068 else
6069 no_cache=1
6070 fi
6071
6072 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6073
6074 fi
6075
6076
6077 eval "$ac_cv_use_checkbox"
6078 if test "$no_cache" != 1; then
6079 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6080 fi
6081
6082 if test "$wxUSE_CHECKBOX" = yes; then
6083 echo "$ac_t""yes" 1>&6
6084 else
6085 echo "$ac_t""no" 1>&6
6086 fi
6087
6088
6089 enablestring=
6090 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6091 echo "configure:6092: checking for --${enablestring:-enable}-checklst" >&5
6092 no_cache=0
6093 # Check whether --enable-checklst or --disable-checklst was given.
6094 if test "${enable_checklst+set}" = set; then
6095 enableval="$enable_checklst"
6096
6097 if test "$enableval" = yes; then
6098 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6099 else
6100 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6101 fi
6102
6103 else
6104
6105 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6106 if test "x$LINE" != x ; then
6107 eval "DEFAULT_$LINE"
6108 else
6109 no_cache=1
6110 fi
6111
6112 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6113
6114 fi
6115
6116
6117 eval "$ac_cv_use_checklst"
6118 if test "$no_cache" != 1; then
6119 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6120 fi
6121
6122 if test "$wxUSE_CHECKLST" = yes; then
6123 echo "$ac_t""yes" 1>&6
6124 else
6125 echo "$ac_t""no" 1>&6
6126 fi
6127
6128
6129 enablestring=
6130 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6131 echo "configure:6132: checking for --${enablestring:-enable}-choice" >&5
6132 no_cache=0
6133 # Check whether --enable-choice or --disable-choice was given.
6134 if test "${enable_choice+set}" = set; then
6135 enableval="$enable_choice"
6136
6137 if test "$enableval" = yes; then
6138 ac_cv_use_choice='wxUSE_CHOICE=yes'
6139 else
6140 ac_cv_use_choice='wxUSE_CHOICE=no'
6141 fi
6142
6143 else
6144
6145 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6146 if test "x$LINE" != x ; then
6147 eval "DEFAULT_$LINE"
6148 else
6149 no_cache=1
6150 fi
6151
6152 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6153
6154 fi
6155
6156
6157 eval "$ac_cv_use_choice"
6158 if test "$no_cache" != 1; then
6159 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6160 fi
6161
6162 if test "$wxUSE_CHOICE" = yes; then
6163 echo "$ac_t""yes" 1>&6
6164 else
6165 echo "$ac_t""no" 1>&6
6166 fi
6167
6168
6169 enablestring=
6170 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6171 echo "configure:6172: checking for --${enablestring:-enable}-combobox" >&5
6172 no_cache=0
6173 # Check whether --enable-combobox or --disable-combobox was given.
6174 if test "${enable_combobox+set}" = set; then
6175 enableval="$enable_combobox"
6176
6177 if test "$enableval" = yes; then
6178 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6179 else
6180 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6181 fi
6182
6183 else
6184
6185 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6186 if test "x$LINE" != x ; then
6187 eval "DEFAULT_$LINE"
6188 else
6189 no_cache=1
6190 fi
6191
6192 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6193
6194 fi
6195
6196
6197 eval "$ac_cv_use_combobox"
6198 if test "$no_cache" != 1; then
6199 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6200 fi
6201
6202 if test "$wxUSE_COMBOBOX" = yes; then
6203 echo "$ac_t""yes" 1>&6
6204 else
6205 echo "$ac_t""no" 1>&6
6206 fi
6207
6208
6209 enablestring=
6210 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
6211 echo "configure:6212: checking for --${enablestring:-enable}-display" >&5
6212 no_cache=0
6213 # Check whether --enable-display or --disable-display was given.
6214 if test "${enable_display+set}" = set; then
6215 enableval="$enable_display"
6216
6217 if test "$enableval" = yes; then
6218 ac_cv_use_display='wxUSE_DISPLAY=yes'
6219 else
6220 ac_cv_use_display='wxUSE_DISPLAY=no'
6221 fi
6222
6223 else
6224
6225 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6226 if test "x$LINE" != x ; then
6227 eval "DEFAULT_$LINE"
6228 else
6229 no_cache=1
6230 fi
6231
6232 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6233
6234 fi
6235
6236
6237 eval "$ac_cv_use_display"
6238 if test "$no_cache" != 1; then
6239 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6240 fi
6241
6242 if test "$wxUSE_DISPLAY" = yes; then
6243 echo "$ac_t""yes" 1>&6
6244 else
6245 echo "$ac_t""no" 1>&6
6246 fi
6247
6248
6249 enablestring=
6250 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6251 echo "configure:6252: checking for --${enablestring:-enable}-gauge" >&5
6252 no_cache=0
6253 # Check whether --enable-gauge or --disable-gauge was given.
6254 if test "${enable_gauge+set}" = set; then
6255 enableval="$enable_gauge"
6256
6257 if test "$enableval" = yes; then
6258 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6259 else
6260 ac_cv_use_gauge='wxUSE_GAUGE=no'
6261 fi
6262
6263 else
6264
6265 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6266 if test "x$LINE" != x ; then
6267 eval "DEFAULT_$LINE"
6268 else
6269 no_cache=1
6270 fi
6271
6272 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6273
6274 fi
6275
6276
6277 eval "$ac_cv_use_gauge"
6278 if test "$no_cache" != 1; then
6279 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6280 fi
6281
6282 if test "$wxUSE_GAUGE" = yes; then
6283 echo "$ac_t""yes" 1>&6
6284 else
6285 echo "$ac_t""no" 1>&6
6286 fi
6287
6288
6289 enablestring=
6290 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6291 echo "configure:6292: checking for --${enablestring:-enable}-grid" >&5
6292 no_cache=0
6293 # Check whether --enable-grid or --disable-grid was given.
6294 if test "${enable_grid+set}" = set; then
6295 enableval="$enable_grid"
6296
6297 if test "$enableval" = yes; then
6298 ac_cv_use_grid='wxUSE_GRID=yes'
6299 else
6300 ac_cv_use_grid='wxUSE_GRID=no'
6301 fi
6302
6303 else
6304
6305 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6306 if test "x$LINE" != x ; then
6307 eval "DEFAULT_$LINE"
6308 else
6309 no_cache=1
6310 fi
6311
6312 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6313
6314 fi
6315
6316
6317 eval "$ac_cv_use_grid"
6318 if test "$no_cache" != 1; then
6319 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6320 fi
6321
6322 if test "$wxUSE_GRID" = yes; then
6323 echo "$ac_t""yes" 1>&6
6324 else
6325 echo "$ac_t""no" 1>&6
6326 fi
6327
6328
6329 enablestring=
6330 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6331 echo "configure:6332: checking for --${enablestring:-enable}-imaglist" >&5
6332 no_cache=0
6333 # Check whether --enable-imaglist or --disable-imaglist was given.
6334 if test "${enable_imaglist+set}" = set; then
6335 enableval="$enable_imaglist"
6336
6337 if test "$enableval" = yes; then
6338 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6339 else
6340 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6341 fi
6342
6343 else
6344
6345 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6346 if test "x$LINE" != x ; then
6347 eval "DEFAULT_$LINE"
6348 else
6349 no_cache=1
6350 fi
6351
6352 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6353
6354 fi
6355
6356
6357 eval "$ac_cv_use_imaglist"
6358 if test "$no_cache" != 1; then
6359 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6360 fi
6361
6362 if test "$wxUSE_IMAGLIST" = yes; then
6363 echo "$ac_t""yes" 1>&6
6364 else
6365 echo "$ac_t""no" 1>&6
6366 fi
6367
6368
6369 enablestring=
6370 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6371 echo "configure:6372: checking for --${enablestring:-enable}-listbox" >&5
6372 no_cache=0
6373 # Check whether --enable-listbox or --disable-listbox was given.
6374 if test "${enable_listbox+set}" = set; then
6375 enableval="$enable_listbox"
6376
6377 if test "$enableval" = yes; then
6378 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6379 else
6380 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6381 fi
6382
6383 else
6384
6385 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6386 if test "x$LINE" != x ; then
6387 eval "DEFAULT_$LINE"
6388 else
6389 no_cache=1
6390 fi
6391
6392 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6393
6394 fi
6395
6396
6397 eval "$ac_cv_use_listbox"
6398 if test "$no_cache" != 1; then
6399 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6400 fi
6401
6402 if test "$wxUSE_LISTBOX" = yes; then
6403 echo "$ac_t""yes" 1>&6
6404 else
6405 echo "$ac_t""no" 1>&6
6406 fi
6407
6408
6409 enablestring=
6410 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6411 echo "configure:6412: checking for --${enablestring:-enable}-listctrl" >&5
6412 no_cache=0
6413 # Check whether --enable-listctrl or --disable-listctrl was given.
6414 if test "${enable_listctrl+set}" = set; then
6415 enableval="$enable_listctrl"
6416
6417 if test "$enableval" = yes; then
6418 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6419 else
6420 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6421 fi
6422
6423 else
6424
6425 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6426 if test "x$LINE" != x ; then
6427 eval "DEFAULT_$LINE"
6428 else
6429 no_cache=1
6430 fi
6431
6432 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6433
6434 fi
6435
6436
6437 eval "$ac_cv_use_listctrl"
6438 if test "$no_cache" != 1; then
6439 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6440 fi
6441
6442 if test "$wxUSE_LISTCTRL" = yes; then
6443 echo "$ac_t""yes" 1>&6
6444 else
6445 echo "$ac_t""no" 1>&6
6446 fi
6447
6448
6449 enablestring=
6450 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6451 echo "configure:6452: checking for --${enablestring:-enable}-notebook" >&5
6452 no_cache=0
6453 # Check whether --enable-notebook or --disable-notebook was given.
6454 if test "${enable_notebook+set}" = set; then
6455 enableval="$enable_notebook"
6456
6457 if test "$enableval" = yes; then
6458 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6459 else
6460 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6461 fi
6462
6463 else
6464
6465 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6466 if test "x$LINE" != x ; then
6467 eval "DEFAULT_$LINE"
6468 else
6469 no_cache=1
6470 fi
6471
6472 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6473
6474 fi
6475
6476
6477 eval "$ac_cv_use_notebook"
6478 if test "$no_cache" != 1; then
6479 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6480 fi
6481
6482 if test "$wxUSE_NOTEBOOK" = yes; then
6483 echo "$ac_t""yes" 1>&6
6484 else
6485 echo "$ac_t""no" 1>&6
6486 fi
6487
6488
6489 enablestring=
6490 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6491 echo "configure:6492: checking for --${enablestring:-enable}-radiobox" >&5
6492 no_cache=0
6493 # Check whether --enable-radiobox or --disable-radiobox was given.
6494 if test "${enable_radiobox+set}" = set; then
6495 enableval="$enable_radiobox"
6496
6497 if test "$enableval" = yes; then
6498 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6499 else
6500 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6501 fi
6502
6503 else
6504
6505 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6506 if test "x$LINE" != x ; then
6507 eval "DEFAULT_$LINE"
6508 else
6509 no_cache=1
6510 fi
6511
6512 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6513
6514 fi
6515
6516
6517 eval "$ac_cv_use_radiobox"
6518 if test "$no_cache" != 1; then
6519 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6520 fi
6521
6522 if test "$wxUSE_RADIOBOX" = yes; then
6523 echo "$ac_t""yes" 1>&6
6524 else
6525 echo "$ac_t""no" 1>&6
6526 fi
6527
6528
6529 enablestring=
6530 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6531 echo "configure:6532: checking for --${enablestring:-enable}-radiobtn" >&5
6532 no_cache=0
6533 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6534 if test "${enable_radiobtn+set}" = set; then
6535 enableval="$enable_radiobtn"
6536
6537 if test "$enableval" = yes; then
6538 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6539 else
6540 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6541 fi
6542
6543 else
6544
6545 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6546 if test "x$LINE" != x ; then
6547 eval "DEFAULT_$LINE"
6548 else
6549 no_cache=1
6550 fi
6551
6552 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6553
6554 fi
6555
6556
6557 eval "$ac_cv_use_radiobtn"
6558 if test "$no_cache" != 1; then
6559 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6560 fi
6561
6562 if test "$wxUSE_RADIOBTN" = yes; then
6563 echo "$ac_t""yes" 1>&6
6564 else
6565 echo "$ac_t""no" 1>&6
6566 fi
6567
6568
6569 enablestring=
6570 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6571 echo "configure:6572: checking for --${enablestring:-enable}-sash" >&5
6572 no_cache=0
6573 # Check whether --enable-sash or --disable-sash was given.
6574 if test "${enable_sash+set}" = set; then
6575 enableval="$enable_sash"
6576
6577 if test "$enableval" = yes; then
6578 ac_cv_use_sash='wxUSE_SASH=yes'
6579 else
6580 ac_cv_use_sash='wxUSE_SASH=no'
6581 fi
6582
6583 else
6584
6585 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6586 if test "x$LINE" != x ; then
6587 eval "DEFAULT_$LINE"
6588 else
6589 no_cache=1
6590 fi
6591
6592 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6593
6594 fi
6595
6596
6597 eval "$ac_cv_use_sash"
6598 if test "$no_cache" != 1; then
6599 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6600 fi
6601
6602 if test "$wxUSE_SASH" = yes; then
6603 echo "$ac_t""yes" 1>&6
6604 else
6605 echo "$ac_t""no" 1>&6
6606 fi
6607
6608
6609 enablestring=
6610 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6611 echo "configure:6612: checking for --${enablestring:-enable}-scrollbar" >&5
6612 no_cache=0
6613 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6614 if test "${enable_scrollbar+set}" = set; then
6615 enableval="$enable_scrollbar"
6616
6617 if test "$enableval" = yes; then
6618 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6619 else
6620 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6621 fi
6622
6623 else
6624
6625 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6626 if test "x$LINE" != x ; then
6627 eval "DEFAULT_$LINE"
6628 else
6629 no_cache=1
6630 fi
6631
6632 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6633
6634 fi
6635
6636
6637 eval "$ac_cv_use_scrollbar"
6638 if test "$no_cache" != 1; then
6639 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6640 fi
6641
6642 if test "$wxUSE_SCROLLBAR" = yes; then
6643 echo "$ac_t""yes" 1>&6
6644 else
6645 echo "$ac_t""no" 1>&6
6646 fi
6647
6648
6649 enablestring=
6650 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6651 echo "configure:6652: checking for --${enablestring:-enable}-slider" >&5
6652 no_cache=0
6653 # Check whether --enable-slider or --disable-slider was given.
6654 if test "${enable_slider+set}" = set; then
6655 enableval="$enable_slider"
6656
6657 if test "$enableval" = yes; then
6658 ac_cv_use_slider='wxUSE_SLIDER=yes'
6659 else
6660 ac_cv_use_slider='wxUSE_SLIDER=no'
6661 fi
6662
6663 else
6664
6665 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6666 if test "x$LINE" != x ; then
6667 eval "DEFAULT_$LINE"
6668 else
6669 no_cache=1
6670 fi
6671
6672 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6673
6674 fi
6675
6676
6677 eval "$ac_cv_use_slider"
6678 if test "$no_cache" != 1; then
6679 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6680 fi
6681
6682 if test "$wxUSE_SLIDER" = yes; then
6683 echo "$ac_t""yes" 1>&6
6684 else
6685 echo "$ac_t""no" 1>&6
6686 fi
6687
6688
6689 enablestring=
6690 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6691 echo "configure:6692: checking for --${enablestring:-enable}-spinbtn" >&5
6692 no_cache=0
6693 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6694 if test "${enable_spinbtn+set}" = set; then
6695 enableval="$enable_spinbtn"
6696
6697 if test "$enableval" = yes; then
6698 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6699 else
6700 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6701 fi
6702
6703 else
6704
6705 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6706 if test "x$LINE" != x ; then
6707 eval "DEFAULT_$LINE"
6708 else
6709 no_cache=1
6710 fi
6711
6712 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6713
6714 fi
6715
6716
6717 eval "$ac_cv_use_spinbtn"
6718 if test "$no_cache" != 1; then
6719 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6720 fi
6721
6722 if test "$wxUSE_SPINBTN" = yes; then
6723 echo "$ac_t""yes" 1>&6
6724 else
6725 echo "$ac_t""no" 1>&6
6726 fi
6727
6728
6729 enablestring=
6730 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6731 echo "configure:6732: checking for --${enablestring:-enable}-spinctrl" >&5
6732 no_cache=0
6733 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6734 if test "${enable_spinctrl+set}" = set; then
6735 enableval="$enable_spinctrl"
6736
6737 if test "$enableval" = yes; then
6738 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6739 else
6740 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6741 fi
6742
6743 else
6744
6745 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6746 if test "x$LINE" != x ; then
6747 eval "DEFAULT_$LINE"
6748 else
6749 no_cache=1
6750 fi
6751
6752 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6753
6754 fi
6755
6756
6757 eval "$ac_cv_use_spinctrl"
6758 if test "$no_cache" != 1; then
6759 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6760 fi
6761
6762 if test "$wxUSE_SPINCTRL" = yes; then
6763 echo "$ac_t""yes" 1>&6
6764 else
6765 echo "$ac_t""no" 1>&6
6766 fi
6767
6768
6769 enablestring=
6770 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6771 echo "configure:6772: checking for --${enablestring:-enable}-splitter" >&5
6772 no_cache=0
6773 # Check whether --enable-splitter or --disable-splitter was given.
6774 if test "${enable_splitter+set}" = set; then
6775 enableval="$enable_splitter"
6776
6777 if test "$enableval" = yes; then
6778 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6779 else
6780 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6781 fi
6782
6783 else
6784
6785 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6786 if test "x$LINE" != x ; then
6787 eval "DEFAULT_$LINE"
6788 else
6789 no_cache=1
6790 fi
6791
6792 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6793
6794 fi
6795
6796
6797 eval "$ac_cv_use_splitter"
6798 if test "$no_cache" != 1; then
6799 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6800 fi
6801
6802 if test "$wxUSE_SPLITTER" = yes; then
6803 echo "$ac_t""yes" 1>&6
6804 else
6805 echo "$ac_t""no" 1>&6
6806 fi
6807
6808
6809 enablestring=
6810 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6811 echo "configure:6812: checking for --${enablestring:-enable}-statbmp" >&5
6812 no_cache=0
6813 # Check whether --enable-statbmp or --disable-statbmp was given.
6814 if test "${enable_statbmp+set}" = set; then
6815 enableval="$enable_statbmp"
6816
6817 if test "$enableval" = yes; then
6818 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6819 else
6820 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6821 fi
6822
6823 else
6824
6825 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6826 if test "x$LINE" != x ; then
6827 eval "DEFAULT_$LINE"
6828 else
6829 no_cache=1
6830 fi
6831
6832 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6833
6834 fi
6835
6836
6837 eval "$ac_cv_use_statbmp"
6838 if test "$no_cache" != 1; then
6839 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6840 fi
6841
6842 if test "$wxUSE_STATBMP" = yes; then
6843 echo "$ac_t""yes" 1>&6
6844 else
6845 echo "$ac_t""no" 1>&6
6846 fi
6847
6848
6849 enablestring=
6850 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6851 echo "configure:6852: checking for --${enablestring:-enable}-statbox" >&5
6852 no_cache=0
6853 # Check whether --enable-statbox or --disable-statbox was given.
6854 if test "${enable_statbox+set}" = set; then
6855 enableval="$enable_statbox"
6856
6857 if test "$enableval" = yes; then
6858 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6859 else
6860 ac_cv_use_statbox='wxUSE_STATBOX=no'
6861 fi
6862
6863 else
6864
6865 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6866 if test "x$LINE" != x ; then
6867 eval "DEFAULT_$LINE"
6868 else
6869 no_cache=1
6870 fi
6871
6872 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6873
6874 fi
6875
6876
6877 eval "$ac_cv_use_statbox"
6878 if test "$no_cache" != 1; then
6879 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6880 fi
6881
6882 if test "$wxUSE_STATBOX" = yes; then
6883 echo "$ac_t""yes" 1>&6
6884 else
6885 echo "$ac_t""no" 1>&6
6886 fi
6887
6888
6889 enablestring=
6890 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
6891 echo "configure:6892: checking for --${enablestring:-enable}-statline" >&5
6892 no_cache=0
6893 # Check whether --enable-statline or --disable-statline was given.
6894 if test "${enable_statline+set}" = set; then
6895 enableval="$enable_statline"
6896
6897 if test "$enableval" = yes; then
6898 ac_cv_use_statline='wxUSE_STATLINE=yes'
6899 else
6900 ac_cv_use_statline='wxUSE_STATLINE=no'
6901 fi
6902
6903 else
6904
6905 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6906 if test "x$LINE" != x ; then
6907 eval "DEFAULT_$LINE"
6908 else
6909 no_cache=1
6910 fi
6911
6912 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6913
6914 fi
6915
6916
6917 eval "$ac_cv_use_statline"
6918 if test "$no_cache" != 1; then
6919 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6920 fi
6921
6922 if test "$wxUSE_STATLINE" = yes; then
6923 echo "$ac_t""yes" 1>&6
6924 else
6925 echo "$ac_t""no" 1>&6
6926 fi
6927
6928
6929 enablestring=
6930 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
6931 echo "configure:6932: checking for --${enablestring:-enable}-stattext" >&5
6932 no_cache=0
6933 # Check whether --enable-stattext or --disable-stattext was given.
6934 if test "${enable_stattext+set}" = set; then
6935 enableval="$enable_stattext"
6936
6937 if test "$enableval" = yes; then
6938 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6939 else
6940 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6941 fi
6942
6943 else
6944
6945 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6946 if test "x$LINE" != x ; then
6947 eval "DEFAULT_$LINE"
6948 else
6949 no_cache=1
6950 fi
6951
6952 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6953
6954 fi
6955
6956
6957 eval "$ac_cv_use_stattext"
6958 if test "$no_cache" != 1; then
6959 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6960 fi
6961
6962 if test "$wxUSE_STATTEXT" = yes; then
6963 echo "$ac_t""yes" 1>&6
6964 else
6965 echo "$ac_t""no" 1>&6
6966 fi
6967
6968
6969 enablestring=
6970 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
6971 echo "configure:6972: checking for --${enablestring:-enable}-statusbar" >&5
6972 no_cache=0
6973 # Check whether --enable-statusbar or --disable-statusbar was given.
6974 if test "${enable_statusbar+set}" = set; then
6975 enableval="$enable_statusbar"
6976
6977 if test "$enableval" = yes; then
6978 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6979 else
6980 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6981 fi
6982
6983 else
6984
6985 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6986 if test "x$LINE" != x ; then
6987 eval "DEFAULT_$LINE"
6988 else
6989 no_cache=1
6990 fi
6991
6992 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6993
6994 fi
6995
6996
6997 eval "$ac_cv_use_statusbar"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_STATUSBAR" = yes; then
7003 echo "$ac_t""yes" 1>&6
7004 else
7005 echo "$ac_t""no" 1>&6
7006 fi
7007
7008
7009 enablestring=
7010 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7011 echo "configure:7012: checking for --${enablestring:-enable}-tabdialog" >&5
7012 no_cache=0
7013 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7014 if test "${enable_tabdialog+set}" = set; then
7015 enableval="$enable_tabdialog"
7016
7017 if test "$enableval" = yes; then
7018 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7019 else
7020 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7021 fi
7022
7023 else
7024
7025 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7026 if test "x$LINE" != x ; then
7027 eval "DEFAULT_$LINE"
7028 else
7029 no_cache=1
7030 fi
7031
7032 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7033
7034 fi
7035
7036
7037 eval "$ac_cv_use_tabdialog"
7038 if test "$no_cache" != 1; then
7039 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7040 fi
7041
7042 if test "$wxUSE_TABDIALOG" = yes; then
7043 echo "$ac_t""yes" 1>&6
7044 else
7045 echo "$ac_t""no" 1>&6
7046 fi
7047
7048
7049 enablestring=
7050 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7051 echo "configure:7052: checking for --${enablestring:-enable}-textctrl" >&5
7052 no_cache=0
7053 # Check whether --enable-textctrl or --disable-textctrl was given.
7054 if test "${enable_textctrl+set}" = set; then
7055 enableval="$enable_textctrl"
7056
7057 if test "$enableval" = yes; then
7058 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7059 else
7060 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7061 fi
7062
7063 else
7064
7065 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7066 if test "x$LINE" != x ; then
7067 eval "DEFAULT_$LINE"
7068 else
7069 no_cache=1
7070 fi
7071
7072 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7073
7074 fi
7075
7076
7077 eval "$ac_cv_use_textctrl"
7078 if test "$no_cache" != 1; then
7079 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7080 fi
7081
7082 if test "$wxUSE_TEXTCTRL" = yes; then
7083 echo "$ac_t""yes" 1>&6
7084 else
7085 echo "$ac_t""no" 1>&6
7086 fi
7087
7088
7089 enablestring=
7090 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7091 echo "configure:7092: checking for --${enablestring:-enable}-togglebtn" >&5
7092 no_cache=0
7093 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7094 if test "${enable_togglebtn+set}" = set; then
7095 enableval="$enable_togglebtn"
7096
7097 if test "$enableval" = yes; then
7098 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7099 else
7100 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7101 fi
7102
7103 else
7104
7105 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7106 if test "x$LINE" != x ; then
7107 eval "DEFAULT_$LINE"
7108 else
7109 no_cache=1
7110 fi
7111
7112 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7113
7114 fi
7115
7116
7117 eval "$ac_cv_use_togglebtn"
7118 if test "$no_cache" != 1; then
7119 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7120 fi
7121
7122 if test "$wxUSE_TOGGLEBTN" = yes; then
7123 echo "$ac_t""yes" 1>&6
7124 else
7125 echo "$ac_t""no" 1>&6
7126 fi
7127
7128
7129 enablestring=
7130 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7131 echo "configure:7132: checking for --${enablestring:-enable}-toolbar" >&5
7132 no_cache=0
7133 # Check whether --enable-toolbar or --disable-toolbar was given.
7134 if test "${enable_toolbar+set}" = set; then
7135 enableval="$enable_toolbar"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7139 else
7140 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7141 fi
7142
7143 else
7144
7145 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7153
7154 fi
7155
7156
7157 eval "$ac_cv_use_toolbar"
7158 if test "$no_cache" != 1; then
7159 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7160 fi
7161
7162 if test "$wxUSE_TOOLBAR" = yes; then
7163 echo "$ac_t""yes" 1>&6
7164 else
7165 echo "$ac_t""no" 1>&6
7166 fi
7167
7168
7169 enablestring=
7170 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7171 echo "configure:7172: checking for --${enablestring:-enable}-tbarnative" >&5
7172 no_cache=0
7173 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7174 if test "${enable_tbarnative+set}" = set; then
7175 enableval="$enable_tbarnative"
7176
7177 if test "$enableval" = yes; then
7178 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7179 else
7180 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7181 fi
7182
7183 else
7184
7185 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7186 if test "x$LINE" != x ; then
7187 eval "DEFAULT_$LINE"
7188 else
7189 no_cache=1
7190 fi
7191
7192 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7193
7194 fi
7195
7196
7197 eval "$ac_cv_use_tbarnative"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7203 echo "$ac_t""yes" 1>&6
7204 else
7205 echo "$ac_t""no" 1>&6
7206 fi
7207
7208
7209 enablestring=
7210 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7211 echo "configure:7212: checking for --${enablestring:-enable}-tbarsmpl" >&5
7212 no_cache=0
7213 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7214 if test "${enable_tbarsmpl+set}" = set; then
7215 enableval="$enable_tbarsmpl"
7216
7217 if test "$enableval" = yes; then
7218 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7219 else
7220 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7221 fi
7222
7223 else
7224
7225 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7226 if test "x$LINE" != x ; then
7227 eval "DEFAULT_$LINE"
7228 else
7229 no_cache=1
7230 fi
7231
7232 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7233
7234 fi
7235
7236
7237 eval "$ac_cv_use_tbarsmpl"
7238 if test "$no_cache" != 1; then
7239 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7240 fi
7241
7242 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7243 echo "$ac_t""yes" 1>&6
7244 else
7245 echo "$ac_t""no" 1>&6
7246 fi
7247
7248
7249 enablestring=
7250 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7251 echo "configure:7252: checking for --${enablestring:-enable}-treectrl" >&5
7252 no_cache=0
7253 # Check whether --enable-treectrl or --disable-treectrl was given.
7254 if test "${enable_treectrl+set}" = set; then
7255 enableval="$enable_treectrl"
7256
7257 if test "$enableval" = yes; then
7258 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7259 else
7260 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7261 fi
7262
7263 else
7264
7265 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7266 if test "x$LINE" != x ; then
7267 eval "DEFAULT_$LINE"
7268 else
7269 no_cache=1
7270 fi
7271
7272 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7273
7274 fi
7275
7276
7277 eval "$ac_cv_use_treectrl"
7278 if test "$no_cache" != 1; then
7279 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7280 fi
7281
7282 if test "$wxUSE_TREECTRL" = yes; then
7283 echo "$ac_t""yes" 1>&6
7284 else
7285 echo "$ac_t""no" 1>&6
7286 fi
7287
7288
7289 enablestring=
7290 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7291 echo "configure:7292: checking for --${enablestring:-enable}-tipwindow" >&5
7292 no_cache=0
7293 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7294 if test "${enable_tipwindow+set}" = set; then
7295 enableval="$enable_tipwindow"
7296
7297 if test "$enableval" = yes; then
7298 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7299 else
7300 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7301 fi
7302
7303 else
7304
7305 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7306 if test "x$LINE" != x ; then
7307 eval "DEFAULT_$LINE"
7308 else
7309 no_cache=1
7310 fi
7311
7312 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7313
7314 fi
7315
7316
7317 eval "$ac_cv_use_tipwindow"
7318 if test "$no_cache" != 1; then
7319 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7320 fi
7321
7322 if test "$wxUSE_TIPWINDOW" = yes; then
7323 echo "$ac_t""yes" 1>&6
7324 else
7325 echo "$ac_t""no" 1>&6
7326 fi
7327
7328
7329 enablestring=
7330 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7331 echo "configure:7332: checking for --${enablestring:-enable}-popupwin" >&5
7332 no_cache=0
7333 # Check whether --enable-popupwin or --disable-popupwin was given.
7334 if test "${enable_popupwin+set}" = set; then
7335 enableval="$enable_popupwin"
7336
7337 if test "$enableval" = yes; then
7338 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7339 else
7340 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7341 fi
7342
7343 else
7344
7345 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7346 if test "x$LINE" != x ; then
7347 eval "DEFAULT_$LINE"
7348 else
7349 no_cache=1
7350 fi
7351
7352 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7353
7354 fi
7355
7356
7357 eval "$ac_cv_use_popupwin"
7358 if test "$no_cache" != 1; then
7359 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7360 fi
7361
7362 if test "$wxUSE_POPUPWIN" = yes; then
7363 echo "$ac_t""yes" 1>&6
7364 else
7365 echo "$ac_t""no" 1>&6
7366 fi
7367
7368
7369
7370
7371 enablestring=
7372 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7373 echo "configure:7374: checking for --${enablestring:-enable}-commondlg" >&5
7374 no_cache=0
7375 # Check whether --enable-commondlg or --disable-commondlg was given.
7376 if test "${enable_commondlg+set}" = set; then
7377 enableval="$enable_commondlg"
7378
7379 if test "$enableval" = yes; then
7380 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7381 else
7382 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7383 fi
7384
7385 else
7386
7387 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7388 if test "x$LINE" != x ; then
7389 eval "DEFAULT_$LINE"
7390 else
7391 no_cache=1
7392 fi
7393
7394 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7395
7396 fi
7397
7398
7399 eval "$ac_cv_use_commondlg"
7400 if test "$no_cache" != 1; then
7401 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7402 fi
7403
7404 if test "$wxUSE_COMMONDLGS" = yes; then
7405 echo "$ac_t""yes" 1>&6
7406 else
7407 echo "$ac_t""no" 1>&6
7408 fi
7409
7410
7411 enablestring=
7412 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7413 echo "configure:7414: checking for --${enablestring:-enable}-choicedlg" >&5
7414 no_cache=0
7415 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7416 if test "${enable_choicedlg+set}" = set; then
7417 enableval="$enable_choicedlg"
7418
7419 if test "$enableval" = yes; then
7420 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7421 else
7422 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7423 fi
7424
7425 else
7426
7427 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7428 if test "x$LINE" != x ; then
7429 eval "DEFAULT_$LINE"
7430 else
7431 no_cache=1
7432 fi
7433
7434 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7435
7436 fi
7437
7438
7439 eval "$ac_cv_use_choicedlg"
7440 if test "$no_cache" != 1; then
7441 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7442 fi
7443
7444 if test "$wxUSE_CHOICEDLG" = yes; then
7445 echo "$ac_t""yes" 1>&6
7446 else
7447 echo "$ac_t""no" 1>&6
7448 fi
7449
7450
7451 enablestring=
7452 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7453 echo "configure:7454: checking for --${enablestring:-enable}-coldlg" >&5
7454 no_cache=0
7455 # Check whether --enable-coldlg or --disable-coldlg was given.
7456 if test "${enable_coldlg+set}" = set; then
7457 enableval="$enable_coldlg"
7458
7459 if test "$enableval" = yes; then
7460 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7461 else
7462 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7463 fi
7464
7465 else
7466
7467 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7468 if test "x$LINE" != x ; then
7469 eval "DEFAULT_$LINE"
7470 else
7471 no_cache=1
7472 fi
7473
7474 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7475
7476 fi
7477
7478
7479 eval "$ac_cv_use_coldlg"
7480 if test "$no_cache" != 1; then
7481 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7482 fi
7483
7484 if test "$wxUSE_COLOURDLG" = yes; then
7485 echo "$ac_t""yes" 1>&6
7486 else
7487 echo "$ac_t""no" 1>&6
7488 fi
7489
7490
7491 enablestring=
7492 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7493 echo "configure:7494: checking for --${enablestring:-enable}-filedlg" >&5
7494 no_cache=0
7495 # Check whether --enable-filedlg or --disable-filedlg was given.
7496 if test "${enable_filedlg+set}" = set; then
7497 enableval="$enable_filedlg"
7498
7499 if test "$enableval" = yes; then
7500 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7501 else
7502 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7503 fi
7504
7505 else
7506
7507 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7508 if test "x$LINE" != x ; then
7509 eval "DEFAULT_$LINE"
7510 else
7511 no_cache=1
7512 fi
7513
7514 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7515
7516 fi
7517
7518
7519 eval "$ac_cv_use_filedlg"
7520 if test "$no_cache" != 1; then
7521 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7522 fi
7523
7524 if test "$wxUSE_FILEDLG" = yes; then
7525 echo "$ac_t""yes" 1>&6
7526 else
7527 echo "$ac_t""no" 1>&6
7528 fi
7529
7530
7531 enablestring=
7532 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7533 echo "configure:7534: checking for --${enablestring:-enable}-finddlg" >&5
7534 no_cache=0
7535 # Check whether --enable-finddlg or --disable-finddlg was given.
7536 if test "${enable_finddlg+set}" = set; then
7537 enableval="$enable_finddlg"
7538
7539 if test "$enableval" = yes; then
7540 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7541 else
7542 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7543 fi
7544
7545 else
7546
7547 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7548 if test "x$LINE" != x ; then
7549 eval "DEFAULT_$LINE"
7550 else
7551 no_cache=1
7552 fi
7553
7554 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7555
7556 fi
7557
7558
7559 eval "$ac_cv_use_finddlg"
7560 if test "$no_cache" != 1; then
7561 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7562 fi
7563
7564 if test "$wxUSE_FINDREPLDLG" = yes; then
7565 echo "$ac_t""yes" 1>&6
7566 else
7567 echo "$ac_t""no" 1>&6
7568 fi
7569
7570
7571 enablestring=
7572 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7573 echo "configure:7574: checking for --${enablestring:-enable}-fontdlg" >&5
7574 no_cache=0
7575 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7576 if test "${enable_fontdlg+set}" = set; then
7577 enableval="$enable_fontdlg"
7578
7579 if test "$enableval" = yes; then
7580 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7581 else
7582 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7583 fi
7584
7585 else
7586
7587 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7588 if test "x$LINE" != x ; then
7589 eval "DEFAULT_$LINE"
7590 else
7591 no_cache=1
7592 fi
7593
7594 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7595
7596 fi
7597
7598
7599 eval "$ac_cv_use_fontdlg"
7600 if test "$no_cache" != 1; then
7601 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7602 fi
7603
7604 if test "$wxUSE_FONTDLG" = yes; then
7605 echo "$ac_t""yes" 1>&6
7606 else
7607 echo "$ac_t""no" 1>&6
7608 fi
7609
7610
7611 enablestring=
7612 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7613 echo "configure:7614: checking for --${enablestring:-enable}-dirdlg" >&5
7614 no_cache=0
7615 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7616 if test "${enable_dirdlg+set}" = set; then
7617 enableval="$enable_dirdlg"
7618
7619 if test "$enableval" = yes; then
7620 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7621 else
7622 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7623 fi
7624
7625 else
7626
7627 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7628 if test "x$LINE" != x ; then
7629 eval "DEFAULT_$LINE"
7630 else
7631 no_cache=1
7632 fi
7633
7634 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7635
7636 fi
7637
7638
7639 eval "$ac_cv_use_dirdlg"
7640 if test "$no_cache" != 1; then
7641 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7642 fi
7643
7644 if test "$wxUSE_DIRDLG" = yes; then
7645 echo "$ac_t""yes" 1>&6
7646 else
7647 echo "$ac_t""no" 1>&6
7648 fi
7649
7650
7651 enablestring=
7652 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7653 echo "configure:7654: checking for --${enablestring:-enable}-msgdlg" >&5
7654 no_cache=0
7655 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7656 if test "${enable_msgdlg+set}" = set; then
7657 enableval="$enable_msgdlg"
7658
7659 if test "$enableval" = yes; then
7660 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7661 else
7662 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7663 fi
7664
7665 else
7666
7667 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7668 if test "x$LINE" != x ; then
7669 eval "DEFAULT_$LINE"
7670 else
7671 no_cache=1
7672 fi
7673
7674 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7675
7676 fi
7677
7678
7679 eval "$ac_cv_use_msgdlg"
7680 if test "$no_cache" != 1; then
7681 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7682 fi
7683
7684 if test "$wxUSE_MSGDLG" = yes; then
7685 echo "$ac_t""yes" 1>&6
7686 else
7687 echo "$ac_t""no" 1>&6
7688 fi
7689
7690
7691 enablestring=
7692 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7693 echo "configure:7694: checking for --${enablestring:-enable}-numberdlg" >&5
7694 no_cache=0
7695 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7696 if test "${enable_numberdlg+set}" = set; then
7697 enableval="$enable_numberdlg"
7698
7699 if test "$enableval" = yes; then
7700 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7701 else
7702 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7703 fi
7704
7705 else
7706
7707 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7708 if test "x$LINE" != x ; then
7709 eval "DEFAULT_$LINE"
7710 else
7711 no_cache=1
7712 fi
7713
7714 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7715
7716 fi
7717
7718
7719 eval "$ac_cv_use_numberdlg"
7720 if test "$no_cache" != 1; then
7721 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7722 fi
7723
7724 if test "$wxUSE_NUMBERDLG" = yes; then
7725 echo "$ac_t""yes" 1>&6
7726 else
7727 echo "$ac_t""no" 1>&6
7728 fi
7729
7730
7731 enablestring=
7732 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7733 echo "configure:7734: checking for --${enablestring:-enable}-splash" >&5
7734 no_cache=0
7735 # Check whether --enable-splash or --disable-splash was given.
7736 if test "${enable_splash+set}" = set; then
7737 enableval="$enable_splash"
7738
7739 if test "$enableval" = yes; then
7740 ac_cv_use_splash='wxUSE_SPLASH=yes'
7741 else
7742 ac_cv_use_splash='wxUSE_SPLASH=no'
7743 fi
7744
7745 else
7746
7747 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7748 if test "x$LINE" != x ; then
7749 eval "DEFAULT_$LINE"
7750 else
7751 no_cache=1
7752 fi
7753
7754 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7755
7756 fi
7757
7758
7759 eval "$ac_cv_use_splash"
7760 if test "$no_cache" != 1; then
7761 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7762 fi
7763
7764 if test "$wxUSE_SPLASH" = yes; then
7765 echo "$ac_t""yes" 1>&6
7766 else
7767 echo "$ac_t""no" 1>&6
7768 fi
7769
7770
7771 enablestring=
7772 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7773 echo "configure:7774: checking for --${enablestring:-enable}-textdlg" >&5
7774 no_cache=0
7775 # Check whether --enable-textdlg or --disable-textdlg was given.
7776 if test "${enable_textdlg+set}" = set; then
7777 enableval="$enable_textdlg"
7778
7779 if test "$enableval" = yes; then
7780 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7781 else
7782 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7783 fi
7784
7785 else
7786
7787 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7788 if test "x$LINE" != x ; then
7789 eval "DEFAULT_$LINE"
7790 else
7791 no_cache=1
7792 fi
7793
7794 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7795
7796 fi
7797
7798
7799 eval "$ac_cv_use_textdlg"
7800 if test "$no_cache" != 1; then
7801 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7802 fi
7803
7804 if test "$wxUSE_TEXTDLG" = yes; then
7805 echo "$ac_t""yes" 1>&6
7806 else
7807 echo "$ac_t""no" 1>&6
7808 fi
7809
7810
7811 enablestring=
7812 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7813 echo "configure:7814: checking for --${enablestring:-enable}-tipdlg" >&5
7814 no_cache=0
7815 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7816 if test "${enable_tipdlg+set}" = set; then
7817 enableval="$enable_tipdlg"
7818
7819 if test "$enableval" = yes; then
7820 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7821 else
7822 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7823 fi
7824
7825 else
7826
7827 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7828 if test "x$LINE" != x ; then
7829 eval "DEFAULT_$LINE"
7830 else
7831 no_cache=1
7832 fi
7833
7834 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7835
7836 fi
7837
7838
7839 eval "$ac_cv_use_tipdlg"
7840 if test "$no_cache" != 1; then
7841 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7842 fi
7843
7844 if test "$wxUSE_STARTUP_TIPS" = yes; then
7845 echo "$ac_t""yes" 1>&6
7846 else
7847 echo "$ac_t""no" 1>&6
7848 fi
7849
7850
7851 enablestring=
7852 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7853 echo "configure:7854: checking for --${enablestring:-enable}-progressdlg" >&5
7854 no_cache=0
7855 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7856 if test "${enable_progressdlg+set}" = set; then
7857 enableval="$enable_progressdlg"
7858
7859 if test "$enableval" = yes; then
7860 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7861 else
7862 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7863 fi
7864
7865 else
7866
7867 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7868 if test "x$LINE" != x ; then
7869 eval "DEFAULT_$LINE"
7870 else
7871 no_cache=1
7872 fi
7873
7874 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7875
7876 fi
7877
7878
7879 eval "$ac_cv_use_progressdlg"
7880 if test "$no_cache" != 1; then
7881 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7882 fi
7883
7884 if test "$wxUSE_PROGRESSDLG" = yes; then
7885 echo "$ac_t""yes" 1>&6
7886 else
7887 echo "$ac_t""no" 1>&6
7888 fi
7889
7890
7891 enablestring=
7892 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7893 echo "configure:7894: checking for --${enablestring:-enable}-wizarddlg" >&5
7894 no_cache=0
7895 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7896 if test "${enable_wizarddlg+set}" = set; then
7897 enableval="$enable_wizarddlg"
7898
7899 if test "$enableval" = yes; then
7900 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7901 else
7902 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7903 fi
7904
7905 else
7906
7907 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7908 if test "x$LINE" != x ; then
7909 eval "DEFAULT_$LINE"
7910 else
7911 no_cache=1
7912 fi
7913
7914 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7915
7916 fi
7917
7918
7919 eval "$ac_cv_use_wizarddlg"
7920 if test "$no_cache" != 1; then
7921 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7922 fi
7923
7924 if test "$wxUSE_WIZARDDLG" = yes; then
7925 echo "$ac_t""yes" 1>&6
7926 else
7927 echo "$ac_t""no" 1>&6
7928 fi
7929
7930
7931
7932
7933 enablestring=
7934 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
7935 echo "configure:7936: checking for --${enablestring:-enable}-menus" >&5
7936 no_cache=0
7937 # Check whether --enable-menus or --disable-menus was given.
7938 if test "${enable_menus+set}" = set; then
7939 enableval="$enable_menus"
7940
7941 if test "$enableval" = yes; then
7942 ac_cv_use_menus='wxUSE_MENUS=yes'
7943 else
7944 ac_cv_use_menus='wxUSE_MENUS=no'
7945 fi
7946
7947 else
7948
7949 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7950 if test "x$LINE" != x ; then
7951 eval "DEFAULT_$LINE"
7952 else
7953 no_cache=1
7954 fi
7955
7956 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7957
7958 fi
7959
7960
7961 eval "$ac_cv_use_menus"
7962 if test "$no_cache" != 1; then
7963 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7964 fi
7965
7966 if test "$wxUSE_MENUS" = yes; then
7967 echo "$ac_t""yes" 1>&6
7968 else
7969 echo "$ac_t""no" 1>&6
7970 fi
7971
7972
7973 enablestring=
7974 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
7975 echo "configure:7976: checking for --${enablestring:-enable}-miniframe" >&5
7976 no_cache=0
7977 # Check whether --enable-miniframe or --disable-miniframe was given.
7978 if test "${enable_miniframe+set}" = set; then
7979 enableval="$enable_miniframe"
7980
7981 if test "$enableval" = yes; then
7982 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7983 else
7984 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7985 fi
7986
7987 else
7988
7989 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7990 if test "x$LINE" != x ; then
7991 eval "DEFAULT_$LINE"
7992 else
7993 no_cache=1
7994 fi
7995
7996 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7997
7998 fi
7999
8000
8001 eval "$ac_cv_use_miniframe"
8002 if test "$no_cache" != 1; then
8003 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8004 fi
8005
8006 if test "$wxUSE_MINIFRAME" = yes; then
8007 echo "$ac_t""yes" 1>&6
8008 else
8009 echo "$ac_t""no" 1>&6
8010 fi
8011
8012
8013 enablestring=
8014 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8015 echo "configure:8016: checking for --${enablestring:-enable}-tooltips" >&5
8016 no_cache=0
8017 # Check whether --enable-tooltips or --disable-tooltips was given.
8018 if test "${enable_tooltips+set}" = set; then
8019 enableval="$enable_tooltips"
8020
8021 if test "$enableval" = yes; then
8022 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8023 else
8024 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8025 fi
8026
8027 else
8028
8029 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8030 if test "x$LINE" != x ; then
8031 eval "DEFAULT_$LINE"
8032 else
8033 no_cache=1
8034 fi
8035
8036 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8037
8038 fi
8039
8040
8041 eval "$ac_cv_use_tooltips"
8042 if test "$no_cache" != 1; then
8043 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8044 fi
8045
8046 if test "$wxUSE_TOOLTIPS" = yes; then
8047 echo "$ac_t""yes" 1>&6
8048 else
8049 echo "$ac_t""no" 1>&6
8050 fi
8051
8052
8053 enablestring=
8054 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8055 echo "configure:8056: checking for --${enablestring:-enable}-splines" >&5
8056 no_cache=0
8057 # Check whether --enable-splines or --disable-splines was given.
8058 if test "${enable_splines+set}" = set; then
8059 enableval="$enable_splines"
8060
8061 if test "$enableval" = yes; then
8062 ac_cv_use_splines='wxUSE_SPLINES=yes'
8063 else
8064 ac_cv_use_splines='wxUSE_SPLINES=no'
8065 fi
8066
8067 else
8068
8069 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8070 if test "x$LINE" != x ; then
8071 eval "DEFAULT_$LINE"
8072 else
8073 no_cache=1
8074 fi
8075
8076 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8077
8078 fi
8079
8080
8081 eval "$ac_cv_use_splines"
8082 if test "$no_cache" != 1; then
8083 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8084 fi
8085
8086 if test "$wxUSE_SPLINES" = yes; then
8087 echo "$ac_t""yes" 1>&6
8088 else
8089 echo "$ac_t""no" 1>&6
8090 fi
8091
8092
8093 enablestring=
8094 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8095 echo "configure:8096: checking for --${enablestring:-enable}-validators" >&5
8096 no_cache=0
8097 # Check whether --enable-validators or --disable-validators was given.
8098 if test "${enable_validators+set}" = set; then
8099 enableval="$enable_validators"
8100
8101 if test "$enableval" = yes; then
8102 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8103 else
8104 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8105 fi
8106
8107 else
8108
8109 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8110 if test "x$LINE" != x ; then
8111 eval "DEFAULT_$LINE"
8112 else
8113 no_cache=1
8114 fi
8115
8116 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8117
8118 fi
8119
8120
8121 eval "$ac_cv_use_validators"
8122 if test "$no_cache" != 1; then
8123 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8124 fi
8125
8126 if test "$wxUSE_VALIDATORS" = yes; then
8127 echo "$ac_t""yes" 1>&6
8128 else
8129 echo "$ac_t""no" 1>&6
8130 fi
8131
8132
8133 enablestring=
8134 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8135 echo "configure:8136: checking for --${enablestring:-enable}-busyinfo" >&5
8136 no_cache=0
8137 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8138 if test "${enable_busyinfo+set}" = set; then
8139 enableval="$enable_busyinfo"
8140
8141 if test "$enableval" = yes; then
8142 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8143 else
8144 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8145 fi
8146
8147 else
8148
8149 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8150 if test "x$LINE" != x ; then
8151 eval "DEFAULT_$LINE"
8152 else
8153 no_cache=1
8154 fi
8155
8156 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8157
8158 fi
8159
8160
8161 eval "$ac_cv_use_busyinfo"
8162 if test "$no_cache" != 1; then
8163 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8164 fi
8165
8166 if test "$wxUSE_BUSYINFO" = yes; then
8167 echo "$ac_t""yes" 1>&6
8168 else
8169 echo "$ac_t""no" 1>&6
8170 fi
8171
8172
8173 enablestring=
8174 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8175 echo "configure:8176: checking for --${enablestring:-enable}-joystick" >&5
8176 no_cache=0
8177 # Check whether --enable-joystick or --disable-joystick was given.
8178 if test "${enable_joystick+set}" = set; then
8179 enableval="$enable_joystick"
8180
8181 if test "$enableval" = yes; then
8182 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8183 else
8184 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8185 fi
8186
8187 else
8188
8189 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8190 if test "x$LINE" != x ; then
8191 eval "DEFAULT_$LINE"
8192 else
8193 no_cache=1
8194 fi
8195
8196 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8197
8198 fi
8199
8200
8201 eval "$ac_cv_use_joystick"
8202 if test "$no_cache" != 1; then
8203 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8204 fi
8205
8206 if test "$wxUSE_JOYSTICK" = yes; then
8207 echo "$ac_t""yes" 1>&6
8208 else
8209 echo "$ac_t""no" 1>&6
8210 fi
8211
8212
8213 enablestring=
8214 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8215 echo "configure:8216: checking for --${enablestring:-enable}-metafile" >&5
8216 no_cache=0
8217 # Check whether --enable-metafile or --disable-metafile was given.
8218 if test "${enable_metafile+set}" = set; then
8219 enableval="$enable_metafile"
8220
8221 if test "$enableval" = yes; then
8222 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8223 else
8224 ac_cv_use_metafile='wxUSE_METAFILE=no'
8225 fi
8226
8227 else
8228
8229 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8230 if test "x$LINE" != x ; then
8231 eval "DEFAULT_$LINE"
8232 else
8233 no_cache=1
8234 fi
8235
8236 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8237
8238 fi
8239
8240
8241 eval "$ac_cv_use_metafile"
8242 if test "$no_cache" != 1; then
8243 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8244 fi
8245
8246 if test "$wxUSE_METAFILE" = yes; then
8247 echo "$ac_t""yes" 1>&6
8248 else
8249 echo "$ac_t""no" 1>&6
8250 fi
8251
8252
8253 enablestring=
8254 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8255 echo "configure:8256: checking for --${enablestring:-enable}-dragimage" >&5
8256 no_cache=0
8257 # Check whether --enable-dragimage or --disable-dragimage was given.
8258 if test "${enable_dragimage+set}" = set; then
8259 enableval="$enable_dragimage"
8260
8261 if test "$enableval" = yes; then
8262 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8263 else
8264 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8265 fi
8266
8267 else
8268
8269 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8270 if test "x$LINE" != x ; then
8271 eval "DEFAULT_$LINE"
8272 else
8273 no_cache=1
8274 fi
8275
8276 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8277
8278 fi
8279
8280
8281 eval "$ac_cv_use_dragimage"
8282 if test "$no_cache" != 1; then
8283 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8284 fi
8285
8286 if test "$wxUSE_DRAGIMAGE" = yes; then
8287 echo "$ac_t""yes" 1>&6
8288 else
8289 echo "$ac_t""no" 1>&6
8290 fi
8291
8292
8293
8294
8295 enablestring=
8296 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8297 echo "configure:8298: checking for --${enablestring:-enable}-palette" >&5
8298 no_cache=0
8299 # Check whether --enable-palette or --disable-palette was given.
8300 if test "${enable_palette+set}" = set; then
8301 enableval="$enable_palette"
8302
8303 if test "$enableval" = yes; then
8304 ac_cv_use_palette='wxUSE_PALETTE=yes'
8305 else
8306 ac_cv_use_palette='wxUSE_PALETTE=no'
8307 fi
8308
8309 else
8310
8311 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8312 if test "x$LINE" != x ; then
8313 eval "DEFAULT_$LINE"
8314 else
8315 no_cache=1
8316 fi
8317
8318 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8319
8320 fi
8321
8322
8323 eval "$ac_cv_use_palette"
8324 if test "$no_cache" != 1; then
8325 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8326 fi
8327
8328 if test "$wxUSE_PALETTE" = yes; then
8329 echo "$ac_t""yes" 1>&6
8330 else
8331 echo "$ac_t""no" 1>&6
8332 fi
8333
8334
8335 enablestring=
8336 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8337 echo "configure:8338: checking for --${enablestring:-enable}-image" >&5
8338 no_cache=0
8339 # Check whether --enable-image or --disable-image was given.
8340 if test "${enable_image+set}" = set; then
8341 enableval="$enable_image"
8342
8343 if test "$enableval" = yes; then
8344 ac_cv_use_image='wxUSE_IMAGE=yes'
8345 else
8346 ac_cv_use_image='wxUSE_IMAGE=no'
8347 fi
8348
8349 else
8350
8351 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8352 if test "x$LINE" != x ; then
8353 eval "DEFAULT_$LINE"
8354 else
8355 no_cache=1
8356 fi
8357
8358 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8359
8360 fi
8361
8362
8363 eval "$ac_cv_use_image"
8364 if test "$no_cache" != 1; then
8365 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8366 fi
8367
8368 if test "$wxUSE_IMAGE" = yes; then
8369 echo "$ac_t""yes" 1>&6
8370 else
8371 echo "$ac_t""no" 1>&6
8372 fi
8373
8374
8375 enablestring=
8376 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8377 echo "configure:8378: checking for --${enablestring:-enable}-gif" >&5
8378 no_cache=0
8379 # Check whether --enable-gif or --disable-gif was given.
8380 if test "${enable_gif+set}" = set; then
8381 enableval="$enable_gif"
8382
8383 if test "$enableval" = yes; then
8384 ac_cv_use_gif='wxUSE_GIF=yes'
8385 else
8386 ac_cv_use_gif='wxUSE_GIF=no'
8387 fi
8388
8389 else
8390
8391 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8392 if test "x$LINE" != x ; then
8393 eval "DEFAULT_$LINE"
8394 else
8395 no_cache=1
8396 fi
8397
8398 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8399
8400 fi
8401
8402
8403 eval "$ac_cv_use_gif"
8404 if test "$no_cache" != 1; then
8405 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8406 fi
8407
8408 if test "$wxUSE_GIF" = yes; then
8409 echo "$ac_t""yes" 1>&6
8410 else
8411 echo "$ac_t""no" 1>&6
8412 fi
8413
8414
8415 enablestring=
8416 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8417 echo "configure:8418: checking for --${enablestring:-enable}-pcx" >&5
8418 no_cache=0
8419 # Check whether --enable-pcx or --disable-pcx was given.
8420 if test "${enable_pcx+set}" = set; then
8421 enableval="$enable_pcx"
8422
8423 if test "$enableval" = yes; then
8424 ac_cv_use_pcx='wxUSE_PCX=yes'
8425 else
8426 ac_cv_use_pcx='wxUSE_PCX=no'
8427 fi
8428
8429 else
8430
8431 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8432 if test "x$LINE" != x ; then
8433 eval "DEFAULT_$LINE"
8434 else
8435 no_cache=1
8436 fi
8437
8438 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8439
8440 fi
8441
8442
8443 eval "$ac_cv_use_pcx"
8444 if test "$no_cache" != 1; then
8445 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8446 fi
8447
8448 if test "$wxUSE_PCX" = yes; then
8449 echo "$ac_t""yes" 1>&6
8450 else
8451 echo "$ac_t""no" 1>&6
8452 fi
8453
8454
8455 enablestring=
8456 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8457 echo "configure:8458: checking for --${enablestring:-enable}-iff" >&5
8458 no_cache=0
8459 # Check whether --enable-iff or --disable-iff was given.
8460 if test "${enable_iff+set}" = set; then
8461 enableval="$enable_iff"
8462
8463 if test "$enableval" = yes; then
8464 ac_cv_use_iff='wxUSE_IFF=yes'
8465 else
8466 ac_cv_use_iff='wxUSE_IFF=no'
8467 fi
8468
8469 else
8470
8471 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8472 if test "x$LINE" != x ; then
8473 eval "DEFAULT_$LINE"
8474 else
8475 no_cache=1
8476 fi
8477
8478 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8479
8480 fi
8481
8482
8483 eval "$ac_cv_use_iff"
8484 if test "$no_cache" != 1; then
8485 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8486 fi
8487
8488 if test "$wxUSE_IFF" = yes; then
8489 echo "$ac_t""yes" 1>&6
8490 else
8491 echo "$ac_t""no" 1>&6
8492 fi
8493
8494
8495 enablestring=
8496 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8497 echo "configure:8498: checking for --${enablestring:-enable}-pnm" >&5
8498 no_cache=0
8499 # Check whether --enable-pnm or --disable-pnm was given.
8500 if test "${enable_pnm+set}" = set; then
8501 enableval="$enable_pnm"
8502
8503 if test "$enableval" = yes; then
8504 ac_cv_use_pnm='wxUSE_PNM=yes'
8505 else
8506 ac_cv_use_pnm='wxUSE_PNM=no'
8507 fi
8508
8509 else
8510
8511 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8512 if test "x$LINE" != x ; then
8513 eval "DEFAULT_$LINE"
8514 else
8515 no_cache=1
8516 fi
8517
8518 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8519
8520 fi
8521
8522
8523 eval "$ac_cv_use_pnm"
8524 if test "$no_cache" != 1; then
8525 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8526 fi
8527
8528 if test "$wxUSE_PNM" = yes; then
8529 echo "$ac_t""yes" 1>&6
8530 else
8531 echo "$ac_t""no" 1>&6
8532 fi
8533
8534
8535 enablestring=
8536 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8537 echo "configure:8538: checking for --${enablestring:-enable}-xpm" >&5
8538 no_cache=0
8539 # Check whether --enable-xpm or --disable-xpm was given.
8540 if test "${enable_xpm+set}" = set; then
8541 enableval="$enable_xpm"
8542
8543 if test "$enableval" = yes; then
8544 ac_cv_use_xpm='wxUSE_XPM=yes'
8545 else
8546 ac_cv_use_xpm='wxUSE_XPM=no'
8547 fi
8548
8549 else
8550
8551 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8552 if test "x$LINE" != x ; then
8553 eval "DEFAULT_$LINE"
8554 else
8555 no_cache=1
8556 fi
8557
8558 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8559
8560 fi
8561
8562
8563 eval "$ac_cv_use_xpm"
8564 if test "$no_cache" != 1; then
8565 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8566 fi
8567
8568 if test "$wxUSE_XPM" = yes; then
8569 echo "$ac_t""yes" 1>&6
8570 else
8571 echo "$ac_t""no" 1>&6
8572 fi
8573
8574
8575 enablestring=
8576 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8577 echo "configure:8578: checking for --${enablestring:-enable}-ico_cur" >&5
8578 no_cache=0
8579 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8580 if test "${enable_ico_cur+set}" = set; then
8581 enableval="$enable_ico_cur"
8582
8583 if test "$enableval" = yes; then
8584 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8585 else
8586 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8587 fi
8588
8589 else
8590
8591 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8592 if test "x$LINE" != x ; then
8593 eval "DEFAULT_$LINE"
8594 else
8595 no_cache=1
8596 fi
8597
8598 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8599
8600 fi
8601
8602
8603 eval "$ac_cv_use_ico_cur"
8604 if test "$no_cache" != 1; then
8605 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8606 fi
8607
8608 if test "$wxUSE_ICO_CUR" = yes; then
8609 echo "$ac_t""yes" 1>&6
8610 else
8611 echo "$ac_t""no" 1>&6
8612 fi
8613
8614
8615 fi
8616
8617 case "${host}" in
8618 *-pc-os2_emx | *-pc-os2-emx )
8619 PATH_IFS=';'
8620 LEX_STEM="lexyy"
8621 ;;
8622 *)
8623 PATH_IFS=':'
8624 LEX_STEM="lex.yy"
8625 ;;
8626 esac
8627
8628
8629
8630 echo "saving argument cache $wx_arg_cache_file"
8631 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8632
8633
8634
8635 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8636 echo "configure:8637: checking for toolkit" >&5
8637
8638 # In Wine, we need to default to MSW, not GTK or MOTIF
8639 if test "$wxUSE_WINE" = "yes"; then
8640 DEFAULT_DEFAULT_wxUSE_GTK=0
8641 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8642 DEFAULT_DEFAULT_wxUSE_MSW=1
8643 fi
8644
8645 if test "$wxUSE_GUI" = "yes"; then
8646
8647 if test "$USE_BEOS" = 1; then
8648 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8649 fi
8650
8651 if test "$TOOLKIT_GIVEN" = 1; then
8652 for toolkit in `echo $ALL_TOOLKITS`; do
8653 var=wxUSE_$toolkit
8654 eval "value=\$${var}"
8655 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8656 done
8657 else
8658 for toolkit in `echo $ALL_TOOLKITS`; do
8659 if test "$has_toolkit_in_cache" != 1; then
8660 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8661 else
8662 var=DEFAULT_wxUSE_$toolkit
8663 fi
8664 eval "wxUSE_$toolkit=\$${var}"
8665 done
8666 fi
8667
8668 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8669 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8670 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
8671
8672 case "${host}" in
8673 *-pc-os2_emx | *-pc-os2-emx )
8674 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8675 esac
8676
8677 case "$NUM_TOOLKITS" in
8678 1)
8679 ;;
8680 0)
8681 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8682 ;;
8683 *)
8684 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8685 esac
8686
8687 for toolkit in `echo $ALL_TOOLKITS`; do
8688 var=wxUSE_$toolkit
8689 eval "value=\$${var}"
8690 if test "x$value" != x; then
8691 cache_var=CACHE_$toolkit
8692 eval "cache=\$${cache_var}"
8693 if test "$cache" = 1; then
8694 echo "$var=$value" >> ${wx_arg_cache_file}
8695 fi
8696 if test "$value" = 1; then
8697 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8698 echo "$ac_t""$toolkit_echo" 1>&6
8699 fi
8700 fi
8701 done
8702 else
8703 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8704 fi
8705
8706 wants_win32=0
8707 doesnt_want_win32=0
8708 case "${host}" in
8709 *-*-cygwin*)
8710 if test "$wxUSE_MSW" = 1 ; then
8711 wants_win32=1
8712 else
8713 doesnt_want_win32=1
8714 fi
8715 ;;
8716 *-*-mingw*)
8717 wants_win32=1
8718 ;;
8719 esac
8720
8721 if test "$wxUSE_WINE" = "yes"; then
8722 wants_win32=1
8723 CC=winegcc
8724 CXX=wineg++
8725 RESCOMP=wrc
8726 fi
8727
8728 if test "$wants_win32" = 1 ; then
8729 USE_UNIX=0
8730 USE_WIN32=1
8731 cat >> confdefs.h <<\EOF
8732 #define __WIN32__ 1
8733 EOF
8734
8735 cat >> confdefs.h <<\EOF
8736 #define __WIN95__ 1
8737 EOF
8738
8739 cat >> confdefs.h <<\EOF
8740 #define __WINDOWS__ 1
8741 EOF
8742
8743 cat >> confdefs.h <<\EOF
8744 #define __GNUWIN32__ 1
8745 EOF
8746
8747 cat >> confdefs.h <<\EOF
8748 #define STRICT 1
8749 EOF
8750
8751 cat >> confdefs.h <<\EOF
8752 #define WINVER 0x0400
8753 EOF
8754
8755 fi
8756 if test "$doesnt_want_win32" = 1 ; then
8757 USE_UNIX=1
8758 USE_WIN32=0
8759 fi
8760
8761 if test "$USE_UNIX" = 1 ; then
8762 wxUSE_UNIX=yes
8763 cat >> confdefs.h <<\EOF
8764 #define __UNIX__ 1
8765 EOF
8766
8767 fi
8768
8769
8770 cat > confcache <<\EOF
8771 # This file is a shell script that caches the results of configure
8772 # tests run on this system so they can be shared between configure
8773 # scripts and configure runs. It is not useful on other systems.
8774 # If it contains results you don't want to keep, you may remove or edit it.
8775 #
8776 # By default, configure uses ./config.cache as the cache file,
8777 # creating it if it does not exist already. You can give configure
8778 # the --cache-file=FILE option to use a different cache file; that is
8779 # what configure does when it calls configure scripts in
8780 # subdirectories, so they share the cache.
8781 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8782 # config.status only pays attention to the cache file if you give it the
8783 # --recheck option to rerun configure.
8784 #
8785 EOF
8786 # The following way of writing the cache mishandles newlines in values,
8787 # but we know of no workaround that is simple, portable, and efficient.
8788 # So, don't put newlines in cache variables' values.
8789 # Ultrix sh set writes to stderr and can't be redirected directly,
8790 # and sets the high bit in the cache file unless we assign to the vars.
8791 (set) 2>&1 |
8792 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8793 *ac_space=\ *)
8794 # `set' does not quote correctly, so add quotes (double-quote substitution
8795 # turns \\\\ into \\, and sed turns \\ into \).
8796 sed -n \
8797 -e "s/'/'\\\\''/g" \
8798 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8799 ;;
8800 *)
8801 # `set' quotes correctly as required by POSIX, so do not add quotes.
8802 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8803 ;;
8804 esac >> confcache
8805 if cmp -s $cache_file confcache; then
8806 :
8807 else
8808 if test -w $cache_file; then
8809 echo "updating cache $cache_file"
8810 cat confcache > $cache_file
8811 else
8812 echo "not updating unwritable cache $cache_file"
8813 fi
8814 fi
8815 rm -f confcache
8816
8817
8818 if test "$build" != "$host" ; then
8819 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8820 CC=$host_alias-gcc
8821 CXX=$host_alias-c++
8822 AR=$host_alias-ar
8823 RANLIB=$host_alias-ranlib
8824 DLLTOOL=$host_alias-dlltool
8825 RESCOMP=$host_alias-windres
8826 LD=$host_alias-ld
8827 NM=$host_alias-nm
8828 STRIP=$host_alias-strip
8829 else
8830 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8831 fi
8832 fi
8833
8834 CFLAGS=${CFLAGS:=}
8835 # Extract the first word of "gcc", so it can be a program name with args.
8836 set dummy gcc; ac_word=$2
8837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8838 echo "configure:8839: checking for $ac_word" >&5
8839 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
8841 else
8842 if test -n "$CC"; then
8843 ac_cv_prog_CC="$CC" # Let the user override the test.
8844 else
8845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8846 ac_dummy="$PATH"
8847 for ac_dir in $ac_dummy; do
8848 test -z "$ac_dir" && ac_dir=.
8849 if test -f $ac_dir/$ac_word; then
8850 ac_cv_prog_CC="gcc"
8851 break
8852 fi
8853 done
8854 IFS="$ac_save_ifs"
8855 fi
8856 fi
8857 CC="$ac_cv_prog_CC"
8858 if test -n "$CC"; then
8859 echo "$ac_t""$CC" 1>&6
8860 else
8861 echo "$ac_t""no" 1>&6
8862 fi
8863
8864 if test -z "$CC"; then
8865 # Extract the first word of "cc", so it can be a program name with args.
8866 set dummy cc; ac_word=$2
8867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8868 echo "configure:8869: checking for $ac_word" >&5
8869 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8870 echo $ac_n "(cached) $ac_c" 1>&6
8871 else
8872 if test -n "$CC"; then
8873 ac_cv_prog_CC="$CC" # Let the user override the test.
8874 else
8875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8876 ac_prog_rejected=no
8877 ac_dummy="$PATH"
8878 for ac_dir in $ac_dummy; do
8879 test -z "$ac_dir" && ac_dir=.
8880 if test -f $ac_dir/$ac_word; then
8881 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8882 ac_prog_rejected=yes
8883 continue
8884 fi
8885 ac_cv_prog_CC="cc"
8886 break
8887 fi
8888 done
8889 IFS="$ac_save_ifs"
8890 if test $ac_prog_rejected = yes; then
8891 # We found a bogon in the path, so make sure we never use it.
8892 set dummy $ac_cv_prog_CC
8893 shift
8894 if test $# -gt 0; then
8895 # We chose a different compiler from the bogus one.
8896 # However, it has the same basename, so the bogon will be chosen
8897 # first if we set CC to just the basename; use the full file name.
8898 shift
8899 set dummy "$ac_dir/$ac_word" "$@"
8900 shift
8901 ac_cv_prog_CC="$@"
8902 fi
8903 fi
8904 fi
8905 fi
8906 CC="$ac_cv_prog_CC"
8907 if test -n "$CC"; then
8908 echo "$ac_t""$CC" 1>&6
8909 else
8910 echo "$ac_t""no" 1>&6
8911 fi
8912
8913 if test -z "$CC"; then
8914 case "`uname -s`" in
8915 *win32* | *WIN32*)
8916 # Extract the first word of "cl", so it can be a program name with args.
8917 set dummy cl; ac_word=$2
8918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8919 echo "configure:8920: checking for $ac_word" >&5
8920 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
8922 else
8923 if test -n "$CC"; then
8924 ac_cv_prog_CC="$CC" # Let the user override the test.
8925 else
8926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8927 ac_dummy="$PATH"
8928 for ac_dir in $ac_dummy; do
8929 test -z "$ac_dir" && ac_dir=.
8930 if test -f $ac_dir/$ac_word; then
8931 ac_cv_prog_CC="cl"
8932 break
8933 fi
8934 done
8935 IFS="$ac_save_ifs"
8936 fi
8937 fi
8938 CC="$ac_cv_prog_CC"
8939 if test -n "$CC"; then
8940 echo "$ac_t""$CC" 1>&6
8941 else
8942 echo "$ac_t""no" 1>&6
8943 fi
8944 ;;
8945 esac
8946 fi
8947 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8948 fi
8949
8950 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8951 echo "configure:8952: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8952
8953 ac_ext=c
8954 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8955 ac_cpp='$CPP $CPPFLAGS'
8956 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8957 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8958 cross_compiling=$ac_cv_prog_cc_cross
8959
8960 cat > conftest.$ac_ext << EOF
8961
8962 #line 8963 "configure"
8963 #include "confdefs.h"
8964
8965 main(){return(0);}
8966 EOF
8967 if { (eval echo configure:8968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8968 ac_cv_prog_cc_works=yes
8969 # If we can't run a trivial program, we are probably using a cross compiler.
8970 if (./conftest; exit) 2>/dev/null; then
8971 ac_cv_prog_cc_cross=no
8972 else
8973 ac_cv_prog_cc_cross=yes
8974 fi
8975 else
8976 echo "configure: failed program was:" >&5
8977 cat conftest.$ac_ext >&5
8978 ac_cv_prog_cc_works=no
8979 fi
8980 rm -fr conftest*
8981 ac_ext=c
8982 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8983 ac_cpp='$CPP $CPPFLAGS'
8984 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8985 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8986 cross_compiling=$ac_cv_prog_cc_cross
8987
8988 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8989 if test $ac_cv_prog_cc_works = no; then
8990 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8991 fi
8992 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8993 echo "configure:8994: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8994 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8995 cross_compiling=$ac_cv_prog_cc_cross
8996
8997 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8998 echo "configure:8999: checking whether we are using GNU C" >&5
8999 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9000 echo $ac_n "(cached) $ac_c" 1>&6
9001 else
9002 cat > conftest.c <<EOF
9003 #ifdef __GNUC__
9004 yes;
9005 #endif
9006 EOF
9007 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9008 ac_cv_prog_gcc=yes
9009 else
9010 ac_cv_prog_gcc=no
9011 fi
9012 fi
9013
9014 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9015
9016 if test $ac_cv_prog_gcc = yes; then
9017 GCC=yes
9018 else
9019 GCC=
9020 fi
9021
9022 ac_test_CFLAGS="${CFLAGS+set}"
9023 ac_save_CFLAGS="$CFLAGS"
9024 CFLAGS=
9025 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9026 echo "configure:9027: checking whether ${CC-cc} accepts -g" >&5
9027 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9028 echo $ac_n "(cached) $ac_c" 1>&6
9029 else
9030 echo 'void f(){}' > conftest.c
9031 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9032 ac_cv_prog_cc_g=yes
9033 else
9034 ac_cv_prog_cc_g=no
9035 fi
9036 rm -f conftest*
9037
9038 fi
9039
9040 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9041 if test "$ac_test_CFLAGS" = set; then
9042 CFLAGS="$ac_save_CFLAGS"
9043 elif test $ac_cv_prog_cc_g = yes; then
9044 if test "$GCC" = yes; then
9045 CFLAGS="-g -O2"
9046 else
9047 CFLAGS="-g"
9048 fi
9049 else
9050 if test "$GCC" = yes; then
9051 CFLAGS="-O2"
9052 else
9053 CFLAGS=
9054 fi
9055 fi
9056
9057
9058 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9059 echo "configure:9060: checking how to run the C preprocessor" >&5
9060 # On Suns, sometimes $CPP names a directory.
9061 if test -n "$CPP" && test -d "$CPP"; then
9062 CPP=
9063 fi
9064 if test -z "$CPP"; then
9065 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9066 echo $ac_n "(cached) $ac_c" 1>&6
9067 else
9068 # This must be in double quotes, not single quotes, because CPP may get
9069 # substituted into the Makefile and "${CC-cc}" will confuse make.
9070 CPP="${CC-cc} -E"
9071 # On the NeXT, cc -E runs the code through the compiler's parser,
9072 # not just through cpp.
9073 cat > conftest.$ac_ext <<EOF
9074 #line 9075 "configure"
9075 #include "confdefs.h"
9076 #include <assert.h>
9077 Syntax Error
9078 EOF
9079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9080 { (eval echo configure:9081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9082 if test -z "$ac_err"; then
9083 :
9084 else
9085 echo "$ac_err" >&5
9086 echo "configure: failed program was:" >&5
9087 cat conftest.$ac_ext >&5
9088 rm -rf conftest*
9089 CPP="${CC-cc} -E -traditional-cpp"
9090 cat > conftest.$ac_ext <<EOF
9091 #line 9092 "configure"
9092 #include "confdefs.h"
9093 #include <assert.h>
9094 Syntax Error
9095 EOF
9096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9097 { (eval echo configure:9098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9099 if test -z "$ac_err"; then
9100 :
9101 else
9102 echo "$ac_err" >&5
9103 echo "configure: failed program was:" >&5
9104 cat conftest.$ac_ext >&5
9105 rm -rf conftest*
9106 CPP="${CC-cc} -nologo -E"
9107 cat > conftest.$ac_ext <<EOF
9108 #line 9109 "configure"
9109 #include "confdefs.h"
9110 #include <assert.h>
9111 Syntax Error
9112 EOF
9113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9114 { (eval echo configure:9115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9116 if test -z "$ac_err"; then
9117 :
9118 else
9119 echo "$ac_err" >&5
9120 echo "configure: failed program was:" >&5
9121 cat conftest.$ac_ext >&5
9122 rm -rf conftest*
9123 CPP=/lib/cpp
9124 fi
9125 rm -f conftest*
9126 fi
9127 rm -f conftest*
9128 fi
9129 rm -f conftest*
9130 ac_cv_prog_CPP="$CPP"
9131 fi
9132 CPP="$ac_cv_prog_CPP"
9133 else
9134 ac_cv_prog_CPP="$CPP"
9135 fi
9136 echo "$ac_t""$CPP" 1>&6
9137
9138 if test $ac_cv_prog_gcc = yes; then
9139 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9140 echo "configure:9141: checking whether ${CC-cc} needs -traditional" >&5
9141 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9142 echo $ac_n "(cached) $ac_c" 1>&6
9143 else
9144 ac_pattern="Autoconf.*'x'"
9145 cat > conftest.$ac_ext <<EOF
9146 #line 9147 "configure"
9147 #include "confdefs.h"
9148 #include <sgtty.h>
9149 Autoconf TIOCGETP
9150 EOF
9151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9152 egrep "$ac_pattern" >/dev/null 2>&1; then
9153 rm -rf conftest*
9154 ac_cv_prog_gcc_traditional=yes
9155 else
9156 rm -rf conftest*
9157 ac_cv_prog_gcc_traditional=no
9158 fi
9159 rm -f conftest*
9160
9161
9162 if test $ac_cv_prog_gcc_traditional = no; then
9163 cat > conftest.$ac_ext <<EOF
9164 #line 9165 "configure"
9165 #include "confdefs.h"
9166 #include <termio.h>
9167 Autoconf TCGETA
9168 EOF
9169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9170 egrep "$ac_pattern" >/dev/null 2>&1; then
9171 rm -rf conftest*
9172 ac_cv_prog_gcc_traditional=yes
9173 fi
9174 rm -f conftest*
9175
9176 fi
9177 fi
9178
9179 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9180 if test $ac_cv_prog_gcc_traditional = yes; then
9181 CC="$CC -traditional"
9182 fi
9183 fi
9184
9185
9186
9187 ac_ext=C
9188 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9189 ac_cpp='$CXXCPP $CPPFLAGS'
9190 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9191 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9192 cross_compiling=$ac_cv_prog_cxx_cross
9193
9194
9195 CXXFLAGS=${CXXFLAGS:=}
9196 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9197 do
9198 # Extract the first word of "$ac_prog", so it can be a program name with args.
9199 set dummy $ac_prog; ac_word=$2
9200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9201 echo "configure:9202: checking for $ac_word" >&5
9202 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9204 else
9205 if test -n "$CXX"; then
9206 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9207 else
9208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9209 ac_dummy="$PATH"
9210 for ac_dir in $ac_dummy; do
9211 test -z "$ac_dir" && ac_dir=.
9212 if test -f $ac_dir/$ac_word; then
9213 ac_cv_prog_CXX="$ac_prog"
9214 break
9215 fi
9216 done
9217 IFS="$ac_save_ifs"
9218 fi
9219 fi
9220 CXX="$ac_cv_prog_CXX"
9221 if test -n "$CXX"; then
9222 echo "$ac_t""$CXX" 1>&6
9223 else
9224 echo "$ac_t""no" 1>&6
9225 fi
9226
9227 test -n "$CXX" && break
9228 done
9229 test -n "$CXX" || CXX="gcc"
9230
9231
9232 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9233 echo "configure:9234: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9234
9235 ac_ext=C
9236 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9237 ac_cpp='$CXXCPP $CPPFLAGS'
9238 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9239 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9240 cross_compiling=$ac_cv_prog_cxx_cross
9241
9242 cat > conftest.$ac_ext << EOF
9243
9244 #line 9245 "configure"
9245 #include "confdefs.h"
9246
9247 int main(){return(0);}
9248 EOF
9249 if { (eval echo configure:9250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9250 ac_cv_prog_cxx_works=yes
9251 # If we can't run a trivial program, we are probably using a cross compiler.
9252 if (./conftest; exit) 2>/dev/null; then
9253 ac_cv_prog_cxx_cross=no
9254 else
9255 ac_cv_prog_cxx_cross=yes
9256 fi
9257 else
9258 echo "configure: failed program was:" >&5
9259 cat conftest.$ac_ext >&5
9260 ac_cv_prog_cxx_works=no
9261 fi
9262 rm -fr conftest*
9263 ac_ext=C
9264 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9265 ac_cpp='$CXXCPP $CPPFLAGS'
9266 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9267 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9268 cross_compiling=$ac_cv_prog_cxx_cross
9269
9270 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9271 if test $ac_cv_prog_cxx_works = no; then
9272 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9273 fi
9274 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9275 echo "configure:9276: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9276 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9277 cross_compiling=$ac_cv_prog_cxx_cross
9278
9279 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9280 echo "configure:9281: checking whether we are using GNU C++" >&5
9281 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9282 echo $ac_n "(cached) $ac_c" 1>&6
9283 else
9284 cat > conftest.C <<EOF
9285 #ifdef __GNUC__
9286 yes;
9287 #endif
9288 EOF
9289 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9290 ac_cv_prog_gxx=yes
9291 else
9292 ac_cv_prog_gxx=no
9293 fi
9294 fi
9295
9296 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9297
9298 if test $ac_cv_prog_gxx = yes; then
9299 GXX=yes
9300 else
9301 GXX=
9302 fi
9303
9304 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9305 ac_save_CXXFLAGS="$CXXFLAGS"
9306 CXXFLAGS=
9307 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9308 echo "configure:9309: checking whether ${CXX-g++} accepts -g" >&5
9309 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9310 echo $ac_n "(cached) $ac_c" 1>&6
9311 else
9312 echo 'void f(){}' > conftest.cc
9313 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9314 ac_cv_prog_cxx_g=yes
9315 else
9316 ac_cv_prog_cxx_g=no
9317 fi
9318 rm -f conftest*
9319
9320 fi
9321
9322 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9323 if test "$ac_test_CXXFLAGS" = set; then
9324 CXXFLAGS="$ac_save_CXXFLAGS"
9325 elif test $ac_cv_prog_cxx_g = yes; then
9326 if test "$GXX" = yes; then
9327 CXXFLAGS="-g -O2"
9328 else
9329 CXXFLAGS="-g"
9330 fi
9331 else
9332 if test "$GXX" = yes; then
9333 CXXFLAGS="-O2"
9334 else
9335 CXXFLAGS=
9336 fi
9337 fi
9338
9339
9340 ac_ext=c
9341 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9342 ac_cpp='$CPP $CPPFLAGS'
9343 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9344 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9345 cross_compiling=$ac_cv_prog_cc_cross
9346
9347
9348 # Extract the first word of "ranlib", so it can be a program name with args.
9349 set dummy ranlib; ac_word=$2
9350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9351 echo "configure:9352: checking for $ac_word" >&5
9352 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9353 echo $ac_n "(cached) $ac_c" 1>&6
9354 else
9355 if test -n "$RANLIB"; then
9356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9357 else
9358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9359 ac_dummy="$PATH"
9360 for ac_dir in $ac_dummy; do
9361 test -z "$ac_dir" && ac_dir=.
9362 if test -f $ac_dir/$ac_word; then
9363 ac_cv_prog_RANLIB="ranlib"
9364 break
9365 fi
9366 done
9367 IFS="$ac_save_ifs"
9368 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9369 fi
9370 fi
9371 RANLIB="$ac_cv_prog_RANLIB"
9372 if test -n "$RANLIB"; then
9373 echo "$ac_t""$RANLIB" 1>&6
9374 else
9375 echo "$ac_t""no" 1>&6
9376 fi
9377
9378
9379 # Extract the first word of "ar", so it can be a program name with args.
9380 set dummy ar; ac_word=$2
9381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9382 echo "configure:9383: checking for $ac_word" >&5
9383 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9384 echo $ac_n "(cached) $ac_c" 1>&6
9385 else
9386 if test -n "$AR"; then
9387 ac_cv_prog_AR="$AR" # Let the user override the test.
9388 else
9389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9390 ac_dummy="$PATH"
9391 for ac_dir in $ac_dummy; do
9392 test -z "$ac_dir" && ac_dir=.
9393 if test -f $ac_dir/$ac_word; then
9394 ac_cv_prog_AR="ar"
9395 break
9396 fi
9397 done
9398 IFS="$ac_save_ifs"
9399 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9400 fi
9401 fi
9402 AR="$ac_cv_prog_AR"
9403 if test -n "$AR"; then
9404 echo "$ac_t""$AR" 1>&6
9405 else
9406 echo "$ac_t""no" 1>&6
9407 fi
9408
9409
9410 # Find a good install program. We prefer a C program (faster),
9411 # so one script is as good as another. But avoid the broken or
9412 # incompatible versions:
9413 # SysV /etc/install, /usr/sbin/install
9414 # SunOS /usr/etc/install
9415 # IRIX /sbin/install
9416 # AIX /bin/install
9417 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9418 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9419 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9420 # ./install, which can be erroneously created by make from ./install.sh.
9421 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9422 echo "configure:9423: checking for a BSD compatible install" >&5
9423 if test -z "$INSTALL"; then
9424 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9425 echo $ac_n "(cached) $ac_c" 1>&6
9426 else
9427 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9428 for ac_dir in $PATH; do
9429 # Account for people who put trailing slashes in PATH elements.
9430 case "$ac_dir/" in
9431 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9432 *)
9433 # OSF1 and SCO ODT 3.0 have their own names for install.
9434 # Don't use installbsd from OSF since it installs stuff as root
9435 # by default.
9436 for ac_prog in ginstall scoinst install; do
9437 if test -f $ac_dir/$ac_prog; then
9438 if test $ac_prog = install &&
9439 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9440 # AIX install. It has an incompatible calling convention.
9441 :
9442 else
9443 ac_cv_path_install="$ac_dir/$ac_prog -c"
9444 break 2
9445 fi
9446 fi
9447 done
9448 ;;
9449 esac
9450 done
9451 IFS="$ac_save_IFS"
9452
9453 fi
9454 if test "${ac_cv_path_install+set}" = set; then
9455 INSTALL="$ac_cv_path_install"
9456 else
9457 # As a last resort, use the slow shell script. We don't cache a
9458 # path for INSTALL within a source directory, because that will
9459 # break other packages using the cache if that directory is
9460 # removed, or if the path is relative.
9461 INSTALL="$ac_install_sh"
9462 fi
9463 fi
9464 echo "$ac_t""$INSTALL" 1>&6
9465
9466 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9467 # It thinks the first close brace ends the variable substitution.
9468 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9469
9470 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9471
9472 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9473
9474
9475 case ${INSTALL} in
9476 /* ) # Absolute
9477 ;;
9478 ?:* ) # Drive letter, considered as absolute.
9479 ;;
9480 *)
9481 INSTALL=`pwd`/${INSTALL} ;;
9482 esac
9483
9484 case ${host} in
9485 *-hp-hpux* )
9486 INSTALL_DIR="mkdir"
9487 ;;
9488
9489 *) INSTALL_DIR="$INSTALL -d"
9490 ;;
9491 esac
9492
9493
9494 case "${host}" in
9495
9496 powerpc-*-darwin* )
9497 INSTALL_PROGRAM="cp -fp"
9498 INSTALL_DATA="cp -fp"
9499 ;;
9500 *)
9501 ;;
9502 esac
9503
9504 # Extract the first word of "strip", so it can be a program name with args.
9505 set dummy strip; ac_word=$2
9506 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9507 echo "configure:9508: checking for $ac_word" >&5
9508 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9509 echo $ac_n "(cached) $ac_c" 1>&6
9510 else
9511 if test -n "$STRIP"; then
9512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9513 else
9514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9515 ac_dummy="$PATH"
9516 for ac_dir in $ac_dummy; do
9517 test -z "$ac_dir" && ac_dir=.
9518 if test -f $ac_dir/$ac_word; then
9519 ac_cv_prog_STRIP="strip"
9520 break
9521 fi
9522 done
9523 IFS="$ac_save_ifs"
9524 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9525 fi
9526 fi
9527 STRIP="$ac_cv_prog_STRIP"
9528 if test -n "$STRIP"; then
9529 echo "$ac_t""$STRIP" 1>&6
9530 else
9531 echo "$ac_t""no" 1>&6
9532 fi
9533
9534
9535 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9536 echo "configure:9537: checking if make is GNU make" >&5
9537 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9538 echo $ac_n "(cached) $ac_c" 1>&6
9539 else
9540
9541 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9542 egrep -s GNU > /dev/null); then
9543 wx_cv_prog_makeisgnu="yes"
9544 else
9545 wx_cv_prog_makeisgnu="no"
9546 fi
9547
9548 fi
9549
9550 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9551
9552 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9553 IF_GNU_MAKE=""
9554 else
9555 IF_GNU_MAKE="#"
9556 fi
9557
9558
9559
9560 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9561 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9562 echo "configure:9563: checking if make supports VPATH" >&5
9563 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9564 echo $ac_n "(cached) $ac_c" 1>&6
9565 else
9566
9567 cat - << EOF > confMake
9568 check : file
9569 cp \$? \$@
9570 cp \$? final_file
9571 EOF
9572
9573 if test ! -d sub ; then
9574 mkdir sub
9575 fi
9576 echo dummy > sub/file
9577 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9578 RESULT=$?
9579 rm -f sub/file check final_file confMake
9580 rmdir sub
9581 if test "$RESULT" = 0; then
9582 wx_cv_prog_makevpath="yes"
9583 else
9584 wx_cv_prog_makevpath="no"
9585 fi
9586
9587 fi
9588
9589 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9590
9591 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9592 { echo "configure: error:
9593 You need a make-utility that is able to use the variable
9594 VPATH correctly.
9595 If your version of make does not support VPATH correctly,
9596 please install GNU-make (possibly as gmake), and start
9597 configure with the following command:
9598 export MAKE=gmake; ./configure for sh-type shells
9599 setenv MAKE gmake; ./configure for csh-type shells
9600 Also please do remember to use gmake in this case every time
9601 you are trying to compile.
9602 " 1>&2; exit 1; }
9603 fi fi
9604 for ac_prog in 'bison -y' byacc
9605 do
9606 # Extract the first word of "$ac_prog", so it can be a program name with args.
9607 set dummy $ac_prog; ac_word=$2
9608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9609 echo "configure:9610: checking for $ac_word" >&5
9610 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9611 echo $ac_n "(cached) $ac_c" 1>&6
9612 else
9613 if test -n "$YACC"; then
9614 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9615 else
9616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9617 ac_dummy="$PATH"
9618 for ac_dir in $ac_dummy; do
9619 test -z "$ac_dir" && ac_dir=.
9620 if test -f $ac_dir/$ac_word; then
9621 ac_cv_prog_YACC="$ac_prog"
9622 break
9623 fi
9624 done
9625 IFS="$ac_save_ifs"
9626 fi
9627 fi
9628 YACC="$ac_cv_prog_YACC"
9629 if test -n "$YACC"; then
9630 echo "$ac_t""$YACC" 1>&6
9631 else
9632 echo "$ac_t""no" 1>&6
9633 fi
9634
9635 test -n "$YACC" && break
9636 done
9637 test -n "$YACC" || YACC="yacc"
9638
9639
9640 # Extract the first word of "flex", so it can be a program name with args.
9641 set dummy flex; ac_word=$2
9642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9643 echo "configure:9644: checking for $ac_word" >&5
9644 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9645 echo $ac_n "(cached) $ac_c" 1>&6
9646 else
9647 if test -n "$LEX"; then
9648 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9649 else
9650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9651 ac_dummy="$PATH"
9652 for ac_dir in $ac_dummy; do
9653 test -z "$ac_dir" && ac_dir=.
9654 if test -f $ac_dir/$ac_word; then
9655 ac_cv_prog_LEX="flex"
9656 break
9657 fi
9658 done
9659 IFS="$ac_save_ifs"
9660 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9661 fi
9662 fi
9663 LEX="$ac_cv_prog_LEX"
9664 if test -n "$LEX"; then
9665 echo "$ac_t""$LEX" 1>&6
9666 else
9667 echo "$ac_t""no" 1>&6
9668 fi
9669
9670 if test -z "$LEXLIB"
9671 then
9672 case "$LEX" in
9673 flex*) ac_lib=fl ;;
9674 *) ac_lib=l ;;
9675 esac
9676 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9677 echo "configure:9678: checking for yywrap in -l$ac_lib" >&5
9678 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9680 echo $ac_n "(cached) $ac_c" 1>&6
9681 else
9682 ac_save_LIBS="$LIBS"
9683 LIBS="-l$ac_lib $LIBS"
9684 cat > conftest.$ac_ext <<EOF
9685 #line 9686 "configure"
9686 #include "confdefs.h"
9687 /* Override any gcc2 internal prototype to avoid an error. */
9688 /* We use char because int might match the return type of a gcc2
9689 builtin and then its argument prototype would still apply. */
9690 char yywrap();
9691
9692 int main() {
9693 yywrap()
9694 ; return 0; }
9695 EOF
9696 if { (eval echo configure:9697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9697 rm -rf conftest*
9698 eval "ac_cv_lib_$ac_lib_var=yes"
9699 else
9700 echo "configure: failed program was:" >&5
9701 cat conftest.$ac_ext >&5
9702 rm -rf conftest*
9703 eval "ac_cv_lib_$ac_lib_var=no"
9704 fi
9705 rm -f conftest*
9706 LIBS="$ac_save_LIBS"
9707
9708 fi
9709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9710 echo "$ac_t""yes" 1>&6
9711 LEXLIB="-l$ac_lib"
9712 else
9713 echo "$ac_t""no" 1>&6
9714 fi
9715
9716 fi
9717
9718
9719 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9720 echo "configure:9721: checking whether ln -s works" >&5
9721 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9722 echo $ac_n "(cached) $ac_c" 1>&6
9723 else
9724 rm -f conftestdata
9725 if ln -s X conftestdata 2>/dev/null
9726 then
9727 rm -f conftestdata
9728 ac_cv_prog_LN_S="ln -s"
9729 else
9730 ac_cv_prog_LN_S=ln
9731 fi
9732 fi
9733 LN_S="$ac_cv_prog_LN_S"
9734 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9735 echo "$ac_t""yes" 1>&6
9736 else
9737 echo "$ac_t""no" 1>&6
9738 fi
9739
9740
9741 case "${host}" in
9742 *-pc-os2_emx | *-pc-os2-emx )
9743 LIBS="$LIBS -lstdcpp"
9744 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9745 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9746 echo "configure:9747: checking for drand48 in -lcExt" >&5
9747 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9749 echo $ac_n "(cached) $ac_c" 1>&6
9750 else
9751 ac_save_LIBS="$LIBS"
9752 LIBS="-lcExt $LIBS"
9753 cat > conftest.$ac_ext <<EOF
9754 #line 9755 "configure"
9755 #include "confdefs.h"
9756 /* Override any gcc2 internal prototype to avoid an error. */
9757 /* We use char because int might match the return type of a gcc2
9758 builtin and then its argument prototype would still apply. */
9759 char drand48();
9760
9761 int main() {
9762 drand48()
9763 ; return 0; }
9764 EOF
9765 if { (eval echo configure:9766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9766 rm -rf conftest*
9767 eval "ac_cv_lib_$ac_lib_var=yes"
9768 else
9769 echo "configure: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9771 rm -rf conftest*
9772 eval "ac_cv_lib_$ac_lib_var=no"
9773 fi
9774 rm -f conftest*
9775 LIBS="$ac_save_LIBS"
9776
9777 fi
9778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9779 echo "$ac_t""yes" 1>&6
9780 LIBS="$LIBS -lcExt"
9781 else
9782 echo "$ac_t""no" 1>&6
9783 fi
9784
9785 else
9786 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9787 fi
9788 ;;
9789 esac
9790
9791
9792 if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
9793 for ac_hdr in strings.h
9794 do
9795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9797 echo "configure:9798: checking for $ac_hdr" >&5
9798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9799 echo $ac_n "(cached) $ac_c" 1>&6
9800 else
9801 cat > conftest.$ac_ext <<EOF
9802 #line 9803 "configure"
9803 #include "confdefs.h"
9804 #include <$ac_hdr>
9805 EOF
9806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9807 { (eval echo configure:9808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9809 if test -z "$ac_err"; then
9810 rm -rf conftest*
9811 eval "ac_cv_header_$ac_safe=yes"
9812 else
9813 echo "$ac_err" >&5
9814 echo "configure: failed program was:" >&5
9815 cat conftest.$ac_ext >&5
9816 rm -rf conftest*
9817 eval "ac_cv_header_$ac_safe=no"
9818 fi
9819 rm -f conftest*
9820 fi
9821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9822 echo "$ac_t""yes" 1>&6
9823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9824 cat >> confdefs.h <<EOF
9825 #define $ac_tr_hdr 1
9826 EOF
9827
9828 else
9829 echo "$ac_t""no" 1>&6
9830 fi
9831 done
9832
9833 fi
9834
9835 for ac_hdr in stdlib.h
9836 do
9837 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9838 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9839 echo "configure:9840: checking for $ac_hdr" >&5
9840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9841 echo $ac_n "(cached) $ac_c" 1>&6
9842 else
9843 cat > conftest.$ac_ext <<EOF
9844 #line 9845 "configure"
9845 #include "confdefs.h"
9846 #include <$ac_hdr>
9847 EOF
9848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9849 { (eval echo configure:9850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9851 if test -z "$ac_err"; then
9852 rm -rf conftest*
9853 eval "ac_cv_header_$ac_safe=yes"
9854 else
9855 echo "$ac_err" >&5
9856 echo "configure: failed program was:" >&5
9857 cat conftest.$ac_ext >&5
9858 rm -rf conftest*
9859 eval "ac_cv_header_$ac_safe=no"
9860 fi
9861 rm -f conftest*
9862 fi
9863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9864 echo "$ac_t""yes" 1>&6
9865 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9866 cat >> confdefs.h <<EOF
9867 #define $ac_tr_hdr 1
9868 EOF
9869
9870 else
9871 echo "$ac_t""no" 1>&6
9872 fi
9873 done
9874
9875 for ac_hdr in malloc.h
9876 do
9877 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9878 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9879 echo "configure:9880: checking for $ac_hdr" >&5
9880 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9881 echo $ac_n "(cached) $ac_c" 1>&6
9882 else
9883 cat > conftest.$ac_ext <<EOF
9884 #line 9885 "configure"
9885 #include "confdefs.h"
9886 #include <$ac_hdr>
9887 EOF
9888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9889 { (eval echo configure:9890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9891 if test -z "$ac_err"; then
9892 rm -rf conftest*
9893 eval "ac_cv_header_$ac_safe=yes"
9894 else
9895 echo "$ac_err" >&5
9896 echo "configure: failed program was:" >&5
9897 cat conftest.$ac_ext >&5
9898 rm -rf conftest*
9899 eval "ac_cv_header_$ac_safe=no"
9900 fi
9901 rm -f conftest*
9902 fi
9903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9904 echo "$ac_t""yes" 1>&6
9905 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9906 cat >> confdefs.h <<EOF
9907 #define $ac_tr_hdr 1
9908 EOF
9909
9910 else
9911 echo "$ac_t""no" 1>&6
9912 fi
9913 done
9914
9915 for ac_hdr in unistd.h
9916 do
9917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9919 echo "configure:9920: checking for $ac_hdr" >&5
9920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9921 echo $ac_n "(cached) $ac_c" 1>&6
9922 else
9923 cat > conftest.$ac_ext <<EOF
9924 #line 9925 "configure"
9925 #include "confdefs.h"
9926 #include <$ac_hdr>
9927 EOF
9928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9929 { (eval echo configure:9930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9931 if test -z "$ac_err"; then
9932 rm -rf conftest*
9933 eval "ac_cv_header_$ac_safe=yes"
9934 else
9935 echo "$ac_err" >&5
9936 echo "configure: failed program was:" >&5
9937 cat conftest.$ac_ext >&5
9938 rm -rf conftest*
9939 eval "ac_cv_header_$ac_safe=no"
9940 fi
9941 rm -f conftest*
9942 fi
9943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9944 echo "$ac_t""yes" 1>&6
9945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9946 cat >> confdefs.h <<EOF
9947 #define $ac_tr_hdr 1
9948 EOF
9949
9950 else
9951 echo "$ac_t""no" 1>&6
9952 fi
9953 done
9954
9955 for ac_hdr in wchar.h
9956 do
9957 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9958 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9959 echo "configure:9960: checking for $ac_hdr" >&5
9960 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9961 echo $ac_n "(cached) $ac_c" 1>&6
9962 else
9963 cat > conftest.$ac_ext <<EOF
9964 #line 9965 "configure"
9965 #include "confdefs.h"
9966 #include <$ac_hdr>
9967 EOF
9968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9969 { (eval echo configure:9970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9971 if test -z "$ac_err"; then
9972 rm -rf conftest*
9973 eval "ac_cv_header_$ac_safe=yes"
9974 else
9975 echo "$ac_err" >&5
9976 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9978 rm -rf conftest*
9979 eval "ac_cv_header_$ac_safe=no"
9980 fi
9981 rm -f conftest*
9982 fi
9983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9984 echo "$ac_t""yes" 1>&6
9985 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9986 cat >> confdefs.h <<EOF
9987 #define $ac_tr_hdr 1
9988 EOF
9989
9990 else
9991 echo "$ac_t""no" 1>&6
9992 fi
9993 done
9994
9995
9996 if test "$ac_cv_header_wchar_h" != "yes"; then
9997 for ac_hdr in wcstr.h
9998 do
9999 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10001 echo "configure:10002: checking for $ac_hdr" >&5
10002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10003 echo $ac_n "(cached) $ac_c" 1>&6
10004 else
10005 cat > conftest.$ac_ext <<EOF
10006 #line 10007 "configure"
10007 #include "confdefs.h"
10008 #include <$ac_hdr>
10009 EOF
10010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10011 { (eval echo configure:10012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10013 if test -z "$ac_err"; then
10014 rm -rf conftest*
10015 eval "ac_cv_header_$ac_safe=yes"
10016 else
10017 echo "$ac_err" >&5
10018 echo "configure: failed program was:" >&5
10019 cat conftest.$ac_ext >&5
10020 rm -rf conftest*
10021 eval "ac_cv_header_$ac_safe=no"
10022 fi
10023 rm -f conftest*
10024 fi
10025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10026 echo "$ac_t""yes" 1>&6
10027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10028 cat >> confdefs.h <<EOF
10029 #define $ac_tr_hdr 1
10030 EOF
10031
10032 else
10033 echo "$ac_t""no" 1>&6
10034 fi
10035 done
10036
10037 fi
10038
10039 for ac_hdr in fnmatch.h
10040 do
10041 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10042 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10043 echo "configure:10044: checking for $ac_hdr" >&5
10044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10045 echo $ac_n "(cached) $ac_c" 1>&6
10046 else
10047 cat > conftest.$ac_ext <<EOF
10048 #line 10049 "configure"
10049 #include "confdefs.h"
10050 #include <$ac_hdr>
10051 EOF
10052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10053 { (eval echo configure:10054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10055 if test -z "$ac_err"; then
10056 rm -rf conftest*
10057 eval "ac_cv_header_$ac_safe=yes"
10058 else
10059 echo "$ac_err" >&5
10060 echo "configure: failed program was:" >&5
10061 cat conftest.$ac_ext >&5
10062 rm -rf conftest*
10063 eval "ac_cv_header_$ac_safe=no"
10064 fi
10065 rm -f conftest*
10066 fi
10067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10068 echo "$ac_t""yes" 1>&6
10069 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10070 cat >> confdefs.h <<EOF
10071 #define $ac_tr_hdr 1
10072 EOF
10073
10074 else
10075 echo "$ac_t""no" 1>&6
10076 fi
10077 done
10078
10079
10080 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10081 for ac_func in fnmatch
10082 do
10083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10084 echo "configure:10085: checking for $ac_func" >&5
10085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
10087 else
10088 cat > conftest.$ac_ext <<EOF
10089 #line 10090 "configure"
10090 #include "confdefs.h"
10091 /* System header to define __stub macros and hopefully few prototypes,
10092 which can conflict with char $ac_func(); below. */
10093 #include <assert.h>
10094 /* Override any gcc2 internal prototype to avoid an error. */
10095 /* We use char because int might match the return type of a gcc2
10096 builtin and then its argument prototype would still apply. */
10097 char $ac_func();
10098
10099 int main() {
10100
10101 /* The GNU C library defines this for functions which it implements
10102 to always fail with ENOSYS. Some functions are actually named
10103 something starting with __ and the normal name is an alias. */
10104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10105 choke me
10106 #else
10107 $ac_func();
10108 #endif
10109
10110 ; return 0; }
10111 EOF
10112 if { (eval echo configure:10113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10113 rm -rf conftest*
10114 eval "ac_cv_func_$ac_func=yes"
10115 else
10116 echo "configure: failed program was:" >&5
10117 cat conftest.$ac_ext >&5
10118 rm -rf conftest*
10119 eval "ac_cv_func_$ac_func=no"
10120 fi
10121 rm -f conftest*
10122 fi
10123
10124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10125 echo "$ac_t""yes" 1>&6
10126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10127 cat >> confdefs.h <<EOF
10128 #define $ac_tr_func 1
10129 EOF
10130
10131 else
10132 echo "$ac_t""no" 1>&6
10133 fi
10134 done
10135
10136 fi
10137
10138 for ac_hdr in langinfo.h
10139 do
10140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10142 echo "configure:10143: checking for $ac_hdr" >&5
10143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10144 echo $ac_n "(cached) $ac_c" 1>&6
10145 else
10146 cat > conftest.$ac_ext <<EOF
10147 #line 10148 "configure"
10148 #include "confdefs.h"
10149 #include <$ac_hdr>
10150 EOF
10151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10152 { (eval echo configure:10153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10154 if test -z "$ac_err"; then
10155 rm -rf conftest*
10156 eval "ac_cv_header_$ac_safe=yes"
10157 else
10158 echo "$ac_err" >&5
10159 echo "configure: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10161 rm -rf conftest*
10162 eval "ac_cv_header_$ac_safe=no"
10163 fi
10164 rm -f conftest*
10165 fi
10166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10167 echo "$ac_t""yes" 1>&6
10168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10169 cat >> confdefs.h <<EOF
10170 #define $ac_tr_hdr 1
10171 EOF
10172
10173 else
10174 echo "$ac_t""no" 1>&6
10175 fi
10176 done
10177
10178
10179 case "${host}" in
10180 *-pc-os2_emx | *-pc-os2-emx )
10181 if test $ac_cv_header_langinfo_h = "yes"; then
10182 LIBS="$LIBS -lintl"
10183 fi
10184 ;;
10185 esac
10186
10187 if test "$wxUSE_GUI" = "yes"; then
10188 if test "$wxUSE_UNIX" = "yes"; then
10189 for ac_hdr in X11/XKBlib.h
10190 do
10191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10193 echo "configure:10194: checking for $ac_hdr" >&5
10194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10195 echo $ac_n "(cached) $ac_c" 1>&6
10196 else
10197 cat > conftest.$ac_ext <<EOF
10198 #line 10199 "configure"
10199 #include "confdefs.h"
10200 #include <$ac_hdr>
10201 EOF
10202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10203 { (eval echo configure:10204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10205 if test -z "$ac_err"; then
10206 rm -rf conftest*
10207 eval "ac_cv_header_$ac_safe=yes"
10208 else
10209 echo "$ac_err" >&5
10210 echo "configure: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10212 rm -rf conftest*
10213 eval "ac_cv_header_$ac_safe=no"
10214 fi
10215 rm -f conftest*
10216 fi
10217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10218 echo "$ac_t""yes" 1>&6
10219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10220 cat >> confdefs.h <<EOF
10221 #define $ac_tr_hdr 1
10222 EOF
10223
10224 else
10225 echo "$ac_t""no" 1>&6
10226 fi
10227 done
10228
10229 fi
10230 fi
10231
10232
10233 echo $ac_n "checking for working const""... $ac_c" 1>&6
10234 echo "configure:10235: checking for working const" >&5
10235 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10236 echo $ac_n "(cached) $ac_c" 1>&6
10237 else
10238 cat > conftest.$ac_ext <<EOF
10239 #line 10240 "configure"
10240 #include "confdefs.h"
10241
10242 int main() {
10243
10244 /* Ultrix mips cc rejects this. */
10245 typedef int charset[2]; const charset x;
10246 /* SunOS 4.1.1 cc rejects this. */
10247 char const *const *ccp;
10248 char **p;
10249 /* NEC SVR4.0.2 mips cc rejects this. */
10250 struct point {int x, y;};
10251 static struct point const zero = {0,0};
10252 /* AIX XL C 1.02.0.0 rejects this.
10253 It does not let you subtract one const X* pointer from another in an arm
10254 of an if-expression whose if-part is not a constant expression */
10255 const char *g = "string";
10256 ccp = &g + (g ? g-g : 0);
10257 /* HPUX 7.0 cc rejects these. */
10258 ++ccp;
10259 p = (char**) ccp;
10260 ccp = (char const *const *) p;
10261 { /* SCO 3.2v4 cc rejects this. */
10262 char *t;
10263 char const *s = 0 ? (char *) 0 : (char const *) 0;
10264
10265 *t++ = 0;
10266 }
10267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10268 int x[] = {25, 17};
10269 const int *foo = &x[0];
10270 ++foo;
10271 }
10272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10273 typedef const int *iptr;
10274 iptr p = 0;
10275 ++p;
10276 }
10277 { /* AIX XL C 1.02.0.0 rejects this saying
10278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10279 struct s { int j; const int *ap[3]; };
10280 struct s *b; b->j = 5;
10281 }
10282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10283 const int foo = 10;
10284 }
10285
10286 ; return 0; }
10287 EOF
10288 if { (eval echo configure:10289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10289 rm -rf conftest*
10290 ac_cv_c_const=yes
10291 else
10292 echo "configure: failed program was:" >&5
10293 cat conftest.$ac_ext >&5
10294 rm -rf conftest*
10295 ac_cv_c_const=no
10296 fi
10297 rm -f conftest*
10298 fi
10299
10300 echo "$ac_t""$ac_cv_c_const" 1>&6
10301 if test $ac_cv_c_const = no; then
10302 cat >> confdefs.h <<\EOF
10303 #define const
10304 EOF
10305
10306 fi
10307
10308 echo $ac_n "checking for inline""... $ac_c" 1>&6
10309 echo "configure:10310: checking for inline" >&5
10310 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10311 echo $ac_n "(cached) $ac_c" 1>&6
10312 else
10313 ac_cv_c_inline=no
10314 for ac_kw in inline __inline__ __inline; do
10315 cat > conftest.$ac_ext <<EOF
10316 #line 10317 "configure"
10317 #include "confdefs.h"
10318
10319 int main() {
10320 } $ac_kw foo() {
10321 ; return 0; }
10322 EOF
10323 if { (eval echo configure:10324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10324 rm -rf conftest*
10325 ac_cv_c_inline=$ac_kw; break
10326 else
10327 echo "configure: failed program was:" >&5
10328 cat conftest.$ac_ext >&5
10329 fi
10330 rm -f conftest*
10331 done
10332
10333 fi
10334
10335 echo "$ac_t""$ac_cv_c_inline" 1>&6
10336 case "$ac_cv_c_inline" in
10337 inline | yes) ;;
10338 no) cat >> confdefs.h <<\EOF
10339 #define inline
10340 EOF
10341 ;;
10342 *) cat >> confdefs.h <<EOF
10343 #define inline $ac_cv_c_inline
10344 EOF
10345 ;;
10346 esac
10347
10348
10349 echo $ac_n "checking size of char""... $ac_c" 1>&6
10350 echo "configure:10351: checking size of char" >&5
10351 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10352 echo $ac_n "(cached) $ac_c" 1>&6
10353 else
10354 if test "$cross_compiling" = yes; then
10355 ac_cv_sizeof_char=1
10356 else
10357 cat > conftest.$ac_ext <<EOF
10358 #line 10359 "configure"
10359 #include "confdefs.h"
10360 #include <stdio.h>
10361 #include <sys/types.h>
10362 main()
10363 {
10364 FILE *f=fopen("conftestval", "w");
10365 if (!f) exit(1);
10366 fprintf(f, "%d\n", sizeof(char));
10367 exit(0);
10368 }
10369 EOF
10370 if { (eval echo configure:10371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10371 then
10372 ac_cv_sizeof_char=`cat conftestval`
10373 else
10374 echo "configure: failed program was:" >&5
10375 cat conftest.$ac_ext >&5
10376 rm -fr conftest*
10377 ac_cv_sizeof_char=0
10378 fi
10379 rm -fr conftest*
10380 fi
10381
10382 fi
10383 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10384 cat >> confdefs.h <<EOF
10385 #define SIZEOF_CHAR $ac_cv_sizeof_char
10386 EOF
10387
10388
10389 echo $ac_n "checking size of short""... $ac_c" 1>&6
10390 echo "configure:10391: checking size of short" >&5
10391 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10392 echo $ac_n "(cached) $ac_c" 1>&6
10393 else
10394 if test "$cross_compiling" = yes; then
10395 ac_cv_sizeof_short=2
10396 else
10397 cat > conftest.$ac_ext <<EOF
10398 #line 10399 "configure"
10399 #include "confdefs.h"
10400 #include <stdio.h>
10401 #include <sys/types.h>
10402 main()
10403 {
10404 FILE *f=fopen("conftestval", "w");
10405 if (!f) exit(1);
10406 fprintf(f, "%d\n", sizeof(short));
10407 exit(0);
10408 }
10409 EOF
10410 if { (eval echo configure:10411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10411 then
10412 ac_cv_sizeof_short=`cat conftestval`
10413 else
10414 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10416 rm -fr conftest*
10417 ac_cv_sizeof_short=0
10418 fi
10419 rm -fr conftest*
10420 fi
10421
10422 fi
10423 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10424 cat >> confdefs.h <<EOF
10425 #define SIZEOF_SHORT $ac_cv_sizeof_short
10426 EOF
10427
10428
10429 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10430 echo "configure:10431: checking size of void *" >&5
10431 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10432 echo $ac_n "(cached) $ac_c" 1>&6
10433 else
10434 if test "$cross_compiling" = yes; then
10435 ac_cv_sizeof_void_p=4
10436 else
10437 cat > conftest.$ac_ext <<EOF
10438 #line 10439 "configure"
10439 #include "confdefs.h"
10440 #include <stdio.h>
10441 #include <sys/types.h>
10442 main()
10443 {
10444 FILE *f=fopen("conftestval", "w");
10445 if (!f) exit(1);
10446 fprintf(f, "%d\n", sizeof(void *));
10447 exit(0);
10448 }
10449 EOF
10450 if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10451 then
10452 ac_cv_sizeof_void_p=`cat conftestval`
10453 else
10454 echo "configure: failed program was:" >&5
10455 cat conftest.$ac_ext >&5
10456 rm -fr conftest*
10457 ac_cv_sizeof_void_p=0
10458 fi
10459 rm -fr conftest*
10460 fi
10461
10462 fi
10463 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10464 cat >> confdefs.h <<EOF
10465 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10466 EOF
10467
10468
10469 echo $ac_n "checking size of int""... $ac_c" 1>&6
10470 echo "configure:10471: checking size of int" >&5
10471 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10472 echo $ac_n "(cached) $ac_c" 1>&6
10473 else
10474 if test "$cross_compiling" = yes; then
10475 ac_cv_sizeof_int=4
10476 else
10477 cat > conftest.$ac_ext <<EOF
10478 #line 10479 "configure"
10479 #include "confdefs.h"
10480 #include <stdio.h>
10481 #include <sys/types.h>
10482 main()
10483 {
10484 FILE *f=fopen("conftestval", "w");
10485 if (!f) exit(1);
10486 fprintf(f, "%d\n", sizeof(int));
10487 exit(0);
10488 }
10489 EOF
10490 if { (eval echo configure:10491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10491 then
10492 ac_cv_sizeof_int=`cat conftestval`
10493 else
10494 echo "configure: failed program was:" >&5
10495 cat conftest.$ac_ext >&5
10496 rm -fr conftest*
10497 ac_cv_sizeof_int=0
10498 fi
10499 rm -fr conftest*
10500 fi
10501
10502 fi
10503 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10504 cat >> confdefs.h <<EOF
10505 #define SIZEOF_INT $ac_cv_sizeof_int
10506 EOF
10507
10508
10509 echo $ac_n "checking size of long""... $ac_c" 1>&6
10510 echo "configure:10511: checking size of long" >&5
10511 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10512 echo $ac_n "(cached) $ac_c" 1>&6
10513 else
10514 if test "$cross_compiling" = yes; then
10515 ac_cv_sizeof_long=4
10516 else
10517 cat > conftest.$ac_ext <<EOF
10518 #line 10519 "configure"
10519 #include "confdefs.h"
10520 #include <stdio.h>
10521 #include <sys/types.h>
10522 main()
10523 {
10524 FILE *f=fopen("conftestval", "w");
10525 if (!f) exit(1);
10526 fprintf(f, "%d\n", sizeof(long));
10527 exit(0);
10528 }
10529 EOF
10530 if { (eval echo configure:10531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10531 then
10532 ac_cv_sizeof_long=`cat conftestval`
10533 else
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 rm -fr conftest*
10537 ac_cv_sizeof_long=0
10538 fi
10539 rm -fr conftest*
10540 fi
10541
10542 fi
10543 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10544 cat >> confdefs.h <<EOF
10545 #define SIZEOF_LONG $ac_cv_sizeof_long
10546 EOF
10547
10548
10549
10550 case "${host}" in
10551 arm-*-linux* )
10552 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10553 echo "configure:10554: checking size of long long" >&5
10554 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10555 echo $ac_n "(cached) $ac_c" 1>&6
10556 else
10557 if test "$cross_compiling" = yes; then
10558 ac_cv_sizeof_long_long=8
10559 else
10560 cat > conftest.$ac_ext <<EOF
10561 #line 10562 "configure"
10562 #include "confdefs.h"
10563 #include <stdio.h>
10564 #include <sys/types.h>
10565 main()
10566 {
10567 FILE *f=fopen("conftestval", "w");
10568 if (!f) exit(1);
10569 fprintf(f, "%d\n", sizeof(long long));
10570 exit(0);
10571 }
10572 EOF
10573 if { (eval echo configure:10574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10574 then
10575 ac_cv_sizeof_long_long=`cat conftestval`
10576 else
10577 echo "configure: failed program was:" >&5
10578 cat conftest.$ac_ext >&5
10579 rm -fr conftest*
10580 ac_cv_sizeof_long_long=0
10581 fi
10582 rm -fr conftest*
10583 fi
10584
10585 fi
10586 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10587 cat >> confdefs.h <<EOF
10588 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10589 EOF
10590
10591
10592 ;;
10593 *-hp-hpux* )
10594 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10595 echo "configure:10596: checking size of long long" >&5
10596 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10597 echo $ac_n "(cached) $ac_c" 1>&6
10598 else
10599 if test "$cross_compiling" = yes; then
10600 ac_cv_sizeof_long_long=0
10601 else
10602 cat > conftest.$ac_ext <<EOF
10603 #line 10604 "configure"
10604 #include "confdefs.h"
10605 #include <stdio.h>
10606 #include <sys/types.h>
10607 main()
10608 {
10609 FILE *f=fopen("conftestval", "w");
10610 if (!f) exit(1);
10611 fprintf(f, "%d\n", sizeof(long long));
10612 exit(0);
10613 }
10614 EOF
10615 if { (eval echo configure:10616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10616 then
10617 ac_cv_sizeof_long_long=`cat conftestval`
10618 else
10619 echo "configure: failed program was:" >&5
10620 cat conftest.$ac_ext >&5
10621 rm -fr conftest*
10622 ac_cv_sizeof_long_long=0
10623 fi
10624 rm -fr conftest*
10625 fi
10626
10627 fi
10628 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10629 cat >> confdefs.h <<EOF
10630 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10631 EOF
10632
10633
10634 if test "$ac_cv_sizeof_long_long" != "0"; then
10635 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10636 fi
10637 ;;
10638 * )
10639 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10640 echo "configure:10641: checking size of long long" >&5
10641 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
10643 else
10644 if test "$cross_compiling" = yes; then
10645 ac_cv_sizeof_long_long=0
10646 else
10647 cat > conftest.$ac_ext <<EOF
10648 #line 10649 "configure"
10649 #include "confdefs.h"
10650 #include <stdio.h>
10651 #include <sys/types.h>
10652 main()
10653 {
10654 FILE *f=fopen("conftestval", "w");
10655 if (!f) exit(1);
10656 fprintf(f, "%d\n", sizeof(long long));
10657 exit(0);
10658 }
10659 EOF
10660 if { (eval echo configure:10661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10661 then
10662 ac_cv_sizeof_long_long=`cat conftestval`
10663 else
10664 echo "configure: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10666 rm -fr conftest*
10667 ac_cv_sizeof_long_long=0
10668 fi
10669 rm -fr conftest*
10670 fi
10671
10672 fi
10673 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10674 cat >> confdefs.h <<EOF
10675 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10676 EOF
10677
10678
10679 esac
10680
10681 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10682 echo "configure:10683: checking size of wchar_t" >&5
10683 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10684 echo $ac_n "(cached) $ac_c" 1>&6
10685 else
10686
10687 if test "$cross_compiling" = yes; then
10688
10689 case "${host}" in
10690 *-pc-msdosdjgpp )
10691 wx_cv_sizeof_wchar_t=0
10692 ;;
10693 * )
10694 wx_cv_sizeof_wchar_t=4
10695 ;;
10696 esac
10697
10698
10699 else
10700 cat > conftest.$ac_ext <<EOF
10701 #line 10702 "configure"
10702 #include "confdefs.h"
10703
10704 /* DJGPP only has fake wchar_t: */
10705 #ifdef __DJGPP__
10706 # error "fake wchar_t"
10707 #endif
10708 #ifdef HAVE_WCHAR_H
10709 # ifdef __CYGWIN__
10710 # include <stddef.h>
10711 # endif
10712 # include <wchar.h>
10713 #endif
10714 #ifdef HAVE_STDLIB_H
10715 # include <stdlib.h>
10716 #endif
10717 #include <stdio.h>
10718 int main()
10719 {
10720 FILE *f=fopen("conftestval", "w");
10721 if (!f) exit(1);
10722 fprintf(f, "%i", sizeof(wchar_t));
10723 exit(0);
10724 }
10725
10726 EOF
10727 if { (eval echo configure:10728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10728 then
10729 wx_cv_sizeof_wchar_t=`cat conftestval`
10730 else
10731 echo "configure: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10733 rm -fr conftest*
10734 wx_cv_sizeof_wchar_t=0
10735 fi
10736 rm -fr conftest*
10737 fi
10738
10739
10740 fi
10741
10742 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10743
10744 cat >> confdefs.h <<EOF
10745 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10746 EOF
10747
10748
10749 # Check whether --enable-largefile or --disable-largefile was given.
10750 if test "${enable_largefile+set}" = set; then
10751 enableval="$enable_largefile"
10752 :
10753 fi
10754
10755 if test "$enable_largefile" != no; then
10756 wx_largefile=no
10757
10758 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10759 echo "configure:10760: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10760 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10761 echo $ac_n "(cached) $ac_c" 1>&6
10762 else
10763
10764 cat > conftest.$ac_ext <<EOF
10765 #line 10766 "configure"
10766 #include "confdefs.h"
10767 #define _FILE_OFFSET_BITS 64
10768 #include <sys/types.h>
10769 int main() {
10770 typedef struct {
10771 unsigned int field: sizeof(off_t) == 8;
10772 } wxlf;
10773
10774 ; return 0; }
10775 EOF
10776 if { (eval echo configure:10777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10777 rm -rf conftest*
10778 ac_cv_sys_file_offset_bits=64
10779 else
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10782 rm -rf conftest*
10783 ac_cv_sys_file_offset_bits=no
10784 fi
10785 rm -f conftest*
10786
10787
10788 fi
10789
10790 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10791
10792 if test "$ac_cv_sys_file_offset_bits" != no; then
10793 wx_largefile=yes
10794 cat >> confdefs.h <<EOF
10795 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10796 EOF
10797
10798 fi
10799
10800 if test "x$wx_largefile" != "xyes"; then
10801
10802 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10803 echo "configure:10804: checking for _LARGE_FILES value needed for large files" >&5
10804 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10805 echo $ac_n "(cached) $ac_c" 1>&6
10806 else
10807
10808 cat > conftest.$ac_ext <<EOF
10809 #line 10810 "configure"
10810 #include "confdefs.h"
10811 #define _LARGE_FILES 1
10812 #include <sys/types.h>
10813 int main() {
10814 typedef struct {
10815 unsigned int field: sizeof(off_t) == 8;
10816 } wxlf;
10817
10818 ; return 0; }
10819 EOF
10820 if { (eval echo configure:10821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10821 rm -rf conftest*
10822 ac_cv_sys_large_files=1
10823 else
10824 echo "configure: failed program was:" >&5
10825 cat conftest.$ac_ext >&5
10826 rm -rf conftest*
10827 ac_cv_sys_large_files=no
10828 fi
10829 rm -f conftest*
10830
10831
10832 fi
10833
10834 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10835
10836 if test "$ac_cv_sys_large_files" != no; then
10837 wx_largefile=yes
10838 cat >> confdefs.h <<EOF
10839 #define _LARGE_FILES $ac_cv_sys_large_files
10840 EOF
10841
10842 fi
10843
10844 fi
10845
10846 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10847 echo "configure:10848: checking if large file support is available" >&5
10848 if test "x$wx_largefile" = "xyes"; then
10849 cat >> confdefs.h <<\EOF
10850 #define HAVE_LARGEFILE_SUPPORT 1
10851 EOF
10852
10853 fi
10854 echo "$ac_t""$wx_largefile" 1>&6
10855 fi
10856
10857
10858 if test "x$wx_largefile" = "xyes"; then
10859 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10860 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10861 else
10862 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10863 fi
10864 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10865 fi
10866
10867 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10868 echo "configure:10869: checking whether byte ordering is bigendian" >&5
10869 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10870 echo $ac_n "(cached) $ac_c" 1>&6
10871 else
10872 ac_cv_c_bigendian=unknown
10873 # See if sys/param.h defines the BYTE_ORDER macro.
10874 cat > conftest.$ac_ext <<EOF
10875 #line 10876 "configure"
10876 #include "confdefs.h"
10877 #include <sys/types.h>
10878 #include <sys/param.h>
10879 int main() {
10880
10881 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10882 bogus endian macros
10883 #endif
10884 ; return 0; }
10885 EOF
10886 if { (eval echo configure:10887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10887 rm -rf conftest*
10888 # It does; now see whether it defined to BIG_ENDIAN or not.
10889 cat > conftest.$ac_ext <<EOF
10890 #line 10891 "configure"
10891 #include "confdefs.h"
10892 #include <sys/types.h>
10893 #include <sys/param.h>
10894 int main() {
10895
10896 #if BYTE_ORDER != BIG_ENDIAN
10897 not big endian
10898 #endif
10899 ; return 0; }
10900 EOF
10901 if { (eval echo configure:10902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10902 rm -rf conftest*
10903 ac_cv_c_bigendian=yes
10904 else
10905 echo "configure: failed program was:" >&5
10906 cat conftest.$ac_ext >&5
10907 rm -rf conftest*
10908 ac_cv_c_bigendian=no
10909 fi
10910 rm -f conftest*
10911 else
10912 echo "configure: failed program was:" >&5
10913 cat conftest.$ac_ext >&5
10914 fi
10915 rm -f conftest*
10916 if test $ac_cv_c_bigendian = unknown; then
10917 if test "$cross_compiling" = yes; then
10918 ac_cv_c_bigendian=unknown
10919 else
10920 cat > conftest.$ac_ext <<EOF
10921 #line 10922 "configure"
10922 #include "confdefs.h"
10923 main () {
10924 /* Are we little or big endian? From Harbison&Steele. */
10925 union
10926 {
10927 long l;
10928 char c[sizeof (long)];
10929 } u;
10930 u.l = 1;
10931 exit (u.c[sizeof (long) - 1] == 1);
10932 }
10933 EOF
10934 if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10935 then
10936 ac_cv_c_bigendian=no
10937 else
10938 echo "configure: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10940 rm -fr conftest*
10941 ac_cv_c_bigendian=yes
10942 fi
10943 rm -fr conftest*
10944 fi
10945
10946 fi
10947 fi
10948
10949 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10950 if test $ac_cv_c_bigendian = unknown; then
10951 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
10952 fi
10953 if test $ac_cv_c_bigendian = yes; then
10954 cat >> confdefs.h <<\EOF
10955 #define WORDS_BIGENDIAN 1
10956 EOF
10957
10958 fi
10959
10960
10961 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10962 echo "configure:10963: checking how to run the C++ preprocessor" >&5
10963 if test -z "$CXXCPP"; then
10964 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10965 echo $ac_n "(cached) $ac_c" 1>&6
10966 else
10967 ac_ext=C
10968 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10969 ac_cpp='$CXXCPP $CPPFLAGS'
10970 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10971 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10972 cross_compiling=$ac_cv_prog_cxx_cross
10973 CXXCPP="${CXX-g++} -E"
10974 cat > conftest.$ac_ext <<EOF
10975 #line 10976 "configure"
10976 #include "confdefs.h"
10977 #include <stdlib.h>
10978 EOF
10979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10980 { (eval echo configure:10981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10982 if test -z "$ac_err"; then
10983 :
10984 else
10985 echo "$ac_err" >&5
10986 echo "configure: failed program was:" >&5
10987 cat conftest.$ac_ext >&5
10988 rm -rf conftest*
10989 CXXCPP=/lib/cpp
10990 fi
10991 rm -f conftest*
10992 ac_cv_prog_CXXCPP="$CXXCPP"
10993 ac_ext=C
10994 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10995 ac_cpp='$CXXCPP $CPPFLAGS'
10996 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10997 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10998 cross_compiling=$ac_cv_prog_cxx_cross
10999 fi
11000 fi
11001 CXXCPP="$ac_cv_prog_CXXCPP"
11002 echo "$ac_t""$CXXCPP" 1>&6
11003
11004
11005 if test "$cross_compiling" = "yes"; then
11006 cat >> confdefs.h <<\EOF
11007 #define wxUSE_IOSTREAMH 1
11008 EOF
11009
11010 else
11011
11012 ac_ext=C
11013 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11014 ac_cpp='$CXXCPP $CPPFLAGS'
11015 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11016 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11017 cross_compiling=$ac_cv_prog_cxx_cross
11018
11019
11020 for ac_hdr in iostream
11021 do
11022 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11023 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11024 echo "configure:11025: checking for $ac_hdr" >&5
11025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11026 echo $ac_n "(cached) $ac_c" 1>&6
11027 else
11028 cat > conftest.$ac_ext <<EOF
11029 #line 11030 "configure"
11030 #include "confdefs.h"
11031 #include <$ac_hdr>
11032 EOF
11033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11034 { (eval echo configure:11035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11036 if test -z "$ac_err"; then
11037 rm -rf conftest*
11038 eval "ac_cv_header_$ac_safe=yes"
11039 else
11040 echo "$ac_err" >&5
11041 echo "configure: failed program was:" >&5
11042 cat conftest.$ac_ext >&5
11043 rm -rf conftest*
11044 eval "ac_cv_header_$ac_safe=no"
11045 fi
11046 rm -f conftest*
11047 fi
11048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11049 echo "$ac_t""yes" 1>&6
11050 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11051 cat >> confdefs.h <<EOF
11052 #define $ac_tr_hdr 1
11053 EOF
11054
11055 else
11056 echo "$ac_t""no" 1>&6
11057 fi
11058 done
11059
11060
11061 if test "$ac_cv_header_iostream" = "yes" ; then
11062 :
11063 else
11064 cat >> confdefs.h <<\EOF
11065 #define wxUSE_IOSTREAMH 1
11066 EOF
11067
11068 fi
11069
11070 ac_ext=c
11071 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11072 ac_cpp='$CPP $CPPFLAGS'
11073 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11074 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11075 cross_compiling=$ac_cv_prog_cc_cross
11076
11077 fi
11078
11079
11080
11081 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11082 echo "configure:11083: checking if C++ compiler supports bool" >&5
11083 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11084 echo $ac_n "(cached) $ac_c" 1>&6
11085 else
11086
11087
11088 ac_ext=C
11089 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11090 ac_cpp='$CXXCPP $CPPFLAGS'
11091 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11092 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11093 cross_compiling=$ac_cv_prog_cxx_cross
11094
11095
11096 cat > conftest.$ac_ext <<EOF
11097 #line 11098 "configure"
11098 #include "confdefs.h"
11099
11100
11101 int main() {
11102
11103 bool b = true;
11104
11105 return 0;
11106
11107 ; return 0; }
11108 EOF
11109 if { (eval echo configure:11110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11110 rm -rf conftest*
11111
11112 wx_cv_cpp_bool=yes
11113
11114 else
11115 echo "configure: failed program was:" >&5
11116 cat conftest.$ac_ext >&5
11117 rm -rf conftest*
11118
11119 wx_cv_cpp_bool=no
11120
11121
11122 fi
11123 rm -f conftest*
11124
11125 ac_ext=c
11126 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11127 ac_cpp='$CPP $CPPFLAGS'
11128 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11129 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11130 cross_compiling=$ac_cv_prog_cc_cross
11131
11132
11133 fi
11134
11135 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11136
11137 if test "$wx_cv_cpp_bool" = "yes"; then
11138 cat >> confdefs.h <<\EOF
11139 #define HAVE_BOOL 1
11140 EOF
11141
11142 fi
11143
11144
11145
11146 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11147 echo "configure:11148: checking if C++ compiler supports the explicit keyword" >&5
11148 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11149 echo $ac_n "(cached) $ac_c" 1>&6
11150 else
11151
11152
11153 ac_ext=C
11154 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11155 ac_cpp='$CXXCPP $CPPFLAGS'
11156 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11157 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11158 cross_compiling=$ac_cv_prog_cxx_cross
11159
11160
11161 cat > conftest.$ac_ext <<EOF
11162 #line 11163 "configure"
11163 #include "confdefs.h"
11164
11165 class Foo { public: explicit Foo(int) {} };
11166
11167 int main() {
11168
11169 return 0;
11170
11171 ; return 0; }
11172 EOF
11173 if { (eval echo configure:11174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11174 rm -rf conftest*
11175
11176 cat > conftest.$ac_ext <<EOF
11177 #line 11178 "configure"
11178 #include "confdefs.h"
11179
11180 class Foo { public: explicit Foo(int) {} };
11181 static void TakeFoo(const Foo& foo) { }
11182
11183 int main() {
11184
11185 TakeFoo(17);
11186 return 0;
11187
11188 ; return 0; }
11189 EOF
11190 if { (eval echo configure:11191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11191 rm -rf conftest*
11192 wx_cv_explicit=no
11193 else
11194 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5
11196 rm -rf conftest*
11197 wx_cv_explicit=yes
11198
11199 fi
11200 rm -f conftest*
11201
11202 else
11203 echo "configure: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11205 rm -rf conftest*
11206 wx_cv_explicit=no
11207
11208 fi
11209 rm -f conftest*
11210
11211 ac_ext=c
11212 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11213 ac_cpp='$CPP $CPPFLAGS'
11214 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11215 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11216 cross_compiling=$ac_cv_prog_cc_cross
11217
11218
11219 fi
11220
11221 echo "$ac_t""$wx_cv_explicit" 1>&6
11222
11223 if test "$wx_cv_explicit" = "yes"; then
11224 cat >> confdefs.h <<\EOF
11225 #define HAVE_EXPLICIT 1
11226 EOF
11227
11228 fi
11229
11230
11231 echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
11232 echo "configure:11233: checking whether the compiler supports const_cast<>" >&5
11233 if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11234 echo $ac_n "(cached) $ac_c" 1>&6
11235 else
11236
11237 ac_ext=C
11238 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11239 ac_cpp='$CXXCPP $CPPFLAGS'
11240 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11241 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11242 cross_compiling=$ac_cv_prog_cxx_cross
11243
11244 cat > conftest.$ac_ext <<EOF
11245 #line 11246 "configure"
11246 #include "confdefs.h"
11247
11248 int main() {
11249 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11250 ; return 0; }
11251 EOF
11252 if { (eval echo configure:11253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11253 rm -rf conftest*
11254 ac_cv_cxx_const_cast=yes
11255 else
11256 echo "configure: failed program was:" >&5
11257 cat conftest.$ac_ext >&5
11258 rm -rf conftest*
11259 ac_cv_cxx_const_cast=no
11260 fi
11261 rm -f conftest*
11262 ac_ext=c
11263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11264 ac_cpp='$CPP $CPPFLAGS'
11265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11267 cross_compiling=$ac_cv_prog_cc_cross
11268
11269
11270 fi
11271
11272 echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11273 if test "$ac_cv_cxx_const_cast" = yes; then
11274 cat >> confdefs.h <<\EOF
11275 #define HAVE_CONST_CAST
11276 EOF
11277
11278 fi
11279
11280
11281
11282 SEARCH_INCLUDE="\
11283 /usr/local/include \
11284 \
11285 /usr/Motif-1.2/include \
11286 /usr/Motif-2.1/include \
11287 \
11288 /usr/include/Motif1.2 \
11289 /opt/xpm/include/X11 \
11290 /opt/GBxpm/include/ \
11291 /opt/GBxpm/X11/include/ \
11292 \
11293 /usr/Motif1.2/include \
11294 /usr/dt/include \
11295 /usr/openwin/include \
11296 \
11297 /usr/include/Xm \
11298 \
11299 /usr/X11R6/include \
11300 /usr/X11R6.4/include \
11301 /usr/X11R5/include \
11302 /usr/X11R4/include \
11303 \
11304 /usr/include/X11R6 \
11305 /usr/include/X11R5 \
11306 /usr/include/X11R4 \
11307 \
11308 /usr/local/X11R6/include \
11309 /usr/local/X11R5/include \
11310 /usr/local/X11R4/include \
11311 \
11312 /usr/local/include/X11R6 \
11313 /usr/local/include/X11R5 \
11314 /usr/local/include/X11R4 \
11315 \
11316 /usr/X11/include \
11317 /usr/include/X11 \
11318 /usr/local/X11/include \
11319 /usr/local/include/X11 \
11320 \
11321 /usr/X386/include \
11322 /usr/x386/include \
11323 /usr/XFree86/include/X11 \
11324 \
11325 X:/XFree86/include \
11326 X:/XFree86/include/X11 \
11327 \
11328 /usr/include/gtk \
11329 /usr/local/include/gtk \
11330 /usr/include/glib \
11331 /usr/local/include/glib \
11332 \
11333 /usr/include/qt \
11334 /usr/local/include/qt \
11335 \
11336 /usr/include/windows \
11337 /usr/include/wine \
11338 /usr/local/include/wine \
11339 \
11340 /usr/unsupported/include \
11341 /usr/athena/include \
11342 /usr/local/x11r5/include \
11343 /usr/lpp/Xamples/include \
11344 \
11345 /usr/openwin/share/include"
11346
11347 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11348
11349
11350 cat > confcache <<\EOF
11351 # This file is a shell script that caches the results of configure
11352 # tests run on this system so they can be shared between configure
11353 # scripts and configure runs. It is not useful on other systems.
11354 # If it contains results you don't want to keep, you may remove or edit it.
11355 #
11356 # By default, configure uses ./config.cache as the cache file,
11357 # creating it if it does not exist already. You can give configure
11358 # the --cache-file=FILE option to use a different cache file; that is
11359 # what configure does when it calls configure scripts in
11360 # subdirectories, so they share the cache.
11361 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11362 # config.status only pays attention to the cache file if you give it the
11363 # --recheck option to rerun configure.
11364 #
11365 EOF
11366 # The following way of writing the cache mishandles newlines in values,
11367 # but we know of no workaround that is simple, portable, and efficient.
11368 # So, don't put newlines in cache variables' values.
11369 # Ultrix sh set writes to stderr and can't be redirected directly,
11370 # and sets the high bit in the cache file unless we assign to the vars.
11371 (set) 2>&1 |
11372 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11373 *ac_space=\ *)
11374 # `set' does not quote correctly, so add quotes (double-quote substitution
11375 # turns \\\\ into \\, and sed turns \\ into \).
11376 sed -n \
11377 -e "s/'/'\\\\''/g" \
11378 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11379 ;;
11380 *)
11381 # `set' quotes correctly as required by POSIX, so do not add quotes.
11382 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11383 ;;
11384 esac >> confcache
11385 if cmp -s $cache_file confcache; then
11386 :
11387 else
11388 if test -w $cache_file; then
11389 echo "updating cache $cache_file"
11390 cat confcache > $cache_file
11391 else
11392 echo "not updating unwritable cache $cache_file"
11393 fi
11394 fi
11395 rm -f confcache
11396
11397
11398 if test "$USE_LINUX" = 1; then
11399 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11400 echo "configure:11401: checking for glibc 2.1 or later" >&5
11401 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11402 echo $ac_n "(cached) $ac_c" 1>&6
11403 else
11404
11405 cat > conftest.$ac_ext <<EOF
11406 #line 11407 "configure"
11407 #include "confdefs.h"
11408 #include <features.h>
11409 int main() {
11410
11411 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11412 #error not glibc2.1
11413 #endif
11414
11415 ; return 0; }
11416 EOF
11417 if { (eval echo configure:11418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11418 rm -rf conftest*
11419
11420 wx_cv_lib_glibc21=yes
11421
11422 else
11423 echo "configure: failed program was:" >&5
11424 cat conftest.$ac_ext >&5
11425 rm -rf conftest*
11426
11427 wx_cv_lib_glibc21=no
11428
11429
11430 fi
11431 rm -f conftest*
11432
11433 fi
11434
11435 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11436 if test "$wx_cv_lib_glibc21" = "yes"; then
11437 cat >> confdefs.h <<\EOF
11438 #define wxHAVE_GLIBC2 1
11439 EOF
11440
11441 fi
11442 fi
11443
11444 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11445 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11446 cat >> confdefs.h <<\EOF
11447 #define _GNU_SOURCE 1
11448 EOF
11449
11450 fi
11451 fi
11452
11453
11454
11455 REGEX_INCLUDE=
11456 if test "$wxUSE_REGEX" != "no"; then
11457 cat >> confdefs.h <<\EOF
11458 #define wxUSE_REGEX 1
11459 EOF
11460
11461
11462 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11463 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11464 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11465 echo "configure:11466: checking for regex.h" >&5
11466 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11467 echo $ac_n "(cached) $ac_c" 1>&6
11468 else
11469 cat > conftest.$ac_ext <<EOF
11470 #line 11471 "configure"
11471 #include "confdefs.h"
11472 #include <regex.h>
11473 EOF
11474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11475 { (eval echo configure:11476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11477 if test -z "$ac_err"; then
11478 rm -rf conftest*
11479 eval "ac_cv_header_$ac_safe=yes"
11480 else
11481 echo "$ac_err" >&5
11482 echo "configure: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
11484 rm -rf conftest*
11485 eval "ac_cv_header_$ac_safe=no"
11486 fi
11487 rm -f conftest*
11488 fi
11489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11490 echo "$ac_t""yes" 1>&6
11491 for ac_func in regcomp
11492 do
11493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11494 echo "configure:11495: checking for $ac_func" >&5
11495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11496 echo $ac_n "(cached) $ac_c" 1>&6
11497 else
11498 cat > conftest.$ac_ext <<EOF
11499 #line 11500 "configure"
11500 #include "confdefs.h"
11501 /* System header to define __stub macros and hopefully few prototypes,
11502 which can conflict with char $ac_func(); below. */
11503 #include <assert.h>
11504 /* Override any gcc2 internal prototype to avoid an error. */
11505 /* We use char because int might match the return type of a gcc2
11506 builtin and then its argument prototype would still apply. */
11507 char $ac_func();
11508
11509 int main() {
11510
11511 /* The GNU C library defines this for functions which it implements
11512 to always fail with ENOSYS. Some functions are actually named
11513 something starting with __ and the normal name is an alias. */
11514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11515 choke me
11516 #else
11517 $ac_func();
11518 #endif
11519
11520 ; return 0; }
11521 EOF
11522 if { (eval echo configure:11523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11523 rm -rf conftest*
11524 eval "ac_cv_func_$ac_func=yes"
11525 else
11526 echo "configure: failed program was:" >&5
11527 cat conftest.$ac_ext >&5
11528 rm -rf conftest*
11529 eval "ac_cv_func_$ac_func=no"
11530 fi
11531 rm -f conftest*
11532 fi
11533
11534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11535 echo "$ac_t""yes" 1>&6
11536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11537 cat >> confdefs.h <<EOF
11538 #define $ac_tr_func 1
11539 EOF
11540
11541 else
11542 echo "$ac_t""no" 1>&6
11543 fi
11544 done
11545
11546 else
11547 echo "$ac_t""no" 1>&6
11548 fi
11549
11550
11551 if test "x$ac_cv_func_regcomp" != "xyes"; then
11552 if test "$wxUSE_REGEX" = "sys" ; then
11553 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11554 else
11555 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11556 wxUSE_REGEX=builtin
11557 fi
11558 else
11559 wxUSE_REGEX=sys
11560 fi
11561 fi
11562
11563 if test "$wxUSE_REGEX" = "builtin" ; then
11564 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11565 fi
11566 fi
11567
11568
11569 ZLIB_INCLUDE=
11570 ZLIB_LINK=
11571 if test "$wxUSE_ZLIB" != "no" ; then
11572 cat >> confdefs.h <<\EOF
11573 #define wxUSE_ZLIB 1
11574 EOF
11575
11576
11577 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11578 if test "$USE_DARWIN" = 1; then
11579 system_zlib_h_ok="yes"
11580 else
11581 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11582 echo "configure:11583: checking for zlib.h >= 1.1.4" >&5
11583 if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11584 echo $ac_n "(cached) $ac_c" 1>&6
11585 else
11586 if test "$cross_compiling" = yes; then
11587 unset ac_cv_header_zlib_h
11588
11589 else
11590 cat > conftest.$ac_ext <<EOF
11591 #line 11592 "configure"
11592 #include "confdefs.h"
11593
11594 #include <zlib.h>
11595 #include <stdio.h>
11596
11597
11598 int main()
11599 {
11600 FILE *f=fopen("conftestval", "w");
11601 if (!f) exit(1);
11602 fprintf(f, "%s",
11603 ZLIB_VERSION[0] == '1' &&
11604 (ZLIB_VERSION[2] > '1' ||
11605 (ZLIB_VERSION[2] == '1' &&
11606 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11607 exit(0);
11608 }
11609
11610
11611 EOF
11612 if { (eval echo configure:11613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11613 then
11614 ac_cv_header_zlib_h=`cat conftestval`
11615 else
11616 echo "configure: failed program was:" >&5
11617 cat conftest.$ac_ext >&5
11618 rm -fr conftest*
11619 ac_cv_header_zlib_h=no
11620 fi
11621 rm -fr conftest*
11622 fi
11623
11624
11625 fi
11626
11627 echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11628 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11629 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11630 echo "configure:11631: checking for zlib.h" >&5
11631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11632 echo $ac_n "(cached) $ac_c" 1>&6
11633 else
11634 cat > conftest.$ac_ext <<EOF
11635 #line 11636 "configure"
11636 #include "confdefs.h"
11637 #include <zlib.h>
11638 EOF
11639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11640 { (eval echo configure:11641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11642 if test -z "$ac_err"; then
11643 rm -rf conftest*
11644 eval "ac_cv_header_$ac_safe=yes"
11645 else
11646 echo "$ac_err" >&5
11647 echo "configure: failed program was:" >&5
11648 cat conftest.$ac_ext >&5
11649 rm -rf conftest*
11650 eval "ac_cv_header_$ac_safe=no"
11651 fi
11652 rm -f conftest*
11653 fi
11654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11655 echo "$ac_t""yes" 1>&6
11656 :
11657 else
11658 echo "$ac_t""no" 1>&6
11659 fi
11660
11661
11662 system_zlib_h_ok=$ac_cv_header_zlib_h
11663 fi
11664
11665 if test "$system_zlib_h_ok" = "yes"; then
11666 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11667 echo "configure:11668: checking for deflate in -lz" >&5
11668 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11670 echo $ac_n "(cached) $ac_c" 1>&6
11671 else
11672 ac_save_LIBS="$LIBS"
11673 LIBS="-lz $LIBS"
11674 cat > conftest.$ac_ext <<EOF
11675 #line 11676 "configure"
11676 #include "confdefs.h"
11677 /* Override any gcc2 internal prototype to avoid an error. */
11678 /* We use char because int might match the return type of a gcc2
11679 builtin and then its argument prototype would still apply. */
11680 char deflate();
11681
11682 int main() {
11683 deflate()
11684 ; return 0; }
11685 EOF
11686 if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11687 rm -rf conftest*
11688 eval "ac_cv_lib_$ac_lib_var=yes"
11689 else
11690 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11692 rm -rf conftest*
11693 eval "ac_cv_lib_$ac_lib_var=no"
11694 fi
11695 rm -f conftest*
11696 LIBS="$ac_save_LIBS"
11697
11698 fi
11699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11700 echo "$ac_t""yes" 1>&6
11701 ZLIB_LINK=" -lz"
11702 else
11703 echo "$ac_t""no" 1>&6
11704 fi
11705
11706 fi
11707
11708 if test "x$ZLIB_LINK" = "x" ; then
11709 if test "$wxUSE_ZLIB" = "sys" ; then
11710 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11711 else
11712 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11713 wxUSE_ZLIB=builtin
11714 fi
11715 else
11716 wxUSE_ZLIB=sys
11717 fi
11718 fi
11719
11720 if test "$wxUSE_ZLIB" = "builtin" ; then
11721 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11722 fi
11723 fi
11724
11725
11726 PNG_INCLUDE=
11727 PNG_LINK=
11728 if test "$wxUSE_LIBPNG" != "no" ; then
11729 cat >> confdefs.h <<\EOF
11730 #define wxUSE_LIBPNG 1
11731 EOF
11732
11733
11734 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11735 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11736 wxUSE_LIBPNG=sys
11737 fi
11738
11739 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11740 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11741 wxUSE_LIBPNG=builtin
11742 fi
11743
11744 if test "$wxUSE_MGL" != 1 ; then
11745 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11746 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11747 echo "configure:11748: checking for png.h > 0.90" >&5
11748 if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11749 echo $ac_n "(cached) $ac_c" 1>&6
11750 else
11751 if test "$cross_compiling" = yes; then
11752 unset ac_cv_header_png_h
11753
11754 else
11755 cat > conftest.$ac_ext <<EOF
11756 #line 11757 "configure"
11757 #include "confdefs.h"
11758
11759 #include <png.h>
11760 #include <stdio.h>
11761
11762 int main()
11763 {
11764 FILE *f=fopen("conftestval", "w");
11765 if (!f) exit(1);
11766 fprintf(f, "%s",
11767 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11768 exit(0);
11769 }
11770
11771 EOF
11772 if { (eval echo configure:11773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11773 then
11774 ac_cv_header_png_h=`cat conftestval`
11775 else
11776 echo "configure: failed program was:" >&5
11777 cat conftest.$ac_ext >&5
11778 rm -fr conftest*
11779 ac_cv_header_png_h=no
11780 fi
11781 rm -fr conftest*
11782 fi
11783
11784
11785 fi
11786
11787 echo "$ac_t""$ac_cv_header_png_h" 1>&6
11788 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11789 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11790 echo "configure:11791: checking for png.h" >&5
11791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11792 echo $ac_n "(cached) $ac_c" 1>&6
11793 else
11794 cat > conftest.$ac_ext <<EOF
11795 #line 11796 "configure"
11796 #include "confdefs.h"
11797 #include <png.h>
11798 EOF
11799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11800 { (eval echo configure:11801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11802 if test -z "$ac_err"; then
11803 rm -rf conftest*
11804 eval "ac_cv_header_$ac_safe=yes"
11805 else
11806 echo "$ac_err" >&5
11807 echo "configure: failed program was:" >&5
11808 cat conftest.$ac_ext >&5
11809 rm -rf conftest*
11810 eval "ac_cv_header_$ac_safe=no"
11811 fi
11812 rm -f conftest*
11813 fi
11814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11815 echo "$ac_t""yes" 1>&6
11816 :
11817 else
11818 echo "$ac_t""no" 1>&6
11819 fi
11820
11821
11822 if test "$ac_cv_header_png_h" = "yes"; then
11823 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11824 echo "configure:11825: checking for png_check_sig in -lpng" >&5
11825 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11827 echo $ac_n "(cached) $ac_c" 1>&6
11828 else
11829 ac_save_LIBS="$LIBS"
11830 LIBS="-lpng -lz -lm $LIBS"
11831 cat > conftest.$ac_ext <<EOF
11832 #line 11833 "configure"
11833 #include "confdefs.h"
11834 /* Override any gcc2 internal prototype to avoid an error. */
11835 /* We use char because int might match the return type of a gcc2
11836 builtin and then its argument prototype would still apply. */
11837 char png_check_sig();
11838
11839 int main() {
11840 png_check_sig()
11841 ; return 0; }
11842 EOF
11843 if { (eval echo configure:11844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11844 rm -rf conftest*
11845 eval "ac_cv_lib_$ac_lib_var=yes"
11846 else
11847 echo "configure: failed program was:" >&5
11848 cat conftest.$ac_ext >&5
11849 rm -rf conftest*
11850 eval "ac_cv_lib_$ac_lib_var=no"
11851 fi
11852 rm -f conftest*
11853 LIBS="$ac_save_LIBS"
11854
11855 fi
11856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11857 echo "$ac_t""yes" 1>&6
11858 PNG_LINK=" -lpng"
11859 else
11860 echo "$ac_t""no" 1>&6
11861 fi
11862
11863 fi
11864
11865 if test "x$PNG_LINK" = "x" ; then
11866 if test "$wxUSE_LIBPNG" = "sys" ; then
11867 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11868 else
11869 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11870 wxUSE_LIBPNG=builtin
11871 fi
11872 else
11873 wxUSE_LIBPNG=sys
11874 fi
11875 fi
11876 fi
11877
11878 if test "$wxUSE_LIBPNG" = "builtin" ; then
11879 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11880 fi
11881
11882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11883 fi
11884
11885
11886 JPEG_INCLUDE=
11887 JPEG_LINK=
11888 if test "$wxUSE_LIBJPEG" != "no" ; then
11889 cat >> confdefs.h <<\EOF
11890 #define wxUSE_LIBJPEG 1
11891 EOF
11892
11893
11894 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11895 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11896 wxUSE_LIBJPEG=sys
11897 fi
11898
11899 if test "$wxUSE_MGL" != 1 ; then
11900 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11901 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11902 echo "configure:11903: checking for jpeglib.h" >&5
11903 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11904 echo $ac_n "(cached) $ac_c" 1>&6
11905 else
11906 cat > conftest.$ac_ext <<EOF
11907 #line 11908 "configure"
11908 #include "confdefs.h"
11909
11910 #undef HAVE_STDLIB_H
11911 #include <stdio.h>
11912 #include <jpeglib.h>
11913
11914 int main() {
11915
11916
11917 ; return 0; }
11918 EOF
11919 if { (eval echo configure:11920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11920 rm -rf conftest*
11921 ac_cv_header_jpeglib_h=yes
11922 else
11923 echo "configure: failed program was:" >&5
11924 cat conftest.$ac_ext >&5
11925 rm -rf conftest*
11926 ac_cv_header_jpeglib_h=no
11927
11928 fi
11929 rm -f conftest*
11930
11931 fi
11932
11933 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11934
11935 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11936 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11937 echo "configure:11938: checking for jpeg_read_header in -ljpeg" >&5
11938 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11940 echo $ac_n "(cached) $ac_c" 1>&6
11941 else
11942 ac_save_LIBS="$LIBS"
11943 LIBS="-ljpeg $LIBS"
11944 cat > conftest.$ac_ext <<EOF
11945 #line 11946 "configure"
11946 #include "confdefs.h"
11947 /* Override any gcc2 internal prototype to avoid an error. */
11948 /* We use char because int might match the return type of a gcc2
11949 builtin and then its argument prototype would still apply. */
11950 char jpeg_read_header();
11951
11952 int main() {
11953 jpeg_read_header()
11954 ; return 0; }
11955 EOF
11956 if { (eval echo configure:11957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11957 rm -rf conftest*
11958 eval "ac_cv_lib_$ac_lib_var=yes"
11959 else
11960 echo "configure: failed program was:" >&5
11961 cat conftest.$ac_ext >&5
11962 rm -rf conftest*
11963 eval "ac_cv_lib_$ac_lib_var=no"
11964 fi
11965 rm -f conftest*
11966 LIBS="$ac_save_LIBS"
11967
11968 fi
11969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11970 echo "$ac_t""yes" 1>&6
11971 JPEG_LINK=" -ljpeg"
11972 else
11973 echo "$ac_t""no" 1>&6
11974 fi
11975
11976 fi
11977
11978 if test "x$JPEG_LINK" = "x" ; then
11979 if test "$wxUSE_LIBJPEG" = "sys" ; then
11980 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11981 else
11982 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11983 wxUSE_LIBJPEG=builtin
11984 fi
11985 else
11986 wxUSE_LIBJPEG=sys
11987 fi
11988 fi
11989 fi
11990
11991 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11992 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11993 fi
11994 fi
11995
11996
11997 TIFF_INCLUDE=
11998 TIFF_LINK=
11999 TIFF_PREREQ_LINKS=-lm
12000 if test "$wxUSE_LIBTIFF" != "no" ; then
12001 cat >> confdefs.h <<\EOF
12002 #define wxUSE_LIBTIFF 1
12003 EOF
12004
12005
12006 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12007 if test "$wxUSE_LIBJPEG" = "sys"; then
12008 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12009 fi
12010 if test "$wxUSE_ZLIB" = "sys"; then
12011 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12012 fi
12013 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12014 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12015 echo "configure:12016: checking for tiffio.h" >&5
12016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12017 echo $ac_n "(cached) $ac_c" 1>&6
12018 else
12019 cat > conftest.$ac_ext <<EOF
12020 #line 12021 "configure"
12021 #include "confdefs.h"
12022 #include <tiffio.h>
12023 EOF
12024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12025 { (eval echo configure:12026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12027 if test -z "$ac_err"; then
12028 rm -rf conftest*
12029 eval "ac_cv_header_$ac_safe=yes"
12030 else
12031 echo "$ac_err" >&5
12032 echo "configure: failed program was:" >&5
12033 cat conftest.$ac_ext >&5
12034 rm -rf conftest*
12035 eval "ac_cv_header_$ac_safe=no"
12036 fi
12037 rm -f conftest*
12038 fi
12039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12040 echo "$ac_t""yes" 1>&6
12041 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12042 echo "configure:12043: checking for TIFFError in -ltiff" >&5
12043 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12045 echo $ac_n "(cached) $ac_c" 1>&6
12046 else
12047 ac_save_LIBS="$LIBS"
12048 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12049 cat > conftest.$ac_ext <<EOF
12050 #line 12051 "configure"
12051 #include "confdefs.h"
12052 /* Override any gcc2 internal prototype to avoid an error. */
12053 /* We use char because int might match the return type of a gcc2
12054 builtin and then its argument prototype would still apply. */
12055 char TIFFError();
12056
12057 int main() {
12058 TIFFError()
12059 ; return 0; }
12060 EOF
12061 if { (eval echo configure:12062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12062 rm -rf conftest*
12063 eval "ac_cv_lib_$ac_lib_var=yes"
12064 else
12065 echo "configure: failed program was:" >&5
12066 cat conftest.$ac_ext >&5
12067 rm -rf conftest*
12068 eval "ac_cv_lib_$ac_lib_var=no"
12069 fi
12070 rm -f conftest*
12071 LIBS="$ac_save_LIBS"
12072
12073 fi
12074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12075 echo "$ac_t""yes" 1>&6
12076 TIFF_LINK=" -ltiff"
12077 else
12078 echo "$ac_t""no" 1>&6
12079 fi
12080
12081
12082 else
12083 echo "$ac_t""no" 1>&6
12084 fi
12085
12086
12087 if test "x$TIFF_LINK" = "x" ; then
12088 if test "$wxUSE_LIBTIFF" = "sys" ; then
12089 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12090 else
12091 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12092 wxUSE_LIBTIFF=builtin
12093 fi
12094 else
12095 wxUSE_LIBTIFF=sys
12096 fi
12097 fi
12098
12099 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12100 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12101 fi
12102 fi
12103
12104
12105 AFMINSTALL=
12106 WIN32INSTALL=
12107
12108 TOOLKIT=
12109 TOOLKIT_INCLUDE=
12110 WIDGET_SET=
12111
12112 if test "$USE_WIN32" = 1 ; then
12113 for ac_hdr in w32api.h
12114 do
12115 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12117 echo "configure:12118: checking for $ac_hdr" >&5
12118 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12119 echo $ac_n "(cached) $ac_c" 1>&6
12120 else
12121 cat > conftest.$ac_ext <<EOF
12122 #line 12123 "configure"
12123 #include "confdefs.h"
12124 #include <$ac_hdr>
12125 EOF
12126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12127 { (eval echo configure:12128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12129 if test -z "$ac_err"; then
12130 rm -rf conftest*
12131 eval "ac_cv_header_$ac_safe=yes"
12132 else
12133 echo "$ac_err" >&5
12134 echo "configure: failed program was:" >&5
12135 cat conftest.$ac_ext >&5
12136 rm -rf conftest*
12137 eval "ac_cv_header_$ac_safe=no"
12138 fi
12139 rm -f conftest*
12140 fi
12141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12142 echo "$ac_t""yes" 1>&6
12143 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12144 cat >> confdefs.h <<EOF
12145 #define $ac_tr_hdr 1
12146 EOF
12147
12148 else
12149 echo "$ac_t""no" 1>&6
12150 fi
12151 done
12152
12153 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12154 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12155 echo "configure:12156: checking for windows.h" >&5
12156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12157 echo $ac_n "(cached) $ac_c" 1>&6
12158 else
12159 cat > conftest.$ac_ext <<EOF
12160 #line 12161 "configure"
12161 #include "confdefs.h"
12162 #include <windows.h>
12163 EOF
12164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12165 { (eval echo configure:12166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12167 if test -z "$ac_err"; then
12168 rm -rf conftest*
12169 eval "ac_cv_header_$ac_safe=yes"
12170 else
12171 echo "$ac_err" >&5
12172 echo "configure: failed program was:" >&5
12173 cat conftest.$ac_ext >&5
12174 rm -rf conftest*
12175 eval "ac_cv_header_$ac_safe=no"
12176 fi
12177 rm -f conftest*
12178 fi
12179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12180 echo "$ac_t""yes" 1>&6
12181 :
12182 else
12183 echo "$ac_t""no" 1>&6
12184
12185 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12186
12187 fi
12188
12189
12190 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12191 echo "configure:12192: checking if w32api has good enough MSIE support" >&5
12192 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12193 echo $ac_n "(cached) $ac_c" 1>&6
12194 else
12195
12196 cat > conftest.$ac_ext <<EOF
12197 #line 12198 "configure"
12198 #include "confdefs.h"
12199 #include <w32api.h>
12200 int main() {
12201
12202 #define wxCHECK_W32API_VERSION( major, minor ) \
12203 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12204 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12205 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12206
12207 #if !wxCHECK_W32API_VERSION(1,1)
12208 #error You need w32api 1.1 or newer
12209 #endif
12210
12211 ; return 0; }
12212 EOF
12213 if { (eval echo configure:12214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12214 rm -rf conftest*
12215
12216 wx_cv_w32api_win32_ie=yes
12217
12218 else
12219 echo "configure: failed program was:" >&5
12220 cat conftest.$ac_ext >&5
12221 rm -rf conftest*
12222
12223 wx_cv_w32api_win32_ie=no
12224
12225 fi
12226 rm -f conftest*
12227
12228 fi
12229
12230 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12231 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12232 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12233 fi
12234
12235 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12236
12237 case "${host}" in
12238 *-*-cygwin* )
12239 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12240 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12241 esac
12242
12243 if test "$wxUSE_ODBC" = "yes" ; then
12244 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12245 fi
12246
12247 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12248 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12249
12250 WIN32INSTALL=win32install
12251 fi
12252
12253 if test "$USE_DARWIN" = 1; then
12254 if test "$wxUSE_PRECOMP" = "yes"; then
12255 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12256 else
12257 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12258 fi
12259 fi
12260
12261 if test "$wxUSE_GUI" = "yes"; then
12262 USE_GUI=1
12263
12264 GUI_TK_LIBRARY=
12265
12266 WXGTK12=
12267 WXGTK127=
12268 WXGTK20=
12269
12270 if test "$wxUSE_MSW" = 1 ; then
12271 TOOLKIT=MSW
12272 GUIDIST=MSW_DIST
12273
12274 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12275 fi
12276
12277 if test "$wxUSE_GTK" = 1; then
12278 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12279 echo "configure:12280: checking for GTK+ version" >&5
12280
12281 gtk_version_cached=1
12282 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12283 echo $ac_n "(cached) $ac_c" 1>&6
12284 else
12285
12286 gtk_version_cached=0
12287 echo "$ac_t""" 1>&6
12288
12289 GTK_MODULES=
12290 if test "$wxUSE_THREADS" = "yes"; then
12291 GTK_MODULES=gthread
12292 fi
12293
12294 wx_cv_lib_gtk=
12295 if test "x$wxUSE_GTK2" = "xyes"; then
12296 # Check whether --enable-gtktest or --disable-gtktest was given.
12297 if test "${enable_gtktest+set}" = set; then
12298 enableval="$enable_gtktest"
12299 :
12300 else
12301 enable_gtktest=yes
12302 fi
12303
12304
12305 pkg_config_args=gtk+-2.0
12306 for module in . $GTK_MODULES
12307 do
12308 case "$module" in
12309 gthread)
12310 pkg_config_args="$pkg_config_args gthread-2.0"
12311 ;;
12312 esac
12313 done
12314
12315 no_gtk=""
12316
12317 # Extract the first word of "pkg-config", so it can be a program name with args.
12318 set dummy pkg-config; ac_word=$2
12319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12320 echo "configure:12321: checking for $ac_word" >&5
12321 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12322 echo $ac_n "(cached) $ac_c" 1>&6
12323 else
12324 case "$PKG_CONFIG" in
12325 /*)
12326 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12327 ;;
12328 ?:/*)
12329 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12330 ;;
12331 *)
12332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12333 ac_dummy="$PATH"
12334 for ac_dir in $ac_dummy; do
12335 test -z "$ac_dir" && ac_dir=.
12336 if test -f $ac_dir/$ac_word; then
12337 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12338 break
12339 fi
12340 done
12341 IFS="$ac_save_ifs"
12342 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12343 ;;
12344 esac
12345 fi
12346 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12347 if test -n "$PKG_CONFIG"; then
12348 echo "$ac_t""$PKG_CONFIG" 1>&6
12349 else
12350 echo "$ac_t""no" 1>&6
12351 fi
12352
12353
12354 if test x$PKG_CONFIG != xno ; then
12355 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12356 :
12357 else
12358 echo *** pkg-config too old; version 0.7 or better required.
12359 no_gtk=yes
12360 PKG_CONFIG=no
12361 fi
12362 else
12363 no_gtk=yes
12364 fi
12365
12366 min_gtk_version=2.0.0
12367 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12368 echo "configure:12369: checking for GTK+ - version >= $min_gtk_version" >&5
12369
12370 if test x$PKG_CONFIG != xno ; then
12371 ## don't try to run the test against uninstalled libtool libs
12372 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12373 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12374 enable_gtktest=no
12375 fi
12376
12377 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12378 :
12379 else
12380 no_gtk=yes
12381 fi
12382 fi
12383
12384 if test x"$no_gtk" = x ; then
12385 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12386 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12387 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12388 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12389 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12390 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12391 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12392 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12393 if test "x$enable_gtktest" = "xyes" ; then
12394 ac_save_CFLAGS="$CFLAGS"
12395 ac_save_LIBS="$LIBS"
12396 CFLAGS="$CFLAGS $GTK_CFLAGS"
12397 LIBS="$GTK_LIBS $LIBS"
12398 rm -f conf.gtktest
12399 if test "$cross_compiling" = yes; then
12400 echo $ac_n "cross compiling; assumed OK... $ac_c"
12401 else
12402 cat > conftest.$ac_ext <<EOF
12403 #line 12404 "configure"
12404 #include "confdefs.h"
12405
12406 #include <gtk/gtk.h>
12407 #include <stdio.h>
12408 #include <stdlib.h>
12409
12410 int
12411 main ()
12412 {
12413 int major, minor, micro;
12414 char *tmp_version;
12415
12416 system ("touch conf.gtktest");
12417
12418 /* HP/UX 9 (%@#!) writes to sscanf strings */
12419 tmp_version = g_strdup("$min_gtk_version");
12420 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12421 printf("%s, bad version string\n", "$min_gtk_version");
12422 exit(1);
12423 }
12424
12425 if ((gtk_major_version != $gtk_config_major_version) ||
12426 (gtk_minor_version != $gtk_config_minor_version) ||
12427 (gtk_micro_version != $gtk_config_micro_version))
12428 {
12429 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12430 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12431 gtk_major_version, gtk_minor_version, gtk_micro_version);
12432 printf ("*** was found! If pkg-config was correct, then it is best\n");
12433 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12434 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12435 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12436 printf("*** required on your system.\n");
12437 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12438 printf("*** to point to the correct configuration files\n");
12439 }
12440 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12441 (gtk_minor_version != GTK_MINOR_VERSION) ||
12442 (gtk_micro_version != GTK_MICRO_VERSION))
12443 {
12444 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12445 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12446 printf("*** library (version %d.%d.%d)\n",
12447 gtk_major_version, gtk_minor_version, gtk_micro_version);
12448 }
12449 else
12450 {
12451 if ((gtk_major_version > major) ||
12452 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12453 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12454 {
12455 return 0;
12456 }
12457 else
12458 {
12459 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12460 gtk_major_version, gtk_minor_version, gtk_micro_version);
12461 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12462 major, minor, micro);
12463 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12464 printf("***\n");
12465 printf("*** If you have already installed a sufficiently new version, this error\n");
12466 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12467 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12468 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12469 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12470 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12471 printf("*** so that the correct libraries are found at run-time))\n");
12472 }
12473 }
12474 return 1;
12475 }
12476
12477 EOF
12478 if { (eval echo configure:12479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12479 then
12480 :
12481 else
12482 echo "configure: failed program was:" >&5
12483 cat conftest.$ac_ext >&5
12484 rm -fr conftest*
12485 no_gtk=yes
12486 fi
12487 rm -fr conftest*
12488 fi
12489
12490 CFLAGS="$ac_save_CFLAGS"
12491 LIBS="$ac_save_LIBS"
12492 fi
12493 fi
12494 if test "x$no_gtk" = x ; then
12495 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12496 wx_cv_lib_gtk=2.0
12497 else
12498 echo "$ac_t""no" 1>&6
12499 if test "$PKG_CONFIG" = "no" ; then
12500 echo "*** A new enough version of pkg-config was not found."
12501 echo "*** See http://pkgconfig.sourceforge.net"
12502 else
12503 if test -f conf.gtktest ; then
12504 :
12505 else
12506 echo "*** Could not run GTK+ test program, checking why..."
12507 ac_save_CFLAGS="$CFLAGS"
12508 ac_save_LIBS="$LIBS"
12509 CFLAGS="$CFLAGS $GTK_CFLAGS"
12510 LIBS="$LIBS $GTK_LIBS"
12511 cat > conftest.$ac_ext <<EOF
12512 #line 12513 "configure"
12513 #include "confdefs.h"
12514
12515 #include <gtk/gtk.h>
12516 #include <stdio.h>
12517
12518 int main() {
12519 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12520 ; return 0; }
12521 EOF
12522 if { (eval echo configure:12523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12523 rm -rf conftest*
12524 echo "*** The test program compiled, but did not run. This usually means"
12525 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12526 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12527 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12528 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12529 echo "*** is required on your system"
12530 echo "***"
12531 echo "*** If you have an old version installed, it is best to remove it, although"
12532 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12533 else
12534 echo "configure: failed program was:" >&5
12535 cat conftest.$ac_ext >&5
12536 rm -rf conftest*
12537 echo "*** The test program failed to compile or link. See the file config.log for the"
12538 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12539 fi
12540 rm -f conftest*
12541 CFLAGS="$ac_save_CFLAGS"
12542 LIBS="$ac_save_LIBS"
12543 fi
12544 fi
12545 GTK_CFLAGS=""
12546 GTK_LIBS=""
12547 :
12548 fi
12549
12550
12551 rm -f conf.gtktest
12552
12553 else
12554 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12555 if test "${with_gtk_prefix+set}" = set; then
12556 withval="$with_gtk_prefix"
12557 gtk_config_prefix="$withval"
12558 else
12559 gtk_config_prefix=""
12560 fi
12561
12562 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12563 if test "${with_gtk_exec_prefix+set}" = set; then
12564 withval="$with_gtk_exec_prefix"
12565 gtk_config_exec_prefix="$withval"
12566 else
12567 gtk_config_exec_prefix=""
12568 fi
12569
12570 # Check whether --enable-gtktest or --disable-gtktest was given.
12571 if test "${enable_gtktest+set}" = set; then
12572 enableval="$enable_gtktest"
12573 :
12574 else
12575 enable_gtktest=yes
12576 fi
12577
12578
12579 for module in . $GTK_MODULES
12580 do
12581 case "$module" in
12582 gthread)
12583 gtk_config_args="$gtk_config_args gthread"
12584 ;;
12585 esac
12586 done
12587
12588 if test x$gtk_config_exec_prefix != x ; then
12589 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12590 if test x${GTK_CONFIG+set} != xset ; then
12591 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12592 fi
12593 fi
12594 if test x$gtk_config_prefix != x ; then
12595 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12596 if test x${GTK_CONFIG+set} != xset ; then
12597 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12598 fi
12599 fi
12600
12601 # Extract the first word of "gtk-config", so it can be a program name with args.
12602 set dummy gtk-config; ac_word=$2
12603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12604 echo "configure:12605: checking for $ac_word" >&5
12605 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12606 echo $ac_n "(cached) $ac_c" 1>&6
12607 else
12608 case "$GTK_CONFIG" in
12609 /*)
12610 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12611 ;;
12612 ?:/*)
12613 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12614 ;;
12615 *)
12616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12617 ac_dummy="$PATH"
12618 for ac_dir in $ac_dummy; do
12619 test -z "$ac_dir" && ac_dir=.
12620 if test -f $ac_dir/$ac_word; then
12621 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12622 break
12623 fi
12624 done
12625 IFS="$ac_save_ifs"
12626 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12627 ;;
12628 esac
12629 fi
12630 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12631 if test -n "$GTK_CONFIG"; then
12632 echo "$ac_t""$GTK_CONFIG" 1>&6
12633 else
12634 echo "$ac_t""no" 1>&6
12635 fi
12636
12637 min_gtk_version=1.2.7
12638 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12639 echo "configure:12640: checking for GTK - version >= $min_gtk_version" >&5
12640 no_gtk=""
12641 if test "$GTK_CONFIG" = "no" ; then
12642 no_gtk=yes
12643 else
12644 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12645 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12646 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12647 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12648 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12649 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12650 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12651 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12652 if test "x$enable_gtktest" = "xyes" ; then
12653 ac_save_CFLAGS="$CFLAGS"
12654 ac_save_LIBS="$LIBS"
12655 CFLAGS="$CFLAGS $GTK_CFLAGS"
12656 LIBS="$GTK_LIBS $LIBS"
12657 rm -f conf.gtktest
12658 if test "$cross_compiling" = yes; then
12659 echo $ac_n "cross compiling; assumed OK... $ac_c"
12660 else
12661 cat > conftest.$ac_ext <<EOF
12662 #line 12663 "configure"
12663 #include "confdefs.h"
12664
12665 #include <gtk/gtk.h>
12666 #include <stdio.h>
12667 #include <stdlib.h>
12668
12669 int
12670 main ()
12671 {
12672 int major, minor, micro;
12673 char *tmp_version;
12674
12675 system ("touch conf.gtktest");
12676
12677 /* HP/UX 9 (%@#!) writes to sscanf strings */
12678 tmp_version = g_strdup("$min_gtk_version");
12679 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12680 printf("%s, bad version string\n", "$min_gtk_version");
12681 exit(1);
12682 }
12683
12684 if ((gtk_major_version != $gtk_config_major_version) ||
12685 (gtk_minor_version != $gtk_config_minor_version) ||
12686 (gtk_micro_version != $gtk_config_micro_version))
12687 {
12688 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12689 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12690 gtk_major_version, gtk_minor_version, gtk_micro_version);
12691 printf ("*** was found! If gtk-config was correct, then it is best\n");
12692 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12693 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12694 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12695 printf("*** required on your system.\n");
12696 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12697 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12698 printf("*** before re-running configure\n");
12699 }
12700 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12701 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12702 (gtk_minor_version != GTK_MINOR_VERSION) ||
12703 (gtk_micro_version != GTK_MICRO_VERSION))
12704 {
12705 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12706 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12707 printf("*** library (version %d.%d.%d)\n",
12708 gtk_major_version, gtk_minor_version, gtk_micro_version);
12709 }
12710 #endif /* defined (GTK_MAJOR_VERSION) ... */
12711 else
12712 {
12713 if ((gtk_major_version > major) ||
12714 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12715 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12716 {
12717 return 0;
12718 }
12719 else
12720 {
12721 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12722 gtk_major_version, gtk_minor_version, gtk_micro_version);
12723 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12724 major, minor, micro);
12725 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12726 printf("***\n");
12727 printf("*** If you have already installed a sufficiently new version, this error\n");
12728 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12729 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12730 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12731 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12732 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12733 printf("*** so that the correct libraries are found at run-time))\n");
12734 }
12735 }
12736 return 1;
12737 }
12738
12739 EOF
12740 if { (eval echo configure:12741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12741 then
12742 :
12743 else
12744 echo "configure: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 rm -fr conftest*
12747 no_gtk=yes
12748 fi
12749 rm -fr conftest*
12750 fi
12751
12752 CFLAGS="$ac_save_CFLAGS"
12753 LIBS="$ac_save_LIBS"
12754 fi
12755 fi
12756 if test "x$no_gtk" = x ; then
12757 echo "$ac_t""yes" 1>&6
12758 wx_cv_lib_gtk=1.2.7
12759 else
12760 echo "$ac_t""no" 1>&6
12761 if test "$GTK_CONFIG" = "no" ; then
12762 echo "*** The gtk-config script installed by GTK could not be found"
12763 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12764 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12765 echo "*** full path to gtk-config."
12766 else
12767 if test -f conf.gtktest ; then
12768 :
12769 else
12770 echo "*** Could not run GTK test program, checking why..."
12771 CFLAGS="$CFLAGS $GTK_CFLAGS"
12772 LIBS="$LIBS $GTK_LIBS"
12773 cat > conftest.$ac_ext <<EOF
12774 #line 12775 "configure"
12775 #include "confdefs.h"
12776
12777 #include <gtk/gtk.h>
12778 #include <stdio.h>
12779
12780 int main() {
12781 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12782 ; return 0; }
12783 EOF
12784 if { (eval echo configure:12785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12785 rm -rf conftest*
12786 echo "*** The test program compiled, but did not run. This usually means"
12787 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12788 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12789 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12790 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12791 echo "*** is required on your system"
12792 echo "***"
12793 echo "*** If you have an old version installed, it is best to remove it, although"
12794 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12795 echo "***"
12796 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12797 echo "*** came with the system with the command"
12798 echo "***"
12799 echo "*** rpm --erase --nodeps gtk gtk-devel"
12800 else
12801 echo "configure: failed program was:" >&5
12802 cat conftest.$ac_ext >&5
12803 rm -rf conftest*
12804 echo "*** The test program failed to compile or link. See the file config.log for the"
12805 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12806 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12807 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12808 fi
12809 rm -f conftest*
12810 CFLAGS="$ac_save_CFLAGS"
12811 LIBS="$ac_save_LIBS"
12812 fi
12813 fi
12814 GTK_CFLAGS=""
12815 GTK_LIBS=""
12816 :
12817 fi
12818
12819
12820 rm -f conf.gtktest
12821
12822
12823 if test -z "$wx_cv_lib_gtk"; then
12824 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12825 if test "${with_gtk_prefix+set}" = set; then
12826 withval="$with_gtk_prefix"
12827 gtk_config_prefix="$withval"
12828 else
12829 gtk_config_prefix=""
12830 fi
12831
12832 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12833 if test "${with_gtk_exec_prefix+set}" = set; then
12834 withval="$with_gtk_exec_prefix"
12835 gtk_config_exec_prefix="$withval"
12836 else
12837 gtk_config_exec_prefix=""
12838 fi
12839
12840 # Check whether --enable-gtktest or --disable-gtktest was given.
12841 if test "${enable_gtktest+set}" = set; then
12842 enableval="$enable_gtktest"
12843 :
12844 else
12845 enable_gtktest=yes
12846 fi
12847
12848
12849 for module in . $GTK_MODULES
12850 do
12851 case "$module" in
12852 gthread)
12853 gtk_config_args="$gtk_config_args gthread"
12854 ;;
12855 esac
12856 done
12857
12858 if test x$gtk_config_exec_prefix != x ; then
12859 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12860 if test x${GTK_CONFIG+set} != xset ; then
12861 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12862 fi
12863 fi
12864 if test x$gtk_config_prefix != x ; then
12865 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12866 if test x${GTK_CONFIG+set} != xset ; then
12867 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12868 fi
12869 fi
12870
12871 # Extract the first word of "gtk-config", so it can be a program name with args.
12872 set dummy gtk-config; ac_word=$2
12873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12874 echo "configure:12875: checking for $ac_word" >&5
12875 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12876 echo $ac_n "(cached) $ac_c" 1>&6
12877 else
12878 case "$GTK_CONFIG" in
12879 /*)
12880 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12881 ;;
12882 ?:/*)
12883 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12884 ;;
12885 *)
12886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12887 ac_dummy="$PATH"
12888 for ac_dir in $ac_dummy; do
12889 test -z "$ac_dir" && ac_dir=.
12890 if test -f $ac_dir/$ac_word; then
12891 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12892 break
12893 fi
12894 done
12895 IFS="$ac_save_ifs"
12896 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12897 ;;
12898 esac
12899 fi
12900 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12901 if test -n "$GTK_CONFIG"; then
12902 echo "$ac_t""$GTK_CONFIG" 1>&6
12903 else
12904 echo "$ac_t""no" 1>&6
12905 fi
12906
12907 min_gtk_version=1.2.3
12908 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12909 echo "configure:12910: checking for GTK - version >= $min_gtk_version" >&5
12910 no_gtk=""
12911 if test "$GTK_CONFIG" = "no" ; then
12912 no_gtk=yes
12913 else
12914 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12915 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12916 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12917 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12918 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12919 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12920 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12921 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12922 if test "x$enable_gtktest" = "xyes" ; then
12923 ac_save_CFLAGS="$CFLAGS"
12924 ac_save_LIBS="$LIBS"
12925 CFLAGS="$CFLAGS $GTK_CFLAGS"
12926 LIBS="$GTK_LIBS $LIBS"
12927 rm -f conf.gtktest
12928 if test "$cross_compiling" = yes; then
12929 echo $ac_n "cross compiling; assumed OK... $ac_c"
12930 else
12931 cat > conftest.$ac_ext <<EOF
12932 #line 12933 "configure"
12933 #include "confdefs.h"
12934
12935 #include <gtk/gtk.h>
12936 #include <stdio.h>
12937 #include <stdlib.h>
12938
12939 int
12940 main ()
12941 {
12942 int major, minor, micro;
12943 char *tmp_version;
12944
12945 system ("touch conf.gtktest");
12946
12947 /* HP/UX 9 (%@#!) writes to sscanf strings */
12948 tmp_version = g_strdup("$min_gtk_version");
12949 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12950 printf("%s, bad version string\n", "$min_gtk_version");
12951 exit(1);
12952 }
12953
12954 if ((gtk_major_version != $gtk_config_major_version) ||
12955 (gtk_minor_version != $gtk_config_minor_version) ||
12956 (gtk_micro_version != $gtk_config_micro_version))
12957 {
12958 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12959 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12960 gtk_major_version, gtk_minor_version, gtk_micro_version);
12961 printf ("*** was found! If gtk-config was correct, then it is best\n");
12962 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12963 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12964 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12965 printf("*** required on your system.\n");
12966 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12967 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12968 printf("*** before re-running configure\n");
12969 }
12970 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12971 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12972 (gtk_minor_version != GTK_MINOR_VERSION) ||
12973 (gtk_micro_version != GTK_MICRO_VERSION))
12974 {
12975 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12976 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12977 printf("*** library (version %d.%d.%d)\n",
12978 gtk_major_version, gtk_minor_version, gtk_micro_version);
12979 }
12980 #endif /* defined (GTK_MAJOR_VERSION) ... */
12981 else
12982 {
12983 if ((gtk_major_version > major) ||
12984 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12985 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12986 {
12987 return 0;
12988 }
12989 else
12990 {
12991 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12992 gtk_major_version, gtk_minor_version, gtk_micro_version);
12993 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12994 major, minor, micro);
12995 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12996 printf("***\n");
12997 printf("*** If you have already installed a sufficiently new version, this error\n");
12998 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12999 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13000 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13001 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13002 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13003 printf("*** so that the correct libraries are found at run-time))\n");
13004 }
13005 }
13006 return 1;
13007 }
13008
13009 EOF
13010 if { (eval echo configure:13011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13011 then
13012 :
13013 else
13014 echo "configure: failed program was:" >&5
13015 cat conftest.$ac_ext >&5
13016 rm -fr conftest*
13017 no_gtk=yes
13018 fi
13019 rm -fr conftest*
13020 fi
13021
13022 CFLAGS="$ac_save_CFLAGS"
13023 LIBS="$ac_save_LIBS"
13024 fi
13025 fi
13026 if test "x$no_gtk" = x ; then
13027 echo "$ac_t""yes" 1>&6
13028 wx_cv_lib_gtk=1.2.3
13029 else
13030 echo "$ac_t""no" 1>&6
13031 if test "$GTK_CONFIG" = "no" ; then
13032 echo "*** The gtk-config script installed by GTK could not be found"
13033 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13034 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13035 echo "*** full path to gtk-config."
13036 else
13037 if test -f conf.gtktest ; then
13038 :
13039 else
13040 echo "*** Could not run GTK test program, checking why..."
13041 CFLAGS="$CFLAGS $GTK_CFLAGS"
13042 LIBS="$LIBS $GTK_LIBS"
13043 cat > conftest.$ac_ext <<EOF
13044 #line 13045 "configure"
13045 #include "confdefs.h"
13046
13047 #include <gtk/gtk.h>
13048 #include <stdio.h>
13049
13050 int main() {
13051 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13052 ; return 0; }
13053 EOF
13054 if { (eval echo configure:13055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13055 rm -rf conftest*
13056 echo "*** The test program compiled, but did not run. This usually means"
13057 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13058 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13059 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13060 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13061 echo "*** is required on your system"
13062 echo "***"
13063 echo "*** If you have an old version installed, it is best to remove it, although"
13064 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13065 echo "***"
13066 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13067 echo "*** came with the system with the command"
13068 echo "***"
13069 echo "*** rpm --erase --nodeps gtk gtk-devel"
13070 else
13071 echo "configure: failed program was:" >&5
13072 cat conftest.$ac_ext >&5
13073 rm -rf conftest*
13074 echo "*** The test program failed to compile or link. See the file config.log for the"
13075 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13076 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13077 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13078 fi
13079 rm -f conftest*
13080 CFLAGS="$ac_save_CFLAGS"
13081 LIBS="$ac_save_LIBS"
13082 fi
13083 fi
13084 GTK_CFLAGS=""
13085 GTK_LIBS=""
13086 :
13087 fi
13088
13089
13090 rm -f conf.gtktest
13091
13092 fi
13093 fi
13094
13095 if test -z "$wx_cv_lib_gtk"; then
13096 wx_cv_lib_gtk=none
13097 else
13098 wx_cv_cflags_gtk=$GTK_CFLAGS
13099 wx_cv_libs_gtk=$GTK_LIBS
13100 fi
13101
13102
13103 fi
13104
13105
13106 if test "$gtk_version_cached" = 1; then
13107 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13108 fi
13109
13110 case "$wx_cv_lib_gtk" in
13111 2.0) WXGTK20=1
13112 TOOLKIT_VERSION=2
13113 ;;
13114 1.2.7) WXGTK127=1
13115 WXGTK12=1
13116 ;;
13117 1.2.3) WXGTK12=1
13118 ;;
13119 *) { echo "configure: error:
13120 Please check that gtk-config is in path, the directory
13121 where GTK+ libraries are installed (returned by
13122 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13123 equivalent variable and GTK+ is version 1.2.3 or above.
13124 " 1>&2; exit 1; }
13125 ;;
13126 esac
13127
13128 if test "$WXGTK20" = 1; then
13129 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13130
13131 succeeded=no
13132
13133 if test -z "$PKG_CONFIG"; then
13134 # Extract the first word of "pkg-config", so it can be a program name with args.
13135 set dummy pkg-config; ac_word=$2
13136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13137 echo "configure:13138: checking for $ac_word" >&5
13138 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13139 echo $ac_n "(cached) $ac_c" 1>&6
13140 else
13141 case "$PKG_CONFIG" in
13142 /*)
13143 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13144 ;;
13145 ?:/*)
13146 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13147 ;;
13148 *)
13149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13150 ac_dummy="$PATH"
13151 for ac_dir in $ac_dummy; do
13152 test -z "$ac_dir" && ac_dir=.
13153 if test -f $ac_dir/$ac_word; then
13154 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13155 break
13156 fi
13157 done
13158 IFS="$ac_save_ifs"
13159 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13160 ;;
13161 esac
13162 fi
13163 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13164 if test -n "$PKG_CONFIG"; then
13165 echo "$ac_t""$PKG_CONFIG" 1>&6
13166 else
13167 echo "$ac_t""no" 1>&6
13168 fi
13169
13170 fi
13171
13172 if test "$PKG_CONFIG" = "no" ; then
13173 echo "*** The pkg-config script could not be found. Make sure it is"
13174 echo "*** in your path, or set the PKG_CONFIG environment variable"
13175 echo "*** to the full path to pkg-config."
13176 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13177 else
13178 PKG_CONFIG_MIN_VERSION=0.9.0
13179 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13180 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13181 echo "configure:13182: checking for pangoft2" >&5
13182
13183 if $PKG_CONFIG --exists "pangoft2" ; then
13184 echo "$ac_t""yes" 1>&6
13185 succeeded=yes
13186
13187 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13188 echo "configure:13189: checking PANGOFT2_CFLAGS" >&5
13189 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13190 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13191
13192 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13193 echo "configure:13194: checking PANGOFT2_LIBS" >&5
13194 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13195 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13196 else
13197 PANGOFT2_CFLAGS=""
13198 PANGOFT2_LIBS=""
13199 ## If we have a custom action on failure, don't print errors, but
13200 ## do set a variable so people can do so.
13201 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13202
13203 fi
13204
13205
13206
13207 else
13208 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13209 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13210 fi
13211 fi
13212
13213 if test $succeeded = yes; then
13214
13215 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13216 LIBS="$LIBS $PANGOFT2_LIBS"
13217
13218 else
13219
13220 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13221 wxUSE_PRINTING_ARCHITECTURE="no"
13222
13223
13224 fi
13225
13226 fi
13227 else
13228 if test "$wxUSE_UNICODE" = "yes"; then
13229 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13230 wxUSE_UNICODE=no
13231 fi
13232 fi
13233
13234 if test "$USE_DARWIN" != 1; then
13235 for ac_func in poll
13236 do
13237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13238 echo "configure:13239: checking for $ac_func" >&5
13239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13240 echo $ac_n "(cached) $ac_c" 1>&6
13241 else
13242 cat > conftest.$ac_ext <<EOF
13243 #line 13244 "configure"
13244 #include "confdefs.h"
13245 /* System header to define __stub macros and hopefully few prototypes,
13246 which can conflict with char $ac_func(); below. */
13247 #include <assert.h>
13248 /* Override any gcc2 internal prototype to avoid an error. */
13249 /* We use char because int might match the return type of a gcc2
13250 builtin and then its argument prototype would still apply. */
13251 char $ac_func();
13252
13253 int main() {
13254
13255 /* The GNU C library defines this for functions which it implements
13256 to always fail with ENOSYS. Some functions are actually named
13257 something starting with __ and the normal name is an alias. */
13258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13259 choke me
13260 #else
13261 $ac_func();
13262 #endif
13263
13264 ; return 0; }
13265 EOF
13266 if { (eval echo configure:13267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13267 rm -rf conftest*
13268 eval "ac_cv_func_$ac_func=yes"
13269 else
13270 echo "configure: failed program was:" >&5
13271 cat conftest.$ac_ext >&5
13272 rm -rf conftest*
13273 eval "ac_cv_func_$ac_func=no"
13274 fi
13275 rm -f conftest*
13276 fi
13277
13278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13279 echo "$ac_t""yes" 1>&6
13280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13281 cat >> confdefs.h <<EOF
13282 #define $ac_tr_func 1
13283 EOF
13284
13285 else
13286 echo "$ac_t""no" 1>&6
13287 fi
13288 done
13289
13290 fi
13291
13292 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13293 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13294
13295 AFMINSTALL=afminstall
13296 TOOLKIT=GTK
13297 GUIDIST=GTK_DIST
13298
13299 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13300 echo "configure:13301: checking for gdk_im_open in -lgdk" >&5
13301 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13303 echo $ac_n "(cached) $ac_c" 1>&6
13304 else
13305 ac_save_LIBS="$LIBS"
13306 LIBS="-lgdk $LIBS"
13307 cat > conftest.$ac_ext <<EOF
13308 #line 13309 "configure"
13309 #include "confdefs.h"
13310 /* Override any gcc2 internal prototype to avoid an error. */
13311 /* We use char because int might match the return type of a gcc2
13312 builtin and then its argument prototype would still apply. */
13313 char gdk_im_open();
13314
13315 int main() {
13316 gdk_im_open()
13317 ; return 0; }
13318 EOF
13319 if { (eval echo configure:13320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13320 rm -rf conftest*
13321 eval "ac_cv_lib_$ac_lib_var=yes"
13322 else
13323 echo "configure: failed program was:" >&5
13324 cat conftest.$ac_ext >&5
13325 rm -rf conftest*
13326 eval "ac_cv_lib_$ac_lib_var=no"
13327 fi
13328 rm -f conftest*
13329 LIBS="$ac_save_LIBS"
13330
13331 fi
13332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13333 echo "$ac_t""yes" 1>&6
13334 cat >> confdefs.h <<\EOF
13335 #define HAVE_XIM 1
13336 EOF
13337
13338 else
13339 echo "$ac_t""no" 1>&6
13340 fi
13341
13342 fi
13343
13344 if test "$wxUSE_MGL" = 1; then
13345 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13346 echo "configure:13347: checking for SciTech MGL library" >&5
13347 if test "x$MGL_ROOT" = x ; then
13348 echo "$ac_t""not found" 1>&6
13349 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13350 else
13351 echo "$ac_t""$MGL_ROOT" 1>&6
13352 fi
13353
13354 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13355 echo "configure:13356: checking for libmgl location" >&5
13356 case "${host}" in
13357 *-*-linux* )
13358 if test "x$wxUSE_SHARED" = xyes ; then
13359 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13360 else
13361 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13362 fi
13363 ;;
13364 *-pc-msdosdjgpp )
13365 mgl_os_candidates="dos32/dj2"
13366 ;;
13367 *)
13368 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13369 esac
13370
13371 mgl_lib_type=""
13372 mgl_os=""
13373
13374 for mgl_os_i in $mgl_os_candidates ; do
13375 if test "x$mgl_os" = x ; then
13376 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13377 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13378 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13379 mgl_lib_type=debug
13380 mgl_os=$mgl_os_i
13381 fi
13382 fi
13383 if test "x$mgl_lib_type" = x ; then
13384 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13385 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13386 mgl_lib_type=release
13387 mgl_os=$mgl_os_i
13388 fi
13389 fi
13390 fi
13391 done
13392
13393 if test "x$mgl_os" = x ; then
13394 echo "$ac_t""not found" 1>&6
13395 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13396 fi
13397 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13398
13399 wxUSE_UNIVERSAL="yes"
13400
13401 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13402 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13403
13404 AFMINSTALL=afminstall
13405 TOOLKIT=MGL
13406 GUIDIST=MGL_DIST
13407 fi
13408
13409 if test "$wxUSE_MICROWIN" = 1; then
13410 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13411 echo "configure:13412: checking for MicroWindows" >&5
13412 if test "x$MICROWINDOWS" = x ; then
13413 echo "$ac_t""not found" 1>&6
13414 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13415 else
13416 echo "$ac_t""$MICROWINDOWS" 1>&6
13417 fi
13418
13419 if test -f $MICROWINDOWS/lib/libmwin.a; then
13420 echo "$ac_t""MicroWindows' libraries found." 1>&6
13421 else
13422 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13423 fi
13424
13425 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13426 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13427
13428 wxUSE_UNIVERSAL="yes"
13429
13430 AFMINSTALL=afminstall
13431 TOOLKIT=MICROWIN
13432 GUIDIST=MICROWIN_DIST
13433
13434 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13435 fi
13436
13437 if test "$wxUSE_X11" = 1; then
13438 # If we find X, set shell vars x_includes and x_libraries to the
13439 # paths, otherwise set no_x=yes.
13440 # Uses ac_ vars as temps to allow command line to override cache and checks.
13441 # --without-x overrides everything else, but does not touch the cache.
13442 echo $ac_n "checking for X""... $ac_c" 1>&6
13443 echo "configure:13444: checking for X" >&5
13444
13445 # Check whether --with-x or --without-x was given.
13446 if test "${with_x+set}" = set; then
13447 withval="$with_x"
13448 :
13449 fi
13450
13451 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13452 if test "x$with_x" = xno; then
13453 # The user explicitly disabled X.
13454 have_x=disabled
13455 else
13456 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13457 # Both variables are already set.
13458 have_x=yes
13459 else
13460 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13461 echo $ac_n "(cached) $ac_c" 1>&6
13462 else
13463 # One or both of the vars are not set, and there is no cached value.
13464 ac_x_includes=NO ac_x_libraries=NO
13465 rm -fr conftestdir
13466 if mkdir conftestdir; then
13467 cd conftestdir
13468 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13469 cat > Imakefile <<'EOF'
13470 acfindx:
13471 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13472 EOF
13473 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13474 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13475 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13476 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13477 for ac_extension in a so sl; do
13478 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13479 test -f $ac_im_libdir/libX11.$ac_extension; then
13480 ac_im_usrlibdir=$ac_im_libdir; break
13481 fi
13482 done
13483 # Screen out bogus values from the imake configuration. They are
13484 # bogus both because they are the default anyway, and because
13485 # using them would break gcc on systems where it needs fixed includes.
13486 case "$ac_im_incroot" in
13487 /usr/include) ;;
13488 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13489 esac
13490 case "$ac_im_usrlibdir" in
13491 /usr/lib | /lib) ;;
13492 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13493 esac
13494 fi
13495 cd ..
13496 rm -fr conftestdir
13497 fi
13498
13499 if test "$ac_x_includes" = NO; then
13500 # Guess where to find include files, by looking for this one X11 .h file.
13501 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13502
13503 # First, try using that file with no special directory specified.
13504 cat > conftest.$ac_ext <<EOF
13505 #line 13506 "configure"
13506 #include "confdefs.h"
13507 #include <$x_direct_test_include>
13508 EOF
13509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13510 { (eval echo configure:13511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13512 if test -z "$ac_err"; then
13513 rm -rf conftest*
13514 # We can compile using X headers with no special include directory.
13515 ac_x_includes=
13516 else
13517 echo "$ac_err" >&5
13518 echo "configure: failed program was:" >&5
13519 cat conftest.$ac_ext >&5
13520 rm -rf conftest*
13521 # Look for the header file in a standard set of common directories.
13522 # Check X11 before X11Rn because it is often a symlink to the current release.
13523 for ac_dir in \
13524 /usr/X11/include \
13525 /usr/X11R6/include \
13526 /usr/X11R5/include \
13527 /usr/X11R4/include \
13528 \
13529 /usr/include/X11 \
13530 /usr/include/X11R6 \
13531 /usr/include/X11R5 \
13532 /usr/include/X11R4 \
13533 \
13534 /usr/local/X11/include \
13535 /usr/local/X11R6/include \
13536 /usr/local/X11R5/include \
13537 /usr/local/X11R4/include \
13538 \
13539 /usr/local/include/X11 \
13540 /usr/local/include/X11R6 \
13541 /usr/local/include/X11R5 \
13542 /usr/local/include/X11R4 \
13543 \
13544 /usr/X386/include \
13545 /usr/x386/include \
13546 /usr/XFree86/include/X11 \
13547 \
13548 /usr/include \
13549 /usr/local/include \
13550 /usr/unsupported/include \
13551 /usr/athena/include \
13552 /usr/local/x11r5/include \
13553 /usr/lpp/Xamples/include \
13554 \
13555 /usr/openwin/include \
13556 /usr/openwin/share/include \
13557 ; \
13558 do
13559 if test -r "$ac_dir/$x_direct_test_include"; then
13560 ac_x_includes=$ac_dir
13561 break
13562 fi
13563 done
13564 fi
13565 rm -f conftest*
13566 fi # $ac_x_includes = NO
13567
13568 if test "$ac_x_libraries" = NO; then
13569 # Check for the libraries.
13570
13571 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13572 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13573
13574 # See if we find them without any special options.
13575 # Don't add to $LIBS permanently.
13576 ac_save_LIBS="$LIBS"
13577 LIBS="-l$x_direct_test_library $LIBS"
13578 cat > conftest.$ac_ext <<EOF
13579 #line 13580 "configure"
13580 #include "confdefs.h"
13581
13582 int main() {
13583 ${x_direct_test_function}()
13584 ; return 0; }
13585 EOF
13586 if { (eval echo configure:13587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13587 rm -rf conftest*
13588 LIBS="$ac_save_LIBS"
13589 # We can link X programs with no special library path.
13590 ac_x_libraries=
13591 else
13592 echo "configure: failed program was:" >&5
13593 cat conftest.$ac_ext >&5
13594 rm -rf conftest*
13595 LIBS="$ac_save_LIBS"
13596 # First see if replacing the include by lib works.
13597 # Check X11 before X11Rn because it is often a symlink to the current release.
13598 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13599 /usr/X11/lib \
13600 /usr/X11R6/lib \
13601 /usr/X11R5/lib \
13602 /usr/X11R4/lib \
13603 \
13604 /usr/lib/X11 \
13605 /usr/lib/X11R6 \
13606 /usr/lib/X11R5 \
13607 /usr/lib/X11R4 \
13608 \
13609 /usr/local/X11/lib \
13610 /usr/local/X11R6/lib \
13611 /usr/local/X11R5/lib \
13612 /usr/local/X11R4/lib \
13613 \
13614 /usr/local/lib/X11 \
13615 /usr/local/lib/X11R6 \
13616 /usr/local/lib/X11R5 \
13617 /usr/local/lib/X11R4 \
13618 \
13619 /usr/X386/lib \
13620 /usr/x386/lib \
13621 /usr/XFree86/lib/X11 \
13622 \
13623 /usr/lib \
13624 /usr/local/lib \
13625 /usr/unsupported/lib \
13626 /usr/athena/lib \
13627 /usr/local/x11r5/lib \
13628 /usr/lpp/Xamples/lib \
13629 /lib/usr/lib/X11 \
13630 \
13631 /usr/openwin/lib \
13632 /usr/openwin/share/lib \
13633 ; \
13634 do
13635 for ac_extension in a so sl; do
13636 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13637 ac_x_libraries=$ac_dir
13638 break 2
13639 fi
13640 done
13641 done
13642 fi
13643 rm -f conftest*
13644 fi # $ac_x_libraries = NO
13645
13646 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13647 # Didn't find X anywhere. Cache the known absence of X.
13648 ac_cv_have_x="have_x=no"
13649 else
13650 # Record where we found X for the cache.
13651 ac_cv_have_x="have_x=yes \
13652 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13653 fi
13654 fi
13655 fi
13656 eval "$ac_cv_have_x"
13657 fi # $with_x != no
13658
13659 if test "$have_x" != yes; then
13660 echo "$ac_t""$have_x" 1>&6
13661 no_x=yes
13662 else
13663 # If each of the values was on the command line, it overrides each guess.
13664 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13665 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13666 # Update the cache value to reflect the command line values.
13667 ac_cv_have_x="have_x=yes \
13668 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13669 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13670 fi
13671
13672 if test "$no_x" = yes; then
13673 # Not all programs may use this symbol, but it does not hurt to define it.
13674 cat >> confdefs.h <<\EOF
13675 #define X_DISPLAY_MISSING 1
13676 EOF
13677
13678 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13679 else
13680 if test -n "$x_includes"; then
13681 X_CFLAGS="$X_CFLAGS -I$x_includes"
13682 fi
13683
13684 # It would also be nice to do this for all -L options, not just this one.
13685 if test -n "$x_libraries"; then
13686 X_LIBS="$X_LIBS -L$x_libraries"
13687 # For Solaris; some versions of Sun CC require a space after -R and
13688 # others require no space. Words are not sufficient . . . .
13689 case "`(uname -sr) 2>/dev/null`" in
13690 "SunOS 5"*)
13691 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13692 echo "configure:13693: checking whether -R must be followed by a space" >&5
13693 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13694 cat > conftest.$ac_ext <<EOF
13695 #line 13696 "configure"
13696 #include "confdefs.h"
13697
13698 int main() {
13699
13700 ; return 0; }
13701 EOF
13702 if { (eval echo configure:13703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13703 rm -rf conftest*
13704 ac_R_nospace=yes
13705 else
13706 echo "configure: failed program was:" >&5
13707 cat conftest.$ac_ext >&5
13708 rm -rf conftest*
13709 ac_R_nospace=no
13710 fi
13711 rm -f conftest*
13712 if test $ac_R_nospace = yes; then
13713 echo "$ac_t""no" 1>&6
13714 X_LIBS="$X_LIBS -R$x_libraries"
13715 else
13716 LIBS="$ac_xsave_LIBS -R $x_libraries"
13717 cat > conftest.$ac_ext <<EOF
13718 #line 13719 "configure"
13719 #include "confdefs.h"
13720
13721 int main() {
13722
13723 ; return 0; }
13724 EOF
13725 if { (eval echo configure:13726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13726 rm -rf conftest*
13727 ac_R_space=yes
13728 else
13729 echo "configure: failed program was:" >&5
13730 cat conftest.$ac_ext >&5
13731 rm -rf conftest*
13732 ac_R_space=no
13733 fi
13734 rm -f conftest*
13735 if test $ac_R_space = yes; then
13736 echo "$ac_t""yes" 1>&6
13737 X_LIBS="$X_LIBS -R $x_libraries"
13738 else
13739 echo "$ac_t""neither works" 1>&6
13740 fi
13741 fi
13742 LIBS="$ac_xsave_LIBS"
13743 esac
13744 fi
13745
13746 # Check for system-dependent libraries X programs must link with.
13747 # Do this before checking for the system-independent R6 libraries
13748 # (-lICE), since we may need -lsocket or whatever for X linking.
13749
13750 if test "$ISC" = yes; then
13751 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13752 else
13753 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13754 # libraries were built with DECnet support. And karl@cs.umb.edu says
13755 # the Alpha needs dnet_stub (dnet does not exist).
13756 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13757 echo "configure:13758: checking for dnet_ntoa in -ldnet" >&5
13758 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13760 echo $ac_n "(cached) $ac_c" 1>&6
13761 else
13762 ac_save_LIBS="$LIBS"
13763 LIBS="-ldnet $LIBS"
13764 cat > conftest.$ac_ext <<EOF
13765 #line 13766 "configure"
13766 #include "confdefs.h"
13767 /* Override any gcc2 internal prototype to avoid an error. */
13768 /* We use char because int might match the return type of a gcc2
13769 builtin and then its argument prototype would still apply. */
13770 char dnet_ntoa();
13771
13772 int main() {
13773 dnet_ntoa()
13774 ; return 0; }
13775 EOF
13776 if { (eval echo configure:13777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13777 rm -rf conftest*
13778 eval "ac_cv_lib_$ac_lib_var=yes"
13779 else
13780 echo "configure: failed program was:" >&5
13781 cat conftest.$ac_ext >&5
13782 rm -rf conftest*
13783 eval "ac_cv_lib_$ac_lib_var=no"
13784 fi
13785 rm -f conftest*
13786 LIBS="$ac_save_LIBS"
13787
13788 fi
13789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13790 echo "$ac_t""yes" 1>&6
13791 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13792 else
13793 echo "$ac_t""no" 1>&6
13794 fi
13795
13796 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13797 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13798 echo "configure:13799: checking for dnet_ntoa in -ldnet_stub" >&5
13799 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13801 echo $ac_n "(cached) $ac_c" 1>&6
13802 else
13803 ac_save_LIBS="$LIBS"
13804 LIBS="-ldnet_stub $LIBS"
13805 cat > conftest.$ac_ext <<EOF
13806 #line 13807 "configure"
13807 #include "confdefs.h"
13808 /* Override any gcc2 internal prototype to avoid an error. */
13809 /* We use char because int might match the return type of a gcc2
13810 builtin and then its argument prototype would still apply. */
13811 char dnet_ntoa();
13812
13813 int main() {
13814 dnet_ntoa()
13815 ; return 0; }
13816 EOF
13817 if { (eval echo configure:13818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13818 rm -rf conftest*
13819 eval "ac_cv_lib_$ac_lib_var=yes"
13820 else
13821 echo "configure: failed program was:" >&5
13822 cat conftest.$ac_ext >&5
13823 rm -rf conftest*
13824 eval "ac_cv_lib_$ac_lib_var=no"
13825 fi
13826 rm -f conftest*
13827 LIBS="$ac_save_LIBS"
13828
13829 fi
13830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13831 echo "$ac_t""yes" 1>&6
13832 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13833 else
13834 echo "$ac_t""no" 1>&6
13835 fi
13836
13837 fi
13838
13839 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13840 # to get the SysV transport functions.
13841 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13842 # needs -lnsl.
13843 # The nsl library prevents programs from opening the X display
13844 # on Irix 5.2, according to dickey@clark.net.
13845 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13846 echo "configure:13847: checking for gethostbyname" >&5
13847 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13848 echo $ac_n "(cached) $ac_c" 1>&6
13849 else
13850 cat > conftest.$ac_ext <<EOF
13851 #line 13852 "configure"
13852 #include "confdefs.h"
13853 /* System header to define __stub macros and hopefully few prototypes,
13854 which can conflict with char gethostbyname(); below. */
13855 #include <assert.h>
13856 /* Override any gcc2 internal prototype to avoid an error. */
13857 /* We use char because int might match the return type of a gcc2
13858 builtin and then its argument prototype would still apply. */
13859 char gethostbyname();
13860
13861 int main() {
13862
13863 /* The GNU C library defines this for functions which it implements
13864 to always fail with ENOSYS. Some functions are actually named
13865 something starting with __ and the normal name is an alias. */
13866 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13867 choke me
13868 #else
13869 gethostbyname();
13870 #endif
13871
13872 ; return 0; }
13873 EOF
13874 if { (eval echo configure:13875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13875 rm -rf conftest*
13876 eval "ac_cv_func_gethostbyname=yes"
13877 else
13878 echo "configure: failed program was:" >&5
13879 cat conftest.$ac_ext >&5
13880 rm -rf conftest*
13881 eval "ac_cv_func_gethostbyname=no"
13882 fi
13883 rm -f conftest*
13884 fi
13885
13886 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13887 echo "$ac_t""yes" 1>&6
13888 :
13889 else
13890 echo "$ac_t""no" 1>&6
13891 fi
13892
13893 if test $ac_cv_func_gethostbyname = no; then
13894 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13895 echo "configure:13896: checking for gethostbyname in -lnsl" >&5
13896 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13898 echo $ac_n "(cached) $ac_c" 1>&6
13899 else
13900 ac_save_LIBS="$LIBS"
13901 LIBS="-lnsl $LIBS"
13902 cat > conftest.$ac_ext <<EOF
13903 #line 13904 "configure"
13904 #include "confdefs.h"
13905 /* Override any gcc2 internal prototype to avoid an error. */
13906 /* We use char because int might match the return type of a gcc2
13907 builtin and then its argument prototype would still apply. */
13908 char gethostbyname();
13909
13910 int main() {
13911 gethostbyname()
13912 ; return 0; }
13913 EOF
13914 if { (eval echo configure:13915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13915 rm -rf conftest*
13916 eval "ac_cv_lib_$ac_lib_var=yes"
13917 else
13918 echo "configure: failed program was:" >&5
13919 cat conftest.$ac_ext >&5
13920 rm -rf conftest*
13921 eval "ac_cv_lib_$ac_lib_var=no"
13922 fi
13923 rm -f conftest*
13924 LIBS="$ac_save_LIBS"
13925
13926 fi
13927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13928 echo "$ac_t""yes" 1>&6
13929 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13930 else
13931 echo "$ac_t""no" 1>&6
13932 fi
13933
13934 fi
13935
13936 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13937 # socket/setsockopt and other routines are undefined under SCO ODT
13938 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13939 # on later versions), says simon@lia.di.epfl.ch: it contains
13940 # gethostby* variants that don't use the nameserver (or something).
13941 # -lsocket must be given before -lnsl if both are needed.
13942 # We assume that if connect needs -lnsl, so does gethostbyname.
13943 echo $ac_n "checking for connect""... $ac_c" 1>&6
13944 echo "configure:13945: checking for connect" >&5
13945 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13946 echo $ac_n "(cached) $ac_c" 1>&6
13947 else
13948 cat > conftest.$ac_ext <<EOF
13949 #line 13950 "configure"
13950 #include "confdefs.h"
13951 /* System header to define __stub macros and hopefully few prototypes,
13952 which can conflict with char connect(); below. */
13953 #include <assert.h>
13954 /* Override any gcc2 internal prototype to avoid an error. */
13955 /* We use char because int might match the return type of a gcc2
13956 builtin and then its argument prototype would still apply. */
13957 char connect();
13958
13959 int main() {
13960
13961 /* The GNU C library defines this for functions which it implements
13962 to always fail with ENOSYS. Some functions are actually named
13963 something starting with __ and the normal name is an alias. */
13964 #if defined (__stub_connect) || defined (__stub___connect)
13965 choke me
13966 #else
13967 connect();
13968 #endif
13969
13970 ; return 0; }
13971 EOF
13972 if { (eval echo configure:13973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13973 rm -rf conftest*
13974 eval "ac_cv_func_connect=yes"
13975 else
13976 echo "configure: failed program was:" >&5
13977 cat conftest.$ac_ext >&5
13978 rm -rf conftest*
13979 eval "ac_cv_func_connect=no"
13980 fi
13981 rm -f conftest*
13982 fi
13983
13984 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13985 echo "$ac_t""yes" 1>&6
13986 :
13987 else
13988 echo "$ac_t""no" 1>&6
13989 fi
13990
13991 if test $ac_cv_func_connect = no; then
13992 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13993 echo "configure:13994: checking for connect in -lsocket" >&5
13994 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13996 echo $ac_n "(cached) $ac_c" 1>&6
13997 else
13998 ac_save_LIBS="$LIBS"
13999 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14000 cat > conftest.$ac_ext <<EOF
14001 #line 14002 "configure"
14002 #include "confdefs.h"
14003 /* Override any gcc2 internal prototype to avoid an error. */
14004 /* We use char because int might match the return type of a gcc2
14005 builtin and then its argument prototype would still apply. */
14006 char connect();
14007
14008 int main() {
14009 connect()
14010 ; return 0; }
14011 EOF
14012 if { (eval echo configure:14013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14013 rm -rf conftest*
14014 eval "ac_cv_lib_$ac_lib_var=yes"
14015 else
14016 echo "configure: failed program was:" >&5
14017 cat conftest.$ac_ext >&5
14018 rm -rf conftest*
14019 eval "ac_cv_lib_$ac_lib_var=no"
14020 fi
14021 rm -f conftest*
14022 LIBS="$ac_save_LIBS"
14023
14024 fi
14025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14026 echo "$ac_t""yes" 1>&6
14027 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14028 else
14029 echo "$ac_t""no" 1>&6
14030 fi
14031
14032 fi
14033
14034 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14035 echo $ac_n "checking for remove""... $ac_c" 1>&6
14036 echo "configure:14037: checking for remove" >&5
14037 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14038 echo $ac_n "(cached) $ac_c" 1>&6
14039 else
14040 cat > conftest.$ac_ext <<EOF
14041 #line 14042 "configure"
14042 #include "confdefs.h"
14043 /* System header to define __stub macros and hopefully few prototypes,
14044 which can conflict with char remove(); below. */
14045 #include <assert.h>
14046 /* Override any gcc2 internal prototype to avoid an error. */
14047 /* We use char because int might match the return type of a gcc2
14048 builtin and then its argument prototype would still apply. */
14049 char remove();
14050
14051 int main() {
14052
14053 /* The GNU C library defines this for functions which it implements
14054 to always fail with ENOSYS. Some functions are actually named
14055 something starting with __ and the normal name is an alias. */
14056 #if defined (__stub_remove) || defined (__stub___remove)
14057 choke me
14058 #else
14059 remove();
14060 #endif
14061
14062 ; return 0; }
14063 EOF
14064 if { (eval echo configure:14065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14065 rm -rf conftest*
14066 eval "ac_cv_func_remove=yes"
14067 else
14068 echo "configure: failed program was:" >&5
14069 cat conftest.$ac_ext >&5
14070 rm -rf conftest*
14071 eval "ac_cv_func_remove=no"
14072 fi
14073 rm -f conftest*
14074 fi
14075
14076 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14077 echo "$ac_t""yes" 1>&6
14078 :
14079 else
14080 echo "$ac_t""no" 1>&6
14081 fi
14082
14083 if test $ac_cv_func_remove = no; then
14084 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14085 echo "configure:14086: checking for remove in -lposix" >&5
14086 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14088 echo $ac_n "(cached) $ac_c" 1>&6
14089 else
14090 ac_save_LIBS="$LIBS"
14091 LIBS="-lposix $LIBS"
14092 cat > conftest.$ac_ext <<EOF
14093 #line 14094 "configure"
14094 #include "confdefs.h"
14095 /* Override any gcc2 internal prototype to avoid an error. */
14096 /* We use char because int might match the return type of a gcc2
14097 builtin and then its argument prototype would still apply. */
14098 char remove();
14099
14100 int main() {
14101 remove()
14102 ; return 0; }
14103 EOF
14104 if { (eval echo configure:14105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14105 rm -rf conftest*
14106 eval "ac_cv_lib_$ac_lib_var=yes"
14107 else
14108 echo "configure: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 rm -rf conftest*
14111 eval "ac_cv_lib_$ac_lib_var=no"
14112 fi
14113 rm -f conftest*
14114 LIBS="$ac_save_LIBS"
14115
14116 fi
14117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14118 echo "$ac_t""yes" 1>&6
14119 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14120 else
14121 echo "$ac_t""no" 1>&6
14122 fi
14123
14124 fi
14125
14126 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14127 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14128 echo "configure:14129: checking for shmat" >&5
14129 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14130 echo $ac_n "(cached) $ac_c" 1>&6
14131 else
14132 cat > conftest.$ac_ext <<EOF
14133 #line 14134 "configure"
14134 #include "confdefs.h"
14135 /* System header to define __stub macros and hopefully few prototypes,
14136 which can conflict with char shmat(); below. */
14137 #include <assert.h>
14138 /* Override any gcc2 internal prototype to avoid an error. */
14139 /* We use char because int might match the return type of a gcc2
14140 builtin and then its argument prototype would still apply. */
14141 char shmat();
14142
14143 int main() {
14144
14145 /* The GNU C library defines this for functions which it implements
14146 to always fail with ENOSYS. Some functions are actually named
14147 something starting with __ and the normal name is an alias. */
14148 #if defined (__stub_shmat) || defined (__stub___shmat)
14149 choke me
14150 #else
14151 shmat();
14152 #endif
14153
14154 ; return 0; }
14155 EOF
14156 if { (eval echo configure:14157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14157 rm -rf conftest*
14158 eval "ac_cv_func_shmat=yes"
14159 else
14160 echo "configure: failed program was:" >&5
14161 cat conftest.$ac_ext >&5
14162 rm -rf conftest*
14163 eval "ac_cv_func_shmat=no"
14164 fi
14165 rm -f conftest*
14166 fi
14167
14168 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14169 echo "$ac_t""yes" 1>&6
14170 :
14171 else
14172 echo "$ac_t""no" 1>&6
14173 fi
14174
14175 if test $ac_cv_func_shmat = no; then
14176 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14177 echo "configure:14178: checking for shmat in -lipc" >&5
14178 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14180 echo $ac_n "(cached) $ac_c" 1>&6
14181 else
14182 ac_save_LIBS="$LIBS"
14183 LIBS="-lipc $LIBS"
14184 cat > conftest.$ac_ext <<EOF
14185 #line 14186 "configure"
14186 #include "confdefs.h"
14187 /* Override any gcc2 internal prototype to avoid an error. */
14188 /* We use char because int might match the return type of a gcc2
14189 builtin and then its argument prototype would still apply. */
14190 char shmat();
14191
14192 int main() {
14193 shmat()
14194 ; return 0; }
14195 EOF
14196 if { (eval echo configure:14197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14197 rm -rf conftest*
14198 eval "ac_cv_lib_$ac_lib_var=yes"
14199 else
14200 echo "configure: failed program was:" >&5
14201 cat conftest.$ac_ext >&5
14202 rm -rf conftest*
14203 eval "ac_cv_lib_$ac_lib_var=no"
14204 fi
14205 rm -f conftest*
14206 LIBS="$ac_save_LIBS"
14207
14208 fi
14209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14210 echo "$ac_t""yes" 1>&6
14211 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14212 else
14213 echo "$ac_t""no" 1>&6
14214 fi
14215
14216 fi
14217 fi
14218
14219 # Check for libraries that X11R6 Xt/Xaw programs need.
14220 ac_save_LDFLAGS="$LDFLAGS"
14221 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14222 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14223 # check for ICE first), but we must link in the order -lSM -lICE or
14224 # we get undefined symbols. So assume we have SM if we have ICE.
14225 # These have to be linked with before -lX11, unlike the other
14226 # libraries we check for below, so use a different variable.
14227 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14228 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14229 echo "configure:14230: checking for IceConnectionNumber in -lICE" >&5
14230 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14232 echo $ac_n "(cached) $ac_c" 1>&6
14233 else
14234 ac_save_LIBS="$LIBS"
14235 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14236 cat > conftest.$ac_ext <<EOF
14237 #line 14238 "configure"
14238 #include "confdefs.h"
14239 /* Override any gcc2 internal prototype to avoid an error. */
14240 /* We use char because int might match the return type of a gcc2
14241 builtin and then its argument prototype would still apply. */
14242 char IceConnectionNumber();
14243
14244 int main() {
14245 IceConnectionNumber()
14246 ; return 0; }
14247 EOF
14248 if { (eval echo configure:14249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14249 rm -rf conftest*
14250 eval "ac_cv_lib_$ac_lib_var=yes"
14251 else
14252 echo "configure: failed program was:" >&5
14253 cat conftest.$ac_ext >&5
14254 rm -rf conftest*
14255 eval "ac_cv_lib_$ac_lib_var=no"
14256 fi
14257 rm -f conftest*
14258 LIBS="$ac_save_LIBS"
14259
14260 fi
14261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14262 echo "$ac_t""yes" 1>&6
14263 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14264 else
14265 echo "$ac_t""no" 1>&6
14266 fi
14267
14268 LDFLAGS="$ac_save_LDFLAGS"
14269
14270 fi
14271
14272
14273 if test "$no_x" = "yes"; then
14274 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14275 fi
14276
14277 GUI_TK_LIBRARY="$X_LIBS"
14278 TOOLKIT_INCLUDE="$X_CFLAGS"
14279 AFMINSTALL=afminstall
14280 COMPILED_X_PROGRAM=0
14281
14282 if test "$wxUSE_NANOX" = "yes"; then
14283 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14284 echo "configure:14285: checking for MicroWindows/NanoX distribution" >&5
14285 if test "x$MICROWIN" = x ; then
14286 echo "$ac_t""not found" 1>&6
14287 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14288 else
14289 echo "$ac_t""$MICROWIN" 1>&6
14290 cat >> confdefs.h <<\EOF
14291 #define wxUSE_NANOX 1
14292 EOF
14293
14294 fi
14295 fi
14296
14297 xpm_link=
14298 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14299 echo "configure:14300: checking for Xpm library" >&5
14300
14301 ac_find_libraries=
14302 for ac_dir in $SEARCH_LIB /usr/lib;
14303 do
14304 for ac_extension in a so sl dylib; do
14305 if test -f "$ac_dir/libXpm.$ac_extension"; then
14306 ac_find_libraries=$ac_dir
14307 break 2
14308 fi
14309 done
14310 done
14311
14312 if test "$ac_find_libraries" != "" ; then
14313
14314 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14315 result=$?
14316 if test $result = 0; then
14317 ac_path_to_link=""
14318 else
14319 ac_path_to_link=" -L$ac_find_libraries"
14320 fi
14321
14322 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14323 xpm_link=" -lXpm"
14324 cat >> confdefs.h <<\EOF
14325 #define wxHAVE_LIB_XPM 1
14326 EOF
14327
14328 echo "$ac_t""found at $ac_find_libraries" 1>&6
14329 else
14330 cat > conftest.$ac_ext <<EOF
14331 #line 14332 "configure"
14332 #include "confdefs.h"
14333
14334 #include <X11/xpm.h>
14335
14336 int main() {
14337
14338 int version;
14339 version = XpmLibraryVersion();
14340
14341 ; return 0; }
14342 EOF
14343 if { (eval echo configure:14344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14344 rm -rf conftest*
14345
14346 xpm_link=" -lXpm"
14347 cat >> confdefs.h <<\EOF
14348 #define wxHAVE_LIB_XPM 1
14349 EOF
14350
14351 echo "$ac_t""found in default search path" 1>&6
14352 COMPILED_X_PROGRAM=0
14353
14354 else
14355 echo "configure: failed program was:" >&5
14356 cat conftest.$ac_ext >&5
14357 rm -rf conftest*
14358
14359 echo "$ac_t""no" 1>&6
14360 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14361
14362
14363 fi
14364 rm -f conftest*
14365 fi
14366
14367 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
14368 echo "configure:14369: checking for XShapeQueryExtension in -lXext" >&5
14369 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
14370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14371 echo $ac_n "(cached) $ac_c" 1>&6
14372 else
14373 ac_save_LIBS="$LIBS"
14374 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
14375 cat > conftest.$ac_ext <<EOF
14376 #line 14377 "configure"
14377 #include "confdefs.h"
14378 /* Override any gcc2 internal prototype to avoid an error. */
14379 /* We use char because int might match the return type of a gcc2
14380 builtin and then its argument prototype would still apply. */
14381 char XShapeQueryExtension();
14382
14383 int main() {
14384 XShapeQueryExtension()
14385 ; return 0; }
14386 EOF
14387 if { (eval echo configure:14388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14388 rm -rf conftest*
14389 eval "ac_cv_lib_$ac_lib_var=yes"
14390 else
14391 echo "configure: failed program was:" >&5
14392 cat conftest.$ac_ext >&5
14393 rm -rf conftest*
14394 eval "ac_cv_lib_$ac_lib_var=no"
14395 fi
14396 rm -f conftest*
14397 LIBS="$ac_save_LIBS"
14398
14399 fi
14400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14401 echo "$ac_t""yes" 1>&6
14402
14403 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
14404 wxHAVE_XEXT_LIB=1
14405
14406 else
14407 echo "$ac_t""no" 1>&6
14408 fi
14409
14410
14411 if test "$wxUSE_UNICODE" = "yes"; then
14412
14413 succeeded=no
14414
14415 if test -z "$PKG_CONFIG"; then
14416 # Extract the first word of "pkg-config", so it can be a program name with args.
14417 set dummy pkg-config; ac_word=$2
14418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14419 echo "configure:14420: checking for $ac_word" >&5
14420 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14421 echo $ac_n "(cached) $ac_c" 1>&6
14422 else
14423 case "$PKG_CONFIG" in
14424 /*)
14425 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14426 ;;
14427 ?:/*)
14428 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14429 ;;
14430 *)
14431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14432 ac_dummy="$PATH"
14433 for ac_dir in $ac_dummy; do
14434 test -z "$ac_dir" && ac_dir=.
14435 if test -f $ac_dir/$ac_word; then
14436 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14437 break
14438 fi
14439 done
14440 IFS="$ac_save_ifs"
14441 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14442 ;;
14443 esac
14444 fi
14445 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14446 if test -n "$PKG_CONFIG"; then
14447 echo "$ac_t""$PKG_CONFIG" 1>&6
14448 else
14449 echo "$ac_t""no" 1>&6
14450 fi
14451
14452 fi
14453
14454 if test "$PKG_CONFIG" = "no" ; then
14455 echo "*** The pkg-config script could not be found. Make sure it is"
14456 echo "*** in your path, or set the PKG_CONFIG environment variable"
14457 echo "*** to the full path to pkg-config."
14458 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14459 else
14460 PKG_CONFIG_MIN_VERSION=0.9.0
14461 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14462 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14463 echo "configure:14464: checking for pangox" >&5
14464
14465 if $PKG_CONFIG --exists "pangox" ; then
14466 echo "$ac_t""yes" 1>&6
14467 succeeded=yes
14468
14469 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14470 echo "configure:14471: checking PANGOX_CFLAGS" >&5
14471 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14472 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14473
14474 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14475 echo "configure:14476: checking PANGOX_LIBS" >&5
14476 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14477 echo "$ac_t""$PANGOX_LIBS" 1>&6
14478 else
14479 PANGOX_CFLAGS=""
14480 PANGOX_LIBS=""
14481 ## If we have a custom action on failure, don't print errors, but
14482 ## do set a variable so people can do so.
14483 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14484
14485 fi
14486
14487
14488
14489 else
14490 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14491 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14492 fi
14493 fi
14494
14495 if test $succeeded = yes; then
14496
14497 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14498 LIBS="$LIBS $PANGOX_LIBS"
14499
14500 else
14501
14502 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14503
14504
14505 fi
14506
14507
14508 succeeded=no
14509
14510 if test -z "$PKG_CONFIG"; then
14511 # Extract the first word of "pkg-config", so it can be a program name with args.
14512 set dummy pkg-config; ac_word=$2
14513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14514 echo "configure:14515: checking for $ac_word" >&5
14515 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14516 echo $ac_n "(cached) $ac_c" 1>&6
14517 else
14518 case "$PKG_CONFIG" in
14519 /*)
14520 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14521 ;;
14522 ?:/*)
14523 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14524 ;;
14525 *)
14526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14527 ac_dummy="$PATH"
14528 for ac_dir in $ac_dummy; do
14529 test -z "$ac_dir" && ac_dir=.
14530 if test -f $ac_dir/$ac_word; then
14531 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14532 break
14533 fi
14534 done
14535 IFS="$ac_save_ifs"
14536 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14537 ;;
14538 esac
14539 fi
14540 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14541 if test -n "$PKG_CONFIG"; then
14542 echo "$ac_t""$PKG_CONFIG" 1>&6
14543 else
14544 echo "$ac_t""no" 1>&6
14545 fi
14546
14547 fi
14548
14549 if test "$PKG_CONFIG" = "no" ; then
14550 echo "*** The pkg-config script could not be found. Make sure it is"
14551 echo "*** in your path, or set the PKG_CONFIG environment variable"
14552 echo "*** to the full path to pkg-config."
14553 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14554 else
14555 PKG_CONFIG_MIN_VERSION=0.9.0
14556 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14557 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14558 echo "configure:14559: checking for pangoft2" >&5
14559
14560 if $PKG_CONFIG --exists "pangoft2" ; then
14561 echo "$ac_t""yes" 1>&6
14562 succeeded=yes
14563
14564 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14565 echo "configure:14566: checking PANGOFT2_CFLAGS" >&5
14566 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14567 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14568
14569 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14570 echo "configure:14571: checking PANGOFT2_LIBS" >&5
14571 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14572 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14573 else
14574 PANGOFT2_CFLAGS=""
14575 PANGOFT2_LIBS=""
14576 ## If we have a custom action on failure, don't print errors, but
14577 ## do set a variable so people can do so.
14578 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14579
14580 fi
14581
14582
14583
14584 else
14585 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14586 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14587 fi
14588 fi
14589
14590 if test $succeeded = yes; then
14591
14592 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14593 LIBS="$LIBS $PANGOFT2_LIBS"
14594
14595 else
14596
14597 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14598 wxUSE_PRINTING_ARCHITECTURE="no"
14599
14600
14601 fi
14602
14603
14604 succeeded=no
14605
14606 if test -z "$PKG_CONFIG"; then
14607 # Extract the first word of "pkg-config", so it can be a program name with args.
14608 set dummy pkg-config; ac_word=$2
14609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14610 echo "configure:14611: checking for $ac_word" >&5
14611 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14612 echo $ac_n "(cached) $ac_c" 1>&6
14613 else
14614 case "$PKG_CONFIG" in
14615 /*)
14616 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14617 ;;
14618 ?:/*)
14619 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14620 ;;
14621 *)
14622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14623 ac_dummy="$PATH"
14624 for ac_dir in $ac_dummy; do
14625 test -z "$ac_dir" && ac_dir=.
14626 if test -f $ac_dir/$ac_word; then
14627 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14628 break
14629 fi
14630 done
14631 IFS="$ac_save_ifs"
14632 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14633 ;;
14634 esac
14635 fi
14636 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14637 if test -n "$PKG_CONFIG"; then
14638 echo "$ac_t""$PKG_CONFIG" 1>&6
14639 else
14640 echo "$ac_t""no" 1>&6
14641 fi
14642
14643 fi
14644
14645 if test "$PKG_CONFIG" = "no" ; then
14646 echo "*** The pkg-config script could not be found. Make sure it is"
14647 echo "*** in your path, or set the PKG_CONFIG environment variable"
14648 echo "*** to the full path to pkg-config."
14649 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14650 else
14651 PKG_CONFIG_MIN_VERSION=0.9.0
14652 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14653 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14654 echo "configure:14655: checking for pangoxft" >&5
14655
14656 if $PKG_CONFIG --exists "pangoxft" ; then
14657 echo "$ac_t""yes" 1>&6
14658 succeeded=yes
14659
14660 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14661 echo "configure:14662: checking PANGOXFT_CFLAGS" >&5
14662 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14663 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14664
14665 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14666 echo "configure:14667: checking PANGOXFT_LIBS" >&5
14667 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14668 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14669 else
14670 PANGOXFT_CFLAGS=""
14671 PANGOXFT_LIBS=""
14672 ## If we have a custom action on failure, don't print errors, but
14673 ## do set a variable so people can do so.
14674 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14675
14676 fi
14677
14678
14679
14680 else
14681 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14682 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14683 fi
14684 fi
14685
14686 if test $succeeded = yes; then
14687
14688 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14689 LIBS="$LIBS $PANGOXFT_LIBS"
14690
14691 else
14692
14693 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14694
14695
14696 fi
14697
14698 fi
14699
14700 wxUSE_UNIVERSAL="yes"
14701
14702 if test "$wxUSE_NANOX" = "yes"; then
14703 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14704 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"
14705 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14706 else
14707 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14708 fi
14709
14710 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14711 TOOLKIT=X11
14712 GUIDIST=X11_DIST
14713 fi
14714
14715 if test "$wxUSE_MOTIF" = 1; then
14716 if test "$no_x" = yes; then
14717 # Not all programs may use this symbol, but it does not hurt to define it.
14718 cat >> confdefs.h <<\EOF
14719 #define X_DISPLAY_MISSING 1
14720 EOF
14721
14722 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14723 else
14724 if test -n "$x_includes"; then
14725 X_CFLAGS="$X_CFLAGS -I$x_includes"
14726 fi
14727
14728 # It would also be nice to do this for all -L options, not just this one.
14729 if test -n "$x_libraries"; then
14730 X_LIBS="$X_LIBS -L$x_libraries"
14731 # For Solaris; some versions of Sun CC require a space after -R and
14732 # others require no space. Words are not sufficient . . . .
14733 case "`(uname -sr) 2>/dev/null`" in
14734 "SunOS 5"*)
14735 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14736 echo "configure:14737: checking whether -R must be followed by a space" >&5
14737 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14738 cat > conftest.$ac_ext <<EOF
14739 #line 14740 "configure"
14740 #include "confdefs.h"
14741
14742 int main() {
14743
14744 ; return 0; }
14745 EOF
14746 if { (eval echo configure:14747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14747 rm -rf conftest*
14748 ac_R_nospace=yes
14749 else
14750 echo "configure: failed program was:" >&5
14751 cat conftest.$ac_ext >&5
14752 rm -rf conftest*
14753 ac_R_nospace=no
14754 fi
14755 rm -f conftest*
14756 if test $ac_R_nospace = yes; then
14757 echo "$ac_t""no" 1>&6
14758 X_LIBS="$X_LIBS -R$x_libraries"
14759 else
14760 LIBS="$ac_xsave_LIBS -R $x_libraries"
14761 cat > conftest.$ac_ext <<EOF
14762 #line 14763 "configure"
14763 #include "confdefs.h"
14764
14765 int main() {
14766
14767 ; return 0; }
14768 EOF
14769 if { (eval echo configure:14770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14770 rm -rf conftest*
14771 ac_R_space=yes
14772 else
14773 echo "configure: failed program was:" >&5
14774 cat conftest.$ac_ext >&5
14775 rm -rf conftest*
14776 ac_R_space=no
14777 fi
14778 rm -f conftest*
14779 if test $ac_R_space = yes; then
14780 echo "$ac_t""yes" 1>&6
14781 X_LIBS="$X_LIBS -R $x_libraries"
14782 else
14783 echo "$ac_t""neither works" 1>&6
14784 fi
14785 fi
14786 LIBS="$ac_xsave_LIBS"
14787 esac
14788 fi
14789
14790 # Check for system-dependent libraries X programs must link with.
14791 # Do this before checking for the system-independent R6 libraries
14792 # (-lICE), since we may need -lsocket or whatever for X linking.
14793
14794 if test "$ISC" = yes; then
14795 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14796 else
14797 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14798 # libraries were built with DECnet support. And karl@cs.umb.edu says
14799 # the Alpha needs dnet_stub (dnet does not exist).
14800 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14801 echo "configure:14802: checking for dnet_ntoa in -ldnet" >&5
14802 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14803 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14804 echo $ac_n "(cached) $ac_c" 1>&6
14805 else
14806 ac_save_LIBS="$LIBS"
14807 LIBS="-ldnet $LIBS"
14808 cat > conftest.$ac_ext <<EOF
14809 #line 14810 "configure"
14810 #include "confdefs.h"
14811 /* Override any gcc2 internal prototype to avoid an error. */
14812 /* We use char because int might match the return type of a gcc2
14813 builtin and then its argument prototype would still apply. */
14814 char dnet_ntoa();
14815
14816 int main() {
14817 dnet_ntoa()
14818 ; return 0; }
14819 EOF
14820 if { (eval echo configure:14821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14821 rm -rf conftest*
14822 eval "ac_cv_lib_$ac_lib_var=yes"
14823 else
14824 echo "configure: failed program was:" >&5
14825 cat conftest.$ac_ext >&5
14826 rm -rf conftest*
14827 eval "ac_cv_lib_$ac_lib_var=no"
14828 fi
14829 rm -f conftest*
14830 LIBS="$ac_save_LIBS"
14831
14832 fi
14833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14834 echo "$ac_t""yes" 1>&6
14835 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14836 else
14837 echo "$ac_t""no" 1>&6
14838 fi
14839
14840 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14841 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14842 echo "configure:14843: checking for dnet_ntoa in -ldnet_stub" >&5
14843 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14845 echo $ac_n "(cached) $ac_c" 1>&6
14846 else
14847 ac_save_LIBS="$LIBS"
14848 LIBS="-ldnet_stub $LIBS"
14849 cat > conftest.$ac_ext <<EOF
14850 #line 14851 "configure"
14851 #include "confdefs.h"
14852 /* Override any gcc2 internal prototype to avoid an error. */
14853 /* We use char because int might match the return type of a gcc2
14854 builtin and then its argument prototype would still apply. */
14855 char dnet_ntoa();
14856
14857 int main() {
14858 dnet_ntoa()
14859 ; return 0; }
14860 EOF
14861 if { (eval echo configure:14862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14862 rm -rf conftest*
14863 eval "ac_cv_lib_$ac_lib_var=yes"
14864 else
14865 echo "configure: failed program was:" >&5
14866 cat conftest.$ac_ext >&5
14867 rm -rf conftest*
14868 eval "ac_cv_lib_$ac_lib_var=no"
14869 fi
14870 rm -f conftest*
14871 LIBS="$ac_save_LIBS"
14872
14873 fi
14874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14875 echo "$ac_t""yes" 1>&6
14876 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14877 else
14878 echo "$ac_t""no" 1>&6
14879 fi
14880
14881 fi
14882
14883 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14884 # to get the SysV transport functions.
14885 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14886 # needs -lnsl.
14887 # The nsl library prevents programs from opening the X display
14888 # on Irix 5.2, according to dickey@clark.net.
14889 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14890 echo "configure:14891: checking for gethostbyname" >&5
14891 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14892 echo $ac_n "(cached) $ac_c" 1>&6
14893 else
14894 cat > conftest.$ac_ext <<EOF
14895 #line 14896 "configure"
14896 #include "confdefs.h"
14897 /* System header to define __stub macros and hopefully few prototypes,
14898 which can conflict with char gethostbyname(); below. */
14899 #include <assert.h>
14900 /* Override any gcc2 internal prototype to avoid an error. */
14901 /* We use char because int might match the return type of a gcc2
14902 builtin and then its argument prototype would still apply. */
14903 char gethostbyname();
14904
14905 int main() {
14906
14907 /* The GNU C library defines this for functions which it implements
14908 to always fail with ENOSYS. Some functions are actually named
14909 something starting with __ and the normal name is an alias. */
14910 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14911 choke me
14912 #else
14913 gethostbyname();
14914 #endif
14915
14916 ; return 0; }
14917 EOF
14918 if { (eval echo configure:14919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14919 rm -rf conftest*
14920 eval "ac_cv_func_gethostbyname=yes"
14921 else
14922 echo "configure: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14924 rm -rf conftest*
14925 eval "ac_cv_func_gethostbyname=no"
14926 fi
14927 rm -f conftest*
14928 fi
14929
14930 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14931 echo "$ac_t""yes" 1>&6
14932 :
14933 else
14934 echo "$ac_t""no" 1>&6
14935 fi
14936
14937 if test $ac_cv_func_gethostbyname = no; then
14938 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14939 echo "configure:14940: checking for gethostbyname in -lnsl" >&5
14940 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14942 echo $ac_n "(cached) $ac_c" 1>&6
14943 else
14944 ac_save_LIBS="$LIBS"
14945 LIBS="-lnsl $LIBS"
14946 cat > conftest.$ac_ext <<EOF
14947 #line 14948 "configure"
14948 #include "confdefs.h"
14949 /* Override any gcc2 internal prototype to avoid an error. */
14950 /* We use char because int might match the return type of a gcc2
14951 builtin and then its argument prototype would still apply. */
14952 char gethostbyname();
14953
14954 int main() {
14955 gethostbyname()
14956 ; return 0; }
14957 EOF
14958 if { (eval echo configure:14959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14959 rm -rf conftest*
14960 eval "ac_cv_lib_$ac_lib_var=yes"
14961 else
14962 echo "configure: failed program was:" >&5
14963 cat conftest.$ac_ext >&5
14964 rm -rf conftest*
14965 eval "ac_cv_lib_$ac_lib_var=no"
14966 fi
14967 rm -f conftest*
14968 LIBS="$ac_save_LIBS"
14969
14970 fi
14971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14972 echo "$ac_t""yes" 1>&6
14973 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14974 else
14975 echo "$ac_t""no" 1>&6
14976 fi
14977
14978 fi
14979
14980 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14981 # socket/setsockopt and other routines are undefined under SCO ODT
14982 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14983 # on later versions), says simon@lia.di.epfl.ch: it contains
14984 # gethostby* variants that don't use the nameserver (or something).
14985 # -lsocket must be given before -lnsl if both are needed.
14986 # We assume that if connect needs -lnsl, so does gethostbyname.
14987 echo $ac_n "checking for connect""... $ac_c" 1>&6
14988 echo "configure:14989: checking for connect" >&5
14989 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14990 echo $ac_n "(cached) $ac_c" 1>&6
14991 else
14992 cat > conftest.$ac_ext <<EOF
14993 #line 14994 "configure"
14994 #include "confdefs.h"
14995 /* System header to define __stub macros and hopefully few prototypes,
14996 which can conflict with char connect(); below. */
14997 #include <assert.h>
14998 /* Override any gcc2 internal prototype to avoid an error. */
14999 /* We use char because int might match the return type of a gcc2
15000 builtin and then its argument prototype would still apply. */
15001 char connect();
15002
15003 int main() {
15004
15005 /* The GNU C library defines this for functions which it implements
15006 to always fail with ENOSYS. Some functions are actually named
15007 something starting with __ and the normal name is an alias. */
15008 #if defined (__stub_connect) || defined (__stub___connect)
15009 choke me
15010 #else
15011 connect();
15012 #endif
15013
15014 ; return 0; }
15015 EOF
15016 if { (eval echo configure:15017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15017 rm -rf conftest*
15018 eval "ac_cv_func_connect=yes"
15019 else
15020 echo "configure: failed program was:" >&5
15021 cat conftest.$ac_ext >&5
15022 rm -rf conftest*
15023 eval "ac_cv_func_connect=no"
15024 fi
15025 rm -f conftest*
15026 fi
15027
15028 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15029 echo "$ac_t""yes" 1>&6
15030 :
15031 else
15032 echo "$ac_t""no" 1>&6
15033 fi
15034
15035 if test $ac_cv_func_connect = no; then
15036 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15037 echo "configure:15038: checking for connect in -lsocket" >&5
15038 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15039 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15040 echo $ac_n "(cached) $ac_c" 1>&6
15041 else
15042 ac_save_LIBS="$LIBS"
15043 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15044 cat > conftest.$ac_ext <<EOF
15045 #line 15046 "configure"
15046 #include "confdefs.h"
15047 /* Override any gcc2 internal prototype to avoid an error. */
15048 /* We use char because int might match the return type of a gcc2
15049 builtin and then its argument prototype would still apply. */
15050 char connect();
15051
15052 int main() {
15053 connect()
15054 ; return 0; }
15055 EOF
15056 if { (eval echo configure:15057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15057 rm -rf conftest*
15058 eval "ac_cv_lib_$ac_lib_var=yes"
15059 else
15060 echo "configure: failed program was:" >&5
15061 cat conftest.$ac_ext >&5
15062 rm -rf conftest*
15063 eval "ac_cv_lib_$ac_lib_var=no"
15064 fi
15065 rm -f conftest*
15066 LIBS="$ac_save_LIBS"
15067
15068 fi
15069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15070 echo "$ac_t""yes" 1>&6
15071 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15072 else
15073 echo "$ac_t""no" 1>&6
15074 fi
15075
15076 fi
15077
15078 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15079 echo $ac_n "checking for remove""... $ac_c" 1>&6
15080 echo "configure:15081: checking for remove" >&5
15081 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15082 echo $ac_n "(cached) $ac_c" 1>&6
15083 else
15084 cat > conftest.$ac_ext <<EOF
15085 #line 15086 "configure"
15086 #include "confdefs.h"
15087 /* System header to define __stub macros and hopefully few prototypes,
15088 which can conflict with char remove(); below. */
15089 #include <assert.h>
15090 /* Override any gcc2 internal prototype to avoid an error. */
15091 /* We use char because int might match the return type of a gcc2
15092 builtin and then its argument prototype would still apply. */
15093 char remove();
15094
15095 int main() {
15096
15097 /* The GNU C library defines this for functions which it implements
15098 to always fail with ENOSYS. Some functions are actually named
15099 something starting with __ and the normal name is an alias. */
15100 #if defined (__stub_remove) || defined (__stub___remove)
15101 choke me
15102 #else
15103 remove();
15104 #endif
15105
15106 ; return 0; }
15107 EOF
15108 if { (eval echo configure:15109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15109 rm -rf conftest*
15110 eval "ac_cv_func_remove=yes"
15111 else
15112 echo "configure: failed program was:" >&5
15113 cat conftest.$ac_ext >&5
15114 rm -rf conftest*
15115 eval "ac_cv_func_remove=no"
15116 fi
15117 rm -f conftest*
15118 fi
15119
15120 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15121 echo "$ac_t""yes" 1>&6
15122 :
15123 else
15124 echo "$ac_t""no" 1>&6
15125 fi
15126
15127 if test $ac_cv_func_remove = no; then
15128 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15129 echo "configure:15130: checking for remove in -lposix" >&5
15130 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15131 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15132 echo $ac_n "(cached) $ac_c" 1>&6
15133 else
15134 ac_save_LIBS="$LIBS"
15135 LIBS="-lposix $LIBS"
15136 cat > conftest.$ac_ext <<EOF
15137 #line 15138 "configure"
15138 #include "confdefs.h"
15139 /* Override any gcc2 internal prototype to avoid an error. */
15140 /* We use char because int might match the return type of a gcc2
15141 builtin and then its argument prototype would still apply. */
15142 char remove();
15143
15144 int main() {
15145 remove()
15146 ; return 0; }
15147 EOF
15148 if { (eval echo configure:15149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15149 rm -rf conftest*
15150 eval "ac_cv_lib_$ac_lib_var=yes"
15151 else
15152 echo "configure: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15154 rm -rf conftest*
15155 eval "ac_cv_lib_$ac_lib_var=no"
15156 fi
15157 rm -f conftest*
15158 LIBS="$ac_save_LIBS"
15159
15160 fi
15161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15162 echo "$ac_t""yes" 1>&6
15163 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15164 else
15165 echo "$ac_t""no" 1>&6
15166 fi
15167
15168 fi
15169
15170 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15171 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15172 echo "configure:15173: checking for shmat" >&5
15173 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15174 echo $ac_n "(cached) $ac_c" 1>&6
15175 else
15176 cat > conftest.$ac_ext <<EOF
15177 #line 15178 "configure"
15178 #include "confdefs.h"
15179 /* System header to define __stub macros and hopefully few prototypes,
15180 which can conflict with char shmat(); below. */
15181 #include <assert.h>
15182 /* Override any gcc2 internal prototype to avoid an error. */
15183 /* We use char because int might match the return type of a gcc2
15184 builtin and then its argument prototype would still apply. */
15185 char shmat();
15186
15187 int main() {
15188
15189 /* The GNU C library defines this for functions which it implements
15190 to always fail with ENOSYS. Some functions are actually named
15191 something starting with __ and the normal name is an alias. */
15192 #if defined (__stub_shmat) || defined (__stub___shmat)
15193 choke me
15194 #else
15195 shmat();
15196 #endif
15197
15198 ; return 0; }
15199 EOF
15200 if { (eval echo configure:15201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15201 rm -rf conftest*
15202 eval "ac_cv_func_shmat=yes"
15203 else
15204 echo "configure: failed program was:" >&5
15205 cat conftest.$ac_ext >&5
15206 rm -rf conftest*
15207 eval "ac_cv_func_shmat=no"
15208 fi
15209 rm -f conftest*
15210 fi
15211
15212 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15213 echo "$ac_t""yes" 1>&6
15214 :
15215 else
15216 echo "$ac_t""no" 1>&6
15217 fi
15218
15219 if test $ac_cv_func_shmat = no; then
15220 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15221 echo "configure:15222: checking for shmat in -lipc" >&5
15222 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15224 echo $ac_n "(cached) $ac_c" 1>&6
15225 else
15226 ac_save_LIBS="$LIBS"
15227 LIBS="-lipc $LIBS"
15228 cat > conftest.$ac_ext <<EOF
15229 #line 15230 "configure"
15230 #include "confdefs.h"
15231 /* Override any gcc2 internal prototype to avoid an error. */
15232 /* We use char because int might match the return type of a gcc2
15233 builtin and then its argument prototype would still apply. */
15234 char shmat();
15235
15236 int main() {
15237 shmat()
15238 ; return 0; }
15239 EOF
15240 if { (eval echo configure:15241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15241 rm -rf conftest*
15242 eval "ac_cv_lib_$ac_lib_var=yes"
15243 else
15244 echo "configure: failed program was:" >&5
15245 cat conftest.$ac_ext >&5
15246 rm -rf conftest*
15247 eval "ac_cv_lib_$ac_lib_var=no"
15248 fi
15249 rm -f conftest*
15250 LIBS="$ac_save_LIBS"
15251
15252 fi
15253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15254 echo "$ac_t""yes" 1>&6
15255 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15256 else
15257 echo "$ac_t""no" 1>&6
15258 fi
15259
15260 fi
15261 fi
15262
15263 # Check for libraries that X11R6 Xt/Xaw programs need.
15264 ac_save_LDFLAGS="$LDFLAGS"
15265 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15266 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15267 # check for ICE first), but we must link in the order -lSM -lICE or
15268 # we get undefined symbols. So assume we have SM if we have ICE.
15269 # These have to be linked with before -lX11, unlike the other
15270 # libraries we check for below, so use a different variable.
15271 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15272 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15273 echo "configure:15274: checking for IceConnectionNumber in -lICE" >&5
15274 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15276 echo $ac_n "(cached) $ac_c" 1>&6
15277 else
15278 ac_save_LIBS="$LIBS"
15279 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15280 cat > conftest.$ac_ext <<EOF
15281 #line 15282 "configure"
15282 #include "confdefs.h"
15283 /* Override any gcc2 internal prototype to avoid an error. */
15284 /* We use char because int might match the return type of a gcc2
15285 builtin and then its argument prototype would still apply. */
15286 char IceConnectionNumber();
15287
15288 int main() {
15289 IceConnectionNumber()
15290 ; return 0; }
15291 EOF
15292 if { (eval echo configure:15293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15293 rm -rf conftest*
15294 eval "ac_cv_lib_$ac_lib_var=yes"
15295 else
15296 echo "configure: failed program was:" >&5
15297 cat conftest.$ac_ext >&5
15298 rm -rf conftest*
15299 eval "ac_cv_lib_$ac_lib_var=no"
15300 fi
15301 rm -f conftest*
15302 LIBS="$ac_save_LIBS"
15303
15304 fi
15305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15306 echo "$ac_t""yes" 1>&6
15307 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15308 else
15309 echo "$ac_t""no" 1>&6
15310 fi
15311
15312 LDFLAGS="$ac_save_LDFLAGS"
15313
15314 fi
15315
15316
15317 if test "$no_x" = "yes"; then
15318 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15319 fi
15320
15321 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15322 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15323 AFMINSTALL=afminstall
15324 COMPILED_X_PROGRAM=0
15325
15326 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15327 echo "configure:15328: checking for Motif/Lesstif headers" >&5
15328
15329 ac_find_includes=
15330 for ac_dir in $SEARCH_INCLUDE /usr/include;
15331 do
15332 if test -f "$ac_dir/Xm/Xm.h"; then
15333 ac_find_includes=$ac_dir
15334 break
15335 fi
15336 done
15337
15338 if test "$ac_find_includes" != "" ; then
15339 echo "$ac_t""found in $ac_find_includes" 1>&6
15340
15341 if test "x$ac_find_includes" = "x/usr/include"; then
15342 ac_path_to_include=""
15343 else
15344 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15345 result=$?
15346 if test $result = 0; then
15347 ac_path_to_include=""
15348 else
15349 ac_path_to_include=" -I$ac_find_includes"
15350 fi
15351 fi
15352
15353 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15354 else
15355 cat > conftest.$ac_ext <<EOF
15356 #line 15357 "configure"
15357 #include "confdefs.h"
15358
15359 #include <Xm/Xm.h>
15360
15361 int main() {
15362
15363 int version;
15364 version = xmUseVersion;
15365
15366 ; return 0; }
15367 EOF
15368 if { (eval echo configure:15369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15369 rm -rf conftest*
15370
15371 echo "$ac_t""found in default search path" 1>&6
15372 COMPILED_X_PROGRAM=1
15373
15374 else
15375 echo "configure: failed program was:" >&5
15376 cat conftest.$ac_ext >&5
15377 rm -rf conftest*
15378
15379 echo "$ac_t""no" 1>&6
15380 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15381
15382
15383 fi
15384 rm -f conftest*
15385 fi
15386
15387 if test "$COMPILED_X_PROGRAM" = 0; then
15388 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15389 echo "configure:15390: checking for Motif/Lesstif library" >&5
15390
15391 ac_find_libraries=
15392 for ac_dir in $SEARCH_LIB /usr/lib;
15393 do
15394 for ac_extension in a so sl dylib; do
15395 if test -f "$ac_dir/libXm.$ac_extension"; then
15396 ac_find_libraries=$ac_dir
15397 break 2
15398 fi
15399 done
15400 done
15401
15402 if test "$ac_find_libraries" != "" ; then
15403 echo "$ac_t""found at $ac_find_libraries" 1>&6
15404
15405
15406 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15407 result=$?
15408 if test $result = 0; then
15409 ac_path_to_link=""
15410 else
15411 ac_path_to_link=" -L$ac_find_libraries"
15412 fi
15413
15414 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15415 else
15416 save_CFLAGS=$CFLAGS
15417 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15418
15419 cat > conftest.$ac_ext <<EOF
15420 #line 15421 "configure"
15421 #include "confdefs.h"
15422
15423 #include <Xm/Xm.h>
15424
15425 int main() {
15426
15427 int version;
15428 version = xmUseVersion;
15429
15430 ; return 0; }
15431 EOF
15432 if { (eval echo configure:15433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15433 rm -rf conftest*
15434
15435 echo "$ac_t""found in default search path" 1>&6
15436 COMPILED_X_PROGRAM=1
15437
15438 else
15439 echo "configure: failed program was:" >&5
15440 cat conftest.$ac_ext >&5
15441 rm -rf conftest*
15442
15443 echo "$ac_t""no" 1>&6
15444 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15445
15446
15447 fi
15448 rm -f conftest*
15449
15450 CFLAGS=$save_CFLAGS
15451 fi
15452 fi
15453
15454 xpm_link=
15455 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15456 echo "configure:15457: checking for Xpm library" >&5
15457
15458 ac_find_libraries=
15459 for ac_dir in $SEARCH_LIB /usr/lib;
15460 do
15461 for ac_extension in a so sl dylib; do
15462 if test -f "$ac_dir/libXpm.$ac_extension"; then
15463 ac_find_libraries=$ac_dir
15464 break 2
15465 fi
15466 done
15467 done
15468
15469 if test "$ac_find_libraries" != "" ; then
15470
15471 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15472 result=$?
15473 if test $result = 0; then
15474 ac_path_to_link=""
15475 else
15476 ac_path_to_link=" -L$ac_find_libraries"
15477 fi
15478
15479 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15480
15481 xpm_link=" -lXpm"
15482 cat >> confdefs.h <<\EOF
15483 #define wxHAVE_LIB_XPM 1
15484 EOF
15485
15486 echo "$ac_t""found at $ac_find_libraries" 1>&6
15487 else
15488 save_CFLAGS=$CFLAGS
15489 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15490
15491 cat > conftest.$ac_ext <<EOF
15492 #line 15493 "configure"
15493 #include "confdefs.h"
15494
15495 #include <X11/xpm.h>
15496
15497 int main() {
15498
15499 int version;
15500 version = XpmLibraryVersion();
15501
15502 ; return 0; }
15503 EOF
15504 if { (eval echo configure:15505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15505 rm -rf conftest*
15506
15507 xpm_link=" -lXpm"
15508 cat >> confdefs.h <<\EOF
15509 #define wxHAVE_LIB_XPM 1
15510 EOF
15511
15512 echo "$ac_t""found in default search path" 1>&6
15513 COMPILED_X_PROGRAM=0
15514
15515 else
15516 echo "configure: failed program was:" >&5
15517 cat conftest.$ac_ext >&5
15518 rm -rf conftest*
15519
15520 echo "$ac_t""no" 1>&6
15521 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15522
15523
15524 fi
15525 rm -f conftest*
15526
15527 CFLAGS=$save_CFLAGS
15528 fi
15529
15530 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15531 echo "configure:15532: checking if we need -lXp and/or -lSM -lICE" >&5
15532 libp_link=""
15533 libsm_ice_link=""
15534 libs_found=0
15535 for libp in "" " -lXp"; do
15536 if test "$libs_found" = "0"; then
15537 for libsm_ice in " -lSM -lICE"; do
15538 if test "$libs_found" = "0"; then
15539 save_LIBS="$LIBS"
15540 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15541 save_CFLAGS=$CFLAGS
15542 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15543
15544 cat > conftest.$ac_ext <<EOF
15545 #line 15546 "configure"
15546 #include "confdefs.h"
15547
15548 #include <Xm/Xm.h>
15549 #include <Xm/List.h>
15550
15551 int main() {
15552
15553 XmString string = NULL;
15554 Widget w = NULL;
15555 int position = 0;
15556 XmListAddItem(w, string, position);
15557
15558 ; return 0; }
15559 EOF
15560 if { (eval echo configure:15561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15561 rm -rf conftest*
15562
15563 libp_link="$libp"
15564 libsm_ice_link="$libsm_ice"
15565 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15566 libs_found=1
15567
15568 else
15569 echo "configure: failed program was:" >&5
15570 cat conftest.$ac_ext >&5
15571 rm -rf conftest*
15572
15573
15574 fi
15575 rm -f conftest*
15576
15577 LIBS="$save_LIBS"
15578 CFLAGS=$save_CFLAGS
15579 fi
15580 done
15581 fi
15582 done
15583
15584 if test "$libs_found" = "0"; then
15585 echo "$ac_t""can't find the right libraries" 1>&6
15586 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15587 fi
15588
15589 save_CFLAGS=$CFLAGS
15590 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15591 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
15592 echo "configure:15593: checking for Motif 2" >&5
15593 cat > conftest.$ac_ext <<EOF
15594 #line 15595 "configure"
15595 #include "confdefs.h"
15596
15597 #include <Xm/Xm.h>
15598
15599 int main() {
15600
15601 #if XmVersion < 2000
15602 #error "Not Motif 2"
15603 #endif
15604
15605 ; return 0; }
15606 EOF
15607 if { (eval echo configure:15608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15608 rm -rf conftest*
15609
15610 cat >> confdefs.h <<\EOF
15611 #define __WXMOTIF20__ 1
15612 EOF
15613
15614 echo "$ac_t""found" 1>&6
15615
15616 else
15617 echo "configure: failed program was:" >&5
15618 cat conftest.$ac_ext >&5
15619 rm -rf conftest*
15620
15621 cat >> confdefs.h <<\EOF
15622 #define __WXMOTIF20__ 0
15623 EOF
15624
15625 echo "$ac_t""not found" 1>&6
15626
15627 fi
15628 rm -f conftest*
15629 CFLAGS=$save_CFLAGS
15630
15631 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15632 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
15633 TOOLKIT=MOTIF
15634 GUIDIST=MOTIF_DIST
15635 wxHAVE_XEXT_LIB=1
15636 fi
15637
15638 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
15639 test "$wxHAVE_XEXT_LIB" = 1; then
15640 save_CFLAGS="$CFLAGS"
15641 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15642
15643 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
15644 echo "configure:15645: checking for X11/extensions/shape.h" >&5
15645 cat > conftest.$ac_ext <<EOF
15646 #line 15647 "configure"
15647 #include "confdefs.h"
15648
15649 #include <X11/Xlib.h>
15650 #include <X11/extensions/shape.h>
15651
15652 int main() {
15653
15654 int dummy1, dummy2;
15655 XShapeQueryExtension((Display*)NULL,
15656 (int*)NULL, (int*)NULL);
15657
15658 ; return 0; }
15659 EOF
15660 if { (eval echo configure:15661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15661 rm -rf conftest*
15662
15663 cat >> confdefs.h <<\EOF
15664 #define HAVE_XSHAPE 1
15665 EOF
15666
15667 echo "$ac_t""found" 1>&6
15668
15669 else
15670 echo "configure: failed program was:" >&5
15671 cat conftest.$ac_ext >&5
15672 rm -rf conftest*
15673
15674 echo "$ac_t""not found" 1>&6
15675
15676 fi
15677 rm -f conftest*
15678 CFLAGS="$save_CFLAGS"
15679 fi
15680
15681 if test "$wxUSE_MAC" = 1; then
15682 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15683
15684 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15685 TOOLKIT=MAC
15686 GUIDIST=MACX_DIST
15687 fi
15688
15689 if test "$wxUSE_COCOA" = 1; then
15690 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15691 TOOLKIT=COCOA
15692 GUIDIST=COCOA_DIST
15693 fi
15694
15695 if test "$wxUSE_PM" = 1; then
15696 TOOLKIT=PM
15697 GUIDIST=GTK_DIST
15698 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15699 wxUSE_THREADS="no"
15700 fi
15701
15702 if test "$TOOLKIT" = "PM" ; then
15703 TOOLKIT_DIR="os2"
15704 else
15705 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15706 fi
15707
15708 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15709
15710 if test "$wxUSE_UNIVERSAL" = "yes"; then
15711 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15712
15713 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15714 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15715
15716 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15717 if test "$wxUSE_X11" = 1; then
15718 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15719 else
15720 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15721 fi
15722 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15723 WIDGET_SET=univ
15724 else
15725 ALL_OBJECTS="\$(GUIOBJS)"
15726 ALL_SOURCES="\$(ALL_SOURCES)"
15727 ALL_HEADERS="\$(ALL_HEADERS)"
15728 fi
15729
15730 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15731
15732 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15733 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15734 fi
15735
15736 if test "$wxUSE_HTML" = "yes"; then
15737 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15738 fi
15739
15740 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15741 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15742 fi
15743 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15744 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15745 fi
15746 if test "$wxUSE_LIBPNG" = "builtin" ; then
15747 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15748 fi
15749
15750 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15751 DISTDIR="wx\$(TOOLKIT)"
15752 else
15753 USE_GUI=0
15754
15755 TOOLKIT_DIR="base"
15756
15757 if test "$USE_WIN32" = 1 ; then
15758 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15759 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15760
15761 TOOLKIT="MSW"
15762 else
15763 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15764 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15765 fi
15766
15767 ALL_SOURCES="\$(ALL_SOURCES)"
15768 ALL_HEADERS="\$(ALL_HEADERS)"
15769
15770 PORT_FILES="\${top_srcdir}/src/files.lst"
15771
15772 GUIDIST="BASE_DIST"
15773 DISTDIR="wxBase"
15774 fi
15775
15776
15777 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15778 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15779 fi
15780
15781 if test "$wxUSE_REGEX" = "builtin" ; then
15782 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15783 fi
15784 if test "$wxUSE_ZLIB" = "builtin" ; then
15785 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15786 fi
15787
15788
15789 if test "$wxUSE_OPENGL" = "yes"; then
15790 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
15791 OPENGL_LIBS="-framework OpenGL -framework AGL"
15792 elif test "$wxUSE_MSW" = 1; then
15793 OPENGL_LIBS="-lopengl32 -lglu32"
15794 else
15795 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15796 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15797 echo "configure:15798: checking for GL/gl.h" >&5
15798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15799 echo $ac_n "(cached) $ac_c" 1>&6
15800 else
15801 cat > conftest.$ac_ext <<EOF
15802 #line 15803 "configure"
15803 #include "confdefs.h"
15804 #include <GL/gl.h>
15805 EOF
15806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15807 { (eval echo configure:15808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15809 if test -z "$ac_err"; then
15810 rm -rf conftest*
15811 eval "ac_cv_header_$ac_safe=yes"
15812 else
15813 echo "$ac_err" >&5
15814 echo "configure: failed program was:" >&5
15815 cat conftest.$ac_ext >&5
15816 rm -rf conftest*
15817 eval "ac_cv_header_$ac_safe=no"
15818 fi
15819 rm -f conftest*
15820 fi
15821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15822 echo "$ac_t""yes" 1>&6
15823
15824 found_gl=0
15825
15826 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15827 echo "configure:15828: checking for -lGL" >&5
15828
15829 ac_find_libraries=
15830 for ac_dir in $SEARCH_LIB /usr/lib;
15831 do
15832 for ac_extension in a so sl dylib; do
15833 if test -f "$ac_dir/libGL.$ac_extension"; then
15834 ac_find_libraries=$ac_dir
15835 break 2
15836 fi
15837 done
15838 done
15839
15840 if test "$ac_find_libraries" != "" ; then
15841
15842 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15843 result=$?
15844 if test $result = 0; then
15845 ac_path_to_link=""
15846 else
15847 ac_path_to_link=" -L$ac_find_libraries"
15848 fi
15849
15850 if test "$ac_path_to_link" != " -L/usr/lib" ; then
15851 LDFLAGS_GL="$ac_path_to_link"
15852 fi
15853
15854
15855 ac_find_libraries=
15856 for ac_dir in $SEARCH_LIB /usr/lib;
15857 do
15858 for ac_extension in a so sl dylib; do
15859 if test -f "$ac_dir/libGLU.$ac_extension"; then
15860 ac_find_libraries=$ac_dir
15861 break 2
15862 fi
15863 done
15864 done
15865
15866 if test "$ac_find_libraries" != "" ; then
15867
15868 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15869 result=$?
15870 if test $result = 0; then
15871 ac_path_to_link=""
15872 else
15873 ac_path_to_link=" -L$ac_find_libraries"
15874 fi
15875
15876 if test "$ac_path_to_link" != " -L/usr/lib" -a \
15877 "$ac_path_to_link" != "$LDFLAGS_GL"; then
15878 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
15879 fi
15880
15881 found_gl=1
15882 OPENGL_LIBS="-lGL -lGLU"
15883 echo "$ac_t""yes" 1>&6
15884 fi
15885 fi
15886
15887 if "$found_gl" != 1; then
15888 echo "$ac_t""no" 1>&6
15889 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15890 echo "configure:15891: checking for -lMesaGL" >&5
15891
15892 ac_find_libraries=
15893 for ac_dir in $SEARCH_LIB /usr/lib;
15894 do
15895 for ac_extension in a so sl dylib; do
15896 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15897 ac_find_libraries=$ac_dir
15898 break 2
15899 fi
15900 done
15901 done
15902
15903 if test "$ac_find_libraries" != "" ; then
15904
15905 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15906 result=$?
15907 if test $result = 0; then
15908 ac_path_to_link=""
15909 else
15910 ac_path_to_link=" -L$ac_find_libraries"
15911 fi
15912
15913 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15914 OPENGL_LIBS="-lMesaGL -lMesaGLU"
15915 echo "$ac_t""yes" 1>&6
15916 else
15917 echo "$ac_t""no" 1>&6
15918 fi
15919 fi
15920
15921 else
15922 echo "$ac_t""no" 1>&6
15923 fi
15924
15925
15926 if test "x$OPENGL_LIBS" = "x"; then
15927 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15928 fi
15929 fi
15930
15931 if test "$wxUSE_OPENGL" = "yes"; then
15932 cat >> confdefs.h <<\EOF
15933 #define wxUSE_OPENGL 1
15934 EOF
15935
15936 cat >> confdefs.h <<\EOF
15937 #define wxUSE_GLCANVAS 1
15938 EOF
15939
15940 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15941 fi
15942 fi
15943
15944 if test -z "$TOOLKIT_VPATH" ; then
15945 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15946 fi
15947
15948 if test -n "$TOOLKIT" ; then
15949 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15950 fi
15951
15952 lib_unicode_suffix=
15953 if test "$wxUSE_UNICODE" = "yes"; then
15954 lib_unicode_suffix=u
15955 fi
15956
15957 lib_debug_suffix=
15958 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15959 lib_debug_suffix=d
15960 fi
15961
15962 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15963
15964 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15965 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15966
15967 if test "$cross_compiling" = "yes"; then
15968 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15969 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15970 fi
15971
15972 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15973 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15974 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
15975
15976 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15977 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15978
15979 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15980 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15981 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15982 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15983
15984 case "${host}" in
15985 *-*-cygwin* | *-*-mingw32* )
15986
15987
15988
15989 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15990 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15991 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15992 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15993 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15994 else
15995 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15996 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15997 fi
15998 ;;
15999
16000 *-*-darwin* )
16001
16002 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16003 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16004
16005 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16006 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16007 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16008 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16009
16010 if test "$wxUSE_MAC" = 1; then
16011 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16012 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
16013 fi
16014 ;;
16015 esac
16016
16017 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16018 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16019
16020 WXCONFIG_LIBS="-l${WX_LIBRARY}"
16021 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16022
16023 if test "$wxUSE_OPENGL" = "yes"; then
16024 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16025 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16026 fi
16027
16028
16029
16030 if test "$wxUSE_SHARED" = "yes"; then
16031 case "${host}" in
16032 *-pc-os2_emx | *-pc-os2-emx | \
16033 *-pc-msdosdjgpp )
16034 wxUSE_SHARED=no
16035 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
16036 ;;
16037 esac
16038 fi
16039
16040 if test "$wxUSE_SHARED" = "yes"; then
16041
16042 if test "$wxUSE_OPENGL" = "yes"; then
16043 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16044 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16045 else
16046 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16047 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16048 fi
16049
16050 if test "$GCC" = "yes"; then
16051 PIC_FLAG="-fPIC"
16052 fi
16053
16054
16055
16056 found_versioning=no
16057
16058
16059 if test $found_versioning = no ; then
16060 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
16061 echo "configure:16062: checking if the linker accepts --version-script" >&5
16062 if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16063 echo $ac_n "(cached) $ac_c" 1>&6
16064 else
16065
16066 echo "VER_1 { *; };" >conftest.sym
16067 echo "int main() { return 0; }" >conftest.cpp
16068
16069 if { ac_try='
16070 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
16071 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
16072 if test -s conftest.stderr ; then
16073 wx_cv_version_script=no
16074 else
16075 wx_cv_version_script=yes
16076 fi
16077 else
16078 wx_cv_version_script=no
16079 fi
16080 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16081
16082 fi
16083
16084 echo "$ac_t""$wx_cv_version_script" 1>&6
16085 if test $wx_cv_version_script = yes ; then
16086 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16087 fi
16088 fi
16089
16090
16091 SHARED_LD="${CXX} -shared -o"
16092
16093 case "${host}" in
16094 *-hp-hpux* )
16095 if test "$GCC" = "yes"; then
16096 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
16097 else
16098 LDFLAGS="$LDFLAGS -L/usr/lib"
16099
16100 SHARED_LD="${CXX} -b -o"
16101 PIC_FLAG="+Z"
16102 fi
16103
16104 if test "$wxUSE_OPENGL" = "yes"; then
16105 WX_ALL_INSTALLED="preinstall_gl"
16106 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16107 else
16108 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16109 fi
16110 ;;
16111
16112 *-*-linux* )
16113 if test "$GCC" != "yes"; then
16114 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16115 echo "configure:16116: checking for Intel compiler" >&5
16116 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16117 echo $ac_n "(cached) $ac_c" 1>&6
16118 else
16119
16120 cat > conftest.$ac_ext <<EOF
16121 #line 16122 "configure"
16122 #include "confdefs.h"
16123
16124 int main() {
16125
16126 #ifndef __INTEL_COMPILER
16127 #error Not icc
16128 #endif
16129
16130 ; return 0; }
16131 EOF
16132 if { (eval echo configure:16133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16133 rm -rf conftest*
16134 wx_cv_prog_icc=yes
16135 else
16136 echo "configure: failed program was:" >&5
16137 cat conftest.$ac_ext >&5
16138 rm -rf conftest*
16139 wx_cv_prog_icc=no
16140
16141 fi
16142 rm -f conftest*
16143
16144 fi
16145
16146 echo "$ac_t""$wx_cv_prog_icc" 1>&6
16147 if test "$wx_cv_prog_icc" = "yes"; then
16148 PIC_FLAG="-KPIC"
16149 fi
16150 fi
16151
16152 if test "$wxUSE_SONAME" = "yes" ; then
16153 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16154 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16155 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16156 fi
16157 ;;
16158
16159 *-*-solaris2* )
16160 if test "$GCC" = yes ; then
16161 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16162 else
16163 SHARED_LD="${CXX} -G -o"
16164 PIC_FLAG="-KPIC"
16165 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16166 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16167 fi
16168 ;;
16169
16170 *-*-darwin* )
16171 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16172 CFLAGS="$CFLAGS -fno-common"
16173 CXXFLAGS="$CXXFLAGS -fno-common"
16174 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16175 PIC_FLAG="-dynamic -fPIC"
16176 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16177 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16178 ;;
16179
16180 *-*-aix* )
16181 if test "$GCC" != "yes"; then
16182 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16183 set dummy makeC++SharedLib; ac_word=$2
16184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16185 echo "configure:16186: checking for $ac_word" >&5
16186 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16187 echo $ac_n "(cached) $ac_c" 1>&6
16188 else
16189 if test -n "$AIX_CXX_LD"; then
16190 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16191 else
16192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16193 ac_dummy="$PATH"
16194 for ac_dir in $ac_dummy; do
16195 test -z "$ac_dir" && ac_dir=.
16196 if test -f $ac_dir/$ac_word; then
16197 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16198 break
16199 fi
16200 done
16201 IFS="$ac_save_ifs"
16202 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16203 fi
16204 fi
16205 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16206 if test -n "$AIX_CXX_LD"; then
16207 echo "$ac_t""$AIX_CXX_LD" 1>&6
16208 else
16209 echo "$ac_t""no" 1>&6
16210 fi
16211
16212
16213 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16214 fi
16215 ;;
16216
16217 *-*-cygwin* | *-*-mingw32* )
16218 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16219
16220 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16221 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16222
16223 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16224
16225 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16226 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16227
16228 if test "$wxUSE_OPENGL" = "yes"; then
16229 LIBS="${LIBS} ${OPENGL_LIBS}"
16230 fi
16231 ;;
16232
16233 *-*-beos* )
16234 SHARED_LD="${LD} -shared -o"
16235 ;;
16236
16237 *-*-irix* )
16238 if test "$GCC" != "yes"; then
16239 PIC_FLAG="-KPIC"
16240 fi
16241 ;;
16242
16243 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16244 *-*-sunos4* | \
16245 *-*-osf* | \
16246 *-*-dgux5* | \
16247 *-*-sysv5* )
16248 ;;
16249
16250 *)
16251 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16252 esac
16253
16254 if test "x$WX_TARGET_LIBRARY" = "x"; then
16255 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16256 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16257 fi
16258
16259 WX_TARGET_LIBRARY_TYPE="so"
16260 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16261 fi
16262
16263 if test "$wxUSE_SHARED" = "no"; then
16264
16265 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16266 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16267 fi
16268
16269 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
16270 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16271 fi
16272
16273 if test "$wxUSE_OPENGL" = "yes"; then
16274 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16275 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16276 else
16277 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16278 fi
16279
16280 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16281 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16282
16283 WX_TARGET_LIBRARY_TYPE="a"
16284 INSTALL_LIBRARY='$(INSTALL_DATA)'
16285
16286 STATIC_FLAG="yes"
16287 else
16288 STATIC_FLAG="no"
16289 fi
16290
16291 MACRESCOMP="@#"
16292 MACSETFILE="@#"
16293 MACRESWXCONFIG="#"
16294 if test "$wxUSE_MAC" = 1; then
16295 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16296 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16297 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16298 # Extract the first word of "Rez", so it can be a program name with args.
16299 set dummy Rez; ac_word=$2
16300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16301 echo "configure:16302: checking for $ac_word" >&5
16302 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16303 echo $ac_n "(cached) $ac_c" 1>&6
16304 else
16305 if test -n "$RESCOMP"; then
16306 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16307 else
16308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16309 ac_dummy="$PATH"
16310 for ac_dir in $ac_dummy; do
16311 test -z "$ac_dir" && ac_dir=.
16312 if test -f $ac_dir/$ac_word; then
16313 ac_cv_prog_RESCOMP="Rez"
16314 break
16315 fi
16316 done
16317 IFS="$ac_save_ifs"
16318 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16319 fi
16320 fi
16321 RESCOMP="$ac_cv_prog_RESCOMP"
16322 if test -n "$RESCOMP"; then
16323 echo "$ac_t""$RESCOMP" 1>&6
16324 else
16325 echo "$ac_t""no" 1>&6
16326 fi
16327
16328 # Extract the first word of "DeRez", so it can be a program name with args.
16329 set dummy DeRez; ac_word=$2
16330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16331 echo "configure:16332: checking for $ac_word" >&5
16332 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16333 echo $ac_n "(cached) $ac_c" 1>&6
16334 else
16335 if test -n "$DEREZ"; then
16336 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16337 else
16338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16339 ac_dummy="$PATH"
16340 for ac_dir in $ac_dummy; do
16341 test -z "$ac_dir" && ac_dir=.
16342 if test -f $ac_dir/$ac_word; then
16343 ac_cv_prog_DEREZ="DeRez"
16344 break
16345 fi
16346 done
16347 IFS="$ac_save_ifs"
16348 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16349 fi
16350 fi
16351 DEREZ="$ac_cv_prog_DEREZ"
16352 if test -n "$DEREZ"; then
16353 echo "$ac_t""$DEREZ" 1>&6
16354 else
16355 echo "$ac_t""no" 1>&6
16356 fi
16357
16358 # Extract the first word of "SetFile", so it can be a program name with args.
16359 set dummy SetFile; ac_word=$2
16360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16361 echo "configure:16362: checking for $ac_word" >&5
16362 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16363 echo $ac_n "(cached) $ac_c" 1>&6
16364 else
16365 if test -n "$SETFILE"; then
16366 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16367 else
16368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16369 ac_dummy="$PATH"
16370 for ac_dir in $ac_dummy; do
16371 test -z "$ac_dir" && ac_dir=.
16372 if test -f $ac_dir/$ac_word; then
16373 ac_cv_prog_SETFILE="SetFile"
16374 break
16375 fi
16376 done
16377 IFS="$ac_save_ifs"
16378 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16379 fi
16380 fi
16381 SETFILE="$ac_cv_prog_SETFILE"
16382 if test -n "$SETFILE"; then
16383 echo "$ac_t""$SETFILE" 1>&6
16384 else
16385 echo "$ac_t""no" 1>&6
16386 fi
16387
16388 MACOSX_BUNDLE="bundle"
16389 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16390 MACSETFILE="\$(SETFILE)"
16391 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16392 elif test "$wxUSE_COCOA" = 1; then
16393 # Extract the first word of "Rez", so it can be a program name with args.
16394 set dummy Rez; ac_word=$2
16395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16396 echo "configure:16397: checking for $ac_word" >&5
16397 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16398 echo $ac_n "(cached) $ac_c" 1>&6
16399 else
16400 if test -n "$RESCOMP"; then
16401 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16402 else
16403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16404 ac_dummy="$PATH"
16405 for ac_dir in $ac_dummy; do
16406 test -z "$ac_dir" && ac_dir=.
16407 if test -f $ac_dir/$ac_word; then
16408 ac_cv_prog_RESCOMP="Rez"
16409 break
16410 fi
16411 done
16412 IFS="$ac_save_ifs"
16413 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16414 fi
16415 fi
16416 RESCOMP="$ac_cv_prog_RESCOMP"
16417 if test -n "$RESCOMP"; then
16418 echo "$ac_t""$RESCOMP" 1>&6
16419 else
16420 echo "$ac_t""no" 1>&6
16421 fi
16422
16423 # Extract the first word of "DeRez", so it can be a program name with args.
16424 set dummy DeRez; ac_word=$2
16425 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16426 echo "configure:16427: checking for $ac_word" >&5
16427 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16428 echo $ac_n "(cached) $ac_c" 1>&6
16429 else
16430 if test -n "$DEREZ"; then
16431 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16432 else
16433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16434 ac_dummy="$PATH"
16435 for ac_dir in $ac_dummy; do
16436 test -z "$ac_dir" && ac_dir=.
16437 if test -f $ac_dir/$ac_word; then
16438 ac_cv_prog_DEREZ="DeRez"
16439 break
16440 fi
16441 done
16442 IFS="$ac_save_ifs"
16443 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16444 fi
16445 fi
16446 DEREZ="$ac_cv_prog_DEREZ"
16447 if test -n "$DEREZ"; then
16448 echo "$ac_t""$DEREZ" 1>&6
16449 else
16450 echo "$ac_t""no" 1>&6
16451 fi
16452
16453 # Extract the first word of "SetFile", so it can be a program name with args.
16454 set dummy SetFile; ac_word=$2
16455 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16456 echo "configure:16457: checking for $ac_word" >&5
16457 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16458 echo $ac_n "(cached) $ac_c" 1>&6
16459 else
16460 if test -n "$SETFILE"; then
16461 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16462 else
16463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16464 ac_dummy="$PATH"
16465 for ac_dir in $ac_dummy; do
16466 test -z "$ac_dir" && ac_dir=.
16467 if test -f $ac_dir/$ac_word; then
16468 ac_cv_prog_SETFILE="SetFile"
16469 break
16470 fi
16471 done
16472 IFS="$ac_save_ifs"
16473 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16474 fi
16475 fi
16476 SETFILE="$ac_cv_prog_SETFILE"
16477 if test -n "$SETFILE"; then
16478 echo "$ac_t""$SETFILE" 1>&6
16479 else
16480 echo "$ac_t""no" 1>&6
16481 fi
16482
16483 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
16484 MACSETFILE="\$(SETFILE)"
16485 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16486 else
16487 if test "$wxUSE_PM" = 1; then
16488 MACRESCOMP="emxbind -ep"
16489 fi
16490 fi
16491
16492
16493 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16494 echo "configure:16495: checking for ANSI C header files" >&5
16495 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16496 echo $ac_n "(cached) $ac_c" 1>&6
16497 else
16498 cat > conftest.$ac_ext <<EOF
16499 #line 16500 "configure"
16500 #include "confdefs.h"
16501 #include <stdlib.h>
16502 #include <stdarg.h>
16503 #include <string.h>
16504 #include <float.h>
16505 EOF
16506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16507 { (eval echo configure:16508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16509 if test -z "$ac_err"; then
16510 rm -rf conftest*
16511 ac_cv_header_stdc=yes
16512 else
16513 echo "$ac_err" >&5
16514 echo "configure: failed program was:" >&5
16515 cat conftest.$ac_ext >&5
16516 rm -rf conftest*
16517 ac_cv_header_stdc=no
16518 fi
16519 rm -f conftest*
16520
16521 if test $ac_cv_header_stdc = yes; then
16522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16523 cat > conftest.$ac_ext <<EOF
16524 #line 16525 "configure"
16525 #include "confdefs.h"
16526 #include <string.h>
16527 EOF
16528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16529 egrep "memchr" >/dev/null 2>&1; then
16530 :
16531 else
16532 rm -rf conftest*
16533 ac_cv_header_stdc=no
16534 fi
16535 rm -f conftest*
16536
16537 fi
16538
16539 if test $ac_cv_header_stdc = yes; then
16540 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16541 cat > conftest.$ac_ext <<EOF
16542 #line 16543 "configure"
16543 #include "confdefs.h"
16544 #include <stdlib.h>
16545 EOF
16546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16547 egrep "free" >/dev/null 2>&1; then
16548 :
16549 else
16550 rm -rf conftest*
16551 ac_cv_header_stdc=no
16552 fi
16553 rm -f conftest*
16554
16555 fi
16556
16557 if test $ac_cv_header_stdc = yes; then
16558 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16559 if test "$cross_compiling" = yes; then
16560 :
16561 else
16562 cat > conftest.$ac_ext <<EOF
16563 #line 16564 "configure"
16564 #include "confdefs.h"
16565 #include <ctype.h>
16566 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16567 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16569 int main () { int i; for (i = 0; i < 256; i++)
16570 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16571 exit (0); }
16572
16573 EOF
16574 if { (eval echo configure:16575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16575 then
16576 :
16577 else
16578 echo "configure: failed program was:" >&5
16579 cat conftest.$ac_ext >&5
16580 rm -fr conftest*
16581 ac_cv_header_stdc=no
16582 fi
16583 rm -fr conftest*
16584 fi
16585
16586 fi
16587 fi
16588
16589 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16590 if test $ac_cv_header_stdc = yes; then
16591 cat >> confdefs.h <<\EOF
16592 #define STDC_HEADERS 1
16593 EOF
16594
16595 fi
16596
16597 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16598 echo "configure:16599: checking for mode_t" >&5
16599 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16600 echo $ac_n "(cached) $ac_c" 1>&6
16601 else
16602 cat > conftest.$ac_ext <<EOF
16603 #line 16604 "configure"
16604 #include "confdefs.h"
16605 #include <sys/types.h>
16606 #if STDC_HEADERS
16607 #include <stdlib.h>
16608 #include <stddef.h>
16609 #endif
16610 EOF
16611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16612 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16613 rm -rf conftest*
16614 ac_cv_type_mode_t=yes
16615 else
16616 rm -rf conftest*
16617 ac_cv_type_mode_t=no
16618 fi
16619 rm -f conftest*
16620
16621 fi
16622 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16623 if test $ac_cv_type_mode_t = no; then
16624 cat >> confdefs.h <<\EOF
16625 #define mode_t int
16626 EOF
16627
16628 fi
16629
16630 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16631 echo "configure:16632: checking for off_t" >&5
16632 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16633 echo $ac_n "(cached) $ac_c" 1>&6
16634 else
16635 cat > conftest.$ac_ext <<EOF
16636 #line 16637 "configure"
16637 #include "confdefs.h"
16638 #include <sys/types.h>
16639 #if STDC_HEADERS
16640 #include <stdlib.h>
16641 #include <stddef.h>
16642 #endif
16643 EOF
16644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16645 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16646 rm -rf conftest*
16647 ac_cv_type_off_t=yes
16648 else
16649 rm -rf conftest*
16650 ac_cv_type_off_t=no
16651 fi
16652 rm -f conftest*
16653
16654 fi
16655 echo "$ac_t""$ac_cv_type_off_t" 1>&6
16656 if test $ac_cv_type_off_t = no; then
16657 cat >> confdefs.h <<\EOF
16658 #define off_t long
16659 EOF
16660
16661 fi
16662
16663 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16664 echo "configure:16665: checking for pid_t" >&5
16665 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16666 echo $ac_n "(cached) $ac_c" 1>&6
16667 else
16668 cat > conftest.$ac_ext <<EOF
16669 #line 16670 "configure"
16670 #include "confdefs.h"
16671 #include <sys/types.h>
16672 #if STDC_HEADERS
16673 #include <stdlib.h>
16674 #include <stddef.h>
16675 #endif
16676 EOF
16677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16678 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16679 rm -rf conftest*
16680 ac_cv_type_pid_t=yes
16681 else
16682 rm -rf conftest*
16683 ac_cv_type_pid_t=no
16684 fi
16685 rm -f conftest*
16686
16687 fi
16688 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16689 if test $ac_cv_type_pid_t = no; then
16690 cat >> confdefs.h <<\EOF
16691 #define pid_t int
16692 EOF
16693
16694 fi
16695
16696 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16697 echo "configure:16698: checking for size_t" >&5
16698 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16699 echo $ac_n "(cached) $ac_c" 1>&6
16700 else
16701 cat > conftest.$ac_ext <<EOF
16702 #line 16703 "configure"
16703 #include "confdefs.h"
16704 #include <sys/types.h>
16705 #if STDC_HEADERS
16706 #include <stdlib.h>
16707 #include <stddef.h>
16708 #endif
16709 EOF
16710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16711 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16712 rm -rf conftest*
16713 ac_cv_type_size_t=yes
16714 else
16715 rm -rf conftest*
16716 ac_cv_type_size_t=no
16717 fi
16718 rm -f conftest*
16719
16720 fi
16721 echo "$ac_t""$ac_cv_type_size_t" 1>&6
16722 if test $ac_cv_type_size_t = no; then
16723 cat >> confdefs.h <<\EOF
16724 #define size_t unsigned
16725 EOF
16726
16727 fi
16728
16729 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16730 echo "configure:16731: checking for uid_t in sys/types.h" >&5
16731 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16732 echo $ac_n "(cached) $ac_c" 1>&6
16733 else
16734 cat > conftest.$ac_ext <<EOF
16735 #line 16736 "configure"
16736 #include "confdefs.h"
16737 #include <sys/types.h>
16738 EOF
16739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16740 egrep "uid_t" >/dev/null 2>&1; then
16741 rm -rf conftest*
16742 ac_cv_type_uid_t=yes
16743 else
16744 rm -rf conftest*
16745 ac_cv_type_uid_t=no
16746 fi
16747 rm -f conftest*
16748
16749 fi
16750
16751 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16752 if test $ac_cv_type_uid_t = no; then
16753 cat >> confdefs.h <<\EOF
16754 #define uid_t int
16755 EOF
16756
16757 cat >> confdefs.h <<\EOF
16758 #define gid_t int
16759 EOF
16760
16761 fi
16762
16763
16764
16765 ac_ext=C
16766 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16767 ac_cpp='$CXXCPP $CPPFLAGS'
16768 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16769 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16770 cross_compiling=$ac_cv_prog_cxx_cross
16771
16772 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16773 echo "configure:16774: checking if size_t is unsigned int" >&5
16774 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16775 echo $ac_n "(cached) $ac_c" 1>&6
16776 else
16777 cat > conftest.$ac_ext <<EOF
16778 #line 16779 "configure"
16779 #include "confdefs.h"
16780 #include <stddef.h>
16781 int main() {
16782
16783 return 0; }
16784
16785 struct Foo { void foo(size_t); void foo(unsigned int); };
16786
16787 int bar() {
16788
16789 ; return 0; }
16790 EOF
16791 if { (eval echo configure:16792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16792 rm -rf conftest*
16793 wx_cv_size_t_is_uint=no
16794 else
16795 echo "configure: failed program was:" >&5
16796 cat conftest.$ac_ext >&5
16797 rm -rf conftest*
16798 wx_cv_size_t_is_uint=yes
16799
16800 fi
16801 rm -f conftest*
16802
16803 fi
16804
16805 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16806
16807 if test "$wx_cv_size_t_is_uint" = "yes"; then
16808 cat >> confdefs.h <<\EOF
16809 #define wxSIZE_T_IS_UINT 1
16810 EOF
16811
16812 else
16813 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16814 echo "configure:16815: checking if size_t is unsigned long" >&5
16815 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16816 echo $ac_n "(cached) $ac_c" 1>&6
16817 else
16818 cat > conftest.$ac_ext <<EOF
16819 #line 16820 "configure"
16820 #include "confdefs.h"
16821 #include <stddef.h>
16822 int main() {
16823
16824 return 0; }
16825
16826 struct Foo { void foo(size_t); void foo(unsigned long); };
16827
16828 int bar() {
16829
16830 ; return 0; }
16831 EOF
16832 if { (eval echo configure:16833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16833 rm -rf conftest*
16834 wx_cv_size_t_is_ulong=no
16835 else
16836 echo "configure: failed program was:" >&5
16837 cat conftest.$ac_ext >&5
16838 rm -rf conftest*
16839 wx_cv_size_t_is_ulong=yes
16840
16841 fi
16842 rm -f conftest*
16843
16844 fi
16845
16846 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16847
16848 if test "$wx_cv_size_t_is_ulong" = "yes"; then
16849 cat >> confdefs.h <<\EOF
16850 #define wxSIZE_T_IS_ULONG 1
16851 EOF
16852
16853 fi
16854 fi
16855
16856 ac_ext=c
16857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16858 ac_cpp='$CPP $CPPFLAGS'
16859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16861 cross_compiling=$ac_cv_prog_cc_cross
16862
16863
16864
16865 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16866 echo "configure:16867: checking for pw_gecos in struct passwd" >&5
16867 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16868 echo $ac_n "(cached) $ac_c" 1>&6
16869 else
16870
16871 cat > conftest.$ac_ext <<EOF
16872 #line 16873 "configure"
16873 #include "confdefs.h"
16874 #include <pwd.h>
16875 int main() {
16876
16877 char *p;
16878 struct passwd *pw;
16879 p = pw->pw_gecos;
16880
16881 ; return 0; }
16882 EOF
16883 if { (eval echo configure:16884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16884 rm -rf conftest*
16885
16886 wx_cv_struct_pw_gecos=yes
16887
16888 else
16889 echo "configure: failed program was:" >&5
16890 cat conftest.$ac_ext >&5
16891 rm -rf conftest*
16892
16893 wx_cv_struct_pw_gecos=no
16894
16895
16896 fi
16897 rm -f conftest*
16898
16899
16900 fi
16901
16902 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16903
16904 if test "$wx_cv_struct_pw_gecos" = "yes"; then
16905 cat >> confdefs.h <<\EOF
16906 #define HAVE_PW_GECOS 1
16907 EOF
16908
16909 fi
16910
16911
16912 if test "$wx_cv_sizeof_wchar_t" != "0"; then
16913 cat >> confdefs.h <<\EOF
16914 #define wxUSE_WCHAR_T 1
16915 EOF
16916
16917
16918 WCSLEN_FOUND=0
16919 WCHAR_LINK=
16920 for ac_func in wcslen
16921 do
16922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16923 echo "configure:16924: checking for $ac_func" >&5
16924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16925 echo $ac_n "(cached) $ac_c" 1>&6
16926 else
16927 cat > conftest.$ac_ext <<EOF
16928 #line 16929 "configure"
16929 #include "confdefs.h"
16930 /* System header to define __stub macros and hopefully few prototypes,
16931 which can conflict with char $ac_func(); below. */
16932 #include <assert.h>
16933 /* Override any gcc2 internal prototype to avoid an error. */
16934 /* We use char because int might match the return type of a gcc2
16935 builtin and then its argument prototype would still apply. */
16936 char $ac_func();
16937
16938 int main() {
16939
16940 /* The GNU C library defines this for functions which it implements
16941 to always fail with ENOSYS. Some functions are actually named
16942 something starting with __ and the normal name is an alias. */
16943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16944 choke me
16945 #else
16946 $ac_func();
16947 #endif
16948
16949 ; return 0; }
16950 EOF
16951 if { (eval echo configure:16952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16952 rm -rf conftest*
16953 eval "ac_cv_func_$ac_func=yes"
16954 else
16955 echo "configure: failed program was:" >&5
16956 cat conftest.$ac_ext >&5
16957 rm -rf conftest*
16958 eval "ac_cv_func_$ac_func=no"
16959 fi
16960 rm -f conftest*
16961 fi
16962
16963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16964 echo "$ac_t""yes" 1>&6
16965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16966 cat >> confdefs.h <<EOF
16967 #define $ac_tr_func 1
16968 EOF
16969 WCSLEN_FOUND=1
16970 else
16971 echo "$ac_t""no" 1>&6
16972 fi
16973 done
16974
16975
16976 if test "$WCSLEN_FOUND" = 0; then
16977 if test "$TOOLKIT" = "MSW"; then
16978 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16979 echo "configure:16980: checking for wcslen in -lmsvcrt" >&5
16980 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16982 echo $ac_n "(cached) $ac_c" 1>&6
16983 else
16984 ac_save_LIBS="$LIBS"
16985 LIBS="-lmsvcrt $LIBS"
16986 cat > conftest.$ac_ext <<EOF
16987 #line 16988 "configure"
16988 #include "confdefs.h"
16989 /* Override any gcc2 internal prototype to avoid an error. */
16990 /* We use char because int might match the return type of a gcc2
16991 builtin and then its argument prototype would still apply. */
16992 char wcslen();
16993
16994 int main() {
16995 wcslen()
16996 ; return 0; }
16997 EOF
16998 if { (eval echo configure:16999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16999 rm -rf conftest*
17000 eval "ac_cv_lib_$ac_lib_var=yes"
17001 else
17002 echo "configure: failed program was:" >&5
17003 cat conftest.$ac_ext >&5
17004 rm -rf conftest*
17005 eval "ac_cv_lib_$ac_lib_var=no"
17006 fi
17007 rm -f conftest*
17008 LIBS="$ac_save_LIBS"
17009
17010 fi
17011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17012 echo "$ac_t""yes" 1>&6
17013 WCHAR_OK=1
17014 else
17015 echo "$ac_t""no" 1>&6
17016 fi
17017
17018 else
17019 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
17020 echo "configure:17021: checking for wcslen in -lw" >&5
17021 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17023 echo $ac_n "(cached) $ac_c" 1>&6
17024 else
17025 ac_save_LIBS="$LIBS"
17026 LIBS="-lw $LIBS"
17027 cat > conftest.$ac_ext <<EOF
17028 #line 17029 "configure"
17029 #include "confdefs.h"
17030 /* Override any gcc2 internal prototype to avoid an error. */
17031 /* We use char because int might match the return type of a gcc2
17032 builtin and then its argument prototype would still apply. */
17033 char wcslen();
17034
17035 int main() {
17036 wcslen()
17037 ; return 0; }
17038 EOF
17039 if { (eval echo configure:17040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17040 rm -rf conftest*
17041 eval "ac_cv_lib_$ac_lib_var=yes"
17042 else
17043 echo "configure: failed program was:" >&5
17044 cat conftest.$ac_ext >&5
17045 rm -rf conftest*
17046 eval "ac_cv_lib_$ac_lib_var=no"
17047 fi
17048 rm -f conftest*
17049 LIBS="$ac_save_LIBS"
17050
17051 fi
17052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17053 echo "$ac_t""yes" 1>&6
17054
17055 WCHAR_LINK=" -lw"
17056 WCSLEN_FOUND=1
17057
17058 else
17059 echo "$ac_t""no" 1>&6
17060 fi
17061
17062 fi
17063 fi
17064
17065 if test "$WCSLEN_FOUND" = 1; then
17066 cat >> confdefs.h <<\EOF
17067 #define HAVE_WCSLEN 1
17068 EOF
17069
17070 fi
17071
17072 for ac_func in wcsrtombs
17073 do
17074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17075 echo "configure:17076: checking for $ac_func" >&5
17076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17077 echo $ac_n "(cached) $ac_c" 1>&6
17078 else
17079 cat > conftest.$ac_ext <<EOF
17080 #line 17081 "configure"
17081 #include "confdefs.h"
17082 /* System header to define __stub macros and hopefully few prototypes,
17083 which can conflict with char $ac_func(); below. */
17084 #include <assert.h>
17085 /* Override any gcc2 internal prototype to avoid an error. */
17086 /* We use char because int might match the return type of a gcc2
17087 builtin and then its argument prototype would still apply. */
17088 char $ac_func();
17089
17090 int main() {
17091
17092 /* The GNU C library defines this for functions which it implements
17093 to always fail with ENOSYS. Some functions are actually named
17094 something starting with __ and the normal name is an alias. */
17095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17096 choke me
17097 #else
17098 $ac_func();
17099 #endif
17100
17101 ; return 0; }
17102 EOF
17103 if { (eval echo configure:17104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17104 rm -rf conftest*
17105 eval "ac_cv_func_$ac_func=yes"
17106 else
17107 echo "configure: failed program was:" >&5
17108 cat conftest.$ac_ext >&5
17109 rm -rf conftest*
17110 eval "ac_cv_func_$ac_func=no"
17111 fi
17112 rm -f conftest*
17113 fi
17114
17115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17116 echo "$ac_t""yes" 1>&6
17117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17118 cat >> confdefs.h <<EOF
17119 #define $ac_tr_func 1
17120 EOF
17121
17122 else
17123 echo "$ac_t""no" 1>&6
17124 fi
17125 done
17126
17127 else
17128 echo "configure: warning: Wide character support is unavailable" 1>&2
17129 fi
17130
17131
17132 ac_ext=C
17133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17134 ac_cpp='$CXXCPP $CPPFLAGS'
17135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17136 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17137 cross_compiling=$ac_cv_prog_cxx_cross
17138
17139
17140 for ac_func in vsnprintf
17141 do
17142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17143 echo "configure:17144: checking for $ac_func" >&5
17144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17145 echo $ac_n "(cached) $ac_c" 1>&6
17146 else
17147 cat > conftest.$ac_ext <<EOF
17148 #line 17149 "configure"
17149 #include "confdefs.h"
17150 /* System header to define __stub macros and hopefully few prototypes,
17151 which can conflict with char $ac_func(); below. */
17152 #include <assert.h>
17153 /* Override any gcc2 internal prototype to avoid an error. */
17154 #ifdef __cplusplus
17155 extern "C"
17156 #endif
17157 /* We use char because int might match the return type of a gcc2
17158 builtin and then its argument prototype would still apply. */
17159 char $ac_func();
17160
17161 int main() {
17162
17163 /* The GNU C library defines this for functions which it implements
17164 to always fail with ENOSYS. Some functions are actually named
17165 something starting with __ and the normal name is an alias. */
17166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17167 choke me
17168 #else
17169 $ac_func();
17170 #endif
17171
17172 ; return 0; }
17173 EOF
17174 if { (eval echo configure:17175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17175 rm -rf conftest*
17176 eval "ac_cv_func_$ac_func=yes"
17177 else
17178 echo "configure: failed program was:" >&5
17179 cat conftest.$ac_ext >&5
17180 rm -rf conftest*
17181 eval "ac_cv_func_$ac_func=no"
17182 fi
17183 rm -f conftest*
17184 fi
17185
17186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17187 echo "$ac_t""yes" 1>&6
17188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17189 cat >> confdefs.h <<EOF
17190 #define $ac_tr_func 1
17191 EOF
17192
17193 else
17194 echo "$ac_t""no" 1>&6
17195 fi
17196 done
17197
17198
17199 if test "$ac_cv_func_vsnprintf" = "yes"; then
17200 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
17201 echo "configure:17202: checking for vsnprintf declaration" >&5
17202 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17203 echo $ac_n "(cached) $ac_c" 1>&6
17204 else
17205
17206 cat > conftest.$ac_ext <<EOF
17207 #line 17208 "configure"
17208 #include "confdefs.h"
17209
17210 #include <stdio.h>
17211 #include <stdarg.h>
17212
17213 int main() {
17214
17215 char *buf;
17216 va_list ap;
17217 vsnprintf(buf, 10u, "%s", ap);
17218
17219 ; return 0; }
17220 EOF
17221 if { (eval echo configure:17222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17222 rm -rf conftest*
17223 wx_cv_func_vsnprintf_decl=yes
17224 else
17225 echo "configure: failed program was:" >&5
17226 cat conftest.$ac_ext >&5
17227 rm -rf conftest*
17228 wx_cv_func_vsnprintf_decl=no
17229
17230 fi
17231 rm -f conftest*
17232
17233
17234 fi
17235
17236 echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17237
17238 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17239 cat >> confdefs.h <<\EOF
17240 #define HAVE_VSNPRINTF_DECL 1
17241 EOF
17242
17243 fi
17244 fi
17245
17246 if test "$wxUSE_UNICODE" = yes; then
17247 for ac_func in fputwc wprintf vswprintf
17248 do
17249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17250 echo "configure:17251: checking for $ac_func" >&5
17251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17252 echo $ac_n "(cached) $ac_c" 1>&6
17253 else
17254 cat > conftest.$ac_ext <<EOF
17255 #line 17256 "configure"
17256 #include "confdefs.h"
17257 /* System header to define __stub macros and hopefully few prototypes,
17258 which can conflict with char $ac_func(); below. */
17259 #include <assert.h>
17260 /* Override any gcc2 internal prototype to avoid an error. */
17261 #ifdef __cplusplus
17262 extern "C"
17263 #endif
17264 /* We use char because int might match the return type of a gcc2
17265 builtin and then its argument prototype would still apply. */
17266 char $ac_func();
17267
17268 int main() {
17269
17270 /* The GNU C library defines this for functions which it implements
17271 to always fail with ENOSYS. Some functions are actually named
17272 something starting with __ and the normal name is an alias. */
17273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17274 choke me
17275 #else
17276 $ac_func();
17277 #endif
17278
17279 ; return 0; }
17280 EOF
17281 if { (eval echo configure:17282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17282 rm -rf conftest*
17283 eval "ac_cv_func_$ac_func=yes"
17284 else
17285 echo "configure: failed program was:" >&5
17286 cat conftest.$ac_ext >&5
17287 rm -rf conftest*
17288 eval "ac_cv_func_$ac_func=no"
17289 fi
17290 rm -f conftest*
17291 fi
17292
17293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17294 echo "$ac_t""yes" 1>&6
17295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17296 cat >> confdefs.h <<EOF
17297 #define $ac_tr_func 1
17298 EOF
17299
17300 else
17301 echo "$ac_t""no" 1>&6
17302 fi
17303 done
17304
17305
17306 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17307 echo "configure:17308: checking for _vsnwprintf" >&5
17308 cat > conftest.$ac_ext <<EOF
17309 #line 17310 "configure"
17310 #include "confdefs.h"
17311 #include <wchar.h>
17312 int main() {
17313 &_vsnwprintf;
17314 ; return 0; }
17315 EOF
17316 if { (eval echo configure:17317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17317 rm -rf conftest*
17318 echo "$ac_t""yes" 1>&6
17319 cat >> confdefs.h <<\EOF
17320 #define HAVE__VSNWPRINTF 1
17321 EOF
17322
17323 else
17324 echo "configure: failed program was:" >&5
17325 cat conftest.$ac_ext >&5
17326 rm -rf conftest*
17327 echo "$ac_t""no" 1>&6
17328 fi
17329 rm -f conftest*;
17330 fi
17331
17332 ac_ext=c
17333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17334 ac_cpp='$CPP $CPPFLAGS'
17335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17337 cross_compiling=$ac_cv_prog_cc_cross
17338
17339
17340
17341
17342 if test "$TOOLKIT" != "MSW"; then
17343
17344
17345
17346 ac_ext=C
17347 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17348 ac_cpp='$CXXCPP $CPPFLAGS'
17349 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17350 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17351 cross_compiling=$ac_cv_prog_cxx_cross
17352
17353
17354
17355 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17356 if test "${with_libiconv_prefix+set}" = set; then
17357 withval="$with_libiconv_prefix"
17358
17359 for dir in `echo "$withval" | tr : ' '`; do
17360 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17361 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17362 done
17363
17364 fi
17365
17366
17367 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17368 echo "configure:17369: checking for iconv" >&5
17369 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17370 echo $ac_n "(cached) $ac_c" 1>&6
17371 else
17372
17373 am_cv_func_iconv="no, consider installing GNU libiconv"
17374 am_cv_lib_iconv=no
17375 cat > conftest.$ac_ext <<EOF
17376 #line 17377 "configure"
17377 #include "confdefs.h"
17378 #include <stdlib.h>
17379 #include <iconv.h>
17380 int main() {
17381 iconv_t cd = iconv_open("","");
17382 iconv(cd,NULL,NULL,NULL,NULL);
17383 iconv_close(cd);
17384 ; return 0; }
17385 EOF
17386 if { (eval echo configure:17387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17387 rm -rf conftest*
17388 am_cv_func_iconv=yes
17389 else
17390 echo "configure: failed program was:" >&5
17391 cat conftest.$ac_ext >&5
17392 fi
17393 rm -f conftest*
17394 if test "$am_cv_func_iconv" != yes; then
17395 am_save_LIBS="$LIBS"
17396 LIBS="$LIBS -liconv"
17397 cat > conftest.$ac_ext <<EOF
17398 #line 17399 "configure"
17399 #include "confdefs.h"
17400 #include <stdlib.h>
17401 #include <iconv.h>
17402 int main() {
17403 iconv_t cd = iconv_open("","");
17404 iconv(cd,NULL,NULL,NULL,NULL);
17405 iconv_close(cd);
17406 ; return 0; }
17407 EOF
17408 if { (eval echo configure:17409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17409 rm -rf conftest*
17410 am_cv_lib_iconv=yes
17411 am_cv_func_iconv=yes
17412 else
17413 echo "configure: failed program was:" >&5
17414 cat conftest.$ac_ext >&5
17415 fi
17416 rm -f conftest*
17417 LIBS="$am_save_LIBS"
17418 fi
17419
17420 fi
17421
17422 echo "$ac_t""$am_cv_func_iconv" 1>&6
17423 if test "$am_cv_func_iconv" = yes; then
17424 cat >> confdefs.h <<\EOF
17425 #define HAVE_ICONV 1
17426 EOF
17427
17428 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17429 echo "configure:17430: checking if iconv needs const" >&5
17430 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17431 echo $ac_n "(cached) $ac_c" 1>&6
17432 else
17433 cat > conftest.$ac_ext <<EOF
17434 #line 17435 "configure"
17435 #include "confdefs.h"
17436
17437 #include <stdlib.h>
17438 #include <iconv.h>
17439 extern
17440 #ifdef __cplusplus
17441 "C"
17442 #endif
17443 #if defined(__STDC__) || defined(__cplusplus)
17444 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17445 #else
17446 size_t iconv();
17447 #endif
17448
17449 int main() {
17450
17451 ; return 0; }
17452 EOF
17453 if { (eval echo configure:17454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17454 rm -rf conftest*
17455 wx_cv_func_iconv_const="no"
17456 else
17457 echo "configure: failed program was:" >&5
17458 cat conftest.$ac_ext >&5
17459 rm -rf conftest*
17460 wx_cv_func_iconv_const="yes"
17461
17462 fi
17463 rm -f conftest*
17464
17465 fi
17466
17467 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17468
17469 iconv_const=
17470 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17471 iconv_const="const"
17472 fi
17473
17474 cat >> confdefs.h <<EOF
17475 #define ICONV_CONST $iconv_const
17476 EOF
17477
17478 fi
17479 LIBICONV=
17480 if test "$am_cv_lib_iconv" = yes; then
17481 LIBICONV="-liconv"
17482 fi
17483
17484
17485 LIBS="$LIBICONV $LIBS"
17486 ac_ext=c
17487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17488 ac_cpp='$CPP $CPPFLAGS'
17489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17491 cross_compiling=$ac_cv_prog_cc_cross
17492
17493
17494 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17495 for ac_func in sigaction
17496 do
17497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17498 echo "configure:17499: checking for $ac_func" >&5
17499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17500 echo $ac_n "(cached) $ac_c" 1>&6
17501 else
17502 cat > conftest.$ac_ext <<EOF
17503 #line 17504 "configure"
17504 #include "confdefs.h"
17505 /* System header to define __stub macros and hopefully few prototypes,
17506 which can conflict with char $ac_func(); below. */
17507 #include <assert.h>
17508 /* Override any gcc2 internal prototype to avoid an error. */
17509 /* We use char because int might match the return type of a gcc2
17510 builtin and then its argument prototype would still apply. */
17511 char $ac_func();
17512
17513 int main() {
17514
17515 /* The GNU C library defines this for functions which it implements
17516 to always fail with ENOSYS. Some functions are actually named
17517 something starting with __ and the normal name is an alias. */
17518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17519 choke me
17520 #else
17521 $ac_func();
17522 #endif
17523
17524 ; return 0; }
17525 EOF
17526 if { (eval echo configure:17527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17527 rm -rf conftest*
17528 eval "ac_cv_func_$ac_func=yes"
17529 else
17530 echo "configure: failed program was:" >&5
17531 cat conftest.$ac_ext >&5
17532 rm -rf conftest*
17533 eval "ac_cv_func_$ac_func=no"
17534 fi
17535 rm -f conftest*
17536 fi
17537
17538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17539 echo "$ac_t""yes" 1>&6
17540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17541 cat >> confdefs.h <<EOF
17542 #define $ac_tr_func 1
17543 EOF
17544
17545 else
17546 echo "$ac_t""no" 1>&6
17547 fi
17548 done
17549
17550
17551 if test "$ac_cv_func_sigaction" = "no"; then
17552 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17553 wxUSE_ON_FATAL_EXCEPTION=no
17554 fi
17555
17556 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17557
17558 ac_ext=C
17559 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17560 ac_cpp='$CXXCPP $CPPFLAGS'
17561 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17562 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17563 cross_compiling=$ac_cv_prog_cxx_cross
17564
17565
17566 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17567 echo "configure:17568: checking for sa_handler type" >&5
17568 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17569 echo $ac_n "(cached) $ac_c" 1>&6
17570 else
17571
17572 cat > conftest.$ac_ext <<EOF
17573 #line 17574 "configure"
17574 #include "confdefs.h"
17575 #include <signal.h>
17576 int main() {
17577
17578 extern void testSigHandler(int);
17579
17580 struct sigaction sa;
17581 sa.sa_handler = testSigHandler;
17582
17583 ; return 0; }
17584 EOF
17585 if { (eval echo configure:17586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17586 rm -rf conftest*
17587
17588 wx_cv_type_sa_handler=int
17589
17590 else
17591 echo "configure: failed program was:" >&5
17592 cat conftest.$ac_ext >&5
17593 rm -rf conftest*
17594
17595 wx_cv_type_sa_handler=void
17596
17597 fi
17598 rm -f conftest*
17599
17600 fi
17601
17602 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17603
17604 ac_ext=c
17605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17606 ac_cpp='$CPP $CPPFLAGS'
17607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17609 cross_compiling=$ac_cv_prog_cc_cross
17610
17611
17612 cat >> confdefs.h <<EOF
17613 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17614 EOF
17615
17616 fi
17617 fi
17618
17619 for ac_func in mkstemp mktemp
17620 do
17621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17622 echo "configure:17623: checking for $ac_func" >&5
17623 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17624 echo $ac_n "(cached) $ac_c" 1>&6
17625 else
17626 cat > conftest.$ac_ext <<EOF
17627 #line 17628 "configure"
17628 #include "confdefs.h"
17629 /* System header to define __stub macros and hopefully few prototypes,
17630 which can conflict with char $ac_func(); below. */
17631 #include <assert.h>
17632 /* Override any gcc2 internal prototype to avoid an error. */
17633 /* We use char because int might match the return type of a gcc2
17634 builtin and then its argument prototype would still apply. */
17635 char $ac_func();
17636
17637 int main() {
17638
17639 /* The GNU C library defines this for functions which it implements
17640 to always fail with ENOSYS. Some functions are actually named
17641 something starting with __ and the normal name is an alias. */
17642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17643 choke me
17644 #else
17645 $ac_func();
17646 #endif
17647
17648 ; return 0; }
17649 EOF
17650 if { (eval echo configure:17651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17651 rm -rf conftest*
17652 eval "ac_cv_func_$ac_func=yes"
17653 else
17654 echo "configure: failed program was:" >&5
17655 cat conftest.$ac_ext >&5
17656 rm -rf conftest*
17657 eval "ac_cv_func_$ac_func=no"
17658 fi
17659 rm -f conftest*
17660 fi
17661
17662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17663 echo "$ac_t""yes" 1>&6
17664 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17665 cat >> confdefs.h <<EOF
17666 #define $ac_tr_func 1
17667 EOF
17668 break
17669 else
17670 echo "$ac_t""no" 1>&6
17671 fi
17672 done
17673
17674
17675 echo $ac_n "checking for statfs""... $ac_c" 1>&6
17676 echo "configure:17677: checking for statfs" >&5
17677 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17678 echo $ac_n "(cached) $ac_c" 1>&6
17679 else
17680 cat > conftest.$ac_ext <<EOF
17681 #line 17682 "configure"
17682 #include "confdefs.h"
17683
17684 #if defined(__BSD__)
17685 #include <sys/param.h>
17686 #include <sys/mount.h>
17687 #else
17688 #include <sys/vfs.h>
17689 #endif
17690
17691 int main() {
17692
17693 long l;
17694 struct statfs fs;
17695 statfs("/", &fs);
17696 l = fs.f_bsize;
17697 l += fs.f_blocks;
17698 l += fs.f_bavail;
17699
17700 ; return 0; }
17701 EOF
17702 if { (eval echo configure:17703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17703 rm -rf conftest*
17704
17705 wx_cv_func_statfs=yes
17706
17707 else
17708 echo "configure: failed program was:" >&5
17709 cat conftest.$ac_ext >&5
17710 rm -rf conftest*
17711
17712 wx_cv_func_statfs=no
17713
17714
17715 fi
17716 rm -f conftest*
17717
17718 fi
17719
17720 echo "$ac_t""$wx_cv_func_statfs" 1>&6
17721
17722 if test "$wx_cv_func_statfs" = "yes"; then
17723 wx_cv_type_statvfs_t="struct statfs"
17724 cat >> confdefs.h <<\EOF
17725 #define HAVE_STATFS 1
17726 EOF
17727
17728 else
17729 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17730 echo "configure:17731: checking for statvfs" >&5
17731 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17732 echo $ac_n "(cached) $ac_c" 1>&6
17733 else
17734 cat > conftest.$ac_ext <<EOF
17735 #line 17736 "configure"
17736 #include "confdefs.h"
17737
17738 #include <stddef.h>
17739 #include <sys/statvfs.h>
17740
17741 int main() {
17742
17743 statvfs("/", NULL);
17744
17745 ; return 0; }
17746 EOF
17747 if { (eval echo configure:17748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17748 rm -rf conftest*
17749 wx_cv_func_statvfs=yes
17750 else
17751 echo "configure: failed program was:" >&5
17752 cat conftest.$ac_ext >&5
17753 rm -rf conftest*
17754 wx_cv_func_statvfs=no
17755
17756 fi
17757 rm -f conftest*
17758
17759 fi
17760
17761 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17762
17763 if test "$wx_cv_func_statvfs" = "yes"; then
17764
17765 ac_ext=C
17766 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17767 ac_cpp='$CXXCPP $CPPFLAGS'
17768 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17769 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17770 cross_compiling=$ac_cv_prog_cxx_cross
17771
17772
17773 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17774 echo "configure:17775: checking for statvfs argument type" >&5
17775 if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17776 echo $ac_n "(cached) $ac_c" 1>&6
17777 else
17778 cat > conftest.$ac_ext <<EOF
17779 #line 17780 "configure"
17780 #include "confdefs.h"
17781
17782 #include <sys/statvfs.h>
17783
17784 int main() {
17785
17786 long l;
17787 statvfs_t fs;
17788 statvfs("/", &fs);
17789 l = fs.f_bsize;
17790 l += fs.f_blocks;
17791 l += fs.f_bavail;
17792
17793 ; return 0; }
17794 EOF
17795 if { (eval echo configure:17796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17796 rm -rf conftest*
17797 wx_cv_type_statvfs_t=statvfs_t
17798 else
17799 echo "configure: failed program was:" >&5
17800 cat conftest.$ac_ext >&5
17801 rm -rf conftest*
17802
17803 cat > conftest.$ac_ext <<EOF
17804 #line 17805 "configure"
17805 #include "confdefs.h"
17806
17807 #include <sys/statvfs.h>
17808
17809 int main() {
17810
17811 long l;
17812 struct statvfs fs;
17813 statvfs("/", &fs);
17814 l = fs.f_bsize;
17815 l += fs.f_blocks;
17816 l += fs.f_bavail;
17817
17818 ; return 0; }
17819 EOF
17820 if { (eval echo configure:17821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17821 rm -rf conftest*
17822 wx_cv_type_statvfs_t="struct statvfs"
17823 else
17824 echo "configure: failed program was:" >&5
17825 cat conftest.$ac_ext >&5
17826 rm -rf conftest*
17827 wx_cv_type_statvfs_t="unknown"
17828
17829 fi
17830 rm -f conftest*
17831
17832
17833 fi
17834 rm -f conftest*
17835
17836 fi
17837
17838 echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17839
17840 ac_ext=c
17841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17842 ac_cpp='$CPP $CPPFLAGS'
17843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17845 cross_compiling=$ac_cv_prog_cc_cross
17846
17847
17848 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17849 cat >> confdefs.h <<\EOF
17850 #define HAVE_STATVFS 1
17851 EOF
17852
17853 fi
17854 else
17855 wx_cv_type_statvfs_t="unknown"
17856 fi
17857 fi
17858
17859 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17860 cat >> confdefs.h <<EOF
17861 #define WX_STATFS_T $wx_cv_type_statvfs_t
17862 EOF
17863
17864 else
17865 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17866 fi
17867
17868 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17869 for ac_func in fcntl flock
17870 do
17871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17872 echo "configure:17873: checking for $ac_func" >&5
17873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17874 echo $ac_n "(cached) $ac_c" 1>&6
17875 else
17876 cat > conftest.$ac_ext <<EOF
17877 #line 17878 "configure"
17878 #include "confdefs.h"
17879 /* System header to define __stub macros and hopefully few prototypes,
17880 which can conflict with char $ac_func(); below. */
17881 #include <assert.h>
17882 /* Override any gcc2 internal prototype to avoid an error. */
17883 /* We use char because int might match the return type of a gcc2
17884 builtin and then its argument prototype would still apply. */
17885 char $ac_func();
17886
17887 int main() {
17888
17889 /* The GNU C library defines this for functions which it implements
17890 to always fail with ENOSYS. Some functions are actually named
17891 something starting with __ and the normal name is an alias. */
17892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17893 choke me
17894 #else
17895 $ac_func();
17896 #endif
17897
17898 ; return 0; }
17899 EOF
17900 if { (eval echo configure:17901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17901 rm -rf conftest*
17902 eval "ac_cv_func_$ac_func=yes"
17903 else
17904 echo "configure: failed program was:" >&5
17905 cat conftest.$ac_ext >&5
17906 rm -rf conftest*
17907 eval "ac_cv_func_$ac_func=no"
17908 fi
17909 rm -f conftest*
17910 fi
17911
17912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17913 echo "$ac_t""yes" 1>&6
17914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17915 cat >> confdefs.h <<EOF
17916 #define $ac_tr_func 1
17917 EOF
17918 break
17919 else
17920 echo "$ac_t""no" 1>&6
17921 fi
17922 done
17923
17924
17925 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17926 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17927 wxUSE_SNGLINST_CHECKER=no
17928 fi
17929 fi
17930
17931 for ac_func in timegm
17932 do
17933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17934 echo "configure:17935: checking for $ac_func" >&5
17935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17936 echo $ac_n "(cached) $ac_c" 1>&6
17937 else
17938 cat > conftest.$ac_ext <<EOF
17939 #line 17940 "configure"
17940 #include "confdefs.h"
17941 /* System header to define __stub macros and hopefully few prototypes,
17942 which can conflict with char $ac_func(); below. */
17943 #include <assert.h>
17944 /* Override any gcc2 internal prototype to avoid an error. */
17945 /* We use char because int might match the return type of a gcc2
17946 builtin and then its argument prototype would still apply. */
17947 char $ac_func();
17948
17949 int main() {
17950
17951 /* The GNU C library defines this for functions which it implements
17952 to always fail with ENOSYS. Some functions are actually named
17953 something starting with __ and the normal name is an alias. */
17954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17955 choke me
17956 #else
17957 $ac_func();
17958 #endif
17959
17960 ; return 0; }
17961 EOF
17962 if { (eval echo configure:17963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17963 rm -rf conftest*
17964 eval "ac_cv_func_$ac_func=yes"
17965 else
17966 echo "configure: failed program was:" >&5
17967 cat conftest.$ac_ext >&5
17968 rm -rf conftest*
17969 eval "ac_cv_func_$ac_func=no"
17970 fi
17971 rm -f conftest*
17972 fi
17973
17974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17975 echo "$ac_t""yes" 1>&6
17976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17977 cat >> confdefs.h <<EOF
17978 #define $ac_tr_func 1
17979 EOF
17980
17981 else
17982 echo "$ac_t""no" 1>&6
17983 fi
17984 done
17985
17986
17987 for ac_func in putenv setenv
17988 do
17989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17990 echo "configure:17991: checking for $ac_func" >&5
17991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17992 echo $ac_n "(cached) $ac_c" 1>&6
17993 else
17994 cat > conftest.$ac_ext <<EOF
17995 #line 17996 "configure"
17996 #include "confdefs.h"
17997 /* System header to define __stub macros and hopefully few prototypes,
17998 which can conflict with char $ac_func(); below. */
17999 #include <assert.h>
18000 /* Override any gcc2 internal prototype to avoid an error. */
18001 /* We use char because int might match the return type of a gcc2
18002 builtin and then its argument prototype would still apply. */
18003 char $ac_func();
18004
18005 int main() {
18006
18007 /* The GNU C library defines this for functions which it implements
18008 to always fail with ENOSYS. Some functions are actually named
18009 something starting with __ and the normal name is an alias. */
18010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18011 choke me
18012 #else
18013 $ac_func();
18014 #endif
18015
18016 ; return 0; }
18017 EOF
18018 if { (eval echo configure:18019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18019 rm -rf conftest*
18020 eval "ac_cv_func_$ac_func=yes"
18021 else
18022 echo "configure: failed program was:" >&5
18023 cat conftest.$ac_ext >&5
18024 rm -rf conftest*
18025 eval "ac_cv_func_$ac_func=no"
18026 fi
18027 rm -f conftest*
18028 fi
18029
18030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18031 echo "$ac_t""yes" 1>&6
18032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18033 cat >> confdefs.h <<EOF
18034 #define $ac_tr_func 1
18035 EOF
18036 break
18037 else
18038 echo "$ac_t""no" 1>&6
18039 fi
18040 done
18041
18042
18043 HAVE_SOME_SLEEP_FUNC=0
18044 if test "$USE_BEOS" = 1; then
18045 cat >> confdefs.h <<\EOF
18046 #define HAVE_SLEEP 1
18047 EOF
18048
18049 HAVE_SOME_SLEEP_FUNC=1
18050 fi
18051
18052 if test "$USE_DARWIN" = 1; then
18053 cat >> confdefs.h <<\EOF
18054 #define HAVE_USLEEP 1
18055 EOF
18056
18057 HAVE_SOME_SLEEP_FUNC=1
18058 fi
18059
18060 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18061 POSIX4_LINK=
18062 for ac_func in nanosleep
18063 do
18064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18065 echo "configure:18066: checking for $ac_func" >&5
18066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18067 echo $ac_n "(cached) $ac_c" 1>&6
18068 else
18069 cat > conftest.$ac_ext <<EOF
18070 #line 18071 "configure"
18071 #include "confdefs.h"
18072 /* System header to define __stub macros and hopefully few prototypes,
18073 which can conflict with char $ac_func(); below. */
18074 #include <assert.h>
18075 /* Override any gcc2 internal prototype to avoid an error. */
18076 /* We use char because int might match the return type of a gcc2
18077 builtin and then its argument prototype would still apply. */
18078 char $ac_func();
18079
18080 int main() {
18081
18082 /* The GNU C library defines this for functions which it implements
18083 to always fail with ENOSYS. Some functions are actually named
18084 something starting with __ and the normal name is an alias. */
18085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18086 choke me
18087 #else
18088 $ac_func();
18089 #endif
18090
18091 ; return 0; }
18092 EOF
18093 if { (eval echo configure:18094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18094 rm -rf conftest*
18095 eval "ac_cv_func_$ac_func=yes"
18096 else
18097 echo "configure: failed program was:" >&5
18098 cat conftest.$ac_ext >&5
18099 rm -rf conftest*
18100 eval "ac_cv_func_$ac_func=no"
18101 fi
18102 rm -f conftest*
18103 fi
18104
18105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18106 echo "$ac_t""yes" 1>&6
18107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18108 cat >> confdefs.h <<EOF
18109 #define $ac_tr_func 1
18110 EOF
18111 cat >> confdefs.h <<\EOF
18112 #define HAVE_NANOSLEEP 1
18113 EOF
18114
18115 else
18116 echo "$ac_t""no" 1>&6
18117 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
18118 echo "configure:18119: checking for nanosleep in -lposix4" >&5
18119 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18120 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18121 echo $ac_n "(cached) $ac_c" 1>&6
18122 else
18123 ac_save_LIBS="$LIBS"
18124 LIBS="-lposix4 $LIBS"
18125 cat > conftest.$ac_ext <<EOF
18126 #line 18127 "configure"
18127 #include "confdefs.h"
18128 /* Override any gcc2 internal prototype to avoid an error. */
18129 /* We use char because int might match the return type of a gcc2
18130 builtin and then its argument prototype would still apply. */
18131 char nanosleep();
18132
18133 int main() {
18134 nanosleep()
18135 ; return 0; }
18136 EOF
18137 if { (eval echo configure:18138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18138 rm -rf conftest*
18139 eval "ac_cv_lib_$ac_lib_var=yes"
18140 else
18141 echo "configure: failed program was:" >&5
18142 cat conftest.$ac_ext >&5
18143 rm -rf conftest*
18144 eval "ac_cv_lib_$ac_lib_var=no"
18145 fi
18146 rm -f conftest*
18147 LIBS="$ac_save_LIBS"
18148
18149 fi
18150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18151 echo "$ac_t""yes" 1>&6
18152
18153 cat >> confdefs.h <<\EOF
18154 #define HAVE_NANOSLEEP 1
18155 EOF
18156
18157 POSIX4_LINK=" -lposix4"
18158
18159 else
18160 echo "$ac_t""no" 1>&6
18161
18162 for ac_func in usleep
18163 do
18164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18165 echo "configure:18166: checking for $ac_func" >&5
18166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18167 echo $ac_n "(cached) $ac_c" 1>&6
18168 else
18169 cat > conftest.$ac_ext <<EOF
18170 #line 18171 "configure"
18171 #include "confdefs.h"
18172 /* System header to define __stub macros and hopefully few prototypes,
18173 which can conflict with char $ac_func(); below. */
18174 #include <assert.h>
18175 /* Override any gcc2 internal prototype to avoid an error. */
18176 /* We use char because int might match the return type of a gcc2
18177 builtin and then its argument prototype would still apply. */
18178 char $ac_func();
18179
18180 int main() {
18181
18182 /* The GNU C library defines this for functions which it implements
18183 to always fail with ENOSYS. Some functions are actually named
18184 something starting with __ and the normal name is an alias. */
18185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18186 choke me
18187 #else
18188 $ac_func();
18189 #endif
18190
18191 ; return 0; }
18192 EOF
18193 if { (eval echo configure:18194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18194 rm -rf conftest*
18195 eval "ac_cv_func_$ac_func=yes"
18196 else
18197 echo "configure: failed program was:" >&5
18198 cat conftest.$ac_ext >&5
18199 rm -rf conftest*
18200 eval "ac_cv_func_$ac_func=no"
18201 fi
18202 rm -f conftest*
18203 fi
18204
18205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18206 echo "$ac_t""yes" 1>&6
18207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18208 cat >> confdefs.h <<EOF
18209 #define $ac_tr_func 1
18210 EOF
18211 cat >> confdefs.h <<\EOF
18212 #define HAVE_USLEEP 1
18213 EOF
18214
18215 else
18216 echo "$ac_t""no" 1>&6
18217 echo "configure: warning: wxSleep() function will not work" 1>&2
18218
18219 fi
18220 done
18221
18222
18223
18224 fi
18225
18226
18227
18228 fi
18229 done
18230
18231 fi
18232
18233 for ac_func in uname gethostname
18234 do
18235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18236 echo "configure:18237: checking for $ac_func" >&5
18237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18238 echo $ac_n "(cached) $ac_c" 1>&6
18239 else
18240 cat > conftest.$ac_ext <<EOF
18241 #line 18242 "configure"
18242 #include "confdefs.h"
18243 /* System header to define __stub macros and hopefully few prototypes,
18244 which can conflict with char $ac_func(); below. */
18245 #include <assert.h>
18246 /* Override any gcc2 internal prototype to avoid an error. */
18247 /* We use char because int might match the return type of a gcc2
18248 builtin and then its argument prototype would still apply. */
18249 char $ac_func();
18250
18251 int main() {
18252
18253 /* The GNU C library defines this for functions which it implements
18254 to always fail with ENOSYS. Some functions are actually named
18255 something starting with __ and the normal name is an alias. */
18256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18257 choke me
18258 #else
18259 $ac_func();
18260 #endif
18261
18262 ; return 0; }
18263 EOF
18264 if { (eval echo configure:18265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18265 rm -rf conftest*
18266 eval "ac_cv_func_$ac_func=yes"
18267 else
18268 echo "configure: failed program was:" >&5
18269 cat conftest.$ac_ext >&5
18270 rm -rf conftest*
18271 eval "ac_cv_func_$ac_func=no"
18272 fi
18273 rm -f conftest*
18274 fi
18275
18276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18277 echo "$ac_t""yes" 1>&6
18278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18279 cat >> confdefs.h <<EOF
18280 #define $ac_tr_func 1
18281 EOF
18282 break
18283 else
18284 echo "$ac_t""no" 1>&6
18285 fi
18286 done
18287
18288
18289
18290 ac_ext=C
18291 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18292 ac_cpp='$CXXCPP $CPPFLAGS'
18293 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18294 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18295 cross_compiling=$ac_cv_prog_cxx_cross
18296
18297
18298 for ac_func in strtok_r
18299 do
18300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18301 echo "configure:18302: checking for $ac_func" >&5
18302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18303 echo $ac_n "(cached) $ac_c" 1>&6
18304 else
18305 cat > conftest.$ac_ext <<EOF
18306 #line 18307 "configure"
18307 #include "confdefs.h"
18308 /* System header to define __stub macros and hopefully few prototypes,
18309 which can conflict with char $ac_func(); below. */
18310 #include <assert.h>
18311 /* Override any gcc2 internal prototype to avoid an error. */
18312 #ifdef __cplusplus
18313 extern "C"
18314 #endif
18315 /* We use char because int might match the return type of a gcc2
18316 builtin and then its argument prototype would still apply. */
18317 char $ac_func();
18318
18319 int main() {
18320
18321 /* The GNU C library defines this for functions which it implements
18322 to always fail with ENOSYS. Some functions are actually named
18323 something starting with __ and the normal name is an alias. */
18324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18325 choke me
18326 #else
18327 $ac_func();
18328 #endif
18329
18330 ; return 0; }
18331 EOF
18332 if { (eval echo configure:18333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18333 rm -rf conftest*
18334 eval "ac_cv_func_$ac_func=yes"
18335 else
18336 echo "configure: failed program was:" >&5
18337 cat conftest.$ac_ext >&5
18338 rm -rf conftest*
18339 eval "ac_cv_func_$ac_func=no"
18340 fi
18341 rm -f conftest*
18342 fi
18343
18344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18345 echo "$ac_t""yes" 1>&6
18346 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18347 cat >> confdefs.h <<EOF
18348 #define $ac_tr_func 1
18349 EOF
18350
18351 else
18352 echo "$ac_t""no" 1>&6
18353 fi
18354 done
18355
18356
18357 ac_ext=c
18358 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18359 ac_cpp='$CPP $CPPFLAGS'
18360 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18361 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18362 cross_compiling=$ac_cv_prog_cc_cross
18363
18364
18365 INET_LINK=
18366 for ac_func in inet_addr
18367 do
18368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18369 echo "configure:18370: checking for $ac_func" >&5
18370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18371 echo $ac_n "(cached) $ac_c" 1>&6
18372 else
18373 cat > conftest.$ac_ext <<EOF
18374 #line 18375 "configure"
18375 #include "confdefs.h"
18376 /* System header to define __stub macros and hopefully few prototypes,
18377 which can conflict with char $ac_func(); below. */
18378 #include <assert.h>
18379 /* Override any gcc2 internal prototype to avoid an error. */
18380 /* We use char because int might match the return type of a gcc2
18381 builtin and then its argument prototype would still apply. */
18382 char $ac_func();
18383
18384 int main() {
18385
18386 /* The GNU C library defines this for functions which it implements
18387 to always fail with ENOSYS. Some functions are actually named
18388 something starting with __ and the normal name is an alias. */
18389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18390 choke me
18391 #else
18392 $ac_func();
18393 #endif
18394
18395 ; return 0; }
18396 EOF
18397 if { (eval echo configure:18398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18398 rm -rf conftest*
18399 eval "ac_cv_func_$ac_func=yes"
18400 else
18401 echo "configure: failed program was:" >&5
18402 cat conftest.$ac_ext >&5
18403 rm -rf conftest*
18404 eval "ac_cv_func_$ac_func=no"
18405 fi
18406 rm -f conftest*
18407 fi
18408
18409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18410 echo "$ac_t""yes" 1>&6
18411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18412 cat >> confdefs.h <<EOF
18413 #define $ac_tr_func 1
18414 EOF
18415 cat >> confdefs.h <<\EOF
18416 #define HAVE_INET_ADDR 1
18417 EOF
18418
18419 else
18420 echo "$ac_t""no" 1>&6
18421 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18422 echo "configure:18423: checking for inet_addr in -lnsl" >&5
18423 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18425 echo $ac_n "(cached) $ac_c" 1>&6
18426 else
18427 ac_save_LIBS="$LIBS"
18428 LIBS="-lnsl $LIBS"
18429 cat > conftest.$ac_ext <<EOF
18430 #line 18431 "configure"
18431 #include "confdefs.h"
18432 /* Override any gcc2 internal prototype to avoid an error. */
18433 /* We use char because int might match the return type of a gcc2
18434 builtin and then its argument prototype would still apply. */
18435 char inet_addr();
18436
18437 int main() {
18438 inet_addr()
18439 ; return 0; }
18440 EOF
18441 if { (eval echo configure:18442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18442 rm -rf conftest*
18443 eval "ac_cv_lib_$ac_lib_var=yes"
18444 else
18445 echo "configure: failed program was:" >&5
18446 cat conftest.$ac_ext >&5
18447 rm -rf conftest*
18448 eval "ac_cv_lib_$ac_lib_var=no"
18449 fi
18450 rm -f conftest*
18451 LIBS="$ac_save_LIBS"
18452
18453 fi
18454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18455 echo "$ac_t""yes" 1>&6
18456 INET_LINK="nsl"
18457 else
18458 echo "$ac_t""no" 1>&6
18459 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18460 echo "configure:18461: checking for inet_addr in -lresolv" >&5
18461 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18463 echo $ac_n "(cached) $ac_c" 1>&6
18464 else
18465 ac_save_LIBS="$LIBS"
18466 LIBS="-lresolv $LIBS"
18467 cat > conftest.$ac_ext <<EOF
18468 #line 18469 "configure"
18469 #include "confdefs.h"
18470 /* Override any gcc2 internal prototype to avoid an error. */
18471 /* We use char because int might match the return type of a gcc2
18472 builtin and then its argument prototype would still apply. */
18473 char inet_addr();
18474
18475 int main() {
18476 inet_addr()
18477 ; return 0; }
18478 EOF
18479 if { (eval echo configure:18480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18480 rm -rf conftest*
18481 eval "ac_cv_lib_$ac_lib_var=yes"
18482 else
18483 echo "configure: failed program was:" >&5
18484 cat conftest.$ac_ext >&5
18485 rm -rf conftest*
18486 eval "ac_cv_lib_$ac_lib_var=no"
18487 fi
18488 rm -f conftest*
18489 LIBS="$ac_save_LIBS"
18490
18491 fi
18492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18493 echo "$ac_t""yes" 1>&6
18494 INET_LINK="resolv"
18495 else
18496 echo "$ac_t""no" 1>&6
18497 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18498 echo "configure:18499: checking for inet_addr in -lsocket" >&5
18499 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18500 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18501 echo $ac_n "(cached) $ac_c" 1>&6
18502 else
18503 ac_save_LIBS="$LIBS"
18504 LIBS="-lsocket $LIBS"
18505 cat > conftest.$ac_ext <<EOF
18506 #line 18507 "configure"
18507 #include "confdefs.h"
18508 /* Override any gcc2 internal prototype to avoid an error. */
18509 /* We use char because int might match the return type of a gcc2
18510 builtin and then its argument prototype would still apply. */
18511 char inet_addr();
18512
18513 int main() {
18514 inet_addr()
18515 ; return 0; }
18516 EOF
18517 if { (eval echo configure:18518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18518 rm -rf conftest*
18519 eval "ac_cv_lib_$ac_lib_var=yes"
18520 else
18521 echo "configure: failed program was:" >&5
18522 cat conftest.$ac_ext >&5
18523 rm -rf conftest*
18524 eval "ac_cv_lib_$ac_lib_var=no"
18525 fi
18526 rm -f conftest*
18527 LIBS="$ac_save_LIBS"
18528
18529 fi
18530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18531 echo "$ac_t""yes" 1>&6
18532 INET_LINK="socket"
18533
18534 else
18535 echo "$ac_t""no" 1>&6
18536 fi
18537
18538
18539 fi
18540
18541
18542 fi
18543
18544
18545
18546 fi
18547 done
18548
18549
18550 for ac_func in inet_aton
18551 do
18552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18553 echo "configure:18554: checking for $ac_func" >&5
18554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18555 echo $ac_n "(cached) $ac_c" 1>&6
18556 else
18557 cat > conftest.$ac_ext <<EOF
18558 #line 18559 "configure"
18559 #include "confdefs.h"
18560 /* System header to define __stub macros and hopefully few prototypes,
18561 which can conflict with char $ac_func(); below. */
18562 #include <assert.h>
18563 /* Override any gcc2 internal prototype to avoid an error. */
18564 /* We use char because int might match the return type of a gcc2
18565 builtin and then its argument prototype would still apply. */
18566 char $ac_func();
18567
18568 int main() {
18569
18570 /* The GNU C library defines this for functions which it implements
18571 to always fail with ENOSYS. Some functions are actually named
18572 something starting with __ and the normal name is an alias. */
18573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18574 choke me
18575 #else
18576 $ac_func();
18577 #endif
18578
18579 ; return 0; }
18580 EOF
18581 if { (eval echo configure:18582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18582 rm -rf conftest*
18583 eval "ac_cv_func_$ac_func=yes"
18584 else
18585 echo "configure: failed program was:" >&5
18586 cat conftest.$ac_ext >&5
18587 rm -rf conftest*
18588 eval "ac_cv_func_$ac_func=no"
18589 fi
18590 rm -f conftest*
18591 fi
18592
18593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18594 echo "$ac_t""yes" 1>&6
18595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18596 cat >> confdefs.h <<EOF
18597 #define $ac_tr_func 1
18598 EOF
18599 cat >> confdefs.h <<\EOF
18600 #define HAVE_INET_ATON 1
18601 EOF
18602
18603 else
18604 echo "$ac_t""no" 1>&6
18605 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18606 echo "configure:18607: checking for inet_aton in -l$INET_LINK" >&5
18607 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18609 echo $ac_n "(cached) $ac_c" 1>&6
18610 else
18611 ac_save_LIBS="$LIBS"
18612 LIBS="-l$INET_LINK $LIBS"
18613 cat > conftest.$ac_ext <<EOF
18614 #line 18615 "configure"
18615 #include "confdefs.h"
18616 /* Override any gcc2 internal prototype to avoid an error. */
18617 /* We use char because int might match the return type of a gcc2
18618 builtin and then its argument prototype would still apply. */
18619 char inet_aton();
18620
18621 int main() {
18622 inet_aton()
18623 ; return 0; }
18624 EOF
18625 if { (eval echo configure:18626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18626 rm -rf conftest*
18627 eval "ac_cv_lib_$ac_lib_var=yes"
18628 else
18629 echo "configure: failed program was:" >&5
18630 cat conftest.$ac_ext >&5
18631 rm -rf conftest*
18632 eval "ac_cv_lib_$ac_lib_var=no"
18633 fi
18634 rm -f conftest*
18635 LIBS="$ac_save_LIBS"
18636
18637 fi
18638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18639 echo "$ac_t""yes" 1>&6
18640 cat >> confdefs.h <<\EOF
18641 #define HAVE_INET_ATON 1
18642 EOF
18643
18644 else
18645 echo "$ac_t""no" 1>&6
18646 fi
18647
18648
18649 fi
18650 done
18651
18652
18653 if test "x$INET_LINK" != "x"; then
18654 cat >> confdefs.h <<\EOF
18655 #define HAVE_INET_ADDR 1
18656 EOF
18657
18658 INET_LINK=" -l$INET_LINK"
18659 fi
18660
18661 fi
18662
18663
18664 cat > confcache <<\EOF
18665 # This file is a shell script that caches the results of configure
18666 # tests run on this system so they can be shared between configure
18667 # scripts and configure runs. It is not useful on other systems.
18668 # If it contains results you don't want to keep, you may remove or edit it.
18669 #
18670 # By default, configure uses ./config.cache as the cache file,
18671 # creating it if it does not exist already. You can give configure
18672 # the --cache-file=FILE option to use a different cache file; that is
18673 # what configure does when it calls configure scripts in
18674 # subdirectories, so they share the cache.
18675 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18676 # config.status only pays attention to the cache file if you give it the
18677 # --recheck option to rerun configure.
18678 #
18679 EOF
18680 # The following way of writing the cache mishandles newlines in values,
18681 # but we know of no workaround that is simple, portable, and efficient.
18682 # So, don't put newlines in cache variables' values.
18683 # Ultrix sh set writes to stderr and can't be redirected directly,
18684 # and sets the high bit in the cache file unless we assign to the vars.
18685 (set) 2>&1 |
18686 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18687 *ac_space=\ *)
18688 # `set' does not quote correctly, so add quotes (double-quote substitution
18689 # turns \\\\ into \\, and sed turns \\ into \).
18690 sed -n \
18691 -e "s/'/'\\\\''/g" \
18692 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18693 ;;
18694 *)
18695 # `set' quotes correctly as required by POSIX, so do not add quotes.
18696 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18697 ;;
18698 esac >> confcache
18699 if cmp -s $cache_file confcache; then
18700 :
18701 else
18702 if test -w $cache_file; then
18703 echo "updating cache $cache_file"
18704 cat confcache > $cache_file
18705 else
18706 echo "not updating unwritable cache $cache_file"
18707 fi
18708 fi
18709 rm -f confcache
18710
18711
18712
18713 CPP_MT_FLAG=
18714 if test "$TOOLKIT" != "MSW"; then
18715
18716
18717 THREADS_LINK=
18718 THREADS_CFLAGS=
18719
18720 if test "$wxUSE_THREADS" = "yes" ; then
18721 if test "$USE_BEOS" = 1; then
18722 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18723 wxUSE_THREADS="no"
18724 fi
18725 fi
18726
18727 if test "$wxUSE_THREADS" = "yes" ; then
18728
18729
18730 THREAD_OPTS="-pthread"
18731 case "${host}" in
18732 *-*-solaris2* | *-*-sunos4* )
18733 if test "x$GCC" = "xyes"; then
18734 THREAD_OPTS="-pthreads $THREAD_OPTS"
18735 else
18736 THREAD_OPTS="-mt $THREAD_OPTS"
18737 fi
18738 ;;
18739 *-*-freebsd*)
18740 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18741 ;;
18742 *-*-darwin* | *-*-cygwin* )
18743 THREAD_OPTS=""
18744 ;;
18745 *-*-aix*)
18746 THREAD_OPTS="pthreads"
18747 ;;
18748 *-hp-hpux* )
18749 if test "x$GCC" != "xyes"; then
18750 THREAD_OPTS=""
18751 fi
18752 ;;
18753
18754 *-*-irix* )
18755 if test "x$GCC" = "xyes"; then
18756 THREAD_OPTS=""
18757 fi
18758 ;;
18759
18760 *-*-*UnixWare*)
18761 if test "x$GCC" != "xyes"; then
18762 THREAD_OPTS="-Ethread"
18763 fi
18764 ;;
18765 esac
18766
18767 THREAD_OPTS="$THREAD_OPTS pthread none"
18768
18769 THREADS_OK=no
18770 for flag in $THREAD_OPTS; do
18771 case $flag in
18772 none)
18773 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18774 echo "configure:18775: checking whether pthreads work without any flags" >&5
18775 ;;
18776
18777 -*)
18778 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18779 echo "configure:18780: checking whether pthreads work with $flag" >&5
18780 THREADS_CFLAGS="$flag"
18781 ;;
18782
18783 *)
18784 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18785 echo "configure:18786: checking for the pthreads library -l$flag" >&5
18786 THREADS_LINK="-l$flag"
18787 ;;
18788 esac
18789
18790 save_LIBS="$LIBS"
18791 save_CFLAGS="$CFLAGS"
18792 LIBS="$THREADS_LINK $LIBS"
18793 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18794
18795 cat > conftest.$ac_ext <<EOF
18796 #line 18797 "configure"
18797 #include "confdefs.h"
18798 #include <pthread.h>
18799 int main() {
18800 pthread_create(0,0,0,0);
18801 ; return 0; }
18802 EOF
18803 if { (eval echo configure:18804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18804 rm -rf conftest*
18805 THREADS_OK=yes
18806 else
18807 echo "configure: failed program was:" >&5
18808 cat conftest.$ac_ext >&5
18809 fi
18810 rm -f conftest*
18811
18812 LIBS="$save_LIBS"
18813 CFLAGS="$save_CFLAGS"
18814
18815 echo "$ac_t""$THREADS_OK" 1>&6
18816 if test "x$THREADS_OK" = "xyes"; then
18817 break;
18818 fi
18819
18820 THREADS_LINK=""
18821 THREADS_CFLAGS=""
18822 done
18823
18824 if test "x$THREADS_OK" != "xyes"; then
18825 wxUSE_THREADS=no
18826 echo "configure: warning: No thread support on this system... disabled" 1>&2
18827 else
18828 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18829 LIBS="$THREADS_LINK $LIBS"
18830
18831 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
18832 echo "configure:18833: checking if more special flags are required for pthreads" >&5
18833 flag=no
18834 case "${host}" in
18835 *-aix*)
18836 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18837 flag="-D_THREAD_SAFE"
18838 ;;
18839 *-freebsd*)
18840 flag="-D_THREAD_SAFE"
18841 ;;
18842 *-hp-hpux* )
18843 flag="-D_REENTRANT"
18844 if test "x$GCC" != "xyes"; then
18845 flag="$flag -D_RWSTD_MULTI_THREAD"
18846 fi
18847 ;;
18848 *solaris* | alpha*-osf*)
18849 flag="-D_REENTRANT"
18850 ;;
18851 esac
18852 echo "$ac_t""${flag}" 1>&6
18853 if test "x$flag" != xno; then
18854 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
18855 fi
18856
18857 if test "x$THREADS_CFLAGS" != "x"; then
18858 CFLAGS="$CFLAGS $THREADS_CFLAGS"
18859 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18860 fi
18861 fi
18862 fi
18863
18864 if test "$wxUSE_THREADS" = "yes" ; then
18865 for ac_func in thr_setconcurrency
18866 do
18867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18868 echo "configure:18869: checking for $ac_func" >&5
18869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18870 echo $ac_n "(cached) $ac_c" 1>&6
18871 else
18872 cat > conftest.$ac_ext <<EOF
18873 #line 18874 "configure"
18874 #include "confdefs.h"
18875 /* System header to define __stub macros and hopefully few prototypes,
18876 which can conflict with char $ac_func(); below. */
18877 #include <assert.h>
18878 /* Override any gcc2 internal prototype to avoid an error. */
18879 /* We use char because int might match the return type of a gcc2
18880 builtin and then its argument prototype would still apply. */
18881 char $ac_func();
18882
18883 int main() {
18884
18885 /* The GNU C library defines this for functions which it implements
18886 to always fail with ENOSYS. Some functions are actually named
18887 something starting with __ and the normal name is an alias. */
18888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18889 choke me
18890 #else
18891 $ac_func();
18892 #endif
18893
18894 ; return 0; }
18895 EOF
18896 if { (eval echo configure:18897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18897 rm -rf conftest*
18898 eval "ac_cv_func_$ac_func=yes"
18899 else
18900 echo "configure: failed program was:" >&5
18901 cat conftest.$ac_ext >&5
18902 rm -rf conftest*
18903 eval "ac_cv_func_$ac_func=no"
18904 fi
18905 rm -f conftest*
18906 fi
18907
18908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18909 echo "$ac_t""yes" 1>&6
18910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18911 cat >> confdefs.h <<EOF
18912 #define $ac_tr_func 1
18913 EOF
18914
18915 else
18916 echo "$ac_t""no" 1>&6
18917 fi
18918 done
18919
18920
18921 for ac_hdr in sched.h
18922 do
18923 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18924 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18925 echo "configure:18926: checking for $ac_hdr" >&5
18926 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18927 echo $ac_n "(cached) $ac_c" 1>&6
18928 else
18929 cat > conftest.$ac_ext <<EOF
18930 #line 18931 "configure"
18931 #include "confdefs.h"
18932 #include <$ac_hdr>
18933 EOF
18934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18935 { (eval echo configure:18936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18937 if test -z "$ac_err"; then
18938 rm -rf conftest*
18939 eval "ac_cv_header_$ac_safe=yes"
18940 else
18941 echo "$ac_err" >&5
18942 echo "configure: failed program was:" >&5
18943 cat conftest.$ac_ext >&5
18944 rm -rf conftest*
18945 eval "ac_cv_header_$ac_safe=no"
18946 fi
18947 rm -f conftest*
18948 fi
18949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18950 echo "$ac_t""yes" 1>&6
18951 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18952 cat >> confdefs.h <<EOF
18953 #define $ac_tr_hdr 1
18954 EOF
18955
18956 else
18957 echo "$ac_t""no" 1>&6
18958 fi
18959 done
18960
18961 if test "$ac_cv_header_sched_h" = "yes"; then
18962 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
18963 echo "configure:18964: checking for sched_yield" >&5
18964 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18965 echo $ac_n "(cached) $ac_c" 1>&6
18966 else
18967 cat > conftest.$ac_ext <<EOF
18968 #line 18969 "configure"
18969 #include "confdefs.h"
18970 /* System header to define __stub macros and hopefully few prototypes,
18971 which can conflict with char sched_yield(); below. */
18972 #include <assert.h>
18973 /* Override any gcc2 internal prototype to avoid an error. */
18974 /* We use char because int might match the return type of a gcc2
18975 builtin and then its argument prototype would still apply. */
18976 char sched_yield();
18977
18978 int main() {
18979
18980 /* The GNU C library defines this for functions which it implements
18981 to always fail with ENOSYS. Some functions are actually named
18982 something starting with __ and the normal name is an alias. */
18983 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18984 choke me
18985 #else
18986 sched_yield();
18987 #endif
18988
18989 ; return 0; }
18990 EOF
18991 if { (eval echo configure:18992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18992 rm -rf conftest*
18993 eval "ac_cv_func_sched_yield=yes"
18994 else
18995 echo "configure: failed program was:" >&5
18996 cat conftest.$ac_ext >&5
18997 rm -rf conftest*
18998 eval "ac_cv_func_sched_yield=no"
18999 fi
19000 rm -f conftest*
19001 fi
19002
19003 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
19004 echo "$ac_t""yes" 1>&6
19005 cat >> confdefs.h <<\EOF
19006 #define HAVE_SCHED_YIELD 1
19007 EOF
19008
19009 else
19010 echo "$ac_t""no" 1>&6
19011
19012 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
19013 echo "configure:19014: checking for sched_yield in -lposix4" >&5
19014 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
19015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19016 echo $ac_n "(cached) $ac_c" 1>&6
19017 else
19018 ac_save_LIBS="$LIBS"
19019 LIBS="-lposix4 $LIBS"
19020 cat > conftest.$ac_ext <<EOF
19021 #line 19022 "configure"
19022 #include "confdefs.h"
19023 /* Override any gcc2 internal prototype to avoid an error. */
19024 /* We use char because int might match the return type of a gcc2
19025 builtin and then its argument prototype would still apply. */
19026 char sched_yield();
19027
19028 int main() {
19029 sched_yield()
19030 ; return 0; }
19031 EOF
19032 if { (eval echo configure:19033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19033 rm -rf conftest*
19034 eval "ac_cv_lib_$ac_lib_var=yes"
19035 else
19036 echo "configure: failed program was:" >&5
19037 cat conftest.$ac_ext >&5
19038 rm -rf conftest*
19039 eval "ac_cv_lib_$ac_lib_var=no"
19040 fi
19041 rm -f conftest*
19042 LIBS="$ac_save_LIBS"
19043
19044 fi
19045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19046 echo "$ac_t""yes" 1>&6
19047 cat >> confdefs.h <<\EOF
19048 #define HAVE_SCHED_YIELD 1
19049 EOF
19050 POSIX4_LINK=" -lposix4"
19051 else
19052 echo "$ac_t""no" 1>&6
19053 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19054
19055 fi
19056
19057
19058
19059 fi
19060
19061 fi
19062
19063 HAVE_PRIOR_FUNCS=0
19064 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
19065 echo "configure:19066: checking for pthread_attr_getschedpolicy" >&5
19066 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19067 echo $ac_n "(cached) $ac_c" 1>&6
19068 else
19069 cat > conftest.$ac_ext <<EOF
19070 #line 19071 "configure"
19071 #include "confdefs.h"
19072 /* System header to define __stub macros and hopefully few prototypes,
19073 which can conflict with char pthread_attr_getschedpolicy(); below. */
19074 #include <assert.h>
19075 /* Override any gcc2 internal prototype to avoid an error. */
19076 /* We use char because int might match the return type of a gcc2
19077 builtin and then its argument prototype would still apply. */
19078 char pthread_attr_getschedpolicy();
19079
19080 int main() {
19081
19082 /* The GNU C library defines this for functions which it implements
19083 to always fail with ENOSYS. Some functions are actually named
19084 something starting with __ and the normal name is an alias. */
19085 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19086 choke me
19087 #else
19088 pthread_attr_getschedpolicy();
19089 #endif
19090
19091 ; return 0; }
19092 EOF
19093 if { (eval echo configure:19094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19094 rm -rf conftest*
19095 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19096 else
19097 echo "configure: failed program was:" >&5
19098 cat conftest.$ac_ext >&5
19099 rm -rf conftest*
19100 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19101 fi
19102 rm -f conftest*
19103 fi
19104
19105 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19106 echo "$ac_t""yes" 1>&6
19107 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
19108 echo "configure:19109: checking for pthread_attr_setschedparam" >&5
19109 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+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 /* System header to define __stub macros and hopefully few prototypes,
19116 which can conflict with char pthread_attr_setschedparam(); below. */
19117 #include <assert.h>
19118 /* Override any gcc2 internal prototype to avoid an error. */
19119 /* We use char because int might match the return type of a gcc2
19120 builtin and then its argument prototype would still apply. */
19121 char pthread_attr_setschedparam();
19122
19123 int main() {
19124
19125 /* The GNU C library defines this for functions which it implements
19126 to always fail with ENOSYS. Some functions are actually named
19127 something starting with __ and the normal name is an alias. */
19128 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19129 choke me
19130 #else
19131 pthread_attr_setschedparam();
19132 #endif
19133
19134 ; return 0; }
19135 EOF
19136 if { (eval echo configure:19137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19137 rm -rf conftest*
19138 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19139 else
19140 echo "configure: failed program was:" >&5
19141 cat conftest.$ac_ext >&5
19142 rm -rf conftest*
19143 eval "ac_cv_func_pthread_attr_setschedparam=no"
19144 fi
19145 rm -f conftest*
19146 fi
19147
19148 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19149 echo "$ac_t""yes" 1>&6
19150 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
19151 echo "configure:19152: checking for sched_get_priority_max" >&5
19152 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19153 echo $ac_n "(cached) $ac_c" 1>&6
19154 else
19155 cat > conftest.$ac_ext <<EOF
19156 #line 19157 "configure"
19157 #include "confdefs.h"
19158 /* System header to define __stub macros and hopefully few prototypes
19159 else
19160 echo "$ac_t""no" 1>&6
19161 which can conflict with char sched_get_priority_max(); below. */
19162 #include <assert.h>
19163 /* Override any gcc2 internal prototype to avoid an error. */
19164 /* We use char because int might match the return type of a gcc2
19165 builtin and then its argument prototype would still apply. */
19166 char sched_get_priority_max();
19167
19168 int main() {
19169
19170 /* The GNU C library defines this for functions which it implements
19171 to always fail with ENOSYS. Some functions are actually named
19172 something starting with __ and the normal name is an alias. */
19173 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19174 choke me
19175 #else
19176 sched_get_priority_max();
19177 #endif
19178
19179 ; return 0; }
19180 EOF
19181 if { (eval echo configure:19182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19182 rm -rf conftest*
19183 eval "ac_cv_func_sched_get_priority_max=yes"
19184 else
19185 echo "configure: failed program was:" >&5
19186 cat conftest.$ac_ext >&5
19187 rm -rf conftest*
19188 eval "ac_cv_func_sched_get_priority_max=no"
19189 fi
19190 rm -f conftest*
19191 fi
19192
19193 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19194 echo "$ac_t""yes" 1>&6
19195 HAVE_PRIOR_FUNCS=1
19196 else
19197 echo "$ac_t""no" 1>&6
19198 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
19199 echo "configure:19200: checking for sched_get_priority_max in -lposix4" >&5
19200 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19202 echo $ac_n "(cached) $ac_c" 1>&6
19203 else
19204 ac_save_LIBS="$LIBS"
19205 LIBS="-lposix4 $LIBS"
19206 cat > conftest.$ac_ext <<EOF
19207 #line 19208 "configure"
19208 #include "confdefs.h"
19209 /* Override any gcc2 internal prototype to avoid an error. */
19210 /* We use char because int might match the return type of a gcc2
19211 builtin and then its argument prototype would still apply. */
19212 char sched_get_priority_max();
19213
19214 int main() {
19215 sched_get_priority_max()
19216 ; return 0; }
19217 EOF
19218 if { (eval echo configure:19219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19219 rm -rf conftest*
19220 eval "ac_cv_lib_$ac_lib_var=yes"
19221 else
19222 echo "configure: failed program was:" >&5
19223 cat conftest.$ac_ext >&5
19224 rm -rf conftest*
19225 eval "ac_cv_lib_$ac_lib_var=no"
19226 fi
19227 rm -f conftest*
19228 LIBS="$ac_save_LIBS"
19229
19230 fi
19231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19232 echo "$ac_t""yes" 1>&6
19233
19234 HAVE_PRIOR_FUNCS=1
19235 POSIX4_LINK=" -lposix4"
19236
19237 else
19238 echo "$ac_t""no" 1>&6
19239 fi
19240
19241
19242 fi
19243
19244
19245 else
19246 echo "$ac_t""no" 1>&6
19247 fi
19248
19249
19250 fi
19251
19252
19253 if test "$HAVE_PRIOR_FUNCS" = 1; then
19254 cat >> confdefs.h <<\EOF
19255 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19256 EOF
19257
19258 else
19259 echo "configure: warning: Setting thread priority will not work" 1>&2
19260 fi
19261
19262 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19263 echo "configure:19264: checking for pthread_cancel" >&5
19264 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19265 echo $ac_n "(cached) $ac_c" 1>&6
19266 else
19267 cat > conftest.$ac_ext <<EOF
19268 #line 19269 "configure"
19269 #include "confdefs.h"
19270 /* System header to define __stub macros and hopefully few prototypes,
19271 which can conflict with char pthread_cancel(); below. */
19272 #include <assert.h>
19273 /* Override any gcc2 internal prototype to avoid an error. */
19274 /* We use char because int might match the return type of a gcc2
19275 builtin and then its argument prototype would still apply. */
19276 char pthread_cancel();
19277
19278 int main() {
19279
19280 /* The GNU C library defines this for functions which it implements
19281 to always fail with ENOSYS. Some functions are actually named
19282 something starting with __ and the normal name is an alias. */
19283 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19284 choke me
19285 #else
19286 pthread_cancel();
19287 #endif
19288
19289 ; return 0; }
19290 EOF
19291 if { (eval echo configure:19292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19292 rm -rf conftest*
19293 eval "ac_cv_func_pthread_cancel=yes"
19294 else
19295 echo "configure: failed program was:" >&5
19296 cat conftest.$ac_ext >&5
19297 rm -rf conftest*
19298 eval "ac_cv_func_pthread_cancel=no"
19299 fi
19300 rm -f conftest*
19301 fi
19302
19303 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19304 echo "$ac_t""yes" 1>&6
19305 cat >> confdefs.h <<\EOF
19306 #define HAVE_PTHREAD_CANCEL 1
19307 EOF
19308
19309 else
19310 echo "$ac_t""no" 1>&6
19311 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19312 fi
19313
19314
19315 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19316 echo "configure:19317: checking for pthread_cleanup_push/pop" >&5
19317 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19318 echo $ac_n "(cached) $ac_c" 1>&6
19319 else
19320
19321 cat > conftest.$ac_ext <<EOF
19322 #line 19323 "configure"
19323 #include "confdefs.h"
19324 #include <pthread.h>
19325 int main() {
19326
19327 pthread_cleanup_push(NULL, NULL);
19328 pthread_cleanup_pop(0);
19329
19330 ; return 0; }
19331 EOF
19332 if { (eval echo configure:19333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19333 rm -rf conftest*
19334
19335 wx_cv_func_pthread_cleanup_push=yes
19336
19337 else
19338 echo "configure: failed program was:" >&5
19339 cat conftest.$ac_ext >&5
19340 rm -rf conftest*
19341
19342 wx_cv_func_pthread_cleanup_push=no
19343
19344 fi
19345 rm -f conftest*
19346
19347 fi
19348
19349 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19350
19351 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19352 cat >> confdefs.h <<\EOF
19353 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19354 EOF
19355
19356 fi
19357
19358
19359 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19360 echo "configure:19361: checking for pthread_mutexattr_t" >&5
19361 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19362 echo $ac_n "(cached) $ac_c" 1>&6
19363 else
19364
19365 cat > conftest.$ac_ext <<EOF
19366 #line 19367 "configure"
19367 #include "confdefs.h"
19368 #include <pthread.h>
19369 int main() {
19370
19371 pthread_mutexattr_t attr;
19372 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19373
19374 ; return 0; }
19375 EOF
19376 if { (eval echo configure:19377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19377 rm -rf conftest*
19378
19379 wx_cv_type_pthread_mutexattr_t=yes
19380
19381 else
19382 echo "configure: failed program was:" >&5
19383 cat conftest.$ac_ext >&5
19384 rm -rf conftest*
19385
19386 wx_cv_type_pthread_mutexattr_t=no
19387
19388
19389 fi
19390 rm -f conftest*
19391
19392 fi
19393
19394 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19395
19396 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19397 cat >> confdefs.h <<\EOF
19398 #define HAVE_PTHREAD_MUTEXATTR_T 1
19399 EOF
19400
19401 else
19402 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19403 echo "configure:19404: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19404 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19405 echo $ac_n "(cached) $ac_c" 1>&6
19406 else
19407
19408 cat > conftest.$ac_ext <<EOF
19409 #line 19410 "configure"
19410 #include "confdefs.h"
19411 #include <pthread.h>
19412 int main() {
19413
19414 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19415
19416 ; return 0; }
19417 EOF
19418 if { (eval echo configure:19419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19419 rm -rf conftest*
19420
19421 wx_cv_type_pthread_rec_mutex_init=yes
19422
19423 else
19424 echo "configure: failed program was:" >&5
19425 cat conftest.$ac_ext >&5
19426 rm -rf conftest*
19427
19428 wx_cv_type_pthread_rec_mutex_init=no
19429
19430
19431 fi
19432 rm -f conftest*
19433
19434 fi
19435
19436 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19437 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19438 cat >> confdefs.h <<\EOF
19439 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19440 EOF
19441
19442 else
19443 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19444 fi
19445 fi
19446 fi
19447
19448 else
19449 if test "$wxUSE_THREADS" = "yes" ; then
19450 case "${host}" in
19451 *-*-mingw32* )
19452 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19453 echo "configure:19454: checking if compiler supports -mthreads" >&5
19454 if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19455 echo $ac_n "(cached) $ac_c" 1>&6
19456 else
19457
19458 CFLAGS_OLD="$CFLAGS"
19459 CFLAGS="$CFLAGS -mthreads"
19460 cat > conftest.$ac_ext <<EOF
19461 #line 19462 "configure"
19462 #include "confdefs.h"
19463
19464 int main() {
19465
19466 ; return 0; }
19467 EOF
19468 if { (eval echo configure:19469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19469 rm -rf conftest*
19470 wx_cv_cflags_mthread=yes
19471 else
19472 echo "configure: failed program was:" >&5
19473 cat conftest.$ac_ext >&5
19474 rm -rf conftest*
19475 wx_cv_cflags_mthread=no
19476
19477 fi
19478 rm -f conftest*
19479
19480
19481 fi
19482
19483 echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19484
19485 if test "$wx_cv_cflags_mthread" = "yes"; then
19486 CXXFLAGS="$CXXFLAGS -mthreads"
19487 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19488 LDFLAGS="$LDFLAGS -mthreads"
19489 else
19490 CFLAGS="$CFLAGS_OLD"
19491 fi
19492 ;;
19493 esac
19494 fi
19495 fi
19496
19497 if test "$wxUSE_THREADS" = "yes"; then
19498 cat >> confdefs.h <<\EOF
19499 #define wxUSE_THREADS 1
19500 EOF
19501
19502
19503 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19504 else
19505 if test "$ac_cv_func_strtok_r" = "yes"; then
19506 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19507 echo "configure:19508: checking if -D_REENTRANT is needed" >&5
19508 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19509 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19510 echo "$ac_t""yes" 1>&6
19511 else
19512 echo "$ac_t""no" 1>&6
19513 fi
19514 fi
19515 fi
19516
19517 if test "$WXGTK20" = 1 ; then
19518 cat >> confdefs.h <<EOF
19519 #define __WXGTK20__ $WXGTK20
19520 EOF
19521
19522 WXGTK12=1
19523 fi
19524
19525 if test "$WXGTK12" = 1 ; then
19526 cat >> confdefs.h <<EOF
19527 #define __WXGTK12__ $WXGTK12
19528 EOF
19529
19530 fi
19531
19532 if test "$WXGTK127" = 1 ; then
19533 cat >> confdefs.h <<EOF
19534 #define __WXGTK127__ $WXGTK127
19535 EOF
19536
19537 fi
19538
19539 WXDEBUG=
19540
19541 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19542 WXDEBUG="-g"
19543 wxUSE_OPTIMISE=no
19544 fi
19545
19546 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19547 wxUSE_DEBUG_INFO=yes
19548 WXDEBUG="-ggdb"
19549 fi
19550
19551 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19552 cat >> confdefs.h <<\EOF
19553 #define WXDEBUG 1
19554 EOF
19555
19556 WXDEBUG_DEFINE="-D__WXDEBUG__"
19557 else
19558 if test "$wxUSE_GTK" = 1 ; then
19559 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19560 fi
19561 fi
19562
19563 if test "$wxUSE_MEM_TRACING" = "yes" ; then
19564 cat >> confdefs.h <<\EOF
19565 #define wxUSE_MEMORY_TRACING 1
19566 EOF
19567
19568 cat >> confdefs.h <<\EOF
19569 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19570 EOF
19571
19572 cat >> confdefs.h <<\EOF
19573 #define wxUSE_DEBUG_NEW_ALWAYS 1
19574 EOF
19575
19576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19577 fi
19578
19579 if test "$wxUSE_DMALLOC" = "yes" ; then
19580 DMALLOC_LIBS="-ldmalloc"
19581 fi
19582
19583 PROFILE=
19584 if test "$wxUSE_PROFILE" = "yes" ; then
19585 PROFILE=" -pg"
19586 fi
19587
19588 CODE_GEN_FLAGS=
19589 CODE_GEN_FLAGS_CXX=
19590 if test "$GCC" = "yes" ; then
19591 if test "$wxUSE_NO_RTTI" = "yes" ; then
19592 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19593 fi
19594 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19595 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19596 fi
19597 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19598 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19599 fi
19600 if test "$USE_WIN32" = 1 ; then
19601 # I'm not even really sure what this was ever added to solve,
19602 # but someone added it for mingw native builds, so I guess
19603 # they had a reason, right??
19604 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19605 fi
19606
19607 case "${host}" in
19608 powerpc*-*-aix* )
19609 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19610 ;;
19611 *-hppa* )
19612 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19613 ;;
19614 esac
19615 fi
19616
19617 OPTIMISE=
19618 if test "$wxUSE_OPTIMISE" = "no" ; then
19619 if test "$GCC" = yes ; then
19620 OPTIMISE="-O0"
19621 fi
19622 else
19623 if test "$GCC" = yes ; then
19624 OPTIMISE="-O2"
19625
19626 case "${host}" in
19627 i586-*-*|i686-*-* )
19628 OPTIMISE="${OPTIMISE} "
19629 ;;
19630 esac
19631 else
19632 OPTIMISE="-O"
19633 fi
19634 fi
19635
19636
19637 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19638 cat >> confdefs.h <<\EOF
19639 #define WXWIN_COMPATIBILITY_2 1
19640 EOF
19641
19642
19643 WXWIN_COMPATIBILITY_2_2="yes"
19644 fi
19645
19646 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19647 cat >> confdefs.h <<\EOF
19648 #define WXWIN_COMPATIBILITY_2_2 1
19649 EOF
19650
19651
19652 WXWIN_COMPATIBILITY_2_4="yes"
19653 fi
19654
19655 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19656 cat >> confdefs.h <<\EOF
19657 #define WXWIN_COMPATIBILITY_2_4 1
19658 EOF
19659
19660 fi
19661
19662
19663 if test "$wxUSE_GUI" = "yes"; then
19664 cat >> confdefs.h <<\EOF
19665 #define wxUSE_GUI 1
19666 EOF
19667
19668
19669 else
19670 cat >> confdefs.h <<\EOF
19671 #define wxUSE_NOGUI 1
19672 EOF
19673
19674 fi
19675
19676
19677 if test "$wxUSE_UNIX" = "yes"; then
19678 cat >> confdefs.h <<\EOF
19679 #define wxUSE_UNIX 1
19680 EOF
19681
19682 fi
19683
19684
19685 if test "$wxUSE_APPLE_IEEE" = "yes"; then
19686 cat >> confdefs.h <<\EOF
19687 #define wxUSE_APPLE_IEEE 1
19688 EOF
19689
19690 fi
19691
19692 if test "$wxUSE_TIMER" = "yes"; then
19693 cat >> confdefs.h <<\EOF
19694 #define wxUSE_TIMER 1
19695 EOF
19696
19697 fi
19698
19699 if test "$wxUSE_WAVE" = "yes"; then
19700 cat >> confdefs.h <<\EOF
19701 #define wxUSE_WAVE 1
19702 EOF
19703
19704 fi
19705
19706 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19707 cat >> confdefs.h <<\EOF
19708 #define wxUSE_CMDLINE_PARSER 1
19709 EOF
19710
19711 fi
19712
19713 if test "$wxUSE_STOPWATCH" = "yes"; then
19714 cat >> confdefs.h <<\EOF
19715 #define wxUSE_STOPWATCH 1
19716 EOF
19717
19718 fi
19719
19720 if test "$wxUSE_DATETIME" = "yes"; then
19721 cat >> confdefs.h <<\EOF
19722 #define wxUSE_DATETIME 1
19723 EOF
19724
19725 fi
19726
19727 if test "$wxUSE_FILE" = "yes"; then
19728 cat >> confdefs.h <<\EOF
19729 #define wxUSE_FILE 1
19730 EOF
19731
19732 fi
19733
19734 if test "$wxUSE_FFILE" = "yes"; then
19735 cat >> confdefs.h <<\EOF
19736 #define wxUSE_FFILE 1
19737 EOF
19738
19739 fi
19740
19741 if test "$wxUSE_FILESYSTEM" = "yes"; then
19742 cat >> confdefs.h <<\EOF
19743 #define wxUSE_FILESYSTEM 1
19744 EOF
19745
19746 fi
19747
19748 if test "$wxUSE_FS_INET" = "yes"; then
19749 cat >> confdefs.h <<\EOF
19750 #define wxUSE_FS_INET 1
19751 EOF
19752
19753 fi
19754
19755 if test "$wxUSE_FS_ZIP" = "yes"; then
19756 cat >> confdefs.h <<\EOF
19757 #define wxUSE_FS_ZIP 1
19758 EOF
19759
19760 fi
19761
19762 if test "$wxUSE_ZIPSTREAM" = "yes"; then
19763 cat >> confdefs.h <<\EOF
19764 #define wxUSE_ZIPSTREAM 1
19765 EOF
19766
19767 fi
19768
19769 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19770 cat >> confdefs.h <<\EOF
19771 #define wxUSE_ON_FATAL_EXCEPTION 1
19772 EOF
19773
19774 fi
19775
19776 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19777 cat >> confdefs.h <<\EOF
19778 #define wxUSE_SNGLINST_CHECKER 1
19779 EOF
19780
19781 fi
19782
19783 if test "$wxUSE_BUSYINFO" = "yes"; then
19784 cat >> confdefs.h <<\EOF
19785 #define wxUSE_BUSYINFO 1
19786 EOF
19787
19788 fi
19789
19790 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19791 cat >> confdefs.h <<\EOF
19792 #define wxUSE_STD_IOSTREAM 1
19793 EOF
19794
19795 fi
19796
19797 if test "$wxUSE_TEXTBUFFER" = "yes"; then
19798 cat >> confdefs.h <<\EOF
19799 #define wxUSE_TEXTBUFFER 1
19800 EOF
19801
19802 fi
19803
19804 if test "$wxUSE_TEXTFILE" = "yes"; then
19805 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19806 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19807 else
19808 cat >> confdefs.h <<\EOF
19809 #define wxUSE_TEXTFILE 1
19810 EOF
19811
19812 fi
19813 fi
19814
19815 if test "$wxUSE_CONFIG" = "yes" ; then
19816 if test "$wxUSE_TEXTFILE" != "yes"; then
19817 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19818 else
19819 cat >> confdefs.h <<\EOF
19820 #define wxUSE_CONFIG 1
19821 EOF
19822
19823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19824 fi
19825 fi
19826
19827 if test "$wxUSE_INTL" = "yes" ; then
19828 if test "$wxUSE_FILE" != "yes"; then
19829 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
19830 else
19831 cat >> confdefs.h <<\EOF
19832 #define wxUSE_INTL 1
19833 EOF
19834
19835 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
19836 GUIDIST="$GUIDIST INTL_DIST"
19837 fi
19838 fi
19839
19840 if test "$wxUSE_LOG" = "yes"; then
19841 cat >> confdefs.h <<\EOF
19842 #define wxUSE_LOG 1
19843 EOF
19844
19845
19846 if test "$wxUSE_LOGGUI" = "yes"; then
19847 cat >> confdefs.h <<\EOF
19848 #define wxUSE_LOGGUI 1
19849 EOF
19850
19851 fi
19852
19853 if test "$wxUSE_LOGWINDOW" = "yes"; then
19854 cat >> confdefs.h <<\EOF
19855 #define wxUSE_LOGWINDOW 1
19856 EOF
19857
19858 fi
19859
19860 if test "$wxUSE_LOGDIALOG" = "yes"; then
19861 cat >> confdefs.h <<\EOF
19862 #define wxUSE_LOG_DIALOG 1
19863 EOF
19864
19865 fi
19866 fi
19867
19868 if test "$wxUSE_LONGLONG" = "yes"; then
19869 cat >> confdefs.h <<\EOF
19870 #define wxUSE_LONGLONG 1
19871 EOF
19872
19873 fi
19874
19875 if test "$wxUSE_GEOMETRY" = "yes"; then
19876 cat >> confdefs.h <<\EOF
19877 #define wxUSE_GEOMETRY 1
19878 EOF
19879
19880 fi
19881
19882 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
19883 cat >> confdefs.h <<\EOF
19884 #define wxUSE_DIALUP_MANAGER 1
19885 EOF
19886
19887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
19888 fi
19889
19890 if test "$wxUSE_STREAMS" = "yes" ; then
19891 cat >> confdefs.h <<\EOF
19892 #define wxUSE_STREAMS 1
19893 EOF
19894
19895 fi
19896
19897
19898 if test "$wxUSE_DATETIME" = "yes"; then
19899 for ac_func in strptime
19900 do
19901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19902 echo "configure:19903: checking for $ac_func" >&5
19903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19904 echo $ac_n "(cached) $ac_c" 1>&6
19905 else
19906 cat > conftest.$ac_ext <<EOF
19907 #line 19908 "configure"
19908 #include "confdefs.h"
19909 /* System header to define __stub macros and hopefully few prototypes,
19910 which can conflict with char $ac_func(); below. */
19911 #include <assert.h>
19912 /* Override any gcc2 internal prototype to avoid an error. */
19913 /* We use char because int might match the return type of a gcc2
19914 builtin and then its argument prototype would still apply. */
19915 char $ac_func();
19916
19917 int main() {
19918
19919 /* The GNU C library defines this for functions which it implements
19920 to always fail with ENOSYS. Some functions are actually named
19921 something starting with __ and the normal name is an alias. */
19922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19923 choke me
19924 #else
19925 $ac_func();
19926 #endif
19927
19928 ; return 0; }
19929 EOF
19930 if { (eval echo configure:19931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19931 rm -rf conftest*
19932 eval "ac_cv_func_$ac_func=yes"
19933 else
19934 echo "configure: failed program was:" >&5
19935 cat conftest.$ac_ext >&5
19936 rm -rf conftest*
19937 eval "ac_cv_func_$ac_func=no"
19938 fi
19939 rm -f conftest*
19940 fi
19941
19942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19943 echo "$ac_t""yes" 1>&6
19944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19945 cat >> confdefs.h <<EOF
19946 #define $ac_tr_func 1
19947 EOF
19948
19949 else
19950 echo "$ac_t""no" 1>&6
19951 fi
19952 done
19953
19954
19955 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
19956 echo "configure:19957: checking for timezone variable in <time.h>" >&5
19957 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19958 echo $ac_n "(cached) $ac_c" 1>&6
19959 else
19960
19961 cat > conftest.$ac_ext <<EOF
19962 #line 19963 "configure"
19963 #include "confdefs.h"
19964
19965 #include <time.h>
19966
19967 int main() {
19968
19969 int tz;
19970 tz = timezone;
19971
19972 ; return 0; }
19973 EOF
19974 if { (eval echo configure:19975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19975 rm -rf conftest*
19976
19977 wx_cv_var_timezone=timezone
19978
19979 else
19980 echo "configure: failed program was:" >&5
19981 cat conftest.$ac_ext >&5
19982 rm -rf conftest*
19983
19984 cat > conftest.$ac_ext <<EOF
19985 #line 19986 "configure"
19986 #include "confdefs.h"
19987
19988 #include <time.h>
19989
19990 int main() {
19991
19992 int tz;
19993 tz = _timezone;
19994
19995 ; return 0; }
19996 EOF
19997 if { (eval echo configure:19998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19998 rm -rf conftest*
19999
20000 wx_cv_var_timezone=_timezone
20001
20002 else
20003 echo "configure: failed program was:" >&5
20004 cat conftest.$ac_ext >&5
20005 rm -rf conftest*
20006
20007 cat > conftest.$ac_ext <<EOF
20008 #line 20009 "configure"
20009 #include "confdefs.h"
20010
20011 #include <time.h>
20012
20013 int main() {
20014
20015 int tz;
20016 tz = __timezone;
20017
20018 ; return 0; }
20019 EOF
20020 if { (eval echo configure:20021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20021 rm -rf conftest*
20022
20023 wx_cv_var_timezone=__timezone
20024
20025 else
20026 echo "configure: failed program was:" >&5
20027 cat conftest.$ac_ext >&5
20028 rm -rf conftest*
20029
20030 if test "$USE_DOS" = 0 ; then
20031 echo "configure: warning: no timezone variable" 1>&2
20032 fi
20033
20034
20035 fi
20036 rm -f conftest*
20037
20038
20039 fi
20040 rm -f conftest*
20041
20042
20043 fi
20044 rm -f conftest*
20045
20046
20047 fi
20048
20049 echo "$ac_t""$wx_cv_var_timezone" 1>&6
20050
20051 if test "x$wx_cv_var_timezone" != x ; then
20052 cat >> confdefs.h <<EOF
20053 #define WX_TIMEZONE $wx_cv_var_timezone
20054 EOF
20055
20056 fi
20057
20058 for ac_func in localtime
20059 do
20060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20061 echo "configure:20062: checking for $ac_func" >&5
20062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20063 echo $ac_n "(cached) $ac_c" 1>&6
20064 else
20065 cat > conftest.$ac_ext <<EOF
20066 #line 20067 "configure"
20067 #include "confdefs.h"
20068 /* System header to define __stub macros and hopefully few prototypes,
20069 which can conflict with char $ac_func(); below. */
20070 #include <assert.h>
20071 /* Override any gcc2 internal prototype to avoid an error. */
20072 /* We use char because int might match the return type of a gcc2
20073 builtin and then its argument prototype would still apply. */
20074 char $ac_func();
20075
20076 int main() {
20077
20078 /* The GNU C library defines this for functions which it implements
20079 to always fail with ENOSYS. Some functions are actually named
20080 something starting with __ and the normal name is an alias. */
20081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20082 choke me
20083 #else
20084 $ac_func();
20085 #endif
20086
20087 ; return 0; }
20088 EOF
20089 if { (eval echo configure:20090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20090 rm -rf conftest*
20091 eval "ac_cv_func_$ac_func=yes"
20092 else
20093 echo "configure: failed program was:" >&5
20094 cat conftest.$ac_ext >&5
20095 rm -rf conftest*
20096 eval "ac_cv_func_$ac_func=no"
20097 fi
20098 rm -f conftest*
20099 fi
20100
20101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20102 echo "$ac_t""yes" 1>&6
20103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20104 cat >> confdefs.h <<EOF
20105 #define $ac_tr_func 1
20106 EOF
20107
20108 else
20109 echo "$ac_t""no" 1>&6
20110 fi
20111 done
20112
20113
20114 if test "$ac_cv_func_localtime" = "yes"; then
20115 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
20116 echo "configure:20117: checking for tm_gmtoff in struct tm" >&5
20117 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20118 echo $ac_n "(cached) $ac_c" 1>&6
20119 else
20120
20121 cat > conftest.$ac_ext <<EOF
20122 #line 20123 "configure"
20123 #include "confdefs.h"
20124
20125 #include <time.h>
20126
20127 int main() {
20128
20129 struct tm tm;
20130 tm.tm_gmtoff++;
20131
20132 ; return 0; }
20133 EOF
20134 if { (eval echo configure:20135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20135 rm -rf conftest*
20136
20137 wx_cv_struct_tm_has_gmtoff=yes
20138
20139 else
20140 echo "configure: failed program was:" >&5
20141 cat conftest.$ac_ext >&5
20142 rm -rf conftest*
20143 wx_cv_struct_tm_has_gmtoff=no
20144
20145 fi
20146 rm -f conftest*
20147
20148 fi
20149
20150 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
20151 fi
20152
20153 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
20154 cat >> confdefs.h <<\EOF
20155 #define WX_GMTOFF_IN_TM 1
20156 EOF
20157
20158 fi
20159
20160 for ac_func in gettimeofday ftime
20161 do
20162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20163 echo "configure:20164: checking for $ac_func" >&5
20164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20165 echo $ac_n "(cached) $ac_c" 1>&6
20166 else
20167 cat > conftest.$ac_ext <<EOF
20168 #line 20169 "configure"
20169 #include "confdefs.h"
20170 /* System header to define __stub macros and hopefully few prototypes,
20171 which can conflict with char $ac_func(); below. */
20172 #include <assert.h>
20173 /* Override any gcc2 internal prototype to avoid an error. */
20174 /* We use char because int might match the return type of a gcc2
20175 builtin and then its argument prototype would still apply. */
20176 char $ac_func();
20177
20178 int main() {
20179
20180 /* The GNU C library defines this for functions which it implements
20181 to always fail with ENOSYS. Some functions are actually named
20182 something starting with __ and the normal name is an alias. */
20183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20184 choke me
20185 #else
20186 $ac_func();
20187 #endif
20188
20189 ; return 0; }
20190 EOF
20191 if { (eval echo configure:20192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20192 rm -rf conftest*
20193 eval "ac_cv_func_$ac_func=yes"
20194 else
20195 echo "configure: failed program was:" >&5
20196 cat conftest.$ac_ext >&5
20197 rm -rf conftest*
20198 eval "ac_cv_func_$ac_func=no"
20199 fi
20200 rm -f conftest*
20201 fi
20202
20203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20204 echo "$ac_t""yes" 1>&6
20205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20206 cat >> confdefs.h <<EOF
20207 #define $ac_tr_func 1
20208 EOF
20209 break
20210 else
20211 echo "$ac_t""no" 1>&6
20212 fi
20213 done
20214
20215
20216 if test "$ac_cv_func_gettimeofday" = "yes"; then
20217 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
20218 echo "configure:20219: checking whether gettimeofday takes two arguments" >&5
20219 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20220 echo $ac_n "(cached) $ac_c" 1>&6
20221 else
20222
20223
20224 ac_ext=C
20225 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20226 ac_cpp='$CXXCPP $CPPFLAGS'
20227 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20228 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20229 cross_compiling=$ac_cv_prog_cxx_cross
20230
20231
20232 cat > conftest.$ac_ext <<EOF
20233 #line 20234 "configure"
20234 #include "confdefs.h"
20235
20236 #include <sys/time.h>
20237 #include <unistd.h>
20238
20239 int main() {
20240
20241 struct timeval tv;
20242 gettimeofday(&tv, NULL);
20243
20244 ; return 0; }
20245 EOF
20246 if { (eval echo configure:20247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20247 rm -rf conftest*
20248 wx_cv_func_gettimeofday_has_2_args=yes
20249 else
20250 echo "configure: failed program was:" >&5
20251 cat conftest.$ac_ext >&5
20252 rm -rf conftest*
20253 cat > conftest.$ac_ext <<EOF
20254 #line 20255 "configure"
20255 #include "confdefs.h"
20256
20257 #include <sys/time.h>
20258 #include <unistd.h>
20259
20260 int main() {
20261
20262 struct timeval tv;
20263 gettimeofday(&tv);
20264
20265 ; return 0; }
20266 EOF
20267 if { (eval echo configure:20268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20268 rm -rf conftest*
20269 wx_cv_func_gettimeofday_has_2_args=no
20270 else
20271 echo "configure: failed program was:" >&5
20272 cat conftest.$ac_ext >&5
20273 rm -rf conftest*
20274
20275 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20276 wx_cv_func_gettimeofday_has_2_args=unknown
20277
20278
20279 fi
20280 rm -f conftest*
20281
20282 fi
20283 rm -f conftest*
20284 ac_ext=c
20285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20286 ac_cpp='$CPP $CPPFLAGS'
20287 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20288 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20289 cross_compiling=$ac_cv_prog_cc_cross
20290
20291
20292 fi
20293
20294 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20295
20296 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20297 cat >> confdefs.h <<\EOF
20298 #define WX_GETTIMEOFDAY_NO_TZ 1
20299 EOF
20300
20301 fi
20302 fi
20303
20304 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20305 fi
20306
20307
20308 if test "$wxUSE_SOCKETS" = "yes"; then
20309 if test "$wxUSE_MGL" = "1"; then
20310 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20311 wxUSE_SOCKETS="no"
20312 fi
20313 fi
20314
20315 if test "$wxUSE_SOCKETS" = "yes"; then
20316 if test "$TOOLKIT" != "MSW"; then
20317 echo $ac_n "checking for socket""... $ac_c" 1>&6
20318 echo "configure:20319: checking for socket" >&5
20319 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20320 echo $ac_n "(cached) $ac_c" 1>&6
20321 else
20322 cat > conftest.$ac_ext <<EOF
20323 #line 20324 "configure"
20324 #include "confdefs.h"
20325 /* System header to define __stub macros and hopefully few prototypes,
20326 which can conflict with char socket(); below. */
20327 #include <assert.h>
20328 /* Override any gcc2 internal prototype to avoid an error. */
20329 /* We use char because int might match the return type of a gcc2
20330 builtin and then its argument prototype would still apply. */
20331 char socket();
20332
20333 int main() {
20334
20335 /* The GNU C library defines this for functions which it implements
20336 to always fail with ENOSYS. Some functions are actually named
20337 something starting with __ and the normal name is an alias. */
20338 #if defined (__stub_socket) || defined (__stub___socket)
20339 choke me
20340 #else
20341 socket();
20342 #endif
20343
20344 ; return 0; }
20345 EOF
20346 if { (eval echo configure:20347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20347 rm -rf conftest*
20348 eval "ac_cv_func_socket=yes"
20349 else
20350 echo "configure: failed program was:" >&5
20351 cat conftest.$ac_ext >&5
20352 rm -rf conftest*
20353 eval "ac_cv_func_socket=no"
20354 fi
20355 rm -f conftest*
20356 fi
20357
20358 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20359 echo "$ac_t""yes" 1>&6
20360 :
20361 else
20362 echo "$ac_t""no" 1>&6
20363 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20364 echo "configure:20365: checking for socket in -lsocket" >&5
20365 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20367 echo $ac_n "(cached) $ac_c" 1>&6
20368 else
20369 ac_save_LIBS="$LIBS"
20370 LIBS="-lsocket $LIBS"
20371 cat > conftest.$ac_ext <<EOF
20372 #line 20373 "configure"
20373 #include "confdefs.h"
20374 /* Override any gcc2 internal prototype to avoid an error. */
20375 /* We use char because int might match the return type of a gcc2
20376 builtin and then its argument prototype would still apply. */
20377 char socket();
20378
20379 int main() {
20380 socket()
20381 ; return 0; }
20382 EOF
20383 if { (eval echo configure:20384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20384 rm -rf conftest*
20385 eval "ac_cv_lib_$ac_lib_var=yes"
20386 else
20387 echo "configure: failed program was:" >&5
20388 cat conftest.$ac_ext >&5
20389 rm -rf conftest*
20390 eval "ac_cv_lib_$ac_lib_var=no"
20391 fi
20392 rm -f conftest*
20393 LIBS="$ac_save_LIBS"
20394
20395 fi
20396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20397 echo "$ac_t""yes" 1>&6
20398 if test "$INET_LINK" != " -lsocket"; then
20399 INET_LINK="$INET_LINK -lsocket"
20400 fi
20401 else
20402 echo "$ac_t""no" 1>&6
20403
20404 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20405 wxUSE_SOCKETS=no
20406
20407
20408 fi
20409
20410
20411 fi
20412
20413 fi
20414 fi
20415
20416 if test "$wxUSE_SOCKETS" = "yes" ; then
20417 if test "$TOOLKIT" != "MSW"; then
20418 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20419 echo "configure:20420: checking what is the type of the third argument of getsockname" >&5
20420 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20421 echo $ac_n "(cached) $ac_c" 1>&6
20422 else
20423
20424
20425 ac_ext=C
20426 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20427 ac_cpp='$CXXCPP $CPPFLAGS'
20428 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20429 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20430 cross_compiling=$ac_cv_prog_cxx_cross
20431
20432
20433 cat > conftest.$ac_ext <<EOF
20434 #line 20435 "configure"
20435 #include "confdefs.h"
20436
20437 #include <sys/types.h>
20438 #include <sys/socket.h>
20439
20440 int main() {
20441
20442 socklen_t len;
20443 getsockname(0, 0, &len);
20444
20445 ; return 0; }
20446 EOF
20447 if { (eval echo configure:20448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20448 rm -rf conftest*
20449 wx_cv_type_getsockname3=socklen_t
20450 else
20451 echo "configure: failed program was:" >&5
20452 cat conftest.$ac_ext >&5
20453 rm -rf conftest*
20454 cat > conftest.$ac_ext <<EOF
20455 #line 20456 "configure"
20456 #include "confdefs.h"
20457
20458 #include <sys/types.h>
20459 #include <sys/socket.h>
20460
20461 int main() {
20462
20463 size_t len;
20464 getsockname(0, 0, &len);
20465
20466 ; return 0; }
20467 EOF
20468 if { (eval echo configure:20469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20469 rm -rf conftest*
20470 wx_cv_type_getsockname3=size_t
20471 else
20472 echo "configure: failed program was:" >&5
20473 cat conftest.$ac_ext >&5
20474 rm -rf conftest*
20475 cat > conftest.$ac_ext <<EOF
20476 #line 20477 "configure"
20477 #include "confdefs.h"
20478
20479 #include <sys/types.h>
20480 #include <sys/socket.h>
20481
20482 int main() {
20483
20484 int len;
20485 getsockname(0, 0, &len);
20486
20487 ; return 0; }
20488 EOF
20489 if { (eval echo configure:20490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20490 rm -rf conftest*
20491 wx_cv_type_getsockname3=int
20492 else
20493 echo "configure: failed program was:" >&5
20494 cat conftest.$ac_ext >&5
20495 rm -rf conftest*
20496 wx_cv_type_getsockname3=unknown
20497
20498 fi
20499 rm -f conftest*
20500
20501 fi
20502 rm -f conftest*
20503
20504 fi
20505 rm -f conftest*
20506
20507 ac_ext=c
20508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20509 ac_cpp='$CPP $CPPFLAGS'
20510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20512 cross_compiling=$ac_cv_prog_cc_cross
20513
20514
20515 fi
20516
20517 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20518
20519 if test "$wx_cv_type_getsockname3" = "unknown"; then
20520 wxUSE_SOCKETS=no
20521 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20522 else
20523 cat >> confdefs.h <<EOF
20524 #define SOCKLEN_T $wx_cv_type_getsockname3
20525 EOF
20526
20527 fi
20528 fi
20529 fi
20530
20531 if test "$wxUSE_SOCKETS" = "yes" ; then
20532 cat >> confdefs.h <<\EOF
20533 #define wxUSE_SOCKETS 1
20534 EOF
20535
20536 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20537 fi
20538
20539
20540 if test "$wxUSE_GUI" = "yes"; then
20541
20542 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
20543 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20544 wxUSE_JOYSTICK=no
20545 fi
20546 if test "$TOOLKIT" = "MOTIF"; then
20547 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20548 wxUSE_JOYSTICK=no
20549 fi
20550 if test "$TOOLKIT" = "X11"; then
20551 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20552 wxUSE_JOYSTICK=no
20553 fi
20554
20555 if test "$TOOLKIT" != "MSW"; then
20556 if test "$wxUSE_JOYSTICK" = "yes"; then
20557 for ac_hdr in linux/joystick.h
20558 do
20559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20561 echo "configure:20562: checking for $ac_hdr" >&5
20562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20563 echo $ac_n "(cached) $ac_c" 1>&6
20564 else
20565 cat > conftest.$ac_ext <<EOF
20566 #line 20567 "configure"
20567 #include "confdefs.h"
20568 #include <$ac_hdr>
20569 EOF
20570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20571 { (eval echo configure:20572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20573 if test -z "$ac_err"; then
20574 rm -rf conftest*
20575 eval "ac_cv_header_$ac_safe=yes"
20576 else
20577 echo "$ac_err" >&5
20578 echo "configure: failed program was:" >&5
20579 cat conftest.$ac_ext >&5
20580 rm -rf conftest*
20581 eval "ac_cv_header_$ac_safe=no"
20582 fi
20583 rm -f conftest*
20584 fi
20585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20586 echo "$ac_t""yes" 1>&6
20587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20588 cat >> confdefs.h <<EOF
20589 #define $ac_tr_hdr 1
20590 EOF
20591
20592 else
20593 echo "$ac_t""no" 1>&6
20594 fi
20595 done
20596
20597 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20598 wxUSE_JOYSTICK=no
20599 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20600 fi
20601 fi
20602 fi
20603
20604 if test "$wxUSE_JOYSTICK" = "yes"; then
20605 cat >> confdefs.h <<\EOF
20606 #define wxUSE_JOYSTICK 1
20607 EOF
20608
20609 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20610 fi
20611 fi
20612
20613
20614 if test "$TOOLKIT" != "MSW"; then
20615
20616 HAVE_DL_FUNCS=0
20617 HAVE_SHL_FUNCS=0
20618 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20619 if test "$USE_DARWIN" = 1; then
20620 HAVE_DL_FUNCS=1
20621 else
20622 for ac_func in dlopen
20623 do
20624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20625 echo "configure:20626: checking for $ac_func" >&5
20626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20627 echo $ac_n "(cached) $ac_c" 1>&6
20628 else
20629 cat > conftest.$ac_ext <<EOF
20630 #line 20631 "configure"
20631 #include "confdefs.h"
20632 /* System header to define __stub macros and hopefully few prototypes,
20633 which can conflict with char $ac_func(); below. */
20634 #include <assert.h>
20635 /* Override any gcc2 internal prototype to avoid an error. */
20636 /* We use char because int might match the return type of a gcc2
20637 builtin and then its argument prototype would still apply. */
20638 char $ac_func();
20639
20640 int main() {
20641
20642 /* The GNU C library defines this for functions which it implements
20643 to always fail with ENOSYS. Some functions are actually named
20644 something starting with __ and the normal name is an alias. */
20645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20646 choke me
20647 #else
20648 $ac_func();
20649 #endif
20650
20651 ; return 0; }
20652 EOF
20653 if { (eval echo configure:20654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20654 rm -rf conftest*
20655 eval "ac_cv_func_$ac_func=yes"
20656 else
20657 echo "configure: failed program was:" >&5
20658 cat conftest.$ac_ext >&5
20659 rm -rf conftest*
20660 eval "ac_cv_func_$ac_func=no"
20661 fi
20662 rm -f conftest*
20663 fi
20664
20665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20666 echo "$ac_t""yes" 1>&6
20667 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20668 cat >> confdefs.h <<EOF
20669 #define $ac_tr_func 1
20670 EOF
20671
20672 cat >> confdefs.h <<\EOF
20673 #define HAVE_DLOPEN 1
20674 EOF
20675
20676 HAVE_DL_FUNCS=1
20677
20678 else
20679 echo "$ac_t""no" 1>&6
20680 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20681 echo "configure:20682: checking for dlopen in -ldl" >&5
20682 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20684 echo $ac_n "(cached) $ac_c" 1>&6
20685 else
20686 ac_save_LIBS="$LIBS"
20687 LIBS="-ldl $LIBS"
20688 cat > conftest.$ac_ext <<EOF
20689 #line 20690 "configure"
20690 #include "confdefs.h"
20691 /* Override any gcc2 internal prototype to avoid an error. */
20692 /* We use char because int might match the return type of a gcc2
20693 builtin and then its argument prototype would still apply. */
20694 char dlopen();
20695
20696 int main() {
20697 dlopen()
20698 ; return 0; }
20699 EOF
20700 if { (eval echo configure:20701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20701 rm -rf conftest*
20702 eval "ac_cv_lib_$ac_lib_var=yes"
20703 else
20704 echo "configure: failed program was:" >&5
20705 cat conftest.$ac_ext >&5
20706 rm -rf conftest*
20707 eval "ac_cv_lib_$ac_lib_var=no"
20708 fi
20709 rm -f conftest*
20710 LIBS="$ac_save_LIBS"
20711
20712 fi
20713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20714 echo "$ac_t""yes" 1>&6
20715
20716 cat >> confdefs.h <<\EOF
20717 #define HAVE_DLOPEN 1
20718 EOF
20719
20720 HAVE_DL_FUNCS=1
20721 DL_LINK=" -ldl$DL_LINK"
20722
20723 else
20724 echo "$ac_t""no" 1>&6
20725
20726 for ac_func in shl_load
20727 do
20728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20729 echo "configure:20730: checking for $ac_func" >&5
20730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20731 echo $ac_n "(cached) $ac_c" 1>&6
20732 else
20733 cat > conftest.$ac_ext <<EOF
20734 #line 20735 "configure"
20735 #include "confdefs.h"
20736 /* System header to define __stub macros and hopefully few prototypes,
20737 which can conflict with char $ac_func(); below. */
20738 #include <assert.h>
20739 /* Override any gcc2 internal prototype to avoid an error. */
20740 /* We use char because int might match the return type of a gcc2
20741 builtin and then its argument prototype would still apply. */
20742 char $ac_func();
20743
20744 int main() {
20745
20746 /* The GNU C library defines this for functions which it implements
20747 to always fail with ENOSYS. Some functions are actually named
20748 something starting with __ and the normal name is an alias. */
20749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20750 choke me
20751 #else
20752 $ac_func();
20753 #endif
20754
20755 ; return 0; }
20756 EOF
20757 if { (eval echo configure:20758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20758 rm -rf conftest*
20759 eval "ac_cv_func_$ac_func=yes"
20760 else
20761 echo "configure: failed program was:" >&5
20762 cat conftest.$ac_ext >&5
20763 rm -rf conftest*
20764 eval "ac_cv_func_$ac_func=no"
20765 fi
20766 rm -f conftest*
20767 fi
20768
20769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20770 echo "$ac_t""yes" 1>&6
20771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20772 cat >> confdefs.h <<EOF
20773 #define $ac_tr_func 1
20774 EOF
20775
20776 cat >> confdefs.h <<\EOF
20777 #define HAVE_SHL_LOAD 1
20778 EOF
20779
20780 HAVE_SHL_FUNCS=1
20781
20782 else
20783 echo "$ac_t""no" 1>&6
20784 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20785 echo "configure:20786: checking for dld in -lshl_load" >&5
20786 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20788 echo $ac_n "(cached) $ac_c" 1>&6
20789 else
20790 ac_save_LIBS="$LIBS"
20791 LIBS="-lshl_load $LIBS"
20792 cat > conftest.$ac_ext <<EOF
20793 #line 20794 "configure"
20794 #include "confdefs.h"
20795 /* Override any gcc2 internal prototype to avoid an error. */
20796 /* We use char because int might match the return type of a gcc2
20797 builtin and then its argument prototype would still apply. */
20798 char dld();
20799
20800 int main() {
20801 dld()
20802 ; return 0; }
20803 EOF
20804 if { (eval echo configure:20805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20805 rm -rf conftest*
20806 eval "ac_cv_lib_$ac_lib_var=yes"
20807 else
20808 echo "configure: failed program was:" >&5
20809 cat conftest.$ac_ext >&5
20810 rm -rf conftest*
20811 eval "ac_cv_lib_$ac_lib_var=no"
20812 fi
20813 rm -f conftest*
20814 LIBS="$ac_save_LIBS"
20815
20816 fi
20817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20818 echo "$ac_t""yes" 1>&6
20819
20820 HAVE_SHL_FUNCS=1
20821 DL_LINK=" -ldld$DL_LINK"
20822
20823 else
20824 echo "$ac_t""no" 1>&6
20825 fi
20826
20827
20828 fi
20829 done
20830
20831
20832 fi
20833
20834
20835 fi
20836 done
20837
20838
20839 if test "$HAVE_DL_FUNCS" = 1; then
20840 for ac_func in dlerror
20841 do
20842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20843 echo "configure:20844: checking for $ac_func" >&5
20844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20845 echo $ac_n "(cached) $ac_c" 1>&6
20846 else
20847 cat > conftest.$ac_ext <<EOF
20848 #line 20849 "configure"
20849 #include "confdefs.h"
20850 /* System header to define __stub macros and hopefully few prototypes,
20851 which can conflict with char $ac_func(); below. */
20852 #include <assert.h>
20853 /* Override any gcc2 internal prototype to avoid an error. */
20854 /* We use char because int might match the return type of a gcc2
20855 builtin and then its argument prototype would still apply. */
20856 char $ac_func();
20857
20858 int main() {
20859
20860 /* The GNU C library defines this for functions which it implements
20861 to always fail with ENOSYS. Some functions are actually named
20862 something starting with __ and the normal name is an alias. */
20863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20864 choke me
20865 #else
20866 $ac_func();
20867 #endif
20868
20869 ; return 0; }
20870 EOF
20871 if { (eval echo configure:20872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20872 rm -rf conftest*
20873 eval "ac_cv_func_$ac_func=yes"
20874 else
20875 echo "configure: failed program was:" >&5
20876 cat conftest.$ac_ext >&5
20877 rm -rf conftest*
20878 eval "ac_cv_func_$ac_func=no"
20879 fi
20880 rm -f conftest*
20881 fi
20882
20883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20884 echo "$ac_t""yes" 1>&6
20885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20886 cat >> confdefs.h <<EOF
20887 #define $ac_tr_func 1
20888 EOF
20889 cat >> confdefs.h <<\EOF
20890 #define HAVE_DLERROR 1
20891 EOF
20892
20893 else
20894 echo "$ac_t""no" 1>&6
20895 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
20896 echo "configure:20897: checking for dlerror in -ldl" >&5
20897 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20899 echo $ac_n "(cached) $ac_c" 1>&6
20900 else
20901 ac_save_LIBS="$LIBS"
20902 LIBS="-ldl $LIBS"
20903 cat > conftest.$ac_ext <<EOF
20904 #line 20905 "configure"
20905 #include "confdefs.h"
20906 /* Override any gcc2 internal prototype to avoid an error. */
20907 /* We use char because int might match the return type of a gcc2
20908 builtin and then its argument prototype would still apply. */
20909 char dlerror();
20910
20911 int main() {
20912 dlerror()
20913 ; return 0; }
20914 EOF
20915 if { (eval echo configure:20916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20916 rm -rf conftest*
20917 eval "ac_cv_lib_$ac_lib_var=yes"
20918 else
20919 echo "configure: failed program was:" >&5
20920 cat conftest.$ac_ext >&5
20921 rm -rf conftest*
20922 eval "ac_cv_lib_$ac_lib_var=no"
20923 fi
20924 rm -f conftest*
20925 LIBS="$ac_save_LIBS"
20926
20927 fi
20928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20929 echo "$ac_t""yes" 1>&6
20930 cat >> confdefs.h <<\EOF
20931 #define HAVE_DLERROR 1
20932 EOF
20933
20934 else
20935 echo "$ac_t""no" 1>&6
20936 fi
20937
20938 fi
20939 done
20940
20941 fi
20942 fi
20943
20944 if test "$HAVE_DL_FUNCS" = 0; then
20945 if test "$HAVE_SHL_FUNCS" = 0; then
20946 if test "$USE_UNIX" = 1; then
20947 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20948 wxUSE_DYNAMIC_LOADER=no
20949 wxUSE_DYNLIB_CLASS=no
20950 else
20951 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20952 fi
20953 fi
20954 fi
20955 fi
20956 fi
20957
20958 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
20959 cat >> confdefs.h <<\EOF
20960 #define wxUSE_DYNAMIC_LOADER 1
20961 EOF
20962
20963 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20964 cat >> confdefs.h <<\EOF
20965 #define wxUSE_DYNLIB_CLASS 1
20966 EOF
20967
20968 fi
20969
20970
20971 if test "$wxUSE_FONTMAP" = "yes" ; then
20972 cat >> confdefs.h <<\EOF
20973 #define wxUSE_FONTMAP 1
20974 EOF
20975
20976 fi
20977
20978 if test "$wxUSE_UNICODE" = "yes" ; then
20979 cat >> confdefs.h <<\EOF
20980 #define wxUSE_UNICODE 1
20981 EOF
20982
20983
20984 if test "$wxUSE_MSW" != 1; then
20985 wxUSE_UNICODE_MSLU=no
20986 fi
20987
20988 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
20989 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
20990 echo "configure:20991: checking for main in -lunicows" >&5
20991 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20993 echo $ac_n "(cached) $ac_c" 1>&6
20994 else
20995 ac_save_LIBS="$LIBS"
20996 LIBS="-lunicows $LIBS"
20997 cat > conftest.$ac_ext <<EOF
20998 #line 20999 "configure"
20999 #include "confdefs.h"
21000
21001 int main() {
21002 main()
21003 ; return 0; }
21004 EOF
21005 if { (eval echo configure:21006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21006 rm -rf conftest*
21007 eval "ac_cv_lib_$ac_lib_var=yes"
21008 else
21009 echo "configure: failed program was:" >&5
21010 cat conftest.$ac_ext >&5
21011 rm -rf conftest*
21012 eval "ac_cv_lib_$ac_lib_var=no"
21013 fi
21014 rm -f conftest*
21015 LIBS="$ac_save_LIBS"
21016
21017 fi
21018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21019 echo "$ac_t""yes" 1>&6
21020
21021 cat >> confdefs.h <<\EOF
21022 #define wxUSE_UNICODE_MSLU 1
21023 EOF
21024
21025
21026 else
21027 echo "$ac_t""no" 1>&6
21028
21029 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21030 Applications will only run on Windows NT/2000/XP!" 1>&2
21031 wxUSE_UNICODE_MSLU=no
21032
21033 fi
21034
21035 fi
21036 fi
21037
21038 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
21039 cat >> confdefs.h <<\EOF
21040 #define wxUSE_EXPERIMENTAL_PRINTF 1
21041 EOF
21042
21043 fi
21044
21045
21046
21047 IODBC_C_SRC=""
21048 if test "$wxUSE_ODBC" = "yes" ; then
21049 cat >> confdefs.h <<\EOF
21050 #define wxUSE_ODBC 1
21051 EOF
21052
21053 WXODBCFLAG="-D_IODBC_"
21054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
21055 fi
21056
21057
21058 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
21059 cat >> confdefs.h <<\EOF
21060 #define wxUSE_POSTSCRIPT 1
21061 EOF
21062
21063 fi
21064
21065 cat >> confdefs.h <<\EOF
21066 #define wxUSE_AFM_FOR_POSTSCRIPT 1
21067 EOF
21068
21069
21070 cat >> confdefs.h <<\EOF
21071 #define wxUSE_NORMALIZED_PS_FONTS 1
21072 EOF
21073
21074
21075
21076 if test "$wxUSE_CONSTRAINTS" = "yes"; then
21077 cat >> confdefs.h <<\EOF
21078 #define wxUSE_CONSTRAINTS 1
21079 EOF
21080
21081 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21082 fi
21083
21084 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21085
21086
21087 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21088 cat >> confdefs.h <<\EOF
21089 #define wxUSE_MDI_ARCHITECTURE 1
21090 EOF
21091
21092 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21093 fi
21094 fi
21095
21096 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
21097 cat >> confdefs.h <<\EOF
21098 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
21099 EOF
21100
21101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21102 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21104 fi
21105 fi
21106
21107 if test "$wxUSE_HELP" = "yes"; then
21108 cat >> confdefs.h <<\EOF
21109 #define wxUSE_HELP 1
21110 EOF
21111
21112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
21113
21114 if test "$wxUSE_MSW" = 1; then
21115 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
21116 cat >> confdefs.h <<\EOF
21117 #define wxUSE_MS_HTML_HELP 1
21118 EOF
21119
21120 fi
21121 fi
21122
21123 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21124 if test "$wxUSE_HTML" = "yes"; then
21125 cat >> confdefs.h <<\EOF
21126 #define wxUSE_WXHTML_HELP 1
21127 EOF
21128
21129 else
21130 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
21131 wxUSE_WXHTML_HELP=no
21132 fi
21133 fi
21134 fi
21135
21136 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21137 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21138 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
21139 else
21140 cat >> confdefs.h <<\EOF
21141 #define wxUSE_PRINTING_ARCHITECTURE 1
21142 EOF
21143
21144 fi
21145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21146 fi
21147
21148
21149
21150 if test "$wxUSE_X_RESOURCES" = "yes"; then
21151 cat >> confdefs.h <<\EOF
21152 #define wxUSE_X_RESOURCES 1
21153 EOF
21154
21155 fi
21156
21157
21158 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21159 -o "$wxUSE_CLIPBOARD" = "yes" \
21160 -o "$wxUSE_OLE" = "yes" \
21161 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
21162 for ac_hdr in ole2.h
21163 do
21164 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21165 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21166 echo "configure:21167: checking for $ac_hdr" >&5
21167 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21168 echo $ac_n "(cached) $ac_c" 1>&6
21169 else
21170 cat > conftest.$ac_ext <<EOF
21171 #line 21172 "configure"
21172 #include "confdefs.h"
21173 #include <$ac_hdr>
21174 EOF
21175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21176 { (eval echo configure:21177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21178 if test -z "$ac_err"; then
21179 rm -rf conftest*
21180 eval "ac_cv_header_$ac_safe=yes"
21181 else
21182 echo "$ac_err" >&5
21183 echo "configure: failed program was:" >&5
21184 cat conftest.$ac_ext >&5
21185 rm -rf conftest*
21186 eval "ac_cv_header_$ac_safe=no"
21187 fi
21188 rm -f conftest*
21189 fi
21190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21191 echo "$ac_t""yes" 1>&6
21192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21193 cat >> confdefs.h <<EOF
21194 #define $ac_tr_hdr 1
21195 EOF
21196
21197 else
21198 echo "$ac_t""no" 1>&6
21199 fi
21200 done
21201
21202
21203 if test "$ac_cv_header_ole2_h" = "yes" ; then
21204 if test "$GCC" = yes ; then
21205
21206 ac_ext=C
21207 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21208 ac_cpp='$CXXCPP $CPPFLAGS'
21209 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21210 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21211 cross_compiling=$ac_cv_prog_cxx_cross
21212
21213
21214 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21215 echo "configure:21216: checking if g++ requires -fvtable-thunks" >&5
21216 cat > conftest.$ac_ext <<EOF
21217 #line 21218 "configure"
21218 #include "confdefs.h"
21219 #include <windows.h>
21220 #include <ole2.h>
21221 int main() {
21222
21223 ; return 0; }
21224 EOF
21225 if { (eval echo configure:21226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21226 rm -rf conftest*
21227 echo "$ac_t""no" 1>&6
21228 else
21229 echo "configure: failed program was:" >&5
21230 cat conftest.$ac_ext >&5
21231 rm -rf conftest*
21232 echo "$ac_t""yes" 1>&6
21233 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21234 fi
21235 rm -f conftest*
21236 ac_ext=c
21237 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21238 ac_cpp='$CPP $CPPFLAGS'
21239 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21240 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21241 cross_compiling=$ac_cv_prog_cc_cross
21242
21243 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21244 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21245 cat >> confdefs.h <<\EOF
21246 #define wxUSE_OLE 1
21247 EOF
21248
21249
21250 fi
21251
21252 cat >> confdefs.h <<\EOF
21253 #define wxUSE_DATAOBJ 1
21254 EOF
21255
21256 else
21257 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21258
21259 wxUSE_CLIPBOARD=no
21260 wxUSE_DRAG_AND_DROP=no
21261 wxUSE_DATAOBJ=no
21262 wxUSE_OLE=no
21263 fi
21264
21265 if test "$wxUSE_METAFILE" = "yes"; then
21266 cat >> confdefs.h <<\EOF
21267 #define wxUSE_METAFILE 1
21268 EOF
21269
21270
21271 cat >> confdefs.h <<\EOF
21272 #define wxUSE_ENH_METAFILE 1
21273 EOF
21274
21275 fi
21276 fi
21277
21278 if test "$wxUSE_IPC" = "yes"; then
21279 if test "$wxUSE_SOCKETS" != "yes"; then
21280 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21281 fi
21282
21283 cat >> confdefs.h <<\EOF
21284 #define wxUSE_IPC 1
21285 EOF
21286
21287 fi
21288
21289 if test "$wxUSE_CLIPBOARD" = "yes"; then
21290 if test "$wxUSE_MGL" = 1; then
21291 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21292 wxUSE_CLIPBOARD=no
21293 fi
21294
21295 if test "$wxUSE_CLIPBOARD" = "yes"; then
21296 cat >> confdefs.h <<\EOF
21297 #define wxUSE_CLIPBOARD 1
21298 EOF
21299
21300
21301 cat >> confdefs.h <<\EOF
21302 #define wxUSE_DATAOBJ 1
21303 EOF
21304
21305 fi
21306 fi
21307
21308 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21309 if test "$wxUSE_GTK" = 1; then
21310 if test "$WXGTK12" != 1; then
21311 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21312 wxUSE_DRAG_AND_DROP=no
21313 fi
21314 fi
21315
21316 if test "$wxUSE_MOTIF" = 1; then
21317 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21318 wxUSE_DRAG_AND_DROP=no
21319 fi
21320
21321 if test "$wxUSE_X11" = 1; then
21322 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21323 wxUSE_DRAG_AND_DROP=no
21324 fi
21325
21326 if test "$wxUSE_MGL" = 1; then
21327 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21328 wxUSE_DRAG_AND_DROP=no
21329 fi
21330
21331 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21332 cat >> confdefs.h <<\EOF
21333 #define wxUSE_DRAG_AND_DROP 1
21334 EOF
21335
21336 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21337 fi
21338
21339 fi
21340
21341 if test "$wxUSE_SPLINES" = "yes" ; then
21342 cat >> confdefs.h <<\EOF
21343 #define wxUSE_SPLINES 1
21344 EOF
21345
21346 fi
21347
21348
21349 USES_CONTROLS=0
21350 if test "$wxUSE_CONTROLS" = "yes"; then
21351 USES_CONTROLS=1
21352 fi
21353
21354 if test "$wxUSE_ACCEL" = "yes"; then
21355 cat >> confdefs.h <<\EOF
21356 #define wxUSE_ACCEL 1
21357 EOF
21358
21359 USES_CONTROLS=1
21360 fi
21361
21362 if test "$wxUSE_BUTTON" = "yes"; then
21363 cat >> confdefs.h <<\EOF
21364 #define wxUSE_BUTTON 1
21365 EOF
21366
21367 USES_CONTROLS=1
21368 fi
21369
21370 if test "$wxUSE_BMPBUTTON" = "yes"; then
21371 cat >> confdefs.h <<\EOF
21372 #define wxUSE_BMPBUTTON 1
21373 EOF
21374
21375 USES_CONTROLS=1
21376 fi
21377
21378 if test "$wxUSE_CALCTRL" = "yes"; then
21379 cat >> confdefs.h <<\EOF
21380 #define wxUSE_CALENDARCTRL 1
21381 EOF
21382
21383 USES_CONTROLS=1
21384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21385 fi
21386
21387 if test "$wxUSE_CARET" = "yes"; then
21388 cat >> confdefs.h <<\EOF
21389 #define wxUSE_CARET 1
21390 EOF
21391
21392 USES_CONTROLS=1
21393 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21394 fi
21395
21396 if test "$wxUSE_COMBOBOX" = "yes"; then
21397 cat >> confdefs.h <<\EOF
21398 #define wxUSE_COMBOBOX 1
21399 EOF
21400
21401 USES_CONTROLS=1
21402 fi
21403
21404 if test "$wxUSE_CHOICE" = "yes"; then
21405 cat >> confdefs.h <<\EOF
21406 #define wxUSE_CHOICE 1
21407 EOF
21408
21409 USES_CONTROLS=1
21410 fi
21411
21412 if test "$wxUSE_CHECKBOX" = "yes"; then
21413 cat >> confdefs.h <<\EOF
21414 #define wxUSE_CHECKBOX 1
21415 EOF
21416
21417 USES_CONTROLS=1
21418 fi
21419
21420 if test "$wxUSE_CHECKLST" = "yes"; then
21421 cat >> confdefs.h <<\EOF
21422 #define wxUSE_CHECKLISTBOX 1
21423 EOF
21424
21425 USES_CONTROLS=1
21426 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21427 fi
21428
21429 if test "$wxUSE_DISPLAY" = "yes"; then
21430 cat >> confdefs.h <<\EOF
21431 #define wxUSE_DISPLAY 1
21432 EOF
21433
21434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21435 fi
21436
21437 if test "$wxUSE_GAUGE" = "yes"; then
21438 cat >> confdefs.h <<\EOF
21439 #define wxUSE_GAUGE 1
21440 EOF
21441
21442 USES_CONTROLS=1
21443 fi
21444
21445 if test "$wxUSE_GRID" = "yes"; then
21446 cat >> confdefs.h <<\EOF
21447 #define wxUSE_GRID 1
21448 EOF
21449
21450 USES_CONTROLS=1
21451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21452 fi
21453
21454 if test "$wxUSE_IMAGLIST" = "yes"; then
21455 cat >> confdefs.h <<\EOF
21456 #define wxUSE_IMAGLIST 1
21457 EOF
21458
21459 fi
21460
21461 if test "$wxUSE_LISTBOX" = "yes"; then
21462 cat >> confdefs.h <<\EOF
21463 #define wxUSE_LISTBOX 1
21464 EOF
21465
21466 USES_CONTROLS=1
21467 fi
21468
21469 if test "$wxUSE_LISTCTRL" = "yes"; then
21470 if test "$wxUSE_IMAGLIST" = "yes"; then
21471 cat >> confdefs.h <<\EOF
21472 #define wxUSE_LISTCTRL 1
21473 EOF
21474
21475 USES_CONTROLS=1
21476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21477 else
21478 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21479 fi
21480 fi
21481
21482 if test "$wxUSE_NOTEBOOK" = "yes"; then
21483 cat >> confdefs.h <<\EOF
21484 #define wxUSE_NOTEBOOK 1
21485 EOF
21486
21487 USES_CONTROLS=1
21488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21489 fi
21490
21491
21492 if test "$wxUSE_RADIOBOX" = "yes"; then
21493 cat >> confdefs.h <<\EOF
21494 #define wxUSE_RADIOBOX 1
21495 EOF
21496
21497 USES_CONTROLS=1
21498 fi
21499
21500 if test "$wxUSE_RADIOBTN" = "yes"; then
21501 cat >> confdefs.h <<\EOF
21502 #define wxUSE_RADIOBTN 1
21503 EOF
21504
21505 USES_CONTROLS=1
21506 fi
21507
21508 if test "$wxUSE_SASH" = "yes"; then
21509 cat >> confdefs.h <<\EOF
21510 #define wxUSE_SASH 1
21511 EOF
21512
21513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21514 fi
21515
21516 if test "$wxUSE_SCROLLBAR" = "yes"; then
21517 cat >> confdefs.h <<\EOF
21518 #define wxUSE_SCROLLBAR 1
21519 EOF
21520
21521 USES_CONTROLS=1
21522 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21523 fi
21524
21525 if test "$wxUSE_SLIDER" = "yes"; then
21526 cat >> confdefs.h <<\EOF
21527 #define wxUSE_SLIDER 1
21528 EOF
21529
21530 USES_CONTROLS=1
21531 fi
21532
21533 if test "$wxUSE_SPINBTN" = "yes"; then
21534 cat >> confdefs.h <<\EOF
21535 #define wxUSE_SPINBTN 1
21536 EOF
21537
21538 USES_CONTROLS=1
21539 fi
21540
21541 if test "$wxUSE_SPINCTRL" = "yes"; then
21542 cat >> confdefs.h <<\EOF
21543 #define wxUSE_SPINCTRL 1
21544 EOF
21545
21546 USES_CONTROLS=1
21547 fi
21548
21549 if test "$wxUSE_SPLITTER" = "yes"; then
21550 cat >> confdefs.h <<\EOF
21551 #define wxUSE_SPLITTER 1
21552 EOF
21553
21554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21555 fi
21556
21557 if test "$wxUSE_STATBMP" = "yes"; then
21558 cat >> confdefs.h <<\EOF
21559 #define wxUSE_STATBMP 1
21560 EOF
21561
21562 USES_CONTROLS=1
21563 fi
21564
21565 if test "$wxUSE_STATBOX" = "yes"; then
21566 cat >> confdefs.h <<\EOF
21567 #define wxUSE_STATBOX 1
21568 EOF
21569
21570 USES_CONTROLS=1
21571 fi
21572
21573 if test "$wxUSE_STATTEXT" = "yes"; then
21574 cat >> confdefs.h <<\EOF
21575 #define wxUSE_STATTEXT 1
21576 EOF
21577
21578 USES_CONTROLS=1
21579 fi
21580
21581 if test "$wxUSE_STATLINE" = "yes"; then
21582 cat >> confdefs.h <<\EOF
21583 #define wxUSE_STATLINE 1
21584 EOF
21585
21586 USES_CONTROLS=1
21587 fi
21588
21589 if test "$wxUSE_STATUSBAR" = "yes"; then
21590 cat >> confdefs.h <<\EOF
21591 #define wxUSE_STATUSBAR 1
21592 EOF
21593
21594 USES_CONTROLS=1
21595
21596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21597 fi
21598
21599 if test "$wxUSE_TABDIALOG" = "yes"; then
21600 cat >> confdefs.h <<\EOF
21601 #define wxUSE_TAB_DIALOG 1
21602 EOF
21603
21604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21605 fi
21606
21607 if test "$wxUSE_TEXTCTRL" = "yes"; then
21608 cat >> confdefs.h <<\EOF
21609 #define wxUSE_TEXTCTRL 1
21610 EOF
21611
21612 USES_CONTROLS=1
21613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21614 fi
21615
21616 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21617 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21618 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21619 wxUSE_TOGGLEBTN=no
21620 fi
21621 if test "$wxUSE_UNIVERSAL" = "yes"; then
21622 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21623 wxUSE_TOGGLEBTN=no
21624 fi
21625
21626 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21627 cat >> confdefs.h <<\EOF
21628 #define wxUSE_TOGGLEBTN 1
21629 EOF
21630
21631 USES_CONTROLS=1
21632 fi
21633 fi
21634
21635 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21636 cat >> confdefs.h <<\EOF
21637 #define wxUSE_TOOLBAR_SIMPLE 1
21638 EOF
21639
21640 wxUSE_TOOLBAR="yes"
21641 USES_CONTROLS=1
21642 fi
21643
21644 if test "$wxUSE_TOOLBAR" = "yes"; then
21645 cat >> confdefs.h <<\EOF
21646 #define wxUSE_TOOLBAR 1
21647 EOF
21648
21649 USES_CONTROLS=1
21650
21651 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21652 wxUSE_TOOLBAR_NATIVE="yes"
21653 fi
21654
21655 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21656 cat >> confdefs.h <<\EOF
21657 #define wxUSE_TOOLBAR_NATIVE 1
21658 EOF
21659
21660 USES_CONTROLS=1
21661 fi
21662
21663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21664 fi
21665
21666 if test "$wxUSE_TOOLTIPS" = "yes"; then
21667 if test "$wxUSE_MOTIF" = 1; then
21668 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21669 else
21670 if test "$wxUSE_UNIVERSAL" = "yes"; then
21671 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21672 else
21673 cat >> confdefs.h <<\EOF
21674 #define wxUSE_TOOLTIPS 1
21675 EOF
21676
21677 fi
21678 fi
21679 fi
21680
21681 if test "$wxUSE_TREECTRL" = "yes"; then
21682 if test "$wxUSE_IMAGLIST" = "yes"; then
21683 cat >> confdefs.h <<\EOF
21684 #define wxUSE_TREECTRL 1
21685 EOF
21686
21687 USES_CONTROLS=1
21688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21689 else
21690 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21691 fi
21692 fi
21693
21694 if test "$wxUSE_POPUPWIN" = "yes"; then
21695 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21696 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21697 else
21698 if test "$wxUSE_MOTIF" = 1; then
21699 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21700 else
21701 if test "$wxUSE_PM" = 1; then
21702 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21703 else
21704 cat >> confdefs.h <<\EOF
21705 #define wxUSE_POPUPWIN 1
21706 EOF
21707
21708
21709 USES_CONTROLS=1
21710 fi
21711 fi
21712 fi
21713 fi
21714
21715 if test "$wxUSE_TIPWINDOW" = "yes"; then
21716 if test "$wxUSE_PM" = 1; then
21717 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21718 else
21719 cat >> confdefs.h <<\EOF
21720 #define wxUSE_TIPWINDOW 1
21721 EOF
21722
21723 fi
21724 fi
21725
21726 if test "$USES_CONTROLS" = 1; then
21727 cat >> confdefs.h <<\EOF
21728 #define wxUSE_CONTROLS 1
21729 EOF
21730
21731 fi
21732
21733
21734
21735 if test "$wxUSE_DRAGIMAGE" = "yes"; then
21736 cat >> confdefs.h <<\EOF
21737 #define wxUSE_DRAGIMAGE 1
21738 EOF
21739
21740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21741 fi
21742
21743 if test "$wxUSE_MENUS" = "yes"; then
21744 cat >> confdefs.h <<\EOF
21745 #define wxUSE_MENUS 1
21746 EOF
21747
21748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21749 fi
21750
21751 if test "$wxUSE_METAFILE" = "yes"; then
21752 cat >> confdefs.h <<\EOF
21753 #define wxUSE_METAFILE 1
21754 EOF
21755
21756 fi
21757
21758 if test "$wxUSE_MIMETYPE" = "yes"; then
21759 cat >> confdefs.h <<\EOF
21760 #define wxUSE_MIMETYPE 1
21761 EOF
21762
21763 fi
21764
21765 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21766 cat >> confdefs.h <<\EOF
21767 #define wxUSE_SYSTEM_OPTIONS 1
21768 EOF
21769
21770 if test "$TOOLKIT" = "MSW"; then
21771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21772 fi
21773
21774 fi
21775
21776 if test "$wxUSE_PROTOCOL" = "yes"; then
21777 if test "$wxUSE_SOCKETS" != "yes"; then
21778 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21779 wxUSE_PROTOCOL=no
21780 fi
21781
21782 if test "$wxUSE_PROTOCOL" = "yes"; then
21783 cat >> confdefs.h <<\EOF
21784 #define wxUSE_PROTOCOL 1
21785 EOF
21786
21787
21788 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21789 cat >> confdefs.h <<\EOF
21790 #define wxUSE_PROTOCOL_HTTP 1
21791 EOF
21792
21793 fi
21794 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21795 cat >> confdefs.h <<\EOF
21796 #define wxUSE_PROTOCOL_FTP 1
21797 EOF
21798
21799 fi
21800 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21801 cat >> confdefs.h <<\EOF
21802 #define wxUSE_PROTOCOL_FILE 1
21803 EOF
21804
21805 fi
21806 fi
21807 fi
21808
21809 if test "$wxUSE_URL" = "yes"; then
21810 if test "$wxUSE_PROTOCOL" != "yes"; then
21811 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21812 wxUSE_URL=no
21813 fi
21814 if test "$wxUSE_URL" = "yes"; then
21815 cat >> confdefs.h <<\EOF
21816 #define wxUSE_URL 1
21817 EOF
21818
21819 fi
21820 fi
21821
21822 if test "$wxUSE_MINIFRAME" = "yes"; then
21823 cat >> confdefs.h <<\EOF
21824 #define wxUSE_MINIFRAME 1
21825 EOF
21826
21827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21828 fi
21829
21830 if test "$wxUSE_HTML" = "yes"; then
21831 cat >> confdefs.h <<\EOF
21832 #define wxUSE_HTML 1
21833 EOF
21834
21835 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21836 fi
21837
21838 if test "$wxUSE_VALIDATORS" = "yes"; then
21839 cat >> confdefs.h <<\EOF
21840 #define wxUSE_VALIDATORS 1
21841 EOF
21842
21843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21844 fi
21845
21846 if test "$wxUSE_PALETTE" = "yes" ; then
21847 cat >> confdefs.h <<\EOF
21848 #define wxUSE_PALETTE 1
21849 EOF
21850
21851 fi
21852
21853 if test "$wxUSE_IMAGE" = "yes" ; then
21854 cat >> confdefs.h <<\EOF
21855 #define wxUSE_IMAGE 1
21856 EOF
21857
21858 fi
21859
21860 if test "$wxUSE_GIF" = "yes" ; then
21861 cat >> confdefs.h <<\EOF
21862 #define wxUSE_GIF 1
21863 EOF
21864
21865 fi
21866
21867 if test "$wxUSE_PCX" = "yes" ; then
21868 cat >> confdefs.h <<\EOF
21869 #define wxUSE_PCX 1
21870 EOF
21871
21872 fi
21873
21874 if test "$wxUSE_IFF" = "yes" ; then
21875 cat >> confdefs.h <<\EOF
21876 #define wxUSE_IFF 1
21877 EOF
21878
21879 fi
21880
21881 if test "$wxUSE_PNM" = "yes" ; then
21882 cat >> confdefs.h <<\EOF
21883 #define wxUSE_PNM 1
21884 EOF
21885
21886 fi
21887
21888 if test "$wxUSE_XPM" = "yes" ; then
21889 cat >> confdefs.h <<\EOF
21890 #define wxUSE_XPM 1
21891 EOF
21892
21893 fi
21894
21895 if test "$wxUSE_ICO_CUR" = "yes" ; then
21896 cat >> confdefs.h <<\EOF
21897 #define wxUSE_ICO_CUR 1
21898 EOF
21899
21900 fi
21901
21902 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21903 LIBS=" -lunicows $LIBS"
21904 fi
21905
21906
21907 if test "$wxUSE_CHOICEDLG" = "yes"; then
21908 cat >> confdefs.h <<\EOF
21909 #define wxUSE_CHOICEDLG 1
21910 EOF
21911
21912 fi
21913
21914 if test "$wxUSE_COLOURDLG" = "yes"; then
21915 cat >> confdefs.h <<\EOF
21916 #define wxUSE_COLOURDLG 1
21917 EOF
21918
21919 fi
21920
21921 if test "$wxUSE_FILEDLG" = "yes"; then
21922 cat >> confdefs.h <<\EOF
21923 #define wxUSE_FILEDLG 1
21924 EOF
21925
21926 fi
21927
21928 if test "$wxUSE_FINDREPLDLG" = "yes"; then
21929 cat >> confdefs.h <<\EOF
21930 #define wxUSE_FINDREPLDLG 1
21931 EOF
21932
21933 fi
21934
21935 if test "$wxUSE_FONTDLG" = "yes"; then
21936 cat >> confdefs.h <<\EOF
21937 #define wxUSE_FONTDLG 1
21938 EOF
21939
21940 fi
21941
21942 if test "$wxUSE_DIRDLG" = "yes"; then
21943 if test "$wxUSE_TREECTRL" != "yes"; then
21944 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
21945 else
21946 cat >> confdefs.h <<\EOF
21947 #define wxUSE_DIRDLG 1
21948 EOF
21949
21950 fi
21951 fi
21952
21953 if test "$wxUSE_MSGDLG" = "yes"; then
21954 cat >> confdefs.h <<\EOF
21955 #define wxUSE_MSGDLG 1
21956 EOF
21957
21958 fi
21959
21960 if test "$wxUSE_NUMBERDLG" = "yes"; then
21961 cat >> confdefs.h <<\EOF
21962 #define wxUSE_NUMBERDLG 1
21963 EOF
21964
21965 fi
21966
21967 if test "$wxUSE_PROGRESSDLG" = "yes"; then
21968 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21969 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
21970 else
21971 cat >> confdefs.h <<\EOF
21972 #define wxUSE_PROGRESSDLG 1
21973 EOF
21974
21975 fi
21976 fi
21977
21978 if test "$wxUSE_SPLASH" = "yes"; then
21979 cat >> confdefs.h <<\EOF
21980 #define wxUSE_SPLASH 1
21981 EOF
21982
21983 fi
21984
21985 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21986 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21987 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
21988 else
21989 cat >> confdefs.h <<\EOF
21990 #define wxUSE_STARTUP_TIPS 1
21991 EOF
21992
21993 fi
21994 fi
21995
21996 if test "$wxUSE_TEXTDLG" = "yes"; then
21997 cat >> confdefs.h <<\EOF
21998 #define wxUSE_TEXTDLG 1
21999 EOF
22000
22001 fi
22002
22003 if test "$wxUSE_WIZARDDLG" = "yes"; then
22004 cat >> confdefs.h <<\EOF
22005 #define wxUSE_WIZARDDLG 1
22006 EOF
22007
22008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22009 fi
22010
22011
22012 if test "$cross_compiling" = "yes"; then
22013 OSINFO="\"$host\""
22014 else
22015 OSINFO=`uname -s -r -m`
22016 OSINFO="\"$OSINFO\""
22017 fi
22018
22019 cat >> confdefs.h <<EOF
22020 #define WXWIN_OS_DESCRIPTION $OSINFO
22021 EOF
22022
22023
22024
22025 if test "x$prefix" != "xNONE"; then
22026 wxPREFIX=$prefix
22027 else
22028 wxPREFIX=$ac_default_prefix
22029 fi
22030
22031 cat >> confdefs.h <<EOF
22032 #define wxINSTALL_PREFIX "$wxPREFIX"
22033 EOF
22034
22035
22036 top_builddir=`pwd`
22037
22038
22039
22040
22041 if test "$wxUSE_MAC" = 1 ; then
22042 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22043 fi
22044 if test "$wxUSE_COCOA" = 1 ; then
22045 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22046 fi
22047
22048
22049 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22050
22051 have_cos=0
22052 have_floor=0
22053 for ac_func in cos
22054 do
22055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22056 echo "configure:22057: checking for $ac_func" >&5
22057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22058 echo $ac_n "(cached) $ac_c" 1>&6
22059 else
22060 cat > conftest.$ac_ext <<EOF
22061 #line 22062 "configure"
22062 #include "confdefs.h"
22063 /* System header to define __stub macros and hopefully few prototypes,
22064 which can conflict with char $ac_func(); below. */
22065 #include <assert.h>
22066 /* Override any gcc2 internal prototype to avoid an error. */
22067 /* We use char because int might match the return type of a gcc2
22068 builtin and then its argument prototype would still apply. */
22069 char $ac_func();
22070
22071 int main() {
22072
22073 /* The GNU C library defines this for functions which it implements
22074 to always fail with ENOSYS. Some functions are actually named
22075 something starting with __ and the normal name is an alias. */
22076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22077 choke me
22078 #else
22079 $ac_func();
22080 #endif
22081
22082 ; return 0; }
22083 EOF
22084 if { (eval echo configure:22085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22085 rm -rf conftest*
22086 eval "ac_cv_func_$ac_func=yes"
22087 else
22088 echo "configure: failed program was:" >&5
22089 cat conftest.$ac_ext >&5
22090 rm -rf conftest*
22091 eval "ac_cv_func_$ac_func=no"
22092 fi
22093 rm -f conftest*
22094 fi
22095
22096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22097 echo "$ac_t""yes" 1>&6
22098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22099 cat >> confdefs.h <<EOF
22100 #define $ac_tr_func 1
22101 EOF
22102 have_cos=1
22103 else
22104 echo "$ac_t""no" 1>&6
22105 fi
22106 done
22107
22108 for ac_func in floor
22109 do
22110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22111 echo "configure:22112: checking for $ac_func" >&5
22112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22113 echo $ac_n "(cached) $ac_c" 1>&6
22114 else
22115 cat > conftest.$ac_ext <<EOF
22116 #line 22117 "configure"
22117 #include "confdefs.h"
22118 /* System header to define __stub macros and hopefully few prototypes,
22119 which can conflict with char $ac_func(); below. */
22120 #include <assert.h>
22121 /* Override any gcc2 internal prototype to avoid an error. */
22122 /* We use char because int might match the return type of a gcc2
22123 builtin and then its argument prototype would still apply. */
22124 char $ac_func();
22125
22126 int main() {
22127
22128 /* The GNU C library defines this for functions which it implements
22129 to always fail with ENOSYS. Some functions are actually named
22130 something starting with __ and the normal name is an alias. */
22131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22132 choke me
22133 #else
22134 $ac_func();
22135 #endif
22136
22137 ; return 0; }
22138 EOF
22139 if { (eval echo configure:22140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22140 rm -rf conftest*
22141 eval "ac_cv_func_$ac_func=yes"
22142 else
22143 echo "configure: failed program was:" >&5
22144 cat conftest.$ac_ext >&5
22145 rm -rf conftest*
22146 eval "ac_cv_func_$ac_func=no"
22147 fi
22148 rm -f conftest*
22149 fi
22150
22151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22152 echo "$ac_t""yes" 1>&6
22153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22154 cat >> confdefs.h <<EOF
22155 #define $ac_tr_func 1
22156 EOF
22157 have_floor=1
22158 else
22159 echo "$ac_t""no" 1>&6
22160 fi
22161 done
22162
22163 echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
22164 echo "configure:22165: checking if floating point functions link without -lm" >&5
22165 if test "$have_cos" = 1 -a "$have_floor" = 1; then
22166 echo "$ac_t""yes" 1>&6
22167 else
22168 echo "$ac_t""no" 1>&6
22169 LIBS="$LIBS -lm"
22170 # use different functions to avoid configure caching
22171 have_sin=0
22172 have_ceil=0
22173 for ac_func in sin
22174 do
22175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22176 echo "configure:22177: checking for $ac_func" >&5
22177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22178 echo $ac_n "(cached) $ac_c" 1>&6
22179 else
22180 cat > conftest.$ac_ext <<EOF
22181 #line 22182 "configure"
22182 #include "confdefs.h"
22183 /* System header to define __stub macros and hopefully few prototypes,
22184 which can conflict with char $ac_func(); below. */
22185 #include <assert.h>
22186 /* Override any gcc2 internal prototype to avoid an error. */
22187 /* We use char because int might match the return type of a gcc2
22188 builtin and then its argument prototype would still apply. */
22189 char $ac_func();
22190
22191 int main() {
22192
22193 /* The GNU C library defines this for functions which it implements
22194 to always fail with ENOSYS. Some functions are actually named
22195 something starting with __ and the normal name is an alias. */
22196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22197 choke me
22198 #else
22199 $ac_func();
22200 #endif
22201
22202 ; return 0; }
22203 EOF
22204 if { (eval echo configure:22205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22205 rm -rf conftest*
22206 eval "ac_cv_func_$ac_func=yes"
22207 else
22208 echo "configure: failed program was:" >&5
22209 cat conftest.$ac_ext >&5
22210 rm -rf conftest*
22211 eval "ac_cv_func_$ac_func=no"
22212 fi
22213 rm -f conftest*
22214 fi
22215
22216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22217 echo "$ac_t""yes" 1>&6
22218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22219 cat >> confdefs.h <<EOF
22220 #define $ac_tr_func 1
22221 EOF
22222 have_sin=1
22223 else
22224 echo "$ac_t""no" 1>&6
22225 fi
22226 done
22227
22228 for ac_func in ceil
22229 do
22230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22231 echo "configure:22232: checking for $ac_func" >&5
22232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22233 echo $ac_n "(cached) $ac_c" 1>&6
22234 else
22235 cat > conftest.$ac_ext <<EOF
22236 #line 22237 "configure"
22237 #include "confdefs.h"
22238 /* System header to define __stub macros and hopefully few prototypes,
22239 which can conflict with char $ac_func(); below. */
22240 #include <assert.h>
22241 /* Override any gcc2 internal prototype to avoid an error. */
22242 /* We use char because int might match the return type of a gcc2
22243 builtin and then its argument prototype would still apply. */
22244 char $ac_func();
22245
22246 int main() {
22247
22248 /* The GNU C library defines this for functions which it implements
22249 to always fail with ENOSYS. Some functions are actually named
22250 something starting with __ and the normal name is an alias. */
22251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22252 choke me
22253 #else
22254 $ac_func();
22255 #endif
22256
22257 ; return 0; }
22258 EOF
22259 if { (eval echo configure:22260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22260 rm -rf conftest*
22261 eval "ac_cv_func_$ac_func=yes"
22262 else
22263 echo "configure: failed program was:" >&5
22264 cat conftest.$ac_ext >&5
22265 rm -rf conftest*
22266 eval "ac_cv_func_$ac_func=no"
22267 fi
22268 rm -f conftest*
22269 fi
22270
22271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22272 echo "$ac_t""yes" 1>&6
22273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22274 cat >> confdefs.h <<EOF
22275 #define $ac_tr_func 1
22276 EOF
22277 have_ceil=1
22278 else
22279 echo "$ac_t""no" 1>&6
22280 fi
22281 done
22282
22283 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22284 echo "configure:22285: checking if floating point functions link with -lm" >&5
22285 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22286 echo "$ac_t""yes" 1>&6
22287 else
22288 echo "$ac_t""no" 1>&6
22289 # not sure we should warn the user, crash, etc.
22290 fi
22291 fi
22292
22293 if test "$wxUSE_GUI" = "yes"; then
22294
22295 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22296
22297
22298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22299 drawing dynamic erase event exec font image \
22300 minimal propsize rotate shaped widgets"
22301
22302 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22303 else
22304 SAMPLES_SUBDIRS="console"
22305 fi
22306
22307
22308 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22309 -I\${top_srcdir}/include \
22310 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22311 $TOOLKIT_INCLUDE"
22312
22313 if test "$wxUSE_GTK" = 1; then
22314 WXCONFIG_INCLUDE=
22315 else
22316 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22317 fi
22318
22319 if test "$GXX" = yes ; then
22320 CXXWARNINGS="-Wall"
22321
22322 if test "$wxUSE_NO_DEPS" = "no" ; then
22323 CFLAGS="-MMD $CFLAGS"
22324 CXXFLAGS="-MMD $CXXFLAGS"
22325 fi
22326 fi
22327
22328 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22329
22330 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22331 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22332 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22333 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22334
22335 LDFLAGS="$LDFLAGS $PROFILE"
22336
22337 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22440 echo "configure:22441: checking whether ${MAKE-make} sets \${MAKE}" >&5
22441 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22442 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22443 echo $ac_n "(cached) $ac_c" 1>&6
22444 else
22445 cat > conftestmake <<\EOF
22446 all:
22447 @echo 'ac_maketemp="${MAKE}"'
22448 EOF
22449 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22450 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22451 if test -n "$ac_maketemp"; then
22452 eval ac_cv_prog_make_${ac_make}_set=yes
22453 else
22454 eval ac_cv_prog_make_${ac_make}_set=no
22455 fi
22456 rm -f conftestmake
22457 fi
22458 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22459 echo "$ac_t""yes" 1>&6
22460 SET_MAKE=
22461 else
22462 echo "$ac_t""no" 1>&6
22463 SET_MAKE="MAKE=${MAKE-make}"
22464 fi
22465
22466
22467 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22468 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22469 fi
22470
22471
22472
22473 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22474 wx_cv_if_gnu_make=$IF_GNU_MAKE
22475 wx_cv_path_ifs=$PATH_IFS
22476 wx_cv_program_ext=$PROGRAM_EXT
22477 wx_cv_target_library=$WX_TARGET_LIBRARY
22478 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22479 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22480 wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22481 wx_cv_release=${WX_RELEASE}
22482 wx_cv_current=${WX_CURRENT}
22483 wx_cv_revision=${WX_REVISION}
22484 wx_cv_age=${WX_AGE}
22485 wx_cv_use_gui=${USE_GUI}
22486 wx_cv_use_resources=${wxUSE_RESOURCES}
22487 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22488 wx_cv_path_ifs wx_cv_program_ext \
22489 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22490 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22491 wx_cv_use_gui wx_cv_use_resources
22492
22493 subdirs="demos samples utils contrib"
22494
22495
22496 trap '' 1 2 15
22497 cat > confcache <<\EOF
22498 # This file is a shell script that caches the results of configure
22499 # tests run on this system so they can be shared between configure
22500 # scripts and configure runs. It is not useful on other systems.
22501 # If it contains results you don't want to keep, you may remove or edit it.
22502 #
22503 # By default, configure uses ./config.cache as the cache file,
22504 # creating it if it does not exist already. You can give configure
22505 # the --cache-file=FILE option to use a different cache file; that is
22506 # what configure does when it calls configure scripts in
22507 # subdirectories, so they share the cache.
22508 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22509 # config.status only pays attention to the cache file if you give it the
22510 # --recheck option to rerun configure.
22511 #
22512 EOF
22513 # The following way of writing the cache mishandles newlines in values,
22514 # but we know of no workaround that is simple, portable, and efficient.
22515 # So, don't put newlines in cache variables' values.
22516 # Ultrix sh set writes to stderr and can't be redirected directly,
22517 # and sets the high bit in the cache file unless we assign to the vars.
22518 (set) 2>&1 |
22519 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22520 *ac_space=\ *)
22521 # `set' does not quote correctly, so add quotes (double-quote substitution
22522 # turns \\\\ into \\, and sed turns \\ into \).
22523 sed -n \
22524 -e "s/'/'\\\\''/g" \
22525 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22526 ;;
22527 *)
22528 # `set' quotes correctly as required by POSIX, so do not add quotes.
22529 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22530 ;;
22531 esac >> confcache
22532 if cmp -s $cache_file confcache; then
22533 :
22534 else
22535 if test -w $cache_file; then
22536 echo "updating cache $cache_file"
22537 cat confcache > $cache_file
22538 else
22539 echo "not updating unwritable cache $cache_file"
22540 fi
22541 fi
22542 rm -f confcache
22543
22544 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22545
22546 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22547 # Let make expand exec_prefix.
22548 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22549
22550 # Any assignment to VPATH causes Sun make to only execute
22551 # the first set of double-colon rules, so remove it if not needed.
22552 # If there is a colon in the path, we need to keep it.
22553 if test "x$srcdir" = x.; then
22554 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22555 fi
22556
22557 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22558
22559 DEFS=-DHAVE_CONFIG_H
22560
22561 # Without the "./", some shells look in PATH for config.status.
22562 : ${CONFIG_STATUS=./config.status}
22563
22564 echo creating $CONFIG_STATUS
22565 rm -f $CONFIG_STATUS
22566 cat > $CONFIG_STATUS <<EOF
22567 #! /bin/sh
22568 # Generated automatically by configure.
22569 # Run this file to recreate the current configuration.
22570 # This directory was configured as follows,
22571 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22572 #
22573 # $0 $ac_configure_args
22574 #
22575 # Compiler output produced by configure, useful for debugging
22576 # configure, is in ./config.log if it exists.
22577
22578 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22579 for ac_option
22580 do
22581 case "\$ac_option" in
22582 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22583 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22584 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22585 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22586 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22587 exit 0 ;;
22588 -help | --help | --hel | --he | --h)
22589 echo "\$ac_cs_usage"; exit 0 ;;
22590 *) echo "\$ac_cs_usage"; exit 1 ;;
22591 esac
22592 done
22593
22594 ac_given_srcdir=$srcdir
22595 ac_given_INSTALL="$INSTALL"
22596
22597 trap 'rm -fr `echo "
22598 wx-config
22599 version-script
22600 src/make.env
22601 src/makeprog.env
22602 src/makelib.env
22603 Makefile
22604 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22605 EOF
22606 cat >> $CONFIG_STATUS <<EOF
22607
22608 # Protect against being on the right side of a sed subst in config.status.
22609 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22610 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22611 $ac_vpsub
22612 $extrasub
22613 s%@SHELL@%$SHELL%g
22614 s%@CFLAGS@%$CFLAGS%g
22615 s%@CPPFLAGS@%$CPPFLAGS%g
22616 s%@CXXFLAGS@%$CXXFLAGS%g
22617 s%@FFLAGS@%$FFLAGS%g
22618 s%@DEFS@%$DEFS%g
22619 s%@LDFLAGS@%$LDFLAGS%g
22620 s%@LIBS@%$LIBS%g
22621 s%@exec_prefix@%$exec_prefix%g
22622 s%@prefix@%$prefix%g
22623 s%@program_transform_name@%$program_transform_name%g
22624 s%@bindir@%$bindir%g
22625 s%@sbindir@%$sbindir%g
22626 s%@libexecdir@%$libexecdir%g
22627 s%@datadir@%$datadir%g
22628 s%@sysconfdir@%$sysconfdir%g
22629 s%@sharedstatedir@%$sharedstatedir%g
22630 s%@localstatedir@%$localstatedir%g
22631 s%@libdir@%$libdir%g
22632 s%@includedir@%$includedir%g
22633 s%@oldincludedir@%$oldincludedir%g
22634 s%@infodir@%$infodir%g
22635 s%@mandir@%$mandir%g
22636 s%@host@%$host%g
22637 s%@host_alias@%$host_alias%g
22638 s%@host_cpu@%$host_cpu%g
22639 s%@host_vendor@%$host_vendor%g
22640 s%@host_os@%$host_os%g
22641 s%@target@%$target%g
22642 s%@target_alias@%$target_alias%g
22643 s%@target_cpu@%$target_cpu%g
22644 s%@target_vendor@%$target_vendor%g
22645 s%@target_os@%$target_os%g
22646 s%@build@%$build%g
22647 s%@build_alias@%$build_alias%g
22648 s%@build_cpu@%$build_cpu%g
22649 s%@build_vendor@%$build_vendor%g
22650 s%@build_os@%$build_os%g
22651 s%@CC@%$CC%g
22652 s%@CPP@%$CPP%g
22653 s%@CXX@%$CXX%g
22654 s%@RANLIB@%$RANLIB%g
22655 s%@AR@%$AR%g
22656 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22657 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22658 s%@INSTALL_DATA@%$INSTALL_DATA%g
22659 s%@STRIP@%$STRIP%g
22660 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22661 s%@YACC@%$YACC%g
22662 s%@LEX@%$LEX%g
22663 s%@LEXLIB@%$LEXLIB%g
22664 s%@LN_S@%$LN_S%g
22665 s%@CXXCPP@%$CXXCPP%g
22666 s%@PKG_CONFIG@%$PKG_CONFIG%g
22667 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22668 s%@GTK_LIBS@%$GTK_LIBS%g
22669 s%@GTK_CONFIG@%$GTK_CONFIG%g
22670 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22671 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22672 s%@X_CFLAGS@%$X_CFLAGS%g
22673 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22674 s%@X_LIBS@%$X_LIBS%g
22675 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22676 s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22677 s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22678 s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22679 s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22680 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22681 s%@RESCOMP@%$RESCOMP%g
22682 s%@DEREZ@%$DEREZ%g
22683 s%@SETFILE@%$SETFILE%g
22684 s%@LIBICONV@%$LIBICONV%g
22685 s%@LEX_STEM@%$LEX_STEM%g
22686 s%@PATH_IFS@%$PATH_IFS%g
22687 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22688 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22689 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22690 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22691 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22692 s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22693 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22694 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22695 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22696 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22697 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22698 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22699 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22700 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22701 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22702 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22703 s%@WX_ALL@%$WX_ALL%g
22704 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22705 s%@SHARED_LD@%$SHARED_LD%g
22706 s%@PIC_FLAG@%$PIC_FLAG%g
22707 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22708 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22709 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22710 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22711 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22712 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22713 s%@STATIC_FLAG@%$STATIC_FLAG%g
22714 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22715 s%@USE_GUI@%$USE_GUI%g
22716 s%@AFMINSTALL@%$AFMINSTALL%g
22717 s%@WIN32INSTALL@%$WIN32INSTALL%g
22718 s%@TOOLKIT@%$TOOLKIT%g
22719 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22720 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22721 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22722 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22723 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22724 s%@top_builddir@%$top_builddir%g
22725 s%@cross_compiling@%$cross_compiling%g
22726 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22727 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22728 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22729 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22730 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22731 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22732 s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22733 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22734 s%@ALL_HEADERS@%$ALL_HEADERS%g
22735 s%@ALL_SOURCES@%$ALL_SOURCES%g
22736 s%@GUIDIST@%$GUIDIST%g
22737 s%@PORT_FILES@%$PORT_FILES%g
22738 s%@DISTDIR@%$DISTDIR%g
22739 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22740 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22741 s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22742 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22743 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22744 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22745 s%@EXTRADEFS@%$EXTRADEFS%g
22746 s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22747 s%@RESFLAGS@%$RESFLAGS%g
22748 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22749 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22750 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22751 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22752 s%@LIBWXMACRES@%$LIBWXMACRES%g
22753 s%@MACRESCOMP@%$MACRESCOMP%g
22754 s%@MACSETFILE@%$MACSETFILE%g
22755 s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22756 s%@GCC@%$GCC%g
22757 s%@DLLTOOL@%$DLLTOOL%g
22758 s%@AS@%$AS%g
22759 s%@NM@%$NM%g
22760 s%@LD@%$LD%g
22761 s%@MAKEINFO@%$MAKEINFO%g
22762 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22763 s%@INSTALL_DIR@%$INSTALL_DIR%g
22764 s%@SET_MAKE@%$SET_MAKE%g
22765 s%@subdirs@%$subdirs%g
22766
22767 CEOF
22768 EOF
22769
22770 cat >> $CONFIG_STATUS <<\EOF
22771
22772 # Split the substitutions into bite-sized pieces for seds with
22773 # small command number limits, like on Digital OSF/1 and HP-UX.
22774 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22775 ac_file=1 # Number of current file.
22776 ac_beg=1 # First line for current file.
22777 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22778 ac_more_lines=:
22779 ac_sed_cmds=""
22780 while $ac_more_lines; do
22781 if test $ac_beg -gt 1; then
22782 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22783 else
22784 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22785 fi
22786 if test ! -s conftest.s$ac_file; then
22787 ac_more_lines=false
22788 rm -f conftest.s$ac_file
22789 else
22790 if test -z "$ac_sed_cmds"; then
22791 ac_sed_cmds="sed -f conftest.s$ac_file"
22792 else
22793 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22794 fi
22795 ac_file=`expr $ac_file + 1`
22796 ac_beg=$ac_end
22797 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22798 fi
22799 done
22800 if test -z "$ac_sed_cmds"; then
22801 ac_sed_cmds=cat
22802 fi
22803 EOF
22804
22805 cat >> $CONFIG_STATUS <<EOF
22806
22807 CONFIG_FILES=\${CONFIG_FILES-"wx-config
22808 version-script
22809 src/make.env
22810 src/makeprog.env
22811 src/makelib.env
22812 Makefile
22813 "}
22814 EOF
22815 cat >> $CONFIG_STATUS <<\EOF
22816 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22817 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22818 case "$ac_file" in
22819 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22820 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22821 *) ac_file_in="${ac_file}.in" ;;
22822 esac
22823
22824 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22825
22826 # Remove last slash and all that follows it. Not all systems have dirname.
22827 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22828 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22829 # The file is in a subdirectory.
22830 test ! -d "$ac_dir" && mkdir "$ac_dir"
22831 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22832 # A "../" for each directory in $ac_dir_suffix.
22833 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22834 else
22835 ac_dir_suffix= ac_dots=
22836 fi
22837
22838 case "$ac_given_srcdir" in
22839 .) srcdir=.
22840 if test -z "$ac_dots"; then top_srcdir=.
22841 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22842 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22843 *) # Relative path.
22844 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22845 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22846 esac
22847
22848 case "$ac_given_INSTALL" in
22849 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22850 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22851 esac
22852
22853 echo creating "$ac_file"
22854 rm -f "$ac_file"
22855 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22856 case "$ac_file" in
22857 *Makefile*) ac_comsub="1i\\
22858 # $configure_input" ;;
22859 *) ac_comsub= ;;
22860 esac
22861
22862 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22863 sed -e "$ac_comsub
22864 s%@configure_input@%$configure_input%g
22865 s%@srcdir@%$srcdir%g
22866 s%@top_srcdir@%$top_srcdir%g
22867 s%@INSTALL@%$INSTALL%g
22868 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22869 fi; done
22870 rm -f conftest.s*
22871
22872 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22873 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22874 #
22875 # ac_d sets the value in "#define NAME VALUE" lines.
22876 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22877 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22878 ac_dC='\3'
22879 ac_dD='%g'
22880 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22881 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22882 ac_uB='\([ ]\)%\1#\2define\3'
22883 ac_uC=' '
22884 ac_uD='\4%g'
22885 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22886 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22887 ac_eB='$%\1#\2define\3'
22888 ac_eC=' '
22889 ac_eD='%g'
22890
22891 if test "${CONFIG_HEADERS+set}" != set; then
22892 EOF
22893 cat >> $CONFIG_STATUS <<EOF
22894 CONFIG_HEADERS="setup.h:setup.h.in"
22895 EOF
22896 cat >> $CONFIG_STATUS <<\EOF
22897 fi
22898 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22899 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22900 case "$ac_file" in
22901 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22902 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22903 *) ac_file_in="${ac_file}.in" ;;
22904 esac
22905
22906 echo creating $ac_file
22907
22908 rm -f conftest.frag conftest.in conftest.out
22909 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22910 cat $ac_file_inputs > conftest.in
22911
22912 EOF
22913
22914 # Transform confdefs.h into a sed script conftest.vals that substitutes
22915 # the proper values into config.h.in to produce config.h. And first:
22916 # Protect against being on the right side of a sed subst in config.status.
22917 # Protect against being in an unquoted here document in config.status.
22918 rm -f conftest.vals
22919 cat > conftest.hdr <<\EOF
22920 s/[\\&%]/\\&/g
22921 s%[\\$`]%\\&%g
22922 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22923 s%ac_d%ac_u%gp
22924 s%ac_u%ac_e%gp
22925 EOF
22926 sed -n -f conftest.hdr confdefs.h > conftest.vals
22927 rm -f conftest.hdr
22928
22929 # This sed command replaces #undef with comments. This is necessary, for
22930 # example, in the case of _POSIX_SOURCE, which is predefined and required
22931 # on some systems where configure will not decide to define it.
22932 cat >> conftest.vals <<\EOF
22933 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22934 EOF
22935
22936 # Break up conftest.vals because some shells have a limit on
22937 # the size of here documents, and old seds have small limits too.
22938
22939 rm -f conftest.tail
22940 while :
22941 do
22942 ac_lines=`grep -c . conftest.vals`
22943 # grep -c gives empty output for an empty file on some AIX systems.
22944 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22945 # Write a limited-size here document to conftest.frag.
22946 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22947 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22948 echo 'CEOF
22949 sed -f conftest.frag conftest.in > conftest.out
22950 rm -f conftest.in
22951 mv conftest.out conftest.in
22952 ' >> $CONFIG_STATUS
22953 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22954 rm -f conftest.vals
22955 mv conftest.tail conftest.vals
22956 done
22957 rm -f conftest.vals
22958
22959 cat >> $CONFIG_STATUS <<\EOF
22960 rm -f conftest.frag conftest.h
22961 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22962 cat conftest.in >> conftest.h
22963 rm -f conftest.in
22964 if cmp -s $ac_file conftest.h 2>/dev/null; then
22965 echo "$ac_file is unchanged"
22966 rm -f conftest.h
22967 else
22968 # Remove last slash and all that follows it. Not all systems have dirname.
22969 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22970 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22971 # The file is in a subdirectory.
22972 test ! -d "$ac_dir" && mkdir "$ac_dir"
22973 fi
22974 rm -f $ac_file
22975 mv conftest.h $ac_file
22976 fi
22977 fi; done
22978
22979 EOF
22980 cat >> $CONFIG_STATUS <<EOF
22981
22982 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22983 LN_S="${LN_S}"
22984
22985
22986 EOF
22987 cat >> $CONFIG_STATUS <<\EOF
22988
22989 if test ! -h wx-config; then
22990 chmod +x wx-config
22991 mv wx-config wx${TOOLCHAIN_NAME}-config
22992 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
22993 fi
22994
22995 if test ! -d lib; then
22996 mkdir lib
22997 fi
22998 if test ! -d lib/wx; then
22999 mkdir lib/wx
23000 fi
23001 if test ! -d lib/wx/include; then
23002 mkdir lib/wx/include
23003 fi
23004 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
23005 mkdir lib/wx/include/${TOOLCHAIN_NAME}
23006 fi
23007 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
23008 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
23009 fi
23010 if test -f setup.h; then
23011 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
23012 fi
23013
23014 exit 0
23015 EOF
23016 chmod +x $CONFIG_STATUS
23017 rm -fr confdefs* $ac_clean_files
23018 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
23019
23020 if test "$no_recursion" != yes; then
23021
23022 # Remove --cache-file and --srcdir arguments so they do not pile up.
23023 ac_sub_configure_args=
23024 ac_prev=
23025 for ac_arg in $ac_configure_args; do
23026 if test -n "$ac_prev"; then
23027 ac_prev=
23028 continue
23029 fi
23030 case "$ac_arg" in
23031 -cache-file | --cache-file | --cache-fil | --cache-fi \
23032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23033 ac_prev=cache_file ;;
23034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
23036 ;;
23037 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23038 ac_prev=srcdir ;;
23039 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23040 ;;
23041 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23042 esac
23043 done
23044
23045 for ac_config_dir in demos samples utils contrib; do
23046
23047 # Do not complain, so a configure script can configure whichever
23048 # parts of a large source tree are present.
23049 if test ! -d $srcdir/$ac_config_dir; then
23050 continue
23051 fi
23052
23053 echo configuring in $ac_config_dir
23054
23055 case "$srcdir" in
23056 .) ;;
23057 *)
23058 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
23059 else
23060 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23061 fi
23062 ;;
23063 esac
23064
23065 ac_popdir=`pwd`
23066 cd $ac_config_dir
23067
23068 # A "../" for each directory in /$ac_config_dir.
23069 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
23070
23071 case "$srcdir" in
23072 .) # No --srcdir option. We are building in place.
23073 ac_sub_srcdir=$srcdir ;;
23074 /*) # Absolute path.
23075 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23076 *) # Relative path.
23077 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23078 esac
23079
23080 # Check for guested configure; otherwise get Cygnus style configure.
23081 if test -f $ac_sub_srcdir/configure; then
23082 ac_sub_configure=$ac_sub_srcdir/configure
23083 elif test -f $ac_sub_srcdir/configure.in; then
23084 ac_sub_configure=$ac_configure
23085 else
23086 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
23087 ac_sub_configure=
23088 fi
23089
23090 # The recursion is here.
23091 if test -n "$ac_sub_configure"; then
23092
23093 # Make the cache file name correct relative to the subdirectory.
23094 case "$cache_file" in
23095 /*) ac_sub_cache_file=$cache_file ;;
23096 *) # Relative path.
23097 ac_sub_cache_file="$ac_dots$cache_file" ;;
23098 esac
23099 case "$ac_given_INSTALL" in
23100 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23101 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23102 esac
23103
23104 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
23105 # The eval makes quoting arguments work.
23106 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23107 then :
23108 else
23109 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23110 fi
23111 fi
23112
23113 cd $ac_popdir
23114 done
23115 fi
23116
23117
23118 echo
23119 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23120 echo ""
23121 echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23122
23123 echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23124 echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23125 echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23126
23127 echo " What level of wxWindows compatibility should be enabled?"
23128 echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
23129 echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23130 echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
23131
23132 echo " Which libraries should wxWindows use?"
23133 echo " jpeg ${wxUSE_LIBJPEG-none}"
23134 echo " png ${wxUSE_LIBPNG-none}"
23135 echo " regex ${wxUSE_REGEX}"
23136 echo " tiff ${wxUSE_LIBTIFF-none}"
23137 echo " zlib ${wxUSE_ZLIB}"
23138
23139 echo ""
23140