]> git.saurik.com Git - wxWidgets.git/blob - configure
lost log.h fixed
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59 # Configure paths for GTK+
60 # Owen Taylor 1997-2001
61
62
63
64
65
66
67
68
69 # Configure paths for GTK+
70 # Owen Taylor 97-11-3
71
72
73
74 # Guess values for system-dependent variables and create Makefiles.
75 # Generated automatically using autoconf version 2.13
76 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
77 #
78 # This configure script is free software; the Free Software Foundation
79 # gives unlimited permission to copy, distribute and modify it.
80
81 # Defaults:
82 ac_help=
83 ac_default_prefix=/usr/local
84 # Any additions from configure.in:
85 ac_help="$ac_help
86 --enable-gui use GUI classes"
87 ac_help="$ac_help
88 --enable-universal use wxWindows GUI controls instead of native ones"
89 ac_help="$ac_help
90 --with-gtk use GTK+"
91 ac_help="$ac_help
92 --with-motif use Motif/Lesstif"
93 ac_help="$ac_help
94 --with-mac use Mac OS X"
95 ac_help="$ac_help
96 --with-wine use WINE"
97 ac_help="$ac_help
98 --with-msw use MS-Windows"
99 ac_help="$ac_help
100 --with-pm use OS/2 Presentation Manager"
101 ac_help="$ac_help
102 --with-mgl use SciTech MGL"
103 ac_help="$ac_help
104 --with-microwin use MicroWindows"
105 ac_help="$ac_help
106 --with-x11 use X11"
107 ac_help="$ac_help
108 --enable-nanox use NanoX"
109 ac_help="$ac_help
110 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
111 ac_help="$ac_help
112 --with-libpng use libpng (PNG image format)"
113 ac_help="$ac_help
114 --with-libjpeg use libjpeg (JPEG file format)"
115 ac_help="$ac_help
116 --with-libtiff use libtiff (TIFF file format)"
117 ac_help="$ac_help
118 --with-opengl use OpenGL (or Mesa)"
119 ac_help="$ac_help
120 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
121 ac_help="$ac_help
122 --with-regex enable support for wxRegEx class"
123 ac_help="$ac_help
124 --with-zlib use zlib for LZW compression"
125 ac_help="$ac_help
126 --with-odbc use the IODBC and wxODBC classes"
127 ac_help="$ac_help
128 --enable-shared create shared library code"
129 ac_help="$ac_help
130 --enable-soname set the DT_SONAME field in ELF shared libraries"
131 ac_help="$ac_help
132 --enable-optimise create optimised code"
133 ac_help="$ac_help
134 --enable-debug same as debug_flag and debug_info"
135 ac_help="$ac_help
136 --enable-precomp enable use of precompiled headers (Mac OS X)"
137 ac_help="$ac_help
138 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
139 ac_help="$ac_help
140 --enable-debug_info create code with debugging information"
141 ac_help="$ac_help
142 --enable-debug_gdb create code with extra GDB debugging information"
143 ac_help="$ac_help
144 --enable-debug_cntxt use wxDebugContext"
145 ac_help="$ac_help
146 --enable-mem_tracing create code with memory tracing"
147 ac_help="$ac_help
148 --enable-profile create code with profiling information"
149 ac_help="$ac_help
150 --enable-no_rtti create code without RTTI information"
151 ac_help="$ac_help
152 --enable-no_exceptions create code without C++ exceptions handling"
153 ac_help="$ac_help
154 --enable-permissive compile code disregarding strict ANSI"
155 ac_help="$ac_help
156 --enable-no_deps create code without dependency information"
157 ac_help="$ac_help
158 --enable-compat20 enable wxWindows 2.0 compatibility"
159 ac_help="$ac_help
160 --disable-compat22 disable wxWindows 2.2 compatibility"
161 ac_help="$ac_help
162 --enable-rpath=DIR output the rpath flag from wx-config"
163 ac_help="$ac_help
164 --enable-intl use internationalization system"
165 ac_help="$ac_help
166 --enable-config use wxConfig (and derived) classes"
167 ac_help="$ac_help
168 --enable-protocols use wxProtocol and derived classes"
169 ac_help="$ac_help
170 --enable-ftp use wxFTP (requires wxProtocol"
171 ac_help="$ac_help
172 --enable-http use wxHTTP (requires wxProtocol"
173 ac_help="$ac_help
174 --enable-fileproto use wxFileProto class (requires wxProtocol"
175 ac_help="$ac_help
176 --enable-sockets use socket/network classes"
177 ac_help="$ac_help
178 --enable-ipc use interprocess communication (wxSocket etc.)"
179 ac_help="$ac_help
180 --enable-cmdline use wxCmdLineParser class"
181 ac_help="$ac_help
182 --enable-datetime use wxDateTime class"
183 ac_help="$ac_help
184 --enable-timedate use obsolete wxDate/wxTime classes"
185 ac_help="$ac_help
186 --enable-stopwatch use wxStopWatch class"
187 ac_help="$ac_help
188 --enable-dialupman use dialup network classes"
189 ac_help="$ac_help
190 --enable-apple_ieee use the Apple IEEE codec"
191 ac_help="$ac_help
192 --enable-timer use wxTimer class"
193 ac_help="$ac_help
194 --enable-wave use wxWave class"
195 ac_help="$ac_help
196 --enable-fraction use wxFraction class"
197 ac_help="$ac_help
198 --enable-dynlib use wxLibrary class for DLL loading"
199 ac_help="$ac_help
200 --enable-dynamicloader use (new) wxDynamicLibrary class"
201 ac_help="$ac_help
202 --enable-longlong use wxLongLong class"
203 ac_help="$ac_help
204 --enable-geometry use geometry class"
205 ac_help="$ac_help
206 --enable-log use logging system"
207 ac_help="$ac_help
208 --enable-streams use wxStream etc classes"
209 ac_help="$ac_help
210 --enable-file use wxFile classes"
211 ac_help="$ac_help
212 --enable-ffile use wxFFile classes"
213 ac_help="$ac_help
214 --enable-textbuf use wxTextBuffer class"
215 ac_help="$ac_help
216 --enable-textfile use wxTextFile class"
217 ac_help="$ac_help
218 --enable-fontmap use font encodings conversion classes"
219 ac_help="$ac_help
220 --enable-unicode compile wxString with Unicode support"
221 ac_help="$ac_help
222 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
223 ac_help="$ac_help
224 --enable-wxprintfv use wxWindows implementation of vprintf()"
225 ac_help="$ac_help
226 --enable-std_iostreams use standard C++ stream classes"
227 ac_help="$ac_help
228 --enable-filesystem use virtual file systems classes"
229 ac_help="$ac_help
230 --enable-fs_inet use virtual HTTP/FTP filesystems"
231 ac_help="$ac_help
232 --enable-fs_zip use virtual ZIP filesystems"
233 ac_help="$ac_help
234 --enable-zipstream use wxZipInputStream"
235 ac_help="$ac_help
236 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
237 ac_help="$ac_help
238 --enable-snglinst use wxSingleInstanceChecker class"
239 ac_help="$ac_help
240 --enable-mimetype use wxMimeTypesManager"
241 ac_help="$ac_help
242 --enable-sysoptions use wxSystemOptions"
243 ac_help="$ac_help
244 --enable-url use wxURL class"
245 ac_help="$ac_help
246 --enable-protocol use wxProtocol class"
247 ac_help="$ac_help
248 --enable-protocol-http HTTP support in wxProtocol"
249 ac_help="$ac_help
250 --enable-protocol-ftp FTP support in wxProtocol"
251 ac_help="$ac_help
252 --enable-protocol-file FILE support in wxProtocol"
253 ac_help="$ac_help
254 --enable-threads use threads"
255 ac_help="$ac_help
256 --enable-docview use document view architecture"
257 ac_help="$ac_help
258 --enable-help use help subsystem"
259 ac_help="$ac_help
260 --enable-mshtmlhelp use MS HTML Help (win32)"
261 ac_help="$ac_help
262 --enable-html use wxHTML sub-library"
263 ac_help="$ac_help
264 --enable-htmlhelp use wxHTML-based help"
265 ac_help="$ac_help
266 --enable-constraints use layout-constraints system"
267 ac_help="$ac_help
268 --enable-printarch use printing architecture"
269 ac_help="$ac_help
270 --enable-mdi use multiple document interface architecture"
271 ac_help="$ac_help
272 --enable-loggui use standard GUI logger"
273 ac_help="$ac_help
274 --enable-logwin use wxLogWindow"
275 ac_help="$ac_help
276 --enable-logdialog use wxLogDialog"
277 ac_help="$ac_help
278 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
279 ac_help="$ac_help
280 --enable-prologio use Prolog IO library"
281 ac_help="$ac_help
282 --enable-resources use wxWindows resources"
283 ac_help="$ac_help
284 --enable-xresources use X resources for save (default for gtk+)"
285 ac_help="$ac_help
286 --enable-clipboard use wxClipboard classes"
287 ac_help="$ac_help
288 --enable-dnd use Drag'n'Drop classes"
289 ac_help="$ac_help
290 --enable-metafile use win32 metafiles"
291 ac_help="$ac_help
292 --enable-treelayout use wxTreeLayout classes"
293 ac_help="$ac_help
294 --enable-controls use all usual controls"
295 ac_help="$ac_help
296 --enable-accel use accelerators"
297 ac_help="$ac_help
298 --enable-button use wxButton class"
299 ac_help="$ac_help
300 --enable-bmpbutton use wxBitmapButton class"
301 ac_help="$ac_help
302 --enable-calendar use wxCalendarCtrl class"
303 ac_help="$ac_help
304 --enable-caret use wxCaret class"
305 ac_help="$ac_help
306 --enable-checkbox use wxCheckBox class"
307 ac_help="$ac_help
308 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
309 ac_help="$ac_help
310 --enable-choice use wxChoice class"
311 ac_help="$ac_help
312 --enable-combobox use wxComboBox classes"
313 ac_help="$ac_help
314 --enable-gauge use wxGauge class"
315 ac_help="$ac_help
316 --enable-grid use wxGrid class"
317 ac_help="$ac_help
318 --enable-newgrid use new wxGrid class"
319 ac_help="$ac_help
320 --enable-imaglist use wxImageList class"
321 ac_help="$ac_help
322 --enable-listbox use wxListBox class"
323 ac_help="$ac_help
324 --enable-listctrl use wxListCtrl class"
325 ac_help="$ac_help
326 --enable-notebook use wxNotebook class"
327 ac_help="$ac_help
328 --enable-propsheet use wxPropertySheet class"
329 ac_help="$ac_help
330 --enable-radiobox use wxRadioBox class"
331 ac_help="$ac_help
332 --enable-radiobtn use wxRadioButton class"
333 ac_help="$ac_help
334 --enable-sash use wxSashWindow class"
335 ac_help="$ac_help
336 --enable-scrollbar use wxScrollBar class and scrollable windows"
337 ac_help="$ac_help
338 --enable-slider use wxSlider class"
339 ac_help="$ac_help
340 --enable-spinbtn use wxSpinButton class"
341 ac_help="$ac_help
342 --enable-spinctrl use wxSpinCtrl class"
343 ac_help="$ac_help
344 --enable-splitter use wxSplitterWindow class"
345 ac_help="$ac_help
346 --enable-statbmp use wxStaticBitmap class"
347 ac_help="$ac_help
348 --enable-statbox use wxStaticBox class"
349 ac_help="$ac_help
350 --enable-statline use wxStaticLine class"
351 ac_help="$ac_help
352 --enable-stattext use wxStaticText class"
353 ac_help="$ac_help
354 --enable-statusbar use wxStatusBar class"
355 ac_help="$ac_help
356 --enable-tabdialog use wxTabControl class"
357 ac_help="$ac_help
358 --enable-textctrl use wxTextCtrl class"
359 ac_help="$ac_help
360 --enable-togglebtn use wxToggleButton class"
361 ac_help="$ac_help
362 --enable-toolbar use wxToolBar class"
363 ac_help="$ac_help
364 --enable-tbarnative use native wxToolBar class"
365 ac_help="$ac_help
366 --enable-tbarsmpl use wxToolBarSimple class"
367 ac_help="$ac_help
368 --enable-treectrl use wxTreeCtrl class"
369 ac_help="$ac_help
370 --enable-tipwindow use wxTipWindow class"
371 ac_help="$ac_help
372 --enable-popupwin use wxPopUpWindow class"
373 ac_help="$ac_help
374 --enable-commondlg use all common dialogs"
375 ac_help="$ac_help
376 --enable-choicedlg use wxChoiceDialog"
377 ac_help="$ac_help
378 --enable-coldlg use wxColourDialog"
379 ac_help="$ac_help
380 --enable-filedlg use wxFileDialog"
381 ac_help="$ac_help
382 --enable-finddlg use wxFindReplaceDialog"
383 ac_help="$ac_help
384 --enable-fontdlg use wxFontDialog"
385 ac_help="$ac_help
386 --enable-dirdlg use wxDirDialog"
387 ac_help="$ac_help
388 --enable-msgdlg use wxMessageDialog"
389 ac_help="$ac_help
390 --enable-numberdlg use wxNumberEntryDialog"
391 ac_help="$ac_help
392 --enable-splash use wxSplashScreen"
393 ac_help="$ac_help
394 --enable-textdlg use wxTextDialog"
395 ac_help="$ac_help
396 --enable-tipdlg use startup tips"
397 ac_help="$ac_help
398 --enable-progressdlg use wxProgressDialog"
399 ac_help="$ac_help
400 --enable-wizarddlg use wxWizard"
401 ac_help="$ac_help
402 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
403 ac_help="$ac_help
404 --enable-miniframe use wxMiniFrame class"
405 ac_help="$ac_help
406 --enable-tooltips use wxToolTip class"
407 ac_help="$ac_help
408 --enable-splines use spline drawing code"
409 ac_help="$ac_help
410 --enable-validators use wxValidator and derived classes"
411 ac_help="$ac_help
412 --enable-busyinfo use wxBusyInfo"
413 ac_help="$ac_help
414 --enable-joystick use wxJoystick (Linux only)"
415 ac_help="$ac_help
416 --enable-metafiles use wxMetaFile (Windows only)"
417 ac_help="$ac_help
418 --enable-dragimage use wxDragImage"
419 ac_help="$ac_help
420 --enable-palette use wxPalette class"
421 ac_help="$ac_help
422 --enable-image use wxImage class"
423 ac_help="$ac_help
424 --enable-gif use gif images (GIF file format)"
425 ac_help="$ac_help
426 --enable-pcx use pcx images (PCX file format)"
427 ac_help="$ac_help
428 --enable-iff use iff images (IFF file format)"
429 ac_help="$ac_help
430 --enable-pnm use pnm images (PNM file format)"
431 ac_help="$ac_help
432 --enable-xpm use xpm images (XPM file format)"
433 ac_help="$ac_help
434 --enable-icocur use Windows ICO and CUR formats"
435 ac_help="$ac_help
436 --disable-largefile omit support for large files"
437 ac_help="$ac_help
438 --disable-gtktest do not try to compile and run a test GTK+ program"
439 ac_help="$ac_help
440 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
441 ac_help="$ac_help
442 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
443 ac_help="$ac_help
444 --disable-gtktest Do not try to compile and run a test GTK program"
445 ac_help="$ac_help
446 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
447 ac_help="$ac_help
448 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
449 ac_help="$ac_help
450 --disable-gtktest Do not try to compile and run a test GTK program"
451 ac_help="$ac_help
452 --with-x use the X Window System"
453 ac_help="$ac_help
454 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
455
456 # Initialize some variables set by options.
457 # The variables have the same names as the options, with
458 # dashes changed to underlines.
459 build=NONE
460 cache_file=./config.cache
461 exec_prefix=NONE
462 host=NONE
463 no_create=
464 nonopt=NONE
465 no_recursion=
466 prefix=NONE
467 program_prefix=NONE
468 program_suffix=NONE
469 program_transform_name=s,x,x,
470 silent=
471 site=
472 srcdir=
473 target=NONE
474 verbose=
475 x_includes=NONE
476 x_libraries=NONE
477 bindir='${exec_prefix}/bin'
478 sbindir='${exec_prefix}/sbin'
479 libexecdir='${exec_prefix}/libexec'
480 datadir='${prefix}/share'
481 sysconfdir='${prefix}/etc'
482 sharedstatedir='${prefix}/com'
483 localstatedir='${prefix}/var'
484 libdir='${exec_prefix}/lib'
485 includedir='${prefix}/include'
486 oldincludedir='/usr/include'
487 infodir='${prefix}/info'
488 mandir='${prefix}/man'
489
490 # Initialize some other variables.
491 subdirs=
492 MFLAGS= MAKEFLAGS=
493 SHELL=${CONFIG_SHELL-/bin/sh}
494 # Maximum number of lines to put in a shell here document.
495 ac_max_here_lines=12
496
497 ac_prev=
498 for ac_option
499 do
500
501 # If the previous option needs an argument, assign it.
502 if test -n "$ac_prev"; then
503 eval "$ac_prev=\$ac_option"
504 ac_prev=
505 continue
506 fi
507
508 case "$ac_option" in
509 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
510 *) ac_optarg= ;;
511 esac
512
513 # Accept the important Cygnus configure options, so we can diagnose typos.
514
515 case "$ac_option" in
516
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
518 ac_prev=bindir ;;
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520 bindir="$ac_optarg" ;;
521
522 -build | --build | --buil | --bui | --bu)
523 ac_prev=build ;;
524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
525 build="$ac_optarg" ;;
526
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
532 cache_file="$ac_optarg" ;;
533
534 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
535 ac_prev=datadir ;;
536 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
537 | --da=*)
538 datadir="$ac_optarg" ;;
539
540 -disable-* | --disable-*)
541 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
542 # Reject names that are not valid shell variable names.
543 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
544 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
545 fi
546 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
547 eval "enable_${ac_feature}=no" ;;
548
549 -enable-* | --enable-*)
550 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
551 # Reject names that are not valid shell variable names.
552 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
553 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
554 fi
555 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
556 case "$ac_option" in
557 *=*) ;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "enable_${ac_feature}='$ac_optarg'" ;;
561
562 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
563 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
564 | --exec | --exe | --ex)
565 ac_prev=exec_prefix ;;
566 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
567 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
568 | --exec=* | --exe=* | --ex=*)
569 exec_prefix="$ac_optarg" ;;
570
571 -gas | --gas | --ga | --g)
572 # Obsolete; use --with-gas.
573 with_gas=yes ;;
574
575 -help | --help | --hel | --he)
576 # Omit some internal or obsolete options to make the list less imposing.
577 # This message is too long to be a string in the A/UX 3.1 sh.
578 cat << EOF
579 Usage: configure [options] [host]
580 Options: [defaults in brackets after descriptions]
581 Configuration:
582 --cache-file=FILE cache test results in FILE
583 --help print this message
584 --no-create do not create output files
585 --quiet, --silent do not print \`checking...' messages
586 --version print the version of autoconf that created configure
587 Directory and file names:
588 --prefix=PREFIX install architecture-independent files in PREFIX
589 [$ac_default_prefix]
590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
591 [same as prefix]
592 --bindir=DIR user executables in DIR [EPREFIX/bin]
593 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
594 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
595 --datadir=DIR read-only architecture-independent data in DIR
596 [PREFIX/share]
597 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
598 --sharedstatedir=DIR modifiable architecture-independent data in DIR
599 [PREFIX/com]
600 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
601 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
602 --includedir=DIR C header files in DIR [PREFIX/include]
603 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
604 --infodir=DIR info documentation in DIR [PREFIX/info]
605 --mandir=DIR man documentation in DIR [PREFIX/man]
606 --srcdir=DIR find the sources in DIR [configure dir or ..]
607 --program-prefix=PREFIX prepend PREFIX to installed program names
608 --program-suffix=SUFFIX append SUFFIX to installed program names
609 --program-transform-name=PROGRAM
610 run sed PROGRAM on installed program names
611 EOF
612 cat << EOF
613 Host type:
614 --build=BUILD configure for building on BUILD [BUILD=HOST]
615 --host=HOST configure for HOST [guessed]
616 --target=TARGET configure for TARGET [TARGET=HOST]
617 Features and packages:
618 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
619 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
622 --x-includes=DIR X include files are in DIR
623 --x-libraries=DIR X library files are in DIR
624 EOF
625 if test -n "$ac_help"; then
626 echo "--enable and --with options recognized:$ac_help"
627 fi
628 exit 0 ;;
629
630 -host | --host | --hos | --ho)
631 ac_prev=host ;;
632 -host=* | --host=* | --hos=* | --ho=*)
633 host="$ac_optarg" ;;
634
635 -includedir | --includedir | --includedi | --included | --include \
636 | --includ | --inclu | --incl | --inc)
637 ac_prev=includedir ;;
638 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
639 | --includ=* | --inclu=* | --incl=* | --inc=*)
640 includedir="$ac_optarg" ;;
641
642 -infodir | --infodir | --infodi | --infod | --info | --inf)
643 ac_prev=infodir ;;
644 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
645 infodir="$ac_optarg" ;;
646
647 -libdir | --libdir | --libdi | --libd)
648 ac_prev=libdir ;;
649 -libdir=* | --libdir=* | --libdi=* | --libd=*)
650 libdir="$ac_optarg" ;;
651
652 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
653 | --libexe | --libex | --libe)
654 ac_prev=libexecdir ;;
655 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
656 | --libexe=* | --libex=* | --libe=*)
657 libexecdir="$ac_optarg" ;;
658
659 -localstatedir | --localstatedir | --localstatedi | --localstated \
660 | --localstate | --localstat | --localsta | --localst \
661 | --locals | --local | --loca | --loc | --lo)
662 ac_prev=localstatedir ;;
663 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
664 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
665 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
666 localstatedir="$ac_optarg" ;;
667
668 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
669 ac_prev=mandir ;;
670 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
671 mandir="$ac_optarg" ;;
672
673 -nfp | --nfp | --nf)
674 # Obsolete; use --without-fp.
675 with_fp=no ;;
676
677 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
678 | --no-cr | --no-c)
679 no_create=yes ;;
680
681 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
682 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
683 no_recursion=yes ;;
684
685 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
686 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
687 | --oldin | --oldi | --old | --ol | --o)
688 ac_prev=oldincludedir ;;
689 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
690 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
691 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
692 oldincludedir="$ac_optarg" ;;
693
694 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
695 ac_prev=prefix ;;
696 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
697 prefix="$ac_optarg" ;;
698
699 -program-prefix | --program-prefix | --program-prefi | --program-pref \
700 | --program-pre | --program-pr | --program-p)
701 ac_prev=program_prefix ;;
702 -program-prefix=* | --program-prefix=* | --program-prefi=* \
703 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
704 program_prefix="$ac_optarg" ;;
705
706 -program-suffix | --program-suffix | --program-suffi | --program-suff \
707 | --program-suf | --program-su | --program-s)
708 ac_prev=program_suffix ;;
709 -program-suffix=* | --program-suffix=* | --program-suffi=* \
710 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
711 program_suffix="$ac_optarg" ;;
712
713 -program-transform-name | --program-transform-name \
714 | --program-transform-nam | --program-transform-na \
715 | --program-transform-n | --program-transform- \
716 | --program-transform | --program-transfor \
717 | --program-transfo | --program-transf \
718 | --program-trans | --program-tran \
719 | --progr-tra | --program-tr | --program-t)
720 ac_prev=program_transform_name ;;
721 -program-transform-name=* | --program-transform-name=* \
722 | --program-transform-nam=* | --program-transform-na=* \
723 | --program-transform-n=* | --program-transform-=* \
724 | --program-transform=* | --program-transfor=* \
725 | --program-transfo=* | --program-transf=* \
726 | --program-trans=* | --program-tran=* \
727 | --progr-tra=* | --program-tr=* | --program-t=*)
728 program_transform_name="$ac_optarg" ;;
729
730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
731 | -silent | --silent | --silen | --sile | --sil)
732 silent=yes ;;
733
734 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
735 ac_prev=sbindir ;;
736 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
737 | --sbi=* | --sb=*)
738 sbindir="$ac_optarg" ;;
739
740 -sharedstatedir | --sharedstatedir | --sharedstatedi \
741 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
742 | --sharedst | --shareds | --shared | --share | --shar \
743 | --sha | --sh)
744 ac_prev=sharedstatedir ;;
745 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
746 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
747 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
748 | --sha=* | --sh=*)
749 sharedstatedir="$ac_optarg" ;;
750
751 -site | --site | --sit)
752 ac_prev=site ;;
753 -site=* | --site=* | --sit=*)
754 site="$ac_optarg" ;;
755
756 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
757 ac_prev=srcdir ;;
758 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
759 srcdir="$ac_optarg" ;;
760
761 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
762 | --syscon | --sysco | --sysc | --sys | --sy)
763 ac_prev=sysconfdir ;;
764 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
765 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
766 sysconfdir="$ac_optarg" ;;
767
768 -target | --target | --targe | --targ | --tar | --ta | --t)
769 ac_prev=target ;;
770 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
771 target="$ac_optarg" ;;
772
773 -v | -verbose | --verbose | --verbos | --verbo | --verb)
774 verbose=yes ;;
775
776 -version | --version | --versio | --versi | --vers)
777 echo "configure generated by autoconf version 2.13"
778 exit 0 ;;
779
780 -with-* | --with-*)
781 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
782 # Reject names that are not valid shell variable names.
783 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
784 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
785 fi
786 ac_package=`echo $ac_package| sed 's/-/_/g'`
787 case "$ac_option" in
788 *=*) ;;
789 *) ac_optarg=yes ;;
790 esac
791 eval "with_${ac_package}='$ac_optarg'" ;;
792
793 -without-* | --without-*)
794 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
795 # Reject names that are not valid shell variable names.
796 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
797 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
798 fi
799 ac_package=`echo $ac_package| sed 's/-/_/g'`
800 eval "with_${ac_package}=no" ;;
801
802 --x)
803 # Obsolete; use --with-x.
804 with_x=yes ;;
805
806 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
807 | --x-incl | --x-inc | --x-in | --x-i)
808 ac_prev=x_includes ;;
809 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
810 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
811 x_includes="$ac_optarg" ;;
812
813 -x-libraries | --x-libraries | --x-librarie | --x-librari \
814 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
815 ac_prev=x_libraries ;;
816 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
817 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
818 x_libraries="$ac_optarg" ;;
819
820 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
821 ;;
822
823 *)
824 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
825 echo "configure: warning: $ac_option: invalid host type" 1>&2
826 fi
827 if test "x$nonopt" != xNONE; then
828 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
829 fi
830 nonopt="$ac_option"
831 ;;
832
833 esac
834 done
835
836 if test -n "$ac_prev"; then
837 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
838 fi
839
840 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
841
842 # File descriptor usage:
843 # 0 standard input
844 # 1 file creation
845 # 2 errors and warnings
846 # 3 some systems may open it to /dev/tty
847 # 4 used on the Kubota Titan
848 # 6 checking for... messages and results
849 # 5 compiler messages saved in config.log
850 if test "$silent" = yes; then
851 exec 6>/dev/null
852 else
853 exec 6>&1
854 fi
855 exec 5>./config.log
856
857 echo "\
858 This file contains any messages produced by compilers while
859 running configure, to aid debugging if configure makes a mistake.
860 " 1>&5
861
862 # Strip out --no-create and --no-recursion so they do not pile up.
863 # Also quote any args containing shell metacharacters.
864 ac_configure_args=
865 for ac_arg
866 do
867 case "$ac_arg" in
868 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
869 | --no-cr | --no-c) ;;
870 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
871 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
872 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
873 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
874 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
875 esac
876 done
877
878 # NLS nuisances.
879 # Only set these to C if already set. These must not be set unconditionally
880 # because not all systems understand e.g. LANG=C (notably SCO).
881 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
882 # Non-C LC_CTYPE values break the ctype check.
883 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
884 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
885 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
886 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
887
888 # confdefs.h avoids OS command line length limits that DEFS can exceed.
889 rm -rf conftest* confdefs.h
890 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
891 echo > confdefs.h
892
893 # A filename unique to this package, relative to the directory that
894 # configure is in, which we can look for to find out if srcdir is correct.
895 ac_unique_file=wx-config.in
896
897 # Find the source files, if location was not specified.
898 if test -z "$srcdir"; then
899 ac_srcdir_defaulted=yes
900 # Try the directory containing this script, then its parent.
901 ac_prog=$0
902 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
903 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
904 srcdir=$ac_confdir
905 if test ! -r $srcdir/$ac_unique_file; then
906 srcdir=..
907 fi
908 else
909 ac_srcdir_defaulted=no
910 fi
911 if test ! -r $srcdir/$ac_unique_file; then
912 if test "$ac_srcdir_defaulted" = yes; then
913 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
914 else
915 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
916 fi
917 fi
918 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
919
920 # Prefer explicitly selected file to automatically selected ones.
921 if test -z "$CONFIG_SITE"; then
922 if test "x$prefix" != xNONE; then
923 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
924 else
925 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
926 fi
927 fi
928 for ac_site_file in $CONFIG_SITE; do
929 if test -r "$ac_site_file"; then
930 echo "loading site script $ac_site_file"
931 . "$ac_site_file"
932 fi
933 done
934
935 if test -r "$cache_file"; then
936 echo "loading cache $cache_file"
937 . $cache_file
938 else
939 echo "creating cache $cache_file"
940 > $cache_file
941 fi
942
943 ac_ext=c
944 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
945 ac_cpp='$CPP $CPPFLAGS'
946 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
947 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
948 cross_compiling=$ac_cv_prog_cc_cross
949
950 ac_exeext=
951 ac_objext=o
952 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
953 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
954 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
955 ac_n= ac_c='
956 ' ac_t=' '
957 else
958 ac_n=-n ac_c= ac_t=
959 fi
960 else
961 ac_n= ac_c='\c' ac_t=
962 fi
963
964
965
966 ac_aux_dir=
967 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
968 if test -f $ac_dir/install-sh; then
969 ac_aux_dir=$ac_dir
970 ac_install_sh="$ac_aux_dir/install-sh -c"
971 break
972 elif test -f $ac_dir/install.sh; then
973 ac_aux_dir=$ac_dir
974 ac_install_sh="$ac_aux_dir/install.sh -c"
975 break
976 fi
977 done
978 if test -z "$ac_aux_dir"; then
979 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
980 fi
981 ac_config_guess=$ac_aux_dir/config.guess
982 ac_config_sub=$ac_aux_dir/config.sub
983 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
984
985
986 # Do some error checking and defaulting for the host and target type.
987 # The inputs are:
988 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
989 #
990 # The rules are:
991 # 1. You are not allowed to specify --host, --target, and nonopt at the
992 # same time.
993 # 2. Host defaults to nonopt.
994 # 3. If nonopt is not specified, then host defaults to the current host,
995 # as determined by config.guess.
996 # 4. Target and build default to nonopt.
997 # 5. If nonopt is not specified, then target and build default to host.
998
999 # The aliases save the names the user supplied, while $host etc.
1000 # will get canonicalized.
1001 case $host---$target---$nonopt in
1002 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1003 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1004 esac
1005
1006
1007 # Make sure we can run config.sub.
1008 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1009 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1010 fi
1011
1012 echo $ac_n "checking host system type""... $ac_c" 1>&6
1013 echo "configure:1014: checking host system type" >&5
1014
1015 host_alias=$host
1016 case "$host_alias" in
1017 NONE)
1018 case $nonopt in
1019 NONE)
1020 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1021 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1022 fi ;;
1023 *) host_alias=$nonopt ;;
1024 esac ;;
1025 esac
1026
1027 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1028 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1029 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1030 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1031 echo "$ac_t""$host" 1>&6
1032
1033 echo $ac_n "checking target system type""... $ac_c" 1>&6
1034 echo "configure:1035: checking target system type" >&5
1035
1036 target_alias=$target
1037 case "$target_alias" in
1038 NONE)
1039 case $nonopt in
1040 NONE) target_alias=$host_alias ;;
1041 *) target_alias=$nonopt ;;
1042 esac ;;
1043 esac
1044
1045 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1046 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1047 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1048 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1049 echo "$ac_t""$target" 1>&6
1050
1051 echo $ac_n "checking build system type""... $ac_c" 1>&6
1052 echo "configure:1053: checking build system type" >&5
1053
1054 build_alias=$build
1055 case "$build_alias" in
1056 NONE)
1057 case $nonopt in
1058 NONE) build_alias=$host_alias ;;
1059 *) build_alias=$nonopt ;;
1060 esac ;;
1061 esac
1062
1063 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1064 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1065 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1066 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1067 echo "$ac_t""$build" 1>&6
1068
1069 test "$host_alias" != "$target_alias" &&
1070 test "$program_prefix$program_suffix$program_transform_name" = \
1071 NONENONEs,x,x, &&
1072 program_prefix=${target_alias}-
1073
1074
1075
1076 WX_MAJOR_VERSION_NUMBER=2
1077 WX_MINOR_VERSION_NUMBER=3
1078 WX_RELEASE_NUMBER=3
1079
1080 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1081 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1082
1083 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1084
1085 WX_CURRENT=2
1086 WX_REVISION=0
1087 WX_AGE=0
1088
1089
1090
1091 USE_UNIX=1
1092 USE_WIN32=0
1093 USE_DOS=0
1094 USE_BEOS=0
1095 USE_MAC=0
1096
1097 USE_LINUX=
1098 USE_SGI=
1099 USE_HPUX=
1100 USE_SYSV=
1101 USE_SVR4=
1102 USE_AIX=
1103 USE_SUN=
1104 USE_SOLARIS=
1105 USE_SUNOS=
1106 USE_ALPHA=
1107 USE_OSF=
1108 USE_BSD=
1109 USE_DARWIN=
1110 USE_FREEBSD=
1111 USE_OPENBSD=
1112 USE_NETBSD=
1113 USE_VMS=
1114 USE_ULTRIX=
1115 USE_DATA_GENERAL=
1116
1117 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1118
1119 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1120
1121 DEFAULT_wxUSE_GTK=0
1122 DEFAULT_wxUSE_MAC=0
1123 DEFAULT_wxUSE_MGL=0
1124 DEFAULT_wxUSE_MICROWIN=0
1125 DEFAULT_wxUSE_MOTIF=0
1126 DEFAULT_wxUSE_MSW=0
1127 DEFAULT_wxUSE_PM=0
1128 DEFAULT_wxUSE_WINE=0
1129 DEFAULT_wxUSE_X11=0
1130
1131 DEFAULT_DEFAULT_wxUSE_GTK=0
1132 DEFAULT_DEFAULT_wxUSE_MAC=0
1133 DEFAULT_DEFAULT_wxUSE_MGL=0
1134 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1135 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1136 DEFAULT_DEFAULT_wxUSE_MSW=0
1137 DEFAULT_DEFAULT_wxUSE_PM=0
1138 DEFAULT_DEFAULT_wxUSE_WINE=0
1139 DEFAULT_DEFAULT_wxUSE_X11=0
1140
1141 PROGRAM_EXT=
1142 SO_SUFFIX=so
1143
1144 case "${host}" in
1145 *-hp-hpux* )
1146 USE_HPUX=1
1147 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1148 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1149 SO_SUFFIX=sl
1150 cat >> confdefs.h <<\EOF
1151 #define __HPUX__ 1
1152 EOF
1153
1154 ;;
1155 *-*-linux* )
1156 USE_LINUX=1
1157 cat >> confdefs.h <<\EOF
1158 #define __LINUX__ 1
1159 EOF
1160
1161 TMP=`uname -m`
1162 if test "x$TMP" = "xalpha"; then
1163 USE_ALPHA=1
1164 cat >> confdefs.h <<\EOF
1165 #define __ALPHA__ 1
1166 EOF
1167
1168 fi
1169 DEFAULT_DEFAULT_wxUSE_GTK=1
1170 ;;
1171 *-*-irix5* | *-*-irix6* )
1172 USE_SGI=1
1173 USE_SVR4=1
1174 cat >> confdefs.h <<\EOF
1175 #define __SGI__ 1
1176 EOF
1177
1178 cat >> confdefs.h <<\EOF
1179 #define __SVR4__ 1
1180 EOF
1181
1182 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1183 ;;
1184 *-*-solaris2* )
1185 USE_SUN=1
1186 USE_SOLARIS=1
1187 USE_SVR4=1
1188 cat >> confdefs.h <<\EOF
1189 #define __SUN__ 1
1190 EOF
1191
1192 cat >> confdefs.h <<\EOF
1193 #define __SOLARIS__ 1
1194 EOF
1195
1196 cat >> confdefs.h <<\EOF
1197 #define __SVR4__ 1
1198 EOF
1199
1200 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1201 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1202 ;;
1203 *-*-sunos4* )
1204 USE_SUN=1
1205 USE_SUNOS=1
1206 USE_BSD=1
1207 cat >> confdefs.h <<\EOF
1208 #define __SUN__ 1
1209 EOF
1210
1211 cat >> confdefs.h <<\EOF
1212 #define __SUNOS__ 1
1213 EOF
1214
1215 cat >> confdefs.h <<\EOF
1216 #define __BSD__ 1
1217 EOF
1218
1219 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1220 ;;
1221 *-*-freebsd*)
1222 USE_BSD=1
1223 USE_FREEBSD=1
1224 cat >> confdefs.h <<\EOF
1225 #define __FREEBSD__ 1
1226 EOF
1227
1228 cat >> confdefs.h <<\EOF
1229 #define __BSD__ 1
1230 EOF
1231
1232 DEFAULT_DEFAULT_wxUSE_GTK=1
1233 ;;
1234 *-*-openbsd*)
1235 USE_BSD=1
1236 USE_OPENBSD=1
1237 cat >> confdefs.h <<\EOF
1238 #define __FREEBSD__ 1
1239 EOF
1240
1241 cat >> confdefs.h <<\EOF
1242 #define __OPENBSD__ 1
1243 EOF
1244
1245 DEFAULT_DEFAULT_wxUSE_GTK=1
1246 ;;
1247 *-*-netbsd*)
1248 USE_BSD=1
1249 USE_NETBSD=1
1250 cat >> confdefs.h <<\EOF
1251 #define __FREEBSD__ 1
1252 EOF
1253
1254 cat >> confdefs.h <<\EOF
1255 #define __NETBSD__ 1
1256 EOF
1257
1258 DEFAULT_DEFAULT_wxUSE_GTK=1
1259 ;;
1260 *-*-osf* )
1261 USE_ALPHA=1
1262 USE_OSF=1
1263 cat >> confdefs.h <<\EOF
1264 #define __ALPHA__ 1
1265 EOF
1266
1267 cat >> confdefs.h <<\EOF
1268 #define __OSF__ 1
1269 EOF
1270
1271 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1272 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1273 ;;
1274 *-*-dgux5* )
1275 USE_ALPHA=1
1276 USE_SVR4=1
1277 cat >> confdefs.h <<\EOF
1278 #define __ALPHA__ 1
1279 EOF
1280
1281 cat >> confdefs.h <<\EOF
1282 #define __SVR4__ 1
1283 EOF
1284
1285 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1286 ;;
1287 *-*-sysv5* )
1288 USE_SYSV=1
1289 USE_SVR4=1
1290 cat >> confdefs.h <<\EOF
1291 #define __SYSV__ 1
1292 EOF
1293
1294 cat >> confdefs.h <<\EOF
1295 #define __SVR4__ 1
1296 EOF
1297
1298 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1299 ;;
1300 *-*-aix* )
1301 USE_AIX=1
1302 USE_SYSV=1
1303 USE_SVR4=1
1304 SO_SUFFIX=a
1305 cat >> confdefs.h <<\EOF
1306 #define __AIX__ 1
1307 EOF
1308
1309 cat >> confdefs.h <<\EOF
1310 #define __SYSV__ 1
1311 EOF
1312
1313 cat >> confdefs.h <<\EOF
1314 #define __SVR4__ 1
1315 EOF
1316
1317 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1318 ;;
1319
1320 *-*-cygwin* | *-*-mingw32* )
1321 SO_SUFFIX=dll
1322 PROGRAM_EXT=".exe"
1323 RESCOMP=windres
1324 DEFAULT_DEFAULT_wxUSE_MSW=1
1325 ;;
1326
1327 *-pc-msdosdjgpp )
1328 USE_UNIX=0
1329 USE_DOS=1
1330 cat >> confdefs.h <<\EOF
1331 #define __DOS__ 1
1332 EOF
1333
1334 PROGRAM_EXT=".exe"
1335 DEFAULT_DEFAULT_wxUSE_MGL=1
1336 LIBS="$LIBS -lstdc++"
1337 ;;
1338
1339 *-pc-os2_emx | *-pc-os2-emx )
1340 cat >> confdefs.h <<\EOF
1341 #define __EMX__ 1
1342 EOF
1343
1344 PROGRAM_EXT=".exe"
1345 DEFAULT_DEFAULT_wxUSE_PM=1
1346 ;;
1347
1348 powerpc-*-darwin* )
1349 USE_BSD=1
1350 USE_DARWIN=1
1351 SO_SUFFIX=dylib
1352 cat >> confdefs.h <<\EOF
1353 #define __BSD__ 1
1354 EOF
1355
1356 cat >> confdefs.h <<\EOF
1357 #define __DARWIN__ 1
1358 EOF
1359
1360 cat >> confdefs.h <<\EOF
1361 #define __POWERPC__ 1
1362 EOF
1363
1364 DEFAULT_DEFAULT_wxUSE_MAC=1
1365 ;;
1366
1367 *-*-beos* )
1368 USE_BEOS=1
1369 cat >> confdefs.h <<\EOF
1370 #define __BEOS__ 1
1371 EOF
1372
1373 ;;
1374
1375 *)
1376 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1377 esac
1378
1379
1380
1381
1382 wx_arg_cache_file="configarg.cache"
1383 echo "loading argument cache $wx_arg_cache_file"
1384 rm -f ${wx_arg_cache_file}.tmp
1385 touch ${wx_arg_cache_file}.tmp
1386 touch ${wx_arg_cache_file}
1387
1388
1389 DEBUG_CONFIGURE=0
1390 if test $DEBUG_CONFIGURE = 1; then
1391 DEFAULT_wxUSE_UNIVERSAL=no
1392
1393 DEFAULT_wxUSE_NANOX=no
1394
1395 DEFAULT_wxUSE_THREADS=yes
1396
1397 DEFAULT_wxUSE_SHARED=yes
1398 DEFAULT_wxUSE_SONAME=no
1399 DEFAULT_wxUSE_OPTIMISE=no
1400 DEFAULT_wxUSE_PROFILE=no
1401 DEFAULT_wxUSE_NO_DEPS=no
1402 DEFAULT_wxUSE_NO_RTTI=no
1403 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1404 DEFAULT_wxUSE_PERMISSIVE=no
1405 DEFAULT_wxUSE_DEBUG_FLAG=yes
1406 DEFAULT_wxUSE_DEBUG_INFO=yes
1407 DEFAULT_wxUSE_DEBUG_GDB=yes
1408 DEFAULT_wxUSE_MEM_TRACING=no
1409 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1410 DEFAULT_wxUSE_DMALLOC=no
1411 DEFAULT_wxUSE_PRECOMP=no
1412 DEFAULT_wxUSE_APPLE_IEEE=no
1413
1414 DEFAULT_wxUSE_LOG=yes
1415 DEFAULT_wxUSE_LOGWINDOW=no
1416 DEFAULT_wxUSE_LOGGUI=no
1417 DEFAULT_wxUSE_LOGDIALOG=no
1418
1419 DEFAULT_wxUSE_GUI=yes
1420 DEFAULT_wxUSE_CONTROLS=no
1421
1422 DEFAULT_wxUSE_REGEX=no
1423 DEFAULT_wxUSE_ZLIB=no
1424 DEFAULT_wxUSE_LIBPNG=no
1425 DEFAULT_wxUSE_LIBJPEG=no
1426 DEFAULT_wxUSE_LIBTIFF=no
1427 DEFAULT_wxUSE_ODBC=no
1428 DEFAULT_wxUSE_OPENGL=no
1429
1430 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1431 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1432 DEFAULT_wxUSE_STD_IOSTREAM=no
1433 DEFAULT_wxUSE_CMDLINE_PARSER=no
1434 DEFAULT_wxUSE_DATETIME=no
1435 DEFAULT_wxUSE_TIMEDATE=no
1436 DEFAULT_wxUSE_TIMER=no
1437 DEFAULT_wxUSE_STOPWATCH=no
1438 DEFAULT_wxUSE_FILE=no
1439 DEFAULT_wxUSE_FFILE=no
1440 DEFAULT_wxUSE_TEXTBUFFER=no
1441 DEFAULT_wxUSE_TEXTFILE=no
1442 DEFAULT_wxUSE_WAVE=no
1443 DEFAULT_wxUSE_INTL=no
1444 DEFAULT_wxUSE_CONFIG=no
1445 DEFAULT_wxUSE_FONTMAP=no
1446 DEFAULT_wxUSE_STREAMS=no
1447 DEFAULT_wxUSE_SOCKETS=no
1448 DEFAULT_wxUSE_DIALUP_MANAGER=no
1449 DEFAULT_wxUSE_JOYSTICK=no
1450 DEFAULT_wxUSE_DYNLIB_CLASS=no
1451 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1452 DEFAULT_wxUSE_LONGLONG=no
1453 DEFAULT_wxUSE_GEOMETRY=no
1454
1455 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1456 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1457 DEFAULT_wxUSE_POSTSCRIPT=no
1458
1459 DEFAULT_wxUSE_X_RESOURCES=no
1460 DEFAULT_wxUSE_CLIPBOARD=no
1461 DEFAULT_wxUSE_TOOLTIPS=no
1462 DEFAULT_wxUSE_DRAG_AND_DROP=no
1463 DEFAULT_wxUSE_DRAGIMAGE=no
1464 DEFAULT_wxUSE_SPLINES=no
1465
1466 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1467 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1468 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1469
1470 DEFAULT_wxUSE_PROLOGIO=no
1471 DEFAULT_wxUSE_RESOURCES=no
1472 DEFAULT_wxUSE_CONSTRAINTS=no
1473 DEFAULT_wxUSE_IPC=no
1474 DEFAULT_wxUSE_HELP=no
1475 DEFAULT_wxUSE_MS_HTML_HELP=no
1476 DEFAULT_wxUSE_WXHTML_HELP=no
1477 DEFAULT_wxUSE_TREELAYOUT=no
1478 DEFAULT_wxUSE_METAFILE=no
1479 DEFAULT_wxUSE_MIMETYPE=no
1480 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1481 DEFAULT_wxUSE_PROTOCOL=no
1482 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1483 DEFAULT_wxUSE_PROTOCOL_FTP=no
1484 DEFAULT_wxUSE_PROTOCOL_FILE=no
1485 DEFAULT_wxUSE_URL=no
1486
1487 DEFAULT_wxUSE_COMMONDLGS=no
1488 DEFAULT_wxUSE_CHOICEDLG=no
1489 DEFAULT_wxUSE_COLOURDLG=no
1490 DEFAULT_wxUSE_DIRDLG=no
1491 DEFAULT_wxUSE_FILEDLG=no
1492 DEFAULT_wxUSE_FINDREPLDLG=no
1493 DEFAULT_wxUSE_FONTDLG=no
1494 DEFAULT_wxUSE_MSGDLG=no
1495 DEFAULT_wxUSE_NUMBERDLG=no
1496 DEFAULT_wxUSE_TEXTDLG=no
1497 DEFAULT_wxUSE_SPLASH=no
1498 DEFAULT_wxUSE_STARTUP_TIPS=no
1499 DEFAULT_wxUSE_PROGRESSDLG=no
1500 DEFAULT_wxUSE_WIZARDDLG=no
1501
1502 DEFAULT_wxUSE_MENUS=no
1503 DEFAULT_wxUSE_MINIFRAME=no
1504 DEFAULT_wxUSE_HTML=no
1505 DEFAULT_wxUSE_FILESYSTEM=no
1506 DEFAULT_wxUSE_FS_INET=no
1507 DEFAULT_wxUSE_FS_ZIP=no
1508 DEFAULT_wxUSE_BUSYINFO=no
1509 DEFAULT_wxUSE_ZIPSTREAM=no
1510 DEFAULT_wxUSE_VALIDATORS=no
1511
1512 DEFAULT_wxUSE_ACCEL=no
1513 DEFAULT_wxUSE_BUTTON=no
1514 DEFAULT_wxUSE_BMPBUTTON=no
1515 DEFAULT_wxUSE_CALCTRL=no
1516 DEFAULT_wxUSE_CARET=no
1517 DEFAULT_wxUSE_CHECKBOX=no
1518 DEFAULT_wxUSE_CHECKLST=no
1519 DEFAULT_wxUSE_CHOICE=no
1520 DEFAULT_wxUSE_COMBOBOX=no
1521 DEFAULT_wxUSE_GAUGE=no
1522 DEFAULT_wxUSE_GRID=no
1523 DEFAULT_wxUSE_NEW_GRID=no
1524 DEFAULT_wxUSE_IMAGLIST=no
1525 DEFAULT_wxUSE_LISTBOX=no
1526 DEFAULT_wxUSE_LISTCTRL=no
1527 DEFAULT_wxUSE_NOTEBOOK=no
1528 DEFAULT_wxUSE_PROPSHEET=no
1529 DEFAULT_wxUSE_RADIOBOX=no
1530 DEFAULT_wxUSE_RADIOBTN=no
1531 DEFAULT_wxUSE_SASH=no
1532 DEFAULT_wxUSE_SCROLLBAR=no
1533 DEFAULT_wxUSE_SLIDER=no
1534 DEFAULT_wxUSE_SPINBTN=no
1535 DEFAULT_wxUSE_SPINCTRL=no
1536 DEFAULT_wxUSE_SPLITTER=no
1537 DEFAULT_wxUSE_STATBMP=no
1538 DEFAULT_wxUSE_STATBOX=no
1539 DEFAULT_wxUSE_STATLINE=no
1540 DEFAULT_wxUSE_STATTEXT=no
1541 DEFAULT_wxUSE_STATUSBAR=yes
1542 DEFAULT_wxUSE_TABDIALOG=no
1543 DEFAULT_wxUSE_TEXTCTRL=no
1544 DEFAULT_wxUSE_TOGGLEBTN=no
1545 DEFAULT_wxUSE_TOOLBAR=no
1546 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1547 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1548 DEFAULT_wxUSE_TREECTRL=no
1549 DEFAULT_wxUSE_POPUPWIN=no
1550 DEFAULT_wxUSE_TIPWINDOW=no
1551
1552 DEFAULT_wxUSE_UNICODE=no
1553 DEFAULT_wxUSE_UNICODE_MSLU=no
1554 DEFAULT_wxUSE_WCSRTOMBS=no
1555
1556 DEFAULT_wxUSE_PALETTE=no
1557 DEFAULT_wxUSE_IMAGE=no
1558 DEFAULT_wxUSE_GIF=no
1559 DEFAULT_wxUSE_PCX=no
1560 DEFAULT_wxUSE_PNM=no
1561 DEFAULT_wxUSE_IFF=no
1562 DEFAULT_wxUSE_XPM=no
1563 DEFAULT_wxUSE_ICO_CUR=no
1564 else
1565 DEFAULT_wxUSE_UNIVERSAL=no
1566
1567 DEFAULT_wxUSE_NANOX=no
1568
1569 DEFAULT_wxUSE_THREADS=yes
1570
1571 DEFAULT_wxUSE_SHARED=yes
1572 DEFAULT_wxUSE_SONAME=no
1573 DEFAULT_wxUSE_OPTIMISE=yes
1574 DEFAULT_wxUSE_PROFILE=no
1575 DEFAULT_wxUSE_NO_DEPS=no
1576 DEFAULT_wxUSE_NO_RTTI=no
1577 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1578 DEFAULT_wxUSE_PERMISSIVE=no
1579 DEFAULT_wxUSE_DEBUG_FLAG=no
1580 DEFAULT_wxUSE_DEBUG_INFO=no
1581 DEFAULT_wxUSE_DEBUG_GDB=no
1582 DEFAULT_wxUSE_MEM_TRACING=no
1583 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1584 DEFAULT_wxUSE_DMALLOC=no
1585 DEFAULT_wxUSE_PRECOMP=no
1586 DEFAULT_wxUSE_APPLE_IEEE=yes
1587
1588 DEFAULT_wxUSE_LOG=yes
1589 DEFAULT_wxUSE_LOGWINDOW=yes
1590 DEFAULT_wxUSE_LOGGUI=yes
1591 DEFAULT_wxUSE_LOGDIALOG=yes
1592
1593 DEFAULT_wxUSE_GUI=yes
1594
1595 DEFAULT_wxUSE_REGEX=yes
1596 DEFAULT_wxUSE_ZLIB=yes
1597 DEFAULT_wxUSE_LIBPNG=yes
1598 DEFAULT_wxUSE_LIBJPEG=yes
1599 DEFAULT_wxUSE_LIBTIFF=yes
1600 DEFAULT_wxUSE_ODBC=no
1601 DEFAULT_wxUSE_OPENGL=no
1602
1603 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1604 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1605 DEFAULT_wxUSE_STD_IOSTREAM=no
1606 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1607 DEFAULT_wxUSE_DATETIME=yes
1608 DEFAULT_wxUSE_TIMEDATE=no
1609 DEFAULT_wxUSE_TIMER=yes
1610 DEFAULT_wxUSE_STOPWATCH=yes
1611 DEFAULT_wxUSE_FILE=yes
1612 DEFAULT_wxUSE_FFILE=yes
1613 DEFAULT_wxUSE_TEXTBUFFER=yes
1614 DEFAULT_wxUSE_TEXTFILE=yes
1615 DEFAULT_wxUSE_WAVE=no
1616 DEFAULT_wxUSE_INTL=yes
1617 DEFAULT_wxUSE_CONFIG=yes
1618 DEFAULT_wxUSE_FONTMAP=yes
1619 DEFAULT_wxUSE_STREAMS=yes
1620 DEFAULT_wxUSE_SOCKETS=yes
1621 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1622 DEFAULT_wxUSE_JOYSTICK=yes
1623 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1624 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1625 DEFAULT_wxUSE_LONGLONG=yes
1626 DEFAULT_wxUSE_GEOMETRY=yes
1627
1628 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1629 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1630 DEFAULT_wxUSE_POSTSCRIPT=yes
1631
1632 DEFAULT_wxUSE_X_RESOURCES=no
1633 DEFAULT_wxUSE_CLIPBOARD=yes
1634 DEFAULT_wxUSE_TOOLTIPS=yes
1635 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1636 DEFAULT_wxUSE_DRAGIMAGE=yes
1637 DEFAULT_wxUSE_SPLINES=yes
1638
1639 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1640 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1641 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1642
1643 DEFAULT_wxUSE_PROLOGIO=yes
1644 DEFAULT_wxUSE_RESOURCES=yes
1645 DEFAULT_wxUSE_CONSTRAINTS=yes
1646 DEFAULT_wxUSE_IPC=yes
1647 DEFAULT_wxUSE_HELP=yes
1648 DEFAULT_wxUSE_MS_HTML_HELP=yes
1649 DEFAULT_wxUSE_WXHTML_HELP=yes
1650 DEFAULT_wxUSE_TREELAYOUT=yes
1651 DEFAULT_wxUSE_METAFILE=yes
1652 DEFAULT_wxUSE_MIMETYPE=yes
1653 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1654 DEFAULT_wxUSE_PROTOCOL=yes
1655 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1656 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1657 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1658 DEFAULT_wxUSE_URL=yes
1659
1660 DEFAULT_wxUSE_COMMONDLGS=yes
1661 DEFAULT_wxUSE_CHOICEDLG=yes
1662 DEFAULT_wxUSE_COLOURDLG=yes
1663 DEFAULT_wxUSE_DIRDLG=yes
1664 DEFAULT_wxUSE_FILEDLG=yes
1665 DEFAULT_wxUSE_FINDREPLDLG=yes
1666 DEFAULT_wxUSE_FONTDLG=yes
1667 DEFAULT_wxUSE_MSGDLG=yes
1668 DEFAULT_wxUSE_NUMBERDLG=yes
1669 DEFAULT_wxUSE_TEXTDLG=yes
1670 DEFAULT_wxUSE_SPLASH=yes
1671 DEFAULT_wxUSE_STARTUP_TIPS=yes
1672 DEFAULT_wxUSE_PROGRESSDLG=yes
1673 DEFAULT_wxUSE_WIZARDDLG=yes
1674
1675 DEFAULT_wxUSE_MENUS=yes
1676 DEFAULT_wxUSE_MINIFRAME=yes
1677 DEFAULT_wxUSE_HTML=yes
1678 DEFAULT_wxUSE_FILESYSTEM=yes
1679 DEFAULT_wxUSE_FS_INET=yes
1680 DEFAULT_wxUSE_FS_ZIP=yes
1681 DEFAULT_wxUSE_BUSYINFO=yes
1682 DEFAULT_wxUSE_ZIPSTREAM=yes
1683 DEFAULT_wxUSE_VALIDATORS=yes
1684
1685 DEFAULT_wxUSE_ACCEL=yes
1686 DEFAULT_wxUSE_BUTTON=yes
1687 DEFAULT_wxUSE_BMPBUTTON=yes
1688 DEFAULT_wxUSE_CALCTRL=yes
1689 DEFAULT_wxUSE_CARET=yes
1690 DEFAULT_wxUSE_CHECKBOX=yes
1691 DEFAULT_wxUSE_CHECKLST=yes
1692 DEFAULT_wxUSE_CHOICE=yes
1693 DEFAULT_wxUSE_COMBOBOX=yes
1694 DEFAULT_wxUSE_GAUGE=yes
1695 DEFAULT_wxUSE_GRID=yes
1696 DEFAULT_wxUSE_NEW_GRID=yes
1697 DEFAULT_wxUSE_IMAGLIST=yes
1698 DEFAULT_wxUSE_LISTBOX=yes
1699 DEFAULT_wxUSE_LISTCTRL=yes
1700 DEFAULT_wxUSE_NOTEBOOK=yes
1701 DEFAULT_wxUSE_PROPSHEET=yes
1702 DEFAULT_wxUSE_RADIOBOX=yes
1703 DEFAULT_wxUSE_RADIOBTN=yes
1704 DEFAULT_wxUSE_SASH=yes
1705 DEFAULT_wxUSE_SCROLLBAR=yes
1706 DEFAULT_wxUSE_SLIDER=yes
1707 DEFAULT_wxUSE_SPINBTN=yes
1708 DEFAULT_wxUSE_SPINCTRL=yes
1709 DEFAULT_wxUSE_SPLITTER=yes
1710 DEFAULT_wxUSE_STATBMP=yes
1711 DEFAULT_wxUSE_STATBOX=yes
1712 DEFAULT_wxUSE_STATLINE=yes
1713 DEFAULT_wxUSE_STATTEXT=yes
1714 DEFAULT_wxUSE_STATUSBAR=yes
1715 DEFAULT_wxUSE_TABDIALOG=no
1716 DEFAULT_wxUSE_TEXTCTRL=yes
1717 DEFAULT_wxUSE_TOGGLEBTN=yes
1718 DEFAULT_wxUSE_TOOLBAR=yes
1719 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1720 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1721 DEFAULT_wxUSE_TREECTRL=yes
1722 DEFAULT_wxUSE_POPUPWIN=yes
1723 DEFAULT_wxUSE_TIPWINDOW=yes
1724
1725 DEFAULT_wxUSE_UNICODE=no
1726 DEFAULT_wxUSE_UNICODE_MSLU=yes
1727 DEFAULT_wxUSE_WCSRTOMBS=no
1728
1729 DEFAULT_wxUSE_PALETTE=yes
1730 DEFAULT_wxUSE_IMAGE=yes
1731 DEFAULT_wxUSE_GIF=yes
1732 DEFAULT_wxUSE_PCX=yes
1733 DEFAULT_wxUSE_IFF=no
1734 DEFAULT_wxUSE_PNM=yes
1735 DEFAULT_wxUSE_XPM=yes
1736 DEFAULT_wxUSE_ICO_CUR=yes
1737 fi
1738
1739
1740
1741 for toolkit in `echo $ALL_TOOLKITS`; do
1742 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1743 if test "x$LINE" != "x" ; then
1744 has_toolkit_in_cache=1
1745 eval "DEFAULT_$LINE"
1746 eval "CACHE_$toolkit=1"
1747 fi
1748 done
1749
1750
1751
1752 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1753 echo "configure:1754: checking for --enable-gui" >&5
1754 no_cache=0
1755 # Check whether --enable-gui or --disable-gui was given.
1756 if test "${enable_gui+set}" = set; then
1757 enableval="$enable_gui"
1758
1759 if test "$enableval" = yes; then
1760 ac_cv_use_gui='wxUSE_GUI=yes'
1761 else
1762 ac_cv_use_gui='wxUSE_GUI=no'
1763 fi
1764
1765 else
1766
1767 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1768 if test "x$LINE" != x ; then
1769 eval "DEFAULT_$LINE"
1770 else
1771 no_cache=1
1772 fi
1773
1774 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1775
1776 fi
1777
1778
1779 eval "$ac_cv_use_gui"
1780 if test "$no_cache" != 1; then
1781 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1782 fi
1783
1784 if test "$wxUSE_GUI" = yes; then
1785 echo "$ac_t""yes" 1>&6
1786 else
1787 echo "$ac_t""no" 1>&6
1788 fi
1789
1790
1791 if test "$wxUSE_GUI" = "yes"; then
1792
1793
1794 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1795 echo "configure:1796: checking for --enable-universal" >&5
1796 no_cache=0
1797 # Check whether --enable-universal or --disable-universal was given.
1798 if test "${enable_universal+set}" = set; then
1799 enableval="$enable_universal"
1800
1801 if test "$enableval" = yes; then
1802 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1803 else
1804 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1805 fi
1806
1807 else
1808
1809 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1810 if test "x$LINE" != x ; then
1811 eval "DEFAULT_$LINE"
1812 else
1813 no_cache=1
1814 fi
1815
1816 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1817
1818 fi
1819
1820
1821 eval "$ac_cv_use_universal"
1822 if test "$no_cache" != 1; then
1823 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1824 fi
1825
1826 if test "$wxUSE_UNIVERSAL" = yes; then
1827 echo "$ac_t""yes" 1>&6
1828 else
1829 echo "$ac_t""no" 1>&6
1830 fi
1831
1832 # Check whether --with-gtk or --without-gtk was given.
1833 if test "${with_gtk+set}" = set; then
1834 withval="$with_gtk"
1835 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1836 fi
1837
1838 # Check whether --with-motif or --without-motif was given.
1839 if test "${with_motif+set}" = set; then
1840 withval="$with_motif"
1841 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1842 fi
1843
1844 # Check whether --with-mac or --without-mac was given.
1845 if test "${with_mac+set}" = set; then
1846 withval="$with_mac"
1847 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1848 fi
1849
1850 # Check whether --with-wine or --without-wine was given.
1851 if test "${with_wine+set}" = set; then
1852 withval="$with_wine"
1853 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1854 fi
1855
1856 # Check whether --with-msw or --without-msw was given.
1857 if test "${with_msw+set}" = set; then
1858 withval="$with_msw"
1859 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1860 fi
1861
1862 # Check whether --with-pm or --without-pm was given.
1863 if test "${with_pm+set}" = set; then
1864 withval="$with_pm"
1865 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1866 fi
1867
1868 # Check whether --with-mgl or --without-mgl was given.
1869 if test "${with_mgl+set}" = set; then
1870 withval="$with_mgl"
1871 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1872 fi
1873
1874 # Check whether --with-microwin or --without-microwin was given.
1875 if test "${with_microwin+set}" = set; then
1876 withval="$with_microwin"
1877 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1878 fi
1879
1880 # Check whether --with-x11 or --without-x11 was given.
1881 if test "${with_x11+set}" = set; then
1882 withval="$with_x11"
1883 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1884 fi
1885
1886
1887 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
1888 echo "configure:1889: checking for --enable-nanox" >&5
1889 no_cache=0
1890 # Check whether --enable-nanox or --disable-nanox was given.
1891 if test "${enable_nanox+set}" = set; then
1892 enableval="$enable_nanox"
1893
1894 if test "$enableval" = yes; then
1895 ac_cv_use_nanox='wxUSE_NANOX=yes'
1896 else
1897 ac_cv_use_nanox='wxUSE_NANOX=no'
1898 fi
1899
1900 else
1901
1902 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1903 if test "x$LINE" != x ; then
1904 eval "DEFAULT_$LINE"
1905 else
1906 no_cache=1
1907 fi
1908
1909 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1910
1911 fi
1912
1913
1914 eval "$ac_cv_use_nanox"
1915 if test "$no_cache" != 1; then
1916 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1917 fi
1918
1919 if test "$wxUSE_NANOX" = yes; then
1920 echo "$ac_t""yes" 1>&6
1921 else
1922 echo "$ac_t""no" 1>&6
1923 fi
1924
1925
1926
1927 echo $ac_n "checking for --enable-gtk2""... $ac_c" 1>&6
1928 echo "configure:1929: checking for --enable-gtk2" >&5
1929 no_cache=0
1930 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1931 if test "${enable_gtk2+set}" = set; then
1932 enableval="$enable_gtk2"
1933
1934 if test "$enableval" = yes; then
1935 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1936 else
1937 ac_cv_use_gtk2='wxUSE_GTK2=no'
1938 fi
1939
1940 else
1941
1942 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1943 if test "x$LINE" != x ; then
1944 eval "DEFAULT_$LINE"
1945 else
1946 no_cache=1
1947 fi
1948
1949 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1950
1951 fi
1952
1953
1954 eval "$ac_cv_use_gtk2"
1955 if test "$no_cache" != 1; then
1956 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1957 fi
1958
1959 if test "$wxUSE_GTK2" = yes; then
1960 echo "$ac_t""yes" 1>&6
1961 else
1962 echo "$ac_t""no" 1>&6
1963 fi
1964
1965
1966
1967 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1968 echo "configure:1969: checking for --with-libpng" >&5
1969 no_cache=0
1970 # Check whether --with-libpng or --without-libpng was given.
1971 if test "${with_libpng+set}" = set; then
1972 withval="$with_libpng"
1973
1974 if test "$withval" = yes; then
1975 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1976 elif test "$withval" = no; then
1977 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1978 elif test "$withval" = sys; then
1979 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1980 elif test "$withval" = builtin; then
1981 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1982 else
1983 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1984 fi
1985
1986 else
1987
1988 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1989 if test "x$LINE" != x ; then
1990 eval "DEFAULT_$LINE"
1991 else
1992 no_cache=1
1993 fi
1994
1995 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1996
1997 fi
1998
1999
2000 eval "$ac_cv_use_libpng"
2001 if test "$no_cache" != 1; then
2002 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2003 fi
2004
2005 if test "$wxUSE_LIBPNG" = yes; then
2006 echo "$ac_t""yes" 1>&6
2007 elif test "$wxUSE_LIBPNG" = no; then
2008 echo "$ac_t""no" 1>&6
2009 elif test "$wxUSE_LIBPNG" = sys; then
2010 echo "$ac_t""system version" 1>&6
2011 elif test "$wxUSE_LIBPNG" = builtin; then
2012 echo "$ac_t""builtin version" 1>&6
2013 else
2014 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2015 fi
2016
2017
2018 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2019 echo "configure:2020: checking for --with-libjpeg" >&5
2020 no_cache=0
2021 # Check whether --with-libjpeg or --without-libjpeg was given.
2022 if test "${with_libjpeg+set}" = set; then
2023 withval="$with_libjpeg"
2024
2025 if test "$withval" = yes; then
2026 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2027 elif test "$withval" = no; then
2028 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2029 elif test "$withval" = sys; then
2030 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2031 elif test "$withval" = builtin; then
2032 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2033 else
2034 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2035 fi
2036
2037 else
2038
2039 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2040 if test "x$LINE" != x ; then
2041 eval "DEFAULT_$LINE"
2042 else
2043 no_cache=1
2044 fi
2045
2046 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2047
2048 fi
2049
2050
2051 eval "$ac_cv_use_libjpeg"
2052 if test "$no_cache" != 1; then
2053 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2054 fi
2055
2056 if test "$wxUSE_LIBJPEG" = yes; then
2057 echo "$ac_t""yes" 1>&6
2058 elif test "$wxUSE_LIBJPEG" = no; then
2059 echo "$ac_t""no" 1>&6
2060 elif test "$wxUSE_LIBJPEG" = sys; then
2061 echo "$ac_t""system version" 1>&6
2062 elif test "$wxUSE_LIBJPEG" = builtin; then
2063 echo "$ac_t""builtin version" 1>&6
2064 else
2065 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2066 fi
2067
2068
2069 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2070 echo "configure:2071: checking for --with-libtiff" >&5
2071 no_cache=0
2072 # Check whether --with-libtiff or --without-libtiff was given.
2073 if test "${with_libtiff+set}" = set; then
2074 withval="$with_libtiff"
2075
2076 if test "$withval" = yes; then
2077 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2078 elif test "$withval" = no; then
2079 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2080 elif test "$withval" = sys; then
2081 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2082 elif test "$withval" = builtin; then
2083 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2084 else
2085 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2086 fi
2087
2088 else
2089
2090 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2091 if test "x$LINE" != x ; then
2092 eval "DEFAULT_$LINE"
2093 else
2094 no_cache=1
2095 fi
2096
2097 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2098
2099 fi
2100
2101
2102 eval "$ac_cv_use_libtiff"
2103 if test "$no_cache" != 1; then
2104 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2105 fi
2106
2107 if test "$wxUSE_LIBTIFF" = yes; then
2108 echo "$ac_t""yes" 1>&6
2109 elif test "$wxUSE_LIBTIFF" = no; then
2110 echo "$ac_t""no" 1>&6
2111 elif test "$wxUSE_LIBTIFF" = sys; then
2112 echo "$ac_t""system version" 1>&6
2113 elif test "$wxUSE_LIBTIFF" = builtin; then
2114 echo "$ac_t""builtin version" 1>&6
2115 else
2116 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2117 fi
2118
2119
2120 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2121 echo "configure:2122: checking for --with-opengl" >&5
2122 no_cache=0
2123 # Check whether --with-opengl or --without-opengl was given.
2124 if test "${with_opengl+set}" = set; then
2125 withval="$with_opengl"
2126
2127 if test "$withval" = yes; then
2128 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2129 else
2130 ac_cv_use_opengl='wxUSE_OPENGL=no'
2131 fi
2132
2133 else
2134
2135 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2136 if test "x$LINE" != x ; then
2137 eval "DEFAULT_$LINE"
2138 else
2139 no_cache=1
2140 fi
2141
2142 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2143
2144 fi
2145
2146
2147 eval "$ac_cv_use_opengl"
2148 if test "$no_cache" != 1; then
2149 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2150 fi
2151
2152 if test "$wxUSE_OPENGL" = yes; then
2153 echo "$ac_t""yes" 1>&6
2154 else
2155 echo "$ac_t""no" 1>&6
2156 fi
2157
2158
2159 fi
2160
2161
2162 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2163 echo "configure:2164: checking for --with-dmalloc" >&5
2164 no_cache=0
2165 # Check whether --with-dmalloc or --without-dmalloc was given.
2166 if test "${with_dmalloc+set}" = set; then
2167 withval="$with_dmalloc"
2168
2169 if test "$withval" = yes; then
2170 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2171 else
2172 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2173 fi
2174
2175 else
2176
2177 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2178 if test "x$LINE" != x ; then
2179 eval "DEFAULT_$LINE"
2180 else
2181 no_cache=1
2182 fi
2183
2184 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2185
2186 fi
2187
2188
2189 eval "$ac_cv_use_dmalloc"
2190 if test "$no_cache" != 1; then
2191 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2192 fi
2193
2194 if test "$wxUSE_DMALLOC" = yes; then
2195 echo "$ac_t""yes" 1>&6
2196 else
2197 echo "$ac_t""no" 1>&6
2198 fi
2199
2200
2201 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2202 echo "configure:2203: checking for --with-regex" >&5
2203 no_cache=0
2204 # Check whether --with-regex or --without-regex was given.
2205 if test "${with_regex+set}" = set; then
2206 withval="$with_regex"
2207
2208 if test "$withval" = yes; then
2209 ac_cv_use_regex='wxUSE_REGEX=yes'
2210 elif test "$withval" = no; then
2211 ac_cv_use_regex='wxUSE_REGEX=no'
2212 elif test "$withval" = sys; then
2213 ac_cv_use_regex='wxUSE_REGEX=sys'
2214 elif test "$withval" = builtin; then
2215 ac_cv_use_regex='wxUSE_REGEX=builtin'
2216 else
2217 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2218 fi
2219
2220 else
2221
2222 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2223 if test "x$LINE" != x ; then
2224 eval "DEFAULT_$LINE"
2225 else
2226 no_cache=1
2227 fi
2228
2229 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2230
2231 fi
2232
2233
2234 eval "$ac_cv_use_regex"
2235 if test "$no_cache" != 1; then
2236 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2237 fi
2238
2239 if test "$wxUSE_REGEX" = yes; then
2240 echo "$ac_t""yes" 1>&6
2241 elif test "$wxUSE_REGEX" = no; then
2242 echo "$ac_t""no" 1>&6
2243 elif test "$wxUSE_REGEX" = sys; then
2244 echo "$ac_t""system version" 1>&6
2245 elif test "$wxUSE_REGEX" = builtin; then
2246 echo "$ac_t""builtin version" 1>&6
2247 else
2248 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2249 fi
2250
2251
2252 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2253 echo "configure:2254: checking for --with-zlib" >&5
2254 no_cache=0
2255 # Check whether --with-zlib or --without-zlib was given.
2256 if test "${with_zlib+set}" = set; then
2257 withval="$with_zlib"
2258
2259 if test "$withval" = yes; then
2260 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2261 elif test "$withval" = no; then
2262 ac_cv_use_zlib='wxUSE_ZLIB=no'
2263 elif test "$withval" = sys; then
2264 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2265 elif test "$withval" = builtin; then
2266 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2267 else
2268 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2269 fi
2270
2271 else
2272
2273 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2274 if test "x$LINE" != x ; then
2275 eval "DEFAULT_$LINE"
2276 else
2277 no_cache=1
2278 fi
2279
2280 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2281
2282 fi
2283
2284
2285 eval "$ac_cv_use_zlib"
2286 if test "$no_cache" != 1; then
2287 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2288 fi
2289
2290 if test "$wxUSE_ZLIB" = yes; then
2291 echo "$ac_t""yes" 1>&6
2292 elif test "$wxUSE_ZLIB" = no; then
2293 echo "$ac_t""no" 1>&6
2294 elif test "$wxUSE_ZLIB" = sys; then
2295 echo "$ac_t""system version" 1>&6
2296 elif test "$wxUSE_ZLIB" = builtin; then
2297 echo "$ac_t""builtin version" 1>&6
2298 else
2299 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2300 fi
2301
2302
2303 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2304 echo "configure:2305: checking for --with-odbc" >&5
2305 no_cache=0
2306 # Check whether --with-odbc or --without-odbc was given.
2307 if test "${with_odbc+set}" = set; then
2308 withval="$with_odbc"
2309
2310 if test "$withval" = yes; then
2311 ac_cv_use_odbc='wxUSE_ODBC=yes'
2312 else
2313 ac_cv_use_odbc='wxUSE_ODBC=no'
2314 fi
2315
2316 else
2317
2318 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2319 if test "x$LINE" != x ; then
2320 eval "DEFAULT_$LINE"
2321 else
2322 no_cache=1
2323 fi
2324
2325 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2326
2327 fi
2328
2329
2330 eval "$ac_cv_use_odbc"
2331 if test "$no_cache" != 1; then
2332 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2333 fi
2334
2335 if test "$wxUSE_ODBC" = yes; then
2336 echo "$ac_t""yes" 1>&6
2337 else
2338 echo "$ac_t""no" 1>&6
2339 fi
2340
2341
2342
2343
2344 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2345 echo "configure:2346: checking for --enable-shared" >&5
2346 no_cache=0
2347 # Check whether --enable-shared or --disable-shared was given.
2348 if test "${enable_shared+set}" = set; then
2349 enableval="$enable_shared"
2350
2351 if test "$enableval" = yes; then
2352 ac_cv_use_shared='wxUSE_SHARED=yes'
2353 else
2354 ac_cv_use_shared='wxUSE_SHARED=no'
2355 fi
2356
2357 else
2358
2359 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2360 if test "x$LINE" != x ; then
2361 eval "DEFAULT_$LINE"
2362 else
2363 no_cache=1
2364 fi
2365
2366 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2367
2368 fi
2369
2370
2371 eval "$ac_cv_use_shared"
2372 if test "$no_cache" != 1; then
2373 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2374 fi
2375
2376 if test "$wxUSE_SHARED" = yes; then
2377 echo "$ac_t""yes" 1>&6
2378 else
2379 echo "$ac_t""no" 1>&6
2380 fi
2381
2382
2383 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2384 echo "configure:2385: checking for --enable-soname" >&5
2385 no_cache=0
2386 # Check whether --enable-soname or --disable-soname was given.
2387 if test "${enable_soname+set}" = set; then
2388 enableval="$enable_soname"
2389
2390 if test "$enableval" = yes; then
2391 ac_cv_use_soname='wxUSE_SONAME=yes'
2392 else
2393 ac_cv_use_soname='wxUSE_SONAME=no'
2394 fi
2395
2396 else
2397
2398 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2399 if test "x$LINE" != x ; then
2400 eval "DEFAULT_$LINE"
2401 else
2402 no_cache=1
2403 fi
2404
2405 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2406
2407 fi
2408
2409
2410 eval "$ac_cv_use_soname"
2411 if test "$no_cache" != 1; then
2412 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2413 fi
2414
2415 if test "$wxUSE_SONAME" = yes; then
2416 echo "$ac_t""yes" 1>&6
2417 else
2418 echo "$ac_t""no" 1>&6
2419 fi
2420
2421
2422 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2423 echo "configure:2424: checking for --enable-optimise" >&5
2424 no_cache=0
2425 # Check whether --enable-optimise or --disable-optimise was given.
2426 if test "${enable_optimise+set}" = set; then
2427 enableval="$enable_optimise"
2428
2429 if test "$enableval" = yes; then
2430 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2431 else
2432 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2433 fi
2434
2435 else
2436
2437 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2438 if test "x$LINE" != x ; then
2439 eval "DEFAULT_$LINE"
2440 else
2441 no_cache=1
2442 fi
2443
2444 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2445
2446 fi
2447
2448
2449 eval "$ac_cv_use_optimise"
2450 if test "$no_cache" != 1; then
2451 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2452 fi
2453
2454 if test "$wxUSE_OPTIMISE" = yes; then
2455 echo "$ac_t""yes" 1>&6
2456 else
2457 echo "$ac_t""no" 1>&6
2458 fi
2459
2460
2461 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2462 echo "configure:2463: checking for --enable-debug" >&5
2463 no_cache=0
2464 # Check whether --enable-debug or --disable-debug was given.
2465 if test "${enable_debug+set}" = set; then
2466 enableval="$enable_debug"
2467
2468 if test "$enableval" = yes; then
2469 ac_cv_use_debug='wxUSE_DEBUG=yes'
2470 else
2471 ac_cv_use_debug='wxUSE_DEBUG=no'
2472 fi
2473
2474 else
2475
2476 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2477 if test "x$LINE" != x ; then
2478 eval "DEFAULT_$LINE"
2479 else
2480 no_cache=1
2481 fi
2482
2483 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2484
2485 fi
2486
2487
2488 eval "$ac_cv_use_debug"
2489 if test "$no_cache" != 1; then
2490 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2491 fi
2492
2493 if test "$wxUSE_DEBUG" = yes; then
2494 echo "$ac_t""yes" 1>&6
2495 else
2496 echo "$ac_t""no" 1>&6
2497 fi
2498
2499
2500
2501 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2502 echo "configure:2503: checking for --enable-precomp" >&5
2503 no_cache=0
2504 # Check whether --enable-precomp or --disable-precomp was given.
2505 if test "${enable_precomp+set}" = set; then
2506 enableval="$enable_precomp"
2507
2508 if test "$enableval" = yes; then
2509 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2510 else
2511 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2512 fi
2513
2514 else
2515
2516 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2517 if test "x$LINE" != x ; then
2518 eval "DEFAULT_$LINE"
2519 else
2520 no_cache=1
2521 fi
2522
2523 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2524
2525 fi
2526
2527
2528 eval "$ac_cv_use_precomp"
2529 if test "$no_cache" != 1; then
2530 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2531 fi
2532
2533 if test "$wxUSE_PRECOMP" = yes; then
2534 echo "$ac_t""yes" 1>&6
2535 else
2536 echo "$ac_t""no" 1>&6
2537 fi
2538
2539
2540 if test "$wxUSE_DEBUG" = "yes"; then
2541 DEFAULT_wxUSE_DEBUG_FLAG=yes
2542 DEFAULT_wxUSE_DEBUG_INFO=yes
2543 elif test "$wxUSE_DEBUG" = "no"; then
2544 DEFAULT_wxUSE_DEBUG_FLAG=no
2545 DEFAULT_wxUSE_DEBUG_INFO=no
2546 fi
2547
2548
2549 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2550 echo "configure:2551: checking for --enable-debug_flag" >&5
2551 no_cache=0
2552 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2553 if test "${enable_debug_flag+set}" = set; then
2554 enableval="$enable_debug_flag"
2555
2556 if test "$enableval" = yes; then
2557 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2558 else
2559 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2560 fi
2561
2562 else
2563
2564 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2565 if test "x$LINE" != x ; then
2566 eval "DEFAULT_$LINE"
2567 else
2568 no_cache=1
2569 fi
2570
2571 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2572
2573 fi
2574
2575
2576 eval "$ac_cv_use_debug_flag"
2577 if test "$no_cache" != 1; then
2578 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2579 fi
2580
2581 if test "$wxUSE_DEBUG_FLAG" = yes; then
2582 echo "$ac_t""yes" 1>&6
2583 else
2584 echo "$ac_t""no" 1>&6
2585 fi
2586
2587
2588 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2589 echo "configure:2590: checking for --enable-debug_info" >&5
2590 no_cache=0
2591 # Check whether --enable-debug_info or --disable-debug_info was given.
2592 if test "${enable_debug_info+set}" = set; then
2593 enableval="$enable_debug_info"
2594
2595 if test "$enableval" = yes; then
2596 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2597 else
2598 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2599 fi
2600
2601 else
2602
2603 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2604 if test "x$LINE" != x ; then
2605 eval "DEFAULT_$LINE"
2606 else
2607 no_cache=1
2608 fi
2609
2610 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2611
2612 fi
2613
2614
2615 eval "$ac_cv_use_debug_info"
2616 if test "$no_cache" != 1; then
2617 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2618 fi
2619
2620 if test "$wxUSE_DEBUG_INFO" = yes; then
2621 echo "$ac_t""yes" 1>&6
2622 else
2623 echo "$ac_t""no" 1>&6
2624 fi
2625
2626
2627 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2628 echo "configure:2629: checking for --enable-debug_gdb" >&5
2629 no_cache=0
2630 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2631 if test "${enable_debug_gdb+set}" = set; then
2632 enableval="$enable_debug_gdb"
2633
2634 if test "$enableval" = yes; then
2635 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2636 else
2637 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2638 fi
2639
2640 else
2641
2642 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2643 if test "x$LINE" != x ; then
2644 eval "DEFAULT_$LINE"
2645 else
2646 no_cache=1
2647 fi
2648
2649 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2650
2651 fi
2652
2653
2654 eval "$ac_cv_use_debug_gdb"
2655 if test "$no_cache" != 1; then
2656 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2657 fi
2658
2659 if test "$wxUSE_DEBUG_GDB" = yes; then
2660 echo "$ac_t""yes" 1>&6
2661 else
2662 echo "$ac_t""no" 1>&6
2663 fi
2664
2665
2666 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2667 echo "configure:2668: checking for --enable-debug_cntxt" >&5
2668 no_cache=0
2669 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2670 if test "${enable_debug_cntxt+set}" = set; then
2671 enableval="$enable_debug_cntxt"
2672
2673 if test "$enableval" = yes; then
2674 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2675 else
2676 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2677 fi
2678
2679 else
2680
2681 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2682 if test "x$LINE" != x ; then
2683 eval "DEFAULT_$LINE"
2684 else
2685 no_cache=1
2686 fi
2687
2688 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2689
2690 fi
2691
2692
2693 eval "$ac_cv_use_debug_cntxt"
2694 if test "$no_cache" != 1; then
2695 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2696 fi
2697
2698 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2699 echo "$ac_t""yes" 1>&6
2700 else
2701 echo "$ac_t""no" 1>&6
2702 fi
2703
2704
2705 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2706 echo "configure:2707: checking for --enable-mem_tracing" >&5
2707 no_cache=0
2708 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2709 if test "${enable_mem_tracing+set}" = set; then
2710 enableval="$enable_mem_tracing"
2711
2712 if test "$enableval" = yes; then
2713 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2714 else
2715 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2716 fi
2717
2718 else
2719
2720 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2721 if test "x$LINE" != x ; then
2722 eval "DEFAULT_$LINE"
2723 else
2724 no_cache=1
2725 fi
2726
2727 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2728
2729 fi
2730
2731
2732 eval "$ac_cv_use_mem_tracing"
2733 if test "$no_cache" != 1; then
2734 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2735 fi
2736
2737 if test "$wxUSE_MEM_TRACING" = yes; then
2738 echo "$ac_t""yes" 1>&6
2739 else
2740 echo "$ac_t""no" 1>&6
2741 fi
2742
2743
2744 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2745 echo "configure:2746: checking for --enable-profile" >&5
2746 no_cache=0
2747 # Check whether --enable-profile or --disable-profile was given.
2748 if test "${enable_profile+set}" = set; then
2749 enableval="$enable_profile"
2750
2751 if test "$enableval" = yes; then
2752 ac_cv_use_profile='wxUSE_PROFILE=yes'
2753 else
2754 ac_cv_use_profile='wxUSE_PROFILE=no'
2755 fi
2756
2757 else
2758
2759 LINE=`grep "wxUSE_PROFILE" ${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_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2767
2768 fi
2769
2770
2771 eval "$ac_cv_use_profile"
2772 if test "$no_cache" != 1; then
2773 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2774 fi
2775
2776 if test "$wxUSE_PROFILE" = yes; then
2777 echo "$ac_t""yes" 1>&6
2778 else
2779 echo "$ac_t""no" 1>&6
2780 fi
2781
2782
2783 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2784 echo "configure:2785: checking for --enable-no_rtti" >&5
2785 no_cache=0
2786 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2787 if test "${enable_no_rtti+set}" = set; then
2788 enableval="$enable_no_rtti"
2789
2790 if test "$enableval" = yes; then
2791 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2792 else
2793 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2794 fi
2795
2796 else
2797
2798 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2799 if test "x$LINE" != x ; then
2800 eval "DEFAULT_$LINE"
2801 else
2802 no_cache=1
2803 fi
2804
2805 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2806
2807 fi
2808
2809
2810 eval "$ac_cv_use_no_rtti"
2811 if test "$no_cache" != 1; then
2812 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2813 fi
2814
2815 if test "$wxUSE_NO_RTTI" = yes; then
2816 echo "$ac_t""yes" 1>&6
2817 else
2818 echo "$ac_t""no" 1>&6
2819 fi
2820
2821
2822 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2823 echo "configure:2824: checking for --enable-no_exceptions" >&5
2824 no_cache=0
2825 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2826 if test "${enable_no_exceptions+set}" = set; then
2827 enableval="$enable_no_exceptions"
2828
2829 if test "$enableval" = yes; then
2830 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2831 else
2832 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2833 fi
2834
2835 else
2836
2837 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2838 if test "x$LINE" != x ; then
2839 eval "DEFAULT_$LINE"
2840 else
2841 no_cache=1
2842 fi
2843
2844 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2845
2846 fi
2847
2848
2849 eval "$ac_cv_use_no_exceptions"
2850 if test "$no_cache" != 1; then
2851 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2852 fi
2853
2854 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2855 echo "$ac_t""yes" 1>&6
2856 else
2857 echo "$ac_t""no" 1>&6
2858 fi
2859
2860
2861 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2862 echo "configure:2863: checking for --enable-permissive" >&5
2863 no_cache=0
2864 # Check whether --enable-permissive or --disable-permissive was given.
2865 if test "${enable_permissive+set}" = set; then
2866 enableval="$enable_permissive"
2867
2868 if test "$enableval" = yes; then
2869 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2870 else
2871 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2872 fi
2873
2874 else
2875
2876 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2877 if test "x$LINE" != x ; then
2878 eval "DEFAULT_$LINE"
2879 else
2880 no_cache=1
2881 fi
2882
2883 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2884
2885 fi
2886
2887
2888 eval "$ac_cv_use_permissive"
2889 if test "$no_cache" != 1; then
2890 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2891 fi
2892
2893 if test "$wxUSE_PERMISSIVE" = yes; then
2894 echo "$ac_t""yes" 1>&6
2895 else
2896 echo "$ac_t""no" 1>&6
2897 fi
2898
2899
2900 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2901 echo "configure:2902: checking for --enable-no_deps" >&5
2902 no_cache=0
2903 # Check whether --enable-no_deps or --disable-no_deps was given.
2904 if test "${enable_no_deps+set}" = set; then
2905 enableval="$enable_no_deps"
2906
2907 if test "$enableval" = yes; then
2908 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2909 else
2910 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2911 fi
2912
2913 else
2914
2915 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2916 if test "x$LINE" != x ; then
2917 eval "DEFAULT_$LINE"
2918 else
2919 no_cache=1
2920 fi
2921
2922 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2923
2924 fi
2925
2926
2927 eval "$ac_cv_use_no_deps"
2928 if test "$no_cache" != 1; then
2929 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2930 fi
2931
2932 if test "$wxUSE_NO_DEPS" = yes; then
2933 echo "$ac_t""yes" 1>&6
2934 else
2935 echo "$ac_t""no" 1>&6
2936 fi
2937
2938
2939
2940 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2941 echo "configure:2942: checking for --enable-compat20" >&5
2942 no_cache=0
2943 # Check whether --enable-compat20 or --disable-compat20 was given.
2944 if test "${enable_compat20+set}" = set; then
2945 enableval="$enable_compat20"
2946
2947 if test "$enableval" = yes; then
2948 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2949 else
2950 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2951 fi
2952
2953 else
2954
2955 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2956 if test "x$LINE" != x ; then
2957 eval "DEFAULT_$LINE"
2958 else
2959 no_cache=1
2960 fi
2961
2962 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2963
2964 fi
2965
2966
2967 eval "$ac_cv_use_compat20"
2968 if test "$no_cache" != 1; then
2969 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2970 fi
2971
2972 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2973 echo "$ac_t""yes" 1>&6
2974 else
2975 echo "$ac_t""no" 1>&6
2976 fi
2977
2978
2979 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2980 echo "configure:2981: checking for --enable-compat22" >&5
2981 no_cache=0
2982 # Check whether --enable-compat22 or --disable-compat22 was given.
2983 if test "${enable_compat22+set}" = set; then
2984 enableval="$enable_compat22"
2985
2986 if test "$enableval" = yes; then
2987 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2988 else
2989 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2990 fi
2991
2992 else
2993
2994 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2995 if test "x$LINE" != x ; then
2996 eval "DEFAULT_$LINE"
2997 else
2998 no_cache=1
2999 fi
3000
3001 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3002
3003 fi
3004
3005
3006 eval "$ac_cv_use_compat22"
3007 if test "$no_cache" != 1; then
3008 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3009 fi
3010
3011 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3012 echo "$ac_t""yes" 1>&6
3013 else
3014 echo "$ac_t""no" 1>&6
3015 fi
3016
3017
3018 # Check whether --enable-rpath or --disable-rpath was given.
3019 if test "${enable_rpath+set}" = set; then
3020 enableval="$enable_rpath"
3021 wxRPATH_DIR="$enableval"
3022 fi
3023
3024
3025 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3026 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3027 fi
3028
3029
3030
3031
3032 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3033 echo "configure:3034: checking for --enable-intl" >&5
3034 no_cache=0
3035 # Check whether --enable-intl or --disable-intl was given.
3036 if test "${enable_intl+set}" = set; then
3037 enableval="$enable_intl"
3038
3039 if test "$enableval" = yes; then
3040 ac_cv_use_intl='wxUSE_INTL=yes'
3041 else
3042 ac_cv_use_intl='wxUSE_INTL=no'
3043 fi
3044
3045 else
3046
3047 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3048 if test "x$LINE" != x ; then
3049 eval "DEFAULT_$LINE"
3050 else
3051 no_cache=1
3052 fi
3053
3054 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3055
3056 fi
3057
3058
3059 eval "$ac_cv_use_intl"
3060 if test "$no_cache" != 1; then
3061 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3062 fi
3063
3064 if test "$wxUSE_INTL" = yes; then
3065 echo "$ac_t""yes" 1>&6
3066 else
3067 echo "$ac_t""no" 1>&6
3068 fi
3069
3070
3071 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3072 echo "configure:3073: checking for --enable-config" >&5
3073 no_cache=0
3074 # Check whether --enable-config or --disable-config was given.
3075 if test "${enable_config+set}" = set; then
3076 enableval="$enable_config"
3077
3078 if test "$enableval" = yes; then
3079 ac_cv_use_config='wxUSE_CONFIG=yes'
3080 else
3081 ac_cv_use_config='wxUSE_CONFIG=no'
3082 fi
3083
3084 else
3085
3086 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3087 if test "x$LINE" != x ; then
3088 eval "DEFAULT_$LINE"
3089 else
3090 no_cache=1
3091 fi
3092
3093 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3094
3095 fi
3096
3097
3098 eval "$ac_cv_use_config"
3099 if test "$no_cache" != 1; then
3100 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3101 fi
3102
3103 if test "$wxUSE_CONFIG" = yes; then
3104 echo "$ac_t""yes" 1>&6
3105 else
3106 echo "$ac_t""no" 1>&6
3107 fi
3108
3109
3110
3111 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3112 echo "configure:3113: checking for --enable-protocols" >&5
3113 no_cache=0
3114 # Check whether --enable-protocols or --disable-protocols was given.
3115 if test "${enable_protocols+set}" = set; then
3116 enableval="$enable_protocols"
3117
3118 if test "$enableval" = yes; then
3119 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3120 else
3121 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3122 fi
3123
3124 else
3125
3126 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3127 if test "x$LINE" != x ; then
3128 eval "DEFAULT_$LINE"
3129 else
3130 no_cache=1
3131 fi
3132
3133 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3134
3135 fi
3136
3137
3138 eval "$ac_cv_use_protocols"
3139 if test "$no_cache" != 1; then
3140 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3141 fi
3142
3143 if test "$wxUSE_PROTOCOL" = yes; then
3144 echo "$ac_t""yes" 1>&6
3145 else
3146 echo "$ac_t""no" 1>&6
3147 fi
3148
3149
3150 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3151 echo "configure:3152: checking for --enable-ftp" >&5
3152 no_cache=0
3153 # Check whether --enable-ftp or --disable-ftp was given.
3154 if test "${enable_ftp+set}" = set; then
3155 enableval="$enable_ftp"
3156
3157 if test "$enableval" = yes; then
3158 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3159 else
3160 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3161 fi
3162
3163 else
3164
3165 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3166 if test "x$LINE" != x ; then
3167 eval "DEFAULT_$LINE"
3168 else
3169 no_cache=1
3170 fi
3171
3172 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3173
3174 fi
3175
3176
3177 eval "$ac_cv_use_ftp"
3178 if test "$no_cache" != 1; then
3179 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3180 fi
3181
3182 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3183 echo "$ac_t""yes" 1>&6
3184 else
3185 echo "$ac_t""no" 1>&6
3186 fi
3187
3188
3189 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3190 echo "configure:3191: checking for --enable-http" >&5
3191 no_cache=0
3192 # Check whether --enable-http or --disable-http was given.
3193 if test "${enable_http+set}" = set; then
3194 enableval="$enable_http"
3195
3196 if test "$enableval" = yes; then
3197 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3198 else
3199 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3200 fi
3201
3202 else
3203
3204 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3205 if test "x$LINE" != x ; then
3206 eval "DEFAULT_$LINE"
3207 else
3208 no_cache=1
3209 fi
3210
3211 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3212
3213 fi
3214
3215
3216 eval "$ac_cv_use_http"
3217 if test "$no_cache" != 1; then
3218 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3219 fi
3220
3221 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3222 echo "$ac_t""yes" 1>&6
3223 else
3224 echo "$ac_t""no" 1>&6
3225 fi
3226
3227
3228 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3229 echo "configure:3230: checking for --enable-fileproto" >&5
3230 no_cache=0
3231 # Check whether --enable-fileproto or --disable-fileproto was given.
3232 if test "${enable_fileproto+set}" = set; then
3233 enableval="$enable_fileproto"
3234
3235 if test "$enableval" = yes; then
3236 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3237 else
3238 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3239 fi
3240
3241 else
3242
3243 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3244 if test "x$LINE" != x ; then
3245 eval "DEFAULT_$LINE"
3246 else
3247 no_cache=1
3248 fi
3249
3250 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3251
3252 fi
3253
3254
3255 eval "$ac_cv_use_fileproto"
3256 if test "$no_cache" != 1; then
3257 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3258 fi
3259
3260 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3261 echo "$ac_t""yes" 1>&6
3262 else
3263 echo "$ac_t""no" 1>&6
3264 fi
3265
3266
3267 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3268 echo "configure:3269: checking for --enable-sockets" >&5
3269 no_cache=0
3270 # Check whether --enable-sockets or --disable-sockets was given.
3271 if test "${enable_sockets+set}" = set; then
3272 enableval="$enable_sockets"
3273
3274 if test "$enableval" = yes; then
3275 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3276 else
3277 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3278 fi
3279
3280 else
3281
3282 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3283 if test "x$LINE" != x ; then
3284 eval "DEFAULT_$LINE"
3285 else
3286 no_cache=1
3287 fi
3288
3289 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3290
3291 fi
3292
3293
3294 eval "$ac_cv_use_sockets"
3295 if test "$no_cache" != 1; then
3296 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3297 fi
3298
3299 if test "$wxUSE_SOCKETS" = yes; then
3300 echo "$ac_t""yes" 1>&6
3301 else
3302 echo "$ac_t""no" 1>&6
3303 fi
3304
3305
3306
3307 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3308 echo "configure:3309: checking for --enable-ipc" >&5
3309 no_cache=0
3310 # Check whether --enable-ipc or --disable-ipc was given.
3311 if test "${enable_ipc+set}" = set; then
3312 enableval="$enable_ipc"
3313
3314 if test "$enableval" = yes; then
3315 ac_cv_use_ipc='wxUSE_IPC=yes'
3316 else
3317 ac_cv_use_ipc='wxUSE_IPC=no'
3318 fi
3319
3320 else
3321
3322 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3323 if test "x$LINE" != x ; then
3324 eval "DEFAULT_$LINE"
3325 else
3326 no_cache=1
3327 fi
3328
3329 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3330
3331 fi
3332
3333
3334 eval "$ac_cv_use_ipc"
3335 if test "$no_cache" != 1; then
3336 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3337 fi
3338
3339 if test "$wxUSE_IPC" = yes; then
3340 echo "$ac_t""yes" 1>&6
3341 else
3342 echo "$ac_t""no" 1>&6
3343 fi
3344
3345
3346
3347 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3348 echo "configure:3349: checking for --enable-cmdline" >&5
3349 no_cache=0
3350 # Check whether --enable-cmdline or --disable-cmdline was given.
3351 if test "${enable_cmdline+set}" = set; then
3352 enableval="$enable_cmdline"
3353
3354 if test "$enableval" = yes; then
3355 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3356 else
3357 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3358 fi
3359
3360 else
3361
3362 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3363 if test "x$LINE" != x ; then
3364 eval "DEFAULT_$LINE"
3365 else
3366 no_cache=1
3367 fi
3368
3369 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3370
3371 fi
3372
3373
3374 eval "$ac_cv_use_cmdline"
3375 if test "$no_cache" != 1; then
3376 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3377 fi
3378
3379 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3380 echo "$ac_t""yes" 1>&6
3381 else
3382 echo "$ac_t""no" 1>&6
3383 fi
3384
3385
3386 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3387 echo "configure:3388: checking for --enable-datetime" >&5
3388 no_cache=0
3389 # Check whether --enable-datetime or --disable-datetime was given.
3390 if test "${enable_datetime+set}" = set; then
3391 enableval="$enable_datetime"
3392
3393 if test "$enableval" = yes; then
3394 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3395 else
3396 ac_cv_use_datetime='wxUSE_DATETIME=no'
3397 fi
3398
3399 else
3400
3401 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3402 if test "x$LINE" != x ; then
3403 eval "DEFAULT_$LINE"
3404 else
3405 no_cache=1
3406 fi
3407
3408 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3409
3410 fi
3411
3412
3413 eval "$ac_cv_use_datetime"
3414 if test "$no_cache" != 1; then
3415 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3416 fi
3417
3418 if test "$wxUSE_DATETIME" = yes; then
3419 echo "$ac_t""yes" 1>&6
3420 else
3421 echo "$ac_t""no" 1>&6
3422 fi
3423
3424
3425 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3426 echo "configure:3427: checking for --enable-timedate" >&5
3427 no_cache=0
3428 # Check whether --enable-timedate or --disable-timedate was given.
3429 if test "${enable_timedate+set}" = set; then
3430 enableval="$enable_timedate"
3431
3432 if test "$enableval" = yes; then
3433 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3434 else
3435 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3436 fi
3437
3438 else
3439
3440 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3441 if test "x$LINE" != x ; then
3442 eval "DEFAULT_$LINE"
3443 else
3444 no_cache=1
3445 fi
3446
3447 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3448
3449 fi
3450
3451
3452 eval "$ac_cv_use_timedate"
3453 if test "$no_cache" != 1; then
3454 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3455 fi
3456
3457 if test "$wxUSE_TIMEDATE" = yes; then
3458 echo "$ac_t""yes" 1>&6
3459 else
3460 echo "$ac_t""no" 1>&6
3461 fi
3462
3463
3464 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3465 echo "configure:3466: checking for --enable-stopwatch" >&5
3466 no_cache=0
3467 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3468 if test "${enable_stopwatch+set}" = set; then
3469 enableval="$enable_stopwatch"
3470
3471 if test "$enableval" = yes; then
3472 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3473 else
3474 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3475 fi
3476
3477 else
3478
3479 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3480 if test "x$LINE" != x ; then
3481 eval "DEFAULT_$LINE"
3482 else
3483 no_cache=1
3484 fi
3485
3486 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3487
3488 fi
3489
3490
3491 eval "$ac_cv_use_stopwatch"
3492 if test "$no_cache" != 1; then
3493 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3494 fi
3495
3496 if test "$wxUSE_STOPWATCH" = yes; then
3497 echo "$ac_t""yes" 1>&6
3498 else
3499 echo "$ac_t""no" 1>&6
3500 fi
3501
3502
3503 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3504 echo "configure:3505: checking for --enable-dialupman" >&5
3505 no_cache=0
3506 # Check whether --enable-dialupman or --disable-dialupman was given.
3507 if test "${enable_dialupman+set}" = set; then
3508 enableval="$enable_dialupman"
3509
3510 if test "$enableval" = yes; then
3511 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3512 else
3513 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3514 fi
3515
3516 else
3517
3518 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3519 if test "x$LINE" != x ; then
3520 eval "DEFAULT_$LINE"
3521 else
3522 no_cache=1
3523 fi
3524
3525 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3526
3527 fi
3528
3529
3530 eval "$ac_cv_use_dialupman"
3531 if test "$no_cache" != 1; then
3532 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3533 fi
3534
3535 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3536 echo "$ac_t""yes" 1>&6
3537 else
3538 echo "$ac_t""no" 1>&6
3539 fi
3540
3541
3542 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3543 echo "configure:3544: checking for --enable-apple_ieee" >&5
3544 no_cache=0
3545 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3546 if test "${enable_apple_ieee+set}" = set; then
3547 enableval="$enable_apple_ieee"
3548
3549 if test "$enableval" = yes; then
3550 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3551 else
3552 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3553 fi
3554
3555 else
3556
3557 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3558 if test "x$LINE" != x ; then
3559 eval "DEFAULT_$LINE"
3560 else
3561 no_cache=1
3562 fi
3563
3564 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3565
3566 fi
3567
3568
3569 eval "$ac_cv_use_apple_ieee"
3570 if test "$no_cache" != 1; then
3571 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3572 fi
3573
3574 if test "$wxUSE_APPLE_IEEE" = yes; then
3575 echo "$ac_t""yes" 1>&6
3576 else
3577 echo "$ac_t""no" 1>&6
3578 fi
3579
3580
3581 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3582 echo "configure:3583: checking for --enable-timer" >&5
3583 no_cache=0
3584 # Check whether --enable-timer or --disable-timer was given.
3585 if test "${enable_timer+set}" = set; then
3586 enableval="$enable_timer"
3587
3588 if test "$enableval" = yes; then
3589 ac_cv_use_timer='wxUSE_TIMER=yes'
3590 else
3591 ac_cv_use_timer='wxUSE_TIMER=no'
3592 fi
3593
3594 else
3595
3596 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3597 if test "x$LINE" != x ; then
3598 eval "DEFAULT_$LINE"
3599 else
3600 no_cache=1
3601 fi
3602
3603 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3604
3605 fi
3606
3607
3608 eval "$ac_cv_use_timer"
3609 if test "$no_cache" != 1; then
3610 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3611 fi
3612
3613 if test "$wxUSE_TIMER" = yes; then
3614 echo "$ac_t""yes" 1>&6
3615 else
3616 echo "$ac_t""no" 1>&6
3617 fi
3618
3619
3620 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3621 echo "configure:3622: checking for --enable-wave" >&5
3622 no_cache=0
3623 # Check whether --enable-wave or --disable-wave was given.
3624 if test "${enable_wave+set}" = set; then
3625 enableval="$enable_wave"
3626
3627 if test "$enableval" = yes; then
3628 ac_cv_use_wave='wxUSE_WAVE=yes'
3629 else
3630 ac_cv_use_wave='wxUSE_WAVE=no'
3631 fi
3632
3633 else
3634
3635 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3636 if test "x$LINE" != x ; then
3637 eval "DEFAULT_$LINE"
3638 else
3639 no_cache=1
3640 fi
3641
3642 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3643
3644 fi
3645
3646
3647 eval "$ac_cv_use_wave"
3648 if test "$no_cache" != 1; then
3649 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3650 fi
3651
3652 if test "$wxUSE_WAVE" = yes; then
3653 echo "$ac_t""yes" 1>&6
3654 else
3655 echo "$ac_t""no" 1>&6
3656 fi
3657
3658
3659 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3660 echo "configure:3661: checking for --enable-fraction" >&5
3661 no_cache=0
3662 # Check whether --enable-fraction or --disable-fraction was given.
3663 if test "${enable_fraction+set}" = set; then
3664 enableval="$enable_fraction"
3665
3666 if test "$enableval" = yes; then
3667 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3668 else
3669 ac_cv_use_fraction='wxUSE_FRACTION=no'
3670 fi
3671
3672 else
3673
3674 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3675 if test "x$LINE" != x ; then
3676 eval "DEFAULT_$LINE"
3677 else
3678 no_cache=1
3679 fi
3680
3681 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3682
3683 fi
3684
3685
3686 eval "$ac_cv_use_fraction"
3687 if test "$no_cache" != 1; then
3688 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3689 fi
3690
3691 if test "$wxUSE_FRACTION" = yes; then
3692 echo "$ac_t""yes" 1>&6
3693 else
3694 echo "$ac_t""no" 1>&6
3695 fi
3696
3697
3698 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3699 echo "configure:3700: checking for --enable-dynlib" >&5
3700 no_cache=0
3701 # Check whether --enable-dynlib or --disable-dynlib was given.
3702 if test "${enable_dynlib+set}" = set; then
3703 enableval="$enable_dynlib"
3704
3705 if test "$enableval" = yes; then
3706 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3707 else
3708 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3709 fi
3710
3711 else
3712
3713 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3714 if test "x$LINE" != x ; then
3715 eval "DEFAULT_$LINE"
3716 else
3717 no_cache=1
3718 fi
3719
3720 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3721
3722 fi
3723
3724
3725 eval "$ac_cv_use_dynlib"
3726 if test "$no_cache" != 1; then
3727 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3728 fi
3729
3730 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3731 echo "$ac_t""yes" 1>&6
3732 else
3733 echo "$ac_t""no" 1>&6
3734 fi
3735
3736
3737 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3738 echo "configure:3739: checking for --enable-dynamicloader" >&5
3739 no_cache=0
3740 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3741 if test "${enable_dynamicloader+set}" = set; then
3742 enableval="$enable_dynamicloader"
3743
3744 if test "$enableval" = yes; then
3745 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3746 else
3747 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3748 fi
3749
3750 else
3751
3752 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3753 if test "x$LINE" != x ; then
3754 eval "DEFAULT_$LINE"
3755 else
3756 no_cache=1
3757 fi
3758
3759 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3760
3761 fi
3762
3763
3764 eval "$ac_cv_use_dynamicloader"
3765 if test "$no_cache" != 1; then
3766 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3767 fi
3768
3769 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3770 echo "$ac_t""yes" 1>&6
3771 else
3772 echo "$ac_t""no" 1>&6
3773 fi
3774
3775
3776 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3777 echo "configure:3778: checking for --enable-longlong" >&5
3778 no_cache=0
3779 # Check whether --enable-longlong or --disable-longlong was given.
3780 if test "${enable_longlong+set}" = set; then
3781 enableval="$enable_longlong"
3782
3783 if test "$enableval" = yes; then
3784 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3785 else
3786 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3787 fi
3788
3789 else
3790
3791 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3792 if test "x$LINE" != x ; then
3793 eval "DEFAULT_$LINE"
3794 else
3795 no_cache=1
3796 fi
3797
3798 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3799
3800 fi
3801
3802
3803 eval "$ac_cv_use_longlong"
3804 if test "$no_cache" != 1; then
3805 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3806 fi
3807
3808 if test "$wxUSE_LONGLONG" = yes; then
3809 echo "$ac_t""yes" 1>&6
3810 else
3811 echo "$ac_t""no" 1>&6
3812 fi
3813
3814
3815 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3816 echo "configure:3817: checking for --enable-geometry" >&5
3817 no_cache=0
3818 # Check whether --enable-geometry or --disable-geometry was given.
3819 if test "${enable_geometry+set}" = set; then
3820 enableval="$enable_geometry"
3821
3822 if test "$enableval" = yes; then
3823 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3824 else
3825 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3826 fi
3827
3828 else
3829
3830 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3831 if test "x$LINE" != x ; then
3832 eval "DEFAULT_$LINE"
3833 else
3834 no_cache=1
3835 fi
3836
3837 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3838
3839 fi
3840
3841
3842 eval "$ac_cv_use_geometry"
3843 if test "$no_cache" != 1; then
3844 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3845 fi
3846
3847 if test "$wxUSE_GEOMETRY" = yes; then
3848 echo "$ac_t""yes" 1>&6
3849 else
3850 echo "$ac_t""no" 1>&6
3851 fi
3852
3853
3854 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3855 echo "configure:3856: checking for --enable-log" >&5
3856 no_cache=0
3857 # Check whether --enable-log or --disable-log was given.
3858 if test "${enable_log+set}" = set; then
3859 enableval="$enable_log"
3860
3861 if test "$enableval" = yes; then
3862 ac_cv_use_log='wxUSE_LOG=yes'
3863 else
3864 ac_cv_use_log='wxUSE_LOG=no'
3865 fi
3866
3867 else
3868
3869 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3870 if test "x$LINE" != x ; then
3871 eval "DEFAULT_$LINE"
3872 else
3873 no_cache=1
3874 fi
3875
3876 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3877
3878 fi
3879
3880
3881 eval "$ac_cv_use_log"
3882 if test "$no_cache" != 1; then
3883 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3884 fi
3885
3886 if test "$wxUSE_LOG" = yes; then
3887 echo "$ac_t""yes" 1>&6
3888 else
3889 echo "$ac_t""no" 1>&6
3890 fi
3891
3892
3893 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3894 echo "configure:3895: checking for --enable-streams" >&5
3895 no_cache=0
3896 # Check whether --enable-streams or --disable-streams was given.
3897 if test "${enable_streams+set}" = set; then
3898 enableval="$enable_streams"
3899
3900 if test "$enableval" = yes; then
3901 ac_cv_use_streams='wxUSE_STREAMS=yes'
3902 else
3903 ac_cv_use_streams='wxUSE_STREAMS=no'
3904 fi
3905
3906 else
3907
3908 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3909 if test "x$LINE" != x ; then
3910 eval "DEFAULT_$LINE"
3911 else
3912 no_cache=1
3913 fi
3914
3915 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3916
3917 fi
3918
3919
3920 eval "$ac_cv_use_streams"
3921 if test "$no_cache" != 1; then
3922 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3923 fi
3924
3925 if test "$wxUSE_STREAMS" = yes; then
3926 echo "$ac_t""yes" 1>&6
3927 else
3928 echo "$ac_t""no" 1>&6
3929 fi
3930
3931
3932 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3933 echo "configure:3934: checking for --enable-file" >&5
3934 no_cache=0
3935 # Check whether --enable-file or --disable-file was given.
3936 if test "${enable_file+set}" = set; then
3937 enableval="$enable_file"
3938
3939 if test "$enableval" = yes; then
3940 ac_cv_use_file='wxUSE_FILE=yes'
3941 else
3942 ac_cv_use_file='wxUSE_FILE=no'
3943 fi
3944
3945 else
3946
3947 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3955
3956 fi
3957
3958
3959 eval "$ac_cv_use_file"
3960 if test "$no_cache" != 1; then
3961 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3962 fi
3963
3964 if test "$wxUSE_FILE" = yes; then
3965 echo "$ac_t""yes" 1>&6
3966 else
3967 echo "$ac_t""no" 1>&6
3968 fi
3969
3970
3971 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3972 echo "configure:3973: checking for --enable-ffile" >&5
3973 no_cache=0
3974 # Check whether --enable-ffile or --disable-ffile was given.
3975 if test "${enable_ffile+set}" = set; then
3976 enableval="$enable_ffile"
3977
3978 if test "$enableval" = yes; then
3979 ac_cv_use_ffile='wxUSE_FFILE=yes'
3980 else
3981 ac_cv_use_ffile='wxUSE_FFILE=no'
3982 fi
3983
3984 else
3985
3986 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3987 if test "x$LINE" != x ; then
3988 eval "DEFAULT_$LINE"
3989 else
3990 no_cache=1
3991 fi
3992
3993 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3994
3995 fi
3996
3997
3998 eval "$ac_cv_use_ffile"
3999 if test "$no_cache" != 1; then
4000 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4001 fi
4002
4003 if test "$wxUSE_FFILE" = yes; then
4004 echo "$ac_t""yes" 1>&6
4005 else
4006 echo "$ac_t""no" 1>&6
4007 fi
4008
4009
4010 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
4011 echo "configure:4012: checking for --enable-textbuf" >&5
4012 no_cache=0
4013 # Check whether --enable-textbuf or --disable-textbuf was given.
4014 if test "${enable_textbuf+set}" = set; then
4015 enableval="$enable_textbuf"
4016
4017 if test "$enableval" = yes; then
4018 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4019 else
4020 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4021 fi
4022
4023 else
4024
4025 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4026 if test "x$LINE" != x ; then
4027 eval "DEFAULT_$LINE"
4028 else
4029 no_cache=1
4030 fi
4031
4032 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4033
4034 fi
4035
4036
4037 eval "$ac_cv_use_textbuf"
4038 if test "$no_cache" != 1; then
4039 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4040 fi
4041
4042 if test "$wxUSE_TEXTBUFFER" = yes; then
4043 echo "$ac_t""yes" 1>&6
4044 else
4045 echo "$ac_t""no" 1>&6
4046 fi
4047
4048
4049 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4050 echo "configure:4051: checking for --enable-textfile" >&5
4051 no_cache=0
4052 # Check whether --enable-textfile or --disable-textfile was given.
4053 if test "${enable_textfile+set}" = set; then
4054 enableval="$enable_textfile"
4055
4056 if test "$enableval" = yes; then
4057 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4058 else
4059 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4060 fi
4061
4062 else
4063
4064 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4065 if test "x$LINE" != x ; then
4066 eval "DEFAULT_$LINE"
4067 else
4068 no_cache=1
4069 fi
4070
4071 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4072
4073 fi
4074
4075
4076 eval "$ac_cv_use_textfile"
4077 if test "$no_cache" != 1; then
4078 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4079 fi
4080
4081 if test "$wxUSE_TEXTFILE" = yes; then
4082 echo "$ac_t""yes" 1>&6
4083 else
4084 echo "$ac_t""no" 1>&6
4085 fi
4086
4087
4088 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4089 echo "configure:4090: checking for --enable-fontmap" >&5
4090 no_cache=0
4091 # Check whether --enable-fontmap or --disable-fontmap was given.
4092 if test "${enable_fontmap+set}" = set; then
4093 enableval="$enable_fontmap"
4094
4095 if test "$enableval" = yes; then
4096 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4097 else
4098 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4099 fi
4100
4101 else
4102
4103 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4104 if test "x$LINE" != x ; then
4105 eval "DEFAULT_$LINE"
4106 else
4107 no_cache=1
4108 fi
4109
4110 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4111
4112 fi
4113
4114
4115 eval "$ac_cv_use_fontmap"
4116 if test "$no_cache" != 1; then
4117 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4118 fi
4119
4120 if test "$wxUSE_FONTMAP" = yes; then
4121 echo "$ac_t""yes" 1>&6
4122 else
4123 echo "$ac_t""no" 1>&6
4124 fi
4125
4126
4127 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4128 echo "configure:4129: checking for --enable-unicode" >&5
4129 no_cache=0
4130 # Check whether --enable-unicode or --disable-unicode was given.
4131 if test "${enable_unicode+set}" = set; then
4132 enableval="$enable_unicode"
4133
4134 if test "$enableval" = yes; then
4135 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4136 else
4137 ac_cv_use_unicode='wxUSE_UNICODE=no'
4138 fi
4139
4140 else
4141
4142 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4143 if test "x$LINE" != x ; then
4144 eval "DEFAULT_$LINE"
4145 else
4146 no_cache=1
4147 fi
4148
4149 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4150
4151 fi
4152
4153
4154 eval "$ac_cv_use_unicode"
4155 if test "$no_cache" != 1; then
4156 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4157 fi
4158
4159 if test "$wxUSE_UNICODE" = yes; then
4160 echo "$ac_t""yes" 1>&6
4161 else
4162 echo "$ac_t""no" 1>&6
4163 fi
4164
4165
4166 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4167 echo "configure:4168: checking for --enable-mslu" >&5
4168 no_cache=0
4169 # Check whether --enable-mslu or --disable-mslu was given.
4170 if test "${enable_mslu+set}" = set; then
4171 enableval="$enable_mslu"
4172
4173 if test "$enableval" = yes; then
4174 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4175 else
4176 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4177 fi
4178
4179 else
4180
4181 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4182 if test "x$LINE" != x ; then
4183 eval "DEFAULT_$LINE"
4184 else
4185 no_cache=1
4186 fi
4187
4188 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4189
4190 fi
4191
4192
4193 eval "$ac_cv_use_mslu"
4194 if test "$no_cache" != 1; then
4195 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4196 fi
4197
4198 if test "$wxUSE_UNICODE_MSLU" = yes; then
4199 echo "$ac_t""yes" 1>&6
4200 else
4201 echo "$ac_t""no" 1>&6
4202 fi
4203
4204
4205 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4206 echo "configure:4207: checking for --enable-wxprintfv" >&5
4207 no_cache=0
4208 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4209 if test "${enable_wxprintfv+set}" = set; then
4210 enableval="$enable_wxprintfv"
4211
4212 if test "$enableval" = yes; then
4213 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4214 else
4215 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4216 fi
4217
4218 else
4219
4220 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4221 if test "x$LINE" != x ; then
4222 eval "DEFAULT_$LINE"
4223 else
4224 no_cache=1
4225 fi
4226
4227 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4228
4229 fi
4230
4231
4232 eval "$ac_cv_use_wxprintfv"
4233 if test "$no_cache" != 1; then
4234 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4235 fi
4236
4237 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4238 echo "$ac_t""yes" 1>&6
4239 else
4240 echo "$ac_t""no" 1>&6
4241 fi
4242
4243
4244 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4245 echo "configure:4246: checking for --enable-std_iostreams" >&5
4246 no_cache=0
4247 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4248 if test "${enable_std_iostreams+set}" = set; then
4249 enableval="$enable_std_iostreams"
4250
4251 if test "$enableval" = yes; then
4252 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4253 else
4254 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4255 fi
4256
4257 else
4258
4259 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4260 if test "x$LINE" != x ; then
4261 eval "DEFAULT_$LINE"
4262 else
4263 no_cache=1
4264 fi
4265
4266 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4267
4268 fi
4269
4270
4271 eval "$ac_cv_use_std_iostreams"
4272 if test "$no_cache" != 1; then
4273 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4274 fi
4275
4276 if test "$wxUSE_STD_IOSTREAM" = yes; then
4277 echo "$ac_t""yes" 1>&6
4278 else
4279 echo "$ac_t""no" 1>&6
4280 fi
4281
4282
4283 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4284 echo "configure:4285: checking for --enable-filesystem" >&5
4285 no_cache=0
4286 # Check whether --enable-filesystem or --disable-filesystem was given.
4287 if test "${enable_filesystem+set}" = set; then
4288 enableval="$enable_filesystem"
4289
4290 if test "$enableval" = yes; then
4291 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4292 else
4293 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4294 fi
4295
4296 else
4297
4298 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4299 if test "x$LINE" != x ; then
4300 eval "DEFAULT_$LINE"
4301 else
4302 no_cache=1
4303 fi
4304
4305 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4306
4307 fi
4308
4309
4310 eval "$ac_cv_use_filesystem"
4311 if test "$no_cache" != 1; then
4312 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4313 fi
4314
4315 if test "$wxUSE_FILESYSTEM" = yes; then
4316 echo "$ac_t""yes" 1>&6
4317 else
4318 echo "$ac_t""no" 1>&6
4319 fi
4320
4321
4322 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4323 echo "configure:4324: checking for --enable-fs_inet" >&5
4324 no_cache=0
4325 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4326 if test "${enable_fs_inet+set}" = set; then
4327 enableval="$enable_fs_inet"
4328
4329 if test "$enableval" = yes; then
4330 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4331 else
4332 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4333 fi
4334
4335 else
4336
4337 LINE=`grep "wxUSE_FS_INET" ${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_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4345
4346 fi
4347
4348
4349 eval "$ac_cv_use_fs_inet"
4350 if test "$no_cache" != 1; then
4351 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4352 fi
4353
4354 if test "$wxUSE_FS_INET" = yes; then
4355 echo "$ac_t""yes" 1>&6
4356 else
4357 echo "$ac_t""no" 1>&6
4358 fi
4359
4360
4361 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4362 echo "configure:4363: checking for --enable-fs_zip" >&5
4363 no_cache=0
4364 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4365 if test "${enable_fs_zip+set}" = set; then
4366 enableval="$enable_fs_zip"
4367
4368 if test "$enableval" = yes; then
4369 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4370 else
4371 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4372 fi
4373
4374 else
4375
4376 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4377 if test "x$LINE" != x ; then
4378 eval "DEFAULT_$LINE"
4379 else
4380 no_cache=1
4381 fi
4382
4383 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4384
4385 fi
4386
4387
4388 eval "$ac_cv_use_fs_zip"
4389 if test "$no_cache" != 1; then
4390 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4391 fi
4392
4393 if test "$wxUSE_FS_ZIP" = yes; then
4394 echo "$ac_t""yes" 1>&6
4395 else
4396 echo "$ac_t""no" 1>&6
4397 fi
4398
4399
4400 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4401 echo "configure:4402: checking for --enable-zipstream" >&5
4402 no_cache=0
4403 # Check whether --enable-zipstream or --disable-zipstream was given.
4404 if test "${enable_zipstream+set}" = set; then
4405 enableval="$enable_zipstream"
4406
4407 if test "$enableval" = yes; then
4408 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4409 else
4410 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4411 fi
4412
4413 else
4414
4415 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4416 if test "x$LINE" != x ; then
4417 eval "DEFAULT_$LINE"
4418 else
4419 no_cache=1
4420 fi
4421
4422 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4423
4424 fi
4425
4426
4427 eval "$ac_cv_use_zipstream"
4428 if test "$no_cache" != 1; then
4429 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4430 fi
4431
4432 if test "$wxUSE_ZIPSTREAM" = yes; then
4433 echo "$ac_t""yes" 1>&6
4434 else
4435 echo "$ac_t""no" 1>&6
4436 fi
4437
4438
4439
4440 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4441 echo "configure:4442: checking for --enable-catch_segvs" >&5
4442 no_cache=0
4443 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4444 if test "${enable_catch_segvs+set}" = set; then
4445 enableval="$enable_catch_segvs"
4446
4447 if test "$enableval" = yes; then
4448 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4449 else
4450 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4451 fi
4452
4453 else
4454
4455 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4456 if test "x$LINE" != x ; then
4457 eval "DEFAULT_$LINE"
4458 else
4459 no_cache=1
4460 fi
4461
4462 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4463
4464 fi
4465
4466
4467 eval "$ac_cv_use_catch_segvs"
4468 if test "$no_cache" != 1; then
4469 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4470 fi
4471
4472 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4473 echo "$ac_t""yes" 1>&6
4474 else
4475 echo "$ac_t""no" 1>&6
4476 fi
4477
4478
4479 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4480 echo "configure:4481: checking for --enable-snglinst" >&5
4481 no_cache=0
4482 # Check whether --enable-snglinst or --disable-snglinst was given.
4483 if test "${enable_snglinst+set}" = set; then
4484 enableval="$enable_snglinst"
4485
4486 if test "$enableval" = yes; then
4487 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4488 else
4489 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4490 fi
4491
4492 else
4493
4494 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4495 if test "x$LINE" != x ; then
4496 eval "DEFAULT_$LINE"
4497 else
4498 no_cache=1
4499 fi
4500
4501 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4502
4503 fi
4504
4505
4506 eval "$ac_cv_use_snglinst"
4507 if test "$no_cache" != 1; then
4508 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4509 fi
4510
4511 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4512 echo "$ac_t""yes" 1>&6
4513 else
4514 echo "$ac_t""no" 1>&6
4515 fi
4516
4517
4518
4519 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4520 echo "configure:4521: checking for --enable-mimetype" >&5
4521 no_cache=0
4522 # Check whether --enable-mimetype or --disable-mimetype was given.
4523 if test "${enable_mimetype+set}" = set; then
4524 enableval="$enable_mimetype"
4525
4526 if test "$enableval" = yes; then
4527 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4528 else
4529 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4530 fi
4531
4532 else
4533
4534 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4535 if test "x$LINE" != x ; then
4536 eval "DEFAULT_$LINE"
4537 else
4538 no_cache=1
4539 fi
4540
4541 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4542
4543 fi
4544
4545
4546 eval "$ac_cv_use_mimetype"
4547 if test "$no_cache" != 1; then
4548 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4549 fi
4550
4551 if test "$wxUSE_MIMETYPE" = yes; then
4552 echo "$ac_t""yes" 1>&6
4553 else
4554 echo "$ac_t""no" 1>&6
4555 fi
4556
4557
4558 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4559 echo "configure:4560: checking for --enable-system_options" >&5
4560 no_cache=0
4561 # Check whether --enable-system_options or --disable-system_options was given.
4562 if test "${enable_system_options+set}" = set; then
4563 enableval="$enable_system_options"
4564
4565 if test "$enableval" = yes; then
4566 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4567 else
4568 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4569 fi
4570
4571 else
4572
4573 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4574 if test "x$LINE" != x ; then
4575 eval "DEFAULT_$LINE"
4576 else
4577 no_cache=1
4578 fi
4579
4580 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4581
4582 fi
4583
4584
4585 eval "$ac_cv_use_system_options"
4586 if test "$no_cache" != 1; then
4587 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4588 fi
4589
4590 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4591 echo "$ac_t""yes" 1>&6
4592 else
4593 echo "$ac_t""no" 1>&6
4594 fi
4595
4596
4597
4598 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4599 echo "configure:4600: checking for --enable-url" >&5
4600 no_cache=0
4601 # Check whether --enable-url or --disable-url was given.
4602 if test "${enable_url+set}" = set; then
4603 enableval="$enable_url"
4604
4605 if test "$enableval" = yes; then
4606 ac_cv_use_url='wxUSE_URL=yes'
4607 else
4608 ac_cv_use_url='wxUSE_URL=no'
4609 fi
4610
4611 else
4612
4613 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4614 if test "x$LINE" != x ; then
4615 eval "DEFAULT_$LINE"
4616 else
4617 no_cache=1
4618 fi
4619
4620 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4621
4622 fi
4623
4624
4625 eval "$ac_cv_use_url"
4626 if test "$no_cache" != 1; then
4627 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4628 fi
4629
4630 if test "$wxUSE_URL" = yes; then
4631 echo "$ac_t""yes" 1>&6
4632 else
4633 echo "$ac_t""no" 1>&6
4634 fi
4635
4636
4637 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4638 echo "configure:4639: checking for --enable-protocol" >&5
4639 no_cache=0
4640 # Check whether --enable-protocol or --disable-protocol was given.
4641 if test "${enable_protocol+set}" = set; then
4642 enableval="$enable_protocol"
4643
4644 if test "$enableval" = yes; then
4645 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4646 else
4647 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4648 fi
4649
4650 else
4651
4652 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4653 if test "x$LINE" != x ; then
4654 eval "DEFAULT_$LINE"
4655 else
4656 no_cache=1
4657 fi
4658
4659 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4660
4661 fi
4662
4663
4664 eval "$ac_cv_use_protocol"
4665 if test "$no_cache" != 1; then
4666 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4667 fi
4668
4669 if test "$wxUSE_PROTOCOL" = yes; then
4670 echo "$ac_t""yes" 1>&6
4671 else
4672 echo "$ac_t""no" 1>&6
4673 fi
4674
4675
4676 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4677 echo "configure:4678: checking for --enable-protocol_http" >&5
4678 no_cache=0
4679 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4680 if test "${enable_protocol_http+set}" = set; then
4681 enableval="$enable_protocol_http"
4682
4683 if test "$enableval" = yes; then
4684 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4685 else
4686 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4687 fi
4688
4689 else
4690
4691 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4692 if test "x$LINE" != x ; then
4693 eval "DEFAULT_$LINE"
4694 else
4695 no_cache=1
4696 fi
4697
4698 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4699
4700 fi
4701
4702
4703 eval "$ac_cv_use_protocol_http"
4704 if test "$no_cache" != 1; then
4705 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4706 fi
4707
4708 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4709 echo "$ac_t""yes" 1>&6
4710 else
4711 echo "$ac_t""no" 1>&6
4712 fi
4713
4714
4715 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4716 echo "configure:4717: checking for --enable-protocol_ftp" >&5
4717 no_cache=0
4718 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4719 if test "${enable_protocol_ftp+set}" = set; then
4720 enableval="$enable_protocol_ftp"
4721
4722 if test "$enableval" = yes; then
4723 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4724 else
4725 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4726 fi
4727
4728 else
4729
4730 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4731 if test "x$LINE" != x ; then
4732 eval "DEFAULT_$LINE"
4733 else
4734 no_cache=1
4735 fi
4736
4737 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4738
4739 fi
4740
4741
4742 eval "$ac_cv_use_protocol_ftp"
4743 if test "$no_cache" != 1; then
4744 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4745 fi
4746
4747 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4748 echo "$ac_t""yes" 1>&6
4749 else
4750 echo "$ac_t""no" 1>&6
4751 fi
4752
4753
4754 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4755 echo "configure:4756: checking for --enable-protocol_file" >&5
4756 no_cache=0
4757 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4758 if test "${enable_protocol_file+set}" = set; then
4759 enableval="$enable_protocol_file"
4760
4761 if test "$enableval" = yes; then
4762 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4763 else
4764 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4765 fi
4766
4767 else
4768
4769 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4770 if test "x$LINE" != x ; then
4771 eval "DEFAULT_$LINE"
4772 else
4773 no_cache=1
4774 fi
4775
4776 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4777
4778 fi
4779
4780
4781 eval "$ac_cv_use_protocol_file"
4782 if test "$no_cache" != 1; then
4783 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4784 fi
4785
4786 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4787 echo "$ac_t""yes" 1>&6
4788 else
4789 echo "$ac_t""no" 1>&6
4790 fi
4791
4792
4793
4794
4795
4796 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4797 echo "configure:4798: checking for --enable-threads" >&5
4798 no_cache=0
4799 # Check whether --enable-threads or --disable-threads was given.
4800 if test "${enable_threads+set}" = set; then
4801 enableval="$enable_threads"
4802
4803 if test "$enableval" = yes; then
4804 ac_cv_use_threads='wxUSE_THREADS=yes'
4805 else
4806 ac_cv_use_threads='wxUSE_THREADS=no'
4807 fi
4808
4809 else
4810
4811 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4812 if test "x$LINE" != x ; then
4813 eval "DEFAULT_$LINE"
4814 else
4815 no_cache=1
4816 fi
4817
4818 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4819
4820 fi
4821
4822
4823 eval "$ac_cv_use_threads"
4824 if test "$no_cache" != 1; then
4825 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4826 fi
4827
4828 if test "$wxUSE_THREADS" = yes; then
4829 echo "$ac_t""yes" 1>&6
4830 else
4831 echo "$ac_t""no" 1>&6
4832 fi
4833
4834
4835 if test "$wxUSE_GUI" = "yes"; then
4836
4837
4838
4839 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4840 echo "configure:4841: checking for --enable-docview" >&5
4841 no_cache=0
4842 # Check whether --enable-docview or --disable-docview was given.
4843 if test "${enable_docview+set}" = set; then
4844 enableval="$enable_docview"
4845
4846 if test "$enableval" = yes; then
4847 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4848 else
4849 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4850 fi
4851
4852 else
4853
4854 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4855 if test "x$LINE" != x ; then
4856 eval "DEFAULT_$LINE"
4857 else
4858 no_cache=1
4859 fi
4860
4861 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4862
4863 fi
4864
4865
4866 eval "$ac_cv_use_docview"
4867 if test "$no_cache" != 1; then
4868 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4869 fi
4870
4871 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4872 echo "$ac_t""yes" 1>&6
4873 else
4874 echo "$ac_t""no" 1>&6
4875 fi
4876
4877
4878 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4879 echo "configure:4880: checking for --enable-help" >&5
4880 no_cache=0
4881 # Check whether --enable-help or --disable-help was given.
4882 if test "${enable_help+set}" = set; then
4883 enableval="$enable_help"
4884
4885 if test "$enableval" = yes; then
4886 ac_cv_use_help='wxUSE_HELP=yes'
4887 else
4888 ac_cv_use_help='wxUSE_HELP=no'
4889 fi
4890
4891 else
4892
4893 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4894 if test "x$LINE" != x ; then
4895 eval "DEFAULT_$LINE"
4896 else
4897 no_cache=1
4898 fi
4899
4900 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4901
4902 fi
4903
4904
4905 eval "$ac_cv_use_help"
4906 if test "$no_cache" != 1; then
4907 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4908 fi
4909
4910 if test "$wxUSE_HELP" = yes; then
4911 echo "$ac_t""yes" 1>&6
4912 else
4913 echo "$ac_t""no" 1>&6
4914 fi
4915
4916
4917 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4918 echo "configure:4919: checking for --enable-mshtmlhelp" >&5
4919 no_cache=0
4920 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4921 if test "${enable_mshtmlhelp+set}" = set; then
4922 enableval="$enable_mshtmlhelp"
4923
4924 if test "$enableval" = yes; then
4925 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4926 else
4927 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4928 fi
4929
4930 else
4931
4932 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4933 if test "x$LINE" != x ; then
4934 eval "DEFAULT_$LINE"
4935 else
4936 no_cache=1
4937 fi
4938
4939 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4940
4941 fi
4942
4943
4944 eval "$ac_cv_use_mshtmlhelp"
4945 if test "$no_cache" != 1; then
4946 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4947 fi
4948
4949 if test "$wxUSE_MS_HTML_HELP" = yes; then
4950 echo "$ac_t""yes" 1>&6
4951 else
4952 echo "$ac_t""no" 1>&6
4953 fi
4954
4955
4956 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4957 echo "configure:4958: checking for --enable-html" >&5
4958 no_cache=0
4959 # Check whether --enable-html or --disable-html was given.
4960 if test "${enable_html+set}" = set; then
4961 enableval="$enable_html"
4962
4963 if test "$enableval" = yes; then
4964 ac_cv_use_html='wxUSE_HTML=yes'
4965 else
4966 ac_cv_use_html='wxUSE_HTML=no'
4967 fi
4968
4969 else
4970
4971 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4972 if test "x$LINE" != x ; then
4973 eval "DEFAULT_$LINE"
4974 else
4975 no_cache=1
4976 fi
4977
4978 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4979
4980 fi
4981
4982
4983 eval "$ac_cv_use_html"
4984 if test "$no_cache" != 1; then
4985 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4986 fi
4987
4988 if test "$wxUSE_HTML" = yes; then
4989 echo "$ac_t""yes" 1>&6
4990 else
4991 echo "$ac_t""no" 1>&6
4992 fi
4993
4994
4995 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4996 echo "configure:4997: checking for --enable-htmlhelp" >&5
4997 no_cache=0
4998 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4999 if test "${enable_htmlhelp+set}" = set; then
5000 enableval="$enable_htmlhelp"
5001
5002 if test "$enableval" = yes; then
5003 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5004 else
5005 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5006 fi
5007
5008 else
5009
5010 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5011 if test "x$LINE" != x ; then
5012 eval "DEFAULT_$LINE"
5013 else
5014 no_cache=1
5015 fi
5016
5017 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5018
5019 fi
5020
5021
5022 eval "$ac_cv_use_htmlhelp"
5023 if test "$no_cache" != 1; then
5024 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5025 fi
5026
5027 if test "$wxUSE_WXHTML_HELP" = yes; then
5028 echo "$ac_t""yes" 1>&6
5029 else
5030 echo "$ac_t""no" 1>&6
5031 fi
5032
5033
5034 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5035 echo "configure:5036: checking for --enable-constraints" >&5
5036 no_cache=0
5037 # Check whether --enable-constraints or --disable-constraints was given.
5038 if test "${enable_constraints+set}" = set; then
5039 enableval="$enable_constraints"
5040
5041 if test "$enableval" = yes; then
5042 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5043 else
5044 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5045 fi
5046
5047 else
5048
5049 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5050 if test "x$LINE" != x ; then
5051 eval "DEFAULT_$LINE"
5052 else
5053 no_cache=1
5054 fi
5055
5056 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5057
5058 fi
5059
5060
5061 eval "$ac_cv_use_constraints"
5062 if test "$no_cache" != 1; then
5063 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5064 fi
5065
5066 if test "$wxUSE_CONSTRAINTS" = yes; then
5067 echo "$ac_t""yes" 1>&6
5068 else
5069 echo "$ac_t""no" 1>&6
5070 fi
5071
5072
5073 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5074 echo "configure:5075: checking for --enable-printarch" >&5
5075 no_cache=0
5076 # Check whether --enable-printarch or --disable-printarch was given.
5077 if test "${enable_printarch+set}" = set; then
5078 enableval="$enable_printarch"
5079
5080 if test "$enableval" = yes; then
5081 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5082 else
5083 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5084 fi
5085
5086 else
5087
5088 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5089 if test "x$LINE" != x ; then
5090 eval "DEFAULT_$LINE"
5091 else
5092 no_cache=1
5093 fi
5094
5095 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5096
5097 fi
5098
5099
5100 eval "$ac_cv_use_printarch"
5101 if test "$no_cache" != 1; then
5102 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5103 fi
5104
5105 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5106 echo "$ac_t""yes" 1>&6
5107 else
5108 echo "$ac_t""no" 1>&6
5109 fi
5110
5111
5112 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5113 echo "configure:5114: checking for --enable-mdi" >&5
5114 no_cache=0
5115 # Check whether --enable-mdi or --disable-mdi was given.
5116 if test "${enable_mdi+set}" = set; then
5117 enableval="$enable_mdi"
5118
5119 if test "$enableval" = yes; then
5120 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5121 else
5122 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5123 fi
5124
5125 else
5126
5127 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5128 if test "x$LINE" != x ; then
5129 eval "DEFAULT_$LINE"
5130 else
5131 no_cache=1
5132 fi
5133
5134 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5135
5136 fi
5137
5138
5139 eval "$ac_cv_use_mdi"
5140 if test "$no_cache" != 1; then
5141 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5142 fi
5143
5144 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5145 echo "$ac_t""yes" 1>&6
5146 else
5147 echo "$ac_t""no" 1>&6
5148 fi
5149
5150
5151 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5152 echo "configure:5153: checking for --enable-loggui" >&5
5153 no_cache=0
5154 # Check whether --enable-loggui or --disable-loggui was given.
5155 if test "${enable_loggui+set}" = set; then
5156 enableval="$enable_loggui"
5157
5158 if test "$enableval" = yes; then
5159 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5160 else
5161 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5162 fi
5163
5164 else
5165
5166 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5167 if test "x$LINE" != x ; then
5168 eval "DEFAULT_$LINE"
5169 else
5170 no_cache=1
5171 fi
5172
5173 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5174
5175 fi
5176
5177
5178 eval "$ac_cv_use_loggui"
5179 if test "$no_cache" != 1; then
5180 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5181 fi
5182
5183 if test "$wxUSE_LOGGUI" = yes; then
5184 echo "$ac_t""yes" 1>&6
5185 else
5186 echo "$ac_t""no" 1>&6
5187 fi
5188
5189
5190 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5191 echo "configure:5192: checking for --enable-logwin" >&5
5192 no_cache=0
5193 # Check whether --enable-logwin or --disable-logwin was given.
5194 if test "${enable_logwin+set}" = set; then
5195 enableval="$enable_logwin"
5196
5197 if test "$enableval" = yes; then
5198 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5199 else
5200 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5201 fi
5202
5203 else
5204
5205 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5206 if test "x$LINE" != x ; then
5207 eval "DEFAULT_$LINE"
5208 else
5209 no_cache=1
5210 fi
5211
5212 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5213
5214 fi
5215
5216
5217 eval "$ac_cv_use_logwin"
5218 if test "$no_cache" != 1; then
5219 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5220 fi
5221
5222 if test "$wxUSE_LOGWINDOW" = yes; then
5223 echo "$ac_t""yes" 1>&6
5224 else
5225 echo "$ac_t""no" 1>&6
5226 fi
5227
5228
5229 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5230 echo "configure:5231: checking for --enable-logdialog" >&5
5231 no_cache=0
5232 # Check whether --enable-logdialog or --disable-logdialog was given.
5233 if test "${enable_logdialog+set}" = set; then
5234 enableval="$enable_logdialog"
5235
5236 if test "$enableval" = yes; then
5237 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5238 else
5239 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5240 fi
5241
5242 else
5243
5244 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5245 if test "x$LINE" != x ; then
5246 eval "DEFAULT_$LINE"
5247 else
5248 no_cache=1
5249 fi
5250
5251 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5252
5253 fi
5254
5255
5256 eval "$ac_cv_use_logdialog"
5257 if test "$no_cache" != 1; then
5258 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5259 fi
5260
5261 if test "$wxUSE_LOGDIALOG" = yes; then
5262 echo "$ac_t""yes" 1>&6
5263 else
5264 echo "$ac_t""no" 1>&6
5265 fi
5266
5267
5268
5269 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5270 echo "configure:5271: checking for --enable-postscript" >&5
5271 no_cache=0
5272 # Check whether --enable-postscript or --disable-postscript was given.
5273 if test "${enable_postscript+set}" = set; then
5274 enableval="$enable_postscript"
5275
5276 if test "$enableval" = yes; then
5277 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5278 else
5279 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5280 fi
5281
5282 else
5283
5284 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5285 if test "x$LINE" != x ; then
5286 eval "DEFAULT_$LINE"
5287 else
5288 no_cache=1
5289 fi
5290
5291 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5292
5293 fi
5294
5295
5296 eval "$ac_cv_use_postscript"
5297 if test "$no_cache" != 1; then
5298 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5299 fi
5300
5301 if test "$wxUSE_POSTSCRIPT" = yes; then
5302 echo "$ac_t""yes" 1>&6
5303 else
5304 echo "$ac_t""no" 1>&6
5305 fi
5306
5307
5308
5309
5310
5311 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5312 echo "configure:5313: checking for --enable-prologio" >&5
5313 no_cache=0
5314 # Check whether --enable-prologio or --disable-prologio was given.
5315 if test "${enable_prologio+set}" = set; then
5316 enableval="$enable_prologio"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5320 else
5321 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5322 fi
5323
5324 else
5325
5326 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5334
5335 fi
5336
5337
5338 eval "$ac_cv_use_prologio"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_PROLOGIO" = yes; then
5344 echo "$ac_t""yes" 1>&6
5345 else
5346 echo "$ac_t""no" 1>&6
5347 fi
5348
5349
5350 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5351 echo "configure:5352: checking for --enable-resources" >&5
5352 no_cache=0
5353 # Check whether --enable-resources or --disable-resources was given.
5354 if test "${enable_resources+set}" = set; then
5355 enableval="$enable_resources"
5356
5357 if test "$enableval" = yes; then
5358 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5359 else
5360 ac_cv_use_resources='wxUSE_RESOURCES=no'
5361 fi
5362
5363 else
5364
5365 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5366 if test "x$LINE" != x ; then
5367 eval "DEFAULT_$LINE"
5368 else
5369 no_cache=1
5370 fi
5371
5372 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5373
5374 fi
5375
5376
5377 eval "$ac_cv_use_resources"
5378 if test "$no_cache" != 1; then
5379 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5380 fi
5381
5382 if test "$wxUSE_RESOURCES" = yes; then
5383 echo "$ac_t""yes" 1>&6
5384 else
5385 echo "$ac_t""no" 1>&6
5386 fi
5387
5388
5389
5390 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5391 echo "configure:5392: checking for --enable-xresources" >&5
5392 no_cache=0
5393 # Check whether --enable-xresources or --disable-xresources was given.
5394 if test "${enable_xresources+set}" = set; then
5395 enableval="$enable_xresources"
5396
5397 if test "$enableval" = yes; then
5398 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5399 else
5400 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5401 fi
5402
5403 else
5404
5405 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5406 if test "x$LINE" != x ; then
5407 eval "DEFAULT_$LINE"
5408 else
5409 no_cache=1
5410 fi
5411
5412 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5413
5414 fi
5415
5416
5417 eval "$ac_cv_use_xresources"
5418 if test "$no_cache" != 1; then
5419 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5420 fi
5421
5422 if test "$wxUSE_X_RESOURCES" = yes; then
5423 echo "$ac_t""yes" 1>&6
5424 else
5425 echo "$ac_t""no" 1>&6
5426 fi
5427
5428
5429
5430
5431 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5432 echo "configure:5433: checking for --enable-clipboard" >&5
5433 no_cache=0
5434 # Check whether --enable-clipboard or --disable-clipboard was given.
5435 if test "${enable_clipboard+set}" = set; then
5436 enableval="$enable_clipboard"
5437
5438 if test "$enableval" = yes; then
5439 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5440 else
5441 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5442 fi
5443
5444 else
5445
5446 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5447 if test "x$LINE" != x ; then
5448 eval "DEFAULT_$LINE"
5449 else
5450 no_cache=1
5451 fi
5452
5453 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5454
5455 fi
5456
5457
5458 eval "$ac_cv_use_clipboard"
5459 if test "$no_cache" != 1; then
5460 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5461 fi
5462
5463 if test "$wxUSE_CLIPBOARD" = yes; then
5464 echo "$ac_t""yes" 1>&6
5465 else
5466 echo "$ac_t""no" 1>&6
5467 fi
5468
5469
5470 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5471 echo "configure:5472: checking for --enable-dnd" >&5
5472 no_cache=0
5473 # Check whether --enable-dnd or --disable-dnd was given.
5474 if test "${enable_dnd+set}" = set; then
5475 enableval="$enable_dnd"
5476
5477 if test "$enableval" = yes; then
5478 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5479 else
5480 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5481 fi
5482
5483 else
5484
5485 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5486 if test "x$LINE" != x ; then
5487 eval "DEFAULT_$LINE"
5488 else
5489 no_cache=1
5490 fi
5491
5492 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5493
5494 fi
5495
5496
5497 eval "$ac_cv_use_dnd"
5498 if test "$no_cache" != 1; then
5499 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5500 fi
5501
5502 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5503 echo "$ac_t""yes" 1>&6
5504 else
5505 echo "$ac_t""no" 1>&6
5506 fi
5507
5508
5509 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5510 echo "configure:5511: checking for --enable-metafile" >&5
5511 no_cache=0
5512 # Check whether --enable-metafile or --disable-metafile was given.
5513 if test "${enable_metafile+set}" = set; then
5514 enableval="$enable_metafile"
5515
5516 if test "$enableval" = yes; then
5517 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5518 else
5519 ac_cv_use_metafile='wxUSE_METAFILE=no'
5520 fi
5521
5522 else
5523
5524 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5525 if test "x$LINE" != x ; then
5526 eval "DEFAULT_$LINE"
5527 else
5528 no_cache=1
5529 fi
5530
5531 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5532
5533 fi
5534
5535
5536 eval "$ac_cv_use_metafile"
5537 if test "$no_cache" != 1; then
5538 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5539 fi
5540
5541 if test "$wxUSE_METAFILE" = yes; then
5542 echo "$ac_t""yes" 1>&6
5543 else
5544 echo "$ac_t""no" 1>&6
5545 fi
5546
5547
5548
5549 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5550 echo "configure:5551: checking for --enable-treelayout" >&5
5551 no_cache=0
5552 # Check whether --enable-treelayout or --disable-treelayout was given.
5553 if test "${enable_treelayout+set}" = set; then
5554 enableval="$enable_treelayout"
5555
5556 if test "$enableval" = yes; then
5557 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5558 else
5559 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5560 fi
5561
5562 else
5563
5564 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5565 if test "x$LINE" != x ; then
5566 eval "DEFAULT_$LINE"
5567 else
5568 no_cache=1
5569 fi
5570
5571 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5572
5573 fi
5574
5575
5576 eval "$ac_cv_use_treelayout"
5577 if test "$no_cache" != 1; then
5578 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5579 fi
5580
5581 if test "$wxUSE_TREELAYOUT" = yes; then
5582 echo "$ac_t""yes" 1>&6
5583 else
5584 echo "$ac_t""no" 1>&6
5585 fi
5586
5587
5588
5589
5590 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5591 echo "configure:5592: checking for --enable-controls" >&5
5592 no_cache=0
5593 # Check whether --enable-controls or --disable-controls was given.
5594 if test "${enable_controls+set}" = set; then
5595 enableval="$enable_controls"
5596
5597 if test "$enableval" = yes; then
5598 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5599 else
5600 ac_cv_use_controls='wxUSE_CONTROLS=no'
5601 fi
5602
5603 else
5604
5605 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5606 if test "x$LINE" != x ; then
5607 eval "DEFAULT_$LINE"
5608 else
5609 no_cache=1
5610 fi
5611
5612 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5613
5614 fi
5615
5616
5617 eval "$ac_cv_use_controls"
5618 if test "$no_cache" != 1; then
5619 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5620 fi
5621
5622 if test "$wxUSE_CONTROLS" = yes; then
5623 echo "$ac_t""yes" 1>&6
5624 else
5625 echo "$ac_t""no" 1>&6
5626 fi
5627
5628
5629 if test "$wxUSE_CONTROLS" = "yes"; then
5630 DEFAULT_wxUSE_ACCEL=yes
5631 DEFAULT_wxUSE_BMPBUTTON=yes
5632 DEFAULT_wxUSE_BUTTON=yes
5633 DEFAULT_wxUSE_CALCTRL=no
5634 DEFAULT_wxUSE_CARET=yes
5635 DEFAULT_wxUSE_COMBOBOX=yes
5636 DEFAULT_wxUSE_CHECKBOX=yes
5637 DEFAULT_wxUSE_CHECKLISTBOX=yes
5638 DEFAULT_wxUSE_CHOICE=yes
5639 DEFAULT_wxUSE_GAUGE=yes
5640 DEFAULT_wxUSE_GRID=yes
5641 DEFAULT_wxUSE_NEW_GRID=yes
5642 DEFAULT_wxUSE_IMAGLIST=yes
5643 DEFAULT_wxUSE_LISTBOX=yes
5644 DEFAULT_wxUSE_LISTCTRL=yes
5645 DEFAULT_wxUSE_NOTEBOOK=yes
5646 DEFAULT_wxUSE_PROPSHEET=yes
5647 DEFAULT_wxUSE_RADIOBOX=yes
5648 DEFAULT_wxUSE_RADIOBTN=yes
5649 DEFAULT_wxUSE_SASH=yes
5650 DEFAULT_wxUSE_SCROLLBAR=yes
5651 DEFAULT_wxUSE_SLIDER=yes
5652 DEFAULT_wxUSE_SPINBTN=yes
5653 DEFAULT_wxUSE_SPINCTRL=yes
5654 DEFAULT_wxUSE_SPLITTER=yes
5655 DEFAULT_wxUSE_STATBMP=yes
5656 DEFAULT_wxUSE_STATBOX=yes
5657 DEFAULT_wxUSE_STATLINE=yes
5658 DEFAULT_wxUSE_STATUSBAR=yes
5659 DEFAULT_wxUSE_TAB_DIALOG=yes
5660 DEFAULT_wxUSE_TOGGLEBTN=yes
5661 DEFAULT_wxUSE_TOOLBAR=yes
5662 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5663 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5664 DEFAULT_wxUSE_TOOLTIPS=yes
5665 DEFAULT_wxUSE_TREECTRL=yes
5666 DEFAULT_wxUSE_POPUPWIN=yes
5667 DEFAULT_wxUSE_TIPWINDOW=yes
5668 elif test "$wxUSE_CONTROLS" = "no"; then
5669 DEFAULT_wxUSE_ACCEL=no
5670 DEFAULT_wxUSE_BMPBUTTON=no
5671 DEFAULT_wxUSE_BUTTON=no
5672 DEFAULT_wxUSE_CALCTRL=no
5673 DEFAULT_wxUSE_CARET=no
5674 DEFAULT_wxUSE_COMBOBOX=no
5675 DEFAULT_wxUSE_CHECKBOX=no
5676 DEFAULT_wxUSE_CHECKLISTBOX=no
5677 DEFAULT_wxUSE_CHOICE=no
5678 DEFAULT_wxUSE_GAUGE=no
5679 DEFAULT_wxUSE_GRID=no
5680 DEFAULT_wxUSE_NEW_GRID=no
5681 DEFAULT_wxUSE_IMAGLIST=no
5682 DEFAULT_wxUSE_LISTBOX=no
5683 DEFAULT_wxUSE_LISTCTRL=no
5684 DEFAULT_wxUSE_NOTEBOOK=no
5685 DEFAULT_wxUSE_PROPSHEET=no
5686 DEFAULT_wxUSE_RADIOBOX=no
5687 DEFAULT_wxUSE_RADIOBTN=no
5688 DEFAULT_wxUSE_SASH=no
5689 DEFAULT_wxUSE_SCROLLBAR=no
5690 DEFAULT_wxUSE_SLIDER=no
5691 DEFAULT_wxUSE_SPINBTN=no
5692 DEFAULT_wxUSE_SPINCTRL=no
5693 DEFAULT_wxUSE_SPLITTER=no
5694 DEFAULT_wxUSE_STATBMP=no
5695 DEFAULT_wxUSE_STATBOX=no
5696 DEFAULT_wxUSE_STATLINE=no
5697 DEFAULT_wxUSE_STATUSBAR=no
5698 DEFAULT_wxUSE_TAB_DIALOG=no
5699 DEFAULT_wxUSE_TOGGLEBTN=no
5700 DEFAULT_wxUSE_TOOLBAR=no
5701 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5702 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5703 DEFAULT_wxUSE_TOOLTIPS=no
5704 DEFAULT_wxUSE_TREECTRL=no
5705 DEFAULT_wxUSE_POPUPWIN=no
5706 DEFAULT_wxUSE_TIPWINDOW=no
5707 fi
5708
5709
5710 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5711 echo "configure:5712: checking for --enable-accel" >&5
5712 no_cache=0
5713 # Check whether --enable-accel or --disable-accel was given.
5714 if test "${enable_accel+set}" = set; then
5715 enableval="$enable_accel"
5716
5717 if test "$enableval" = yes; then
5718 ac_cv_use_accel='wxUSE_ACCEL=yes'
5719 else
5720 ac_cv_use_accel='wxUSE_ACCEL=no'
5721 fi
5722
5723 else
5724
5725 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5726 if test "x$LINE" != x ; then
5727 eval "DEFAULT_$LINE"
5728 else
5729 no_cache=1
5730 fi
5731
5732 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5733
5734 fi
5735
5736
5737 eval "$ac_cv_use_accel"
5738 if test "$no_cache" != 1; then
5739 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5740 fi
5741
5742 if test "$wxUSE_ACCEL" = yes; then
5743 echo "$ac_t""yes" 1>&6
5744 else
5745 echo "$ac_t""no" 1>&6
5746 fi
5747
5748
5749 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5750 echo "configure:5751: checking for --enable-button" >&5
5751 no_cache=0
5752 # Check whether --enable-button or --disable-button was given.
5753 if test "${enable_button+set}" = set; then
5754 enableval="$enable_button"
5755
5756 if test "$enableval" = yes; then
5757 ac_cv_use_button='wxUSE_BUTTON=yes'
5758 else
5759 ac_cv_use_button='wxUSE_BUTTON=no'
5760 fi
5761
5762 else
5763
5764 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5765 if test "x$LINE" != x ; then
5766 eval "DEFAULT_$LINE"
5767 else
5768 no_cache=1
5769 fi
5770
5771 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5772
5773 fi
5774
5775
5776 eval "$ac_cv_use_button"
5777 if test "$no_cache" != 1; then
5778 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5779 fi
5780
5781 if test "$wxUSE_BUTTON" = yes; then
5782 echo "$ac_t""yes" 1>&6
5783 else
5784 echo "$ac_t""no" 1>&6
5785 fi
5786
5787
5788 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5789 echo "configure:5790: checking for --enable-bmpbutton" >&5
5790 no_cache=0
5791 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5792 if test "${enable_bmpbutton+set}" = set; then
5793 enableval="$enable_bmpbutton"
5794
5795 if test "$enableval" = yes; then
5796 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5797 else
5798 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5799 fi
5800
5801 else
5802
5803 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5804 if test "x$LINE" != x ; then
5805 eval "DEFAULT_$LINE"
5806 else
5807 no_cache=1
5808 fi
5809
5810 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5811
5812 fi
5813
5814
5815 eval "$ac_cv_use_bmpbutton"
5816 if test "$no_cache" != 1; then
5817 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5818 fi
5819
5820 if test "$wxUSE_BMPBUTTON" = yes; then
5821 echo "$ac_t""yes" 1>&6
5822 else
5823 echo "$ac_t""no" 1>&6
5824 fi
5825
5826
5827 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5828 echo "configure:5829: checking for --enable-calendar" >&5
5829 no_cache=0
5830 # Check whether --enable-calendar or --disable-calendar was given.
5831 if test "${enable_calendar+set}" = set; then
5832 enableval="$enable_calendar"
5833
5834 if test "$enableval" = yes; then
5835 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5836 else
5837 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5838 fi
5839
5840 else
5841
5842 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5843 if test "x$LINE" != x ; then
5844 eval "DEFAULT_$LINE"
5845 else
5846 no_cache=1
5847 fi
5848
5849 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5850
5851 fi
5852
5853
5854 eval "$ac_cv_use_calendar"
5855 if test "$no_cache" != 1; then
5856 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5857 fi
5858
5859 if test "$wxUSE_CALCTRL" = yes; then
5860 echo "$ac_t""yes" 1>&6
5861 else
5862 echo "$ac_t""no" 1>&6
5863 fi
5864
5865
5866 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5867 echo "configure:5868: checking for --enable-caret" >&5
5868 no_cache=0
5869 # Check whether --enable-caret or --disable-caret was given.
5870 if test "${enable_caret+set}" = set; then
5871 enableval="$enable_caret"
5872
5873 if test "$enableval" = yes; then
5874 ac_cv_use_caret='wxUSE_CARET=yes'
5875 else
5876 ac_cv_use_caret='wxUSE_CARET=no'
5877 fi
5878
5879 else
5880
5881 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5882 if test "x$LINE" != x ; then
5883 eval "DEFAULT_$LINE"
5884 else
5885 no_cache=1
5886 fi
5887
5888 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5889
5890 fi
5891
5892
5893 eval "$ac_cv_use_caret"
5894 if test "$no_cache" != 1; then
5895 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5896 fi
5897
5898 if test "$wxUSE_CARET" = yes; then
5899 echo "$ac_t""yes" 1>&6
5900 else
5901 echo "$ac_t""no" 1>&6
5902 fi
5903
5904
5905 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5906 echo "configure:5907: checking for --enable-checkbox" >&5
5907 no_cache=0
5908 # Check whether --enable-checkbox or --disable-checkbox was given.
5909 if test "${enable_checkbox+set}" = set; then
5910 enableval="$enable_checkbox"
5911
5912 if test "$enableval" = yes; then
5913 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5914 else
5915 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5916 fi
5917
5918 else
5919
5920 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5921 if test "x$LINE" != x ; then
5922 eval "DEFAULT_$LINE"
5923 else
5924 no_cache=1
5925 fi
5926
5927 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5928
5929 fi
5930
5931
5932 eval "$ac_cv_use_checkbox"
5933 if test "$no_cache" != 1; then
5934 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5935 fi
5936
5937 if test "$wxUSE_CHECKBOX" = yes; then
5938 echo "$ac_t""yes" 1>&6
5939 else
5940 echo "$ac_t""no" 1>&6
5941 fi
5942
5943
5944 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5945 echo "configure:5946: checking for --enable-checklst" >&5
5946 no_cache=0
5947 # Check whether --enable-checklst or --disable-checklst was given.
5948 if test "${enable_checklst+set}" = set; then
5949 enableval="$enable_checklst"
5950
5951 if test "$enableval" = yes; then
5952 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5953 else
5954 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5955 fi
5956
5957 else
5958
5959 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5960 if test "x$LINE" != x ; then
5961 eval "DEFAULT_$LINE"
5962 else
5963 no_cache=1
5964 fi
5965
5966 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5967
5968 fi
5969
5970
5971 eval "$ac_cv_use_checklst"
5972 if test "$no_cache" != 1; then
5973 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5974 fi
5975
5976 if test "$wxUSE_CHECKLST" = yes; then
5977 echo "$ac_t""yes" 1>&6
5978 else
5979 echo "$ac_t""no" 1>&6
5980 fi
5981
5982
5983 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5984 echo "configure:5985: checking for --enable-choice" >&5
5985 no_cache=0
5986 # Check whether --enable-choice or --disable-choice was given.
5987 if test "${enable_choice+set}" = set; then
5988 enableval="$enable_choice"
5989
5990 if test "$enableval" = yes; then
5991 ac_cv_use_choice='wxUSE_CHOICE=yes'
5992 else
5993 ac_cv_use_choice='wxUSE_CHOICE=no'
5994 fi
5995
5996 else
5997
5998 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5999 if test "x$LINE" != x ; then
6000 eval "DEFAULT_$LINE"
6001 else
6002 no_cache=1
6003 fi
6004
6005 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6006
6007 fi
6008
6009
6010 eval "$ac_cv_use_choice"
6011 if test "$no_cache" != 1; then
6012 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6013 fi
6014
6015 if test "$wxUSE_CHOICE" = yes; then
6016 echo "$ac_t""yes" 1>&6
6017 else
6018 echo "$ac_t""no" 1>&6
6019 fi
6020
6021
6022 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
6023 echo "configure:6024: checking for --enable-combobox" >&5
6024 no_cache=0
6025 # Check whether --enable-combobox or --disable-combobox was given.
6026 if test "${enable_combobox+set}" = set; then
6027 enableval="$enable_combobox"
6028
6029 if test "$enableval" = yes; then
6030 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6031 else
6032 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6033 fi
6034
6035 else
6036
6037 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6038 if test "x$LINE" != x ; then
6039 eval "DEFAULT_$LINE"
6040 else
6041 no_cache=1
6042 fi
6043
6044 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6045
6046 fi
6047
6048
6049 eval "$ac_cv_use_combobox"
6050 if test "$no_cache" != 1; then
6051 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6052 fi
6053
6054 if test "$wxUSE_COMBOBOX" = yes; then
6055 echo "$ac_t""yes" 1>&6
6056 else
6057 echo "$ac_t""no" 1>&6
6058 fi
6059
6060
6061 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6062 echo "configure:6063: checking for --enable-gauge" >&5
6063 no_cache=0
6064 # Check whether --enable-gauge or --disable-gauge was given.
6065 if test "${enable_gauge+set}" = set; then
6066 enableval="$enable_gauge"
6067
6068 if test "$enableval" = yes; then
6069 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6070 else
6071 ac_cv_use_gauge='wxUSE_GAUGE=no'
6072 fi
6073
6074 else
6075
6076 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6077 if test "x$LINE" != x ; then
6078 eval "DEFAULT_$LINE"
6079 else
6080 no_cache=1
6081 fi
6082
6083 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6084
6085 fi
6086
6087
6088 eval "$ac_cv_use_gauge"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_GAUGE" = yes; then
6094 echo "$ac_t""yes" 1>&6
6095 else
6096 echo "$ac_t""no" 1>&6
6097 fi
6098
6099
6100 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6101 echo "configure:6102: checking for --enable-grid" >&5
6102 no_cache=0
6103 # Check whether --enable-grid or --disable-grid was given.
6104 if test "${enable_grid+set}" = set; then
6105 enableval="$enable_grid"
6106
6107 if test "$enableval" = yes; then
6108 ac_cv_use_grid='wxUSE_GRID=yes'
6109 else
6110 ac_cv_use_grid='wxUSE_GRID=no'
6111 fi
6112
6113 else
6114
6115 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6116 if test "x$LINE" != x ; then
6117 eval "DEFAULT_$LINE"
6118 else
6119 no_cache=1
6120 fi
6121
6122 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6123
6124 fi
6125
6126
6127 eval "$ac_cv_use_grid"
6128 if test "$no_cache" != 1; then
6129 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6130 fi
6131
6132 if test "$wxUSE_GRID" = yes; then
6133 echo "$ac_t""yes" 1>&6
6134 else
6135 echo "$ac_t""no" 1>&6
6136 fi
6137
6138
6139 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6140 echo "configure:6141: checking for --enable-newgrid" >&5
6141 no_cache=0
6142 # Check whether --enable-newgrid or --disable-newgrid was given.
6143 if test "${enable_newgrid+set}" = set; then
6144 enableval="$enable_newgrid"
6145
6146 if test "$enableval" = yes; then
6147 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6148 else
6149 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6150 fi
6151
6152 else
6153
6154 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6155 if test "x$LINE" != x ; then
6156 eval "DEFAULT_$LINE"
6157 else
6158 no_cache=1
6159 fi
6160
6161 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6162
6163 fi
6164
6165
6166 eval "$ac_cv_use_newgrid"
6167 if test "$no_cache" != 1; then
6168 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6169 fi
6170
6171 if test "$wxUSE_NEW_GRID" = yes; then
6172 echo "$ac_t""yes" 1>&6
6173 else
6174 echo "$ac_t""no" 1>&6
6175 fi
6176
6177
6178 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6179 echo "configure:6180: checking for --enable-imaglist" >&5
6180 no_cache=0
6181 # Check whether --enable-imaglist or --disable-imaglist was given.
6182 if test "${enable_imaglist+set}" = set; then
6183 enableval="$enable_imaglist"
6184
6185 if test "$enableval" = yes; then
6186 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6187 else
6188 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6189 fi
6190
6191 else
6192
6193 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6194 if test "x$LINE" != x ; then
6195 eval "DEFAULT_$LINE"
6196 else
6197 no_cache=1
6198 fi
6199
6200 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6201
6202 fi
6203
6204
6205 eval "$ac_cv_use_imaglist"
6206 if test "$no_cache" != 1; then
6207 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6208 fi
6209
6210 if test "$wxUSE_IMAGLIST" = yes; then
6211 echo "$ac_t""yes" 1>&6
6212 else
6213 echo "$ac_t""no" 1>&6
6214 fi
6215
6216
6217 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6218 echo "configure:6219: checking for --enable-listbox" >&5
6219 no_cache=0
6220 # Check whether --enable-listbox or --disable-listbox was given.
6221 if test "${enable_listbox+set}" = set; then
6222 enableval="$enable_listbox"
6223
6224 if test "$enableval" = yes; then
6225 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6226 else
6227 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6228 fi
6229
6230 else
6231
6232 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6233 if test "x$LINE" != x ; then
6234 eval "DEFAULT_$LINE"
6235 else
6236 no_cache=1
6237 fi
6238
6239 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6240
6241 fi
6242
6243
6244 eval "$ac_cv_use_listbox"
6245 if test "$no_cache" != 1; then
6246 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6247 fi
6248
6249 if test "$wxUSE_LISTBOX" = yes; then
6250 echo "$ac_t""yes" 1>&6
6251 else
6252 echo "$ac_t""no" 1>&6
6253 fi
6254
6255
6256 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6257 echo "configure:6258: checking for --enable-listctrl" >&5
6258 no_cache=0
6259 # Check whether --enable-listctrl or --disable-listctrl was given.
6260 if test "${enable_listctrl+set}" = set; then
6261 enableval="$enable_listctrl"
6262
6263 if test "$enableval" = yes; then
6264 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6265 else
6266 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6267 fi
6268
6269 else
6270
6271 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6272 if test "x$LINE" != x ; then
6273 eval "DEFAULT_$LINE"
6274 else
6275 no_cache=1
6276 fi
6277
6278 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6279
6280 fi
6281
6282
6283 eval "$ac_cv_use_listctrl"
6284 if test "$no_cache" != 1; then
6285 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6286 fi
6287
6288 if test "$wxUSE_LISTCTRL" = yes; then
6289 echo "$ac_t""yes" 1>&6
6290 else
6291 echo "$ac_t""no" 1>&6
6292 fi
6293
6294
6295 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6296 echo "configure:6297: checking for --enable-notebook" >&5
6297 no_cache=0
6298 # Check whether --enable-notebook or --disable-notebook was given.
6299 if test "${enable_notebook+set}" = set; then
6300 enableval="$enable_notebook"
6301
6302 if test "$enableval" = yes; then
6303 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6304 else
6305 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6306 fi
6307
6308 else
6309
6310 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6311 if test "x$LINE" != x ; then
6312 eval "DEFAULT_$LINE"
6313 else
6314 no_cache=1
6315 fi
6316
6317 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6318
6319 fi
6320
6321
6322 eval "$ac_cv_use_notebook"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_NOTEBOOK" = yes; then
6328 echo "$ac_t""yes" 1>&6
6329 else
6330 echo "$ac_t""no" 1>&6
6331 fi
6332
6333
6334 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6335 echo "configure:6336: checking for --enable-propsheet" >&5
6336 no_cache=0
6337 # Check whether --enable-propsheet or --disable-propsheet was given.
6338 if test "${enable_propsheet+set}" = set; then
6339 enableval="$enable_propsheet"
6340
6341 if test "$enableval" = yes; then
6342 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6343 else
6344 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6345 fi
6346
6347 else
6348
6349 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6350 if test "x$LINE" != x ; then
6351 eval "DEFAULT_$LINE"
6352 else
6353 no_cache=1
6354 fi
6355
6356 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6357
6358 fi
6359
6360
6361 eval "$ac_cv_use_propsheet"
6362 if test "$no_cache" != 1; then
6363 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6364 fi
6365
6366 if test "$wxUSE_PROPSHEET" = yes; then
6367 echo "$ac_t""yes" 1>&6
6368 else
6369 echo "$ac_t""no" 1>&6
6370 fi
6371
6372
6373 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6374 echo "configure:6375: checking for --enable-radiobox" >&5
6375 no_cache=0
6376 # Check whether --enable-radiobox or --disable-radiobox was given.
6377 if test "${enable_radiobox+set}" = set; then
6378 enableval="$enable_radiobox"
6379
6380 if test "$enableval" = yes; then
6381 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6382 else
6383 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6384 fi
6385
6386 else
6387
6388 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6389 if test "x$LINE" != x ; then
6390 eval "DEFAULT_$LINE"
6391 else
6392 no_cache=1
6393 fi
6394
6395 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6396
6397 fi
6398
6399
6400 eval "$ac_cv_use_radiobox"
6401 if test "$no_cache" != 1; then
6402 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6403 fi
6404
6405 if test "$wxUSE_RADIOBOX" = yes; then
6406 echo "$ac_t""yes" 1>&6
6407 else
6408 echo "$ac_t""no" 1>&6
6409 fi
6410
6411
6412 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6413 echo "configure:6414: checking for --enable-radiobtn" >&5
6414 no_cache=0
6415 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6416 if test "${enable_radiobtn+set}" = set; then
6417 enableval="$enable_radiobtn"
6418
6419 if test "$enableval" = yes; then
6420 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6421 else
6422 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6423 fi
6424
6425 else
6426
6427 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6428 if test "x$LINE" != x ; then
6429 eval "DEFAULT_$LINE"
6430 else
6431 no_cache=1
6432 fi
6433
6434 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6435
6436 fi
6437
6438
6439 eval "$ac_cv_use_radiobtn"
6440 if test "$no_cache" != 1; then
6441 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6442 fi
6443
6444 if test "$wxUSE_RADIOBTN" = yes; then
6445 echo "$ac_t""yes" 1>&6
6446 else
6447 echo "$ac_t""no" 1>&6
6448 fi
6449
6450
6451 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6452 echo "configure:6453: checking for --enable-sash" >&5
6453 no_cache=0
6454 # Check whether --enable-sash or --disable-sash was given.
6455 if test "${enable_sash+set}" = set; then
6456 enableval="$enable_sash"
6457
6458 if test "$enableval" = yes; then
6459 ac_cv_use_sash='wxUSE_SASH=yes'
6460 else
6461 ac_cv_use_sash='wxUSE_SASH=no'
6462 fi
6463
6464 else
6465
6466 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6467 if test "x$LINE" != x ; then
6468 eval "DEFAULT_$LINE"
6469 else
6470 no_cache=1
6471 fi
6472
6473 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6474
6475 fi
6476
6477
6478 eval "$ac_cv_use_sash"
6479 if test "$no_cache" != 1; then
6480 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6481 fi
6482
6483 if test "$wxUSE_SASH" = yes; then
6484 echo "$ac_t""yes" 1>&6
6485 else
6486 echo "$ac_t""no" 1>&6
6487 fi
6488
6489
6490 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6491 echo "configure:6492: checking for --enable-scrollbar" >&5
6492 no_cache=0
6493 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6494 if test "${enable_scrollbar+set}" = set; then
6495 enableval="$enable_scrollbar"
6496
6497 if test "$enableval" = yes; then
6498 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6499 else
6500 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6501 fi
6502
6503 else
6504
6505 LINE=`grep "wxUSE_SCROLLBAR" ${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_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6513
6514 fi
6515
6516
6517 eval "$ac_cv_use_scrollbar"
6518 if test "$no_cache" != 1; then
6519 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6520 fi
6521
6522 if test "$wxUSE_SCROLLBAR" = yes; then
6523 echo "$ac_t""yes" 1>&6
6524 else
6525 echo "$ac_t""no" 1>&6
6526 fi
6527
6528
6529 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6530 echo "configure:6531: checking for --enable-slider" >&5
6531 no_cache=0
6532 # Check whether --enable-slider or --disable-slider was given.
6533 if test "${enable_slider+set}" = set; then
6534 enableval="$enable_slider"
6535
6536 if test "$enableval" = yes; then
6537 ac_cv_use_slider='wxUSE_SLIDER=yes'
6538 else
6539 ac_cv_use_slider='wxUSE_SLIDER=no'
6540 fi
6541
6542 else
6543
6544 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6552
6553 fi
6554
6555
6556 eval "$ac_cv_use_slider"
6557 if test "$no_cache" != 1; then
6558 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6559 fi
6560
6561 if test "$wxUSE_SLIDER" = yes; then
6562 echo "$ac_t""yes" 1>&6
6563 else
6564 echo "$ac_t""no" 1>&6
6565 fi
6566
6567
6568 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6569 echo "configure:6570: checking for --enable-spinbtn" >&5
6570 no_cache=0
6571 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6572 if test "${enable_spinbtn+set}" = set; then
6573 enableval="$enable_spinbtn"
6574
6575 if test "$enableval" = yes; then
6576 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6577 else
6578 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6579 fi
6580
6581 else
6582
6583 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6584 if test "x$LINE" != x ; then
6585 eval "DEFAULT_$LINE"
6586 else
6587 no_cache=1
6588 fi
6589
6590 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6591
6592 fi
6593
6594
6595 eval "$ac_cv_use_spinbtn"
6596 if test "$no_cache" != 1; then
6597 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6598 fi
6599
6600 if test "$wxUSE_SPINBTN" = yes; then
6601 echo "$ac_t""yes" 1>&6
6602 else
6603 echo "$ac_t""no" 1>&6
6604 fi
6605
6606
6607 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6608 echo "configure:6609: checking for --enable-spinctrl" >&5
6609 no_cache=0
6610 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6611 if test "${enable_spinctrl+set}" = set; then
6612 enableval="$enable_spinctrl"
6613
6614 if test "$enableval" = yes; then
6615 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6616 else
6617 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6618 fi
6619
6620 else
6621
6622 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6623 if test "x$LINE" != x ; then
6624 eval "DEFAULT_$LINE"
6625 else
6626 no_cache=1
6627 fi
6628
6629 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6630
6631 fi
6632
6633
6634 eval "$ac_cv_use_spinctrl"
6635 if test "$no_cache" != 1; then
6636 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6637 fi
6638
6639 if test "$wxUSE_SPINCTRL" = yes; then
6640 echo "$ac_t""yes" 1>&6
6641 else
6642 echo "$ac_t""no" 1>&6
6643 fi
6644
6645
6646 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6647 echo "configure:6648: checking for --enable-splitter" >&5
6648 no_cache=0
6649 # Check whether --enable-splitter or --disable-splitter was given.
6650 if test "${enable_splitter+set}" = set; then
6651 enableval="$enable_splitter"
6652
6653 if test "$enableval" = yes; then
6654 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6655 else
6656 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6657 fi
6658
6659 else
6660
6661 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6662 if test "x$LINE" != x ; then
6663 eval "DEFAULT_$LINE"
6664 else
6665 no_cache=1
6666 fi
6667
6668 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6669
6670 fi
6671
6672
6673 eval "$ac_cv_use_splitter"
6674 if test "$no_cache" != 1; then
6675 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6676 fi
6677
6678 if test "$wxUSE_SPLITTER" = yes; then
6679 echo "$ac_t""yes" 1>&6
6680 else
6681 echo "$ac_t""no" 1>&6
6682 fi
6683
6684
6685 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6686 echo "configure:6687: checking for --enable-statbmp" >&5
6687 no_cache=0
6688 # Check whether --enable-statbmp or --disable-statbmp was given.
6689 if test "${enable_statbmp+set}" = set; then
6690 enableval="$enable_statbmp"
6691
6692 if test "$enableval" = yes; then
6693 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6694 else
6695 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6696 fi
6697
6698 else
6699
6700 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6701 if test "x$LINE" != x ; then
6702 eval "DEFAULT_$LINE"
6703 else
6704 no_cache=1
6705 fi
6706
6707 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6708
6709 fi
6710
6711
6712 eval "$ac_cv_use_statbmp"
6713 if test "$no_cache" != 1; then
6714 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6715 fi
6716
6717 if test "$wxUSE_STATBMP" = yes; then
6718 echo "$ac_t""yes" 1>&6
6719 else
6720 echo "$ac_t""no" 1>&6
6721 fi
6722
6723
6724 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6725 echo "configure:6726: checking for --enable-statbox" >&5
6726 no_cache=0
6727 # Check whether --enable-statbox or --disable-statbox was given.
6728 if test "${enable_statbox+set}" = set; then
6729 enableval="$enable_statbox"
6730
6731 if test "$enableval" = yes; then
6732 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6733 else
6734 ac_cv_use_statbox='wxUSE_STATBOX=no'
6735 fi
6736
6737 else
6738
6739 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6740 if test "x$LINE" != x ; then
6741 eval "DEFAULT_$LINE"
6742 else
6743 no_cache=1
6744 fi
6745
6746 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6747
6748 fi
6749
6750
6751 eval "$ac_cv_use_statbox"
6752 if test "$no_cache" != 1; then
6753 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6754 fi
6755
6756 if test "$wxUSE_STATBOX" = yes; then
6757 echo "$ac_t""yes" 1>&6
6758 else
6759 echo "$ac_t""no" 1>&6
6760 fi
6761
6762
6763 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6764 echo "configure:6765: checking for --enable-statline" >&5
6765 no_cache=0
6766 # Check whether --enable-statline or --disable-statline was given.
6767 if test "${enable_statline+set}" = set; then
6768 enableval="$enable_statline"
6769
6770 if test "$enableval" = yes; then
6771 ac_cv_use_statline='wxUSE_STATLINE=yes'
6772 else
6773 ac_cv_use_statline='wxUSE_STATLINE=no'
6774 fi
6775
6776 else
6777
6778 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6779 if test "x$LINE" != x ; then
6780 eval "DEFAULT_$LINE"
6781 else
6782 no_cache=1
6783 fi
6784
6785 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6786
6787 fi
6788
6789
6790 eval "$ac_cv_use_statline"
6791 if test "$no_cache" != 1; then
6792 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6793 fi
6794
6795 if test "$wxUSE_STATLINE" = yes; then
6796 echo "$ac_t""yes" 1>&6
6797 else
6798 echo "$ac_t""no" 1>&6
6799 fi
6800
6801
6802 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6803 echo "configure:6804: checking for --enable-stattext" >&5
6804 no_cache=0
6805 # Check whether --enable-stattext or --disable-stattext was given.
6806 if test "${enable_stattext+set}" = set; then
6807 enableval="$enable_stattext"
6808
6809 if test "$enableval" = yes; then
6810 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6811 else
6812 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6813 fi
6814
6815 else
6816
6817 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6818 if test "x$LINE" != x ; then
6819 eval "DEFAULT_$LINE"
6820 else
6821 no_cache=1
6822 fi
6823
6824 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6825
6826 fi
6827
6828
6829 eval "$ac_cv_use_stattext"
6830 if test "$no_cache" != 1; then
6831 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6832 fi
6833
6834 if test "$wxUSE_STATTEXT" = yes; then
6835 echo "$ac_t""yes" 1>&6
6836 else
6837 echo "$ac_t""no" 1>&6
6838 fi
6839
6840
6841 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6842 echo "configure:6843: checking for --enable-statusbar" >&5
6843 no_cache=0
6844 # Check whether --enable-statusbar or --disable-statusbar was given.
6845 if test "${enable_statusbar+set}" = set; then
6846 enableval="$enable_statusbar"
6847
6848 if test "$enableval" = yes; then
6849 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6850 else
6851 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6852 fi
6853
6854 else
6855
6856 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6857 if test "x$LINE" != x ; then
6858 eval "DEFAULT_$LINE"
6859 else
6860 no_cache=1
6861 fi
6862
6863 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6864
6865 fi
6866
6867
6868 eval "$ac_cv_use_statusbar"
6869 if test "$no_cache" != 1; then
6870 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6871 fi
6872
6873 if test "$wxUSE_STATUSBAR" = yes; then
6874 echo "$ac_t""yes" 1>&6
6875 else
6876 echo "$ac_t""no" 1>&6
6877 fi
6878
6879
6880 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6881 echo "configure:6882: checking for --enable-tabdialog" >&5
6882 no_cache=0
6883 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6884 if test "${enable_tabdialog+set}" = set; then
6885 enableval="$enable_tabdialog"
6886
6887 if test "$enableval" = yes; then
6888 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6889 else
6890 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6891 fi
6892
6893 else
6894
6895 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6896 if test "x$LINE" != x ; then
6897 eval "DEFAULT_$LINE"
6898 else
6899 no_cache=1
6900 fi
6901
6902 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6903
6904 fi
6905
6906
6907 eval "$ac_cv_use_tabdialog"
6908 if test "$no_cache" != 1; then
6909 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6910 fi
6911
6912 if test "$wxUSE_TABDIALOG" = yes; then
6913 echo "$ac_t""yes" 1>&6
6914 else
6915 echo "$ac_t""no" 1>&6
6916 fi
6917
6918
6919 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6920 echo "configure:6921: checking for --enable-textctrl" >&5
6921 no_cache=0
6922 # Check whether --enable-textctrl or --disable-textctrl was given.
6923 if test "${enable_textctrl+set}" = set; then
6924 enableval="$enable_textctrl"
6925
6926 if test "$enableval" = yes; then
6927 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6928 else
6929 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6930 fi
6931
6932 else
6933
6934 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6935 if test "x$LINE" != x ; then
6936 eval "DEFAULT_$LINE"
6937 else
6938 no_cache=1
6939 fi
6940
6941 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6942
6943 fi
6944
6945
6946 eval "$ac_cv_use_textctrl"
6947 if test "$no_cache" != 1; then
6948 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6949 fi
6950
6951 if test "$wxUSE_TEXTCTRL" = yes; then
6952 echo "$ac_t""yes" 1>&6
6953 else
6954 echo "$ac_t""no" 1>&6
6955 fi
6956
6957
6958 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6959 echo "configure:6960: checking for --enable-togglebtn" >&5
6960 no_cache=0
6961 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6962 if test "${enable_togglebtn+set}" = set; then
6963 enableval="$enable_togglebtn"
6964
6965 if test "$enableval" = yes; then
6966 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6967 else
6968 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6969 fi
6970
6971 else
6972
6973 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6974 if test "x$LINE" != x ; then
6975 eval "DEFAULT_$LINE"
6976 else
6977 no_cache=1
6978 fi
6979
6980 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6981
6982 fi
6983
6984
6985 eval "$ac_cv_use_togglebtn"
6986 if test "$no_cache" != 1; then
6987 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6988 fi
6989
6990 if test "$wxUSE_TOGGLEBTN" = yes; then
6991 echo "$ac_t""yes" 1>&6
6992 else
6993 echo "$ac_t""no" 1>&6
6994 fi
6995
6996
6997 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6998 echo "configure:6999: checking for --enable-toolbar" >&5
6999 no_cache=0
7000 # Check whether --enable-toolbar or --disable-toolbar was given.
7001 if test "${enable_toolbar+set}" = set; then
7002 enableval="$enable_toolbar"
7003
7004 if test "$enableval" = yes; then
7005 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7006 else
7007 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7008 fi
7009
7010 else
7011
7012 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7013 if test "x$LINE" != x ; then
7014 eval "DEFAULT_$LINE"
7015 else
7016 no_cache=1
7017 fi
7018
7019 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7020
7021 fi
7022
7023
7024 eval "$ac_cv_use_toolbar"
7025 if test "$no_cache" != 1; then
7026 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7027 fi
7028
7029 if test "$wxUSE_TOOLBAR" = yes; then
7030 echo "$ac_t""yes" 1>&6
7031 else
7032 echo "$ac_t""no" 1>&6
7033 fi
7034
7035
7036 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7037 echo "configure:7038: checking for --enable-tbarnative" >&5
7038 no_cache=0
7039 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7040 if test "${enable_tbarnative+set}" = set; then
7041 enableval="$enable_tbarnative"
7042
7043 if test "$enableval" = yes; then
7044 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7045 else
7046 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7047 fi
7048
7049 else
7050
7051 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7052 if test "x$LINE" != x ; then
7053 eval "DEFAULT_$LINE"
7054 else
7055 no_cache=1
7056 fi
7057
7058 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7059
7060 fi
7061
7062
7063 eval "$ac_cv_use_tbarnative"
7064 if test "$no_cache" != 1; then
7065 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7066 fi
7067
7068 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7069 echo "$ac_t""yes" 1>&6
7070 else
7071 echo "$ac_t""no" 1>&6
7072 fi
7073
7074
7075 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7076 echo "configure:7077: checking for --enable-tbarsmpl" >&5
7077 no_cache=0
7078 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7079 if test "${enable_tbarsmpl+set}" = set; then
7080 enableval="$enable_tbarsmpl"
7081
7082 if test "$enableval" = yes; then
7083 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7084 else
7085 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7086 fi
7087
7088 else
7089
7090 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7091 if test "x$LINE" != x ; then
7092 eval "DEFAULT_$LINE"
7093 else
7094 no_cache=1
7095 fi
7096
7097 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7098
7099 fi
7100
7101
7102 eval "$ac_cv_use_tbarsmpl"
7103 if test "$no_cache" != 1; then
7104 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7105 fi
7106
7107 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7108 echo "$ac_t""yes" 1>&6
7109 else
7110 echo "$ac_t""no" 1>&6
7111 fi
7112
7113
7114 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7115 echo "configure:7116: checking for --enable-treectrl" >&5
7116 no_cache=0
7117 # Check whether --enable-treectrl or --disable-treectrl was given.
7118 if test "${enable_treectrl+set}" = set; then
7119 enableval="$enable_treectrl"
7120
7121 if test "$enableval" = yes; then
7122 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7123 else
7124 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7125 fi
7126
7127 else
7128
7129 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7130 if test "x$LINE" != x ; then
7131 eval "DEFAULT_$LINE"
7132 else
7133 no_cache=1
7134 fi
7135
7136 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7137
7138 fi
7139
7140
7141 eval "$ac_cv_use_treectrl"
7142 if test "$no_cache" != 1; then
7143 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7144 fi
7145
7146 if test "$wxUSE_TREECTRL" = yes; then
7147 echo "$ac_t""yes" 1>&6
7148 else
7149 echo "$ac_t""no" 1>&6
7150 fi
7151
7152
7153 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7154 echo "configure:7155: checking for --enable-tipwindow" >&5
7155 no_cache=0
7156 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7157 if test "${enable_tipwindow+set}" = set; then
7158 enableval="$enable_tipwindow"
7159
7160 if test "$enableval" = yes; then
7161 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7162 else
7163 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7164 fi
7165
7166 else
7167
7168 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7169 if test "x$LINE" != x ; then
7170 eval "DEFAULT_$LINE"
7171 else
7172 no_cache=1
7173 fi
7174
7175 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7176
7177 fi
7178
7179
7180 eval "$ac_cv_use_tipwindow"
7181 if test "$no_cache" != 1; then
7182 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7183 fi
7184
7185 if test "$wxUSE_TIPWINDOW" = yes; then
7186 echo "$ac_t""yes" 1>&6
7187 else
7188 echo "$ac_t""no" 1>&6
7189 fi
7190
7191
7192 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7193 echo "configure:7194: checking for --enable-popupwin" >&5
7194 no_cache=0
7195 # Check whether --enable-popupwin or --disable-popupwin was given.
7196 if test "${enable_popupwin+set}" = set; then
7197 enableval="$enable_popupwin"
7198
7199 if test "$enableval" = yes; then
7200 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7201 else
7202 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7203 fi
7204
7205 else
7206
7207 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7208 if test "x$LINE" != x ; then
7209 eval "DEFAULT_$LINE"
7210 else
7211 no_cache=1
7212 fi
7213
7214 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7215
7216 fi
7217
7218
7219 eval "$ac_cv_use_popupwin"
7220 if test "$no_cache" != 1; then
7221 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7222 fi
7223
7224 if test "$wxUSE_POPUPWIN" = yes; then
7225 echo "$ac_t""yes" 1>&6
7226 else
7227 echo "$ac_t""no" 1>&6
7228 fi
7229
7230
7231
7232
7233 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7234 echo "configure:7235: checking for --enable-commondlg" >&5
7235 no_cache=0
7236 # Check whether --enable-commondlg or --disable-commondlg was given.
7237 if test "${enable_commondlg+set}" = set; then
7238 enableval="$enable_commondlg"
7239
7240 if test "$enableval" = yes; then
7241 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7242 else
7243 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7244 fi
7245
7246 else
7247
7248 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7249 if test "x$LINE" != x ; then
7250 eval "DEFAULT_$LINE"
7251 else
7252 no_cache=1
7253 fi
7254
7255 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7256
7257 fi
7258
7259
7260 eval "$ac_cv_use_commondlg"
7261 if test "$no_cache" != 1; then
7262 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7263 fi
7264
7265 if test "$wxUSE_COMMONDLGS" = yes; then
7266 echo "$ac_t""yes" 1>&6
7267 else
7268 echo "$ac_t""no" 1>&6
7269 fi
7270
7271
7272 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7273 echo "configure:7274: checking for --enable-choicedlg" >&5
7274 no_cache=0
7275 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7276 if test "${enable_choicedlg+set}" = set; then
7277 enableval="$enable_choicedlg"
7278
7279 if test "$enableval" = yes; then
7280 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7281 else
7282 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7283 fi
7284
7285 else
7286
7287 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7288 if test "x$LINE" != x ; then
7289 eval "DEFAULT_$LINE"
7290 else
7291 no_cache=1
7292 fi
7293
7294 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7295
7296 fi
7297
7298
7299 eval "$ac_cv_use_choicedlg"
7300 if test "$no_cache" != 1; then
7301 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7302 fi
7303
7304 if test "$wxUSE_CHOICEDLG" = yes; then
7305 echo "$ac_t""yes" 1>&6
7306 else
7307 echo "$ac_t""no" 1>&6
7308 fi
7309
7310
7311 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7312 echo "configure:7313: checking for --enable-coldlg" >&5
7313 no_cache=0
7314 # Check whether --enable-coldlg or --disable-coldlg was given.
7315 if test "${enable_coldlg+set}" = set; then
7316 enableval="$enable_coldlg"
7317
7318 if test "$enableval" = yes; then
7319 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7320 else
7321 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7322 fi
7323
7324 else
7325
7326 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7327 if test "x$LINE" != x ; then
7328 eval "DEFAULT_$LINE"
7329 else
7330 no_cache=1
7331 fi
7332
7333 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7334
7335 fi
7336
7337
7338 eval "$ac_cv_use_coldlg"
7339 if test "$no_cache" != 1; then
7340 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7341 fi
7342
7343 if test "$wxUSE_COLOURDLG" = yes; then
7344 echo "$ac_t""yes" 1>&6
7345 else
7346 echo "$ac_t""no" 1>&6
7347 fi
7348
7349
7350 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7351 echo "configure:7352: checking for --enable-filedlg" >&5
7352 no_cache=0
7353 # Check whether --enable-filedlg or --disable-filedlg was given.
7354 if test "${enable_filedlg+set}" = set; then
7355 enableval="$enable_filedlg"
7356
7357 if test "$enableval" = yes; then
7358 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7359 else
7360 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7361 fi
7362
7363 else
7364
7365 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7366 if test "x$LINE" != x ; then
7367 eval "DEFAULT_$LINE"
7368 else
7369 no_cache=1
7370 fi
7371
7372 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7373
7374 fi
7375
7376
7377 eval "$ac_cv_use_filedlg"
7378 if test "$no_cache" != 1; then
7379 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7380 fi
7381
7382 if test "$wxUSE_FILEDLG" = yes; then
7383 echo "$ac_t""yes" 1>&6
7384 else
7385 echo "$ac_t""no" 1>&6
7386 fi
7387
7388
7389 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7390 echo "configure:7391: checking for --enable-finddlg" >&5
7391 no_cache=0
7392 # Check whether --enable-finddlg or --disable-finddlg was given.
7393 if test "${enable_finddlg+set}" = set; then
7394 enableval="$enable_finddlg"
7395
7396 if test "$enableval" = yes; then
7397 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7398 else
7399 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7400 fi
7401
7402 else
7403
7404 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7405 if test "x$LINE" != x ; then
7406 eval "DEFAULT_$LINE"
7407 else
7408 no_cache=1
7409 fi
7410
7411 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7412
7413 fi
7414
7415
7416 eval "$ac_cv_use_finddlg"
7417 if test "$no_cache" != 1; then
7418 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7419 fi
7420
7421 if test "$wxUSE_FINDREPLDLG" = yes; then
7422 echo "$ac_t""yes" 1>&6
7423 else
7424 echo "$ac_t""no" 1>&6
7425 fi
7426
7427
7428 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7429 echo "configure:7430: checking for --enable-fontdlg" >&5
7430 no_cache=0
7431 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7432 if test "${enable_fontdlg+set}" = set; then
7433 enableval="$enable_fontdlg"
7434
7435 if test "$enableval" = yes; then
7436 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7437 else
7438 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7439 fi
7440
7441 else
7442
7443 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7444 if test "x$LINE" != x ; then
7445 eval "DEFAULT_$LINE"
7446 else
7447 no_cache=1
7448 fi
7449
7450 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7451
7452 fi
7453
7454
7455 eval "$ac_cv_use_fontdlg"
7456 if test "$no_cache" != 1; then
7457 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7458 fi
7459
7460 if test "$wxUSE_FONTDLG" = yes; then
7461 echo "$ac_t""yes" 1>&6
7462 else
7463 echo "$ac_t""no" 1>&6
7464 fi
7465
7466
7467 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7468 echo "configure:7469: checking for --enable-dirdlg" >&5
7469 no_cache=0
7470 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7471 if test "${enable_dirdlg+set}" = set; then
7472 enableval="$enable_dirdlg"
7473
7474 if test "$enableval" = yes; then
7475 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7476 else
7477 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7478 fi
7479
7480 else
7481
7482 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7483 if test "x$LINE" != x ; then
7484 eval "DEFAULT_$LINE"
7485 else
7486 no_cache=1
7487 fi
7488
7489 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7490
7491 fi
7492
7493
7494 eval "$ac_cv_use_dirdlg"
7495 if test "$no_cache" != 1; then
7496 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7497 fi
7498
7499 if test "$wxUSE_DIRDLG" = yes; then
7500 echo "$ac_t""yes" 1>&6
7501 else
7502 echo "$ac_t""no" 1>&6
7503 fi
7504
7505
7506 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7507 echo "configure:7508: checking for --enable-msgdlg" >&5
7508 no_cache=0
7509 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7510 if test "${enable_msgdlg+set}" = set; then
7511 enableval="$enable_msgdlg"
7512
7513 if test "$enableval" = yes; then
7514 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7515 else
7516 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7517 fi
7518
7519 else
7520
7521 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7522 if test "x$LINE" != x ; then
7523 eval "DEFAULT_$LINE"
7524 else
7525 no_cache=1
7526 fi
7527
7528 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7529
7530 fi
7531
7532
7533 eval "$ac_cv_use_msgdlg"
7534 if test "$no_cache" != 1; then
7535 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7536 fi
7537
7538 if test "$wxUSE_MSGDLG" = yes; then
7539 echo "$ac_t""yes" 1>&6
7540 else
7541 echo "$ac_t""no" 1>&6
7542 fi
7543
7544
7545 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7546 echo "configure:7547: checking for --enable-numberdlg" >&5
7547 no_cache=0
7548 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7549 if test "${enable_numberdlg+set}" = set; then
7550 enableval="$enable_numberdlg"
7551
7552 if test "$enableval" = yes; then
7553 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7554 else
7555 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7556 fi
7557
7558 else
7559
7560 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7561 if test "x$LINE" != x ; then
7562 eval "DEFAULT_$LINE"
7563 else
7564 no_cache=1
7565 fi
7566
7567 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7568
7569 fi
7570
7571
7572 eval "$ac_cv_use_numberdlg"
7573 if test "$no_cache" != 1; then
7574 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7575 fi
7576
7577 if test "$wxUSE_NUMBERDLG" = yes; then
7578 echo "$ac_t""yes" 1>&6
7579 else
7580 echo "$ac_t""no" 1>&6
7581 fi
7582
7583
7584 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7585 echo "configure:7586: checking for --enable-splash" >&5
7586 no_cache=0
7587 # Check whether --enable-splash or --disable-splash was given.
7588 if test "${enable_splash+set}" = set; then
7589 enableval="$enable_splash"
7590
7591 if test "$enableval" = yes; then
7592 ac_cv_use_splash='wxUSE_SPLASH=yes'
7593 else
7594 ac_cv_use_splash='wxUSE_SPLASH=no'
7595 fi
7596
7597 else
7598
7599 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7600 if test "x$LINE" != x ; then
7601 eval "DEFAULT_$LINE"
7602 else
7603 no_cache=1
7604 fi
7605
7606 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7607
7608 fi
7609
7610
7611 eval "$ac_cv_use_splash"
7612 if test "$no_cache" != 1; then
7613 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7614 fi
7615
7616 if test "$wxUSE_SPLASH" = yes; then
7617 echo "$ac_t""yes" 1>&6
7618 else
7619 echo "$ac_t""no" 1>&6
7620 fi
7621
7622
7623 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7624 echo "configure:7625: checking for --enable-textdlg" >&5
7625 no_cache=0
7626 # Check whether --enable-textdlg or --disable-textdlg was given.
7627 if test "${enable_textdlg+set}" = set; then
7628 enableval="$enable_textdlg"
7629
7630 if test "$enableval" = yes; then
7631 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7632 else
7633 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7634 fi
7635
7636 else
7637
7638 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7639 if test "x$LINE" != x ; then
7640 eval "DEFAULT_$LINE"
7641 else
7642 no_cache=1
7643 fi
7644
7645 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7646
7647 fi
7648
7649
7650 eval "$ac_cv_use_textdlg"
7651 if test "$no_cache" != 1; then
7652 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7653 fi
7654
7655 if test "$wxUSE_TEXTDLG" = yes; then
7656 echo "$ac_t""yes" 1>&6
7657 else
7658 echo "$ac_t""no" 1>&6
7659 fi
7660
7661
7662 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7663 echo "configure:7664: checking for --enable-tipdlg" >&5
7664 no_cache=0
7665 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7666 if test "${enable_tipdlg+set}" = set; then
7667 enableval="$enable_tipdlg"
7668
7669 if test "$enableval" = yes; then
7670 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7671 else
7672 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7673 fi
7674
7675 else
7676
7677 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7678 if test "x$LINE" != x ; then
7679 eval "DEFAULT_$LINE"
7680 else
7681 no_cache=1
7682 fi
7683
7684 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7685
7686 fi
7687
7688
7689 eval "$ac_cv_use_tipdlg"
7690 if test "$no_cache" != 1; then
7691 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7692 fi
7693
7694 if test "$wxUSE_STARTUP_TIPS" = yes; then
7695 echo "$ac_t""yes" 1>&6
7696 else
7697 echo "$ac_t""no" 1>&6
7698 fi
7699
7700
7701 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7702 echo "configure:7703: checking for --enable-progressdlg" >&5
7703 no_cache=0
7704 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7705 if test "${enable_progressdlg+set}" = set; then
7706 enableval="$enable_progressdlg"
7707
7708 if test "$enableval" = yes; then
7709 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7710 else
7711 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7712 fi
7713
7714 else
7715
7716 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7717 if test "x$LINE" != x ; then
7718 eval "DEFAULT_$LINE"
7719 else
7720 no_cache=1
7721 fi
7722
7723 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7724
7725 fi
7726
7727
7728 eval "$ac_cv_use_progressdlg"
7729 if test "$no_cache" != 1; then
7730 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7731 fi
7732
7733 if test "$wxUSE_PROGRESSDLG" = yes; then
7734 echo "$ac_t""yes" 1>&6
7735 else
7736 echo "$ac_t""no" 1>&6
7737 fi
7738
7739
7740 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7741 echo "configure:7742: checking for --enable-wizarddlg" >&5
7742 no_cache=0
7743 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7744 if test "${enable_wizarddlg+set}" = set; then
7745 enableval="$enable_wizarddlg"
7746
7747 if test "$enableval" = yes; then
7748 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7749 else
7750 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7751 fi
7752
7753 else
7754
7755 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7756 if test "x$LINE" != x ; then
7757 eval "DEFAULT_$LINE"
7758 else
7759 no_cache=1
7760 fi
7761
7762 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7763
7764 fi
7765
7766
7767 eval "$ac_cv_use_wizarddlg"
7768 if test "$no_cache" != 1; then
7769 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7770 fi
7771
7772 if test "$wxUSE_WIZARDDLG" = yes; then
7773 echo "$ac_t""yes" 1>&6
7774 else
7775 echo "$ac_t""no" 1>&6
7776 fi
7777
7778
7779
7780
7781 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7782 echo "configure:7783: checking for --enable-menus" >&5
7783 no_cache=0
7784 # Check whether --enable-menus or --disable-menus was given.
7785 if test "${enable_menus+set}" = set; then
7786 enableval="$enable_menus"
7787
7788 if test "$enableval" = yes; then
7789 ac_cv_use_menus='wxUSE_MENUS=yes'
7790 else
7791 ac_cv_use_menus='wxUSE_MENUS=no'
7792 fi
7793
7794 else
7795
7796 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7797 if test "x$LINE" != x ; then
7798 eval "DEFAULT_$LINE"
7799 else
7800 no_cache=1
7801 fi
7802
7803 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7804
7805 fi
7806
7807
7808 eval "$ac_cv_use_menus"
7809 if test "$no_cache" != 1; then
7810 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7811 fi
7812
7813 if test "$wxUSE_MENUS" = yes; then
7814 echo "$ac_t""yes" 1>&6
7815 else
7816 echo "$ac_t""no" 1>&6
7817 fi
7818
7819
7820 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7821 echo "configure:7822: checking for --enable-miniframe" >&5
7822 no_cache=0
7823 # Check whether --enable-miniframe or --disable-miniframe was given.
7824 if test "${enable_miniframe+set}" = set; then
7825 enableval="$enable_miniframe"
7826
7827 if test "$enableval" = yes; then
7828 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7829 else
7830 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7831 fi
7832
7833 else
7834
7835 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7836 if test "x$LINE" != x ; then
7837 eval "DEFAULT_$LINE"
7838 else
7839 no_cache=1
7840 fi
7841
7842 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7843
7844 fi
7845
7846
7847 eval "$ac_cv_use_miniframe"
7848 if test "$no_cache" != 1; then
7849 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7850 fi
7851
7852 if test "$wxUSE_MINIFRAME" = yes; then
7853 echo "$ac_t""yes" 1>&6
7854 else
7855 echo "$ac_t""no" 1>&6
7856 fi
7857
7858
7859 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7860 echo "configure:7861: checking for --enable-tooltips" >&5
7861 no_cache=0
7862 # Check whether --enable-tooltips or --disable-tooltips was given.
7863 if test "${enable_tooltips+set}" = set; then
7864 enableval="$enable_tooltips"
7865
7866 if test "$enableval" = yes; then
7867 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7868 else
7869 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7870 fi
7871
7872 else
7873
7874 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7875 if test "x$LINE" != x ; then
7876 eval "DEFAULT_$LINE"
7877 else
7878 no_cache=1
7879 fi
7880
7881 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7882
7883 fi
7884
7885
7886 eval "$ac_cv_use_tooltips"
7887 if test "$no_cache" != 1; then
7888 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7889 fi
7890
7891 if test "$wxUSE_TOOLTIPS" = yes; then
7892 echo "$ac_t""yes" 1>&6
7893 else
7894 echo "$ac_t""no" 1>&6
7895 fi
7896
7897
7898 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7899 echo "configure:7900: checking for --enable-splines" >&5
7900 no_cache=0
7901 # Check whether --enable-splines or --disable-splines was given.
7902 if test "${enable_splines+set}" = set; then
7903 enableval="$enable_splines"
7904
7905 if test "$enableval" = yes; then
7906 ac_cv_use_splines='wxUSE_SPLINES=yes'
7907 else
7908 ac_cv_use_splines='wxUSE_SPLINES=no'
7909 fi
7910
7911 else
7912
7913 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7914 if test "x$LINE" != x ; then
7915 eval "DEFAULT_$LINE"
7916 else
7917 no_cache=1
7918 fi
7919
7920 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7921
7922 fi
7923
7924
7925 eval "$ac_cv_use_splines"
7926 if test "$no_cache" != 1; then
7927 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7928 fi
7929
7930 if test "$wxUSE_SPLINES" = yes; then
7931 echo "$ac_t""yes" 1>&6
7932 else
7933 echo "$ac_t""no" 1>&6
7934 fi
7935
7936
7937 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7938 echo "configure:7939: checking for --enable-validators" >&5
7939 no_cache=0
7940 # Check whether --enable-validators or --disable-validators was given.
7941 if test "${enable_validators+set}" = set; then
7942 enableval="$enable_validators"
7943
7944 if test "$enableval" = yes; then
7945 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7946 else
7947 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7948 fi
7949
7950 else
7951
7952 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7953 if test "x$LINE" != x ; then
7954 eval "DEFAULT_$LINE"
7955 else
7956 no_cache=1
7957 fi
7958
7959 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7960
7961 fi
7962
7963
7964 eval "$ac_cv_use_validators"
7965 if test "$no_cache" != 1; then
7966 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7967 fi
7968
7969 if test "$wxUSE_VALIDATORS" = yes; then
7970 echo "$ac_t""yes" 1>&6
7971 else
7972 echo "$ac_t""no" 1>&6
7973 fi
7974
7975
7976 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7977 echo "configure:7978: checking for --enable-busyinfo" >&5
7978 no_cache=0
7979 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7980 if test "${enable_busyinfo+set}" = set; then
7981 enableval="$enable_busyinfo"
7982
7983 if test "$enableval" = yes; then
7984 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7985 else
7986 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7987 fi
7988
7989 else
7990
7991 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7992 if test "x$LINE" != x ; then
7993 eval "DEFAULT_$LINE"
7994 else
7995 no_cache=1
7996 fi
7997
7998 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7999
8000 fi
8001
8002
8003 eval "$ac_cv_use_busyinfo"
8004 if test "$no_cache" != 1; then
8005 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8006 fi
8007
8008 if test "$wxUSE_BUSYINFO" = yes; then
8009 echo "$ac_t""yes" 1>&6
8010 else
8011 echo "$ac_t""no" 1>&6
8012 fi
8013
8014
8015 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
8016 echo "configure:8017: checking for --enable-joystick" >&5
8017 no_cache=0
8018 # Check whether --enable-joystick or --disable-joystick was given.
8019 if test "${enable_joystick+set}" = set; then
8020 enableval="$enable_joystick"
8021
8022 if test "$enableval" = yes; then
8023 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8024 else
8025 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8026 fi
8027
8028 else
8029
8030 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8031 if test "x$LINE" != x ; then
8032 eval "DEFAULT_$LINE"
8033 else
8034 no_cache=1
8035 fi
8036
8037 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8038
8039 fi
8040
8041
8042 eval "$ac_cv_use_joystick"
8043 if test "$no_cache" != 1; then
8044 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8045 fi
8046
8047 if test "$wxUSE_JOYSTICK" = yes; then
8048 echo "$ac_t""yes" 1>&6
8049 else
8050 echo "$ac_t""no" 1>&6
8051 fi
8052
8053
8054 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8055 echo "configure:8056: checking for --enable-metafile" >&5
8056 no_cache=0
8057 # Check whether --enable-metafile or --disable-metafile was given.
8058 if test "${enable_metafile+set}" = set; then
8059 enableval="$enable_metafile"
8060
8061 if test "$enableval" = yes; then
8062 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8063 else
8064 ac_cv_use_metafile='wxUSE_METAFILE=no'
8065 fi
8066
8067 else
8068
8069 LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8077
8078 fi
8079
8080
8081 eval "$ac_cv_use_metafile"
8082 if test "$no_cache" != 1; then
8083 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8084 fi
8085
8086 if test "$wxUSE_METAFILE" = yes; then
8087 echo "$ac_t""yes" 1>&6
8088 else
8089 echo "$ac_t""no" 1>&6
8090 fi
8091
8092
8093 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8094 echo "configure:8095: checking for --enable-dragimage" >&5
8095 no_cache=0
8096 # Check whether --enable-dragimage or --disable-dragimage was given.
8097 if test "${enable_dragimage+set}" = set; then
8098 enableval="$enable_dragimage"
8099
8100 if test "$enableval" = yes; then
8101 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8102 else
8103 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8104 fi
8105
8106 else
8107
8108 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8116
8117 fi
8118
8119
8120 eval "$ac_cv_use_dragimage"
8121 if test "$no_cache" != 1; then
8122 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8123 fi
8124
8125 if test "$wxUSE_DRAGIMAGE" = yes; then
8126 echo "$ac_t""yes" 1>&6
8127 else
8128 echo "$ac_t""no" 1>&6
8129 fi
8130
8131
8132
8133
8134 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8135 echo "configure:8136: checking for --enable-palette" >&5
8136 no_cache=0
8137 # Check whether --enable-palette or --disable-palette was given.
8138 if test "${enable_palette+set}" = set; then
8139 enableval="$enable_palette"
8140
8141 if test "$enableval" = yes; then
8142 ac_cv_use_palette='wxUSE_PALETTE=yes'
8143 else
8144 ac_cv_use_palette='wxUSE_PALETTE=no'
8145 fi
8146
8147 else
8148
8149 LINE=`grep "wxUSE_PALETTE" ${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_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8157
8158 fi
8159
8160
8161 eval "$ac_cv_use_palette"
8162 if test "$no_cache" != 1; then
8163 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8164 fi
8165
8166 if test "$wxUSE_PALETTE" = yes; then
8167 echo "$ac_t""yes" 1>&6
8168 else
8169 echo "$ac_t""no" 1>&6
8170 fi
8171
8172
8173 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8174 echo "configure:8175: checking for --enable-image" >&5
8175 no_cache=0
8176 # Check whether --enable-image or --disable-image was given.
8177 if test "${enable_image+set}" = set; then
8178 enableval="$enable_image"
8179
8180 if test "$enableval" = yes; then
8181 ac_cv_use_image='wxUSE_IMAGE=yes'
8182 else
8183 ac_cv_use_image='wxUSE_IMAGE=no'
8184 fi
8185
8186 else
8187
8188 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8189 if test "x$LINE" != x ; then
8190 eval "DEFAULT_$LINE"
8191 else
8192 no_cache=1
8193 fi
8194
8195 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8196
8197 fi
8198
8199
8200 eval "$ac_cv_use_image"
8201 if test "$no_cache" != 1; then
8202 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8203 fi
8204
8205 if test "$wxUSE_IMAGE" = yes; then
8206 echo "$ac_t""yes" 1>&6
8207 else
8208 echo "$ac_t""no" 1>&6
8209 fi
8210
8211
8212 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8213 echo "configure:8214: checking for --enable-gif" >&5
8214 no_cache=0
8215 # Check whether --enable-gif or --disable-gif was given.
8216 if test "${enable_gif+set}" = set; then
8217 enableval="$enable_gif"
8218
8219 if test "$enableval" = yes; then
8220 ac_cv_use_gif='wxUSE_GIF=yes'
8221 else
8222 ac_cv_use_gif='wxUSE_GIF=no'
8223 fi
8224
8225 else
8226
8227 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8228 if test "x$LINE" != x ; then
8229 eval "DEFAULT_$LINE"
8230 else
8231 no_cache=1
8232 fi
8233
8234 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8235
8236 fi
8237
8238
8239 eval "$ac_cv_use_gif"
8240 if test "$no_cache" != 1; then
8241 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8242 fi
8243
8244 if test "$wxUSE_GIF" = yes; then
8245 echo "$ac_t""yes" 1>&6
8246 else
8247 echo "$ac_t""no" 1>&6
8248 fi
8249
8250
8251 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8252 echo "configure:8253: checking for --enable-pcx" >&5
8253 no_cache=0
8254 # Check whether --enable-pcx or --disable-pcx was given.
8255 if test "${enable_pcx+set}" = set; then
8256 enableval="$enable_pcx"
8257
8258 if test "$enableval" = yes; then
8259 ac_cv_use_pcx='wxUSE_PCX=yes'
8260 else
8261 ac_cv_use_pcx='wxUSE_PCX=no'
8262 fi
8263
8264 else
8265
8266 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8267 if test "x$LINE" != x ; then
8268 eval "DEFAULT_$LINE"
8269 else
8270 no_cache=1
8271 fi
8272
8273 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8274
8275 fi
8276
8277
8278 eval "$ac_cv_use_pcx"
8279 if test "$no_cache" != 1; then
8280 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8281 fi
8282
8283 if test "$wxUSE_PCX" = yes; then
8284 echo "$ac_t""yes" 1>&6
8285 else
8286 echo "$ac_t""no" 1>&6
8287 fi
8288
8289
8290 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8291 echo "configure:8292: checking for --enable-iff" >&5
8292 no_cache=0
8293 # Check whether --enable-iff or --disable-iff was given.
8294 if test "${enable_iff+set}" = set; then
8295 enableval="$enable_iff"
8296
8297 if test "$enableval" = yes; then
8298 ac_cv_use_iff='wxUSE_IFF=yes'
8299 else
8300 ac_cv_use_iff='wxUSE_IFF=no'
8301 fi
8302
8303 else
8304
8305 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8306 if test "x$LINE" != x ; then
8307 eval "DEFAULT_$LINE"
8308 else
8309 no_cache=1
8310 fi
8311
8312 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8313
8314 fi
8315
8316
8317 eval "$ac_cv_use_iff"
8318 if test "$no_cache" != 1; then
8319 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8320 fi
8321
8322 if test "$wxUSE_IFF" = yes; then
8323 echo "$ac_t""yes" 1>&6
8324 else
8325 echo "$ac_t""no" 1>&6
8326 fi
8327
8328
8329 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8330 echo "configure:8331: checking for --enable-pnm" >&5
8331 no_cache=0
8332 # Check whether --enable-pnm or --disable-pnm was given.
8333 if test "${enable_pnm+set}" = set; then
8334 enableval="$enable_pnm"
8335
8336 if test "$enableval" = yes; then
8337 ac_cv_use_pnm='wxUSE_PNM=yes'
8338 else
8339 ac_cv_use_pnm='wxUSE_PNM=no'
8340 fi
8341
8342 else
8343
8344 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8345 if test "x$LINE" != x ; then
8346 eval "DEFAULT_$LINE"
8347 else
8348 no_cache=1
8349 fi
8350
8351 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8352
8353 fi
8354
8355
8356 eval "$ac_cv_use_pnm"
8357 if test "$no_cache" != 1; then
8358 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8359 fi
8360
8361 if test "$wxUSE_PNM" = yes; then
8362 echo "$ac_t""yes" 1>&6
8363 else
8364 echo "$ac_t""no" 1>&6
8365 fi
8366
8367
8368 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8369 echo "configure:8370: checking for --enable-xpm" >&5
8370 no_cache=0
8371 # Check whether --enable-xpm or --disable-xpm was given.
8372 if test "${enable_xpm+set}" = set; then
8373 enableval="$enable_xpm"
8374
8375 if test "$enableval" = yes; then
8376 ac_cv_use_xpm='wxUSE_XPM=yes'
8377 else
8378 ac_cv_use_xpm='wxUSE_XPM=no'
8379 fi
8380
8381 else
8382
8383 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8384 if test "x$LINE" != x ; then
8385 eval "DEFAULT_$LINE"
8386 else
8387 no_cache=1
8388 fi
8389
8390 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8391
8392 fi
8393
8394
8395 eval "$ac_cv_use_xpm"
8396 if test "$no_cache" != 1; then
8397 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8398 fi
8399
8400 if test "$wxUSE_XPM" = yes; then
8401 echo "$ac_t""yes" 1>&6
8402 else
8403 echo "$ac_t""no" 1>&6
8404 fi
8405
8406
8407 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8408 echo "configure:8409: checking for --enable-ico_cur" >&5
8409 no_cache=0
8410 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8411 if test "${enable_ico_cur+set}" = set; then
8412 enableval="$enable_ico_cur"
8413
8414 if test "$enableval" = yes; then
8415 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8416 else
8417 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8418 fi
8419
8420 else
8421
8422 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8423 if test "x$LINE" != x ; then
8424 eval "DEFAULT_$LINE"
8425 else
8426 no_cache=1
8427 fi
8428
8429 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8430
8431 fi
8432
8433
8434 eval "$ac_cv_use_ico_cur"
8435 if test "$no_cache" != 1; then
8436 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8437 fi
8438
8439 if test "$wxUSE_ICO_CUR" = yes; then
8440 echo "$ac_t""yes" 1>&6
8441 else
8442 echo "$ac_t""no" 1>&6
8443 fi
8444
8445
8446 fi
8447
8448 case "${host}" in
8449 *-pc-os2_emx | *-pc-os2-emx )
8450 PATH_IFS=';'
8451 LEX_STEM="lexyy"
8452 ;;
8453 *)
8454 PATH_IFS=':'
8455 LEX_STEM="lex.yy"
8456 ;;
8457 esac
8458
8459
8460
8461 echo "saving argument cache $wx_arg_cache_file"
8462 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8463
8464
8465
8466 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8467 echo "configure:8468: checking for toolkit" >&5
8468
8469 if test "$wxUSE_GUI" = "yes"; then
8470
8471 if test "$USE_BEOS" = 1; then
8472 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8473 fi
8474
8475 if test "$TOOLKIT_GIVEN" = 1; then
8476 for toolkit in `echo $ALL_TOOLKITS`; do
8477 var=wxUSE_$toolkit
8478 eval "value=\$${var}"
8479 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8480 done
8481 else
8482 for toolkit in `echo $ALL_TOOLKITS`; do
8483 if test "$has_toolkit_in_cache" != 1; then
8484 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8485 else
8486 var=DEFAULT_wxUSE_$toolkit
8487 fi
8488 eval "wxUSE_$toolkit=\$${var}"
8489 done
8490 fi
8491
8492 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8493 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8494
8495 case "${host}" in
8496 *-pc-os2_emx | *-pc-os2-emx )
8497 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8498 esac
8499
8500 case "$NUM_TOOLKITS" in
8501 1)
8502 ;;
8503 0)
8504 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8505 ;;
8506 *)
8507 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8508 esac
8509
8510 for toolkit in `echo $ALL_TOOLKITS`; do
8511 var=wxUSE_$toolkit
8512 eval "value=\$${var}"
8513 if test "x$value" != x; then
8514 cache_var=CACHE_$toolkit
8515 eval "cache=\$${cache_var}"
8516 if test "$cache" = 1; then
8517 echo "$var=$value" >> ${wx_arg_cache_file}
8518 fi
8519 if test "$value" = 1; then
8520 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8521 echo "$ac_t""$toolkit_echo" 1>&6
8522 fi
8523 fi
8524 done
8525 else
8526 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8527 fi
8528
8529 case "${host}" in
8530 *-pc-os2_emx | *-pc-os2-emx )
8531 LIBS="$LIBS -lstdcpp"
8532 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
8533 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
8534 echo "configure:8535: checking for drand48 in -lcExt" >&5
8535 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
8536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8537 echo $ac_n "(cached) $ac_c" 1>&6
8538 else
8539 ac_save_LIBS="$LIBS"
8540 LIBS="-lcExt $LIBS"
8541 cat > conftest.$ac_ext <<EOF
8542 #line 8543 "configure"
8543 #include "confdefs.h"
8544 /* Override any gcc2 internal prototype to avoid an error. */
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8547 char drand48();
8548
8549 int main() {
8550 drand48()
8551 ; return 0; }
8552 EOF
8553 if { (eval echo configure:8554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8554 rm -rf conftest*
8555 eval "ac_cv_lib_$ac_lib_var=yes"
8556 else
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8559 rm -rf conftest*
8560 eval "ac_cv_lib_$ac_lib_var=no"
8561 fi
8562 rm -f conftest*
8563 LIBS="$ac_save_LIBS"
8564
8565 fi
8566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8567 echo "$ac_t""yes" 1>&6
8568 LIBS="$LIBS -lcExt"
8569 else
8570 echo "$ac_t""no" 1>&6
8571 fi
8572
8573 else
8574 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
8575 fi
8576 ;;
8577 esac
8578
8579 wants_win32=0
8580 doesnt_want_win32=0
8581 case "${host}" in
8582 *-*-cygwin*)
8583 if test "$wxUSE_MSW" = 1 ; then
8584 wants_win32=1
8585 else
8586 doesnt_want_win32=1
8587 fi
8588 ;;
8589 *-*-mingw*)
8590 wants_win32=1
8591 ;;
8592 esac
8593
8594 if test "$wants_win32" = 1 ; then
8595 USE_UNIX=0
8596 USE_WIN32=1
8597 cat >> confdefs.h <<\EOF
8598 #define __WIN32__ 1
8599 EOF
8600
8601 cat >> confdefs.h <<\EOF
8602 #define __WIN95__ 1
8603 EOF
8604
8605 cat >> confdefs.h <<\EOF
8606 #define __WINDOWS__ 1
8607 EOF
8608
8609 cat >> confdefs.h <<\EOF
8610 #define __GNUWIN32__ 1
8611 EOF
8612
8613 cat >> confdefs.h <<\EOF
8614 #define STRICT 1
8615 EOF
8616
8617 cat >> confdefs.h <<\EOF
8618 #define WINVER 0x0400
8619 EOF
8620
8621 fi
8622 if test "$doesnt_want_win32" = 1 ; then
8623 USE_UNIX=1
8624 USE_WIN32=0
8625 fi
8626
8627 if test "$USE_UNIX" = 1 ; then
8628 wxUSE_UNIX=yes
8629 cat >> confdefs.h <<\EOF
8630 #define __UNIX__ 1
8631 EOF
8632
8633 fi
8634
8635
8636 cat > confcache <<\EOF
8637 # This file is a shell script that caches the results of configure
8638 # tests run on this system so they can be shared between configure
8639 # scripts and configure runs. It is not useful on other systems.
8640 # If it contains results you don't want to keep, you may remove or edit it.
8641 #
8642 # By default, configure uses ./config.cache as the cache file,
8643 # creating it if it does not exist already. You can give configure
8644 # the --cache-file=FILE option to use a different cache file; that is
8645 # what configure does when it calls configure scripts in
8646 # subdirectories, so they share the cache.
8647 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8648 # config.status only pays attention to the cache file if you give it the
8649 # --recheck option to rerun configure.
8650 #
8651 EOF
8652 # The following way of writing the cache mishandles newlines in values,
8653 # but we know of no workaround that is simple, portable, and efficient.
8654 # So, don't put newlines in cache variables' values.
8655 # Ultrix sh set writes to stderr and can't be redirected directly,
8656 # and sets the high bit in the cache file unless we assign to the vars.
8657 (set) 2>&1 |
8658 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8659 *ac_space=\ *)
8660 # `set' does not quote correctly, so add quotes (double-quote substitution
8661 # turns \\\\ into \\, and sed turns \\ into \).
8662 sed -n \
8663 -e "s/'/'\\\\''/g" \
8664 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8665 ;;
8666 *)
8667 # `set' quotes correctly as required by POSIX, so do not add quotes.
8668 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8669 ;;
8670 esac >> confcache
8671 if cmp -s $cache_file confcache; then
8672 :
8673 else
8674 if test -w $cache_file; then
8675 echo "updating cache $cache_file"
8676 cat confcache > $cache_file
8677 else
8678 echo "not updating unwritable cache $cache_file"
8679 fi
8680 fi
8681 rm -f confcache
8682
8683
8684 if test "$build" != "$host" ; then
8685 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8686 CC=$host_alias-gcc
8687 CXX=$host_alias-c++
8688 AR=$host_alias-ar
8689 RANLIB=$host_alias-ranlib
8690 DLLTOOL=$host_alias-dlltool
8691 RESCOMP=$host_alias-windres
8692 LD=$host_alias-ld
8693 NM=$host_alias-nm
8694 STRIP=$host_alias-strip
8695 else
8696 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8697 fi
8698 fi
8699
8700 CFLAGS=${CFLAGS:=}
8701 # Extract the first word of "gcc", so it can be a program name with args.
8702 set dummy gcc; ac_word=$2
8703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8704 echo "configure:8705: checking for $ac_word" >&5
8705 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8706 echo $ac_n "(cached) $ac_c" 1>&6
8707 else
8708 if test -n "$CC"; then
8709 ac_cv_prog_CC="$CC" # Let the user override the test.
8710 else
8711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8712 ac_dummy="$PATH"
8713 for ac_dir in $ac_dummy; do
8714 test -z "$ac_dir" && ac_dir=.
8715 if test -f $ac_dir/$ac_word; then
8716 ac_cv_prog_CC="gcc"
8717 break
8718 fi
8719 done
8720 IFS="$ac_save_ifs"
8721 fi
8722 fi
8723 CC="$ac_cv_prog_CC"
8724 if test -n "$CC"; then
8725 echo "$ac_t""$CC" 1>&6
8726 else
8727 echo "$ac_t""no" 1>&6
8728 fi
8729
8730 if test -z "$CC"; then
8731 # Extract the first word of "cc", so it can be a program name with args.
8732 set dummy cc; ac_word=$2
8733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8734 echo "configure:8735: checking for $ac_word" >&5
8735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8736 echo $ac_n "(cached) $ac_c" 1>&6
8737 else
8738 if test -n "$CC"; then
8739 ac_cv_prog_CC="$CC" # Let the user override the test.
8740 else
8741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8742 ac_prog_rejected=no
8743 ac_dummy="$PATH"
8744 for ac_dir in $ac_dummy; do
8745 test -z "$ac_dir" && ac_dir=.
8746 if test -f $ac_dir/$ac_word; then
8747 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8748 ac_prog_rejected=yes
8749 continue
8750 fi
8751 ac_cv_prog_CC="cc"
8752 break
8753 fi
8754 done
8755 IFS="$ac_save_ifs"
8756 if test $ac_prog_rejected = yes; then
8757 # We found a bogon in the path, so make sure we never use it.
8758 set dummy $ac_cv_prog_CC
8759 shift
8760 if test $# -gt 0; then
8761 # We chose a different compiler from the bogus one.
8762 # However, it has the same basename, so the bogon will be chosen
8763 # first if we set CC to just the basename; use the full file name.
8764 shift
8765 set dummy "$ac_dir/$ac_word" "$@"
8766 shift
8767 ac_cv_prog_CC="$@"
8768 fi
8769 fi
8770 fi
8771 fi
8772 CC="$ac_cv_prog_CC"
8773 if test -n "$CC"; then
8774 echo "$ac_t""$CC" 1>&6
8775 else
8776 echo "$ac_t""no" 1>&6
8777 fi
8778
8779 if test -z "$CC"; then
8780 case "`uname -s`" in
8781 *win32* | *WIN32*)
8782 # Extract the first word of "cl", so it can be a program name with args.
8783 set dummy cl; ac_word=$2
8784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8785 echo "configure:8786: checking for $ac_word" >&5
8786 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8787 echo $ac_n "(cached) $ac_c" 1>&6
8788 else
8789 if test -n "$CC"; then
8790 ac_cv_prog_CC="$CC" # Let the user override the test.
8791 else
8792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8793 ac_dummy="$PATH"
8794 for ac_dir in $ac_dummy; do
8795 test -z "$ac_dir" && ac_dir=.
8796 if test -f $ac_dir/$ac_word; then
8797 ac_cv_prog_CC="cl"
8798 break
8799 fi
8800 done
8801 IFS="$ac_save_ifs"
8802 fi
8803 fi
8804 CC="$ac_cv_prog_CC"
8805 if test -n "$CC"; then
8806 echo "$ac_t""$CC" 1>&6
8807 else
8808 echo "$ac_t""no" 1>&6
8809 fi
8810 ;;
8811 esac
8812 fi
8813 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8814 fi
8815
8816 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8817 echo "configure:8818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8818
8819 ac_ext=c
8820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8821 ac_cpp='$CPP $CPPFLAGS'
8822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8824 cross_compiling=$ac_cv_prog_cc_cross
8825
8826 cat > conftest.$ac_ext << EOF
8827
8828 #line 8829 "configure"
8829 #include "confdefs.h"
8830
8831 main(){return(0);}
8832 EOF
8833 if { (eval echo configure:8834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8834 ac_cv_prog_cc_works=yes
8835 # If we can't run a trivial program, we are probably using a cross compiler.
8836 if (./conftest; exit) 2>/dev/null; then
8837 ac_cv_prog_cc_cross=no
8838 else
8839 ac_cv_prog_cc_cross=yes
8840 fi
8841 else
8842 echo "configure: failed program was:" >&5
8843 cat conftest.$ac_ext >&5
8844 ac_cv_prog_cc_works=no
8845 fi
8846 rm -fr conftest*
8847 ac_ext=c
8848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8849 ac_cpp='$CPP $CPPFLAGS'
8850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8852 cross_compiling=$ac_cv_prog_cc_cross
8853
8854 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8855 if test $ac_cv_prog_cc_works = no; then
8856 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8857 fi
8858 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8859 echo "configure:8860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8860 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8861 cross_compiling=$ac_cv_prog_cc_cross
8862
8863 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8864 echo "configure:8865: checking whether we are using GNU C" >&5
8865 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8866 echo $ac_n "(cached) $ac_c" 1>&6
8867 else
8868 cat > conftest.c <<EOF
8869 #ifdef __GNUC__
8870 yes;
8871 #endif
8872 EOF
8873 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8874 ac_cv_prog_gcc=yes
8875 else
8876 ac_cv_prog_gcc=no
8877 fi
8878 fi
8879
8880 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8881
8882 if test $ac_cv_prog_gcc = yes; then
8883 GCC=yes
8884 else
8885 GCC=
8886 fi
8887
8888 ac_test_CFLAGS="${CFLAGS+set}"
8889 ac_save_CFLAGS="$CFLAGS"
8890 CFLAGS=
8891 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8892 echo "configure:8893: checking whether ${CC-cc} accepts -g" >&5
8893 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8895 else
8896 echo 'void f(){}' > conftest.c
8897 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8898 ac_cv_prog_cc_g=yes
8899 else
8900 ac_cv_prog_cc_g=no
8901 fi
8902 rm -f conftest*
8903
8904 fi
8905
8906 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8907 if test "$ac_test_CFLAGS" = set; then
8908 CFLAGS="$ac_save_CFLAGS"
8909 elif test $ac_cv_prog_cc_g = yes; then
8910 if test "$GCC" = yes; then
8911 CFLAGS="-g -O2"
8912 else
8913 CFLAGS="-g"
8914 fi
8915 else
8916 if test "$GCC" = yes; then
8917 CFLAGS="-O2"
8918 else
8919 CFLAGS=
8920 fi
8921 fi
8922
8923
8924 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8925 echo "configure:8926: checking how to run the C preprocessor" >&5
8926 # On Suns, sometimes $CPP names a directory.
8927 if test -n "$CPP" && test -d "$CPP"; then
8928 CPP=
8929 fi
8930 if test -z "$CPP"; then
8931 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8932 echo $ac_n "(cached) $ac_c" 1>&6
8933 else
8934 # This must be in double quotes, not single quotes, because CPP may get
8935 # substituted into the Makefile and "${CC-cc}" will confuse make.
8936 CPP="${CC-cc} -E"
8937 # On the NeXT, cc -E runs the code through the compiler's parser,
8938 # not just through cpp.
8939 cat > conftest.$ac_ext <<EOF
8940 #line 8941 "configure"
8941 #include "confdefs.h"
8942 #include <assert.h>
8943 Syntax Error
8944 EOF
8945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8946 { (eval echo configure:8947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8948 if test -z "$ac_err"; then
8949 :
8950 else
8951 echo "$ac_err" >&5
8952 echo "configure: failed program was:" >&5
8953 cat conftest.$ac_ext >&5
8954 rm -rf conftest*
8955 CPP="${CC-cc} -E -traditional-cpp"
8956 cat > conftest.$ac_ext <<EOF
8957 #line 8958 "configure"
8958 #include "confdefs.h"
8959 #include <assert.h>
8960 Syntax Error
8961 EOF
8962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8963 { (eval echo configure:8964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8965 if test -z "$ac_err"; then
8966 :
8967 else
8968 echo "$ac_err" >&5
8969 echo "configure: failed program was:" >&5
8970 cat conftest.$ac_ext >&5
8971 rm -rf conftest*
8972 CPP="${CC-cc} -nologo -E"
8973 cat > conftest.$ac_ext <<EOF
8974 #line 8975 "configure"
8975 #include "confdefs.h"
8976 #include <assert.h>
8977 Syntax Error
8978 EOF
8979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8980 { (eval echo configure:8981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8982 if test -z "$ac_err"; then
8983 :
8984 else
8985 echo "$ac_err" >&5
8986 echo "configure: failed program was:" >&5
8987 cat conftest.$ac_ext >&5
8988 rm -rf conftest*
8989 CPP=/lib/cpp
8990 fi
8991 rm -f conftest*
8992 fi
8993 rm -f conftest*
8994 fi
8995 rm -f conftest*
8996 ac_cv_prog_CPP="$CPP"
8997 fi
8998 CPP="$ac_cv_prog_CPP"
8999 else
9000 ac_cv_prog_CPP="$CPP"
9001 fi
9002 echo "$ac_t""$CPP" 1>&6
9003
9004 if test $ac_cv_prog_gcc = yes; then
9005 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9006 echo "configure:9007: checking whether ${CC-cc} needs -traditional" >&5
9007 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9008 echo $ac_n "(cached) $ac_c" 1>&6
9009 else
9010 ac_pattern="Autoconf.*'x'"
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9014 #include <sgtty.h>
9015 Autoconf TIOCGETP
9016 EOF
9017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9018 egrep "$ac_pattern" >/dev/null 2>&1; then
9019 rm -rf conftest*
9020 ac_cv_prog_gcc_traditional=yes
9021 else
9022 rm -rf conftest*
9023 ac_cv_prog_gcc_traditional=no
9024 fi
9025 rm -f conftest*
9026
9027
9028 if test $ac_cv_prog_gcc_traditional = no; then
9029 cat > conftest.$ac_ext <<EOF
9030 #line 9031 "configure"
9031 #include "confdefs.h"
9032 #include <termio.h>
9033 Autoconf TCGETA
9034 EOF
9035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9036 egrep "$ac_pattern" >/dev/null 2>&1; then
9037 rm -rf conftest*
9038 ac_cv_prog_gcc_traditional=yes
9039 fi
9040 rm -f conftest*
9041
9042 fi
9043 fi
9044
9045 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9046 if test $ac_cv_prog_gcc_traditional = yes; then
9047 CC="$CC -traditional"
9048 fi
9049 fi
9050
9051
9052
9053 ac_ext=C
9054 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9055 ac_cpp='$CXXCPP $CPPFLAGS'
9056 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9057 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9058 cross_compiling=$ac_cv_prog_cxx_cross
9059
9060
9061 CXXFLAGS=${CXXFLAGS:=}
9062 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9063 do
9064 # Extract the first word of "$ac_prog", so it can be a program name with args.
9065 set dummy $ac_prog; ac_word=$2
9066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9067 echo "configure:9068: checking for $ac_word" >&5
9068 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9069 echo $ac_n "(cached) $ac_c" 1>&6
9070 else
9071 if test -n "$CXX"; then
9072 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9073 else
9074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9075 ac_dummy="$PATH"
9076 for ac_dir in $ac_dummy; do
9077 test -z "$ac_dir" && ac_dir=.
9078 if test -f $ac_dir/$ac_word; then
9079 ac_cv_prog_CXX="$ac_prog"
9080 break
9081 fi
9082 done
9083 IFS="$ac_save_ifs"
9084 fi
9085 fi
9086 CXX="$ac_cv_prog_CXX"
9087 if test -n "$CXX"; then
9088 echo "$ac_t""$CXX" 1>&6
9089 else
9090 echo "$ac_t""no" 1>&6
9091 fi
9092
9093 test -n "$CXX" && break
9094 done
9095 test -n "$CXX" || CXX="gcc"
9096
9097
9098 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9099 echo "configure:9100: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9100
9101 ac_ext=C
9102 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9103 ac_cpp='$CXXCPP $CPPFLAGS'
9104 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9105 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9106 cross_compiling=$ac_cv_prog_cxx_cross
9107
9108 cat > conftest.$ac_ext << EOF
9109
9110 #line 9111 "configure"
9111 #include "confdefs.h"
9112
9113 int main(){return(0);}
9114 EOF
9115 if { (eval echo configure:9116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9116 ac_cv_prog_cxx_works=yes
9117 # If we can't run a trivial program, we are probably using a cross compiler.
9118 if (./conftest; exit) 2>/dev/null; then
9119 ac_cv_prog_cxx_cross=no
9120 else
9121 ac_cv_prog_cxx_cross=yes
9122 fi
9123 else
9124 echo "configure: failed program was:" >&5
9125 cat conftest.$ac_ext >&5
9126 ac_cv_prog_cxx_works=no
9127 fi
9128 rm -fr conftest*
9129 ac_ext=C
9130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9131 ac_cpp='$CXXCPP $CPPFLAGS'
9132 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9133 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9134 cross_compiling=$ac_cv_prog_cxx_cross
9135
9136 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9137 if test $ac_cv_prog_cxx_works = no; then
9138 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9139 fi
9140 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9141 echo "configure:9142: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9142 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9143 cross_compiling=$ac_cv_prog_cxx_cross
9144
9145 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9146 echo "configure:9147: checking whether we are using GNU C++" >&5
9147 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9148 echo $ac_n "(cached) $ac_c" 1>&6
9149 else
9150 cat > conftest.C <<EOF
9151 #ifdef __GNUC__
9152 yes;
9153 #endif
9154 EOF
9155 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9156 ac_cv_prog_gxx=yes
9157 else
9158 ac_cv_prog_gxx=no
9159 fi
9160 fi
9161
9162 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9163
9164 if test $ac_cv_prog_gxx = yes; then
9165 GXX=yes
9166 else
9167 GXX=
9168 fi
9169
9170 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9171 ac_save_CXXFLAGS="$CXXFLAGS"
9172 CXXFLAGS=
9173 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9174 echo "configure:9175: checking whether ${CXX-g++} accepts -g" >&5
9175 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9176 echo $ac_n "(cached) $ac_c" 1>&6
9177 else
9178 echo 'void f(){}' > conftest.cc
9179 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9180 ac_cv_prog_cxx_g=yes
9181 else
9182 ac_cv_prog_cxx_g=no
9183 fi
9184 rm -f conftest*
9185
9186 fi
9187
9188 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9189 if test "$ac_test_CXXFLAGS" = set; then
9190 CXXFLAGS="$ac_save_CXXFLAGS"
9191 elif test $ac_cv_prog_cxx_g = yes; then
9192 if test "$GXX" = yes; then
9193 CXXFLAGS="-g -O2"
9194 else
9195 CXXFLAGS="-g"
9196 fi
9197 else
9198 if test "$GXX" = yes; then
9199 CXXFLAGS="-O2"
9200 else
9201 CXXFLAGS=
9202 fi
9203 fi
9204
9205
9206 ac_ext=c
9207 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9208 ac_cpp='$CPP $CPPFLAGS'
9209 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9210 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9211 cross_compiling=$ac_cv_prog_cc_cross
9212
9213
9214 # Extract the first word of "ranlib", so it can be a program name with args.
9215 set dummy ranlib; ac_word=$2
9216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9217 echo "configure:9218: checking for $ac_word" >&5
9218 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9219 echo $ac_n "(cached) $ac_c" 1>&6
9220 else
9221 if test -n "$RANLIB"; then
9222 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9223 else
9224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9225 ac_dummy="$PATH"
9226 for ac_dir in $ac_dummy; do
9227 test -z "$ac_dir" && ac_dir=.
9228 if test -f $ac_dir/$ac_word; then
9229 ac_cv_prog_RANLIB="ranlib"
9230 break
9231 fi
9232 done
9233 IFS="$ac_save_ifs"
9234 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9235 fi
9236 fi
9237 RANLIB="$ac_cv_prog_RANLIB"
9238 if test -n "$RANLIB"; then
9239 echo "$ac_t""$RANLIB" 1>&6
9240 else
9241 echo "$ac_t""no" 1>&6
9242 fi
9243
9244
9245 # Extract the first word of "ar", so it can be a program name with args.
9246 set dummy ar; ac_word=$2
9247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9248 echo "configure:9249: checking for $ac_word" >&5
9249 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9250 echo $ac_n "(cached) $ac_c" 1>&6
9251 else
9252 if test -n "$AR"; then
9253 ac_cv_prog_AR="$AR" # Let the user override the test.
9254 else
9255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9256 ac_dummy="$PATH"
9257 for ac_dir in $ac_dummy; do
9258 test -z "$ac_dir" && ac_dir=.
9259 if test -f $ac_dir/$ac_word; then
9260 ac_cv_prog_AR="ar"
9261 break
9262 fi
9263 done
9264 IFS="$ac_save_ifs"
9265 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9266 fi
9267 fi
9268 AR="$ac_cv_prog_AR"
9269 if test -n "$AR"; then
9270 echo "$ac_t""$AR" 1>&6
9271 else
9272 echo "$ac_t""no" 1>&6
9273 fi
9274
9275
9276 # Find a good install program. We prefer a C program (faster),
9277 # so one script is as good as another. But avoid the broken or
9278 # incompatible versions:
9279 # SysV /etc/install, /usr/sbin/install
9280 # SunOS /usr/etc/install
9281 # IRIX /sbin/install
9282 # AIX /bin/install
9283 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9284 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9285 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9286 # ./install, which can be erroneously created by make from ./install.sh.
9287 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9288 echo "configure:9289: checking for a BSD compatible install" >&5
9289 if test -z "$INSTALL"; then
9290 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9291 echo $ac_n "(cached) $ac_c" 1>&6
9292 else
9293 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9294 for ac_dir in $PATH; do
9295 # Account for people who put trailing slashes in PATH elements.
9296 case "$ac_dir/" in
9297 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9298 *)
9299 # OSF1 and SCO ODT 3.0 have their own names for install.
9300 # Don't use installbsd from OSF since it installs stuff as root
9301 # by default.
9302 for ac_prog in ginstall scoinst install; do
9303 if test -f $ac_dir/$ac_prog; then
9304 if test $ac_prog = install &&
9305 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9306 # AIX install. It has an incompatible calling convention.
9307 :
9308 else
9309 ac_cv_path_install="$ac_dir/$ac_prog -c"
9310 break 2
9311 fi
9312 fi
9313 done
9314 ;;
9315 esac
9316 done
9317 IFS="$ac_save_IFS"
9318
9319 fi
9320 if test "${ac_cv_path_install+set}" = set; then
9321 INSTALL="$ac_cv_path_install"
9322 else
9323 # As a last resort, use the slow shell script. We don't cache a
9324 # path for INSTALL within a source directory, because that will
9325 # break other packages using the cache if that directory is
9326 # removed, or if the path is relative.
9327 INSTALL="$ac_install_sh"
9328 fi
9329 fi
9330 echo "$ac_t""$INSTALL" 1>&6
9331
9332 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9333 # It thinks the first close brace ends the variable substitution.
9334 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9335
9336 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9337
9338 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9339
9340
9341 case ${INSTALL} in
9342 /* ) # Absolute
9343 ;;
9344 *)
9345 INSTALL=`pwd`/${INSTALL} ;;
9346 esac
9347
9348
9349 case "${host}" in
9350
9351 powerpc-*-darwin* )
9352 INSTALL_PROGRAM="cp -fp"
9353 INSTALL_DATA="cp -fp"
9354 ;;
9355 *)
9356 ;;
9357 esac
9358
9359 # Extract the first word of "strip", so it can be a program name with args.
9360 set dummy strip; ac_word=$2
9361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9362 echo "configure:9363: checking for $ac_word" >&5
9363 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9364 echo $ac_n "(cached) $ac_c" 1>&6
9365 else
9366 if test -n "$STRIP"; then
9367 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9368 else
9369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9370 ac_dummy="$PATH"
9371 for ac_dir in $ac_dummy; do
9372 test -z "$ac_dir" && ac_dir=.
9373 if test -f $ac_dir/$ac_word; then
9374 ac_cv_prog_STRIP="strip"
9375 break
9376 fi
9377 done
9378 IFS="$ac_save_ifs"
9379 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9380 fi
9381 fi
9382 STRIP="$ac_cv_prog_STRIP"
9383 if test -n "$STRIP"; then
9384 echo "$ac_t""$STRIP" 1>&6
9385 else
9386 echo "$ac_t""no" 1>&6
9387 fi
9388
9389
9390 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9391 echo "configure:9392: checking if make is GNU make" >&5
9392 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9393 echo $ac_n "(cached) $ac_c" 1>&6
9394 else
9395
9396 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9397 egrep -s GNU > /dev/null); then
9398 wx_cv_prog_makeisgnu="yes"
9399 else
9400 wx_cv_prog_makeisgnu="no"
9401 fi
9402
9403 fi
9404
9405 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9406
9407 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9408 IF_GNU_MAKE=""
9409 else
9410 IF_GNU_MAKE="#"
9411 fi
9412
9413
9414
9415 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9416 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9417 echo "configure:9418: checking if make supports VPATH" >&5
9418 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9419 echo $ac_n "(cached) $ac_c" 1>&6
9420 else
9421
9422 cat - << EOF > confMake
9423 check : file
9424 cp \$? \$@
9425 cp \$? final_file
9426 EOF
9427
9428 if test ! -d sub ; then
9429 mkdir sub
9430 fi
9431 echo dummy > sub/file
9432 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9433 RESULT=$?
9434 rm -f sub/file check final_file confMake
9435 rmdir sub
9436 if test "$RESULT" = 0; then
9437 wx_cv_prog_makevpath="yes"
9438 else
9439 wx_cv_prog_makevpath="no"
9440 fi
9441
9442 fi
9443
9444 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9445
9446 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9447 { echo "configure: error:
9448 You need a make-utility that is able to use the variable
9449 VPATH correctly.
9450 If your version of make does not support VPATH correctly,
9451 please install GNU-make (possibly as gmake), and start
9452 configure with the following command:
9453 export MAKE=gmake; ./configure for sh-type shells
9454 setenv MAKE gmake; ./configure for csh-type shells
9455 Also please do remember to use gmake in this case every time
9456 you are trying to compile.
9457 " 1>&2; exit 1; }
9458 fi fi
9459 for ac_prog in 'bison -y' byacc
9460 do
9461 # Extract the first word of "$ac_prog", so it can be a program name with args.
9462 set dummy $ac_prog; ac_word=$2
9463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9464 echo "configure:9465: checking for $ac_word" >&5
9465 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9466 echo $ac_n "(cached) $ac_c" 1>&6
9467 else
9468 if test -n "$YACC"; then
9469 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9470 else
9471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9472 ac_dummy="$PATH"
9473 for ac_dir in $ac_dummy; do
9474 test -z "$ac_dir" && ac_dir=.
9475 if test -f $ac_dir/$ac_word; then
9476 ac_cv_prog_YACC="$ac_prog"
9477 break
9478 fi
9479 done
9480 IFS="$ac_save_ifs"
9481 fi
9482 fi
9483 YACC="$ac_cv_prog_YACC"
9484 if test -n "$YACC"; then
9485 echo "$ac_t""$YACC" 1>&6
9486 else
9487 echo "$ac_t""no" 1>&6
9488 fi
9489
9490 test -n "$YACC" && break
9491 done
9492 test -n "$YACC" || YACC="yacc"
9493
9494
9495 # Extract the first word of "flex", so it can be a program name with args.
9496 set dummy flex; ac_word=$2
9497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9498 echo "configure:9499: checking for $ac_word" >&5
9499 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9500 echo $ac_n "(cached) $ac_c" 1>&6
9501 else
9502 if test -n "$LEX"; then
9503 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9504 else
9505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9506 ac_dummy="$PATH"
9507 for ac_dir in $ac_dummy; do
9508 test -z "$ac_dir" && ac_dir=.
9509 if test -f $ac_dir/$ac_word; then
9510 ac_cv_prog_LEX="flex"
9511 break
9512 fi
9513 done
9514 IFS="$ac_save_ifs"
9515 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9516 fi
9517 fi
9518 LEX="$ac_cv_prog_LEX"
9519 if test -n "$LEX"; then
9520 echo "$ac_t""$LEX" 1>&6
9521 else
9522 echo "$ac_t""no" 1>&6
9523 fi
9524
9525 if test -z "$LEXLIB"
9526 then
9527 case "$LEX" in
9528 flex*) ac_lib=fl ;;
9529 *) ac_lib=l ;;
9530 esac
9531 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9532 echo "configure:9533: checking for yywrap in -l$ac_lib" >&5
9533 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9534 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9535 echo $ac_n "(cached) $ac_c" 1>&6
9536 else
9537 ac_save_LIBS="$LIBS"
9538 LIBS="-l$ac_lib $LIBS"
9539 cat > conftest.$ac_ext <<EOF
9540 #line 9541 "configure"
9541 #include "confdefs.h"
9542 /* Override any gcc2 internal prototype to avoid an error. */
9543 /* We use char because int might match the return type of a gcc2
9544 builtin and then its argument prototype would still apply. */
9545 char yywrap();
9546
9547 int main() {
9548 yywrap()
9549 ; return 0; }
9550 EOF
9551 if { (eval echo configure:9552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9552 rm -rf conftest*
9553 eval "ac_cv_lib_$ac_lib_var=yes"
9554 else
9555 echo "configure: failed program was:" >&5
9556 cat conftest.$ac_ext >&5
9557 rm -rf conftest*
9558 eval "ac_cv_lib_$ac_lib_var=no"
9559 fi
9560 rm -f conftest*
9561 LIBS="$ac_save_LIBS"
9562
9563 fi
9564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9565 echo "$ac_t""yes" 1>&6
9566 LEXLIB="-l$ac_lib"
9567 else
9568 echo "$ac_t""no" 1>&6
9569 fi
9570
9571 fi
9572
9573
9574 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9575 echo "configure:9576: checking whether ln -s works" >&5
9576 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9577 echo $ac_n "(cached) $ac_c" 1>&6
9578 else
9579 rm -f conftestdata
9580 if ln -s X conftestdata 2>/dev/null
9581 then
9582 rm -f conftestdata
9583 ac_cv_prog_LN_S="ln -s"
9584 else
9585 ac_cv_prog_LN_S=ln
9586 fi
9587 fi
9588 LN_S="$ac_cv_prog_LN_S"
9589 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9590 echo "$ac_t""yes" 1>&6
9591 else
9592 echo "$ac_t""no" 1>&6
9593 fi
9594
9595
9596
9597 if test "$wxUSE_MAC" != 1; then
9598 for ac_hdr in strings.h
9599 do
9600 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9601 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9602 echo "configure:9603: checking for $ac_hdr" >&5
9603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9604 echo $ac_n "(cached) $ac_c" 1>&6
9605 else
9606 cat > conftest.$ac_ext <<EOF
9607 #line 9608 "configure"
9608 #include "confdefs.h"
9609 #include <$ac_hdr>
9610 EOF
9611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9612 { (eval echo configure:9613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9614 if test -z "$ac_err"; then
9615 rm -rf conftest*
9616 eval "ac_cv_header_$ac_safe=yes"
9617 else
9618 echo "$ac_err" >&5
9619 echo "configure: failed program was:" >&5
9620 cat conftest.$ac_ext >&5
9621 rm -rf conftest*
9622 eval "ac_cv_header_$ac_safe=no"
9623 fi
9624 rm -f conftest*
9625 fi
9626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9627 echo "$ac_t""yes" 1>&6
9628 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9629 cat >> confdefs.h <<EOF
9630 #define $ac_tr_hdr 1
9631 EOF
9632
9633 else
9634 echo "$ac_t""no" 1>&6
9635 fi
9636 done
9637
9638 fi
9639
9640 for ac_hdr in stdlib.h
9641 do
9642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9644 echo "configure:9645: checking for $ac_hdr" >&5
9645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9646 echo $ac_n "(cached) $ac_c" 1>&6
9647 else
9648 cat > conftest.$ac_ext <<EOF
9649 #line 9650 "configure"
9650 #include "confdefs.h"
9651 #include <$ac_hdr>
9652 EOF
9653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9654 { (eval echo configure:9655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9656 if test -z "$ac_err"; then
9657 rm -rf conftest*
9658 eval "ac_cv_header_$ac_safe=yes"
9659 else
9660 echo "$ac_err" >&5
9661 echo "configure: failed program was:" >&5
9662 cat conftest.$ac_ext >&5
9663 rm -rf conftest*
9664 eval "ac_cv_header_$ac_safe=no"
9665 fi
9666 rm -f conftest*
9667 fi
9668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9669 echo "$ac_t""yes" 1>&6
9670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9671 cat >> confdefs.h <<EOF
9672 #define $ac_tr_hdr 1
9673 EOF
9674
9675 else
9676 echo "$ac_t""no" 1>&6
9677 fi
9678 done
9679
9680 for ac_hdr in malloc.h
9681 do
9682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9684 echo "configure:9685: checking for $ac_hdr" >&5
9685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9687 else
9688 cat > conftest.$ac_ext <<EOF
9689 #line 9690 "configure"
9690 #include "confdefs.h"
9691 #include <$ac_hdr>
9692 EOF
9693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9694 { (eval echo configure:9695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9696 if test -z "$ac_err"; then
9697 rm -rf conftest*
9698 eval "ac_cv_header_$ac_safe=yes"
9699 else
9700 echo "$ac_err" >&5
9701 echo "configure: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 rm -rf conftest*
9704 eval "ac_cv_header_$ac_safe=no"
9705 fi
9706 rm -f conftest*
9707 fi
9708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9709 echo "$ac_t""yes" 1>&6
9710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9711 cat >> confdefs.h <<EOF
9712 #define $ac_tr_hdr 1
9713 EOF
9714
9715 else
9716 echo "$ac_t""no" 1>&6
9717 fi
9718 done
9719
9720 for ac_hdr in unistd.h
9721 do
9722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9724 echo "configure:9725: checking for $ac_hdr" >&5
9725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9726 echo $ac_n "(cached) $ac_c" 1>&6
9727 else
9728 cat > conftest.$ac_ext <<EOF
9729 #line 9730 "configure"
9730 #include "confdefs.h"
9731 #include <$ac_hdr>
9732 EOF
9733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9734 { (eval echo configure:9735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9736 if test -z "$ac_err"; then
9737 rm -rf conftest*
9738 eval "ac_cv_header_$ac_safe=yes"
9739 else
9740 echo "$ac_err" >&5
9741 echo "configure: failed program was:" >&5
9742 cat conftest.$ac_ext >&5
9743 rm -rf conftest*
9744 eval "ac_cv_header_$ac_safe=no"
9745 fi
9746 rm -f conftest*
9747 fi
9748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9749 echo "$ac_t""yes" 1>&6
9750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9751 cat >> confdefs.h <<EOF
9752 #define $ac_tr_hdr 1
9753 EOF
9754
9755 else
9756 echo "$ac_t""no" 1>&6
9757 fi
9758 done
9759
9760 for ac_hdr in wchar.h
9761 do
9762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9764 echo "configure:9765: checking for $ac_hdr" >&5
9765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9766 echo $ac_n "(cached) $ac_c" 1>&6
9767 else
9768 cat > conftest.$ac_ext <<EOF
9769 #line 9770 "configure"
9770 #include "confdefs.h"
9771 #include <$ac_hdr>
9772 EOF
9773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9774 { (eval echo configure:9775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9776 if test -z "$ac_err"; then
9777 rm -rf conftest*
9778 eval "ac_cv_header_$ac_safe=yes"
9779 else
9780 echo "$ac_err" >&5
9781 echo "configure: failed program was:" >&5
9782 cat conftest.$ac_ext >&5
9783 rm -rf conftest*
9784 eval "ac_cv_header_$ac_safe=no"
9785 fi
9786 rm -f conftest*
9787 fi
9788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9789 echo "$ac_t""yes" 1>&6
9790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9791 cat >> confdefs.h <<EOF
9792 #define $ac_tr_hdr 1
9793 EOF
9794
9795 else
9796 echo "$ac_t""no" 1>&6
9797 fi
9798 done
9799
9800
9801 if test "$ac_cv_header_wchar_h" != "yes"; then
9802 for ac_hdr in wcstr.h
9803 do
9804 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9806 echo "configure:9807: checking for $ac_hdr" >&5
9807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9808 echo $ac_n "(cached) $ac_c" 1>&6
9809 else
9810 cat > conftest.$ac_ext <<EOF
9811 #line 9812 "configure"
9812 #include "confdefs.h"
9813 #include <$ac_hdr>
9814 EOF
9815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9816 { (eval echo configure:9817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9818 if test -z "$ac_err"; then
9819 rm -rf conftest*
9820 eval "ac_cv_header_$ac_safe=yes"
9821 else
9822 echo "$ac_err" >&5
9823 echo "configure: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9825 rm -rf conftest*
9826 eval "ac_cv_header_$ac_safe=no"
9827 fi
9828 rm -f conftest*
9829 fi
9830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9831 echo "$ac_t""yes" 1>&6
9832 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9833 cat >> confdefs.h <<EOF
9834 #define $ac_tr_hdr 1
9835 EOF
9836
9837 else
9838 echo "$ac_t""no" 1>&6
9839 fi
9840 done
9841
9842 fi
9843
9844 for ac_hdr in fnmatch.h
9845 do
9846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9848 echo "configure:9849: checking for $ac_hdr" >&5
9849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9850 echo $ac_n "(cached) $ac_c" 1>&6
9851 else
9852 cat > conftest.$ac_ext <<EOF
9853 #line 9854 "configure"
9854 #include "confdefs.h"
9855 #include <$ac_hdr>
9856 EOF
9857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9858 { (eval echo configure:9859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9860 if test -z "$ac_err"; then
9861 rm -rf conftest*
9862 eval "ac_cv_header_$ac_safe=yes"
9863 else
9864 echo "$ac_err" >&5
9865 echo "configure: failed program was:" >&5
9866 cat conftest.$ac_ext >&5
9867 rm -rf conftest*
9868 eval "ac_cv_header_$ac_safe=no"
9869 fi
9870 rm -f conftest*
9871 fi
9872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9873 echo "$ac_t""yes" 1>&6
9874 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9875 cat >> confdefs.h <<EOF
9876 #define $ac_tr_hdr 1
9877 EOF
9878
9879 else
9880 echo "$ac_t""no" 1>&6
9881 fi
9882 done
9883
9884
9885 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9886 for ac_func in fnmatch
9887 do
9888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9889 echo "configure:9890: checking for $ac_func" >&5
9890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9891 echo $ac_n "(cached) $ac_c" 1>&6
9892 else
9893 cat > conftest.$ac_ext <<EOF
9894 #line 9895 "configure"
9895 #include "confdefs.h"
9896 /* System header to define __stub macros and hopefully few prototypes,
9897 which can conflict with char $ac_func(); below. */
9898 #include <assert.h>
9899 /* Override any gcc2 internal prototype to avoid an error. */
9900 /* We use char because int might match the return type of a gcc2
9901 builtin and then its argument prototype would still apply. */
9902 char $ac_func();
9903
9904 int main() {
9905
9906 /* The GNU C library defines this for functions which it implements
9907 to always fail with ENOSYS. Some functions are actually named
9908 something starting with __ and the normal name is an alias. */
9909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9910 choke me
9911 #else
9912 $ac_func();
9913 #endif
9914
9915 ; return 0; }
9916 EOF
9917 if { (eval echo configure:9918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9918 rm -rf conftest*
9919 eval "ac_cv_func_$ac_func=yes"
9920 else
9921 echo "configure: failed program was:" >&5
9922 cat conftest.$ac_ext >&5
9923 rm -rf conftest*
9924 eval "ac_cv_func_$ac_func=no"
9925 fi
9926 rm -f conftest*
9927 fi
9928
9929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9930 echo "$ac_t""yes" 1>&6
9931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9932 cat >> confdefs.h <<EOF
9933 #define $ac_tr_func 1
9934 EOF
9935
9936 else
9937 echo "$ac_t""no" 1>&6
9938 fi
9939 done
9940
9941 fi
9942
9943 for ac_hdr in langinfo.h
9944 do
9945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9947 echo "configure:9948: checking for $ac_hdr" >&5
9948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9949 echo $ac_n "(cached) $ac_c" 1>&6
9950 else
9951 cat > conftest.$ac_ext <<EOF
9952 #line 9953 "configure"
9953 #include "confdefs.h"
9954 #include <$ac_hdr>
9955 EOF
9956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9957 { (eval echo configure:9958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9959 if test -z "$ac_err"; then
9960 rm -rf conftest*
9961 eval "ac_cv_header_$ac_safe=yes"
9962 else
9963 echo "$ac_err" >&5
9964 echo "configure: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9966 rm -rf conftest*
9967 eval "ac_cv_header_$ac_safe=no"
9968 fi
9969 rm -f conftest*
9970 fi
9971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9972 echo "$ac_t""yes" 1>&6
9973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9974 cat >> confdefs.h <<EOF
9975 #define $ac_tr_hdr 1
9976 EOF
9977
9978 else
9979 echo "$ac_t""no" 1>&6
9980 fi
9981 done
9982
9983
9984 if test "$wxUSE_GUI" = "yes"; then
9985 if test "$wxUSE_UNIX" = "yes"; then
9986 for ac_hdr in X11/XKBlib.h
9987 do
9988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9990 echo "configure:9991: checking for $ac_hdr" >&5
9991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9992 echo $ac_n "(cached) $ac_c" 1>&6
9993 else
9994 cat > conftest.$ac_ext <<EOF
9995 #line 9996 "configure"
9996 #include "confdefs.h"
9997 #include <$ac_hdr>
9998 EOF
9999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10000 { (eval echo configure:10001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10002 if test -z "$ac_err"; then
10003 rm -rf conftest*
10004 eval "ac_cv_header_$ac_safe=yes"
10005 else
10006 echo "$ac_err" >&5
10007 echo "configure: failed program was:" >&5
10008 cat conftest.$ac_ext >&5
10009 rm -rf conftest*
10010 eval "ac_cv_header_$ac_safe=no"
10011 fi
10012 rm -f conftest*
10013 fi
10014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10015 echo "$ac_t""yes" 1>&6
10016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10017 cat >> confdefs.h <<EOF
10018 #define $ac_tr_hdr 1
10019 EOF
10020
10021 else
10022 echo "$ac_t""no" 1>&6
10023 fi
10024 done
10025
10026 fi
10027 fi
10028
10029
10030 echo $ac_n "checking for working const""... $ac_c" 1>&6
10031 echo "configure:10032: checking for working const" >&5
10032 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10033 echo $ac_n "(cached) $ac_c" 1>&6
10034 else
10035 cat > conftest.$ac_ext <<EOF
10036 #line 10037 "configure"
10037 #include "confdefs.h"
10038
10039 int main() {
10040
10041 /* Ultrix mips cc rejects this. */
10042 typedef int charset[2]; const charset x;
10043 /* SunOS 4.1.1 cc rejects this. */
10044 char const *const *ccp;
10045 char **p;
10046 /* NEC SVR4.0.2 mips cc rejects this. */
10047 struct point {int x, y;};
10048 static struct point const zero = {0,0};
10049 /* AIX XL C 1.02.0.0 rejects this.
10050 It does not let you subtract one const X* pointer from another in an arm
10051 of an if-expression whose if-part is not a constant expression */
10052 const char *g = "string";
10053 ccp = &g + (g ? g-g : 0);
10054 /* HPUX 7.0 cc rejects these. */
10055 ++ccp;
10056 p = (char**) ccp;
10057 ccp = (char const *const *) p;
10058 { /* SCO 3.2v4 cc rejects this. */
10059 char *t;
10060 char const *s = 0 ? (char *) 0 : (char const *) 0;
10061
10062 *t++ = 0;
10063 }
10064 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10065 int x[] = {25, 17};
10066 const int *foo = &x[0];
10067 ++foo;
10068 }
10069 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10070 typedef const int *iptr;
10071 iptr p = 0;
10072 ++p;
10073 }
10074 { /* AIX XL C 1.02.0.0 rejects this saying
10075 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10076 struct s { int j; const int *ap[3]; };
10077 struct s *b; b->j = 5;
10078 }
10079 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10080 const int foo = 10;
10081 }
10082
10083 ; return 0; }
10084 EOF
10085 if { (eval echo configure:10086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10086 rm -rf conftest*
10087 ac_cv_c_const=yes
10088 else
10089 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10091 rm -rf conftest*
10092 ac_cv_c_const=no
10093 fi
10094 rm -f conftest*
10095 fi
10096
10097 echo "$ac_t""$ac_cv_c_const" 1>&6
10098 if test $ac_cv_c_const = no; then
10099 cat >> confdefs.h <<\EOF
10100 #define const
10101 EOF
10102
10103 fi
10104
10105 echo $ac_n "checking for inline""... $ac_c" 1>&6
10106 echo "configure:10107: checking for inline" >&5
10107 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10108 echo $ac_n "(cached) $ac_c" 1>&6
10109 else
10110 ac_cv_c_inline=no
10111 for ac_kw in inline __inline__ __inline; do
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115
10116 int main() {
10117 } $ac_kw foo() {
10118 ; return 0; }
10119 EOF
10120 if { (eval echo configure:10121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10121 rm -rf conftest*
10122 ac_cv_c_inline=$ac_kw; break
10123 else
10124 echo "configure: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10126 fi
10127 rm -f conftest*
10128 done
10129
10130 fi
10131
10132 echo "$ac_t""$ac_cv_c_inline" 1>&6
10133 case "$ac_cv_c_inline" in
10134 inline | yes) ;;
10135 no) cat >> confdefs.h <<\EOF
10136 #define inline
10137 EOF
10138 ;;
10139 *) cat >> confdefs.h <<EOF
10140 #define inline $ac_cv_c_inline
10141 EOF
10142 ;;
10143 esac
10144
10145
10146 echo $ac_n "checking size of char""... $ac_c" 1>&6
10147 echo "configure:10148: checking size of char" >&5
10148 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10149 echo $ac_n "(cached) $ac_c" 1>&6
10150 else
10151 if test "$cross_compiling" = yes; then
10152 ac_cv_sizeof_char=1
10153 else
10154 cat > conftest.$ac_ext <<EOF
10155 #line 10156 "configure"
10156 #include "confdefs.h"
10157 #include <stdio.h>
10158 #include <sys/types.h>
10159 main()
10160 {
10161 FILE *f=fopen("conftestval", "w");
10162 if (!f) exit(1);
10163 fprintf(f, "%d\n", sizeof(char));
10164 exit(0);
10165 }
10166 EOF
10167 if { (eval echo configure:10168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10168 then
10169 ac_cv_sizeof_char=`cat conftestval`
10170 else
10171 echo "configure: failed program was:" >&5
10172 cat conftest.$ac_ext >&5
10173 rm -fr conftest*
10174 ac_cv_sizeof_char=0
10175 fi
10176 rm -fr conftest*
10177 fi
10178
10179 fi
10180 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10181 cat >> confdefs.h <<EOF
10182 #define SIZEOF_CHAR $ac_cv_sizeof_char
10183 EOF
10184
10185
10186 echo $ac_n "checking size of short""... $ac_c" 1>&6
10187 echo "configure:10188: checking size of short" >&5
10188 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10189 echo $ac_n "(cached) $ac_c" 1>&6
10190 else
10191 if test "$cross_compiling" = yes; then
10192 ac_cv_sizeof_short=2
10193 else
10194 cat > conftest.$ac_ext <<EOF
10195 #line 10196 "configure"
10196 #include "confdefs.h"
10197 #include <stdio.h>
10198 #include <sys/types.h>
10199 main()
10200 {
10201 FILE *f=fopen("conftestval", "w");
10202 if (!f) exit(1);
10203 fprintf(f, "%d\n", sizeof(short));
10204 exit(0);
10205 }
10206 EOF
10207 if { (eval echo configure:10208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10208 then
10209 ac_cv_sizeof_short=`cat conftestval`
10210 else
10211 echo "configure: failed program was:" >&5
10212 cat conftest.$ac_ext >&5
10213 rm -fr conftest*
10214 ac_cv_sizeof_short=0
10215 fi
10216 rm -fr conftest*
10217 fi
10218
10219 fi
10220 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10221 cat >> confdefs.h <<EOF
10222 #define SIZEOF_SHORT $ac_cv_sizeof_short
10223 EOF
10224
10225
10226 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10227 echo "configure:10228: checking size of void *" >&5
10228 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10229 echo $ac_n "(cached) $ac_c" 1>&6
10230 else
10231 if test "$cross_compiling" = yes; then
10232 ac_cv_sizeof_void_p=4
10233 else
10234 cat > conftest.$ac_ext <<EOF
10235 #line 10236 "configure"
10236 #include "confdefs.h"
10237 #include <stdio.h>
10238 #include <sys/types.h>
10239 main()
10240 {
10241 FILE *f=fopen("conftestval", "w");
10242 if (!f) exit(1);
10243 fprintf(f, "%d\n", sizeof(void *));
10244 exit(0);
10245 }
10246 EOF
10247 if { (eval echo configure:10248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10248 then
10249 ac_cv_sizeof_void_p=`cat conftestval`
10250 else
10251 echo "configure: failed program was:" >&5
10252 cat conftest.$ac_ext >&5
10253 rm -fr conftest*
10254 ac_cv_sizeof_void_p=0
10255 fi
10256 rm -fr conftest*
10257 fi
10258
10259 fi
10260 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10261 cat >> confdefs.h <<EOF
10262 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10263 EOF
10264
10265
10266 echo $ac_n "checking size of int""... $ac_c" 1>&6
10267 echo "configure:10268: checking size of int" >&5
10268 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10269 echo $ac_n "(cached) $ac_c" 1>&6
10270 else
10271 if test "$cross_compiling" = yes; then
10272 ac_cv_sizeof_int=4
10273 else
10274 cat > conftest.$ac_ext <<EOF
10275 #line 10276 "configure"
10276 #include "confdefs.h"
10277 #include <stdio.h>
10278 #include <sys/types.h>
10279 main()
10280 {
10281 FILE *f=fopen("conftestval", "w");
10282 if (!f) exit(1);
10283 fprintf(f, "%d\n", sizeof(int));
10284 exit(0);
10285 }
10286 EOF
10287 if { (eval echo configure:10288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10288 then
10289 ac_cv_sizeof_int=`cat conftestval`
10290 else
10291 echo "configure: failed program was:" >&5
10292 cat conftest.$ac_ext >&5
10293 rm -fr conftest*
10294 ac_cv_sizeof_int=0
10295 fi
10296 rm -fr conftest*
10297 fi
10298
10299 fi
10300 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10301 cat >> confdefs.h <<EOF
10302 #define SIZEOF_INT $ac_cv_sizeof_int
10303 EOF
10304
10305
10306 echo $ac_n "checking size of long""... $ac_c" 1>&6
10307 echo "configure:10308: checking size of long" >&5
10308 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
10310 else
10311 if test "$cross_compiling" = yes; then
10312 ac_cv_sizeof_long=4
10313 else
10314 cat > conftest.$ac_ext <<EOF
10315 #line 10316 "configure"
10316 #include "confdefs.h"
10317 #include <stdio.h>
10318 #include <sys/types.h>
10319 main()
10320 {
10321 FILE *f=fopen("conftestval", "w");
10322 if (!f) exit(1);
10323 fprintf(f, "%d\n", sizeof(long));
10324 exit(0);
10325 }
10326 EOF
10327 if { (eval echo configure:10328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10328 then
10329 ac_cv_sizeof_long=`cat conftestval`
10330 else
10331 echo "configure: failed program was:" >&5
10332 cat conftest.$ac_ext >&5
10333 rm -fr conftest*
10334 ac_cv_sizeof_long=0
10335 fi
10336 rm -fr conftest*
10337 fi
10338
10339 fi
10340 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10341 cat >> confdefs.h <<EOF
10342 #define SIZEOF_LONG $ac_cv_sizeof_long
10343 EOF
10344
10345
10346
10347 case "${host}" in
10348 arm-*-linux* )
10349 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10350 echo "configure:10351: checking size of long long" >&5
10351 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+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_long_long=8
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(long long));
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_long_long=`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_long_long=0
10378 fi
10379 rm -fr conftest*
10380 fi
10381
10382 fi
10383 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10384 cat >> confdefs.h <<EOF
10385 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10386 EOF
10387
10388
10389 ;;
10390 * )
10391 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10392 echo "configure:10393: checking size of long long" >&5
10393 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10394 echo $ac_n "(cached) $ac_c" 1>&6
10395 else
10396 if test "$cross_compiling" = yes; then
10397 ac_cv_sizeof_long_long=0
10398 else
10399 cat > conftest.$ac_ext <<EOF
10400 #line 10401 "configure"
10401 #include "confdefs.h"
10402 #include <stdio.h>
10403 #include <sys/types.h>
10404 main()
10405 {
10406 FILE *f=fopen("conftestval", "w");
10407 if (!f) exit(1);
10408 fprintf(f, "%d\n", sizeof(long long));
10409 exit(0);
10410 }
10411 EOF
10412 if { (eval echo configure:10413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10413 then
10414 ac_cv_sizeof_long_long=`cat conftestval`
10415 else
10416 echo "configure: failed program was:" >&5
10417 cat conftest.$ac_ext >&5
10418 rm -fr conftest*
10419 ac_cv_sizeof_long_long=0
10420 fi
10421 rm -fr conftest*
10422 fi
10423
10424 fi
10425 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10426 cat >> confdefs.h <<EOF
10427 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10428 EOF
10429
10430
10431 esac
10432
10433 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10434 echo "configure:10435: checking size of wchar_t" >&5
10435 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10436 echo $ac_n "(cached) $ac_c" 1>&6
10437 else
10438
10439 if test "$cross_compiling" = yes; then
10440 wx_cv_sizeof_wchar_t=4
10441
10442 else
10443 cat > conftest.$ac_ext <<EOF
10444 #line 10445 "configure"
10445 #include "confdefs.h"
10446
10447 #ifdef HAVE_WCHAR_H
10448 # ifdef __CYGWIN__
10449 # include <stddef.h>
10450 # endif
10451 # include <wchar.h>
10452 #endif
10453 #ifdef HAVE_STDLIB_H
10454 # include <stdlib.h>
10455 #endif
10456 #include <stdio.h>
10457 int main()
10458 {
10459 FILE *f=fopen("conftestval", "w");
10460 if (!f) exit(1);
10461 fprintf(f, "%i", sizeof(wchar_t));
10462 exit(0);
10463 }
10464
10465 EOF
10466 if { (eval echo configure:10467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10467 then
10468 wx_cv_sizeof_wchar_t=`cat conftestval`
10469 else
10470 echo "configure: failed program was:" >&5
10471 cat conftest.$ac_ext >&5
10472 rm -fr conftest*
10473 wx_cv_sizeof_wchar_t=0
10474 fi
10475 rm -fr conftest*
10476 fi
10477
10478
10479 fi
10480
10481 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10482
10483 cat >> confdefs.h <<EOF
10484 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10485 EOF
10486
10487
10488 # Check whether --enable-largefile or --disable-largefile was given.
10489 if test "${enable_largefile+set}" = set; then
10490 enableval="$enable_largefile"
10491 :
10492 fi
10493
10494 if test "$enable_largefile" != no; then
10495 wx_largefile=no
10496
10497 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10498 echo "configure:10499: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10499 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10500 echo $ac_n "(cached) $ac_c" 1>&6
10501 else
10502
10503 cat > conftest.$ac_ext <<EOF
10504 #line 10505 "configure"
10505 #include "confdefs.h"
10506 #define _FILE_OFFSET_BITS 64
10507 #include <sys/types.h>
10508 int main() {
10509 typedef struct {
10510 unsigned int field: sizeof(off_t) == 8;
10511 } wxlf;
10512
10513 ; return 0; }
10514 EOF
10515 if { (eval echo configure:10516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10516 rm -rf conftest*
10517 ac_cv_sys_file_offset_bits=64
10518 else
10519 echo "configure: failed program was:" >&5
10520 cat conftest.$ac_ext >&5
10521 rm -rf conftest*
10522 ac_cv_sys_file_offset_bits=no
10523 fi
10524 rm -f conftest*
10525
10526
10527 fi
10528
10529 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10530
10531 if test "$ac_cv_sys_file_offset_bits" != no; then
10532 wx_largefile=yes
10533 cat >> confdefs.h <<EOF
10534 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10535 EOF
10536
10537 fi
10538
10539 if test "x$wx_largefile" != "xyes"; then
10540
10541 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10542 echo "configure:10543: checking for _LARGE_FILES value needed for large files" >&5
10543 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10544 echo $ac_n "(cached) $ac_c" 1>&6
10545 else
10546
10547 cat > conftest.$ac_ext <<EOF
10548 #line 10549 "configure"
10549 #include "confdefs.h"
10550 #define _LARGE_FILES 1
10551 #include <sys/types.h>
10552 int main() {
10553 typedef struct {
10554 unsigned int field: sizeof(off_t) == 8;
10555 } wxlf;
10556
10557 ; return 0; }
10558 EOF
10559 if { (eval echo configure:10560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10560 rm -rf conftest*
10561 ac_cv_sys_large_files=1
10562 else
10563 echo "configure: failed program was:" >&5
10564 cat conftest.$ac_ext >&5
10565 rm -rf conftest*
10566 ac_cv_sys_large_files=no
10567 fi
10568 rm -f conftest*
10569
10570
10571 fi
10572
10573 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10574
10575 if test "$ac_cv_sys_large_files" != no; then
10576 wx_largefile=yes
10577 cat >> confdefs.h <<EOF
10578 #define _LARGE_FILES $ac_cv_sys_large_files
10579 EOF
10580
10581 fi
10582
10583 fi
10584
10585 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10586 echo "configure:10587: checking if large file support is available" >&5
10587 if test "x$wx_largefile" = "xyes"; then
10588 cat >> confdefs.h <<\EOF
10589 #define HAVE_LARGEFILE_SUPPORT 1
10590 EOF
10591
10592 fi
10593 echo "$ac_t""$wx_largefile" 1>&6
10594 fi
10595
10596
10597 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10598 echo "configure:10599: checking whether byte ordering is bigendian" >&5
10599 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10600 echo $ac_n "(cached) $ac_c" 1>&6
10601 else
10602 ac_cv_c_bigendian=unknown
10603 # See if sys/param.h defines the BYTE_ORDER macro.
10604 cat > conftest.$ac_ext <<EOF
10605 #line 10606 "configure"
10606 #include "confdefs.h"
10607 #include <sys/types.h>
10608 #include <sys/param.h>
10609 int main() {
10610
10611 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10612 bogus endian macros
10613 #endif
10614 ; return 0; }
10615 EOF
10616 if { (eval echo configure:10617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10617 rm -rf conftest*
10618 # It does; now see whether it defined to BIG_ENDIAN or not.
10619 cat > conftest.$ac_ext <<EOF
10620 #line 10621 "configure"
10621 #include "confdefs.h"
10622 #include <sys/types.h>
10623 #include <sys/param.h>
10624 int main() {
10625
10626 #if BYTE_ORDER != BIG_ENDIAN
10627 not big endian
10628 #endif
10629 ; return 0; }
10630 EOF
10631 if { (eval echo configure:10632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10632 rm -rf conftest*
10633 ac_cv_c_bigendian=yes
10634 else
10635 echo "configure: failed program was:" >&5
10636 cat conftest.$ac_ext >&5
10637 rm -rf conftest*
10638 ac_cv_c_bigendian=no
10639 fi
10640 rm -f conftest*
10641 else
10642 echo "configure: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10644 fi
10645 rm -f conftest*
10646 if test $ac_cv_c_bigendian = unknown; then
10647 if test "$cross_compiling" = yes; then
10648 ac_cv_c_bigendian=unknown
10649 else
10650 cat > conftest.$ac_ext <<EOF
10651 #line 10652 "configure"
10652 #include "confdefs.h"
10653 main () {
10654 /* Are we little or big endian? From Harbison&Steele. */
10655 union
10656 {
10657 long l;
10658 char c[sizeof (long)];
10659 } u;
10660 u.l = 1;
10661 exit (u.c[sizeof (long) - 1] == 1);
10662 }
10663 EOF
10664 if { (eval echo configure:10665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10665 then
10666 ac_cv_c_bigendian=no
10667 else
10668 echo "configure: failed program was:" >&5
10669 cat conftest.$ac_ext >&5
10670 rm -fr conftest*
10671 ac_cv_c_bigendian=yes
10672 fi
10673 rm -fr conftest*
10674 fi
10675
10676 fi
10677 fi
10678
10679 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10680 if test $ac_cv_c_bigendian = unknown; then
10681 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
10682 fi
10683 if test $ac_cv_c_bigendian = yes; then
10684 cat >> confdefs.h <<\EOF
10685 #define WORDS_BIGENDIAN 1
10686 EOF
10687
10688 fi
10689
10690
10691 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10692 echo "configure:10693: checking how to run the C++ preprocessor" >&5
10693 if test -z "$CXXCPP"; then
10694 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10695 echo $ac_n "(cached) $ac_c" 1>&6
10696 else
10697 ac_ext=C
10698 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10699 ac_cpp='$CXXCPP $CPPFLAGS'
10700 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10701 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10702 cross_compiling=$ac_cv_prog_cxx_cross
10703 CXXCPP="${CXX-g++} -E"
10704 cat > conftest.$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10707 #include <stdlib.h>
10708 EOF
10709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10710 { (eval echo configure:10711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10712 if test -z "$ac_err"; then
10713 :
10714 else
10715 echo "$ac_err" >&5
10716 echo "configure: failed program was:" >&5
10717 cat conftest.$ac_ext >&5
10718 rm -rf conftest*
10719 CXXCPP=/lib/cpp
10720 fi
10721 rm -f conftest*
10722 ac_cv_prog_CXXCPP="$CXXCPP"
10723 ac_ext=C
10724 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10725 ac_cpp='$CXXCPP $CPPFLAGS'
10726 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10727 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10728 cross_compiling=$ac_cv_prog_cxx_cross
10729 fi
10730 fi
10731 CXXCPP="$ac_cv_prog_CXXCPP"
10732 echo "$ac_t""$CXXCPP" 1>&6
10733
10734
10735 if test "$cross_compiling" = "yes"; then
10736 cat >> confdefs.h <<\EOF
10737 #define wxUSE_IOSTREAMH 1
10738 EOF
10739
10740 else
10741
10742 ac_ext=C
10743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10744 ac_cpp='$CXXCPP $CPPFLAGS'
10745 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10746 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10747 cross_compiling=$ac_cv_prog_cxx_cross
10748
10749
10750 for ac_hdr in iostream
10751 do
10752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10754 echo "configure:10755: checking for $ac_hdr" >&5
10755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10756 echo $ac_n "(cached) $ac_c" 1>&6
10757 else
10758 cat > conftest.$ac_ext <<EOF
10759 #line 10760 "configure"
10760 #include "confdefs.h"
10761 #include <$ac_hdr>
10762 EOF
10763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10764 { (eval echo configure:10765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10766 if test -z "$ac_err"; then
10767 rm -rf conftest*
10768 eval "ac_cv_header_$ac_safe=yes"
10769 else
10770 echo "$ac_err" >&5
10771 echo "configure: failed program was:" >&5
10772 cat conftest.$ac_ext >&5
10773 rm -rf conftest*
10774 eval "ac_cv_header_$ac_safe=no"
10775 fi
10776 rm -f conftest*
10777 fi
10778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10779 echo "$ac_t""yes" 1>&6
10780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10781 cat >> confdefs.h <<EOF
10782 #define $ac_tr_hdr 1
10783 EOF
10784
10785 else
10786 echo "$ac_t""no" 1>&6
10787 fi
10788 done
10789
10790
10791 if test "$ac_cv_header_iostream" = "yes" ; then
10792 :
10793 else
10794 cat >> confdefs.h <<\EOF
10795 #define wxUSE_IOSTREAMH 1
10796 EOF
10797
10798 fi
10799
10800 ac_ext=c
10801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10802 ac_cpp='$CPP $CPPFLAGS'
10803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10805 cross_compiling=$ac_cv_prog_cc_cross
10806
10807 fi
10808
10809
10810
10811 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10812 echo "configure:10813: checking if C++ compiler supports bool" >&5
10813 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10814 echo $ac_n "(cached) $ac_c" 1>&6
10815 else
10816
10817
10818 ac_ext=C
10819 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10820 ac_cpp='$CXXCPP $CPPFLAGS'
10821 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10822 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10823 cross_compiling=$ac_cv_prog_cxx_cross
10824
10825
10826 cat > conftest.$ac_ext <<EOF
10827 #line 10828 "configure"
10828 #include "confdefs.h"
10829
10830
10831 int main() {
10832
10833 bool b = true;
10834
10835 return 0;
10836
10837 ; return 0; }
10838 EOF
10839 if { (eval echo configure:10840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10840 rm -rf conftest*
10841
10842 wx_cv_cpp_bool=yes
10843
10844 else
10845 echo "configure: failed program was:" >&5
10846 cat conftest.$ac_ext >&5
10847 rm -rf conftest*
10848
10849 wx_cv_cpp_bool=no
10850
10851
10852 fi
10853 rm -f conftest*
10854
10855 ac_ext=c
10856 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10857 ac_cpp='$CPP $CPPFLAGS'
10858 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10859 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10860 cross_compiling=$ac_cv_prog_cc_cross
10861
10862
10863 fi
10864
10865 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10866
10867 if test "$wx_cv_cpp_bool" = "yes"; then
10868 cat >> confdefs.h <<\EOF
10869 #define HAVE_BOOL 1
10870 EOF
10871
10872 fi
10873
10874
10875
10876 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
10877 echo "configure:10878: checking if C++ compiler supports the explicit keyword" >&5
10878 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10879 echo $ac_n "(cached) $ac_c" 1>&6
10880 else
10881
10882
10883 ac_ext=C
10884 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10885 ac_cpp='$CXXCPP $CPPFLAGS'
10886 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10887 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10888 cross_compiling=$ac_cv_prog_cxx_cross
10889
10890
10891 cat > conftest.$ac_ext <<EOF
10892 #line 10893 "configure"
10893 #include "confdefs.h"
10894
10895 class Foo { public: explicit Foo(int) {} };
10896
10897 int main() {
10898
10899 return 0;
10900
10901 ; return 0; }
10902 EOF
10903 if { (eval echo configure:10904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10904 rm -rf conftest*
10905
10906 cat > conftest.$ac_ext <<EOF
10907 #line 10908 "configure"
10908 #include "confdefs.h"
10909
10910 class Foo { public: explicit Foo(int) {} };
10911 static void TakeFoo(const Foo& foo) { }
10912
10913 int main() {
10914
10915 TakeFoo(17);
10916 return 0;
10917
10918 ; return 0; }
10919 EOF
10920 if { (eval echo configure:10921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10921 rm -rf conftest*
10922 wx_cv_explicit=no
10923 else
10924 echo "configure: failed program was:" >&5
10925 cat conftest.$ac_ext >&5
10926 rm -rf conftest*
10927 wx_cv_explicit=yes
10928
10929 fi
10930 rm -f conftest*
10931
10932 else
10933 echo "configure: failed program was:" >&5
10934 cat conftest.$ac_ext >&5
10935 rm -rf conftest*
10936 wx_cv_explicit=no
10937
10938 fi
10939 rm -f conftest*
10940
10941 ac_ext=c
10942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10943 ac_cpp='$CPP $CPPFLAGS'
10944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10946 cross_compiling=$ac_cv_prog_cc_cross
10947
10948
10949 fi
10950
10951 echo "$ac_t""$wx_cv_explicit" 1>&6
10952
10953 if test "$wx_cv_explicit" = "yes"; then
10954 cat >> confdefs.h <<\EOF
10955 #define HAVE_EXPLICIT 1
10956 EOF
10957
10958 fi
10959
10960
10961
10962 SEARCH_INCLUDE="\
10963 /usr/local/include \
10964 \
10965 /usr/Motif-1.2/include \
10966 /usr/Motif-2.1/include \
10967 \
10968 /usr/include/Motif1.2 \
10969 /opt/xpm/include/X11 \
10970 /opt/GBxpm/include/ \
10971 /opt/GBxpm/X11/include/ \
10972 \
10973 /usr/Motif1.2/include \
10974 /usr/dt/include \
10975 /usr/openwin/include \
10976 \
10977 /usr/include/Xm \
10978 \
10979 /usr/X11R6/include \
10980 /usr/X11R6.4/include \
10981 /usr/X11R5/include \
10982 /usr/X11R4/include \
10983 \
10984 /usr/include/X11R6 \
10985 /usr/include/X11R5 \
10986 /usr/include/X11R4 \
10987 \
10988 /usr/local/X11R6/include \
10989 /usr/local/X11R5/include \
10990 /usr/local/X11R4/include \
10991 \
10992 /usr/local/include/X11R6 \
10993 /usr/local/include/X11R5 \
10994 /usr/local/include/X11R4 \
10995 \
10996 /usr/X11/include \
10997 /usr/include/X11 \
10998 /usr/local/X11/include \
10999 /usr/local/include/X11 \
11000 \
11001 /usr/X386/include \
11002 /usr/x386/include \
11003 /usr/XFree86/include/X11 \
11004 \
11005 X:/XFree86/include \
11006 X:/XFree86/include/X11 \
11007 \
11008 /usr/include/gtk \
11009 /usr/local/include/gtk \
11010 /usr/include/glib \
11011 /usr/local/include/glib \
11012 \
11013 /usr/include/qt \
11014 /usr/local/include/qt \
11015 \
11016 /usr/include/windows \
11017 /usr/include/wine \
11018 /usr/local/include/wine \
11019 \
11020 /usr/unsupported/include \
11021 /usr/athena/include \
11022 /usr/local/x11r5/include \
11023 /usr/lpp/Xamples/include \
11024 \
11025 /usr/openwin/share/include \
11026 \
11027 /usr/include"
11028
11029 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11030
11031
11032 cat > confcache <<\EOF
11033 # This file is a shell script that caches the results of configure
11034 # tests run on this system so they can be shared between configure
11035 # scripts and configure runs. It is not useful on other systems.
11036 # If it contains results you don't want to keep, you may remove or edit it.
11037 #
11038 # By default, configure uses ./config.cache as the cache file,
11039 # creating it if it does not exist already. You can give configure
11040 # the --cache-file=FILE option to use a different cache file; that is
11041 # what configure does when it calls configure scripts in
11042 # subdirectories, so they share the cache.
11043 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11044 # config.status only pays attention to the cache file if you give it the
11045 # --recheck option to rerun configure.
11046 #
11047 EOF
11048 # The following way of writing the cache mishandles newlines in values,
11049 # but we know of no workaround that is simple, portable, and efficient.
11050 # So, don't put newlines in cache variables' values.
11051 # Ultrix sh set writes to stderr and can't be redirected directly,
11052 # and sets the high bit in the cache file unless we assign to the vars.
11053 (set) 2>&1 |
11054 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11055 *ac_space=\ *)
11056 # `set' does not quote correctly, so add quotes (double-quote substitution
11057 # turns \\\\ into \\, and sed turns \\ into \).
11058 sed -n \
11059 -e "s/'/'\\\\''/g" \
11060 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11061 ;;
11062 *)
11063 # `set' quotes correctly as required by POSIX, so do not add quotes.
11064 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11065 ;;
11066 esac >> confcache
11067 if cmp -s $cache_file confcache; then
11068 :
11069 else
11070 if test -w $cache_file; then
11071 echo "updating cache $cache_file"
11072 cat confcache > $cache_file
11073 else
11074 echo "not updating unwritable cache $cache_file"
11075 fi
11076 fi
11077 rm -f confcache
11078
11079
11080 if test "$USE_LINUX" = 1; then
11081 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11082 echo "configure:11083: checking for glibc 2.1 or later" >&5
11083 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11084 echo $ac_n "(cached) $ac_c" 1>&6
11085 else
11086
11087 cat > conftest.$ac_ext <<EOF
11088 #line 11089 "configure"
11089 #include "confdefs.h"
11090 #include <features.h>
11091 int main() {
11092
11093 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11094 #error not glibc2.1
11095 #endif
11096
11097 ; return 0; }
11098 EOF
11099 if { (eval echo configure:11100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11100 rm -rf conftest*
11101
11102 wx_cv_lib_glibc21=yes
11103
11104 else
11105 echo "configure: failed program was:" >&5
11106 cat conftest.$ac_ext >&5
11107 rm -rf conftest*
11108
11109 wx_cv_lib_glibc21=no
11110
11111
11112 fi
11113 rm -f conftest*
11114
11115 fi
11116
11117 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11118 if test "$wx_cv_lib_glibc21" = "yes"; then
11119 cat >> confdefs.h <<\EOF
11120 #define wxHAVE_GLIBC2 1
11121 EOF
11122
11123 fi
11124 fi
11125
11126 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11127 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11128 cat >> confdefs.h <<\EOF
11129 #define _GNU_SOURCE 1
11130 EOF
11131
11132 fi
11133 fi
11134
11135
11136
11137 REGEX_INCLUDE=
11138 if test "$wxUSE_REGEX" != "no"; then
11139 cat >> confdefs.h <<\EOF
11140 #define wxUSE_REGEX 1
11141 EOF
11142
11143
11144 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11145 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11146 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11147 echo "configure:11148: checking for regex.h" >&5
11148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11149 echo $ac_n "(cached) $ac_c" 1>&6
11150 else
11151 cat > conftest.$ac_ext <<EOF
11152 #line 11153 "configure"
11153 #include "confdefs.h"
11154 #include <regex.h>
11155 EOF
11156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11157 { (eval echo configure:11158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11159 if test -z "$ac_err"; then
11160 rm -rf conftest*
11161 eval "ac_cv_header_$ac_safe=yes"
11162 else
11163 echo "$ac_err" >&5
11164 echo "configure: failed program was:" >&5
11165 cat conftest.$ac_ext >&5
11166 rm -rf conftest*
11167 eval "ac_cv_header_$ac_safe=no"
11168 fi
11169 rm -f conftest*
11170 fi
11171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11172 echo "$ac_t""yes" 1>&6
11173 for ac_func in regcomp
11174 do
11175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11176 echo "configure:11177: checking for $ac_func" >&5
11177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11178 echo $ac_n "(cached) $ac_c" 1>&6
11179 else
11180 cat > conftest.$ac_ext <<EOF
11181 #line 11182 "configure"
11182 #include "confdefs.h"
11183 /* System header to define __stub macros and hopefully few prototypes,
11184 which can conflict with char $ac_func(); below. */
11185 #include <assert.h>
11186 /* Override any gcc2 internal prototype to avoid an error. */
11187 /* We use char because int might match the return type of a gcc2
11188 builtin and then its argument prototype would still apply. */
11189 char $ac_func();
11190
11191 int main() {
11192
11193 /* The GNU C library defines this for functions which it implements
11194 to always fail with ENOSYS. Some functions are actually named
11195 something starting with __ and the normal name is an alias. */
11196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11197 choke me
11198 #else
11199 $ac_func();
11200 #endif
11201
11202 ; return 0; }
11203 EOF
11204 if { (eval echo configure:11205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11205 rm -rf conftest*
11206 eval "ac_cv_func_$ac_func=yes"
11207 else
11208 echo "configure: failed program was:" >&5
11209 cat conftest.$ac_ext >&5
11210 rm -rf conftest*
11211 eval "ac_cv_func_$ac_func=no"
11212 fi
11213 rm -f conftest*
11214 fi
11215
11216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11217 echo "$ac_t""yes" 1>&6
11218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11219 cat >> confdefs.h <<EOF
11220 #define $ac_tr_func 1
11221 EOF
11222
11223 else
11224 echo "$ac_t""no" 1>&6
11225 fi
11226 done
11227
11228 else
11229 echo "$ac_t""no" 1>&6
11230 fi
11231
11232
11233 if test "x$ac_cv_func_regcomp" != "xyes"; then
11234 if test "$wxUSE_REGEX" = "sys" ; then
11235 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11236 else
11237 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11238 wxUSE_REGEX=builtin
11239 fi
11240 else
11241 wxUSE_REGEX=sys
11242 fi
11243 fi
11244
11245 if test "$wxUSE_REGEX" = "builtin" ; then
11246 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11247 fi
11248 fi
11249
11250
11251 ZLIB_INCLUDE=
11252 ZLIB_LINK=
11253 if test "$wxUSE_ZLIB" != "no" ; then
11254 cat >> confdefs.h <<\EOF
11255 #define wxUSE_ZLIB 1
11256 EOF
11257
11258
11259 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11260 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11261 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11262 echo "configure:11263: checking for zlib.h" >&5
11263 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11264 echo $ac_n "(cached) $ac_c" 1>&6
11265 else
11266 cat > conftest.$ac_ext <<EOF
11267 #line 11268 "configure"
11268 #include "confdefs.h"
11269 #include <zlib.h>
11270 EOF
11271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11272 { (eval echo configure:11273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11274 if test -z "$ac_err"; then
11275 rm -rf conftest*
11276 eval "ac_cv_header_$ac_safe=yes"
11277 else
11278 echo "$ac_err" >&5
11279 echo "configure: failed program was:" >&5
11280 cat conftest.$ac_ext >&5
11281 rm -rf conftest*
11282 eval "ac_cv_header_$ac_safe=no"
11283 fi
11284 rm -f conftest*
11285 fi
11286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11287 echo "$ac_t""yes" 1>&6
11288 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11289 echo "configure:11290: checking for deflate in -lz" >&5
11290 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11292 echo $ac_n "(cached) $ac_c" 1>&6
11293 else
11294 ac_save_LIBS="$LIBS"
11295 LIBS="-lz $LIBS"
11296 cat > conftest.$ac_ext <<EOF
11297 #line 11298 "configure"
11298 #include "confdefs.h"
11299 /* Override any gcc2 internal prototype to avoid an error. */
11300 /* We use char because int might match the return type of a gcc2
11301 builtin and then its argument prototype would still apply. */
11302 char deflate();
11303
11304 int main() {
11305 deflate()
11306 ; return 0; }
11307 EOF
11308 if { (eval echo configure:11309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11309 rm -rf conftest*
11310 eval "ac_cv_lib_$ac_lib_var=yes"
11311 else
11312 echo "configure: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11314 rm -rf conftest*
11315 eval "ac_cv_lib_$ac_lib_var=no"
11316 fi
11317 rm -f conftest*
11318 LIBS="$ac_save_LIBS"
11319
11320 fi
11321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11322 echo "$ac_t""yes" 1>&6
11323 ZLIB_LINK=" -lz"
11324 else
11325 echo "$ac_t""no" 1>&6
11326 fi
11327
11328 else
11329 echo "$ac_t""no" 1>&6
11330 fi
11331
11332
11333 if test "x$ZLIB_LINK" = "x" ; then
11334 if test "$wxUSE_ZLIB" = "sys" ; then
11335 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11336 else
11337 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11338 wxUSE_ZLIB=builtin
11339 fi
11340 else
11341 wxUSE_ZLIB=sys
11342 fi
11343 fi
11344
11345 if test "$wxUSE_ZLIB" = "builtin" ; then
11346 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11347 fi
11348 fi
11349
11350
11351 PNG_INCLUDE=
11352 PNG_LINK=
11353 if test "$wxUSE_LIBPNG" != "no" ; then
11354 cat >> confdefs.h <<\EOF
11355 #define wxUSE_LIBPNG 1
11356 EOF
11357
11358
11359 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11360 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11361 wxUSE_LIBPNG=sys
11362 fi
11363
11364 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11365 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11366 wxUSE_LIBPNG=builtin
11367 fi
11368
11369 if test "$wxUSE_MGL" != 1 ; then
11370 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11371 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11372 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11373 echo "configure:11374: checking for png.h" >&5
11374 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11375 echo $ac_n "(cached) $ac_c" 1>&6
11376 else
11377 cat > conftest.$ac_ext <<EOF
11378 #line 11379 "configure"
11379 #include "confdefs.h"
11380 #include <png.h>
11381 EOF
11382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11383 { (eval echo configure:11384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11385 if test -z "$ac_err"; then
11386 rm -rf conftest*
11387 eval "ac_cv_header_$ac_safe=yes"
11388 else
11389 echo "$ac_err" >&5
11390 echo "configure: failed program was:" >&5
11391 cat conftest.$ac_ext >&5
11392 rm -rf conftest*
11393 eval "ac_cv_header_$ac_safe=no"
11394 fi
11395 rm -f conftest*
11396 fi
11397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11398 echo "$ac_t""yes" 1>&6
11399 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11400 echo "configure:11401: checking for png_check_sig in -lpng" >&5
11401 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11403 echo $ac_n "(cached) $ac_c" 1>&6
11404 else
11405 ac_save_LIBS="$LIBS"
11406 LIBS="-lpng -lz -lm $LIBS"
11407 cat > conftest.$ac_ext <<EOF
11408 #line 11409 "configure"
11409 #include "confdefs.h"
11410 /* Override any gcc2 internal prototype to avoid an error. */
11411 /* We use char because int might match the return type of a gcc2
11412 builtin and then its argument prototype would still apply. */
11413 char png_check_sig();
11414
11415 int main() {
11416 png_check_sig()
11417 ; return 0; }
11418 EOF
11419 if { (eval echo configure:11420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11420 rm -rf conftest*
11421 eval "ac_cv_lib_$ac_lib_var=yes"
11422 else
11423 echo "configure: failed program was:" >&5
11424 cat conftest.$ac_ext >&5
11425 rm -rf conftest*
11426 eval "ac_cv_lib_$ac_lib_var=no"
11427 fi
11428 rm -f conftest*
11429 LIBS="$ac_save_LIBS"
11430
11431 fi
11432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11433 echo "$ac_t""yes" 1>&6
11434 PNG_LINK=" -lpng"
11435 else
11436 echo "$ac_t""no" 1>&6
11437 fi
11438
11439
11440 else
11441 echo "$ac_t""no" 1>&6
11442 fi
11443
11444
11445 if test "x$PNG_LINK" = "x" ; then
11446 if test "$wxUSE_LIBPNG" = "sys" ; then
11447 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11448 else
11449 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11450 wxUSE_LIBPNG=builtin
11451 fi
11452 else
11453 wxUSE_LIBPNG=yes
11454 fi
11455 fi
11456 fi
11457
11458 if test "$wxUSE_LIBPNG" = "builtin" ; then
11459 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11460 fi
11461
11462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11463 fi
11464
11465
11466 JPEG_INCLUDE=
11467 JPEG_LINK=
11468 if test "$wxUSE_LIBJPEG" != "no" ; then
11469 cat >> confdefs.h <<\EOF
11470 #define wxUSE_LIBJPEG 1
11471 EOF
11472
11473
11474 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11475 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11476 wxUSE_LIBJPEG=sys
11477 fi
11478
11479 if test "$wxUSE_MGL" != 1 ; then
11480 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11481 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11482 echo "configure:11483: checking for jpeglib.h" >&5
11483 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11484 echo $ac_n "(cached) $ac_c" 1>&6
11485 else
11486 cat > conftest.$ac_ext <<EOF
11487 #line 11488 "configure"
11488 #include "confdefs.h"
11489
11490 #undef HAVE_STDLIB_H
11491 #include <stdio.h>
11492 #include <jpeglib.h>
11493
11494 int main() {
11495
11496
11497 ; return 0; }
11498 EOF
11499 if { (eval echo configure:11500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11500 rm -rf conftest*
11501 ac_cv_header_jpeglib_h=yes
11502 else
11503 echo "configure: failed program was:" >&5
11504 cat conftest.$ac_ext >&5
11505 rm -rf conftest*
11506 ac_cv_header_jpeglib_h=no
11507
11508 fi
11509 rm -f conftest*
11510
11511 fi
11512
11513 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11514
11515 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11516 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11517 echo "configure:11518: checking for jpeg_read_header in -ljpeg" >&5
11518 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11520 echo $ac_n "(cached) $ac_c" 1>&6
11521 else
11522 ac_save_LIBS="$LIBS"
11523 LIBS="-ljpeg $LIBS"
11524 cat > conftest.$ac_ext <<EOF
11525 #line 11526 "configure"
11526 #include "confdefs.h"
11527 /* Override any gcc2 internal prototype to avoid an error. */
11528 /* We use char because int might match the return type of a gcc2
11529 builtin and then its argument prototype would still apply. */
11530 char jpeg_read_header();
11531
11532 int main() {
11533 jpeg_read_header()
11534 ; return 0; }
11535 EOF
11536 if { (eval echo configure:11537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11537 rm -rf conftest*
11538 eval "ac_cv_lib_$ac_lib_var=yes"
11539 else
11540 echo "configure: failed program was:" >&5
11541 cat conftest.$ac_ext >&5
11542 rm -rf conftest*
11543 eval "ac_cv_lib_$ac_lib_var=no"
11544 fi
11545 rm -f conftest*
11546 LIBS="$ac_save_LIBS"
11547
11548 fi
11549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11550 echo "$ac_t""yes" 1>&6
11551 JPEG_LINK=" -ljpeg"
11552 else
11553 echo "$ac_t""no" 1>&6
11554 fi
11555
11556 fi
11557
11558 if test "x$JPEG_LINK" = "x" ; then
11559 if test "$wxUSE_LIBJPEG" = "sys" ; then
11560 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11561 else
11562 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11563 wxUSE_LIBJPEG=builtin
11564 fi
11565 else
11566 wxUSE_LIBJPEG=sys
11567 fi
11568 fi
11569 fi
11570
11571 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11572 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11573 fi
11574 fi
11575
11576
11577 TIFF_INCLUDE=
11578 TIFF_LINK=
11579 if test "$wxUSE_LIBTIFF" != "no" ; then
11580 cat >> confdefs.h <<\EOF
11581 #define wxUSE_LIBTIFF 1
11582 EOF
11583
11584
11585 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11586 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11587 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11588 echo "configure:11589: checking for tiffio.h" >&5
11589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11590 echo $ac_n "(cached) $ac_c" 1>&6
11591 else
11592 cat > conftest.$ac_ext <<EOF
11593 #line 11594 "configure"
11594 #include "confdefs.h"
11595 #include <tiffio.h>
11596 EOF
11597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11598 { (eval echo configure:11599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11600 if test -z "$ac_err"; then
11601 rm -rf conftest*
11602 eval "ac_cv_header_$ac_safe=yes"
11603 else
11604 echo "$ac_err" >&5
11605 echo "configure: failed program was:" >&5
11606 cat conftest.$ac_ext >&5
11607 rm -rf conftest*
11608 eval "ac_cv_header_$ac_safe=no"
11609 fi
11610 rm -f conftest*
11611 fi
11612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11613 echo "$ac_t""yes" 1>&6
11614 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11615 echo "configure:11616: checking for TIFFError in -ltiff" >&5
11616 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11618 echo $ac_n "(cached) $ac_c" 1>&6
11619 else
11620 ac_save_LIBS="$LIBS"
11621 LIBS="-ltiff -lm $LIBS"
11622 cat > conftest.$ac_ext <<EOF
11623 #line 11624 "configure"
11624 #include "confdefs.h"
11625 /* Override any gcc2 internal prototype to avoid an error. */
11626 /* We use char because int might match the return type of a gcc2
11627 builtin and then its argument prototype would still apply. */
11628 char TIFFError();
11629
11630 int main() {
11631 TIFFError()
11632 ; return 0; }
11633 EOF
11634 if { (eval echo configure:11635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11635 rm -rf conftest*
11636 eval "ac_cv_lib_$ac_lib_var=yes"
11637 else
11638 echo "configure: failed program was:" >&5
11639 cat conftest.$ac_ext >&5
11640 rm -rf conftest*
11641 eval "ac_cv_lib_$ac_lib_var=no"
11642 fi
11643 rm -f conftest*
11644 LIBS="$ac_save_LIBS"
11645
11646 fi
11647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11648 echo "$ac_t""yes" 1>&6
11649 TIFF_LINK=" -ltiff"
11650 else
11651 echo "$ac_t""no" 1>&6
11652 fi
11653
11654
11655 else
11656 echo "$ac_t""no" 1>&6
11657 fi
11658
11659
11660 if test "x$TIFF_LINK" = "x" ; then
11661 if test "$wxUSE_LIBTIFF" = "sys" ; then
11662 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
11663 else
11664 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11665 wxUSE_LIBTIFF=builtin
11666 fi
11667 else
11668 wxUSE_LIBTIFF=sys
11669 fi
11670 fi
11671
11672 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11673 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11674 fi
11675 fi
11676
11677
11678 AFMINSTALL=
11679
11680 TOOLKIT=
11681 TOOLKIT_INCLUDE=
11682 WIDGET_SET=
11683
11684 if test "$USE_WIN32" = 1 ; then
11685 for ac_hdr in w32api.h
11686 do
11687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11689 echo "configure:11690: checking for $ac_hdr" >&5
11690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11691 echo $ac_n "(cached) $ac_c" 1>&6
11692 else
11693 cat > conftest.$ac_ext <<EOF
11694 #line 11695 "configure"
11695 #include "confdefs.h"
11696 #include <$ac_hdr>
11697 EOF
11698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11699 { (eval echo configure:11700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11701 if test -z "$ac_err"; then
11702 rm -rf conftest*
11703 eval "ac_cv_header_$ac_safe=yes"
11704 else
11705 echo "$ac_err" >&5
11706 echo "configure: failed program was:" >&5
11707 cat conftest.$ac_ext >&5
11708 rm -rf conftest*
11709 eval "ac_cv_header_$ac_safe=no"
11710 fi
11711 rm -f conftest*
11712 fi
11713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11714 echo "$ac_t""yes" 1>&6
11715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11716 cat >> confdefs.h <<EOF
11717 #define $ac_tr_hdr 1
11718 EOF
11719
11720 else
11721 echo "$ac_t""no" 1>&6
11722 fi
11723 done
11724
11725 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11726 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11727 echo "configure:11728: checking for windows.h" >&5
11728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11729 echo $ac_n "(cached) $ac_c" 1>&6
11730 else
11731 cat > conftest.$ac_ext <<EOF
11732 #line 11733 "configure"
11733 #include "confdefs.h"
11734 #include <windows.h>
11735 EOF
11736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11737 { (eval echo configure:11738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11739 if test -z "$ac_err"; then
11740 rm -rf conftest*
11741 eval "ac_cv_header_$ac_safe=yes"
11742 else
11743 echo "$ac_err" >&5
11744 echo "configure: failed program was:" >&5
11745 cat conftest.$ac_ext >&5
11746 rm -rf conftest*
11747 eval "ac_cv_header_$ac_safe=no"
11748 fi
11749 rm -f conftest*
11750 fi
11751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11752 echo "$ac_t""yes" 1>&6
11753 :
11754 else
11755 echo "$ac_t""no" 1>&6
11756
11757 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11758
11759 fi
11760
11761
11762 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
11763 echo "configure:11764: checking if w32api has good enough MSIE support" >&5
11764 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11765 echo $ac_n "(cached) $ac_c" 1>&6
11766 else
11767
11768 cat > conftest.$ac_ext <<EOF
11769 #line 11770 "configure"
11770 #include "confdefs.h"
11771 #include <w32api.h>
11772 int main() {
11773
11774 #define wxCHECK_W32API_VERSION( major, minor ) \
11775 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11776 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11777 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11778
11779 #if !wxCHECK_W32API_VERSION(1,1)
11780 #error You need w32api 1.1 or newer
11781 #endif
11782
11783 ; return 0; }
11784 EOF
11785 if { (eval echo configure:11786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11786 rm -rf conftest*
11787
11788 wx_cv_w32api_win32_ie=yes
11789
11790 else
11791 echo "configure: failed program was:" >&5
11792 cat conftest.$ac_ext >&5
11793 rm -rf conftest*
11794
11795 wx_cv_w32api_win32_ie=no
11796
11797 fi
11798 rm -f conftest*
11799
11800 fi
11801
11802 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11803 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11804 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11805 fi
11806
11807 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11808
11809 case "${host}" in
11810 *-*-cygwin* )
11811 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11812 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11813 esac
11814
11815 if test "$wxUSE_ODBC" = "yes" ; then
11816 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11817 fi
11818
11819 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11820 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
11821 fi
11822
11823 if test "$wxUSE_GUI" = "yes"; then
11824 USE_GUI=1
11825
11826 GUI_TK_LIBRARY=
11827
11828 WXGTK12=
11829 WXGTK127=
11830 WXGTK20=
11831
11832 if test "$wxUSE_MSW" = 1 ; then
11833 TOOLKIT=MSW
11834 GUIDIST=MSW_DIST
11835
11836 case "${host}" in
11837 *-*-mingw32* )
11838 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11839 esac
11840 fi
11841
11842 if test "$wxUSE_GTK" = 1; then
11843 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
11844 echo "configure:11845: checking for GTK+ version" >&5
11845
11846 gtk_version_cached=1
11847 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
11848 echo $ac_n "(cached) $ac_c" 1>&6
11849 else
11850
11851 gtk_version_cached=0
11852 echo "$ac_t""" 1>&6
11853
11854 GTK_MODULES=
11855 if test "$wxUSE_THREADS" = "yes"; then
11856 GTK_MODULES=gthread
11857 fi
11858
11859 wx_cv_lib_gtk=
11860 if test "x$wxUSE_GTK2" = "xyes"; then
11861 # Check whether --enable-gtktest or --disable-gtktest was given.
11862 if test "${enable_gtktest+set}" = set; then
11863 enableval="$enable_gtktest"
11864 :
11865 else
11866 enable_gtktest=yes
11867 fi
11868
11869
11870 pkg_config_args=gtk+-2.0
11871 for module in . $GTK_MODULES
11872 do
11873 case "$module" in
11874 gthread)
11875 pkg_config_args="$pkg_config_args gthread-2.0"
11876 ;;
11877 esac
11878 done
11879
11880 no_gtk=""
11881
11882 # Extract the first word of "pkg-config", so it can be a program name with args.
11883 set dummy pkg-config; ac_word=$2
11884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11885 echo "configure:11886: checking for $ac_word" >&5
11886 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11887 echo $ac_n "(cached) $ac_c" 1>&6
11888 else
11889 case "$PKG_CONFIG" in
11890 /*)
11891 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11892 ;;
11893 ?:/*)
11894 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11895 ;;
11896 *)
11897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11898 ac_dummy="$PATH"
11899 for ac_dir in $ac_dummy; do
11900 test -z "$ac_dir" && ac_dir=.
11901 if test -f $ac_dir/$ac_word; then
11902 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11903 break
11904 fi
11905 done
11906 IFS="$ac_save_ifs"
11907 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11908 ;;
11909 esac
11910 fi
11911 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11912 if test -n "$PKG_CONFIG"; then
11913 echo "$ac_t""$PKG_CONFIG" 1>&6
11914 else
11915 echo "$ac_t""no" 1>&6
11916 fi
11917
11918
11919 if test x$PKG_CONFIG != xno ; then
11920 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11921 :
11922 else
11923 echo *** pkg-config too old; version 0.7 or better required.
11924 no_gtk=yes
11925 PKG_CONFIG=no
11926 fi
11927 else
11928 no_gtk=yes
11929 fi
11930
11931 min_gtk_version=2.0.0
11932 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
11933 echo "configure:11934: checking for GTK+ - version >= $min_gtk_version" >&5
11934
11935 if test x$PKG_CONFIG != xno ; then
11936 ## don't try to run the test against uninstalled libtool libs
11937 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11938 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11939 enable_gtktest=no
11940 fi
11941
11942 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11943 :
11944 else
11945 no_gtk=yes
11946 fi
11947 fi
11948
11949 if test x"$no_gtk" = x ; then
11950 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11951 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11952 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11953 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11954 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11955 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11956 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11957 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11958 if test "x$enable_gtktest" = "xyes" ; then
11959 ac_save_CFLAGS="$CFLAGS"
11960 ac_save_LIBS="$LIBS"
11961 CFLAGS="$CFLAGS $GTK_CFLAGS"
11962 LIBS="$GTK_LIBS $LIBS"
11963 rm -f conf.gtktest
11964 if test "$cross_compiling" = yes; then
11965 echo $ac_n "cross compiling; assumed OK... $ac_c"
11966 else
11967 cat > conftest.$ac_ext <<EOF
11968 #line 11969 "configure"
11969 #include "confdefs.h"
11970
11971 #include <gtk/gtk.h>
11972 #include <stdio.h>
11973 #include <stdlib.h>
11974
11975 int
11976 main ()
11977 {
11978 int major, minor, micro;
11979 char *tmp_version;
11980
11981 system ("touch conf.gtktest");
11982
11983 /* HP/UX 9 (%@#!) writes to sscanf strings */
11984 tmp_version = g_strdup("$min_gtk_version");
11985 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11986 printf("%s, bad version string\n", "$min_gtk_version");
11987 exit(1);
11988 }
11989
11990 if ((gtk_major_version != $gtk_config_major_version) ||
11991 (gtk_minor_version != $gtk_config_minor_version) ||
11992 (gtk_micro_version != $gtk_config_micro_version))
11993 {
11994 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11995 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11996 gtk_major_version, gtk_minor_version, gtk_micro_version);
11997 printf ("*** was found! If pkg-config was correct, then it is best\n");
11998 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11999 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12000 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12001 printf("*** required on your system.\n");
12002 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12003 printf("*** to point to the correct configuration files\n");
12004 }
12005 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12006 (gtk_minor_version != GTK_MINOR_VERSION) ||
12007 (gtk_micro_version != GTK_MICRO_VERSION))
12008 {
12009 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12010 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12011 printf("*** library (version %d.%d.%d)\n",
12012 gtk_major_version, gtk_minor_version, gtk_micro_version);
12013 }
12014 else
12015 {
12016 if ((gtk_major_version > major) ||
12017 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12018 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12019 {
12020 return 0;
12021 }
12022 else
12023 {
12024 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12025 gtk_major_version, gtk_minor_version, gtk_micro_version);
12026 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12027 major, minor, micro);
12028 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12029 printf("***\n");
12030 printf("*** If you have already installed a sufficiently new version, this error\n");
12031 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12032 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12033 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12034 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12035 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12036 printf("*** so that the correct libraries are found at run-time))\n");
12037 }
12038 }
12039 return 1;
12040 }
12041
12042 EOF
12043 if { (eval echo configure:12044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12044 then
12045 :
12046 else
12047 echo "configure: failed program was:" >&5
12048 cat conftest.$ac_ext >&5
12049 rm -fr conftest*
12050 no_gtk=yes
12051 fi
12052 rm -fr conftest*
12053 fi
12054
12055 CFLAGS="$ac_save_CFLAGS"
12056 LIBS="$ac_save_LIBS"
12057 fi
12058 fi
12059 if test "x$no_gtk" = x ; then
12060 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12061 wx_cv_lib_gtk=2.0
12062 else
12063 echo "$ac_t""no" 1>&6
12064 if test "$PKG_CONFIG" = "no" ; then
12065 echo "*** A new enough version of pkg-config was not found."
12066 echo "*** See http://pkgconfig.sourceforge.net"
12067 else
12068 if test -f conf.gtktest ; then
12069 :
12070 else
12071 echo "*** Could not run GTK+ test program, checking why..."
12072 ac_save_CFLAGS="$CFLAGS"
12073 ac_save_LIBS="$LIBS"
12074 CFLAGS="$CFLAGS $GTK_CFLAGS"
12075 LIBS="$LIBS $GTK_LIBS"
12076 cat > conftest.$ac_ext <<EOF
12077 #line 12078 "configure"
12078 #include "confdefs.h"
12079
12080 #include <gtk/gtk.h>
12081 #include <stdio.h>
12082
12083 int main() {
12084 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12085 ; return 0; }
12086 EOF
12087 if { (eval echo configure:12088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12088 rm -rf conftest*
12089 echo "*** The test program compiled, but did not run. This usually means"
12090 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12091 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12092 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12093 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12094 echo "*** is required on your system"
12095 echo "***"
12096 echo "*** If you have an old version installed, it is best to remove it, although"
12097 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12098 else
12099 echo "configure: failed program was:" >&5
12100 cat conftest.$ac_ext >&5
12101 rm -rf conftest*
12102 echo "*** The test program failed to compile or link. See the file config.log for the"
12103 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12104 fi
12105 rm -f conftest*
12106 CFLAGS="$ac_save_CFLAGS"
12107 LIBS="$ac_save_LIBS"
12108 fi
12109 fi
12110 GTK_CFLAGS=""
12111 GTK_LIBS=""
12112 :
12113 fi
12114
12115
12116 rm -f conf.gtktest
12117
12118 fi
12119
12120 if test -z "$wx_cv_lib_gtk"; then
12121 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12122 if test "${with_gtk_prefix+set}" = set; then
12123 withval="$with_gtk_prefix"
12124 gtk_config_prefix="$withval"
12125 else
12126 gtk_config_prefix=""
12127 fi
12128
12129 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12130 if test "${with_gtk_exec_prefix+set}" = set; then
12131 withval="$with_gtk_exec_prefix"
12132 gtk_config_exec_prefix="$withval"
12133 else
12134 gtk_config_exec_prefix=""
12135 fi
12136
12137 # Check whether --enable-gtktest or --disable-gtktest was given.
12138 if test "${enable_gtktest+set}" = set; then
12139 enableval="$enable_gtktest"
12140 :
12141 else
12142 enable_gtktest=yes
12143 fi
12144
12145
12146 for module in . $GTK_MODULES
12147 do
12148 case "$module" in
12149 gthread)
12150 gtk_config_args="$gtk_config_args gthread"
12151 ;;
12152 esac
12153 done
12154
12155 if test x$gtk_config_exec_prefix != x ; then
12156 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12157 if test x${GTK_CONFIG+set} != xset ; then
12158 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12159 fi
12160 fi
12161 if test x$gtk_config_prefix != x ; then
12162 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12163 if test x${GTK_CONFIG+set} != xset ; then
12164 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12165 fi
12166 fi
12167
12168 # Extract the first word of "gtk-config", so it can be a program name with args.
12169 set dummy gtk-config; ac_word=$2
12170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12171 echo "configure:12172: checking for $ac_word" >&5
12172 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12173 echo $ac_n "(cached) $ac_c" 1>&6
12174 else
12175 case "$GTK_CONFIG" in
12176 /*)
12177 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12178 ;;
12179 ?:/*)
12180 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12181 ;;
12182 *)
12183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12184 ac_dummy="$PATH"
12185 for ac_dir in $ac_dummy; do
12186 test -z "$ac_dir" && ac_dir=.
12187 if test -f $ac_dir/$ac_word; then
12188 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12189 break
12190 fi
12191 done
12192 IFS="$ac_save_ifs"
12193 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12194 ;;
12195 esac
12196 fi
12197 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12198 if test -n "$GTK_CONFIG"; then
12199 echo "$ac_t""$GTK_CONFIG" 1>&6
12200 else
12201 echo "$ac_t""no" 1>&6
12202 fi
12203
12204 min_gtk_version=1.2.7
12205 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12206 echo "configure:12207: checking for GTK - version >= $min_gtk_version" >&5
12207 no_gtk=""
12208 if test "$GTK_CONFIG" = "no" ; then
12209 no_gtk=yes
12210 else
12211 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12212 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12213 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12214 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12215 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12216 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12217 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12218 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12219 if test "x$enable_gtktest" = "xyes" ; then
12220 ac_save_CFLAGS="$CFLAGS"
12221 ac_save_LIBS="$LIBS"
12222 CFLAGS="$CFLAGS $GTK_CFLAGS"
12223 LIBS="$GTK_LIBS $LIBS"
12224 rm -f conf.gtktest
12225 if test "$cross_compiling" = yes; then
12226 echo $ac_n "cross compiling; assumed OK... $ac_c"
12227 else
12228 cat > conftest.$ac_ext <<EOF
12229 #line 12230 "configure"
12230 #include "confdefs.h"
12231
12232 #include <gtk/gtk.h>
12233 #include <stdio.h>
12234 #include <stdlib.h>
12235
12236 int
12237 main ()
12238 {
12239 int major, minor, micro;
12240 char *tmp_version;
12241
12242 system ("touch conf.gtktest");
12243
12244 /* HP/UX 9 (%@#!) writes to sscanf strings */
12245 tmp_version = g_strdup("$min_gtk_version");
12246 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12247 printf("%s, bad version string\n", "$min_gtk_version");
12248 exit(1);
12249 }
12250
12251 if ((gtk_major_version != $gtk_config_major_version) ||
12252 (gtk_minor_version != $gtk_config_minor_version) ||
12253 (gtk_micro_version != $gtk_config_micro_version))
12254 {
12255 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12256 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12257 gtk_major_version, gtk_minor_version, gtk_micro_version);
12258 printf ("*** was found! If gtk-config was correct, then it is best\n");
12259 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12260 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12261 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12262 printf("*** required on your system.\n");
12263 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12264 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12265 printf("*** before re-running configure\n");
12266 }
12267 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12268 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12269 (gtk_minor_version != GTK_MINOR_VERSION) ||
12270 (gtk_micro_version != GTK_MICRO_VERSION))
12271 {
12272 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12273 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12274 printf("*** library (version %d.%d.%d)\n",
12275 gtk_major_version, gtk_minor_version, gtk_micro_version);
12276 }
12277 #endif /* defined (GTK_MAJOR_VERSION) ... */
12278 else
12279 {
12280 if ((gtk_major_version > major) ||
12281 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12282 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12283 {
12284 return 0;
12285 }
12286 else
12287 {
12288 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12289 gtk_major_version, gtk_minor_version, gtk_micro_version);
12290 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12291 major, minor, micro);
12292 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12293 printf("***\n");
12294 printf("*** If you have already installed a sufficiently new version, this error\n");
12295 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12296 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12297 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12298 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12299 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12300 printf("*** so that the correct libraries are found at run-time))\n");
12301 }
12302 }
12303 return 1;
12304 }
12305
12306 EOF
12307 if { (eval echo configure:12308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12308 then
12309 :
12310 else
12311 echo "configure: failed program was:" >&5
12312 cat conftest.$ac_ext >&5
12313 rm -fr conftest*
12314 no_gtk=yes
12315 fi
12316 rm -fr conftest*
12317 fi
12318
12319 CFLAGS="$ac_save_CFLAGS"
12320 LIBS="$ac_save_LIBS"
12321 fi
12322 fi
12323 if test "x$no_gtk" = x ; then
12324 echo "$ac_t""yes" 1>&6
12325 wx_cv_lib_gtk=1.2.7
12326 else
12327 echo "$ac_t""no" 1>&6
12328 if test "$GTK_CONFIG" = "no" ; then
12329 echo "*** The gtk-config script installed by GTK could not be found"
12330 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12331 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12332 echo "*** full path to gtk-config."
12333 else
12334 if test -f conf.gtktest ; then
12335 :
12336 else
12337 echo "*** Could not run GTK test program, checking why..."
12338 CFLAGS="$CFLAGS $GTK_CFLAGS"
12339 LIBS="$LIBS $GTK_LIBS"
12340 cat > conftest.$ac_ext <<EOF
12341 #line 12342 "configure"
12342 #include "confdefs.h"
12343
12344 #include <gtk/gtk.h>
12345 #include <stdio.h>
12346
12347 int main() {
12348 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12349 ; return 0; }
12350 EOF
12351 if { (eval echo configure:12352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12352 rm -rf conftest*
12353 echo "*** The test program compiled, but did not run. This usually means"
12354 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12355 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12356 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12357 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12358 echo "*** is required on your system"
12359 echo "***"
12360 echo "*** If you have an old version installed, it is best to remove it, although"
12361 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12362 echo "***"
12363 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12364 echo "*** came with the system with the command"
12365 echo "***"
12366 echo "*** rpm --erase --nodeps gtk gtk-devel"
12367 else
12368 echo "configure: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 rm -rf conftest*
12371 echo "*** The test program failed to compile or link. See the file config.log for the"
12372 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12373 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12374 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12375 fi
12376 rm -f conftest*
12377 CFLAGS="$ac_save_CFLAGS"
12378 LIBS="$ac_save_LIBS"
12379 fi
12380 fi
12381 GTK_CFLAGS=""
12382 GTK_LIBS=""
12383 :
12384 fi
12385
12386
12387 rm -f conf.gtktest
12388
12389 fi
12390
12391 if test -z "$wx_cv_lib_gtk"; then
12392 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12393 if test "${with_gtk_prefix+set}" = set; then
12394 withval="$with_gtk_prefix"
12395 gtk_config_prefix="$withval"
12396 else
12397 gtk_config_prefix=""
12398 fi
12399
12400 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12401 if test "${with_gtk_exec_prefix+set}" = set; then
12402 withval="$with_gtk_exec_prefix"
12403 gtk_config_exec_prefix="$withval"
12404 else
12405 gtk_config_exec_prefix=""
12406 fi
12407
12408 # Check whether --enable-gtktest or --disable-gtktest was given.
12409 if test "${enable_gtktest+set}" = set; then
12410 enableval="$enable_gtktest"
12411 :
12412 else
12413 enable_gtktest=yes
12414 fi
12415
12416
12417 for module in . $GTK_MODULES
12418 do
12419 case "$module" in
12420 gthread)
12421 gtk_config_args="$gtk_config_args gthread"
12422 ;;
12423 esac
12424 done
12425
12426 if test x$gtk_config_exec_prefix != x ; then
12427 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12428 if test x${GTK_CONFIG+set} != xset ; then
12429 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12430 fi
12431 fi
12432 if test x$gtk_config_prefix != x ; then
12433 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12434 if test x${GTK_CONFIG+set} != xset ; then
12435 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12436 fi
12437 fi
12438
12439 # Extract the first word of "gtk-config", so it can be a program name with args.
12440 set dummy gtk-config; ac_word=$2
12441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12442 echo "configure:12443: checking for $ac_word" >&5
12443 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12444 echo $ac_n "(cached) $ac_c" 1>&6
12445 else
12446 case "$GTK_CONFIG" in
12447 /*)
12448 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12449 ;;
12450 ?:/*)
12451 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12452 ;;
12453 *)
12454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12455 ac_dummy="$PATH"
12456 for ac_dir in $ac_dummy; do
12457 test -z "$ac_dir" && ac_dir=.
12458 if test -f $ac_dir/$ac_word; then
12459 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12460 break
12461 fi
12462 done
12463 IFS="$ac_save_ifs"
12464 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12465 ;;
12466 esac
12467 fi
12468 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12469 if test -n "$GTK_CONFIG"; then
12470 echo "$ac_t""$GTK_CONFIG" 1>&6
12471 else
12472 echo "$ac_t""no" 1>&6
12473 fi
12474
12475 min_gtk_version=1.2.3
12476 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12477 echo "configure:12478: checking for GTK - version >= $min_gtk_version" >&5
12478 no_gtk=""
12479 if test "$GTK_CONFIG" = "no" ; then
12480 no_gtk=yes
12481 else
12482 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12483 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12484 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12485 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12486 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12487 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12488 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12489 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12490 if test "x$enable_gtktest" = "xyes" ; then
12491 ac_save_CFLAGS="$CFLAGS"
12492 ac_save_LIBS="$LIBS"
12493 CFLAGS="$CFLAGS $GTK_CFLAGS"
12494 LIBS="$GTK_LIBS $LIBS"
12495 rm -f conf.gtktest
12496 if test "$cross_compiling" = yes; then
12497 echo $ac_n "cross compiling; assumed OK... $ac_c"
12498 else
12499 cat > conftest.$ac_ext <<EOF
12500 #line 12501 "configure"
12501 #include "confdefs.h"
12502
12503 #include <gtk/gtk.h>
12504 #include <stdio.h>
12505 #include <stdlib.h>
12506
12507 int
12508 main ()
12509 {
12510 int major, minor, micro;
12511 char *tmp_version;
12512
12513 system ("touch conf.gtktest");
12514
12515 /* HP/UX 9 (%@#!) writes to sscanf strings */
12516 tmp_version = g_strdup("$min_gtk_version");
12517 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12518 printf("%s, bad version string\n", "$min_gtk_version");
12519 exit(1);
12520 }
12521
12522 if ((gtk_major_version != $gtk_config_major_version) ||
12523 (gtk_minor_version != $gtk_config_minor_version) ||
12524 (gtk_micro_version != $gtk_config_micro_version))
12525 {
12526 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12527 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12528 gtk_major_version, gtk_minor_version, gtk_micro_version);
12529 printf ("*** was found! If gtk-config was correct, then it is best\n");
12530 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12531 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12532 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12533 printf("*** required on your system.\n");
12534 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12535 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12536 printf("*** before re-running configure\n");
12537 }
12538 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12539 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12540 (gtk_minor_version != GTK_MINOR_VERSION) ||
12541 (gtk_micro_version != GTK_MICRO_VERSION))
12542 {
12543 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12544 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12545 printf("*** library (version %d.%d.%d)\n",
12546 gtk_major_version, gtk_minor_version, gtk_micro_version);
12547 }
12548 #endif /* defined (GTK_MAJOR_VERSION) ... */
12549 else
12550 {
12551 if ((gtk_major_version > major) ||
12552 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12553 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12554 {
12555 return 0;
12556 }
12557 else
12558 {
12559 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12560 gtk_major_version, gtk_minor_version, gtk_micro_version);
12561 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12562 major, minor, micro);
12563 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12564 printf("***\n");
12565 printf("*** If you have already installed a sufficiently new version, this error\n");
12566 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12567 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12568 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12569 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12570 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12571 printf("*** so that the correct libraries are found at run-time))\n");
12572 }
12573 }
12574 return 1;
12575 }
12576
12577 EOF
12578 if { (eval echo configure:12579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12579 then
12580 :
12581 else
12582 echo "configure: failed program was:" >&5
12583 cat conftest.$ac_ext >&5
12584 rm -fr conftest*
12585 no_gtk=yes
12586 fi
12587 rm -fr conftest*
12588 fi
12589
12590 CFLAGS="$ac_save_CFLAGS"
12591 LIBS="$ac_save_LIBS"
12592 fi
12593 fi
12594 if test "x$no_gtk" = x ; then
12595 echo "$ac_t""yes" 1>&6
12596 wx_cv_lib_gtk=1.2.3
12597 else
12598 echo "$ac_t""no" 1>&6
12599 if test "$GTK_CONFIG" = "no" ; then
12600 echo "*** The gtk-config script installed by GTK could not be found"
12601 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12602 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12603 echo "*** full path to gtk-config."
12604 else
12605 if test -f conf.gtktest ; then
12606 :
12607 else
12608 echo "*** Could not run GTK test program, checking why..."
12609 CFLAGS="$CFLAGS $GTK_CFLAGS"
12610 LIBS="$LIBS $GTK_LIBS"
12611 cat > conftest.$ac_ext <<EOF
12612 #line 12613 "configure"
12613 #include "confdefs.h"
12614
12615 #include <gtk/gtk.h>
12616 #include <stdio.h>
12617
12618 int main() {
12619 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12620 ; return 0; }
12621 EOF
12622 if { (eval echo configure:12623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12623 rm -rf conftest*
12624 echo "*** The test program compiled, but did not run. This usually means"
12625 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12626 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12627 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12628 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12629 echo "*** is required on your system"
12630 echo "***"
12631 echo "*** If you have an old version installed, it is best to remove it, although"
12632 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12633 echo "***"
12634 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12635 echo "*** came with the system with the command"
12636 echo "***"
12637 echo "*** rpm --erase --nodeps gtk gtk-devel"
12638 else
12639 echo "configure: failed program was:" >&5
12640 cat conftest.$ac_ext >&5
12641 rm -rf conftest*
12642 echo "*** The test program failed to compile or link. See the file config.log for the"
12643 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12644 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12645 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12646 fi
12647 rm -f conftest*
12648 CFLAGS="$ac_save_CFLAGS"
12649 LIBS="$ac_save_LIBS"
12650 fi
12651 fi
12652 GTK_CFLAGS=""
12653 GTK_LIBS=""
12654 :
12655 fi
12656
12657
12658 rm -f conf.gtktest
12659
12660 fi
12661
12662 if test -z "$wx_cv_lib_gtk"; then
12663 wx_cv_lib_gtk=none
12664 else
12665 wx_cv_cflags_gtk=$GTK_CFLAGS
12666 wx_cv_libs_gtk=$GTK_LIBS
12667 fi
12668
12669
12670 fi
12671
12672
12673 if test "$gtk_version_cached" = 1; then
12674 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12675 fi
12676
12677 case "$wx_cv_lib_gtk" in
12678 2.0) WXGTK20=1
12679 ;;
12680 1.2.7) WXGTK127=1
12681 WXGTK12=1
12682 ;;
12683 1.2.3) WXGTK12=1
12684 ;;
12685 *) { echo "configure: error:
12686 Please check that gtk-config is in path, the directory
12687 where GTK+ libraries are installed (returned by
12688 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12689 equivalent variable and GTK+ is version 1.2.3 or above.
12690 " 1>&2; exit 1; }
12691 ;;
12692 esac
12693
12694 if test "$WXGTK20" = 1; then
12695 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12696
12697 succeeded=no
12698
12699 if test -z "$PKG_CONFIG"; then
12700 # Extract the first word of "pkg-config", so it can be a program name with args.
12701 set dummy pkg-config; ac_word=$2
12702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12703 echo "configure:12704: checking for $ac_word" >&5
12704 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12705 echo $ac_n "(cached) $ac_c" 1>&6
12706 else
12707 case "$PKG_CONFIG" in
12708 /*)
12709 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12710 ;;
12711 ?:/*)
12712 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12713 ;;
12714 *)
12715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12716 ac_dummy="$PATH"
12717 for ac_dir in $ac_dummy; do
12718 test -z "$ac_dir" && ac_dir=.
12719 if test -f $ac_dir/$ac_word; then
12720 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12721 break
12722 fi
12723 done
12724 IFS="$ac_save_ifs"
12725 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12726 ;;
12727 esac
12728 fi
12729 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12730 if test -n "$PKG_CONFIG"; then
12731 echo "$ac_t""$PKG_CONFIG" 1>&6
12732 else
12733 echo "$ac_t""no" 1>&6
12734 fi
12735
12736 fi
12737
12738 if test "$PKG_CONFIG" = "no" ; then
12739 echo "*** The pkg-config script could not be found. Make sure it is"
12740 echo "*** in your path, or set the PKG_CONFIG environment variable"
12741 echo "*** to the full path to pkg-config."
12742 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12743 else
12744 PKG_CONFIG_MIN_VERSION=0.9.0
12745 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12746 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
12747 echo "configure:12748: checking for pangoft2" >&5
12748
12749 if $PKG_CONFIG --exists "pangoft2" ; then
12750 echo "$ac_t""yes" 1>&6
12751 succeeded=yes
12752
12753 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
12754 echo "configure:12755: checking PANGOFT2_CFLAGS" >&5
12755 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
12756 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
12757
12758 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
12759 echo "configure:12760: checking PANGOFT2_LIBS" >&5
12760 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
12761 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
12762 else
12763 PANGOFT2_CFLAGS=""
12764 PANGOFT2_LIBS=""
12765 ## If we have a custom action on failure, don't print errors, but
12766 ## do set a variable so people can do so.
12767 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
12768
12769 fi
12770
12771
12772
12773 else
12774 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12775 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12776 fi
12777 fi
12778
12779 if test $succeeded = yes; then
12780
12781 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
12782 LIBS="$LIBS $PANGOFT2_LIBS"
12783
12784 else
12785
12786 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
12787 wxUSE_PRINTING_ARCHITECTURE="no"
12788
12789
12790 fi
12791
12792 fi
12793 fi
12794
12795 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12796 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12797
12798 AFMINSTALL=afminstall
12799 TOOLKIT=GTK
12800 GUIDIST=GTK_DIST
12801
12802 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
12803 echo "configure:12804: checking for gdk_im_open in -lgdk" >&5
12804 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
12805 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12806 echo $ac_n "(cached) $ac_c" 1>&6
12807 else
12808 ac_save_LIBS="$LIBS"
12809 LIBS="-lgdk $LIBS"
12810 cat > conftest.$ac_ext <<EOF
12811 #line 12812 "configure"
12812 #include "confdefs.h"
12813 /* Override any gcc2 internal prototype to avoid an error. */
12814 /* We use char because int might match the return type of a gcc2
12815 builtin and then its argument prototype would still apply. */
12816 char gdk_im_open();
12817
12818 int main() {
12819 gdk_im_open()
12820 ; return 0; }
12821 EOF
12822 if { (eval echo configure:12823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12823 rm -rf conftest*
12824 eval "ac_cv_lib_$ac_lib_var=yes"
12825 else
12826 echo "configure: failed program was:" >&5
12827 cat conftest.$ac_ext >&5
12828 rm -rf conftest*
12829 eval "ac_cv_lib_$ac_lib_var=no"
12830 fi
12831 rm -f conftest*
12832 LIBS="$ac_save_LIBS"
12833
12834 fi
12835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12836 echo "$ac_t""yes" 1>&6
12837 cat >> confdefs.h <<\EOF
12838 #define HAVE_XIM 1
12839 EOF
12840
12841 else
12842 echo "$ac_t""no" 1>&6
12843 fi
12844
12845 fi
12846
12847 if test "$wxUSE_MGL" = 1; then
12848 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
12849 echo "configure:12850: checking for SciTech MGL library" >&5
12850 if test "x$MGL_ROOT" = x ; then
12851 echo "$ac_t""not found" 1>&6
12852 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12853 else
12854 echo "$ac_t""$MGL_ROOT" 1>&6
12855 fi
12856
12857 case "${host}" in
12858 *-*-linux* )
12859 mgl_os=linux/gcc/glibc
12860 ;;
12861 *-pc-msdosdjgpp )
12862 mgl_os=dos32/dj2
12863 ;;
12864 *)
12865 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12866 esac
12867
12868 mgl_lib_type=""
12869
12870 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12871 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12872 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12873 mgl_lib_type=debug
12874 fi
12875 fi
12876 if test "x$mgl_lib_type" = x ; then
12877 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12878 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12879 mgl_lib_type=release
12880 else
12881 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12882 fi
12883 fi
12884
12885 wxUSE_UNIVERSAL="yes"
12886
12887 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12888 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12889
12890 AFMINSTALL=afminstall
12891 TOOLKIT=MGL
12892 GUIDIST=MGL_DIST
12893 fi
12894
12895 if test "$wxUSE_MICROWIN" = 1; then
12896 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
12897 echo "configure:12898: checking for MicroWindows" >&5
12898 if test "x$MICROWINDOWS" = x ; then
12899 echo "$ac_t""not found" 1>&6
12900 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12901 else
12902 echo "$ac_t""$MICROWINDOWS" 1>&6
12903 fi
12904
12905 if test -f $MICROWINDOWS/lib/libmwin.a; then
12906 echo "$ac_t""MicroWindows' libraries found." 1>&6
12907 else
12908 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
12909 fi
12910
12911 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12912 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12913
12914 wxUSE_UNIVERSAL="yes"
12915
12916 AFMINSTALL=afminstall
12917 TOOLKIT=MICROWIN
12918 GUIDIST=MICROWIN_DIST
12919
12920 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
12921 fi
12922
12923 if test "$wxUSE_X11" = 1; then
12924 # If we find X, set shell vars x_includes and x_libraries to the
12925 # paths, otherwise set no_x=yes.
12926 # Uses ac_ vars as temps to allow command line to override cache and checks.
12927 # --without-x overrides everything else, but does not touch the cache.
12928 echo $ac_n "checking for X""... $ac_c" 1>&6
12929 echo "configure:12930: checking for X" >&5
12930
12931 # Check whether --with-x or --without-x was given.
12932 if test "${with_x+set}" = set; then
12933 withval="$with_x"
12934 :
12935 fi
12936
12937 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12938 if test "x$with_x" = xno; then
12939 # The user explicitly disabled X.
12940 have_x=disabled
12941 else
12942 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12943 # Both variables are already set.
12944 have_x=yes
12945 else
12946 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12947 echo $ac_n "(cached) $ac_c" 1>&6
12948 else
12949 # One or both of the vars are not set, and there is no cached value.
12950 ac_x_includes=NO ac_x_libraries=NO
12951 rm -fr conftestdir
12952 if mkdir conftestdir; then
12953 cd conftestdir
12954 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12955 cat > Imakefile <<'EOF'
12956 acfindx:
12957 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12958 EOF
12959 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12960 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12961 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12962 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12963 for ac_extension in a so sl; do
12964 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12965 test -f $ac_im_libdir/libX11.$ac_extension; then
12966 ac_im_usrlibdir=$ac_im_libdir; break
12967 fi
12968 done
12969 # Screen out bogus values from the imake configuration. They are
12970 # bogus both because they are the default anyway, and because
12971 # using them would break gcc on systems where it needs fixed includes.
12972 case "$ac_im_incroot" in
12973 /usr/include) ;;
12974 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12975 esac
12976 case "$ac_im_usrlibdir" in
12977 /usr/lib | /lib) ;;
12978 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12979 esac
12980 fi
12981 cd ..
12982 rm -fr conftestdir
12983 fi
12984
12985 if test "$ac_x_includes" = NO; then
12986 # Guess where to find include files, by looking for this one X11 .h file.
12987 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
12988
12989 # First, try using that file with no special directory specified.
12990 cat > conftest.$ac_ext <<EOF
12991 #line 12992 "configure"
12992 #include "confdefs.h"
12993 #include <$x_direct_test_include>
12994 EOF
12995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12996 { (eval echo configure:12997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12998 if test -z "$ac_err"; then
12999 rm -rf conftest*
13000 # We can compile using X headers with no special include directory.
13001 ac_x_includes=
13002 else
13003 echo "$ac_err" >&5
13004 echo "configure: failed program was:" >&5
13005 cat conftest.$ac_ext >&5
13006 rm -rf conftest*
13007 # Look for the header file in a standard set of common directories.
13008 # Check X11 before X11Rn because it is often a symlink to the current release.
13009 for ac_dir in \
13010 /usr/X11/include \
13011 /usr/X11R6/include \
13012 /usr/X11R5/include \
13013 /usr/X11R4/include \
13014 \
13015 /usr/include/X11 \
13016 /usr/include/X11R6 \
13017 /usr/include/X11R5 \
13018 /usr/include/X11R4 \
13019 \
13020 /usr/local/X11/include \
13021 /usr/local/X11R6/include \
13022 /usr/local/X11R5/include \
13023 /usr/local/X11R4/include \
13024 \
13025 /usr/local/include/X11 \
13026 /usr/local/include/X11R6 \
13027 /usr/local/include/X11R5 \
13028 /usr/local/include/X11R4 \
13029 \
13030 /usr/X386/include \
13031 /usr/x386/include \
13032 /usr/XFree86/include/X11 \
13033 \
13034 /usr/include \
13035 /usr/local/include \
13036 /usr/unsupported/include \
13037 /usr/athena/include \
13038 /usr/local/x11r5/include \
13039 /usr/lpp/Xamples/include \
13040 \
13041 /usr/openwin/include \
13042 /usr/openwin/share/include \
13043 ; \
13044 do
13045 if test -r "$ac_dir/$x_direct_test_include"; then
13046 ac_x_includes=$ac_dir
13047 break
13048 fi
13049 done
13050 fi
13051 rm -f conftest*
13052 fi # $ac_x_includes = NO
13053
13054 if test "$ac_x_libraries" = NO; then
13055 # Check for the libraries.
13056
13057 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13058 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13059
13060 # See if we find them without any special options.
13061 # Don't add to $LIBS permanently.
13062 ac_save_LIBS="$LIBS"
13063 LIBS="-l$x_direct_test_library $LIBS"
13064 cat > conftest.$ac_ext <<EOF
13065 #line 13066 "configure"
13066 #include "confdefs.h"
13067
13068 int main() {
13069 ${x_direct_test_function}()
13070 ; return 0; }
13071 EOF
13072 if { (eval echo configure:13073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13073 rm -rf conftest*
13074 LIBS="$ac_save_LIBS"
13075 # We can link X programs with no special library path.
13076 ac_x_libraries=
13077 else
13078 echo "configure: failed program was:" >&5
13079 cat conftest.$ac_ext >&5
13080 rm -rf conftest*
13081 LIBS="$ac_save_LIBS"
13082 # First see if replacing the include by lib works.
13083 # Check X11 before X11Rn because it is often a symlink to the current release.
13084 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13085 /usr/X11/lib \
13086 /usr/X11R6/lib \
13087 /usr/X11R5/lib \
13088 /usr/X11R4/lib \
13089 \
13090 /usr/lib/X11 \
13091 /usr/lib/X11R6 \
13092 /usr/lib/X11R5 \
13093 /usr/lib/X11R4 \
13094 \
13095 /usr/local/X11/lib \
13096 /usr/local/X11R6/lib \
13097 /usr/local/X11R5/lib \
13098 /usr/local/X11R4/lib \
13099 \
13100 /usr/local/lib/X11 \
13101 /usr/local/lib/X11R6 \
13102 /usr/local/lib/X11R5 \
13103 /usr/local/lib/X11R4 \
13104 \
13105 /usr/X386/lib \
13106 /usr/x386/lib \
13107 /usr/XFree86/lib/X11 \
13108 \
13109 /usr/lib \
13110 /usr/local/lib \
13111 /usr/unsupported/lib \
13112 /usr/athena/lib \
13113 /usr/local/x11r5/lib \
13114 /usr/lpp/Xamples/lib \
13115 /lib/usr/lib/X11 \
13116 \
13117 /usr/openwin/lib \
13118 /usr/openwin/share/lib \
13119 ; \
13120 do
13121 for ac_extension in a so sl; do
13122 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13123 ac_x_libraries=$ac_dir
13124 break 2
13125 fi
13126 done
13127 done
13128 fi
13129 rm -f conftest*
13130 fi # $ac_x_libraries = NO
13131
13132 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13133 # Didn't find X anywhere. Cache the known absence of X.
13134 ac_cv_have_x="have_x=no"
13135 else
13136 # Record where we found X for the cache.
13137 ac_cv_have_x="have_x=yes \
13138 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13139 fi
13140 fi
13141 fi
13142 eval "$ac_cv_have_x"
13143 fi # $with_x != no
13144
13145 if test "$have_x" != yes; then
13146 echo "$ac_t""$have_x" 1>&6
13147 no_x=yes
13148 else
13149 # If each of the values was on the command line, it overrides each guess.
13150 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13151 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13152 # Update the cache value to reflect the command line values.
13153 ac_cv_have_x="have_x=yes \
13154 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13155 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13156 fi
13157
13158 if test "$no_x" = yes; then
13159 # Not all programs may use this symbol, but it does not hurt to define it.
13160 cat >> confdefs.h <<\EOF
13161 #define X_DISPLAY_MISSING 1
13162 EOF
13163
13164 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13165 else
13166 if test -n "$x_includes"; then
13167 X_CFLAGS="$X_CFLAGS -I$x_includes"
13168 fi
13169
13170 # It would also be nice to do this for all -L options, not just this one.
13171 if test -n "$x_libraries"; then
13172 X_LIBS="$X_LIBS -L$x_libraries"
13173 # For Solaris; some versions of Sun CC require a space after -R and
13174 # others require no space. Words are not sufficient . . . .
13175 case "`(uname -sr) 2>/dev/null`" in
13176 "SunOS 5"*)
13177 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13178 echo "configure:13179: checking whether -R must be followed by a space" >&5
13179 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13180 cat > conftest.$ac_ext <<EOF
13181 #line 13182 "configure"
13182 #include "confdefs.h"
13183
13184 int main() {
13185
13186 ; return 0; }
13187 EOF
13188 if { (eval echo configure:13189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13189 rm -rf conftest*
13190 ac_R_nospace=yes
13191 else
13192 echo "configure: failed program was:" >&5
13193 cat conftest.$ac_ext >&5
13194 rm -rf conftest*
13195 ac_R_nospace=no
13196 fi
13197 rm -f conftest*
13198 if test $ac_R_nospace = yes; then
13199 echo "$ac_t""no" 1>&6
13200 X_LIBS="$X_LIBS -R$x_libraries"
13201 else
13202 LIBS="$ac_xsave_LIBS -R $x_libraries"
13203 cat > conftest.$ac_ext <<EOF
13204 #line 13205 "configure"
13205 #include "confdefs.h"
13206
13207 int main() {
13208
13209 ; return 0; }
13210 EOF
13211 if { (eval echo configure:13212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13212 rm -rf conftest*
13213 ac_R_space=yes
13214 else
13215 echo "configure: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13217 rm -rf conftest*
13218 ac_R_space=no
13219 fi
13220 rm -f conftest*
13221 if test $ac_R_space = yes; then
13222 echo "$ac_t""yes" 1>&6
13223 X_LIBS="$X_LIBS -R $x_libraries"
13224 else
13225 echo "$ac_t""neither works" 1>&6
13226 fi
13227 fi
13228 LIBS="$ac_xsave_LIBS"
13229 esac
13230 fi
13231
13232 # Check for system-dependent libraries X programs must link with.
13233 # Do this before checking for the system-independent R6 libraries
13234 # (-lICE), since we may need -lsocket or whatever for X linking.
13235
13236 if test "$ISC" = yes; then
13237 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13238 else
13239 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13240 # libraries were built with DECnet support. And karl@cs.umb.edu says
13241 # the Alpha needs dnet_stub (dnet does not exist).
13242 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13243 echo "configure:13244: checking for dnet_ntoa in -ldnet" >&5
13244 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13246 echo $ac_n "(cached) $ac_c" 1>&6
13247 else
13248 ac_save_LIBS="$LIBS"
13249 LIBS="-ldnet $LIBS"
13250 cat > conftest.$ac_ext <<EOF
13251 #line 13252 "configure"
13252 #include "confdefs.h"
13253 /* Override any gcc2 internal prototype to avoid an error. */
13254 /* We use char because int might match the return type of a gcc2
13255 builtin and then its argument prototype would still apply. */
13256 char dnet_ntoa();
13257
13258 int main() {
13259 dnet_ntoa()
13260 ; return 0; }
13261 EOF
13262 if { (eval echo configure:13263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13263 rm -rf conftest*
13264 eval "ac_cv_lib_$ac_lib_var=yes"
13265 else
13266 echo "configure: failed program was:" >&5
13267 cat conftest.$ac_ext >&5
13268 rm -rf conftest*
13269 eval "ac_cv_lib_$ac_lib_var=no"
13270 fi
13271 rm -f conftest*
13272 LIBS="$ac_save_LIBS"
13273
13274 fi
13275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13276 echo "$ac_t""yes" 1>&6
13277 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13278 else
13279 echo "$ac_t""no" 1>&6
13280 fi
13281
13282 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13283 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13284 echo "configure:13285: checking for dnet_ntoa in -ldnet_stub" >&5
13285 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13287 echo $ac_n "(cached) $ac_c" 1>&6
13288 else
13289 ac_save_LIBS="$LIBS"
13290 LIBS="-ldnet_stub $LIBS"
13291 cat > conftest.$ac_ext <<EOF
13292 #line 13293 "configure"
13293 #include "confdefs.h"
13294 /* Override any gcc2 internal prototype to avoid an error. */
13295 /* We use char because int might match the return type of a gcc2
13296 builtin and then its argument prototype would still apply. */
13297 char dnet_ntoa();
13298
13299 int main() {
13300 dnet_ntoa()
13301 ; return 0; }
13302 EOF
13303 if { (eval echo configure:13304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13304 rm -rf conftest*
13305 eval "ac_cv_lib_$ac_lib_var=yes"
13306 else
13307 echo "configure: failed program was:" >&5
13308 cat conftest.$ac_ext >&5
13309 rm -rf conftest*
13310 eval "ac_cv_lib_$ac_lib_var=no"
13311 fi
13312 rm -f conftest*
13313 LIBS="$ac_save_LIBS"
13314
13315 fi
13316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13317 echo "$ac_t""yes" 1>&6
13318 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13319 else
13320 echo "$ac_t""no" 1>&6
13321 fi
13322
13323 fi
13324
13325 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13326 # to get the SysV transport functions.
13327 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13328 # needs -lnsl.
13329 # The nsl library prevents programs from opening the X display
13330 # on Irix 5.2, according to dickey@clark.net.
13331 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13332 echo "configure:13333: checking for gethostbyname" >&5
13333 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13334 echo $ac_n "(cached) $ac_c" 1>&6
13335 else
13336 cat > conftest.$ac_ext <<EOF
13337 #line 13338 "configure"
13338 #include "confdefs.h"
13339 /* System header to define __stub macros and hopefully few prototypes,
13340 which can conflict with char gethostbyname(); below. */
13341 #include <assert.h>
13342 /* Override any gcc2 internal prototype to avoid an error. */
13343 /* We use char because int might match the return type of a gcc2
13344 builtin and then its argument prototype would still apply. */
13345 char gethostbyname();
13346
13347 int main() {
13348
13349 /* The GNU C library defines this for functions which it implements
13350 to always fail with ENOSYS. Some functions are actually named
13351 something starting with __ and the normal name is an alias. */
13352 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13353 choke me
13354 #else
13355 gethostbyname();
13356 #endif
13357
13358 ; return 0; }
13359 EOF
13360 if { (eval echo configure:13361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13361 rm -rf conftest*
13362 eval "ac_cv_func_gethostbyname=yes"
13363 else
13364 echo "configure: failed program was:" >&5
13365 cat conftest.$ac_ext >&5
13366 rm -rf conftest*
13367 eval "ac_cv_func_gethostbyname=no"
13368 fi
13369 rm -f conftest*
13370 fi
13371
13372 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13373 echo "$ac_t""yes" 1>&6
13374 :
13375 else
13376 echo "$ac_t""no" 1>&6
13377 fi
13378
13379 if test $ac_cv_func_gethostbyname = no; then
13380 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13381 echo "configure:13382: checking for gethostbyname in -lnsl" >&5
13382 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13384 echo $ac_n "(cached) $ac_c" 1>&6
13385 else
13386 ac_save_LIBS="$LIBS"
13387 LIBS="-lnsl $LIBS"
13388 cat > conftest.$ac_ext <<EOF
13389 #line 13390 "configure"
13390 #include "confdefs.h"
13391 /* Override any gcc2 internal prototype to avoid an error. */
13392 /* We use char because int might match the return type of a gcc2
13393 builtin and then its argument prototype would still apply. */
13394 char gethostbyname();
13395
13396 int main() {
13397 gethostbyname()
13398 ; return 0; }
13399 EOF
13400 if { (eval echo configure:13401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13401 rm -rf conftest*
13402 eval "ac_cv_lib_$ac_lib_var=yes"
13403 else
13404 echo "configure: failed program was:" >&5
13405 cat conftest.$ac_ext >&5
13406 rm -rf conftest*
13407 eval "ac_cv_lib_$ac_lib_var=no"
13408 fi
13409 rm -f conftest*
13410 LIBS="$ac_save_LIBS"
13411
13412 fi
13413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13414 echo "$ac_t""yes" 1>&6
13415 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13416 else
13417 echo "$ac_t""no" 1>&6
13418 fi
13419
13420 fi
13421
13422 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13423 # socket/setsockopt and other routines are undefined under SCO ODT
13424 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13425 # on later versions), says simon@lia.di.epfl.ch: it contains
13426 # gethostby* variants that don't use the nameserver (or something).
13427 # -lsocket must be given before -lnsl if both are needed.
13428 # We assume that if connect needs -lnsl, so does gethostbyname.
13429 echo $ac_n "checking for connect""... $ac_c" 1>&6
13430 echo "configure:13431: checking for connect" >&5
13431 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13432 echo $ac_n "(cached) $ac_c" 1>&6
13433 else
13434 cat > conftest.$ac_ext <<EOF
13435 #line 13436 "configure"
13436 #include "confdefs.h"
13437 /* System header to define __stub macros and hopefully few prototypes,
13438 which can conflict with char connect(); below. */
13439 #include <assert.h>
13440 /* Override any gcc2 internal prototype to avoid an error. */
13441 /* We use char because int might match the return type of a gcc2
13442 builtin and then its argument prototype would still apply. */
13443 char connect();
13444
13445 int main() {
13446
13447 /* The GNU C library defines this for functions which it implements
13448 to always fail with ENOSYS. Some functions are actually named
13449 something starting with __ and the normal name is an alias. */
13450 #if defined (__stub_connect) || defined (__stub___connect)
13451 choke me
13452 #else
13453 connect();
13454 #endif
13455
13456 ; return 0; }
13457 EOF
13458 if { (eval echo configure:13459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13459 rm -rf conftest*
13460 eval "ac_cv_func_connect=yes"
13461 else
13462 echo "configure: failed program was:" >&5
13463 cat conftest.$ac_ext >&5
13464 rm -rf conftest*
13465 eval "ac_cv_func_connect=no"
13466 fi
13467 rm -f conftest*
13468 fi
13469
13470 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13471 echo "$ac_t""yes" 1>&6
13472 :
13473 else
13474 echo "$ac_t""no" 1>&6
13475 fi
13476
13477 if test $ac_cv_func_connect = no; then
13478 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13479 echo "configure:13480: checking for connect in -lsocket" >&5
13480 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13481 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13482 echo $ac_n "(cached) $ac_c" 1>&6
13483 else
13484 ac_save_LIBS="$LIBS"
13485 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13486 cat > conftest.$ac_ext <<EOF
13487 #line 13488 "configure"
13488 #include "confdefs.h"
13489 /* Override any gcc2 internal prototype to avoid an error. */
13490 /* We use char because int might match the return type of a gcc2
13491 builtin and then its argument prototype would still apply. */
13492 char connect();
13493
13494 int main() {
13495 connect()
13496 ; return 0; }
13497 EOF
13498 if { (eval echo configure:13499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13499 rm -rf conftest*
13500 eval "ac_cv_lib_$ac_lib_var=yes"
13501 else
13502 echo "configure: failed program was:" >&5
13503 cat conftest.$ac_ext >&5
13504 rm -rf conftest*
13505 eval "ac_cv_lib_$ac_lib_var=no"
13506 fi
13507 rm -f conftest*
13508 LIBS="$ac_save_LIBS"
13509
13510 fi
13511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13512 echo "$ac_t""yes" 1>&6
13513 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13514 else
13515 echo "$ac_t""no" 1>&6
13516 fi
13517
13518 fi
13519
13520 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13521 echo $ac_n "checking for remove""... $ac_c" 1>&6
13522 echo "configure:13523: checking for remove" >&5
13523 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13524 echo $ac_n "(cached) $ac_c" 1>&6
13525 else
13526 cat > conftest.$ac_ext <<EOF
13527 #line 13528 "configure"
13528 #include "confdefs.h"
13529 /* System header to define __stub macros and hopefully few prototypes,
13530 which can conflict with char remove(); below. */
13531 #include <assert.h>
13532 /* Override any gcc2 internal prototype to avoid an error. */
13533 /* We use char because int might match the return type of a gcc2
13534 builtin and then its argument prototype would still apply. */
13535 char remove();
13536
13537 int main() {
13538
13539 /* The GNU C library defines this for functions which it implements
13540 to always fail with ENOSYS. Some functions are actually named
13541 something starting with __ and the normal name is an alias. */
13542 #if defined (__stub_remove) || defined (__stub___remove)
13543 choke me
13544 #else
13545 remove();
13546 #endif
13547
13548 ; return 0; }
13549 EOF
13550 if { (eval echo configure:13551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13551 rm -rf conftest*
13552 eval "ac_cv_func_remove=yes"
13553 else
13554 echo "configure: failed program was:" >&5
13555 cat conftest.$ac_ext >&5
13556 rm -rf conftest*
13557 eval "ac_cv_func_remove=no"
13558 fi
13559 rm -f conftest*
13560 fi
13561
13562 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13563 echo "$ac_t""yes" 1>&6
13564 :
13565 else
13566 echo "$ac_t""no" 1>&6
13567 fi
13568
13569 if test $ac_cv_func_remove = no; then
13570 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
13571 echo "configure:13572: checking for remove in -lposix" >&5
13572 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13573 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13574 echo $ac_n "(cached) $ac_c" 1>&6
13575 else
13576 ac_save_LIBS="$LIBS"
13577 LIBS="-lposix $LIBS"
13578 cat > conftest.$ac_ext <<EOF
13579 #line 13580 "configure"
13580 #include "confdefs.h"
13581 /* Override any gcc2 internal prototype to avoid an error. */
13582 /* We use char because int might match the return type of a gcc2
13583 builtin and then its argument prototype would still apply. */
13584 char remove();
13585
13586 int main() {
13587 remove()
13588 ; return 0; }
13589 EOF
13590 if { (eval echo configure:13591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13591 rm -rf conftest*
13592 eval "ac_cv_lib_$ac_lib_var=yes"
13593 else
13594 echo "configure: failed program was:" >&5
13595 cat conftest.$ac_ext >&5
13596 rm -rf conftest*
13597 eval "ac_cv_lib_$ac_lib_var=no"
13598 fi
13599 rm -f conftest*
13600 LIBS="$ac_save_LIBS"
13601
13602 fi
13603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13604 echo "$ac_t""yes" 1>&6
13605 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13606 else
13607 echo "$ac_t""no" 1>&6
13608 fi
13609
13610 fi
13611
13612 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13613 echo $ac_n "checking for shmat""... $ac_c" 1>&6
13614 echo "configure:13615: checking for shmat" >&5
13615 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13616 echo $ac_n "(cached) $ac_c" 1>&6
13617 else
13618 cat > conftest.$ac_ext <<EOF
13619 #line 13620 "configure"
13620 #include "confdefs.h"
13621 /* System header to define __stub macros and hopefully few prototypes,
13622 which can conflict with char shmat(); below. */
13623 #include <assert.h>
13624 /* Override any gcc2 internal prototype to avoid an error. */
13625 /* We use char because int might match the return type of a gcc2
13626 builtin and then its argument prototype would still apply. */
13627 char shmat();
13628
13629 int main() {
13630
13631 /* The GNU C library defines this for functions which it implements
13632 to always fail with ENOSYS. Some functions are actually named
13633 something starting with __ and the normal name is an alias. */
13634 #if defined (__stub_shmat) || defined (__stub___shmat)
13635 choke me
13636 #else
13637 shmat();
13638 #endif
13639
13640 ; return 0; }
13641 EOF
13642 if { (eval echo configure:13643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13643 rm -rf conftest*
13644 eval "ac_cv_func_shmat=yes"
13645 else
13646 echo "configure: failed program was:" >&5
13647 cat conftest.$ac_ext >&5
13648 rm -rf conftest*
13649 eval "ac_cv_func_shmat=no"
13650 fi
13651 rm -f conftest*
13652 fi
13653
13654 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13655 echo "$ac_t""yes" 1>&6
13656 :
13657 else
13658 echo "$ac_t""no" 1>&6
13659 fi
13660
13661 if test $ac_cv_func_shmat = no; then
13662 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
13663 echo "configure:13664: checking for shmat in -lipc" >&5
13664 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13666 echo $ac_n "(cached) $ac_c" 1>&6
13667 else
13668 ac_save_LIBS="$LIBS"
13669 LIBS="-lipc $LIBS"
13670 cat > conftest.$ac_ext <<EOF
13671 #line 13672 "configure"
13672 #include "confdefs.h"
13673 /* Override any gcc2 internal prototype to avoid an error. */
13674 /* We use char because int might match the return type of a gcc2
13675 builtin and then its argument prototype would still apply. */
13676 char shmat();
13677
13678 int main() {
13679 shmat()
13680 ; return 0; }
13681 EOF
13682 if { (eval echo configure:13683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13683 rm -rf conftest*
13684 eval "ac_cv_lib_$ac_lib_var=yes"
13685 else
13686 echo "configure: failed program was:" >&5
13687 cat conftest.$ac_ext >&5
13688 rm -rf conftest*
13689 eval "ac_cv_lib_$ac_lib_var=no"
13690 fi
13691 rm -f conftest*
13692 LIBS="$ac_save_LIBS"
13693
13694 fi
13695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13696 echo "$ac_t""yes" 1>&6
13697 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13698 else
13699 echo "$ac_t""no" 1>&6
13700 fi
13701
13702 fi
13703 fi
13704
13705 # Check for libraries that X11R6 Xt/Xaw programs need.
13706 ac_save_LDFLAGS="$LDFLAGS"
13707 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13708 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13709 # check for ICE first), but we must link in the order -lSM -lICE or
13710 # we get undefined symbols. So assume we have SM if we have ICE.
13711 # These have to be linked with before -lX11, unlike the other
13712 # libraries we check for below, so use a different variable.
13713 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13714 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
13715 echo "configure:13716: checking for IceConnectionNumber in -lICE" >&5
13716 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13718 echo $ac_n "(cached) $ac_c" 1>&6
13719 else
13720 ac_save_LIBS="$LIBS"
13721 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13722 cat > conftest.$ac_ext <<EOF
13723 #line 13724 "configure"
13724 #include "confdefs.h"
13725 /* Override any gcc2 internal prototype to avoid an error. */
13726 /* We use char because int might match the return type of a gcc2
13727 builtin and then its argument prototype would still apply. */
13728 char IceConnectionNumber();
13729
13730 int main() {
13731 IceConnectionNumber()
13732 ; return 0; }
13733 EOF
13734 if { (eval echo configure:13735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13735 rm -rf conftest*
13736 eval "ac_cv_lib_$ac_lib_var=yes"
13737 else
13738 echo "configure: failed program was:" >&5
13739 cat conftest.$ac_ext >&5
13740 rm -rf conftest*
13741 eval "ac_cv_lib_$ac_lib_var=no"
13742 fi
13743 rm -f conftest*
13744 LIBS="$ac_save_LIBS"
13745
13746 fi
13747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13748 echo "$ac_t""yes" 1>&6
13749 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13750 else
13751 echo "$ac_t""no" 1>&6
13752 fi
13753
13754 LDFLAGS="$ac_save_LDFLAGS"
13755
13756 fi
13757
13758
13759 if test "$no_x" = "yes"; then
13760 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13761 fi
13762
13763 GUI_TK_LIBRARY="$X_LIBS"
13764 TOOLKIT_INCLUDE="$X_CFLAGS"
13765 AFMINSTALL=afminstall
13766 COMPILED_X_PROGRAM=0
13767
13768 if test "$wxUSE_NANOX" = "yes"; then
13769 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
13770 echo "configure:13771: checking for MicroWindows/NanoX distribution" >&5
13771 if test "x$MICROWIN" = x ; then
13772 echo "$ac_t""not found" 1>&6
13773 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
13774 else
13775 echo "$ac_t""$MICROWIN" 1>&6
13776 cat >> confdefs.h <<\EOF
13777 #define wxUSE_NANOX 1
13778 EOF
13779
13780 fi
13781 fi
13782
13783 xpm_link=
13784 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13785 echo "configure:13786: checking for Xpm library" >&5
13786
13787 ac_find_libraries=
13788 for ac_dir in $SEARCH_LIB;
13789 do
13790 for ac_extension in a so sl dylib; do
13791 if test -f "$ac_dir/libXpm.$ac_extension"; then
13792 ac_find_libraries=$ac_dir
13793 break 2
13794 fi
13795 done
13796 done
13797
13798 if test "$ac_find_libraries" != "" ; then
13799
13800 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13801 result=$?
13802 if test $result = 0; then
13803 ac_path_to_link=""
13804 else
13805 ac_path_to_link=" -L$ac_find_libraries"
13806 fi
13807
13808 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13809 xpm_link=" -lXpm"
13810 cat >> confdefs.h <<\EOF
13811 #define wxHAVE_LIB_XPM 1
13812 EOF
13813
13814 echo "$ac_t""found at $ac_find_libraries" 1>&6
13815 else
13816 cat > conftest.$ac_ext <<EOF
13817 #line 13818 "configure"
13818 #include "confdefs.h"
13819
13820 #include <X11/xpm.h>
13821
13822 int main() {
13823
13824 int version;
13825 version = XpmLibraryVersion();
13826
13827 ; return 0; }
13828 EOF
13829 if { (eval echo configure:13830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13830 rm -rf conftest*
13831
13832 xpm_link=" -lXpm"
13833 cat >> confdefs.h <<\EOF
13834 #define wxHAVE_LIB_XPM 1
13835 EOF
13836
13837 echo "$ac_t""found in default search path" 1>&6
13838 COMPILED_X_PROGRAM=0
13839
13840 else
13841 echo "configure: failed program was:" >&5
13842 cat conftest.$ac_ext >&5
13843 rm -rf conftest*
13844
13845 echo "$ac_t""no" 1>&6
13846 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13847
13848
13849 fi
13850 rm -f conftest*
13851 fi
13852
13853 wxUSE_UNIVERSAL="yes"
13854
13855 if test "$wxUSE_NANOX" = "yes"; then
13856 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13857 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"
13858 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13859 else
13860 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13861 fi
13862
13863 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13864 TOOLKIT=X11
13865 GUIDIST=X11_DIST
13866 fi
13867
13868 if test "$wxUSE_WINE" = 1; then
13869 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13870 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
13871 echo "configure:13872: checking for windows.h" >&5
13872 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13873 echo $ac_n "(cached) $ac_c" 1>&6
13874 else
13875 cat > conftest.$ac_ext <<EOF
13876 #line 13877 "configure"
13877 #include "confdefs.h"
13878 #include <windows.h>
13879 EOF
13880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13881 { (eval echo configure:13882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13883 if test -z "$ac_err"; then
13884 rm -rf conftest*
13885 eval "ac_cv_header_$ac_safe=yes"
13886 else
13887 echo "$ac_err" >&5
13888 echo "configure: failed program was:" >&5
13889 cat conftest.$ac_ext >&5
13890 rm -rf conftest*
13891 eval "ac_cv_header_$ac_safe=no"
13892 fi
13893 rm -f conftest*
13894 fi
13895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13896 echo "$ac_t""yes" 1>&6
13897 :
13898 else
13899 echo "$ac_t""no" 1>&6
13900
13901 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13902
13903 fi
13904
13905
13906 xpm_link=
13907 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13908 echo "configure:13909: checking for Xpm library" >&5
13909
13910 ac_find_libraries=
13911 for ac_dir in $SEARCH_LIB;
13912 do
13913 for ac_extension in a so sl dylib; do
13914 if test -f "$ac_dir/libXpm.$ac_extension"; then
13915 ac_find_libraries=$ac_dir
13916 break 2
13917 fi
13918 done
13919 done
13920
13921 if test "$ac_find_libraries" != "" ; then
13922 GUI_TK_LIBRARY="-L$ac_find_libraries"
13923 xpm_link=" -lXpm"
13924 cat >> confdefs.h <<\EOF
13925 #define wxHAVE_LIB_XPM 1
13926 EOF
13927
13928 echo "$ac_t""found at $ac_find_libraries" 1>&6
13929 else
13930 echo "$ac_t""no" 1>&6
13931 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13932 fi
13933
13934 mesa_link=
13935 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
13936 echo "configure:13937: checking for Mesa library" >&5
13937
13938 ac_find_libraries=
13939 for ac_dir in $SEARCH_LIB;
13940 do
13941 for ac_extension in a so sl dylib; do
13942 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13943 ac_find_libraries=$ac_dir
13944 break 2
13945 fi
13946 done
13947 done
13948
13949 if test "$ac_find_libraries" != "" ; then
13950 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13951 mesa_link=" -lMesaGL"
13952 echo "$ac_t""found at $ac_find_libraries" 1>&6
13953 else
13954 { echo "configure: error: no" 1>&2; exit 1; }
13955 fi
13956
13957 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13958 TOOLKIT=MSW
13959 GUIDIST=MSW_DIST
13960 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13961 fi
13962
13963 if test "$wxUSE_MOTIF" = 1; then
13964 if test "$no_x" = yes; then
13965 # Not all programs may use this symbol, but it does not hurt to define it.
13966 cat >> confdefs.h <<\EOF
13967 #define X_DISPLAY_MISSING 1
13968 EOF
13969
13970 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13971 else
13972 if test -n "$x_includes"; then
13973 X_CFLAGS="$X_CFLAGS -I$x_includes"
13974 fi
13975
13976 # It would also be nice to do this for all -L options, not just this one.
13977 if test -n "$x_libraries"; then
13978 X_LIBS="$X_LIBS -L$x_libraries"
13979 # For Solaris; some versions of Sun CC require a space after -R and
13980 # others require no space. Words are not sufficient . . . .
13981 case "`(uname -sr) 2>/dev/null`" in
13982 "SunOS 5"*)
13983 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13984 echo "configure:13985: checking whether -R must be followed by a space" >&5
13985 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13986 cat > conftest.$ac_ext <<EOF
13987 #line 13988 "configure"
13988 #include "confdefs.h"
13989
13990 int main() {
13991
13992 ; return 0; }
13993 EOF
13994 if { (eval echo configure:13995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13995 rm -rf conftest*
13996 ac_R_nospace=yes
13997 else
13998 echo "configure: failed program was:" >&5
13999 cat conftest.$ac_ext >&5
14000 rm -rf conftest*
14001 ac_R_nospace=no
14002 fi
14003 rm -f conftest*
14004 if test $ac_R_nospace = yes; then
14005 echo "$ac_t""no" 1>&6
14006 X_LIBS="$X_LIBS -R$x_libraries"
14007 else
14008 LIBS="$ac_xsave_LIBS -R $x_libraries"
14009 cat > conftest.$ac_ext <<EOF
14010 #line 14011 "configure"
14011 #include "confdefs.h"
14012
14013 int main() {
14014
14015 ; return 0; }
14016 EOF
14017 if { (eval echo configure:14018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14018 rm -rf conftest*
14019 ac_R_space=yes
14020 else
14021 echo "configure: failed program was:" >&5
14022 cat conftest.$ac_ext >&5
14023 rm -rf conftest*
14024 ac_R_space=no
14025 fi
14026 rm -f conftest*
14027 if test $ac_R_space = yes; then
14028 echo "$ac_t""yes" 1>&6
14029 X_LIBS="$X_LIBS -R $x_libraries"
14030 else
14031 echo "$ac_t""neither works" 1>&6
14032 fi
14033 fi
14034 LIBS="$ac_xsave_LIBS"
14035 esac
14036 fi
14037
14038 # Check for system-dependent libraries X programs must link with.
14039 # Do this before checking for the system-independent R6 libraries
14040 # (-lICE), since we may need -lsocket or whatever for X linking.
14041
14042 if test "$ISC" = yes; then
14043 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14044 else
14045 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14046 # libraries were built with DECnet support. And karl@cs.umb.edu says
14047 # the Alpha needs dnet_stub (dnet does not exist).
14048 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14049 echo "configure:14050: checking for dnet_ntoa in -ldnet" >&5
14050 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14052 echo $ac_n "(cached) $ac_c" 1>&6
14053 else
14054 ac_save_LIBS="$LIBS"
14055 LIBS="-ldnet $LIBS"
14056 cat > conftest.$ac_ext <<EOF
14057 #line 14058 "configure"
14058 #include "confdefs.h"
14059 /* Override any gcc2 internal prototype to avoid an error. */
14060 /* We use char because int might match the return type of a gcc2
14061 builtin and then its argument prototype would still apply. */
14062 char dnet_ntoa();
14063
14064 int main() {
14065 dnet_ntoa()
14066 ; return 0; }
14067 EOF
14068 if { (eval echo configure:14069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14069 rm -rf conftest*
14070 eval "ac_cv_lib_$ac_lib_var=yes"
14071 else
14072 echo "configure: failed program was:" >&5
14073 cat conftest.$ac_ext >&5
14074 rm -rf conftest*
14075 eval "ac_cv_lib_$ac_lib_var=no"
14076 fi
14077 rm -f conftest*
14078 LIBS="$ac_save_LIBS"
14079
14080 fi
14081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14082 echo "$ac_t""yes" 1>&6
14083 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14084 else
14085 echo "$ac_t""no" 1>&6
14086 fi
14087
14088 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14089 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14090 echo "configure:14091: checking for dnet_ntoa in -ldnet_stub" >&5
14091 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14093 echo $ac_n "(cached) $ac_c" 1>&6
14094 else
14095 ac_save_LIBS="$LIBS"
14096 LIBS="-ldnet_stub $LIBS"
14097 cat > conftest.$ac_ext <<EOF
14098 #line 14099 "configure"
14099 #include "confdefs.h"
14100 /* Override any gcc2 internal prototype to avoid an error. */
14101 /* We use char because int might match the return type of a gcc2
14102 builtin and then its argument prototype would still apply. */
14103 char dnet_ntoa();
14104
14105 int main() {
14106 dnet_ntoa()
14107 ; return 0; }
14108 EOF
14109 if { (eval echo configure:14110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14110 rm -rf conftest*
14111 eval "ac_cv_lib_$ac_lib_var=yes"
14112 else
14113 echo "configure: failed program was:" >&5
14114 cat conftest.$ac_ext >&5
14115 rm -rf conftest*
14116 eval "ac_cv_lib_$ac_lib_var=no"
14117 fi
14118 rm -f conftest*
14119 LIBS="$ac_save_LIBS"
14120
14121 fi
14122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14123 echo "$ac_t""yes" 1>&6
14124 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14125 else
14126 echo "$ac_t""no" 1>&6
14127 fi
14128
14129 fi
14130
14131 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14132 # to get the SysV transport functions.
14133 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14134 # needs -lnsl.
14135 # The nsl library prevents programs from opening the X display
14136 # on Irix 5.2, according to dickey@clark.net.
14137 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14138 echo "configure:14139: checking for gethostbyname" >&5
14139 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14140 echo $ac_n "(cached) $ac_c" 1>&6
14141 else
14142 cat > conftest.$ac_ext <<EOF
14143 #line 14144 "configure"
14144 #include "confdefs.h"
14145 /* System header to define __stub macros and hopefully few prototypes,
14146 which can conflict with char gethostbyname(); below. */
14147 #include <assert.h>
14148 /* Override any gcc2 internal prototype to avoid an error. */
14149 /* We use char because int might match the return type of a gcc2
14150 builtin and then its argument prototype would still apply. */
14151 char gethostbyname();
14152
14153 int main() {
14154
14155 /* The GNU C library defines this for functions which it implements
14156 to always fail with ENOSYS. Some functions are actually named
14157 something starting with __ and the normal name is an alias. */
14158 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14159 choke me
14160 #else
14161 gethostbyname();
14162 #endif
14163
14164 ; return 0; }
14165 EOF
14166 if { (eval echo configure:14167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14167 rm -rf conftest*
14168 eval "ac_cv_func_gethostbyname=yes"
14169 else
14170 echo "configure: failed program was:" >&5
14171 cat conftest.$ac_ext >&5
14172 rm -rf conftest*
14173 eval "ac_cv_func_gethostbyname=no"
14174 fi
14175 rm -f conftest*
14176 fi
14177
14178 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14179 echo "$ac_t""yes" 1>&6
14180 :
14181 else
14182 echo "$ac_t""no" 1>&6
14183 fi
14184
14185 if test $ac_cv_func_gethostbyname = no; then
14186 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14187 echo "configure:14188: checking for gethostbyname in -lnsl" >&5
14188 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14190 echo $ac_n "(cached) $ac_c" 1>&6
14191 else
14192 ac_save_LIBS="$LIBS"
14193 LIBS="-lnsl $LIBS"
14194 cat > conftest.$ac_ext <<EOF
14195 #line 14196 "configure"
14196 #include "confdefs.h"
14197 /* Override any gcc2 internal prototype to avoid an error. */
14198 /* We use char because int might match the return type of a gcc2
14199 builtin and then its argument prototype would still apply. */
14200 char gethostbyname();
14201
14202 int main() {
14203 gethostbyname()
14204 ; return 0; }
14205 EOF
14206 if { (eval echo configure:14207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14207 rm -rf conftest*
14208 eval "ac_cv_lib_$ac_lib_var=yes"
14209 else
14210 echo "configure: failed program was:" >&5
14211 cat conftest.$ac_ext >&5
14212 rm -rf conftest*
14213 eval "ac_cv_lib_$ac_lib_var=no"
14214 fi
14215 rm -f conftest*
14216 LIBS="$ac_save_LIBS"
14217
14218 fi
14219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14220 echo "$ac_t""yes" 1>&6
14221 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14222 else
14223 echo "$ac_t""no" 1>&6
14224 fi
14225
14226 fi
14227
14228 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14229 # socket/setsockopt and other routines are undefined under SCO ODT
14230 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14231 # on later versions), says simon@lia.di.epfl.ch: it contains
14232 # gethostby* variants that don't use the nameserver (or something).
14233 # -lsocket must be given before -lnsl if both are needed.
14234 # We assume that if connect needs -lnsl, so does gethostbyname.
14235 echo $ac_n "checking for connect""... $ac_c" 1>&6
14236 echo "configure:14237: checking for connect" >&5
14237 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14238 echo $ac_n "(cached) $ac_c" 1>&6
14239 else
14240 cat > conftest.$ac_ext <<EOF
14241 #line 14242 "configure"
14242 #include "confdefs.h"
14243 /* System header to define __stub macros and hopefully few prototypes,
14244 which can conflict with char connect(); below. */
14245 #include <assert.h>
14246 /* Override any gcc2 internal prototype to avoid an error. */
14247 /* We use char because int might match the return type of a gcc2
14248 builtin and then its argument prototype would still apply. */
14249 char connect();
14250
14251 int main() {
14252
14253 /* The GNU C library defines this for functions which it implements
14254 to always fail with ENOSYS. Some functions are actually named
14255 something starting with __ and the normal name is an alias. */
14256 #if defined (__stub_connect) || defined (__stub___connect)
14257 choke me
14258 #else
14259 connect();
14260 #endif
14261
14262 ; return 0; }
14263 EOF
14264 if { (eval echo configure:14265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14265 rm -rf conftest*
14266 eval "ac_cv_func_connect=yes"
14267 else
14268 echo "configure: failed program was:" >&5
14269 cat conftest.$ac_ext >&5
14270 rm -rf conftest*
14271 eval "ac_cv_func_connect=no"
14272 fi
14273 rm -f conftest*
14274 fi
14275
14276 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14277 echo "$ac_t""yes" 1>&6
14278 :
14279 else
14280 echo "$ac_t""no" 1>&6
14281 fi
14282
14283 if test $ac_cv_func_connect = no; then
14284 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14285 echo "configure:14286: checking for connect in -lsocket" >&5
14286 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14288 echo $ac_n "(cached) $ac_c" 1>&6
14289 else
14290 ac_save_LIBS="$LIBS"
14291 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14292 cat > conftest.$ac_ext <<EOF
14293 #line 14294 "configure"
14294 #include "confdefs.h"
14295 /* Override any gcc2 internal prototype to avoid an error. */
14296 /* We use char because int might match the return type of a gcc2
14297 builtin and then its argument prototype would still apply. */
14298 char connect();
14299
14300 int main() {
14301 connect()
14302 ; return 0; }
14303 EOF
14304 if { (eval echo configure:14305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14305 rm -rf conftest*
14306 eval "ac_cv_lib_$ac_lib_var=yes"
14307 else
14308 echo "configure: failed program was:" >&5
14309 cat conftest.$ac_ext >&5
14310 rm -rf conftest*
14311 eval "ac_cv_lib_$ac_lib_var=no"
14312 fi
14313 rm -f conftest*
14314 LIBS="$ac_save_LIBS"
14315
14316 fi
14317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14318 echo "$ac_t""yes" 1>&6
14319 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14320 else
14321 echo "$ac_t""no" 1>&6
14322 fi
14323
14324 fi
14325
14326 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14327 echo $ac_n "checking for remove""... $ac_c" 1>&6
14328 echo "configure:14329: checking for remove" >&5
14329 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14330 echo $ac_n "(cached) $ac_c" 1>&6
14331 else
14332 cat > conftest.$ac_ext <<EOF
14333 #line 14334 "configure"
14334 #include "confdefs.h"
14335 /* System header to define __stub macros and hopefully few prototypes,
14336 which can conflict with char remove(); below. */
14337 #include <assert.h>
14338 /* Override any gcc2 internal prototype to avoid an error. */
14339 /* We use char because int might match the return type of a gcc2
14340 builtin and then its argument prototype would still apply. */
14341 char remove();
14342
14343 int main() {
14344
14345 /* The GNU C library defines this for functions which it implements
14346 to always fail with ENOSYS. Some functions are actually named
14347 something starting with __ and the normal name is an alias. */
14348 #if defined (__stub_remove) || defined (__stub___remove)
14349 choke me
14350 #else
14351 remove();
14352 #endif
14353
14354 ; return 0; }
14355 EOF
14356 if { (eval echo configure:14357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14357 rm -rf conftest*
14358 eval "ac_cv_func_remove=yes"
14359 else
14360 echo "configure: failed program was:" >&5
14361 cat conftest.$ac_ext >&5
14362 rm -rf conftest*
14363 eval "ac_cv_func_remove=no"
14364 fi
14365 rm -f conftest*
14366 fi
14367
14368 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14369 echo "$ac_t""yes" 1>&6
14370 :
14371 else
14372 echo "$ac_t""no" 1>&6
14373 fi
14374
14375 if test $ac_cv_func_remove = no; then
14376 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14377 echo "configure:14378: checking for remove in -lposix" >&5
14378 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14380 echo $ac_n "(cached) $ac_c" 1>&6
14381 else
14382 ac_save_LIBS="$LIBS"
14383 LIBS="-lposix $LIBS"
14384 cat > conftest.$ac_ext <<EOF
14385 #line 14386 "configure"
14386 #include "confdefs.h"
14387 /* Override any gcc2 internal prototype to avoid an error. */
14388 /* We use char because int might match the return type of a gcc2
14389 builtin and then its argument prototype would still apply. */
14390 char remove();
14391
14392 int main() {
14393 remove()
14394 ; return 0; }
14395 EOF
14396 if { (eval echo configure:14397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14397 rm -rf conftest*
14398 eval "ac_cv_lib_$ac_lib_var=yes"
14399 else
14400 echo "configure: failed program was:" >&5
14401 cat conftest.$ac_ext >&5
14402 rm -rf conftest*
14403 eval "ac_cv_lib_$ac_lib_var=no"
14404 fi
14405 rm -f conftest*
14406 LIBS="$ac_save_LIBS"
14407
14408 fi
14409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14410 echo "$ac_t""yes" 1>&6
14411 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14412 else
14413 echo "$ac_t""no" 1>&6
14414 fi
14415
14416 fi
14417
14418 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14419 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14420 echo "configure:14421: checking for shmat" >&5
14421 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14422 echo $ac_n "(cached) $ac_c" 1>&6
14423 else
14424 cat > conftest.$ac_ext <<EOF
14425 #line 14426 "configure"
14426 #include "confdefs.h"
14427 /* System header to define __stub macros and hopefully few prototypes,
14428 which can conflict with char shmat(); below. */
14429 #include <assert.h>
14430 /* Override any gcc2 internal prototype to avoid an error. */
14431 /* We use char because int might match the return type of a gcc2
14432 builtin and then its argument prototype would still apply. */
14433 char shmat();
14434
14435 int main() {
14436
14437 /* The GNU C library defines this for functions which it implements
14438 to always fail with ENOSYS. Some functions are actually named
14439 something starting with __ and the normal name is an alias. */
14440 #if defined (__stub_shmat) || defined (__stub___shmat)
14441 choke me
14442 #else
14443 shmat();
14444 #endif
14445
14446 ; return 0; }
14447 EOF
14448 if { (eval echo configure:14449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14449 rm -rf conftest*
14450 eval "ac_cv_func_shmat=yes"
14451 else
14452 echo "configure: failed program was:" >&5
14453 cat conftest.$ac_ext >&5
14454 rm -rf conftest*
14455 eval "ac_cv_func_shmat=no"
14456 fi
14457 rm -f conftest*
14458 fi
14459
14460 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14461 echo "$ac_t""yes" 1>&6
14462 :
14463 else
14464 echo "$ac_t""no" 1>&6
14465 fi
14466
14467 if test $ac_cv_func_shmat = no; then
14468 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14469 echo "configure:14470: checking for shmat in -lipc" >&5
14470 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14472 echo $ac_n "(cached) $ac_c" 1>&6
14473 else
14474 ac_save_LIBS="$LIBS"
14475 LIBS="-lipc $LIBS"
14476 cat > conftest.$ac_ext <<EOF
14477 #line 14478 "configure"
14478 #include "confdefs.h"
14479 /* Override any gcc2 internal prototype to avoid an error. */
14480 /* We use char because int might match the return type of a gcc2
14481 builtin and then its argument prototype would still apply. */
14482 char shmat();
14483
14484 int main() {
14485 shmat()
14486 ; return 0; }
14487 EOF
14488 if { (eval echo configure:14489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14489 rm -rf conftest*
14490 eval "ac_cv_lib_$ac_lib_var=yes"
14491 else
14492 echo "configure: failed program was:" >&5
14493 cat conftest.$ac_ext >&5
14494 rm -rf conftest*
14495 eval "ac_cv_lib_$ac_lib_var=no"
14496 fi
14497 rm -f conftest*
14498 LIBS="$ac_save_LIBS"
14499
14500 fi
14501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14502 echo "$ac_t""yes" 1>&6
14503 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14504 else
14505 echo "$ac_t""no" 1>&6
14506 fi
14507
14508 fi
14509 fi
14510
14511 # Check for libraries that X11R6 Xt/Xaw programs need.
14512 ac_save_LDFLAGS="$LDFLAGS"
14513 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14514 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14515 # check for ICE first), but we must link in the order -lSM -lICE or
14516 # we get undefined symbols. So assume we have SM if we have ICE.
14517 # These have to be linked with before -lX11, unlike the other
14518 # libraries we check for below, so use a different variable.
14519 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14520 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14521 echo "configure:14522: checking for IceConnectionNumber in -lICE" >&5
14522 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14524 echo $ac_n "(cached) $ac_c" 1>&6
14525 else
14526 ac_save_LIBS="$LIBS"
14527 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14528 cat > conftest.$ac_ext <<EOF
14529 #line 14530 "configure"
14530 #include "confdefs.h"
14531 /* Override any gcc2 internal prototype to avoid an error. */
14532 /* We use char because int might match the return type of a gcc2
14533 builtin and then its argument prototype would still apply. */
14534 char IceConnectionNumber();
14535
14536 int main() {
14537 IceConnectionNumber()
14538 ; return 0; }
14539 EOF
14540 if { (eval echo configure:14541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14541 rm -rf conftest*
14542 eval "ac_cv_lib_$ac_lib_var=yes"
14543 else
14544 echo "configure: failed program was:" >&5
14545 cat conftest.$ac_ext >&5
14546 rm -rf conftest*
14547 eval "ac_cv_lib_$ac_lib_var=no"
14548 fi
14549 rm -f conftest*
14550 LIBS="$ac_save_LIBS"
14551
14552 fi
14553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14554 echo "$ac_t""yes" 1>&6
14555 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14556 else
14557 echo "$ac_t""no" 1>&6
14558 fi
14559
14560 LDFLAGS="$ac_save_LDFLAGS"
14561
14562 fi
14563
14564
14565 if test "$no_x" = "yes"; then
14566 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14567 fi
14568
14569 GUI_TK_LIBRARY="$X_LIBS"
14570 TOOLKIT_INCLUDE="$X_CFLAGS"
14571 AFMINSTALL=afminstall
14572 COMPILED_X_PROGRAM=0
14573
14574 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
14575 echo "configure:14576: checking for Motif/Lesstif headers" >&5
14576
14577 ac_find_includes=
14578 for ac_dir in $SEARCH_INCLUDE;
14579 do
14580 if test -f "$ac_dir/Xm/Xm.h"; then
14581 ac_find_includes=$ac_dir
14582 break
14583 fi
14584 done
14585
14586 if test "$ac_find_includes" != "" ; then
14587 echo "$ac_t""found in $ac_find_includes" 1>&6
14588
14589 ac_path_to_include=$ac_find_includes
14590 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14591 result=$?
14592 if test $result = 0; then
14593 ac_path_to_include=""
14594 else
14595 ac_path_to_include=" -I$ac_find_includes"
14596 fi
14597
14598 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14599 else
14600 cat > conftest.$ac_ext <<EOF
14601 #line 14602 "configure"
14602 #include "confdefs.h"
14603
14604 #include <Xm/Xm.h>
14605
14606 int main() {
14607
14608 int version;
14609 version = xmUseVersion;
14610
14611 ; return 0; }
14612 EOF
14613 if { (eval echo configure:14614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14614 rm -rf conftest*
14615
14616 echo "$ac_t""found in default search path" 1>&6
14617 COMPILED_X_PROGRAM=1
14618
14619 else
14620 echo "configure: failed program was:" >&5
14621 cat conftest.$ac_ext >&5
14622 rm -rf conftest*
14623
14624 echo "$ac_t""no" 1>&6
14625 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14626
14627
14628 fi
14629 rm -f conftest*
14630 fi
14631
14632 if test "$COMPILED_X_PROGRAM" = 0; then
14633 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
14634 echo "configure:14635: checking for Motif/Lesstif library" >&5
14635
14636 ac_find_libraries=
14637 for ac_dir in $SEARCH_LIB;
14638 do
14639 for ac_extension in a so sl dylib; do
14640 if test -f "$ac_dir/libXm.$ac_extension"; then
14641 ac_find_libraries=$ac_dir
14642 break 2
14643 fi
14644 done
14645 done
14646
14647 if test "$ac_find_libraries" != "" ; then
14648 echo "$ac_t""found at $ac_find_libraries" 1>&6
14649
14650
14651 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14652 result=$?
14653 if test $result = 0; then
14654 ac_path_to_link=""
14655 else
14656 ac_path_to_link=" -L$ac_find_libraries"
14657 fi
14658
14659 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14660 else
14661 save_CFLAGS=$CFLAGS
14662 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14663
14664 cat > conftest.$ac_ext <<EOF
14665 #line 14666 "configure"
14666 #include "confdefs.h"
14667
14668 #include <Xm/Xm.h>
14669
14670 int main() {
14671
14672 int version;
14673 version = xmUseVersion;
14674
14675 ; return 0; }
14676 EOF
14677 if { (eval echo configure:14678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14678 rm -rf conftest*
14679
14680 echo "$ac_t""found in default search path" 1>&6
14681 COMPILED_X_PROGRAM=1
14682
14683 else
14684 echo "configure: failed program was:" >&5
14685 cat conftest.$ac_ext >&5
14686 rm -rf conftest*
14687
14688 echo "$ac_t""no" 1>&6
14689 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14690
14691
14692 fi
14693 rm -f conftest*
14694
14695 CFLAGS=$save_CFLAGS
14696 fi
14697 fi
14698
14699 xpm_link=
14700 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14701 echo "configure:14702: checking for Xpm library" >&5
14702
14703 ac_find_libraries=
14704 for ac_dir in $SEARCH_LIB;
14705 do
14706 for ac_extension in a so sl dylib; do
14707 if test -f "$ac_dir/libXpm.$ac_extension"; then
14708 ac_find_libraries=$ac_dir
14709 break 2
14710 fi
14711 done
14712 done
14713
14714 if test "$ac_find_libraries" != "" ; then
14715
14716 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14717 result=$?
14718 if test $result = 0; then
14719 ac_path_to_link=""
14720 else
14721 ac_path_to_link=" -L$ac_find_libraries"
14722 fi
14723
14724 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14725
14726 xpm_link=" -lXpm"
14727 cat >> confdefs.h <<\EOF
14728 #define wxHAVE_LIB_XPM 1
14729 EOF
14730
14731 echo "$ac_t""found at $ac_find_libraries" 1>&6
14732 else
14733 save_CFLAGS=$CFLAGS
14734 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14735
14736 cat > conftest.$ac_ext <<EOF
14737 #line 14738 "configure"
14738 #include "confdefs.h"
14739
14740 #include <X11/xpm.h>
14741
14742 int main() {
14743
14744 int version;
14745 version = XpmLibraryVersion();
14746
14747 ; return 0; }
14748 EOF
14749 if { (eval echo configure:14750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14750 rm -rf conftest*
14751
14752 xpm_link=" -lXpm"
14753 cat >> confdefs.h <<\EOF
14754 #define wxHAVE_LIB_XPM 1
14755 EOF
14756
14757 echo "$ac_t""found in default search path" 1>&6
14758 COMPILED_X_PROGRAM=0
14759
14760 else
14761 echo "configure: failed program was:" >&5
14762 cat conftest.$ac_ext >&5
14763 rm -rf conftest*
14764
14765 echo "$ac_t""no" 1>&6
14766 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14767
14768
14769 fi
14770 rm -f conftest*
14771
14772 CFLAGS=$save_CFLAGS
14773 fi
14774
14775 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
14776 echo "configure:14777: checking if we need -lXp and/or -lSM -lICE" >&5
14777 libp_link=""
14778 libsm_ice_link=""
14779 libs_found=0
14780 for libp in "" " -lXp"; do
14781 if test "$libs_found" = "0"; then
14782 for libsm_ice in " -lSM -lICE"; do
14783 if test "$libs_found" = "0"; then
14784 save_LIBS="$LIBS"
14785 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
14786 save_CFLAGS=$CFLAGS
14787 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14788
14789 cat > conftest.$ac_ext <<EOF
14790 #line 14791 "configure"
14791 #include "confdefs.h"
14792
14793 #include <Xm/Xm.h>
14794 #include <Xm/List.h>
14795
14796 int main() {
14797
14798 XmString string = NULL;
14799 Widget w = NULL;
14800 int position = 0;
14801 XmListAddItem(w, string, position);
14802
14803 ; return 0; }
14804 EOF
14805 if { (eval echo configure:14806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14806 rm -rf conftest*
14807
14808 libp_link="$libp"
14809 libsm_ice_link="$libsm_ice"
14810 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
14811 libs_found=1
14812
14813 else
14814 echo "configure: failed program was:" >&5
14815 cat conftest.$ac_ext >&5
14816 rm -rf conftest*
14817
14818
14819 fi
14820 rm -f conftest*
14821
14822 LIBS="$save_LIBS"
14823 CFLAGS=$save_CFLAGS
14824 fi
14825 done
14826 fi
14827 done
14828
14829 if test "$libs_found" = "0"; then
14830 echo "$ac_t""can't find the right libraries" 1>&6
14831 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
14832 fi
14833
14834 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
14835 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14836 TOOLKIT=MOTIF
14837 GUIDIST=MOTIF_DIST
14838 fi
14839
14840 if test "$wxUSE_MAC" = 1; then
14841 if test "$wxUSE_PRECOMP" = "yes"; then
14842 CPPFLAGS="$CPPFLAGS -cpp-precomp"
14843 else
14844 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14845 fi
14846 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14847 CFLAGS="$CFLAGS -fpascal-strings"
14848 CXXFLAGS="$CXXFLAGS -fpascal-strings"
14849
14850 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14851 TOOLKIT=MAC
14852 GUIDIST=MACX_DIST
14853 fi
14854
14855 if test "$wxUSE_PM" = 1; then
14856 TOOLKIT=PM
14857 GUIDIST=GTK_DIST
14858 fi
14859
14860 if test "$TOOLKIT" = "PM" ; then
14861 TOOLKIT_DIR="os2"
14862 else
14863 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14864 fi
14865
14866 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14867
14868 if test "$wxUSE_UNIVERSAL" = "yes"; then
14869 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14870
14871 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14872 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14873
14874 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14875 if test "$wxUSE_X11" = 1; then
14876 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14877 else
14878 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14879 fi
14880 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14881 WIDGET_SET=univ
14882 else
14883 ALL_OBJECTS="\$(GUIOBJS)"
14884 ALL_SOURCES="\$(ALL_SOURCES)"
14885 ALL_HEADERS="\$(ALL_HEADERS)"
14886 fi
14887
14888 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14889
14890 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14891 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14892 fi
14893
14894 if test "$wxUSE_HTML" = "yes"; then
14895 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14896 fi
14897
14898 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14899 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14900 fi
14901 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14902 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14903 fi
14904 if test "$wxUSE_LIBPNG" = "builtin" ; then
14905 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14906 fi
14907
14908 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14909 DISTDIR="wx\$(TOOLKIT)"
14910 else
14911 USE_GUI=0
14912
14913 TOOLKIT_DIR="base"
14914
14915 if test "$USE_WIN32" = 1 ; then
14916 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14917 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14918
14919 TOOLKIT="MSW"
14920 else
14921 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14922 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14923 fi
14924
14925 ALL_SOURCES="\$(ALL_SOURCES)"
14926 ALL_HEADERS="\$(ALL_HEADERS)"
14927
14928 PORT_FILES="\${top_srcdir}/src/files.lst"
14929
14930 GUIDIST="BASE_DIST"
14931 DISTDIR="wxBase"
14932 fi
14933
14934
14935 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14936 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
14937 fi
14938
14939 if test "$wxUSE_REGEX" = "builtin" ; then
14940 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
14941 fi
14942 if test "$wxUSE_ZLIB" = "builtin" ; then
14943 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
14944 fi
14945
14946
14947 if test "$wxUSE_OPENGL" = "yes"; then
14948 if test "$wxUSE_MAC" = 1; then
14949 OPENGL_LIBS="-framework OpenGL -framework AGL"
14950 elif test "$wxUSE_MSW" = 1; then
14951 OPENGL_LIBS="-lopengl32 -lglu32"
14952 else
14953 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14954 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14955 echo "configure:14956: checking for GL/gl.h" >&5
14956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14957 echo $ac_n "(cached) $ac_c" 1>&6
14958 else
14959 cat > conftest.$ac_ext <<EOF
14960 #line 14961 "configure"
14961 #include "confdefs.h"
14962 #include <GL/gl.h>
14963 EOF
14964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14965 { (eval echo configure:14966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14967 if test -z "$ac_err"; then
14968 rm -rf conftest*
14969 eval "ac_cv_header_$ac_safe=yes"
14970 else
14971 echo "$ac_err" >&5
14972 echo "configure: failed program was:" >&5
14973 cat conftest.$ac_ext >&5
14974 rm -rf conftest*
14975 eval "ac_cv_header_$ac_safe=no"
14976 fi
14977 rm -f conftest*
14978 fi
14979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14980 echo "$ac_t""yes" 1>&6
14981
14982 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
14983 echo "configure:14984: checking for -lGL" >&5
14984
14985 ac_find_libraries=
14986 for ac_dir in $SEARCH_LIB;
14987 do
14988 for ac_extension in a so sl dylib; do
14989 if test -f "$ac_dir/libGL.$ac_extension"; then
14990 ac_find_libraries=$ac_dir
14991 break 2
14992 fi
14993 done
14994 done
14995
14996 if test "$ac_find_libraries" != "" ; then
14997
14998 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14999 result=$?
15000 if test $result = 0; then
15001 ac_path_to_link=""
15002 else
15003 ac_path_to_link=" -L$ac_find_libraries"
15004 fi
15005
15006 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15007 LDFLAGS_GL="$LDFLAGS"
15008 else
15009 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15010 fi
15011 OPENGL_LIBS="-lGL -lGLU"
15012 echo "$ac_t""yes" 1>&6
15013 else
15014 echo "$ac_t""no" 1>&6
15015 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15016 echo "configure:15017: checking for -lMesaGL" >&5
15017
15018 ac_find_libraries=
15019 for ac_dir in $SEARCH_LIB;
15020 do
15021 for ac_extension in a so sl dylib; do
15022 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15023 ac_find_libraries=$ac_dir
15024 break 2
15025 fi
15026 done
15027 done
15028
15029 if test "$ac_find_libraries" != "" ; then
15030
15031 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15032 result=$?
15033 if test $result = 0; then
15034 ac_path_to_link=""
15035 else
15036 ac_path_to_link=" -L$ac_find_libraries"
15037 fi
15038
15039 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15040 OPENGL_LIBS="-lMesaGL -lMesaGLU"
15041 echo "$ac_t""yes" 1>&6
15042 else
15043 echo "$ac_t""no" 1>&6
15044 fi
15045 fi
15046
15047 else
15048 echo "$ac_t""no" 1>&6
15049 fi
15050
15051
15052 if test "x$OPENGL_LIBS" = "x"; then
15053 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15054 fi
15055 fi
15056
15057 if test "$wxUSE_OPENGL" = "yes"; then
15058 cat >> confdefs.h <<\EOF
15059 #define wxUSE_OPENGL 1
15060 EOF
15061
15062 cat >> confdefs.h <<\EOF
15063 #define wxUSE_GLCANVAS 1
15064 EOF
15065
15066 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15067 fi
15068 fi
15069
15070 if test -z "$TOOLKIT_VPATH" ; then
15071 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15072 fi
15073
15074 if test -n "$TOOLKIT" ; then
15075 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15076 fi
15077
15078 lib_unicode_suffix=
15079 if test "$wxUSE_UNICODE" = "yes"; then
15080 lib_unicode_suffix=u
15081 fi
15082
15083 lib_debug_suffix=
15084 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15085 lib_debug_suffix=d
15086 fi
15087
15088 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15089 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15090
15091 if test "$cross_compiling" = "yes"; then
15092 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15093 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15094 fi
15095
15096 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15097 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15098
15099 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15100 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15101
15102 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15103 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15104 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15105 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15106
15107 case "${host}" in
15108 *-*-cygwin* | *-*-mingw32* )
15109
15110
15111
15112 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15113 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15114 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15115 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15116 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15117 else
15118 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15119 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15120 fi
15121 ;;
15122
15123 *-*-darwin* )
15124 if test "$wxUSE_MAC" = 1; then
15125 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
15126 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
15127 fi
15128 ;;
15129 esac
15130
15131 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15132 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15133
15134 WXCONFIG_LIBS="-l${WX_LIBRARY}"
15135 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15136
15137 if test "$wxUSE_OPENGL" = "yes"; then
15138 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15139 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15140 fi
15141
15142
15143
15144 if test "$wxUSE_SHARED" = "yes"; then
15145 case "${host}" in
15146 *-pc-os2_emx | *-pc-os2-emx | \
15147 *-pc-msdosdjgpp )
15148 wxUSE_SHARED=no
15149 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
15150 ;;
15151 esac
15152 fi
15153
15154 if test "$wxUSE_SHARED" = "yes"; then
15155
15156 if test "$wxUSE_OPENGL" = "yes"; then
15157 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15158 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15159 else
15160 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15161 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15162 fi
15163
15164 if test "$GCC" = "yes"; then
15165 PIC_FLAG="-fPIC"
15166 fi
15167
15168 SHARED_LD="${CXX} -shared -o"
15169
15170 case "${host}" in
15171 *-hp-hpux* )
15172 if test "$GCC" == "yes"; then
15173 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
15174 else
15175 LDFLAGS="$LDFLAGS -L/usr/lib"
15176
15177 SHARED_LD="${CXX} -b -o"
15178 PIC_FLAG="+Z"
15179 fi
15180
15181 if test "$wxUSE_OPENGL" = "yes"; then
15182 WX_ALL_INSTALLED="preinstall_gl"
15183 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15184 else
15185 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15186 fi
15187 ;;
15188
15189 *-*-linux* )
15190 if test "$GCC" != "yes"; then
15191 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
15192 echo "configure:15193: checking for Intel compiler" >&5
15193 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15194 echo $ac_n "(cached) $ac_c" 1>&6
15195 else
15196
15197 cat > conftest.$ac_ext <<EOF
15198 #line 15199 "configure"
15199 #include "confdefs.h"
15200
15201 int main() {
15202
15203 #ifndef __INTEL_COMPILER
15204 #error Not icc
15205 #endif
15206
15207 ; return 0; }
15208 EOF
15209 if { (eval echo configure:15210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15210 rm -rf conftest*
15211 wx_cv_prog_icc=yes
15212 else
15213 echo "configure: failed program was:" >&5
15214 cat conftest.$ac_ext >&5
15215 rm -rf conftest*
15216 wx_cv_prog_icc=no
15217
15218 fi
15219 rm -f conftest*
15220
15221 fi
15222
15223 echo "$ac_t""$wx_cv_prog_icc" 1>&6
15224 if test "$wx_cv_prog_icc" = "yes"; then
15225 PIC_FLAG="-KPIC"
15226 fi
15227 fi
15228
15229 if test "$wxUSE_SONAME" = "yes" ; then
15230 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
15231 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
15232 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
15233 fi
15234 ;;
15235
15236 *-*-solaris2* )
15237 if test "$GCC" = yes ; then
15238 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
15239 else
15240 SHARED_LD="${CXX} -G -o"
15241 PIC_FLAG="-KPIC"
15242 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
15243 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
15244 fi
15245 ;;
15246
15247 *-*-darwin* )
15248 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
15249 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
15250 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
15251 PIC_FLAG="-dynamic -fPIC"
15252 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
15253 SONAME_FLAGS_GL=${SONAME_FLAGS}
15254 ;;
15255
15256 *-*-aix* )
15257 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
15258 set dummy makeC++SharedLib; ac_word=$2
15259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15260 echo "configure:15261: checking for $ac_word" >&5
15261 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
15262 echo $ac_n "(cached) $ac_c" 1>&6
15263 else
15264 if test -n "$AIX_CXX_LD"; then
15265 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
15266 else
15267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15268 ac_dummy="$PATH"
15269 for ac_dir in $ac_dummy; do
15270 test -z "$ac_dir" && ac_dir=.
15271 if test -f $ac_dir/$ac_word; then
15272 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
15273 break
15274 fi
15275 done
15276 IFS="$ac_save_ifs"
15277 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15278 fi
15279 fi
15280 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
15281 if test -n "$AIX_CXX_LD"; then
15282 echo "$ac_t""$AIX_CXX_LD" 1>&6
15283 else
15284 echo "$ac_t""no" 1>&6
15285 fi
15286
15287
15288 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
15289 ;;
15290
15291 *-*-cygwin* | *-*-mingw32* )
15292
15293 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15294
15295 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15296 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15297
15298 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15299
15300 if test "$wxUSE_OPENGL" = "yes"; then
15301 WX_ALL_INSTALLED="preinstall_gl"
15302 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15303 else
15304 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15305 fi
15306 ;;
15307
15308 *-*-beos* )
15309 SHARED_LD="${LD} -shared -o"
15310 ;;
15311
15312 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15313 *-*-sunos4* | \
15314 *-*-irix5* | *-*-irix6* | \
15315 *-*-osf* | \
15316 *-*-dgux5* | \
15317 *-*-sysv5* )
15318 ;;
15319
15320 *)
15321 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15322 esac
15323
15324 if test "x$WX_TARGET_LIBRARY" = "x"; then
15325 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15326 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15327 fi
15328
15329 WX_TARGET_LIBRARY_TYPE="so"
15330 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
15331 fi
15332
15333 if test "$wxUSE_SHARED" = "no"; then
15334
15335 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15336 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15337 fi
15338
15339 if test "$wxUSE_MAC" = 1; then
15340 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15341 fi
15342
15343 if test "$wxUSE_OPENGL" = "yes"; then
15344 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15345 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15346 else
15347 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15348 fi
15349
15350 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15351 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15352
15353 WX_TARGET_LIBRARY_TYPE="a"
15354 INSTALL_LIBRARY='$(INSTALL_DATA)'
15355 fi
15356
15357 if test "$wxUSE_MAC" = 1; then
15358 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15359 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15360 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15361 # Extract the first word of "Rez", so it can be a program name with args.
15362 set dummy Rez; ac_word=$2
15363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15364 echo "configure:15365: checking for $ac_word" >&5
15365 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
15366 echo $ac_n "(cached) $ac_c" 1>&6
15367 else
15368 if test -n "$RESCOMP"; then
15369 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
15370 else
15371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15372 ac_dummy="$PATH"
15373 for ac_dir in $ac_dummy; do
15374 test -z "$ac_dir" && ac_dir=.
15375 if test -f $ac_dir/$ac_word; then
15376 ac_cv_prog_RESCOMP="Rez"
15377 break
15378 fi
15379 done
15380 IFS="$ac_save_ifs"
15381 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
15382 fi
15383 fi
15384 RESCOMP="$ac_cv_prog_RESCOMP"
15385 if test -n "$RESCOMP"; then
15386 echo "$ac_t""$RESCOMP" 1>&6
15387 else
15388 echo "$ac_t""no" 1>&6
15389 fi
15390
15391 # Extract the first word of "DeRez", so it can be a program name with args.
15392 set dummy DeRez; ac_word=$2
15393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15394 echo "configure:15395: checking for $ac_word" >&5
15395 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15396 echo $ac_n "(cached) $ac_c" 1>&6
15397 else
15398 if test -n "$DEREZ"; then
15399 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
15400 else
15401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15402 ac_dummy="$PATH"
15403 for ac_dir in $ac_dummy; do
15404 test -z "$ac_dir" && ac_dir=.
15405 if test -f $ac_dir/$ac_word; then
15406 ac_cv_prog_DEREZ="DeRez"
15407 break
15408 fi
15409 done
15410 IFS="$ac_save_ifs"
15411 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
15412 fi
15413 fi
15414 DEREZ="$ac_cv_prog_DEREZ"
15415 if test -n "$DEREZ"; then
15416 echo "$ac_t""$DEREZ" 1>&6
15417 else
15418 echo "$ac_t""no" 1>&6
15419 fi
15420
15421 MACOSX_BUNDLE="bundle"
15422 if test "$wxUSE_SHARED" = "yes"; then
15423 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15424 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15425 else
15426 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15427 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15428 fi
15429 else
15430 if test "$wxUSE_PM" = 1; then
15431 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
15432 fi
15433 fi
15434
15435
15436 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15437 echo "configure:15438: checking for ANSI C header files" >&5
15438 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
15439 echo $ac_n "(cached) $ac_c" 1>&6
15440 else
15441 cat > conftest.$ac_ext <<EOF
15442 #line 15443 "configure"
15443 #include "confdefs.h"
15444 #include <stdlib.h>
15445 #include <stdarg.h>
15446 #include <string.h>
15447 #include <float.h>
15448 EOF
15449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15450 { (eval echo configure:15451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15452 if test -z "$ac_err"; then
15453 rm -rf conftest*
15454 ac_cv_header_stdc=yes
15455 else
15456 echo "$ac_err" >&5
15457 echo "configure: failed program was:" >&5
15458 cat conftest.$ac_ext >&5
15459 rm -rf conftest*
15460 ac_cv_header_stdc=no
15461 fi
15462 rm -f conftest*
15463
15464 if test $ac_cv_header_stdc = yes; then
15465 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15466 cat > conftest.$ac_ext <<EOF
15467 #line 15468 "configure"
15468 #include "confdefs.h"
15469 #include <string.h>
15470 EOF
15471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15472 egrep "memchr" >/dev/null 2>&1; then
15473 :
15474 else
15475 rm -rf conftest*
15476 ac_cv_header_stdc=no
15477 fi
15478 rm -f conftest*
15479
15480 fi
15481
15482 if test $ac_cv_header_stdc = yes; then
15483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15484 cat > conftest.$ac_ext <<EOF
15485 #line 15486 "configure"
15486 #include "confdefs.h"
15487 #include <stdlib.h>
15488 EOF
15489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15490 egrep "free" >/dev/null 2>&1; then
15491 :
15492 else
15493 rm -rf conftest*
15494 ac_cv_header_stdc=no
15495 fi
15496 rm -f conftest*
15497
15498 fi
15499
15500 if test $ac_cv_header_stdc = yes; then
15501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15502 if test "$cross_compiling" = yes; then
15503 :
15504 else
15505 cat > conftest.$ac_ext <<EOF
15506 #line 15507 "configure"
15507 #include "confdefs.h"
15508 #include <ctype.h>
15509 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15510 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15512 int main () { int i; for (i = 0; i < 256; i++)
15513 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15514 exit (0); }
15515
15516 EOF
15517 if { (eval echo configure:15518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15518 then
15519 :
15520 else
15521 echo "configure: failed program was:" >&5
15522 cat conftest.$ac_ext >&5
15523 rm -fr conftest*
15524 ac_cv_header_stdc=no
15525 fi
15526 rm -fr conftest*
15527 fi
15528
15529 fi
15530 fi
15531
15532 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15533 if test $ac_cv_header_stdc = yes; then
15534 cat >> confdefs.h <<\EOF
15535 #define STDC_HEADERS 1
15536 EOF
15537
15538 fi
15539
15540 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15541 echo "configure:15542: checking for mode_t" >&5
15542 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15543 echo $ac_n "(cached) $ac_c" 1>&6
15544 else
15545 cat > conftest.$ac_ext <<EOF
15546 #line 15547 "configure"
15547 #include "confdefs.h"
15548 #include <sys/types.h>
15549 #if STDC_HEADERS
15550 #include <stdlib.h>
15551 #include <stddef.h>
15552 #endif
15553 EOF
15554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15555 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15556 rm -rf conftest*
15557 ac_cv_type_mode_t=yes
15558 else
15559 rm -rf conftest*
15560 ac_cv_type_mode_t=no
15561 fi
15562 rm -f conftest*
15563
15564 fi
15565 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15566 if test $ac_cv_type_mode_t = no; then
15567 cat >> confdefs.h <<\EOF
15568 #define mode_t int
15569 EOF
15570
15571 fi
15572
15573 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15574 echo "configure:15575: checking for off_t" >&5
15575 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15576 echo $ac_n "(cached) $ac_c" 1>&6
15577 else
15578 cat > conftest.$ac_ext <<EOF
15579 #line 15580 "configure"
15580 #include "confdefs.h"
15581 #include <sys/types.h>
15582 #if STDC_HEADERS
15583 #include <stdlib.h>
15584 #include <stddef.h>
15585 #endif
15586 EOF
15587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15588 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15589 rm -rf conftest*
15590 ac_cv_type_off_t=yes
15591 else
15592 rm -rf conftest*
15593 ac_cv_type_off_t=no
15594 fi
15595 rm -f conftest*
15596
15597 fi
15598 echo "$ac_t""$ac_cv_type_off_t" 1>&6
15599 if test $ac_cv_type_off_t = no; then
15600 cat >> confdefs.h <<\EOF
15601 #define off_t long
15602 EOF
15603
15604 fi
15605
15606 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15607 echo "configure:15608: checking for pid_t" >&5
15608 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15609 echo $ac_n "(cached) $ac_c" 1>&6
15610 else
15611 cat > conftest.$ac_ext <<EOF
15612 #line 15613 "configure"
15613 #include "confdefs.h"
15614 #include <sys/types.h>
15615 #if STDC_HEADERS
15616 #include <stdlib.h>
15617 #include <stddef.h>
15618 #endif
15619 EOF
15620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15621 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15622 rm -rf conftest*
15623 ac_cv_type_pid_t=yes
15624 else
15625 rm -rf conftest*
15626 ac_cv_type_pid_t=no
15627 fi
15628 rm -f conftest*
15629
15630 fi
15631 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15632 if test $ac_cv_type_pid_t = no; then
15633 cat >> confdefs.h <<\EOF
15634 #define pid_t int
15635 EOF
15636
15637 fi
15638
15639 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15640 echo "configure:15641: checking for size_t" >&5
15641 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15642 echo $ac_n "(cached) $ac_c" 1>&6
15643 else
15644 cat > conftest.$ac_ext <<EOF
15645 #line 15646 "configure"
15646 #include "confdefs.h"
15647 #include <sys/types.h>
15648 #if STDC_HEADERS
15649 #include <stdlib.h>
15650 #include <stddef.h>
15651 #endif
15652 EOF
15653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15654 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15655 rm -rf conftest*
15656 ac_cv_type_size_t=yes
15657 else
15658 rm -rf conftest*
15659 ac_cv_type_size_t=no
15660 fi
15661 rm -f conftest*
15662
15663 fi
15664 echo "$ac_t""$ac_cv_type_size_t" 1>&6
15665 if test $ac_cv_type_size_t = no; then
15666 cat >> confdefs.h <<\EOF
15667 #define size_t unsigned
15668 EOF
15669
15670 fi
15671
15672 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15673 echo "configure:15674: checking for uid_t in sys/types.h" >&5
15674 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15675 echo $ac_n "(cached) $ac_c" 1>&6
15676 else
15677 cat > conftest.$ac_ext <<EOF
15678 #line 15679 "configure"
15679 #include "confdefs.h"
15680 #include <sys/types.h>
15681 EOF
15682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15683 egrep "uid_t" >/dev/null 2>&1; then
15684 rm -rf conftest*
15685 ac_cv_type_uid_t=yes
15686 else
15687 rm -rf conftest*
15688 ac_cv_type_uid_t=no
15689 fi
15690 rm -f conftest*
15691
15692 fi
15693
15694 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15695 if test $ac_cv_type_uid_t = no; then
15696 cat >> confdefs.h <<\EOF
15697 #define uid_t int
15698 EOF
15699
15700 cat >> confdefs.h <<\EOF
15701 #define gid_t int
15702 EOF
15703
15704 fi
15705
15706
15707
15708 ac_ext=C
15709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15710 ac_cpp='$CXXCPP $CPPFLAGS'
15711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15713 cross_compiling=$ac_cv_prog_cxx_cross
15714
15715 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
15716 echo "configure:15717: checking if size_t is unsigned int" >&5
15717 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15718 echo $ac_n "(cached) $ac_c" 1>&6
15719 else
15720 cat > conftest.$ac_ext <<EOF
15721 #line 15722 "configure"
15722 #include "confdefs.h"
15723 #include <stddef.h>
15724 int main() {
15725
15726 return 0; }
15727
15728 struct Foo { void foo(size_t); void foo(unsigned int); };
15729
15730 int bar() {
15731
15732 ; return 0; }
15733 EOF
15734 if { (eval echo configure:15735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15735 rm -rf conftest*
15736 wx_cv_size_t_is_uint=no
15737 else
15738 echo "configure: failed program was:" >&5
15739 cat conftest.$ac_ext >&5
15740 rm -rf conftest*
15741 wx_cv_size_t_is_uint=yes
15742
15743 fi
15744 rm -f conftest*
15745
15746 fi
15747
15748 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
15749
15750 if test "$wx_cv_size_t_is_uint" = "yes"; then
15751 cat >> confdefs.h <<\EOF
15752 #define wxSIZE_T_IS_UINT 1
15753 EOF
15754
15755 else
15756 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
15757 echo "configure:15758: checking if size_t is unsigned long" >&5
15758 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
15759 echo $ac_n "(cached) $ac_c" 1>&6
15760 else
15761 cat > conftest.$ac_ext <<EOF
15762 #line 15763 "configure"
15763 #include "confdefs.h"
15764 #include <stddef.h>
15765 int main() {
15766
15767 return 0; }
15768
15769 struct Foo { void foo(size_t); void foo(unsigned long); };
15770
15771 int bar() {
15772
15773 ; return 0; }
15774 EOF
15775 if { (eval echo configure:15776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15776 rm -rf conftest*
15777 wx_cv_size_t_is_ulong=no
15778 else
15779 echo "configure: failed program was:" >&5
15780 cat conftest.$ac_ext >&5
15781 rm -rf conftest*
15782 wx_cv_size_t_is_ulong=yes
15783
15784 fi
15785 rm -f conftest*
15786
15787 fi
15788
15789 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
15790
15791 if test "$wx_cv_size_t_is_ulong" = "yes"; then
15792 cat >> confdefs.h <<\EOF
15793 #define wxSIZE_T_IS_ULONG 1
15794 EOF
15795
15796 fi
15797 fi
15798
15799 ac_ext=c
15800 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15801 ac_cpp='$CPP $CPPFLAGS'
15802 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15803 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15804 cross_compiling=$ac_cv_prog_cc_cross
15805
15806
15807
15808 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
15809 echo "configure:15810: checking for pw_gecos in struct passwd" >&5
15810 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
15811 echo $ac_n "(cached) $ac_c" 1>&6
15812 else
15813
15814 cat > conftest.$ac_ext <<EOF
15815 #line 15816 "configure"
15816 #include "confdefs.h"
15817 #include <pwd.h>
15818 int main() {
15819
15820 char *p;
15821 struct passwd *pw;
15822 p = pw->pw_gecos;
15823
15824 ; return 0; }
15825 EOF
15826 if { (eval echo configure:15827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15827 rm -rf conftest*
15828
15829 wx_cv_struct_pw_gecos=yes
15830
15831 else
15832 echo "configure: failed program was:" >&5
15833 cat conftest.$ac_ext >&5
15834 rm -rf conftest*
15835
15836 wx_cv_struct_pw_gecos=no
15837
15838
15839 fi
15840 rm -f conftest*
15841
15842
15843 fi
15844
15845 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
15846
15847 if test "$wx_cv_struct_pw_gecos" = "yes"; then
15848 cat >> confdefs.h <<\EOF
15849 #define HAVE_PW_GECOS 1
15850 EOF
15851
15852 fi
15853
15854
15855 if test "$wx_cv_sizeof_wchar_t" != "0"; then
15856 cat >> confdefs.h <<\EOF
15857 #define wxUSE_WCHAR_T 1
15858 EOF
15859
15860
15861 WCSLEN_FOUND=0
15862 WCHAR_LINK=
15863 for ac_func in wcslen
15864 do
15865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15866 echo "configure:15867: checking for $ac_func" >&5
15867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15868 echo $ac_n "(cached) $ac_c" 1>&6
15869 else
15870 cat > conftest.$ac_ext <<EOF
15871 #line 15872 "configure"
15872 #include "confdefs.h"
15873 /* System header to define __stub macros and hopefully few prototypes,
15874 which can conflict with char $ac_func(); below. */
15875 #include <assert.h>
15876 /* Override any gcc2 internal prototype to avoid an error. */
15877 /* We use char because int might match the return type of a gcc2
15878 builtin and then its argument prototype would still apply. */
15879 char $ac_func();
15880
15881 int main() {
15882
15883 /* The GNU C library defines this for functions which it implements
15884 to always fail with ENOSYS. Some functions are actually named
15885 something starting with __ and the normal name is an alias. */
15886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15887 choke me
15888 #else
15889 $ac_func();
15890 #endif
15891
15892 ; return 0; }
15893 EOF
15894 if { (eval echo configure:15895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15895 rm -rf conftest*
15896 eval "ac_cv_func_$ac_func=yes"
15897 else
15898 echo "configure: failed program was:" >&5
15899 cat conftest.$ac_ext >&5
15900 rm -rf conftest*
15901 eval "ac_cv_func_$ac_func=no"
15902 fi
15903 rm -f conftest*
15904 fi
15905
15906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15907 echo "$ac_t""yes" 1>&6
15908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15909 cat >> confdefs.h <<EOF
15910 #define $ac_tr_func 1
15911 EOF
15912 WCSLEN_FOUND=1
15913 else
15914 echo "$ac_t""no" 1>&6
15915 fi
15916 done
15917
15918
15919 if test "$WCSLEN_FOUND" = 0; then
15920 if test "$TOOLKIT" = "MSW"; then
15921 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15922 echo "configure:15923: checking for wcslen in -lmsvcrt" >&5
15923 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15925 echo $ac_n "(cached) $ac_c" 1>&6
15926 else
15927 ac_save_LIBS="$LIBS"
15928 LIBS="-lmsvcrt $LIBS"
15929 cat > conftest.$ac_ext <<EOF
15930 #line 15931 "configure"
15931 #include "confdefs.h"
15932 /* Override any gcc2 internal prototype to avoid an error. */
15933 /* We use char because int might match the return type of a gcc2
15934 builtin and then its argument prototype would still apply. */
15935 char wcslen();
15936
15937 int main() {
15938 wcslen()
15939 ; return 0; }
15940 EOF
15941 if { (eval echo configure:15942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15942 rm -rf conftest*
15943 eval "ac_cv_lib_$ac_lib_var=yes"
15944 else
15945 echo "configure: failed program was:" >&5
15946 cat conftest.$ac_ext >&5
15947 rm -rf conftest*
15948 eval "ac_cv_lib_$ac_lib_var=no"
15949 fi
15950 rm -f conftest*
15951 LIBS="$ac_save_LIBS"
15952
15953 fi
15954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15955 echo "$ac_t""yes" 1>&6
15956 WCHAR_OK=1
15957 else
15958 echo "$ac_t""no" 1>&6
15959 fi
15960
15961 else
15962 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15963 echo "configure:15964: checking for wcslen in -lw" >&5
15964 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15966 echo $ac_n "(cached) $ac_c" 1>&6
15967 else
15968 ac_save_LIBS="$LIBS"
15969 LIBS="-lw $LIBS"
15970 cat > conftest.$ac_ext <<EOF
15971 #line 15972 "configure"
15972 #include "confdefs.h"
15973 /* Override any gcc2 internal prototype to avoid an error. */
15974 /* We use char because int might match the return type of a gcc2
15975 builtin and then its argument prototype would still apply. */
15976 char wcslen();
15977
15978 int main() {
15979 wcslen()
15980 ; return 0; }
15981 EOF
15982 if { (eval echo configure:15983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15983 rm -rf conftest*
15984 eval "ac_cv_lib_$ac_lib_var=yes"
15985 else
15986 echo "configure: failed program was:" >&5
15987 cat conftest.$ac_ext >&5
15988 rm -rf conftest*
15989 eval "ac_cv_lib_$ac_lib_var=no"
15990 fi
15991 rm -f conftest*
15992 LIBS="$ac_save_LIBS"
15993
15994 fi
15995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15996 echo "$ac_t""yes" 1>&6
15997
15998 WCHAR_LINK=" -lw"
15999 WCSLEN_FOUND=1
16000
16001 else
16002 echo "$ac_t""no" 1>&6
16003 fi
16004
16005 fi
16006 fi
16007
16008 if test "$WCSLEN_FOUND" = 1; then
16009 cat >> confdefs.h <<\EOF
16010 #define HAVE_WCSLEN 1
16011 EOF
16012
16013 fi
16014
16015 for ac_func in wcsrtombs
16016 do
16017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16018 echo "configure:16019: checking for $ac_func" >&5
16019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16020 echo $ac_n "(cached) $ac_c" 1>&6
16021 else
16022 cat > conftest.$ac_ext <<EOF
16023 #line 16024 "configure"
16024 #include "confdefs.h"
16025 /* System header to define __stub macros and hopefully few prototypes,
16026 which can conflict with char $ac_func(); below. */
16027 #include <assert.h>
16028 /* Override any gcc2 internal prototype to avoid an error. */
16029 /* We use char because int might match the return type of a gcc2
16030 builtin and then its argument prototype would still apply. */
16031 char $ac_func();
16032
16033 int main() {
16034
16035 /* The GNU C library defines this for functions which it implements
16036 to always fail with ENOSYS. Some functions are actually named
16037 something starting with __ and the normal name is an alias. */
16038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16039 choke me
16040 #else
16041 $ac_func();
16042 #endif
16043
16044 ; return 0; }
16045 EOF
16046 if { (eval echo configure:16047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16047 rm -rf conftest*
16048 eval "ac_cv_func_$ac_func=yes"
16049 else
16050 echo "configure: failed program was:" >&5
16051 cat conftest.$ac_ext >&5
16052 rm -rf conftest*
16053 eval "ac_cv_func_$ac_func=no"
16054 fi
16055 rm -f conftest*
16056 fi
16057
16058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16059 echo "$ac_t""yes" 1>&6
16060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16061 cat >> confdefs.h <<EOF
16062 #define $ac_tr_func 1
16063 EOF
16064
16065 else
16066 echo "$ac_t""no" 1>&6
16067 fi
16068 done
16069
16070 else
16071 echo "configure: warning: Wide character support is unavailable" 1>&2
16072 fi
16073
16074
16075 ac_ext=C
16076 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16077 ac_cpp='$CXXCPP $CPPFLAGS'
16078 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16079 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16080 cross_compiling=$ac_cv_prog_cxx_cross
16081
16082
16083 for ac_func in vsnprintf
16084 do
16085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16086 echo "configure:16087: checking for $ac_func" >&5
16087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16088 echo $ac_n "(cached) $ac_c" 1>&6
16089 else
16090 cat > conftest.$ac_ext <<EOF
16091 #line 16092 "configure"
16092 #include "confdefs.h"
16093 /* System header to define __stub macros and hopefully few prototypes,
16094 which can conflict with char $ac_func(); below. */
16095 #include <assert.h>
16096 /* Override any gcc2 internal prototype to avoid an error. */
16097 #ifdef __cplusplus
16098 extern "C"
16099 #endif
16100 /* We use char because int might match the return type of a gcc2
16101 builtin and then its argument prototype would still apply. */
16102 char $ac_func();
16103
16104 int main() {
16105
16106 /* The GNU C library defines this for functions which it implements
16107 to always fail with ENOSYS. Some functions are actually named
16108 something starting with __ and the normal name is an alias. */
16109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16110 choke me
16111 #else
16112 $ac_func();
16113 #endif
16114
16115 ; return 0; }
16116 EOF
16117 if { (eval echo configure:16118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16118 rm -rf conftest*
16119 eval "ac_cv_func_$ac_func=yes"
16120 else
16121 echo "configure: failed program was:" >&5
16122 cat conftest.$ac_ext >&5
16123 rm -rf conftest*
16124 eval "ac_cv_func_$ac_func=no"
16125 fi
16126 rm -f conftest*
16127 fi
16128
16129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16130 echo "$ac_t""yes" 1>&6
16131 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16132 cat >> confdefs.h <<EOF
16133 #define $ac_tr_func 1
16134 EOF
16135
16136 else
16137 echo "$ac_t""no" 1>&6
16138 fi
16139 done
16140
16141
16142 if test "$wxUSE_UNICODE" = yes; then
16143 for ac_func in fputwc wprintf vswprintf
16144 do
16145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16146 echo "configure:16147: checking for $ac_func" >&5
16147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16148 echo $ac_n "(cached) $ac_c" 1>&6
16149 else
16150 cat > conftest.$ac_ext <<EOF
16151 #line 16152 "configure"
16152 #include "confdefs.h"
16153 /* System header to define __stub macros and hopefully few prototypes,
16154 which can conflict with char $ac_func(); below. */
16155 #include <assert.h>
16156 /* Override any gcc2 internal prototype to avoid an error. */
16157 #ifdef __cplusplus
16158 extern "C"
16159 #endif
16160 /* We use char because int might match the return type of a gcc2
16161 builtin and then its argument prototype would still apply. */
16162 char $ac_func();
16163
16164 int main() {
16165
16166 /* The GNU C library defines this for functions which it implements
16167 to always fail with ENOSYS. Some functions are actually named
16168 something starting with __ and the normal name is an alias. */
16169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16170 choke me
16171 #else
16172 $ac_func();
16173 #endif
16174
16175 ; return 0; }
16176 EOF
16177 if { (eval echo configure:16178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16178 rm -rf conftest*
16179 eval "ac_cv_func_$ac_func=yes"
16180 else
16181 echo "configure: failed program was:" >&5
16182 cat conftest.$ac_ext >&5
16183 rm -rf conftest*
16184 eval "ac_cv_func_$ac_func=no"
16185 fi
16186 rm -f conftest*
16187 fi
16188
16189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16190 echo "$ac_t""yes" 1>&6
16191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16192 cat >> confdefs.h <<EOF
16193 #define $ac_tr_func 1
16194 EOF
16195
16196 else
16197 echo "$ac_t""no" 1>&6
16198 fi
16199 done
16200
16201 fi
16202
16203 ac_ext=c
16204 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16205 ac_cpp='$CPP $CPPFLAGS'
16206 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16207 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16208 cross_compiling=$ac_cv_prog_cc_cross
16209
16210
16211
16212
16213 if test "$TOOLKIT" != "MSW"; then
16214
16215
16216
16217 ac_ext=C
16218 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16219 ac_cpp='$CXXCPP $CPPFLAGS'
16220 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16221 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16222 cross_compiling=$ac_cv_prog_cxx_cross
16223
16224
16225
16226 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16227 if test "${with_libiconv_prefix+set}" = set; then
16228 withval="$with_libiconv_prefix"
16229
16230 for dir in `echo "$withval" | tr : ' '`; do
16231 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16232 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16233 done
16234
16235 fi
16236
16237
16238 echo $ac_n "checking for iconv""... $ac_c" 1>&6
16239 echo "configure:16240: checking for iconv" >&5
16240 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
16241 echo $ac_n "(cached) $ac_c" 1>&6
16242 else
16243
16244 am_cv_func_iconv="no, consider installing GNU libiconv"
16245 am_cv_lib_iconv=no
16246 cat > conftest.$ac_ext <<EOF
16247 #line 16248 "configure"
16248 #include "confdefs.h"
16249 #include <stdlib.h>
16250 #include <iconv.h>
16251 int main() {
16252 iconv_t cd = iconv_open("","");
16253 iconv(cd,NULL,NULL,NULL,NULL);
16254 iconv_close(cd);
16255 ; return 0; }
16256 EOF
16257 if { (eval echo configure:16258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16258 rm -rf conftest*
16259 am_cv_func_iconv=yes
16260 else
16261 echo "configure: failed program was:" >&5
16262 cat conftest.$ac_ext >&5
16263 fi
16264 rm -f conftest*
16265 if test "$am_cv_func_iconv" != yes; then
16266 am_save_LIBS="$LIBS"
16267 LIBS="$LIBS -liconv"
16268 cat > conftest.$ac_ext <<EOF
16269 #line 16270 "configure"
16270 #include "confdefs.h"
16271 #include <stdlib.h>
16272 #include <iconv.h>
16273 int main() {
16274 iconv_t cd = iconv_open("","");
16275 iconv(cd,NULL,NULL,NULL,NULL);
16276 iconv_close(cd);
16277 ; return 0; }
16278 EOF
16279 if { (eval echo configure:16280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16280 rm -rf conftest*
16281 am_cv_lib_iconv=yes
16282 am_cv_func_iconv=yes
16283 else
16284 echo "configure: failed program was:" >&5
16285 cat conftest.$ac_ext >&5
16286 fi
16287 rm -f conftest*
16288 LIBS="$am_save_LIBS"
16289 fi
16290
16291 fi
16292
16293 echo "$ac_t""$am_cv_func_iconv" 1>&6
16294 if test "$am_cv_func_iconv" = yes; then
16295 cat >> confdefs.h <<\EOF
16296 #define HAVE_ICONV 1
16297 EOF
16298
16299 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
16300 echo "configure:16301: checking if iconv needs const" >&5
16301 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
16302 echo $ac_n "(cached) $ac_c" 1>&6
16303 else
16304 cat > conftest.$ac_ext <<EOF
16305 #line 16306 "configure"
16306 #include "confdefs.h"
16307
16308 #include <stdlib.h>
16309 #include <iconv.h>
16310 extern
16311 #ifdef __cplusplus
16312 "C"
16313 #endif
16314 #if defined(__STDC__) || defined(__cplusplus)
16315 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16316 #else
16317 size_t iconv();
16318 #endif
16319
16320 int main() {
16321
16322 ; return 0; }
16323 EOF
16324 if { (eval echo configure:16325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16325 rm -rf conftest*
16326 wx_cv_func_iconv_const="no"
16327 else
16328 echo "configure: failed program was:" >&5
16329 cat conftest.$ac_ext >&5
16330 rm -rf conftest*
16331 wx_cv_func_iconv_const="yes"
16332
16333 fi
16334 rm -f conftest*
16335
16336 fi
16337
16338 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16339
16340 iconv_const=
16341 if test "x$wx_cv_func_iconv_const" = "xyes"; then
16342 iconv_const="const"
16343 fi
16344
16345 cat >> confdefs.h <<EOF
16346 #define ICONV_CONST $iconv_const
16347 EOF
16348
16349 fi
16350 LIBICONV=
16351 if test "$am_cv_lib_iconv" = yes; then
16352 LIBICONV="-liconv"
16353 fi
16354
16355
16356 LIBS="$LIBICONV $LIBS"
16357 ac_ext=c
16358 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16359 ac_cpp='$CPP $CPPFLAGS'
16360 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16361 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16362 cross_compiling=$ac_cv_prog_cc_cross
16363
16364
16365 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16366 for ac_func in sigaction
16367 do
16368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16369 echo "configure:16370: checking for $ac_func" >&5
16370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16371 echo $ac_n "(cached) $ac_c" 1>&6
16372 else
16373 cat > conftest.$ac_ext <<EOF
16374 #line 16375 "configure"
16375 #include "confdefs.h"
16376 /* System header to define __stub macros and hopefully few prototypes,
16377 which can conflict with char $ac_func(); below. */
16378 #include <assert.h>
16379 /* Override any gcc2 internal prototype to avoid an error. */
16380 /* We use char because int might match the return type of a gcc2
16381 builtin and then its argument prototype would still apply. */
16382 char $ac_func();
16383
16384 int main() {
16385
16386 /* The GNU C library defines this for functions which it implements
16387 to always fail with ENOSYS. Some functions are actually named
16388 something starting with __ and the normal name is an alias. */
16389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16390 choke me
16391 #else
16392 $ac_func();
16393 #endif
16394
16395 ; return 0; }
16396 EOF
16397 if { (eval echo configure:16398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16398 rm -rf conftest*
16399 eval "ac_cv_func_$ac_func=yes"
16400 else
16401 echo "configure: failed program was:" >&5
16402 cat conftest.$ac_ext >&5
16403 rm -rf conftest*
16404 eval "ac_cv_func_$ac_func=no"
16405 fi
16406 rm -f conftest*
16407 fi
16408
16409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16410 echo "$ac_t""yes" 1>&6
16411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16412 cat >> confdefs.h <<EOF
16413 #define $ac_tr_func 1
16414 EOF
16415
16416 else
16417 echo "$ac_t""no" 1>&6
16418 fi
16419 done
16420
16421
16422 if test "$ac_cv_func_sigaction" = "no"; then
16423 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16424 wxUSE_ON_FATAL_EXCEPTION=no
16425 fi
16426
16427 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16428
16429 ac_ext=C
16430 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16431 ac_cpp='$CXXCPP $CPPFLAGS'
16432 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16433 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16434 cross_compiling=$ac_cv_prog_cxx_cross
16435
16436
16437 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
16438 echo "configure:16439: checking for sa_handler type" >&5
16439 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16440 echo $ac_n "(cached) $ac_c" 1>&6
16441 else
16442
16443 cat > conftest.$ac_ext <<EOF
16444 #line 16445 "configure"
16445 #include "confdefs.h"
16446 #include <signal.h>
16447 int main() {
16448
16449 extern void testSigHandler(int);
16450
16451 struct sigaction sa;
16452 sa.sa_handler = testSigHandler;
16453
16454 ; return 0; }
16455 EOF
16456 if { (eval echo configure:16457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16457 rm -rf conftest*
16458
16459 wx_cv_type_sa_handler=int
16460
16461 else
16462 echo "configure: failed program was:" >&5
16463 cat conftest.$ac_ext >&5
16464 rm -rf conftest*
16465
16466 wx_cv_type_sa_handler=void
16467
16468 fi
16469 rm -f conftest*
16470
16471 fi
16472
16473 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16474
16475 ac_ext=c
16476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16477 ac_cpp='$CPP $CPPFLAGS'
16478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16480 cross_compiling=$ac_cv_prog_cc_cross
16481
16482
16483 cat >> confdefs.h <<EOF
16484 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16485 EOF
16486
16487 fi
16488 fi
16489
16490 for ac_func in vfork
16491 do
16492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16493 echo "configure:16494: checking for $ac_func" >&5
16494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16495 echo $ac_n "(cached) $ac_c" 1>&6
16496 else
16497 cat > conftest.$ac_ext <<EOF
16498 #line 16499 "configure"
16499 #include "confdefs.h"
16500 /* System header to define __stub macros and hopefully few prototypes,
16501 which can conflict with char $ac_func(); below. */
16502 #include <assert.h>
16503 /* Override any gcc2 internal prototype to avoid an error. */
16504 /* We use char because int might match the return type of a gcc2
16505 builtin and then its argument prototype would still apply. */
16506 char $ac_func();
16507
16508 int main() {
16509
16510 /* The GNU C library defines this for functions which it implements
16511 to always fail with ENOSYS. Some functions are actually named
16512 something starting with __ and the normal name is an alias. */
16513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16514 choke me
16515 #else
16516 $ac_func();
16517 #endif
16518
16519 ; return 0; }
16520 EOF
16521 if { (eval echo configure:16522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16522 rm -rf conftest*
16523 eval "ac_cv_func_$ac_func=yes"
16524 else
16525 echo "configure: failed program was:" >&5
16526 cat conftest.$ac_ext >&5
16527 rm -rf conftest*
16528 eval "ac_cv_func_$ac_func=no"
16529 fi
16530 rm -f conftest*
16531 fi
16532
16533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16534 echo "$ac_t""yes" 1>&6
16535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16536 cat >> confdefs.h <<EOF
16537 #define $ac_tr_func 1
16538 EOF
16539
16540 else
16541 echo "$ac_t""no" 1>&6
16542 fi
16543 done
16544
16545
16546 for ac_func in mkstemp mktemp
16547 do
16548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16549 echo "configure:16550: checking for $ac_func" >&5
16550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16551 echo $ac_n "(cached) $ac_c" 1>&6
16552 else
16553 cat > conftest.$ac_ext <<EOF
16554 #line 16555 "configure"
16555 #include "confdefs.h"
16556 /* System header to define __stub macros and hopefully few prototypes,
16557 which can conflict with char $ac_func(); below. */
16558 #include <assert.h>
16559 /* Override any gcc2 internal prototype to avoid an error. */
16560 /* We use char because int might match the return type of a gcc2
16561 builtin and then its argument prototype would still apply. */
16562 char $ac_func();
16563
16564 int main() {
16565
16566 /* The GNU C library defines this for functions which it implements
16567 to always fail with ENOSYS. Some functions are actually named
16568 something starting with __ and the normal name is an alias. */
16569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16570 choke me
16571 #else
16572 $ac_func();
16573 #endif
16574
16575 ; return 0; }
16576 EOF
16577 if { (eval echo configure:16578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16578 rm -rf conftest*
16579 eval "ac_cv_func_$ac_func=yes"
16580 else
16581 echo "configure: failed program was:" >&5
16582 cat conftest.$ac_ext >&5
16583 rm -rf conftest*
16584 eval "ac_cv_func_$ac_func=no"
16585 fi
16586 rm -f conftest*
16587 fi
16588
16589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16590 echo "$ac_t""yes" 1>&6
16591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16592 cat >> confdefs.h <<EOF
16593 #define $ac_tr_func 1
16594 EOF
16595 break
16596 else
16597 echo "$ac_t""no" 1>&6
16598 fi
16599 done
16600
16601
16602 echo $ac_n "checking for statfs""... $ac_c" 1>&6
16603 echo "configure:16604: checking for statfs" >&5
16604 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16605 echo $ac_n "(cached) $ac_c" 1>&6
16606 else
16607 cat > conftest.$ac_ext <<EOF
16608 #line 16609 "configure"
16609 #include "confdefs.h"
16610
16611 #if defined(__BSD__)
16612 #include <sys/param.h>
16613 #include <sys/mount.h>
16614 #else
16615 #include <sys/vfs.h>
16616 #endif
16617
16618 int main() {
16619
16620 long l;
16621 struct statfs fs;
16622 statfs("/", &fs);
16623 l = fs.f_bsize;
16624 l += fs.f_blocks;
16625 l += fs.f_bavail;
16626
16627 ; return 0; }
16628 EOF
16629 if { (eval echo configure:16630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16630 rm -rf conftest*
16631
16632 wx_cv_func_statfs=yes
16633
16634 else
16635 echo "configure: failed program was:" >&5
16636 cat conftest.$ac_ext >&5
16637 rm -rf conftest*
16638
16639 wx_cv_func_statfs=no
16640
16641
16642 fi
16643 rm -f conftest*
16644
16645 fi
16646
16647 echo "$ac_t""$wx_cv_func_statfs" 1>&6
16648
16649 if test "$wx_cv_func_statfs" = "yes"; then
16650 cat >> confdefs.h <<\EOF
16651 #define HAVE_STATFS 1
16652 EOF
16653
16654 else
16655 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16656 echo "configure:16657: checking for statvfs" >&5
16657 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16658 echo $ac_n "(cached) $ac_c" 1>&6
16659 else
16660 cat > conftest.$ac_ext <<EOF
16661 #line 16662 "configure"
16662 #include "confdefs.h"
16663
16664 #include <sys/statvfs.h>
16665
16666 int main() {
16667
16668 long l;
16669 struct statvfs fs;
16670 statvfs("/", &fs);
16671 l = fs.f_bsize;
16672 l += fs.f_blocks;
16673 l += fs.f_bavail;
16674
16675 ; return 0; }
16676 EOF
16677 if { (eval echo configure:16678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16678 rm -rf conftest*
16679
16680 wx_cv_func_statvfs=yes
16681
16682 else
16683 echo "configure: failed program was:" >&5
16684 cat conftest.$ac_ext >&5
16685 rm -rf conftest*
16686
16687 wx_cv_func_statvfs=no
16688
16689
16690 fi
16691 rm -f conftest*
16692
16693 fi
16694
16695 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16696
16697 if test "$wx_cv_func_statvfs" = "yes"; then
16698 cat >> confdefs.h <<\EOF
16699 #define HAVE_STATVFS 1
16700 EOF
16701
16702 else
16703 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16704 fi
16705 fi
16706
16707 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16708 for ac_func in fcntl flock
16709 do
16710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16711 echo "configure:16712: checking for $ac_func" >&5
16712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16713 echo $ac_n "(cached) $ac_c" 1>&6
16714 else
16715 cat > conftest.$ac_ext <<EOF
16716 #line 16717 "configure"
16717 #include "confdefs.h"
16718 /* System header to define __stub macros and hopefully few prototypes,
16719 which can conflict with char $ac_func(); below. */
16720 #include <assert.h>
16721 /* Override any gcc2 internal prototype to avoid an error. */
16722 /* We use char because int might match the return type of a gcc2
16723 builtin and then its argument prototype would still apply. */
16724 char $ac_func();
16725
16726 int main() {
16727
16728 /* The GNU C library defines this for functions which it implements
16729 to always fail with ENOSYS. Some functions are actually named
16730 something starting with __ and the normal name is an alias. */
16731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16732 choke me
16733 #else
16734 $ac_func();
16735 #endif
16736
16737 ; return 0; }
16738 EOF
16739 if { (eval echo configure:16740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16740 rm -rf conftest*
16741 eval "ac_cv_func_$ac_func=yes"
16742 else
16743 echo "configure: failed program was:" >&5
16744 cat conftest.$ac_ext >&5
16745 rm -rf conftest*
16746 eval "ac_cv_func_$ac_func=no"
16747 fi
16748 rm -f conftest*
16749 fi
16750
16751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16752 echo "$ac_t""yes" 1>&6
16753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16754 cat >> confdefs.h <<EOF
16755 #define $ac_tr_func 1
16756 EOF
16757 break
16758 else
16759 echo "$ac_t""no" 1>&6
16760 fi
16761 done
16762
16763
16764 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16765 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16766 wxUSE_SNGLINST_CHECKER=no
16767 fi
16768 fi
16769
16770 for ac_func in timegm
16771 do
16772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16773 echo "configure:16774: checking for $ac_func" >&5
16774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
16781 which can conflict with char $ac_func(); below. */
16782 #include <assert.h>
16783 /* Override any gcc2 internal prototype to avoid an error. */
16784 /* We use char because int might match the return type of a gcc2
16785 builtin and then its argument prototype would still apply. */
16786 char $ac_func();
16787
16788 int main() {
16789
16790 /* The GNU C library defines this for functions which it implements
16791 to always fail with ENOSYS. Some functions are actually named
16792 something starting with __ and the normal name is an alias. */
16793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16794 choke me
16795 #else
16796 $ac_func();
16797 #endif
16798
16799 ; return 0; }
16800 EOF
16801 if { (eval echo configure:16802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16802 rm -rf conftest*
16803 eval "ac_cv_func_$ac_func=yes"
16804 else
16805 echo "configure: failed program was:" >&5
16806 cat conftest.$ac_ext >&5
16807 rm -rf conftest*
16808 eval "ac_cv_func_$ac_func=no"
16809 fi
16810 rm -f conftest*
16811 fi
16812
16813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16814 echo "$ac_t""yes" 1>&6
16815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16816 cat >> confdefs.h <<EOF
16817 #define $ac_tr_func 1
16818 EOF
16819
16820 else
16821 echo "$ac_t""no" 1>&6
16822 fi
16823 done
16824
16825
16826 for ac_func in putenv setenv
16827 do
16828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16829 echo "configure:16830: checking for $ac_func" >&5
16830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16831 echo $ac_n "(cached) $ac_c" 1>&6
16832 else
16833 cat > conftest.$ac_ext <<EOF
16834 #line 16835 "configure"
16835 #include "confdefs.h"
16836 /* System header to define __stub macros and hopefully few prototypes,
16837 which can conflict with char $ac_func(); below. */
16838 #include <assert.h>
16839 /* Override any gcc2 internal prototype to avoid an error. */
16840 /* We use char because int might match the return type of a gcc2
16841 builtin and then its argument prototype would still apply. */
16842 char $ac_func();
16843
16844 int main() {
16845
16846 /* The GNU C library defines this for functions which it implements
16847 to always fail with ENOSYS. Some functions are actually named
16848 something starting with __ and the normal name is an alias. */
16849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16850 choke me
16851 #else
16852 $ac_func();
16853 #endif
16854
16855 ; return 0; }
16856 EOF
16857 if { (eval echo configure:16858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16858 rm -rf conftest*
16859 eval "ac_cv_func_$ac_func=yes"
16860 else
16861 echo "configure: failed program was:" >&5
16862 cat conftest.$ac_ext >&5
16863 rm -rf conftest*
16864 eval "ac_cv_func_$ac_func=no"
16865 fi
16866 rm -f conftest*
16867 fi
16868
16869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16870 echo "$ac_t""yes" 1>&6
16871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16872 cat >> confdefs.h <<EOF
16873 #define $ac_tr_func 1
16874 EOF
16875 break
16876 else
16877 echo "$ac_t""no" 1>&6
16878 fi
16879 done
16880
16881
16882 HAVE_SOME_SLEEP_FUNC=0
16883 if test "$USE_BEOS" = 1; then
16884 cat >> confdefs.h <<\EOF
16885 #define HAVE_SLEEP 1
16886 EOF
16887
16888 HAVE_SOME_SLEEP_FUNC=1
16889 fi
16890
16891 if test "$USE_DARWIN" = 1; then
16892 cat >> confdefs.h <<\EOF
16893 #define HAVE_USLEEP 1
16894 EOF
16895
16896 HAVE_SOME_SLEEP_FUNC=1
16897 fi
16898
16899 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16900 POSIX4_LINK=
16901 for ac_func in nanosleep
16902 do
16903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16904 echo "configure:16905: checking for $ac_func" >&5
16905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16906 echo $ac_n "(cached) $ac_c" 1>&6
16907 else
16908 cat > conftest.$ac_ext <<EOF
16909 #line 16910 "configure"
16910 #include "confdefs.h"
16911 /* System header to define __stub macros and hopefully few prototypes,
16912 which can conflict with char $ac_func(); below. */
16913 #include <assert.h>
16914 /* Override any gcc2 internal prototype to avoid an error. */
16915 /* We use char because int might match the return type of a gcc2
16916 builtin and then its argument prototype would still apply. */
16917 char $ac_func();
16918
16919 int main() {
16920
16921 /* The GNU C library defines this for functions which it implements
16922 to always fail with ENOSYS. Some functions are actually named
16923 something starting with __ and the normal name is an alias. */
16924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16925 choke me
16926 #else
16927 $ac_func();
16928 #endif
16929
16930 ; return 0; }
16931 EOF
16932 if { (eval echo configure:16933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16933 rm -rf conftest*
16934 eval "ac_cv_func_$ac_func=yes"
16935 else
16936 echo "configure: failed program was:" >&5
16937 cat conftest.$ac_ext >&5
16938 rm -rf conftest*
16939 eval "ac_cv_func_$ac_func=no"
16940 fi
16941 rm -f conftest*
16942 fi
16943
16944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16945 echo "$ac_t""yes" 1>&6
16946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16947 cat >> confdefs.h <<EOF
16948 #define $ac_tr_func 1
16949 EOF
16950 cat >> confdefs.h <<\EOF
16951 #define HAVE_NANOSLEEP 1
16952 EOF
16953
16954 else
16955 echo "$ac_t""no" 1>&6
16956 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16957 echo "configure:16958: checking for nanosleep in -lposix4" >&5
16958 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16960 echo $ac_n "(cached) $ac_c" 1>&6
16961 else
16962 ac_save_LIBS="$LIBS"
16963 LIBS="-lposix4 $LIBS"
16964 cat > conftest.$ac_ext <<EOF
16965 #line 16966 "configure"
16966 #include "confdefs.h"
16967 /* Override any gcc2 internal prototype to avoid an error. */
16968 /* We use char because int might match the return type of a gcc2
16969 builtin and then its argument prototype would still apply. */
16970 char nanosleep();
16971
16972 int main() {
16973 nanosleep()
16974 ; return 0; }
16975 EOF
16976 if { (eval echo configure:16977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16977 rm -rf conftest*
16978 eval "ac_cv_lib_$ac_lib_var=yes"
16979 else
16980 echo "configure: failed program was:" >&5
16981 cat conftest.$ac_ext >&5
16982 rm -rf conftest*
16983 eval "ac_cv_lib_$ac_lib_var=no"
16984 fi
16985 rm -f conftest*
16986 LIBS="$ac_save_LIBS"
16987
16988 fi
16989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16990 echo "$ac_t""yes" 1>&6
16991
16992 cat >> confdefs.h <<\EOF
16993 #define HAVE_NANOSLEEP 1
16994 EOF
16995
16996 POSIX4_LINK=" -lposix4"
16997
16998 else
16999 echo "$ac_t""no" 1>&6
17000
17001 for ac_func in usleep
17002 do
17003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17004 echo "configure:17005: checking for $ac_func" >&5
17005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17006 echo $ac_n "(cached) $ac_c" 1>&6
17007 else
17008 cat > conftest.$ac_ext <<EOF
17009 #line 17010 "configure"
17010 #include "confdefs.h"
17011 /* System header to define __stub macros and hopefully few prototypes,
17012 which can conflict with char $ac_func(); below. */
17013 #include <assert.h>
17014 /* Override any gcc2 internal prototype to avoid an error. */
17015 /* We use char because int might match the return type of a gcc2
17016 builtin and then its argument prototype would still apply. */
17017 char $ac_func();
17018
17019 int main() {
17020
17021 /* The GNU C library defines this for functions which it implements
17022 to always fail with ENOSYS. Some functions are actually named
17023 something starting with __ and the normal name is an alias. */
17024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17025 choke me
17026 #else
17027 $ac_func();
17028 #endif
17029
17030 ; return 0; }
17031 EOF
17032 if { (eval echo configure:17033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17033 rm -rf conftest*
17034 eval "ac_cv_func_$ac_func=yes"
17035 else
17036 echo "configure: failed program was:" >&5
17037 cat conftest.$ac_ext >&5
17038 rm -rf conftest*
17039 eval "ac_cv_func_$ac_func=no"
17040 fi
17041 rm -f conftest*
17042 fi
17043
17044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17045 echo "$ac_t""yes" 1>&6
17046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17047 cat >> confdefs.h <<EOF
17048 #define $ac_tr_func 1
17049 EOF
17050 cat >> confdefs.h <<\EOF
17051 #define HAVE_USLEEP 1
17052 EOF
17053
17054 else
17055 echo "$ac_t""no" 1>&6
17056 echo "configure: warning: wxSleep() function will not work" 1>&2
17057
17058 fi
17059 done
17060
17061
17062
17063 fi
17064
17065
17066
17067 fi
17068 done
17069
17070 fi
17071
17072 for ac_func in uname gethostname
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 break
17122 else
17123 echo "$ac_t""no" 1>&6
17124 fi
17125 done
17126
17127
17128
17129 ac_ext=C
17130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17131 ac_cpp='$CXXCPP $CPPFLAGS'
17132 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17133 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17134 cross_compiling=$ac_cv_prog_cxx_cross
17135
17136
17137 for ac_func in strtok_r
17138 do
17139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17140 echo "configure:17141: checking for $ac_func" >&5
17141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17142 echo $ac_n "(cached) $ac_c" 1>&6
17143 else
17144 cat > conftest.$ac_ext <<EOF
17145 #line 17146 "configure"
17146 #include "confdefs.h"
17147 /* System header to define __stub macros and hopefully few prototypes,
17148 which can conflict with char $ac_func(); below. */
17149 #include <assert.h>
17150 /* Override any gcc2 internal prototype to avoid an error. */
17151 #ifdef __cplusplus
17152 extern "C"
17153 #endif
17154 /* We use char because int might match the return type of a gcc2
17155 builtin and then its argument prototype would still apply. */
17156 char $ac_func();
17157
17158 int main() {
17159
17160 /* The GNU C library defines this for functions which it implements
17161 to always fail with ENOSYS. Some functions are actually named
17162 something starting with __ and the normal name is an alias. */
17163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17164 choke me
17165 #else
17166 $ac_func();
17167 #endif
17168
17169 ; return 0; }
17170 EOF
17171 if { (eval echo configure:17172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17172 rm -rf conftest*
17173 eval "ac_cv_func_$ac_func=yes"
17174 else
17175 echo "configure: failed program was:" >&5
17176 cat conftest.$ac_ext >&5
17177 rm -rf conftest*
17178 eval "ac_cv_func_$ac_func=no"
17179 fi
17180 rm -f conftest*
17181 fi
17182
17183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17184 echo "$ac_t""yes" 1>&6
17185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17186 cat >> confdefs.h <<EOF
17187 #define $ac_tr_func 1
17188 EOF
17189
17190 else
17191 echo "$ac_t""no" 1>&6
17192 fi
17193 done
17194
17195
17196 ac_ext=c
17197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17198 ac_cpp='$CPP $CPPFLAGS'
17199 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17200 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17201 cross_compiling=$ac_cv_prog_cc_cross
17202
17203
17204 INET_LINK=
17205 for ac_func in inet_addr
17206 do
17207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17208 echo "configure:17209: checking for $ac_func" >&5
17209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17210 echo $ac_n "(cached) $ac_c" 1>&6
17211 else
17212 cat > conftest.$ac_ext <<EOF
17213 #line 17214 "configure"
17214 #include "confdefs.h"
17215 /* System header to define __stub macros and hopefully few prototypes,
17216 which can conflict with char $ac_func(); below. */
17217 #include <assert.h>
17218 /* Override any gcc2 internal prototype to avoid an error. */
17219 /* We use char because int might match the return type of a gcc2
17220 builtin and then its argument prototype would still apply. */
17221 char $ac_func();
17222
17223 int main() {
17224
17225 /* The GNU C library defines this for functions which it implements
17226 to always fail with ENOSYS. Some functions are actually named
17227 something starting with __ and the normal name is an alias. */
17228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17229 choke me
17230 #else
17231 $ac_func();
17232 #endif
17233
17234 ; return 0; }
17235 EOF
17236 if { (eval echo configure:17237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17237 rm -rf conftest*
17238 eval "ac_cv_func_$ac_func=yes"
17239 else
17240 echo "configure: failed program was:" >&5
17241 cat conftest.$ac_ext >&5
17242 rm -rf conftest*
17243 eval "ac_cv_func_$ac_func=no"
17244 fi
17245 rm -f conftest*
17246 fi
17247
17248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17249 echo "$ac_t""yes" 1>&6
17250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17251 cat >> confdefs.h <<EOF
17252 #define $ac_tr_func 1
17253 EOF
17254 cat >> confdefs.h <<\EOF
17255 #define HAVE_INET_ADDR 1
17256 EOF
17257
17258 else
17259 echo "$ac_t""no" 1>&6
17260 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
17261 echo "configure:17262: checking for inet_addr in -lnsl" >&5
17262 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17264 echo $ac_n "(cached) $ac_c" 1>&6
17265 else
17266 ac_save_LIBS="$LIBS"
17267 LIBS="-lnsl $LIBS"
17268 cat > conftest.$ac_ext <<EOF
17269 #line 17270 "configure"
17270 #include "confdefs.h"
17271 /* Override any gcc2 internal prototype to avoid an error. */
17272 /* We use char because int might match the return type of a gcc2
17273 builtin and then its argument prototype would still apply. */
17274 char inet_addr();
17275
17276 int main() {
17277 inet_addr()
17278 ; return 0; }
17279 EOF
17280 if { (eval echo configure:17281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17281 rm -rf conftest*
17282 eval "ac_cv_lib_$ac_lib_var=yes"
17283 else
17284 echo "configure: failed program was:" >&5
17285 cat conftest.$ac_ext >&5
17286 rm -rf conftest*
17287 eval "ac_cv_lib_$ac_lib_var=no"
17288 fi
17289 rm -f conftest*
17290 LIBS="$ac_save_LIBS"
17291
17292 fi
17293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17294 echo "$ac_t""yes" 1>&6
17295 INET_LINK="nsl"
17296 else
17297 echo "$ac_t""no" 1>&6
17298 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
17299 echo "configure:17300: checking for inet_addr in -lresolv" >&5
17300 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
17301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17302 echo $ac_n "(cached) $ac_c" 1>&6
17303 else
17304 ac_save_LIBS="$LIBS"
17305 LIBS="-lresolv $LIBS"
17306 cat > conftest.$ac_ext <<EOF
17307 #line 17308 "configure"
17308 #include "confdefs.h"
17309 /* Override any gcc2 internal prototype to avoid an error. */
17310 /* We use char because int might match the return type of a gcc2
17311 builtin and then its argument prototype would still apply. */
17312 char inet_addr();
17313
17314 int main() {
17315 inet_addr()
17316 ; return 0; }
17317 EOF
17318 if { (eval echo configure:17319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17319 rm -rf conftest*
17320 eval "ac_cv_lib_$ac_lib_var=yes"
17321 else
17322 echo "configure: failed program was:" >&5
17323 cat conftest.$ac_ext >&5
17324 rm -rf conftest*
17325 eval "ac_cv_lib_$ac_lib_var=no"
17326 fi
17327 rm -f conftest*
17328 LIBS="$ac_save_LIBS"
17329
17330 fi
17331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17332 echo "$ac_t""yes" 1>&6
17333 INET_LINK="resolv"
17334 else
17335 echo "$ac_t""no" 1>&6
17336 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
17337 echo "configure:17338: checking for inet_addr in -lsocket" >&5
17338 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17340 echo $ac_n "(cached) $ac_c" 1>&6
17341 else
17342 ac_save_LIBS="$LIBS"
17343 LIBS="-lsocket $LIBS"
17344 cat > conftest.$ac_ext <<EOF
17345 #line 17346 "configure"
17346 #include "confdefs.h"
17347 /* Override any gcc2 internal prototype to avoid an error. */
17348 /* We use char because int might match the return type of a gcc2
17349 builtin and then its argument prototype would still apply. */
17350 char inet_addr();
17351
17352 int main() {
17353 inet_addr()
17354 ; return 0; }
17355 EOF
17356 if { (eval echo configure:17357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17357 rm -rf conftest*
17358 eval "ac_cv_lib_$ac_lib_var=yes"
17359 else
17360 echo "configure: failed program was:" >&5
17361 cat conftest.$ac_ext >&5
17362 rm -rf conftest*
17363 eval "ac_cv_lib_$ac_lib_var=no"
17364 fi
17365 rm -f conftest*
17366 LIBS="$ac_save_LIBS"
17367
17368 fi
17369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17370 echo "$ac_t""yes" 1>&6
17371 INET_LINK="socket"
17372
17373 else
17374 echo "$ac_t""no" 1>&6
17375 fi
17376
17377
17378 fi
17379
17380
17381 fi
17382
17383
17384
17385 fi
17386 done
17387
17388
17389 for ac_func in inet_aton
17390 do
17391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17392 echo "configure:17393: checking for $ac_func" >&5
17393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17394 echo $ac_n "(cached) $ac_c" 1>&6
17395 else
17396 cat > conftest.$ac_ext <<EOF
17397 #line 17398 "configure"
17398 #include "confdefs.h"
17399 /* System header to define __stub macros and hopefully few prototypes,
17400 which can conflict with char $ac_func(); below. */
17401 #include <assert.h>
17402 /* Override any gcc2 internal prototype to avoid an error. */
17403 /* We use char because int might match the return type of a gcc2
17404 builtin and then its argument prototype would still apply. */
17405 char $ac_func();
17406
17407 int main() {
17408
17409 /* The GNU C library defines this for functions which it implements
17410 to always fail with ENOSYS. Some functions are actually named
17411 something starting with __ and the normal name is an alias. */
17412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17413 choke me
17414 #else
17415 $ac_func();
17416 #endif
17417
17418 ; return 0; }
17419 EOF
17420 if { (eval echo configure:17421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17421 rm -rf conftest*
17422 eval "ac_cv_func_$ac_func=yes"
17423 else
17424 echo "configure: failed program was:" >&5
17425 cat conftest.$ac_ext >&5
17426 rm -rf conftest*
17427 eval "ac_cv_func_$ac_func=no"
17428 fi
17429 rm -f conftest*
17430 fi
17431
17432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17433 echo "$ac_t""yes" 1>&6
17434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17435 cat >> confdefs.h <<EOF
17436 #define $ac_tr_func 1
17437 EOF
17438 cat >> confdefs.h <<\EOF
17439 #define HAVE_INET_ATON 1
17440 EOF
17441
17442 else
17443 echo "$ac_t""no" 1>&6
17444 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17445 echo "configure:17446: checking for inet_aton in -l$INET_LINK" >&5
17446 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17448 echo $ac_n "(cached) $ac_c" 1>&6
17449 else
17450 ac_save_LIBS="$LIBS"
17451 LIBS="-l$INET_LINK $LIBS"
17452 cat > conftest.$ac_ext <<EOF
17453 #line 17454 "configure"
17454 #include "confdefs.h"
17455 /* Override any gcc2 internal prototype to avoid an error. */
17456 /* We use char because int might match the return type of a gcc2
17457 builtin and then its argument prototype would still apply. */
17458 char inet_aton();
17459
17460 int main() {
17461 inet_aton()
17462 ; return 0; }
17463 EOF
17464 if { (eval echo configure:17465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17465 rm -rf conftest*
17466 eval "ac_cv_lib_$ac_lib_var=yes"
17467 else
17468 echo "configure: failed program was:" >&5
17469 cat conftest.$ac_ext >&5
17470 rm -rf conftest*
17471 eval "ac_cv_lib_$ac_lib_var=no"
17472 fi
17473 rm -f conftest*
17474 LIBS="$ac_save_LIBS"
17475
17476 fi
17477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17478 echo "$ac_t""yes" 1>&6
17479 cat >> confdefs.h <<\EOF
17480 #define HAVE_INET_ATON 1
17481 EOF
17482
17483 else
17484 echo "$ac_t""no" 1>&6
17485 fi
17486
17487
17488 fi
17489 done
17490
17491
17492 if test "x$INET_LINK" != "x"; then
17493 cat >> confdefs.h <<\EOF
17494 #define HAVE_INET_ADDR 1
17495 EOF
17496
17497 INET_LINK=" -l$INET_LINK"
17498 fi
17499
17500 fi
17501
17502
17503 cat > confcache <<\EOF
17504 # This file is a shell script that caches the results of configure
17505 # tests run on this system so they can be shared between configure
17506 # scripts and configure runs. It is not useful on other systems.
17507 # If it contains results you don't want to keep, you may remove or edit it.
17508 #
17509 # By default, configure uses ./config.cache as the cache file,
17510 # creating it if it does not exist already. You can give configure
17511 # the --cache-file=FILE option to use a different cache file; that is
17512 # what configure does when it calls configure scripts in
17513 # subdirectories, so they share the cache.
17514 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17515 # config.status only pays attention to the cache file if you give it the
17516 # --recheck option to rerun configure.
17517 #
17518 EOF
17519 # The following way of writing the cache mishandles newlines in values,
17520 # but we know of no workaround that is simple, portable, and efficient.
17521 # So, don't put newlines in cache variables' values.
17522 # Ultrix sh set writes to stderr and can't be redirected directly,
17523 # and sets the high bit in the cache file unless we assign to the vars.
17524 (set) 2>&1 |
17525 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17526 *ac_space=\ *)
17527 # `set' does not quote correctly, so add quotes (double-quote substitution
17528 # turns \\\\ into \\, and sed turns \\ into \).
17529 sed -n \
17530 -e "s/'/'\\\\''/g" \
17531 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17532 ;;
17533 *)
17534 # `set' quotes correctly as required by POSIX, so do not add quotes.
17535 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17536 ;;
17537 esac >> confcache
17538 if cmp -s $cache_file confcache; then
17539 :
17540 else
17541 if test -w $cache_file; then
17542 echo "updating cache $cache_file"
17543 cat confcache > $cache_file
17544 else
17545 echo "not updating unwritable cache $cache_file"
17546 fi
17547 fi
17548 rm -f confcache
17549
17550
17551
17552 CPP_MT_FLAG=
17553 COMMON_THREADCPPFLAGS=
17554 if test "$TOOLKIT" != "MSW"; then
17555
17556
17557 THREADS_LINK=
17558 THREADS_CFLAGS=
17559
17560 if test "$wxUSE_THREADS" = "yes" ; then
17561 if test "$wxUSE_WINE" = 1 ; then
17562 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17563 wxUSE_THREADS="no"
17564 elif test "$USE_BEOS" = 1; then
17565 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17566 wxUSE_THREADS="no"
17567 fi
17568 fi
17569
17570 if test "$wxUSE_THREADS" = "yes" ; then
17571
17572
17573 THREAD_OPTS="-pthread"
17574 case "${host}" in
17575 *-*-solaris2* | *-*-sunos4* )
17576 if test "x$GCC" = "xyes"; then
17577 THREAD_OPTS="-pthreads $THREAD_OPTS"
17578 else
17579 THREAD_OPTS="-mt $THREAD_OPTS"
17580 fi
17581 ;;
17582 *-*-freebsd*)
17583 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17584 ;;
17585 *-*-darwin* | *-*-cygwin* )
17586 THREAD_OPTS=""
17587 ;;
17588 *-*-aix*)
17589 THREAD_OPTS="pthreads"
17590 ;;
17591 esac
17592
17593 THREAD_OPTS="$THREAD_OPTS pthread none"
17594
17595 THREADS_OK=no
17596 for flag in $THREAD_OPTS; do
17597 case $flag in
17598 none)
17599 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
17600 echo "configure:17601: checking whether pthreads work without any flags" >&5
17601 ;;
17602
17603 -*)
17604 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
17605 echo "configure:17606: checking whether pthreads work with $flag" >&5
17606 THREADS_CFLAGS="$flag"
17607 ;;
17608
17609 *)
17610 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
17611 echo "configure:17612: checking for the pthreads library -l$flag" >&5
17612 THREADS_LINK="-l$flag"
17613 ;;
17614 esac
17615
17616 save_LIBS="$LIBS"
17617 save_CFLAGS="$CFLAGS"
17618 LIBS="$THREADS_LINK $LIBS"
17619 CFLAGS="$THREADS_CFLAGS $CFLAGS"
17620
17621 cat > conftest.$ac_ext <<EOF
17622 #line 17623 "configure"
17623 #include "confdefs.h"
17624 #include <pthread.h>
17625 int main() {
17626 pthread_create(0,0,0,0);
17627 ; return 0; }
17628 EOF
17629 if { (eval echo configure:17630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17630 rm -rf conftest*
17631 THREADS_OK=yes
17632 else
17633 echo "configure: failed program was:" >&5
17634 cat conftest.$ac_ext >&5
17635 fi
17636 rm -f conftest*
17637
17638 LIBS="$save_LIBS"
17639 CFLAGS="$save_CFLAGS"
17640
17641 echo "$ac_t""$THREADS_OK" 1>&6
17642 if test "x$THREADS_OK" = "xyes"; then
17643 break;
17644 fi
17645
17646 THREADS_LINK=""
17647 THREADS_CFLAGS=""
17648 done
17649
17650 if test "x$THREADS_OK" != "xyes"; then
17651 wxUSE_THREADS=no
17652 echo "configure: warning: No thread support on this system... disabled" 1>&2
17653 else
17654 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17655
17656 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
17657 echo "configure:17658: checking if more special flags are required for pthreads" >&5
17658 flag=no
17659 case "${host}" in
17660 *-aix* | *-freebsd*)
17661 flag="-D_THREAD_SAFE"
17662 ;;
17663 *solaris* | alpha*-osf*)
17664 flag="-D_REENTRANT"
17665 ;;
17666 esac
17667 echo "$ac_t""${flag}" 1>&6
17668 if test "x$flag" != xno; then
17669 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
17670 fi
17671
17672 if test "x$THREADS_CFLAGS" != "x"; then
17673 CFLAGS="$CFLAGS $THREADS_CFLAGS"
17674 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17675 fi
17676 fi
17677 fi
17678
17679 if test "$wxUSE_THREADS" = "yes" ; then
17680 for ac_func in thr_setconcurrency
17681 do
17682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17683 echo "configure:17684: checking for $ac_func" >&5
17684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17685 echo $ac_n "(cached) $ac_c" 1>&6
17686 else
17687 cat > conftest.$ac_ext <<EOF
17688 #line 17689 "configure"
17689 #include "confdefs.h"
17690 /* System header to define __stub macros and hopefully few prototypes,
17691 which can conflict with char $ac_func(); below. */
17692 #include <assert.h>
17693 /* Override any gcc2 internal prototype to avoid an error. */
17694 /* We use char because int might match the return type of a gcc2
17695 builtin and then its argument prototype would still apply. */
17696 char $ac_func();
17697
17698 int main() {
17699
17700 /* The GNU C library defines this for functions which it implements
17701 to always fail with ENOSYS. Some functions are actually named
17702 something starting with __ and the normal name is an alias. */
17703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17704 choke me
17705 #else
17706 $ac_func();
17707 #endif
17708
17709 ; return 0; }
17710 EOF
17711 if { (eval echo configure:17712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17712 rm -rf conftest*
17713 eval "ac_cv_func_$ac_func=yes"
17714 else
17715 echo "configure: failed program was:" >&5
17716 cat conftest.$ac_ext >&5
17717 rm -rf conftest*
17718 eval "ac_cv_func_$ac_func=no"
17719 fi
17720 rm -f conftest*
17721 fi
17722
17723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17724 echo "$ac_t""yes" 1>&6
17725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17726 cat >> confdefs.h <<EOF
17727 #define $ac_tr_func 1
17728 EOF
17729
17730 else
17731 echo "$ac_t""no" 1>&6
17732 fi
17733 done
17734
17735
17736 for ac_hdr in sched.h
17737 do
17738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17740 echo "configure:17741: checking for $ac_hdr" >&5
17741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17742 echo $ac_n "(cached) $ac_c" 1>&6
17743 else
17744 cat > conftest.$ac_ext <<EOF
17745 #line 17746 "configure"
17746 #include "confdefs.h"
17747 #include <$ac_hdr>
17748 EOF
17749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17750 { (eval echo configure:17751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17752 if test -z "$ac_err"; then
17753 rm -rf conftest*
17754 eval "ac_cv_header_$ac_safe=yes"
17755 else
17756 echo "$ac_err" >&5
17757 echo "configure: failed program was:" >&5
17758 cat conftest.$ac_ext >&5
17759 rm -rf conftest*
17760 eval "ac_cv_header_$ac_safe=no"
17761 fi
17762 rm -f conftest*
17763 fi
17764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17765 echo "$ac_t""yes" 1>&6
17766 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17767 cat >> confdefs.h <<EOF
17768 #define $ac_tr_hdr 1
17769 EOF
17770
17771 else
17772 echo "$ac_t""no" 1>&6
17773 fi
17774 done
17775
17776 if test "$ac_cv_header_sched_h" = "yes"; then
17777 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
17778 echo "configure:17779: checking for sched_yield" >&5
17779 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
17780 echo $ac_n "(cached) $ac_c" 1>&6
17781 else
17782 cat > conftest.$ac_ext <<EOF
17783 #line 17784 "configure"
17784 #include "confdefs.h"
17785 /* System header to define __stub macros and hopefully few prototypes,
17786 which can conflict with char sched_yield(); below. */
17787 #include <assert.h>
17788 /* Override any gcc2 internal prototype to avoid an error. */
17789 /* We use char because int might match the return type of a gcc2
17790 builtin and then its argument prototype would still apply. */
17791 char sched_yield();
17792
17793 int main() {
17794
17795 /* The GNU C library defines this for functions which it implements
17796 to always fail with ENOSYS. Some functions are actually named
17797 something starting with __ and the normal name is an alias. */
17798 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17799 choke me
17800 #else
17801 sched_yield();
17802 #endif
17803
17804 ; return 0; }
17805 EOF
17806 if { (eval echo configure:17807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17807 rm -rf conftest*
17808 eval "ac_cv_func_sched_yield=yes"
17809 else
17810 echo "configure: failed program was:" >&5
17811 cat conftest.$ac_ext >&5
17812 rm -rf conftest*
17813 eval "ac_cv_func_sched_yield=no"
17814 fi
17815 rm -f conftest*
17816 fi
17817
17818 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
17819 echo "$ac_t""yes" 1>&6
17820 cat >> confdefs.h <<\EOF
17821 #define HAVE_SCHED_YIELD 1
17822 EOF
17823
17824 else
17825 echo "$ac_t""no" 1>&6
17826
17827 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17828 echo "configure:17829: checking for sched_yield in -lposix4" >&5
17829 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17831 echo $ac_n "(cached) $ac_c" 1>&6
17832 else
17833 ac_save_LIBS="$LIBS"
17834 LIBS="-lposix4 $LIBS"
17835 cat > conftest.$ac_ext <<EOF
17836 #line 17837 "configure"
17837 #include "confdefs.h"
17838 /* Override any gcc2 internal prototype to avoid an error. */
17839 /* We use char because int might match the return type of a gcc2
17840 builtin and then its argument prototype would still apply. */
17841 char sched_yield();
17842
17843 int main() {
17844 sched_yield()
17845 ; return 0; }
17846 EOF
17847 if { (eval echo configure:17848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17848 rm -rf conftest*
17849 eval "ac_cv_lib_$ac_lib_var=yes"
17850 else
17851 echo "configure: failed program was:" >&5
17852 cat conftest.$ac_ext >&5
17853 rm -rf conftest*
17854 eval "ac_cv_lib_$ac_lib_var=no"
17855 fi
17856 rm -f conftest*
17857 LIBS="$ac_save_LIBS"
17858
17859 fi
17860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17861 echo "$ac_t""yes" 1>&6
17862 cat >> confdefs.h <<\EOF
17863 #define HAVE_SCHED_YIELD 1
17864 EOF
17865 POSIX4_LINK=" -lposix4"
17866 else
17867 echo "$ac_t""no" 1>&6
17868 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17869
17870 fi
17871
17872
17873
17874 fi
17875
17876 fi
17877
17878 HAVE_PRIOR_FUNCS=0
17879 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
17880 echo "configure:17881: checking for pthread_attr_getschedpolicy" >&5
17881 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
17882 echo $ac_n "(cached) $ac_c" 1>&6
17883 else
17884 cat > conftest.$ac_ext <<EOF
17885 #line 17886 "configure"
17886 #include "confdefs.h"
17887 /* System header to define __stub macros and hopefully few prototypes,
17888 which can conflict with char pthread_attr_getschedpolicy(); below. */
17889 #include <assert.h>
17890 /* Override any gcc2 internal prototype to avoid an error. */
17891 /* We use char because int might match the return type of a gcc2
17892 builtin and then its argument prototype would still apply. */
17893 char pthread_attr_getschedpolicy();
17894
17895 int main() {
17896
17897 /* The GNU C library defines this for functions which it implements
17898 to always fail with ENOSYS. Some functions are actually named
17899 something starting with __ and the normal name is an alias. */
17900 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17901 choke me
17902 #else
17903 pthread_attr_getschedpolicy();
17904 #endif
17905
17906 ; return 0; }
17907 EOF
17908 if { (eval echo configure:17909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17909 rm -rf conftest*
17910 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
17911 else
17912 echo "configure: failed program was:" >&5
17913 cat conftest.$ac_ext >&5
17914 rm -rf conftest*
17915 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
17916 fi
17917 rm -f conftest*
17918 fi
17919
17920 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
17921 echo "$ac_t""yes" 1>&6
17922 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
17923 echo "configure:17924: checking for pthread_attr_setschedparam" >&5
17924 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
17925 echo $ac_n "(cached) $ac_c" 1>&6
17926 else
17927 cat > conftest.$ac_ext <<EOF
17928 #line 17929 "configure"
17929 #include "confdefs.h"
17930 /* System header to define __stub macros and hopefully few prototypes,
17931 which can conflict with char pthread_attr_setschedparam(); below. */
17932 #include <assert.h>
17933 /* Override any gcc2 internal prototype to avoid an error. */
17934 /* We use char because int might match the return type of a gcc2
17935 builtin and then its argument prototype would still apply. */
17936 char pthread_attr_setschedparam();
17937
17938 int main() {
17939
17940 /* The GNU C library defines this for functions which it implements
17941 to always fail with ENOSYS. Some functions are actually named
17942 something starting with __ and the normal name is an alias. */
17943 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17944 choke me
17945 #else
17946 pthread_attr_setschedparam();
17947 #endif
17948
17949 ; return 0; }
17950 EOF
17951 if { (eval echo configure:17952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17952 rm -rf conftest*
17953 eval "ac_cv_func_pthread_attr_setschedparam=yes"
17954 else
17955 echo "configure: failed program was:" >&5
17956 cat conftest.$ac_ext >&5
17957 rm -rf conftest*
17958 eval "ac_cv_func_pthread_attr_setschedparam=no"
17959 fi
17960 rm -f conftest*
17961 fi
17962
17963 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
17964 echo "$ac_t""yes" 1>&6
17965 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
17966 echo "configure:17967: checking for sched_get_priority_max" >&5
17967 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
17968 echo $ac_n "(cached) $ac_c" 1>&6
17969 else
17970 cat > conftest.$ac_ext <<EOF
17971 #line 17972 "configure"
17972 #include "confdefs.h"
17973 /* System header to define __stub macros and hopefully few prototypes
17974 else
17975 echo "$ac_t""no" 1>&6
17976 which can conflict with char sched_get_priority_max(); below. */
17977 #include <assert.h>
17978 /* Override any gcc2 internal prototype to avoid an error. */
17979 /* We use char because int might match the return type of a gcc2
17980 builtin and then its argument prototype would still apply. */
17981 char sched_get_priority_max();
17982
17983 int main() {
17984
17985 /* The GNU C library defines this for functions which it implements
17986 to always fail with ENOSYS. Some functions are actually named
17987 something starting with __ and the normal name is an alias. */
17988 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17989 choke me
17990 #else
17991 sched_get_priority_max();
17992 #endif
17993
17994 ; return 0; }
17995 EOF
17996 if { (eval echo configure:17997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17997 rm -rf conftest*
17998 eval "ac_cv_func_sched_get_priority_max=yes"
17999 else
18000 echo "configure: failed program was:" >&5
18001 cat conftest.$ac_ext >&5
18002 rm -rf conftest*
18003 eval "ac_cv_func_sched_get_priority_max=no"
18004 fi
18005 rm -f conftest*
18006 fi
18007
18008 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18009 echo "$ac_t""yes" 1>&6
18010 HAVE_PRIOR_FUNCS=1
18011 else
18012 echo "$ac_t""no" 1>&6
18013 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
18014 echo "configure:18015: checking for sched_get_priority_max in -lposix4" >&5
18015 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18017 echo $ac_n "(cached) $ac_c" 1>&6
18018 else
18019 ac_save_LIBS="$LIBS"
18020 LIBS="-lposix4 $LIBS"
18021 cat > conftest.$ac_ext <<EOF
18022 #line 18023 "configure"
18023 #include "confdefs.h"
18024 /* Override any gcc2 internal prototype to avoid an error. */
18025 /* We use char because int might match the return type of a gcc2
18026 builtin and then its argument prototype would still apply. */
18027 char sched_get_priority_max();
18028
18029 int main() {
18030 sched_get_priority_max()
18031 ; return 0; }
18032 EOF
18033 if { (eval echo configure:18034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18034 rm -rf conftest*
18035 eval "ac_cv_lib_$ac_lib_var=yes"
18036 else
18037 echo "configure: failed program was:" >&5
18038 cat conftest.$ac_ext >&5
18039 rm -rf conftest*
18040 eval "ac_cv_lib_$ac_lib_var=no"
18041 fi
18042 rm -f conftest*
18043 LIBS="$ac_save_LIBS"
18044
18045 fi
18046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18047 echo "$ac_t""yes" 1>&6
18048
18049 HAVE_PRIOR_FUNCS=1
18050 POSIX4_LINK=" -lposix4"
18051
18052 else
18053 echo "$ac_t""no" 1>&6
18054 fi
18055
18056
18057 fi
18058
18059
18060 else
18061 echo "$ac_t""no" 1>&6
18062 fi
18063
18064
18065 fi
18066
18067
18068 if test "$HAVE_PRIOR_FUNCS" = 1; then
18069 cat >> confdefs.h <<\EOF
18070 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
18071 EOF
18072
18073 else
18074 echo "configure: warning: Setting thread priority will not work" 1>&2
18075 fi
18076
18077 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
18078 echo "configure:18079: checking for pthread_cancel" >&5
18079 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
18080 echo $ac_n "(cached) $ac_c" 1>&6
18081 else
18082 cat > conftest.$ac_ext <<EOF
18083 #line 18084 "configure"
18084 #include "confdefs.h"
18085 /* System header to define __stub macros and hopefully few prototypes,
18086 which can conflict with char pthread_cancel(); below. */
18087 #include <assert.h>
18088 /* Override any gcc2 internal prototype to avoid an error. */
18089 /* We use char because int might match the return type of a gcc2
18090 builtin and then its argument prototype would still apply. */
18091 char pthread_cancel();
18092
18093 int main() {
18094
18095 /* The GNU C library defines this for functions which it implements
18096 to always fail with ENOSYS. Some functions are actually named
18097 something starting with __ and the normal name is an alias. */
18098 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18099 choke me
18100 #else
18101 pthread_cancel();
18102 #endif
18103
18104 ; return 0; }
18105 EOF
18106 if { (eval echo configure:18107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18107 rm -rf conftest*
18108 eval "ac_cv_func_pthread_cancel=yes"
18109 else
18110 echo "configure: failed program was:" >&5
18111 cat conftest.$ac_ext >&5
18112 rm -rf conftest*
18113 eval "ac_cv_func_pthread_cancel=no"
18114 fi
18115 rm -f conftest*
18116 fi
18117
18118 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
18119 echo "$ac_t""yes" 1>&6
18120 cat >> confdefs.h <<\EOF
18121 #define HAVE_PTHREAD_CANCEL 1
18122 EOF
18123
18124 else
18125 echo "$ac_t""no" 1>&6
18126 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
18127 fi
18128
18129
18130 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
18131 echo "configure:18132: checking for pthread_cleanup_push/pop" >&5
18132 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18133 echo $ac_n "(cached) $ac_c" 1>&6
18134 else
18135
18136 cat > conftest.$ac_ext <<EOF
18137 #line 18138 "configure"
18138 #include "confdefs.h"
18139 #include <pthread.h>
18140 int main() {
18141
18142 pthread_cleanup_push(NULL, NULL);
18143 pthread_cleanup_pop(0);
18144
18145 ; return 0; }
18146 EOF
18147 if { (eval echo configure:18148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18148 rm -rf conftest*
18149
18150 wx_cv_func_pthread_cleanup_push=yes
18151
18152 else
18153 echo "configure: failed program was:" >&5
18154 cat conftest.$ac_ext >&5
18155 rm -rf conftest*
18156
18157 wx_cv_func_pthread_cleanup_push=no
18158
18159 fi
18160 rm -f conftest*
18161
18162 fi
18163
18164 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18165
18166 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18167 cat >> confdefs.h <<\EOF
18168 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
18169 EOF
18170
18171 fi
18172
18173
18174 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
18175 echo "configure:18176: checking for pthread_mutexattr_t" >&5
18176 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18177 echo $ac_n "(cached) $ac_c" 1>&6
18178 else
18179
18180 cat > conftest.$ac_ext <<EOF
18181 #line 18182 "configure"
18182 #include "confdefs.h"
18183 #include <pthread.h>
18184 int main() {
18185
18186 pthread_mutexattr_t attr;
18187 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18188
18189 ; return 0; }
18190 EOF
18191 if { (eval echo configure:18192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18192 rm -rf conftest*
18193
18194 wx_cv_type_pthread_mutexattr_t=yes
18195
18196 else
18197 echo "configure: failed program was:" >&5
18198 cat conftest.$ac_ext >&5
18199 rm -rf conftest*
18200
18201 wx_cv_type_pthread_mutexattr_t=no
18202
18203
18204 fi
18205 rm -f conftest*
18206
18207 fi
18208
18209 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18210
18211 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18212 cat >> confdefs.h <<\EOF
18213 #define HAVE_PTHREAD_MUTEXATTR_T 1
18214 EOF
18215
18216 else
18217 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
18218 echo "configure:18219: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
18219 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18220 echo $ac_n "(cached) $ac_c" 1>&6
18221 else
18222
18223 cat > conftest.$ac_ext <<EOF
18224 #line 18225 "configure"
18225 #include "confdefs.h"
18226 #include <pthread.h>
18227 int main() {
18228
18229 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18230
18231 ; return 0; }
18232 EOF
18233 if { (eval echo configure:18234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18234 rm -rf conftest*
18235
18236 wx_cv_type_pthread_rec_mutex_init=yes
18237
18238 else
18239 echo "configure: failed program was:" >&5
18240 cat conftest.$ac_ext >&5
18241 rm -rf conftest*
18242
18243 wx_cv_type_pthread_rec_mutex_init=no
18244
18245
18246 fi
18247 rm -f conftest*
18248
18249 fi
18250
18251 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
18252 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18253 cat >> confdefs.h <<\EOF
18254 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18255 EOF
18256
18257 else
18258 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18259 fi
18260 fi
18261 fi
18262
18263 else
18264 if test "$wxUSE_THREADS" = "yes" ; then
18265 case "${host}" in
18266 *-*-mingw32* )
18267 CFLAGS="$CFLAGS -mthreads"
18268 CXXFLAGS="$CXXFLAGS -mthreads"
18269 COMMON_THREADCPPFLAGS="-mthreads"
18270 LDFLAGS="$LDFLAGS -mthreads"
18271 ;;
18272 esac
18273 fi
18274 fi
18275
18276 if test "$wxUSE_THREADS" = "yes"; then
18277 cat >> confdefs.h <<\EOF
18278 #define wxUSE_THREADS 1
18279 EOF
18280
18281
18282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
18283 else
18284 if test "$ac_cv_func_strtok_r" = "yes"; then
18285 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
18286 echo "configure:18287: checking if -D_REENTRANT is needed" >&5
18287 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18288 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18289 echo "$ac_t""yes" 1>&6
18290 else
18291 echo "$ac_t""no" 1>&6
18292 fi
18293 fi
18294 fi
18295
18296 if test "$WXGTK20" = 1 ; then
18297 cat >> confdefs.h <<EOF
18298 #define __WXGTK20__ $WXGTK20
18299 EOF
18300
18301 WXGTK12=1
18302 fi
18303
18304 if test "$WXGTK12" = 1 ; then
18305 cat >> confdefs.h <<EOF
18306 #define __WXGTK12__ $WXGTK12
18307 EOF
18308
18309 fi
18310
18311 if test "$WXGTK127" = 1 ; then
18312 cat >> confdefs.h <<EOF
18313 #define __WXGTK127__ $WXGTK127
18314 EOF
18315
18316 fi
18317
18318 WXDEBUG=
18319
18320 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18321 WXDEBUG="-g"
18322 wxUSE_OPTIMISE=no
18323 fi
18324
18325 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18326 wxUSE_DEBUG_INFO=yes
18327 WXDEBUG="-ggdb"
18328 fi
18329
18330 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18331 cat >> confdefs.h <<\EOF
18332 #define WXDEBUG 1
18333 EOF
18334
18335 WXDEBUG_DEFINE="-D__WXDEBUG__"
18336 else
18337 if test "$wxUSE_GTK" = 1 ; then
18338 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18339 fi
18340 fi
18341
18342 if test "$wxUSE_MEM_TRACING" = "yes" ; then
18343 cat >> confdefs.h <<\EOF
18344 #define wxUSE_MEMORY_TRACING 1
18345 EOF
18346
18347 cat >> confdefs.h <<\EOF
18348 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18349 EOF
18350
18351 cat >> confdefs.h <<\EOF
18352 #define wxUSE_DEBUG_NEW_ALWAYS 1
18353 EOF
18354
18355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18356 fi
18357
18358 if test "$wxUSE_DMALLOC" = "yes" ; then
18359 DMALLOC_LIBS="-ldmalloc"
18360 fi
18361
18362 PROFILE=
18363 if test "$wxUSE_PROFILE" = "yes" ; then
18364 PROFILE=" -pg"
18365 fi
18366
18367 CODE_GEN_FLAGS=
18368 CODE_GEN_FLAGS_CXX=
18369 if test "$GCC" = "yes" ; then
18370 if test "$wxUSE_NO_RTTI" = "yes" ; then
18371 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
18372 fi
18373 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18374 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18375 fi
18376 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18377 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18378 fi
18379 if test "$USE_WIN32" = 1 ; then
18380 # I'm not even really sure what this was ever added to solve,
18381 # but someone added it for mingw native builds, so I guess
18382 # they had a reason, right??
18383 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18384 fi
18385
18386 case "${host}" in
18387 powerpc*-*-aix* )
18388 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18389 ;;
18390 esac
18391 fi
18392
18393 if test "$wxUSE_OPTIMISE" = "no" ; then
18394 OPTIMISE=
18395 else
18396 if test "$GCC" = yes ; then
18397 OPTIMISE="-O2"
18398 case "${host}" in
18399 i586-*-*|i686-*-* )
18400 OPTIMISE="${OPTIMISE} "
18401 ;;
18402 esac
18403 else
18404 OPTIMISE="-O"
18405 fi
18406 fi
18407
18408 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18409 cat >> confdefs.h <<\EOF
18410 #define WXWIN_COMPATIBILITY_2 1
18411 EOF
18412
18413
18414 WXWIN_COMPATIBILITY_2_2="yes"
18415 fi
18416
18417 if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
18418 cat >> confdefs.h <<\EOF
18419 #define WXWIN_COMPATIBILITY_2_2 1
18420 EOF
18421
18422 fi
18423
18424
18425 if test "$wxUSE_GUI" = "yes"; then
18426 cat >> confdefs.h <<\EOF
18427 #define wxUSE_GUI 1
18428 EOF
18429
18430
18431 else
18432 cat >> confdefs.h <<\EOF
18433 #define wxUSE_NOGUI 1
18434 EOF
18435
18436 fi
18437
18438
18439 if test "$wxUSE_UNIX" = "yes"; then
18440 cat >> confdefs.h <<\EOF
18441 #define wxUSE_UNIX 1
18442 EOF
18443
18444 fi
18445
18446
18447 if test "$wxUSE_APPLE_IEEE" = "yes"; then
18448 cat >> confdefs.h <<\EOF
18449 #define wxUSE_APPLE_IEEE 1
18450 EOF
18451
18452 fi
18453
18454 if test "$wxUSE_TIMER" = "yes"; then
18455 cat >> confdefs.h <<\EOF
18456 #define wxUSE_TIMER 1
18457 EOF
18458
18459 fi
18460
18461 if test "$wxUSE_WAVE" = "yes"; then
18462 cat >> confdefs.h <<\EOF
18463 #define wxUSE_WAVE 1
18464 EOF
18465
18466 fi
18467
18468 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18469 cat >> confdefs.h <<\EOF
18470 #define wxUSE_CMDLINE_PARSER 1
18471 EOF
18472
18473 fi
18474
18475 if test "$wxUSE_STOPWATCH" = "yes"; then
18476 cat >> confdefs.h <<\EOF
18477 #define wxUSE_STOPWATCH 1
18478 EOF
18479
18480 fi
18481
18482 if test "$wxUSE_DATETIME" = "yes"; then
18483 cat >> confdefs.h <<\EOF
18484 #define wxUSE_DATETIME 1
18485 EOF
18486
18487 fi
18488
18489 if test "$wxUSE_TIMEDATE" = "yes"; then
18490 cat >> confdefs.h <<\EOF
18491 #define wxUSE_TIMEDATE 1
18492 EOF
18493
18494 fi
18495
18496 if test "$wxUSE_FILE" = "yes"; then
18497 cat >> confdefs.h <<\EOF
18498 #define wxUSE_FILE 1
18499 EOF
18500
18501 fi
18502
18503 if test "$wxUSE_FFILE" = "yes"; then
18504 cat >> confdefs.h <<\EOF
18505 #define wxUSE_FFILE 1
18506 EOF
18507
18508 fi
18509
18510 if test "$wxUSE_FILESYSTEM" = "yes"; then
18511 cat >> confdefs.h <<\EOF
18512 #define wxUSE_FILESYSTEM 1
18513 EOF
18514
18515 fi
18516
18517 if test "$wxUSE_FS_INET" = "yes"; then
18518 cat >> confdefs.h <<\EOF
18519 #define wxUSE_FS_INET 1
18520 EOF
18521
18522 fi
18523
18524 if test "$wxUSE_FS_ZIP" = "yes"; then
18525 cat >> confdefs.h <<\EOF
18526 #define wxUSE_FS_ZIP 1
18527 EOF
18528
18529 fi
18530
18531 if test "$wxUSE_ZIPSTREAM" = "yes"; then
18532 cat >> confdefs.h <<\EOF
18533 #define wxUSE_ZIPSTREAM 1
18534 EOF
18535
18536 fi
18537
18538 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18539 cat >> confdefs.h <<\EOF
18540 #define wxUSE_ON_FATAL_EXCEPTION 1
18541 EOF
18542
18543 fi
18544
18545 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18546 cat >> confdefs.h <<\EOF
18547 #define wxUSE_SNGLINST_CHECKER 1
18548 EOF
18549
18550 fi
18551
18552 if test "$wxUSE_BUSYINFO" = "yes"; then
18553 cat >> confdefs.h <<\EOF
18554 #define wxUSE_BUSYINFO 1
18555 EOF
18556
18557 fi
18558
18559 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18560 cat >> confdefs.h <<\EOF
18561 #define wxUSE_STD_IOSTREAM 1
18562 EOF
18563
18564 fi
18565
18566 if test "$wxUSE_TEXTBUFFER" = "yes"; then
18567 cat >> confdefs.h <<\EOF
18568 #define wxUSE_TEXTBUFFER 1
18569 EOF
18570
18571 fi
18572
18573 if test "$wxUSE_TEXTFILE" = "yes"; then
18574 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18575 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18576 else
18577 cat >> confdefs.h <<\EOF
18578 #define wxUSE_TEXTFILE 1
18579 EOF
18580
18581 fi
18582 fi
18583
18584 if test "$wxUSE_CONFIG" = "yes" ; then
18585 if test "$wxUSE_TEXTFILE" != "yes"; then
18586 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18587 else
18588 cat >> confdefs.h <<\EOF
18589 #define wxUSE_CONFIG 1
18590 EOF
18591
18592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18593 fi
18594 fi
18595
18596 if test "$wxUSE_INTL" = "yes" ; then
18597 if test "$wxUSE_FILE" != "yes"; then
18598 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18599 else
18600 cat >> confdefs.h <<\EOF
18601 #define wxUSE_INTL 1
18602 EOF
18603
18604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18605 GUIDIST="$GUIDIST INTL_DIST"
18606 fi
18607 fi
18608
18609 if test "$wxUSE_LOG" = "yes"; then
18610 cat >> confdefs.h <<\EOF
18611 #define wxUSE_LOG 1
18612 EOF
18613
18614
18615 if test "$wxUSE_LOGGUI" = "yes"; then
18616 cat >> confdefs.h <<\EOF
18617 #define wxUSE_LOGGUI 1
18618 EOF
18619
18620 fi
18621
18622 if test "$wxUSE_LOGWINDOW" = "yes"; then
18623 cat >> confdefs.h <<\EOF
18624 #define wxUSE_LOGWINDOW 1
18625 EOF
18626
18627 fi
18628
18629 if test "$wxUSE_LOGDIALOG" = "yes"; then
18630 cat >> confdefs.h <<\EOF
18631 #define wxUSE_LOG_DIALOG 1
18632 EOF
18633
18634 fi
18635 fi
18636
18637 if test "$wxUSE_LONGLONG" = "yes"; then
18638 cat >> confdefs.h <<\EOF
18639 #define wxUSE_LONGLONG 1
18640 EOF
18641
18642 fi
18643
18644 if test "$wxUSE_GEOMETRY" = "yes"; then
18645 cat >> confdefs.h <<\EOF
18646 #define wxUSE_GEOMETRY 1
18647 EOF
18648
18649 fi
18650
18651 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18652 cat >> confdefs.h <<\EOF
18653 #define wxUSE_DIALUP_MANAGER 1
18654 EOF
18655
18656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18657 fi
18658
18659 if test "$wxUSE_STREAMS" = "yes" ; then
18660 cat >> confdefs.h <<\EOF
18661 #define wxUSE_STREAMS 1
18662 EOF
18663
18664 fi
18665
18666
18667 if test "$wxUSE_DATETIME" = "yes"; then
18668 for ac_func in strptime
18669 do
18670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18671 echo "configure:18672: checking for $ac_func" >&5
18672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18673 echo $ac_n "(cached) $ac_c" 1>&6
18674 else
18675 cat > conftest.$ac_ext <<EOF
18676 #line 18677 "configure"
18677 #include "confdefs.h"
18678 /* System header to define __stub macros and hopefully few prototypes,
18679 which can conflict with char $ac_func(); below. */
18680 #include <assert.h>
18681 /* Override any gcc2 internal prototype to avoid an error. */
18682 /* We use char because int might match the return type of a gcc2
18683 builtin and then its argument prototype would still apply. */
18684 char $ac_func();
18685
18686 int main() {
18687
18688 /* The GNU C library defines this for functions which it implements
18689 to always fail with ENOSYS. Some functions are actually named
18690 something starting with __ and the normal name is an alias. */
18691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18692 choke me
18693 #else
18694 $ac_func();
18695 #endif
18696
18697 ; return 0; }
18698 EOF
18699 if { (eval echo configure:18700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18700 rm -rf conftest*
18701 eval "ac_cv_func_$ac_func=yes"
18702 else
18703 echo "configure: failed program was:" >&5
18704 cat conftest.$ac_ext >&5
18705 rm -rf conftest*
18706 eval "ac_cv_func_$ac_func=no"
18707 fi
18708 rm -f conftest*
18709 fi
18710
18711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18712 echo "$ac_t""yes" 1>&6
18713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18714 cat >> confdefs.h <<EOF
18715 #define $ac_tr_func 1
18716 EOF
18717
18718 else
18719 echo "$ac_t""no" 1>&6
18720 fi
18721 done
18722
18723
18724 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18725 echo "configure:18726: checking for timezone variable in <time.h>" >&5
18726 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18727 echo $ac_n "(cached) $ac_c" 1>&6
18728 else
18729
18730 cat > conftest.$ac_ext <<EOF
18731 #line 18732 "configure"
18732 #include "confdefs.h"
18733
18734 #include <time.h>
18735
18736 int main() {
18737
18738 int tz;
18739 tz = timezone;
18740
18741 ; return 0; }
18742 EOF
18743 if { (eval echo configure:18744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18744 rm -rf conftest*
18745
18746 wx_cv_var_timezone=timezone
18747
18748 else
18749 echo "configure: failed program was:" >&5
18750 cat conftest.$ac_ext >&5
18751 rm -rf conftest*
18752
18753 cat > conftest.$ac_ext <<EOF
18754 #line 18755 "configure"
18755 #include "confdefs.h"
18756
18757 #include <time.h>
18758
18759 int main() {
18760
18761 int tz;
18762 tz = _timezone;
18763
18764 ; return 0; }
18765 EOF
18766 if { (eval echo configure:18767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18767 rm -rf conftest*
18768
18769 wx_cv_var_timezone=_timezone
18770
18771 else
18772 echo "configure: failed program was:" >&5
18773 cat conftest.$ac_ext >&5
18774 rm -rf conftest*
18775
18776 cat > conftest.$ac_ext <<EOF
18777 #line 18778 "configure"
18778 #include "confdefs.h"
18779
18780 #include <time.h>
18781
18782 int main() {
18783
18784 int tz;
18785 tz = __timezone;
18786
18787 ; return 0; }
18788 EOF
18789 if { (eval echo configure:18790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18790 rm -rf conftest*
18791
18792 wx_cv_var_timezone=__timezone
18793
18794 else
18795 echo "configure: failed program was:" >&5
18796 cat conftest.$ac_ext >&5
18797 rm -rf conftest*
18798
18799 if test "$USE_DOS" = 0 ; then
18800 echo "configure: warning: no timezone variable" 1>&2
18801 fi
18802
18803
18804 fi
18805 rm -f conftest*
18806
18807
18808 fi
18809 rm -f conftest*
18810
18811
18812 fi
18813 rm -f conftest*
18814
18815
18816 fi
18817
18818 echo "$ac_t""$wx_cv_var_timezone" 1>&6
18819
18820 if test "x$wx_cv_var_timezone" != x ; then
18821 cat >> confdefs.h <<EOF
18822 #define WX_TIMEZONE $wx_cv_var_timezone
18823 EOF
18824
18825 fi
18826
18827 for ac_func in localtime
18828 do
18829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18830 echo "configure:18831: checking for $ac_func" >&5
18831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18832 echo $ac_n "(cached) $ac_c" 1>&6
18833 else
18834 cat > conftest.$ac_ext <<EOF
18835 #line 18836 "configure"
18836 #include "confdefs.h"
18837 /* System header to define __stub macros and hopefully few prototypes,
18838 which can conflict with char $ac_func(); below. */
18839 #include <assert.h>
18840 /* Override any gcc2 internal prototype to avoid an error. */
18841 /* We use char because int might match the return type of a gcc2
18842 builtin and then its argument prototype would still apply. */
18843 char $ac_func();
18844
18845 int main() {
18846
18847 /* The GNU C library defines this for functions which it implements
18848 to always fail with ENOSYS. Some functions are actually named
18849 something starting with __ and the normal name is an alias. */
18850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18851 choke me
18852 #else
18853 $ac_func();
18854 #endif
18855
18856 ; return 0; }
18857 EOF
18858 if { (eval echo configure:18859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18859 rm -rf conftest*
18860 eval "ac_cv_func_$ac_func=yes"
18861 else
18862 echo "configure: failed program was:" >&5
18863 cat conftest.$ac_ext >&5
18864 rm -rf conftest*
18865 eval "ac_cv_func_$ac_func=no"
18866 fi
18867 rm -f conftest*
18868 fi
18869
18870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18871 echo "$ac_t""yes" 1>&6
18872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18873 cat >> confdefs.h <<EOF
18874 #define $ac_tr_func 1
18875 EOF
18876
18877 else
18878 echo "$ac_t""no" 1>&6
18879 fi
18880 done
18881
18882
18883 if test "$ac_cv_func_localtime" = "yes"; then
18884 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18885 echo "configure:18886: checking for tm_gmtoff in struct tm" >&5
18886 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18887 echo $ac_n "(cached) $ac_c" 1>&6
18888 else
18889
18890 cat > conftest.$ac_ext <<EOF
18891 #line 18892 "configure"
18892 #include "confdefs.h"
18893
18894 #include <time.h>
18895
18896 int main() {
18897
18898 struct tm tm;
18899 tm.tm_gmtoff++;
18900
18901 ; return 0; }
18902 EOF
18903 if { (eval echo configure:18904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18904 rm -rf conftest*
18905
18906 wx_cv_struct_tm_has_gmtoff=yes
18907
18908 else
18909 echo "configure: failed program was:" >&5
18910 cat conftest.$ac_ext >&5
18911 rm -rf conftest*
18912 wx_cv_struct_tm_has_gmtoff=no
18913
18914 fi
18915 rm -f conftest*
18916
18917 fi
18918
18919 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18920 fi
18921
18922 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18923 cat >> confdefs.h <<\EOF
18924 #define WX_GMTOFF_IN_TM 1
18925 EOF
18926
18927 fi
18928
18929 for ac_func in gettimeofday ftime
18930 do
18931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18932 echo "configure:18933: checking for $ac_func" >&5
18933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18934 echo $ac_n "(cached) $ac_c" 1>&6
18935 else
18936 cat > conftest.$ac_ext <<EOF
18937 #line 18938 "configure"
18938 #include "confdefs.h"
18939 /* System header to define __stub macros and hopefully few prototypes,
18940 which can conflict with char $ac_func(); below. */
18941 #include <assert.h>
18942 /* Override any gcc2 internal prototype to avoid an error. */
18943 /* We use char because int might match the return type of a gcc2
18944 builtin and then its argument prototype would still apply. */
18945 char $ac_func();
18946
18947 int main() {
18948
18949 /* The GNU C library defines this for functions which it implements
18950 to always fail with ENOSYS. Some functions are actually named
18951 something starting with __ and the normal name is an alias. */
18952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18953 choke me
18954 #else
18955 $ac_func();
18956 #endif
18957
18958 ; return 0; }
18959 EOF
18960 if { (eval echo configure:18961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18961 rm -rf conftest*
18962 eval "ac_cv_func_$ac_func=yes"
18963 else
18964 echo "configure: failed program was:" >&5
18965 cat conftest.$ac_ext >&5
18966 rm -rf conftest*
18967 eval "ac_cv_func_$ac_func=no"
18968 fi
18969 rm -f conftest*
18970 fi
18971
18972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18973 echo "$ac_t""yes" 1>&6
18974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18975 cat >> confdefs.h <<EOF
18976 #define $ac_tr_func 1
18977 EOF
18978 break
18979 else
18980 echo "$ac_t""no" 1>&6
18981 fi
18982 done
18983
18984
18985 if test "$ac_cv_func_gettimeofday" = "yes"; then
18986 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
18987 echo "configure:18988: checking whether gettimeofday takes two arguments" >&5
18988 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18989 echo $ac_n "(cached) $ac_c" 1>&6
18990 else
18991
18992
18993 ac_ext=C
18994 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18995 ac_cpp='$CXXCPP $CPPFLAGS'
18996 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18997 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18998 cross_compiling=$ac_cv_prog_cxx_cross
18999
19000
19001 cat > conftest.$ac_ext <<EOF
19002 #line 19003 "configure"
19003 #include "confdefs.h"
19004
19005 #include <sys/time.h>
19006 #include <unistd.h>
19007
19008 int main() {
19009
19010 struct timeval tv;
19011 gettimeofday(&tv, NULL);
19012
19013 ; return 0; }
19014 EOF
19015 if { (eval echo configure:19016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19016 rm -rf conftest*
19017 wx_cv_func_gettimeofday_has_2_args=yes
19018 else
19019 echo "configure: failed program was:" >&5
19020 cat conftest.$ac_ext >&5
19021 rm -rf conftest*
19022 cat > conftest.$ac_ext <<EOF
19023 #line 19024 "configure"
19024 #include "confdefs.h"
19025
19026 #include <sys/time.h>
19027 #include <unistd.h>
19028
19029 int main() {
19030
19031 struct timeval tv;
19032 gettimeofday(&tv);
19033
19034 ; return 0; }
19035 EOF
19036 if { (eval echo configure:19037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19037 rm -rf conftest*
19038 wx_cv_func_gettimeofday_has_2_args=no
19039 else
19040 echo "configure: failed program was:" >&5
19041 cat conftest.$ac_ext >&5
19042 rm -rf conftest*
19043
19044 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
19045 wx_cv_func_gettimeofday_has_2_args=unknown
19046
19047
19048 fi
19049 rm -f conftest*
19050
19051 fi
19052 rm -f conftest*
19053 ac_ext=c
19054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19055 ac_cpp='$CPP $CPPFLAGS'
19056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19058 cross_compiling=$ac_cv_prog_cc_cross
19059
19060
19061 fi
19062
19063 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
19064
19065 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
19066 cat >> confdefs.h <<\EOF
19067 #define WX_GETTIMEOFDAY_NO_TZ 1
19068 EOF
19069
19070 fi
19071 fi
19072
19073 cat >> confdefs.h <<\EOF
19074 #define wxUSE_TIMEDATE 1
19075 EOF
19076
19077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
19078 fi
19079
19080
19081 if test "$wxUSE_SOCKETS" = "yes"; then
19082 if test "$wxUSE_MGL" = "1"; then
19083 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
19084 wxUSE_SOCKETS="no"
19085 fi
19086 fi
19087
19088 if test "$wxUSE_SOCKETS" = "yes"; then
19089 if test "$TOOLKIT" != "MSW"; then
19090 echo $ac_n "checking for socket""... $ac_c" 1>&6
19091 echo "configure:19092: checking for socket" >&5
19092 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19093 echo $ac_n "(cached) $ac_c" 1>&6
19094 else
19095 cat > conftest.$ac_ext <<EOF
19096 #line 19097 "configure"
19097 #include "confdefs.h"
19098 /* System header to define __stub macros and hopefully few prototypes,
19099 which can conflict with char socket(); below. */
19100 #include <assert.h>
19101 /* Override any gcc2 internal prototype to avoid an error. */
19102 /* We use char because int might match the return type of a gcc2
19103 builtin and then its argument prototype would still apply. */
19104 char socket();
19105
19106 int main() {
19107
19108 /* The GNU C library defines this for functions which it implements
19109 to always fail with ENOSYS. Some functions are actually named
19110 something starting with __ and the normal name is an alias. */
19111 #if defined (__stub_socket) || defined (__stub___socket)
19112 choke me
19113 #else
19114 socket();
19115 #endif
19116
19117 ; return 0; }
19118 EOF
19119 if { (eval echo configure:19120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19120 rm -rf conftest*
19121 eval "ac_cv_func_socket=yes"
19122 else
19123 echo "configure: failed program was:" >&5
19124 cat conftest.$ac_ext >&5
19125 rm -rf conftest*
19126 eval "ac_cv_func_socket=no"
19127 fi
19128 rm -f conftest*
19129 fi
19130
19131 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19132 echo "$ac_t""yes" 1>&6
19133 :
19134 else
19135 echo "$ac_t""no" 1>&6
19136 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
19137 echo "configure:19138: checking for socket in -lsocket" >&5
19138 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19140 echo $ac_n "(cached) $ac_c" 1>&6
19141 else
19142 ac_save_LIBS="$LIBS"
19143 LIBS="-lsocket $LIBS"
19144 cat > conftest.$ac_ext <<EOF
19145 #line 19146 "configure"
19146 #include "confdefs.h"
19147 /* Override any gcc2 internal prototype to avoid an error. */
19148 /* We use char because int might match the return type of a gcc2
19149 builtin and then its argument prototype would still apply. */
19150 char socket();
19151
19152 int main() {
19153 socket()
19154 ; return 0; }
19155 EOF
19156 if { (eval echo configure:19157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19157 rm -rf conftest*
19158 eval "ac_cv_lib_$ac_lib_var=yes"
19159 else
19160 echo "configure: failed program was:" >&5
19161 cat conftest.$ac_ext >&5
19162 rm -rf conftest*
19163 eval "ac_cv_lib_$ac_lib_var=no"
19164 fi
19165 rm -f conftest*
19166 LIBS="$ac_save_LIBS"
19167
19168 fi
19169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19170 echo "$ac_t""yes" 1>&6
19171 if test "$INET_LINK" != " -lsocket"; then
19172 INET_LINK="$INET_LINK -lsocket"
19173 fi
19174 else
19175 echo "$ac_t""no" 1>&6
19176
19177 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19178 wxUSE_SOCKETS=no
19179
19180
19181 fi
19182
19183
19184 fi
19185
19186 fi
19187 fi
19188
19189 if test "$wxUSE_SOCKETS" = "yes" ; then
19190 if test "$TOOLKIT" != "MSW"; then
19191 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
19192 echo "configure:19193: checking what is the type of the third argument of getsockname" >&5
19193 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19194 echo $ac_n "(cached) $ac_c" 1>&6
19195 else
19196
19197
19198 ac_ext=C
19199 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19200 ac_cpp='$CXXCPP $CPPFLAGS'
19201 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19202 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19203 cross_compiling=$ac_cv_prog_cxx_cross
19204
19205
19206 cat > conftest.$ac_ext <<EOF
19207 #line 19208 "configure"
19208 #include "confdefs.h"
19209
19210 #include <sys/types.h>
19211 #include <sys/socket.h>
19212
19213 int main() {
19214
19215 socklen_t len;
19216 getsockname(0, 0, &len);
19217
19218 ; return 0; }
19219 EOF
19220 if { (eval echo configure:19221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19221 rm -rf conftest*
19222 wx_cv_type_getsockname3=socklen_t
19223 else
19224 echo "configure: failed program was:" >&5
19225 cat conftest.$ac_ext >&5
19226 rm -rf conftest*
19227 cat > conftest.$ac_ext <<EOF
19228 #line 19229 "configure"
19229 #include "confdefs.h"
19230
19231 #include <sys/types.h>
19232 #include <sys/socket.h>
19233
19234 int main() {
19235
19236 size_t len;
19237 getsockname(0, 0, &len);
19238
19239 ; return 0; }
19240 EOF
19241 if { (eval echo configure:19242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19242 rm -rf conftest*
19243 wx_cv_type_getsockname3=size_t
19244 else
19245 echo "configure: failed program was:" >&5
19246 cat conftest.$ac_ext >&5
19247 rm -rf conftest*
19248 cat > conftest.$ac_ext <<EOF
19249 #line 19250 "configure"
19250 #include "confdefs.h"
19251
19252 #include <sys/types.h>
19253 #include <sys/socket.h>
19254
19255 int main() {
19256
19257 int len;
19258 getsockname(0, 0, &len);
19259
19260 ; return 0; }
19261 EOF
19262 if { (eval echo configure:19263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19263 rm -rf conftest*
19264 wx_cv_type_getsockname3=int
19265 else
19266 echo "configure: failed program was:" >&5
19267 cat conftest.$ac_ext >&5
19268 rm -rf conftest*
19269 wx_cv_type_getsockname3=unknown
19270
19271 fi
19272 rm -f conftest*
19273
19274 fi
19275 rm -f conftest*
19276
19277 fi
19278 rm -f conftest*
19279
19280 ac_ext=c
19281 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19282 ac_cpp='$CPP $CPPFLAGS'
19283 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19284 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19285 cross_compiling=$ac_cv_prog_cc_cross
19286
19287
19288 fi
19289
19290 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
19291
19292 if test "$wx_cv_type_getsockname3" = "unknown"; then
19293 wxUSE_SOCKETS=no
19294 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19295 else
19296 cat >> confdefs.h <<EOF
19297 #define SOCKLEN_T $wx_cv_type_getsockname3
19298 EOF
19299
19300 fi
19301 fi
19302 fi
19303
19304 if test "$wxUSE_SOCKETS" = "yes" ; then
19305 cat >> confdefs.h <<\EOF
19306 #define wxUSE_SOCKETS 1
19307 EOF
19308
19309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
19310 fi
19311
19312
19313 if test "$wxUSE_GUI" = "yes"; then
19314
19315 if test "$TOOLKIT" = "MAC"; then
19316 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19317 wxUSE_JOYSTICK=no
19318 fi
19319 if test "$TOOLKIT" = "MOTIF"; then
19320 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19321 wxUSE_JOYSTICK=no
19322 fi
19323 if test "$TOOLKIT" = "X11"; then
19324 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19325 wxUSE_JOYSTICK=no
19326 fi
19327
19328 if test "$TOOLKIT" != "MSW"; then
19329 if test "$wxUSE_JOYSTICK" = "yes"; then
19330 for ac_hdr in linux/joystick.h
19331 do
19332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19334 echo "configure:19335: checking for $ac_hdr" >&5
19335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19336 echo $ac_n "(cached) $ac_c" 1>&6
19337 else
19338 cat > conftest.$ac_ext <<EOF
19339 #line 19340 "configure"
19340 #include "confdefs.h"
19341 #include <$ac_hdr>
19342 EOF
19343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19344 { (eval echo configure:19345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19346 if test -z "$ac_err"; then
19347 rm -rf conftest*
19348 eval "ac_cv_header_$ac_safe=yes"
19349 else
19350 echo "$ac_err" >&5
19351 echo "configure: failed program was:" >&5
19352 cat conftest.$ac_ext >&5
19353 rm -rf conftest*
19354 eval "ac_cv_header_$ac_safe=no"
19355 fi
19356 rm -f conftest*
19357 fi
19358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19359 echo "$ac_t""yes" 1>&6
19360 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19361 cat >> confdefs.h <<EOF
19362 #define $ac_tr_hdr 1
19363 EOF
19364
19365 else
19366 echo "$ac_t""no" 1>&6
19367 fi
19368 done
19369
19370 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19371 wxUSE_JOYSTICK=no
19372 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
19373 fi
19374 fi
19375 fi
19376
19377 if test "$wxUSE_JOYSTICK" = "yes"; then
19378 cat >> confdefs.h <<\EOF
19379 #define wxUSE_JOYSTICK 1
19380 EOF
19381
19382 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19383 fi
19384 fi
19385
19386
19387 if test "$TOOLKIT" != "MSW"; then
19388
19389 HAVE_DL_FUNCS=0
19390 HAVE_SHL_FUNCS=0
19391 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19392 if test "$USE_DARWIN" = 1; then
19393 HAVE_DL_FUNCS=1
19394 else
19395 for ac_func in dlopen
19396 do
19397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19398 echo "configure:19399: checking for $ac_func" >&5
19399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19400 echo $ac_n "(cached) $ac_c" 1>&6
19401 else
19402 cat > conftest.$ac_ext <<EOF
19403 #line 19404 "configure"
19404 #include "confdefs.h"
19405 /* System header to define __stub macros and hopefully few prototypes,
19406 which can conflict with char $ac_func(); below. */
19407 #include <assert.h>
19408 /* Override any gcc2 internal prototype to avoid an error. */
19409 /* We use char because int might match the return type of a gcc2
19410 builtin and then its argument prototype would still apply. */
19411 char $ac_func();
19412
19413 int main() {
19414
19415 /* The GNU C library defines this for functions which it implements
19416 to always fail with ENOSYS. Some functions are actually named
19417 something starting with __ and the normal name is an alias. */
19418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19419 choke me
19420 #else
19421 $ac_func();
19422 #endif
19423
19424 ; return 0; }
19425 EOF
19426 if { (eval echo configure:19427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19427 rm -rf conftest*
19428 eval "ac_cv_func_$ac_func=yes"
19429 else
19430 echo "configure: failed program was:" >&5
19431 cat conftest.$ac_ext >&5
19432 rm -rf conftest*
19433 eval "ac_cv_func_$ac_func=no"
19434 fi
19435 rm -f conftest*
19436 fi
19437
19438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19439 echo "$ac_t""yes" 1>&6
19440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19441 cat >> confdefs.h <<EOF
19442 #define $ac_tr_func 1
19443 EOF
19444
19445 cat >> confdefs.h <<\EOF
19446 #define HAVE_DLOPEN 1
19447 EOF
19448
19449 HAVE_DL_FUNCS=1
19450
19451 else
19452 echo "$ac_t""no" 1>&6
19453 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
19454 echo "configure:19455: checking for dlopen in -ldl" >&5
19455 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19457 echo $ac_n "(cached) $ac_c" 1>&6
19458 else
19459 ac_save_LIBS="$LIBS"
19460 LIBS="-ldl $LIBS"
19461 cat > conftest.$ac_ext <<EOF
19462 #line 19463 "configure"
19463 #include "confdefs.h"
19464 /* Override any gcc2 internal prototype to avoid an error. */
19465 /* We use char because int might match the return type of a gcc2
19466 builtin and then its argument prototype would still apply. */
19467 char dlopen();
19468
19469 int main() {
19470 dlopen()
19471 ; return 0; }
19472 EOF
19473 if { (eval echo configure:19474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19474 rm -rf conftest*
19475 eval "ac_cv_lib_$ac_lib_var=yes"
19476 else
19477 echo "configure: failed program was:" >&5
19478 cat conftest.$ac_ext >&5
19479 rm -rf conftest*
19480 eval "ac_cv_lib_$ac_lib_var=no"
19481 fi
19482 rm -f conftest*
19483 LIBS="$ac_save_LIBS"
19484
19485 fi
19486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19487 echo "$ac_t""yes" 1>&6
19488
19489 cat >> confdefs.h <<\EOF
19490 #define HAVE_DLOPEN 1
19491 EOF
19492
19493 HAVE_DL_FUNCS=1
19494 DL_LINK=" -ldl$DL_LINK"
19495
19496 else
19497 echo "$ac_t""no" 1>&6
19498
19499 for ac_func in shl_load
19500 do
19501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19502 echo "configure:19503: checking for $ac_func" >&5
19503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19504 echo $ac_n "(cached) $ac_c" 1>&6
19505 else
19506 cat > conftest.$ac_ext <<EOF
19507 #line 19508 "configure"
19508 #include "confdefs.h"
19509 /* System header to define __stub macros and hopefully few prototypes,
19510 which can conflict with char $ac_func(); below. */
19511 #include <assert.h>
19512 /* Override any gcc2 internal prototype to avoid an error. */
19513 /* We use char because int might match the return type of a gcc2
19514 builtin and then its argument prototype would still apply. */
19515 char $ac_func();
19516
19517 int main() {
19518
19519 /* The GNU C library defines this for functions which it implements
19520 to always fail with ENOSYS. Some functions are actually named
19521 something starting with __ and the normal name is an alias. */
19522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19523 choke me
19524 #else
19525 $ac_func();
19526 #endif
19527
19528 ; return 0; }
19529 EOF
19530 if { (eval echo configure:19531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19531 rm -rf conftest*
19532 eval "ac_cv_func_$ac_func=yes"
19533 else
19534 echo "configure: failed program was:" >&5
19535 cat conftest.$ac_ext >&5
19536 rm -rf conftest*
19537 eval "ac_cv_func_$ac_func=no"
19538 fi
19539 rm -f conftest*
19540 fi
19541
19542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19543 echo "$ac_t""yes" 1>&6
19544 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19545 cat >> confdefs.h <<EOF
19546 #define $ac_tr_func 1
19547 EOF
19548
19549 cat >> confdefs.h <<\EOF
19550 #define HAVE_SHL_LOAD 1
19551 EOF
19552
19553 HAVE_SHL_FUNCS=1
19554
19555 else
19556 echo "$ac_t""no" 1>&6
19557 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19558 echo "configure:19559: checking for dld in -lshl_load" >&5
19559 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19561 echo $ac_n "(cached) $ac_c" 1>&6
19562 else
19563 ac_save_LIBS="$LIBS"
19564 LIBS="-lshl_load $LIBS"
19565 cat > conftest.$ac_ext <<EOF
19566 #line 19567 "configure"
19567 #include "confdefs.h"
19568 /* Override any gcc2 internal prototype to avoid an error. */
19569 /* We use char because int might match the return type of a gcc2
19570 builtin and then its argument prototype would still apply. */
19571 char dld();
19572
19573 int main() {
19574 dld()
19575 ; return 0; }
19576 EOF
19577 if { (eval echo configure:19578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19578 rm -rf conftest*
19579 eval "ac_cv_lib_$ac_lib_var=yes"
19580 else
19581 echo "configure: failed program was:" >&5
19582 cat conftest.$ac_ext >&5
19583 rm -rf conftest*
19584 eval "ac_cv_lib_$ac_lib_var=no"
19585 fi
19586 rm -f conftest*
19587 LIBS="$ac_save_LIBS"
19588
19589 fi
19590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19591 echo "$ac_t""yes" 1>&6
19592
19593 HAVE_SHL_FUNCS=1
19594 DL_LINK=" -ldld$DL_LINK"
19595
19596 else
19597 echo "$ac_t""no" 1>&6
19598 fi
19599
19600
19601 fi
19602 done
19603
19604
19605 fi
19606
19607
19608 fi
19609 done
19610
19611
19612 if test "$HAVE_DL_FUNCS" = 1; then
19613 for ac_func in dlerror
19614 do
19615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19616 echo "configure:19617: checking for $ac_func" >&5
19617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19618 echo $ac_n "(cached) $ac_c" 1>&6
19619 else
19620 cat > conftest.$ac_ext <<EOF
19621 #line 19622 "configure"
19622 #include "confdefs.h"
19623 /* System header to define __stub macros and hopefully few prototypes,
19624 which can conflict with char $ac_func(); below. */
19625 #include <assert.h>
19626 /* Override any gcc2 internal prototype to avoid an error. */
19627 /* We use char because int might match the return type of a gcc2
19628 builtin and then its argument prototype would still apply. */
19629 char $ac_func();
19630
19631 int main() {
19632
19633 /* The GNU C library defines this for functions which it implements
19634 to always fail with ENOSYS. Some functions are actually named
19635 something starting with __ and the normal name is an alias. */
19636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19637 choke me
19638 #else
19639 $ac_func();
19640 #endif
19641
19642 ; return 0; }
19643 EOF
19644 if { (eval echo configure:19645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19645 rm -rf conftest*
19646 eval "ac_cv_func_$ac_func=yes"
19647 else
19648 echo "configure: failed program was:" >&5
19649 cat conftest.$ac_ext >&5
19650 rm -rf conftest*
19651 eval "ac_cv_func_$ac_func=no"
19652 fi
19653 rm -f conftest*
19654 fi
19655
19656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19657 echo "$ac_t""yes" 1>&6
19658 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19659 cat >> confdefs.h <<EOF
19660 #define $ac_tr_func 1
19661 EOF
19662 cat >> confdefs.h <<\EOF
19663 #define HAVE_DLERROR 1
19664 EOF
19665
19666 else
19667 echo "$ac_t""no" 1>&6
19668 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19669 echo "configure:19670: checking for dlerror in -ldl" >&5
19670 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19672 echo $ac_n "(cached) $ac_c" 1>&6
19673 else
19674 ac_save_LIBS="$LIBS"
19675 LIBS="-ldl $LIBS"
19676 cat > conftest.$ac_ext <<EOF
19677 #line 19678 "configure"
19678 #include "confdefs.h"
19679 /* Override any gcc2 internal prototype to avoid an error. */
19680 /* We use char because int might match the return type of a gcc2
19681 builtin and then its argument prototype would still apply. */
19682 char dlerror();
19683
19684 int main() {
19685 dlerror()
19686 ; return 0; }
19687 EOF
19688 if { (eval echo configure:19689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19689 rm -rf conftest*
19690 eval "ac_cv_lib_$ac_lib_var=yes"
19691 else
19692 echo "configure: failed program was:" >&5
19693 cat conftest.$ac_ext >&5
19694 rm -rf conftest*
19695 eval "ac_cv_lib_$ac_lib_var=no"
19696 fi
19697 rm -f conftest*
19698 LIBS="$ac_save_LIBS"
19699
19700 fi
19701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19702 echo "$ac_t""yes" 1>&6
19703 cat >> confdefs.h <<\EOF
19704 #define HAVE_DLERROR 1
19705 EOF
19706
19707 else
19708 echo "$ac_t""no" 1>&6
19709 fi
19710
19711 fi
19712 done
19713
19714 fi
19715 fi
19716
19717 if test "$HAVE_DL_FUNCS" = 0; then
19718 if test "$HAVE_SHL_FUNCS" = 0; then
19719 if test "$USE_UNIX" = 1; then
19720 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19721 wxUSE_DYNAMIC_LOADER=no
19722 wxUSE_DYNLIB_CLASS=no
19723 else
19724 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19725 fi
19726 fi
19727 fi
19728 fi
19729 fi
19730
19731 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19732 cat >> confdefs.h <<\EOF
19733 #define wxUSE_DYNAMIC_LOADER 1
19734 EOF
19735
19736 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19737 cat >> confdefs.h <<\EOF
19738 #define wxUSE_DYNLIB_CLASS 1
19739 EOF
19740
19741 fi
19742
19743
19744 if test "$wxUSE_FONTMAP" = "yes" ; then
19745 cat >> confdefs.h <<\EOF
19746 #define wxUSE_FONTMAP 1
19747 EOF
19748
19749 fi
19750
19751 if test "$wxUSE_UNICODE" = "yes" ; then
19752 cat >> confdefs.h <<\EOF
19753 #define wxUSE_UNICODE 1
19754 EOF
19755
19756
19757 if test "$wxUSE_MSW" != 1; then
19758 wxUSE_UNICODE_MSLU=no
19759 fi
19760
19761 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19762 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19763 echo "configure:19764: checking for main in -lunicows" >&5
19764 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19766 echo $ac_n "(cached) $ac_c" 1>&6
19767 else
19768 ac_save_LIBS="$LIBS"
19769 LIBS="-lunicows $LIBS"
19770 cat > conftest.$ac_ext <<EOF
19771 #line 19772 "configure"
19772 #include "confdefs.h"
19773
19774 int main() {
19775 main()
19776 ; return 0; }
19777 EOF
19778 if { (eval echo configure:19779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19779 rm -rf conftest*
19780 eval "ac_cv_lib_$ac_lib_var=yes"
19781 else
19782 echo "configure: failed program was:" >&5
19783 cat conftest.$ac_ext >&5
19784 rm -rf conftest*
19785 eval "ac_cv_lib_$ac_lib_var=no"
19786 fi
19787 rm -f conftest*
19788 LIBS="$ac_save_LIBS"
19789
19790 fi
19791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19792 echo "$ac_t""yes" 1>&6
19793
19794 cat >> confdefs.h <<\EOF
19795 #define wxUSE_UNICODE_MSLU 1
19796 EOF
19797
19798
19799 else
19800 echo "$ac_t""no" 1>&6
19801
19802 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19803 Applications will only run on Windows NT/2000/XP!" 1>&2
19804 wxUSE_UNICODE_MSLU=no
19805
19806 fi
19807
19808 fi
19809 fi
19810
19811 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19812 cat >> confdefs.h <<\EOF
19813 #define wxUSE_EXPERIMENTAL_PRINTF 1
19814 EOF
19815
19816 fi
19817
19818
19819
19820 IODBC_C_SRC=""
19821 if test "$wxUSE_ODBC" = "yes" ; then
19822 cat >> confdefs.h <<\EOF
19823 #define wxUSE_ODBC 1
19824 EOF
19825
19826 WXODBCFLAG="-D_IODBC_"
19827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19828 fi
19829
19830
19831 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19832 cat >> confdefs.h <<\EOF
19833 #define wxUSE_POSTSCRIPT 1
19834 EOF
19835
19836 fi
19837
19838 cat >> confdefs.h <<\EOF
19839 #define wxUSE_AFM_FOR_POSTSCRIPT 1
19840 EOF
19841
19842
19843 cat >> confdefs.h <<\EOF
19844 #define wxUSE_NORMALIZED_PS_FONTS 1
19845 EOF
19846
19847
19848
19849 if test "$wxUSE_CONSTRAINTS" = "yes"; then
19850 cat >> confdefs.h <<\EOF
19851 #define wxUSE_CONSTRAINTS 1
19852 EOF
19853
19854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19855 fi
19856
19857 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19858
19859
19860 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19861 cat >> confdefs.h <<\EOF
19862 #define wxUSE_MDI_ARCHITECTURE 1
19863 EOF
19864
19865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19866 fi
19867 fi
19868
19869 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19870 cat >> confdefs.h <<\EOF
19871 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
19872 EOF
19873
19874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19875 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19877 fi
19878 fi
19879
19880 if test "$wxUSE_HELP" = "yes"; then
19881 cat >> confdefs.h <<\EOF
19882 #define wxUSE_HELP 1
19883 EOF
19884
19885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19886
19887 if test "$wxUSE_MSW" = 1; then
19888 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19889 cat >> confdefs.h <<\EOF
19890 #define wxUSE_MS_HTML_HELP 1
19891 EOF
19892
19893 fi
19894 fi
19895
19896 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19897 if test "$wxUSE_HTML" = "yes"; then
19898 cat >> confdefs.h <<\EOF
19899 #define wxUSE_WXHTML_HELP 1
19900 EOF
19901
19902 else
19903 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19904 wxUSE_WXHTML_HELP=no
19905 fi
19906 fi
19907 fi
19908
19909 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19910 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19911 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19912 else
19913 cat >> confdefs.h <<\EOF
19914 #define wxUSE_PRINTING_ARCHITECTURE 1
19915 EOF
19916
19917 fi
19918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19919 fi
19920
19921 if test "$wxUSE_PROLOGIO" = "yes" ; then
19922 cat >> confdefs.h <<\EOF
19923 #define wxUSE_PROLOGIO 1
19924 EOF
19925
19926 fi
19927
19928 if test "$wxUSE_RESOURCES" = "yes" ; then
19929 if test "$wxUSE_NANOX" = "yes"; then
19930 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19931 else
19932 cat >> confdefs.h <<\EOF
19933 #define wxUSE_RESOURCES 1
19934 EOF
19935
19936 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19937 fi
19938 fi
19939
19940 if test "$wxUSE_X_RESOURCES" = "yes"; then
19941 cat >> confdefs.h <<\EOF
19942 #define wxUSE_X_RESOURCES 1
19943 EOF
19944
19945 fi
19946
19947
19948 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19949 -o "$wxUSE_CLIPBOARD" = "yes" \
19950 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19951 for ac_hdr in ole2.h
19952 do
19953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19955 echo "configure:19956: checking for $ac_hdr" >&5
19956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19957 echo $ac_n "(cached) $ac_c" 1>&6
19958 else
19959 cat > conftest.$ac_ext <<EOF
19960 #line 19961 "configure"
19961 #include "confdefs.h"
19962 #include <$ac_hdr>
19963 EOF
19964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19965 { (eval echo configure:19966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19967 if test -z "$ac_err"; then
19968 rm -rf conftest*
19969 eval "ac_cv_header_$ac_safe=yes"
19970 else
19971 echo "$ac_err" >&5
19972 echo "configure: failed program was:" >&5
19973 cat conftest.$ac_ext >&5
19974 rm -rf conftest*
19975 eval "ac_cv_header_$ac_safe=no"
19976 fi
19977 rm -f conftest*
19978 fi
19979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19980 echo "$ac_t""yes" 1>&6
19981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19982 cat >> confdefs.h <<EOF
19983 #define $ac_tr_hdr 1
19984 EOF
19985
19986 else
19987 echo "$ac_t""no" 1>&6
19988 fi
19989 done
19990
19991
19992 if test "$ac_cv_header_ole2_h" = "yes" ; then
19993 if test "$GCC" = yes ; then
19994
19995 ac_ext=C
19996 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19997 ac_cpp='$CXXCPP $CPPFLAGS'
19998 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19999 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20000 cross_compiling=$ac_cv_prog_cxx_cross
20001
20002
20003 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
20004 echo "configure:20005: checking if g++ requires -fvtable-thunks" >&5
20005 cat > conftest.$ac_ext <<EOF
20006 #line 20007 "configure"
20007 #include "confdefs.h"
20008 #include <windows.h>
20009 #include <ole2.h>
20010 int main() {
20011
20012 ; return 0; }
20013 EOF
20014 if { (eval echo configure:20015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20015 rm -rf conftest*
20016 echo "$ac_t""no" 1>&6
20017 else
20018 echo "configure: failed program was:" >&5
20019 cat conftest.$ac_ext >&5
20020 rm -rf conftest*
20021 echo "$ac_t""yes" 1>&6
20022 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20023 fi
20024 rm -f conftest*
20025 ac_ext=c
20026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20027 ac_cpp='$CPP $CPPFLAGS'
20028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20030 cross_compiling=$ac_cv_prog_cc_cross
20031
20032 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20033 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
20034 cat >> confdefs.h <<\EOF
20035 #define wxUSE_OLE 1
20036 EOF
20037
20038
20039 fi
20040
20041 cat >> confdefs.h <<\EOF
20042 #define wxUSE_DATAOBJ 1
20043 EOF
20044
20045 else
20046 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
20047
20048 wxUSE_CLIPBOARD=no
20049 wxUSE_DRAG_AND_DROP=no
20050 wxUSE_DATAOBJ=no
20051 fi
20052
20053 if test "$wxUSE_METAFILE" = "yes"; then
20054 cat >> confdefs.h <<\EOF
20055 #define wxUSE_METAFILE 1
20056 EOF
20057
20058
20059 cat >> confdefs.h <<\EOF
20060 #define wxUSE_ENH_METAFILE 1
20061 EOF
20062
20063 fi
20064 fi
20065
20066 if test "$wxUSE_IPC" = "yes"; then
20067 if test "$wxUSE_SOCKETS" != "yes"; then
20068 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
20069 fi
20070
20071 cat >> confdefs.h <<\EOF
20072 #define wxUSE_IPC 1
20073 EOF
20074
20075 fi
20076
20077 if test "$wxUSE_CLIPBOARD" = "yes"; then
20078 if test "$wxUSE_MGL" = 1; then
20079 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
20080 wxUSE_CLIPBOARD=no
20081 fi
20082
20083 if test "$wxUSE_CLIPBOARD" = "yes"; then
20084 cat >> confdefs.h <<\EOF
20085 #define wxUSE_CLIPBOARD 1
20086 EOF
20087
20088
20089 cat >> confdefs.h <<\EOF
20090 #define wxUSE_DATAOBJ 1
20091 EOF
20092
20093 fi
20094 fi
20095
20096 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
20097 if test "$wxUSE_GTK" = 1; then
20098 if test "$WXGTK12" != 1; then
20099 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
20100 wxUSE_DRAG_AND_DROP=no
20101 fi
20102 fi
20103
20104 if test "$wxUSE_MOTIF" = 1; then
20105 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
20106 wxUSE_DRAG_AND_DROP=no
20107 fi
20108
20109 if test "$wxUSE_X11" = 1; then
20110 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
20111 wxUSE_DRAG_AND_DROP=no
20112 fi
20113
20114 if test "$wxUSE_MGL" = 1; then
20115 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
20116 wxUSE_DRAG_AND_DROP=no
20117 fi
20118
20119 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
20120 cat >> confdefs.h <<\EOF
20121 #define wxUSE_DRAG_AND_DROP 1
20122 EOF
20123
20124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
20125 fi
20126
20127 fi
20128
20129 if test "$wxUSE_SPLINES" = "yes" ; then
20130 cat >> confdefs.h <<\EOF
20131 #define wxUSE_SPLINES 1
20132 EOF
20133
20134 fi
20135
20136
20137 USES_CONTROLS=0
20138 if test "$wxUSE_CONTROLS" = "yes"; then
20139 USES_CONTROLS=1
20140 fi
20141
20142 if test "$wxUSE_ACCEL" = "yes"; then
20143 cat >> confdefs.h <<\EOF
20144 #define wxUSE_ACCEL 1
20145 EOF
20146
20147 USES_CONTROLS=1
20148 fi
20149
20150 if test "$wxUSE_BUTTON" = "yes"; then
20151 cat >> confdefs.h <<\EOF
20152 #define wxUSE_BUTTON 1
20153 EOF
20154
20155 USES_CONTROLS=1
20156 fi
20157
20158 if test "$wxUSE_BMPBUTTON" = "yes"; then
20159 cat >> confdefs.h <<\EOF
20160 #define wxUSE_BMPBUTTON 1
20161 EOF
20162
20163 USES_CONTROLS=1
20164 fi
20165
20166 if test "$wxUSE_CALCTRL" = "yes"; then
20167 cat >> confdefs.h <<\EOF
20168 #define wxUSE_CALENDARCTRL 1
20169 EOF
20170
20171 USES_CONTROLS=1
20172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
20173 fi
20174
20175 if test "$wxUSE_CARET" = "yes"; then
20176 cat >> confdefs.h <<\EOF
20177 #define wxUSE_CARET 1
20178 EOF
20179
20180 USES_CONTROLS=1
20181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20182 fi
20183
20184 if test "$wxUSE_COMBOBOX" = "yes"; then
20185 cat >> confdefs.h <<\EOF
20186 #define wxUSE_COMBOBOX 1
20187 EOF
20188
20189 USES_CONTROLS=1
20190 fi
20191
20192 if test "$wxUSE_CHOICE" = "yes"; then
20193 cat >> confdefs.h <<\EOF
20194 #define wxUSE_CHOICE 1
20195 EOF
20196
20197 USES_CONTROLS=1
20198 fi
20199
20200 if test "$wxUSE_CHECKBOX" = "yes"; then
20201 cat >> confdefs.h <<\EOF
20202 #define wxUSE_CHECKBOX 1
20203 EOF
20204
20205 USES_CONTROLS=1
20206 fi
20207
20208 if test "$wxUSE_CHECKLST" = "yes"; then
20209 cat >> confdefs.h <<\EOF
20210 #define wxUSE_CHECKLISTBOX 1
20211 EOF
20212
20213 USES_CONTROLS=1
20214 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20215 fi
20216
20217 if test "$wxUSE_GAUGE" = "yes"; then
20218 cat >> confdefs.h <<\EOF
20219 #define wxUSE_GAUGE 1
20220 EOF
20221
20222 USES_CONTROLS=1
20223 fi
20224
20225 if test "$wxUSE_NEW_GRID" = "yes"; then
20226 wxUSE_GRID="yes"
20227 cat >> confdefs.h <<\EOF
20228 #define wxUSE_NEW_GRID 1
20229 EOF
20230
20231 USES_CONTROLS=1
20232 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
20233 fi
20234
20235 if test "$wxUSE_GRID" = "yes"; then
20236 cat >> confdefs.h <<\EOF
20237 #define wxUSE_GRID 1
20238 EOF
20239
20240 USES_CONTROLS=1
20241 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
20242 fi
20243
20244 if test "$wxUSE_IMAGLIST" = "yes"; then
20245 cat >> confdefs.h <<\EOF
20246 #define wxUSE_IMAGLIST 1
20247 EOF
20248
20249 fi
20250
20251 if test "$wxUSE_LISTBOX" = "yes"; then
20252 cat >> confdefs.h <<\EOF
20253 #define wxUSE_LISTBOX 1
20254 EOF
20255
20256 USES_CONTROLS=1
20257 fi
20258
20259 if test "$wxUSE_LISTCTRL" = "yes"; then
20260 if test "$wxUSE_IMAGLIST" = "yes"; then
20261 cat >> confdefs.h <<\EOF
20262 #define wxUSE_LISTCTRL 1
20263 EOF
20264
20265 USES_CONTROLS=1
20266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20267 else
20268 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
20269 fi
20270 fi
20271
20272 if test "$wxUSE_NOTEBOOK" = "yes"; then
20273 cat >> confdefs.h <<\EOF
20274 #define wxUSE_NOTEBOOK 1
20275 EOF
20276
20277 USES_CONTROLS=1
20278 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20279 fi
20280
20281 if test "$wxUSE_PROPSHEET" = "yes"; then
20282 cat >> confdefs.h <<\EOF
20283 #define wxUSE_PROPSHEET 1
20284 EOF
20285
20286 USES_CONTROLS=1
20287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20288 fi
20289
20290 if test "$wxUSE_RADIOBOX" = "yes"; then
20291 cat >> confdefs.h <<\EOF
20292 #define wxUSE_RADIOBOX 1
20293 EOF
20294
20295 USES_CONTROLS=1
20296 fi
20297
20298 if test "$wxUSE_RADIOBTN" = "yes"; then
20299 cat >> confdefs.h <<\EOF
20300 #define wxUSE_RADIOBTN 1
20301 EOF
20302
20303 USES_CONTROLS=1
20304 fi
20305
20306 if test "$wxUSE_SASH" = "yes"; then
20307 cat >> confdefs.h <<\EOF
20308 #define wxUSE_SASH 1
20309 EOF
20310
20311 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20312 fi
20313
20314 if test "$wxUSE_SCROLLBAR" = "yes"; then
20315 cat >> confdefs.h <<\EOF
20316 #define wxUSE_SCROLLBAR 1
20317 EOF
20318
20319 USES_CONTROLS=1
20320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
20321 fi
20322
20323 if test "$wxUSE_SLIDER" = "yes"; then
20324 cat >> confdefs.h <<\EOF
20325 #define wxUSE_SLIDER 1
20326 EOF
20327
20328 USES_CONTROLS=1
20329 fi
20330
20331 if test "$wxUSE_SPINBTN" = "yes"; then
20332 cat >> confdefs.h <<\EOF
20333 #define wxUSE_SPINBTN 1
20334 EOF
20335
20336 USES_CONTROLS=1
20337 fi
20338
20339 if test "$wxUSE_SPINCTRL" = "yes"; then
20340 cat >> confdefs.h <<\EOF
20341 #define wxUSE_SPINCTRL 1
20342 EOF
20343
20344 USES_CONTROLS=1
20345 fi
20346
20347 if test "$wxUSE_SPLITTER" = "yes"; then
20348 cat >> confdefs.h <<\EOF
20349 #define wxUSE_SPLITTER 1
20350 EOF
20351
20352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20353 fi
20354
20355 if test "$wxUSE_STATBMP" = "yes"; then
20356 cat >> confdefs.h <<\EOF
20357 #define wxUSE_STATBMP 1
20358 EOF
20359
20360 USES_CONTROLS=1
20361 fi
20362
20363 if test "$wxUSE_STATBOX" = "yes"; then
20364 cat >> confdefs.h <<\EOF
20365 #define wxUSE_STATBOX 1
20366 EOF
20367
20368 USES_CONTROLS=1
20369 fi
20370
20371 if test "$wxUSE_STATTEXT" = "yes"; then
20372 cat >> confdefs.h <<\EOF
20373 #define wxUSE_STATTEXT 1
20374 EOF
20375
20376 USES_CONTROLS=1
20377 fi
20378
20379 if test "$wxUSE_STATLINE" = "yes"; then
20380 if test "$wxUSE_WINE" = 1 ; then
20381 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
20382 else
20383 cat >> confdefs.h <<\EOF
20384 #define wxUSE_STATLINE 1
20385 EOF
20386
20387 USES_CONTROLS=1
20388 fi
20389 fi
20390
20391 if test "$wxUSE_STATUSBAR" = "yes"; then
20392 cat >> confdefs.h <<\EOF
20393 #define wxUSE_STATUSBAR 1
20394 EOF
20395
20396 USES_CONTROLS=1
20397
20398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
20399 fi
20400
20401 if test "$wxUSE_TABDIALOG" = "yes"; then
20402 cat >> confdefs.h <<\EOF
20403 #define wxUSE_TAB_DIALOG 1
20404 EOF
20405
20406 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20407 fi
20408
20409 if test "$wxUSE_TEXTCTRL" = "yes"; then
20410 cat >> confdefs.h <<\EOF
20411 #define wxUSE_TEXTCTRL 1
20412 EOF
20413
20414 USES_CONTROLS=1
20415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20416 fi
20417
20418 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20419 if test "$wxUSE_MAC" = 1; then
20420 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20421 wxUSE_TOGGLEBTN=no
20422 fi
20423 if test "$wxUSE_UNIVERSAL" = "yes"; then
20424 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
20425 wxUSE_TOGGLEBTN=no
20426 fi
20427
20428 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20429 cat >> confdefs.h <<\EOF
20430 #define wxUSE_TOGGLEBTN 1
20431 EOF
20432
20433 USES_CONTROLS=1
20434 fi
20435 fi
20436
20437 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
20438 cat >> confdefs.h <<\EOF
20439 #define wxUSE_TOOLBAR_SIMPLE 1
20440 EOF
20441
20442 wxUSE_TOOLBAR="yes"
20443 USES_CONTROLS=1
20444 fi
20445
20446 if test "$wxUSE_TOOLBAR" = "yes"; then
20447 cat >> confdefs.h <<\EOF
20448 #define wxUSE_TOOLBAR 1
20449 EOF
20450
20451 USES_CONTROLS=1
20452
20453 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20454 wxUSE_TOOLBAR_NATIVE="yes"
20455 fi
20456
20457 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20458 cat >> confdefs.h <<\EOF
20459 #define wxUSE_TOOLBAR_NATIVE 1
20460 EOF
20461
20462 USES_CONTROLS=1
20463 fi
20464
20465 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20466 fi
20467
20468 if test "$wxUSE_TOOLTIPS" = "yes"; then
20469 if test "$wxUSE_MOTIF" = 1; then
20470 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
20471 else
20472 if test "$wxUSE_WINE" = 1; then
20473 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
20474 else
20475 if test "$wxUSE_UNIVERSAL" = "yes"; then
20476 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
20477 else
20478 cat >> confdefs.h <<\EOF
20479 #define wxUSE_TOOLTIPS 1
20480 EOF
20481
20482 fi
20483 fi
20484 fi
20485 fi
20486
20487 if test "$wxUSE_TREECTRL" = "yes"; then
20488 if test "$wxUSE_IMAGLIST" = "yes"; then
20489 cat >> confdefs.h <<\EOF
20490 #define wxUSE_TREECTRL 1
20491 EOF
20492
20493 USES_CONTROLS=1
20494 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20495 else
20496 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20497 fi
20498 fi
20499
20500 if test "$wxUSE_POPUPWIN" = "yes"; then
20501 if test "$wxUSE_MAC" = 1; then
20502 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20503 else
20504 if test "$wxUSE_MOTIF" = 1; then
20505 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20506 else
20507 if test "$wxUSE_PM" = 1; then
20508 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20509 else
20510 cat >> confdefs.h <<\EOF
20511 #define wxUSE_POPUPWIN 1
20512 EOF
20513
20514
20515 USES_CONTROLS=1
20516 fi
20517 fi
20518 fi
20519 fi
20520
20521 if test "$wxUSE_TIPWINDOW" = "yes"; then
20522 if test "$wxUSE_PM" = 1; then
20523 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20524 else
20525 cat >> confdefs.h <<\EOF
20526 #define wxUSE_TIPWINDOW 1
20527 EOF
20528
20529 fi
20530 fi
20531
20532 if test "$USES_CONTROLS" = 1; then
20533 cat >> confdefs.h <<\EOF
20534 #define wxUSE_CONTROLS 1
20535 EOF
20536
20537 fi
20538
20539
20540 if test "$wxUSE_TREELAYOUT" = "yes"; then
20541 cat >> confdefs.h <<\EOF
20542 #define wxUSE_TREELAYOUT 1
20543 EOF
20544
20545 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20546 fi
20547
20548 if test "$wxUSE_DRAGIMAGE" = "yes"; then
20549 cat >> confdefs.h <<\EOF
20550 #define wxUSE_DRAGIMAGE 1
20551 EOF
20552
20553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20554 fi
20555
20556 if test "$wxUSE_MENUS" = "yes"; then
20557 cat >> confdefs.h <<\EOF
20558 #define wxUSE_MENUS 1
20559 EOF
20560
20561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20562 fi
20563
20564 if test "$wxUSE_METAFILE" = "yes"; then
20565 cat >> confdefs.h <<\EOF
20566 #define wxUSE_METAFILE 1
20567 EOF
20568
20569 fi
20570
20571 if test "$wxUSE_MIMETYPE" = "yes"; then
20572 cat >> confdefs.h <<\EOF
20573 #define wxUSE_MIMETYPE 1
20574 EOF
20575
20576 fi
20577
20578 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20579 cat >> confdefs.h <<\EOF
20580 #define wxUSE_SYSTEM_OPTIONS 1
20581 EOF
20582
20583 if test "$TOOLKIT" = "MSW"; then
20584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20585 fi
20586
20587 fi
20588
20589 if test "$wxUSE_PROTOCOL" = "yes"; then
20590 if test "$wxUSE_SOCKETS" != "yes"; then
20591 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20592 wxUSE_PROTOCOL=no
20593 fi
20594
20595 if test "$wxUSE_PROTOCOL" = "yes"; then
20596 cat >> confdefs.h <<\EOF
20597 #define wxUSE_PROTOCOL 1
20598 EOF
20599
20600
20601 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20602 cat >> confdefs.h <<\EOF
20603 #define wxUSE_PROTOCOL_HTTP 1
20604 EOF
20605
20606 fi
20607 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20608 cat >> confdefs.h <<\EOF
20609 #define wxUSE_PROTOCOL_FTP 1
20610 EOF
20611
20612 fi
20613 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20614 cat >> confdefs.h <<\EOF
20615 #define wxUSE_PROTOCOL_FILE 1
20616 EOF
20617
20618 fi
20619 fi
20620 fi
20621
20622 if test "$wxUSE_URL" = "yes"; then
20623 if test "$wxUSE_PROTOCOL" != "yes"; then
20624 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20625 wxUSE_URL=no
20626 fi
20627 if test "$wxUSE_URL" = "yes"; then
20628 cat >> confdefs.h <<\EOF
20629 #define wxUSE_URL 1
20630 EOF
20631
20632 fi
20633 fi
20634
20635 if test "$wxUSE_MINIFRAME" = "yes"; then
20636 cat >> confdefs.h <<\EOF
20637 #define wxUSE_MINIFRAME 1
20638 EOF
20639
20640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20641 fi
20642
20643 if test "$wxUSE_HTML" = "yes"; then
20644 cat >> confdefs.h <<\EOF
20645 #define wxUSE_HTML 1
20646 EOF
20647
20648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20649 fi
20650
20651 if test "$wxUSE_VALIDATORS" = "yes"; then
20652 cat >> confdefs.h <<\EOF
20653 #define wxUSE_VALIDATORS 1
20654 EOF
20655
20656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20657 fi
20658
20659 if test "$wxUSE_PALETTE" = "yes" ; then
20660 cat >> confdefs.h <<\EOF
20661 #define wxUSE_PALETTE 1
20662 EOF
20663
20664 fi
20665
20666 if test "$wxUSE_IMAGE" = "yes" ; then
20667 cat >> confdefs.h <<\EOF
20668 #define wxUSE_IMAGE 1
20669 EOF
20670
20671 fi
20672
20673 if test "$wxUSE_GIF" = "yes" ; then
20674 cat >> confdefs.h <<\EOF
20675 #define wxUSE_GIF 1
20676 EOF
20677
20678 fi
20679
20680 if test "$wxUSE_PCX" = "yes" ; then
20681 cat >> confdefs.h <<\EOF
20682 #define wxUSE_PCX 1
20683 EOF
20684
20685 fi
20686
20687 if test "$wxUSE_IFF" = "yes" ; then
20688 cat >> confdefs.h <<\EOF
20689 #define wxUSE_IFF 1
20690 EOF
20691
20692 fi
20693
20694 if test "$wxUSE_PNM" = "yes" ; then
20695 cat >> confdefs.h <<\EOF
20696 #define wxUSE_PNM 1
20697 EOF
20698
20699 fi
20700
20701 if test "$wxUSE_XPM" = "yes" ; then
20702 cat >> confdefs.h <<\EOF
20703 #define wxUSE_XPM 1
20704 EOF
20705
20706 fi
20707
20708 if test "$wxUSE_ICO_CUR" = "yes" ; then
20709 cat >> confdefs.h <<\EOF
20710 #define wxUSE_ICO_CUR 1
20711 EOF
20712
20713 fi
20714
20715 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20716 LIBS=" -lunicows $LIBS"
20717 fi
20718
20719
20720 if test "$wxUSE_CHOICEDLG" = "yes"; then
20721 cat >> confdefs.h <<\EOF
20722 #define wxUSE_CHOICEDLG 1
20723 EOF
20724
20725 fi
20726
20727 if test "$wxUSE_COLOURDLG" = "yes"; then
20728 cat >> confdefs.h <<\EOF
20729 #define wxUSE_COLOURDLG 1
20730 EOF
20731
20732 fi
20733
20734 if test "$wxUSE_FILEDLG" = "yes"; then
20735 cat >> confdefs.h <<\EOF
20736 #define wxUSE_FILEDLG 1
20737 EOF
20738
20739 fi
20740
20741 if test "$wxUSE_FINDREPLDLG" = "yes"; then
20742 cat >> confdefs.h <<\EOF
20743 #define wxUSE_FINDREPLDLG 1
20744 EOF
20745
20746 fi
20747
20748 if test "$wxUSE_FONTDLG" = "yes"; then
20749 cat >> confdefs.h <<\EOF
20750 #define wxUSE_FONTDLG 1
20751 EOF
20752
20753 fi
20754
20755 if test "$wxUSE_DIRDLG" = "yes"; then
20756 if test "$wxUSE_TREECTRL" != "yes"; then
20757 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20758 else
20759 cat >> confdefs.h <<\EOF
20760 #define wxUSE_DIRDLG 1
20761 EOF
20762
20763 fi
20764 fi
20765
20766 if test "$wxUSE_MSGDLG" = "yes"; then
20767 cat >> confdefs.h <<\EOF
20768 #define wxUSE_MSGDLG 1
20769 EOF
20770
20771 fi
20772
20773 if test "$wxUSE_NUMBERDLG" = "yes"; then
20774 cat >> confdefs.h <<\EOF
20775 #define wxUSE_NUMBERDLG 1
20776 EOF
20777
20778 fi
20779
20780 if test "$wxUSE_PROGRESSDLG" = "yes"; then
20781 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20782 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20783 else
20784 cat >> confdefs.h <<\EOF
20785 #define wxUSE_PROGRESSDLG 1
20786 EOF
20787
20788 fi
20789 fi
20790
20791 if test "$wxUSE_SPLASH" = "yes"; then
20792 cat >> confdefs.h <<\EOF
20793 #define wxUSE_SPLASH 1
20794 EOF
20795
20796 fi
20797
20798 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20799 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20800 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20801 else
20802 cat >> confdefs.h <<\EOF
20803 #define wxUSE_STARTUP_TIPS 1
20804 EOF
20805
20806 fi
20807 fi
20808
20809 if test "$wxUSE_TEXTDLG" = "yes"; then
20810 cat >> confdefs.h <<\EOF
20811 #define wxUSE_TEXTDLG 1
20812 EOF
20813
20814 fi
20815
20816 if test "$wxUSE_WIZARDDLG" = "yes"; then
20817 cat >> confdefs.h <<\EOF
20818 #define wxUSE_WIZARDDLG 1
20819 EOF
20820
20821 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20822 fi
20823
20824
20825 if test "$cross_compiling" = "yes"; then
20826 OSINFO="\"$host\""
20827 else
20828 OSINFO=`uname -s -r -m`
20829 OSINFO="\"$OSINFO\""
20830 fi
20831
20832 cat >> confdefs.h <<EOF
20833 #define WXWIN_OS_DESCRIPTION $OSINFO
20834 EOF
20835
20836
20837
20838 if test "x$prefix" != "xNONE"; then
20839 wxPREFIX=$prefix
20840 else
20841 wxPREFIX=$ac_default_prefix
20842 fi
20843
20844 cat >> confdefs.h <<EOF
20845 #define wxINSTALL_PREFIX "$wxPREFIX"
20846 EOF
20847
20848
20849
20850
20851
20852 if test "$wxUSE_MAC" = 1 ; then
20853 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20854 fi
20855
20856
20857 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
20858
20859 if test "$wxUSE_GUI" = "yes"; then
20860
20861 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20862
20863
20864 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
20865 drawing dynamic erase event exec font image \
20866 minimal propsize rotate widgets"
20867
20868 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20869 else
20870 SAMPLES_SUBDIRS="console"
20871 fi
20872
20873
20874 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20875 -I\${top_srcdir}/include \
20876 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20877 $TOOLKIT_INCLUDE"
20878
20879 if test "$wxUSE_GTK" = 1; then
20880 WXCONFIG_INCLUDE=
20881 else
20882 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20883 fi
20884
20885 if test "$GXX" = yes ; then
20886 CXXWARNINGS="-Wall"
20887
20888 if test "$wxUSE_NO_DEPS" = "no" ; then
20889 CFLAGS="-MMD $CFLAGS"
20890 CXXFLAGS="-MMD $CXXFLAGS"
20891 fi
20892 fi
20893
20894 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20895
20896 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20897 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20898 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
20899
20900 LDFLAGS="$LDFLAGS $PROFILE"
20901
20902 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20995 echo "configure:20996: checking whether ${MAKE-make} sets \${MAKE}" >&5
20996 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20997 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20998 echo $ac_n "(cached) $ac_c" 1>&6
20999 else
21000 cat > conftestmake <<\EOF
21001 all:
21002 @echo 'ac_maketemp="${MAKE}"'
21003 EOF
21004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21005 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
21006 if test -n "$ac_maketemp"; then
21007 eval ac_cv_prog_make_${ac_make}_set=yes
21008 else
21009 eval ac_cv_prog_make_${ac_make}_set=no
21010 fi
21011 rm -f conftestmake
21012 fi
21013 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
21014 echo "$ac_t""yes" 1>&6
21015 SET_MAKE=
21016 else
21017 echo "$ac_t""no" 1>&6
21018 SET_MAKE="MAKE=${MAKE-make}"
21019 fi
21020
21021
21022 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
21023 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
21024 fi
21025
21026
21027
21028 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
21029 wx_cv_if_gnu_make=$IF_GNU_MAKE
21030 wx_cv_path_ifs=$PATH_IFS
21031 wx_cv_program_ext=$PROGRAM_EXT
21032 wx_cv_target_library=$WX_TARGET_LIBRARY
21033 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
21034 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
21035 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
21036 wx_cv_path_ifs wx_cv_program_ext \
21037 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
21038
21039 subdirs="demos samples utils contrib"
21040
21041
21042 trap '' 1 2 15
21043 cat > confcache <<\EOF
21044 # This file is a shell script that caches the results of configure
21045 # tests run on this system so they can be shared between configure
21046 # scripts and configure runs. It is not useful on other systems.
21047 # If it contains results you don't want to keep, you may remove or edit it.
21048 #
21049 # By default, configure uses ./config.cache as the cache file,
21050 # creating it if it does not exist already. You can give configure
21051 # the --cache-file=FILE option to use a different cache file; that is
21052 # what configure does when it calls configure scripts in
21053 # subdirectories, so they share the cache.
21054 # Giving --cache-file=/dev/null disables caching, for debugging configure.
21055 # config.status only pays attention to the cache file if you give it the
21056 # --recheck option to rerun configure.
21057 #
21058 EOF
21059 # The following way of writing the cache mishandles newlines in values,
21060 # but we know of no workaround that is simple, portable, and efficient.
21061 # So, don't put newlines in cache variables' values.
21062 # Ultrix sh set writes to stderr and can't be redirected directly,
21063 # and sets the high bit in the cache file unless we assign to the vars.
21064 (set) 2>&1 |
21065 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21066 *ac_space=\ *)
21067 # `set' does not quote correctly, so add quotes (double-quote substitution
21068 # turns \\\\ into \\, and sed turns \\ into \).
21069 sed -n \
21070 -e "s/'/'\\\\''/g" \
21071 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21072 ;;
21073 *)
21074 # `set' quotes correctly as required by POSIX, so do not add quotes.
21075 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21076 ;;
21077 esac >> confcache
21078 if cmp -s $cache_file confcache; then
21079 :
21080 else
21081 if test -w $cache_file; then
21082 echo "updating cache $cache_file"
21083 cat confcache > $cache_file
21084 else
21085 echo "not updating unwritable cache $cache_file"
21086 fi
21087 fi
21088 rm -f confcache
21089
21090 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
21091
21092 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21093 # Let make expand exec_prefix.
21094 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21095
21096 # Any assignment to VPATH causes Sun make to only execute
21097 # the first set of double-colon rules, so remove it if not needed.
21098 # If there is a colon in the path, we need to keep it.
21099 if test "x$srcdir" = x.; then
21100 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
21101 fi
21102
21103 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
21104
21105 DEFS=-DHAVE_CONFIG_H
21106
21107 # Without the "./", some shells look in PATH for config.status.
21108 : ${CONFIG_STATUS=./config.status}
21109
21110 echo creating $CONFIG_STATUS
21111 rm -f $CONFIG_STATUS
21112 cat > $CONFIG_STATUS <<EOF
21113 #! /bin/sh
21114 # Generated automatically by configure.
21115 # Run this file to recreate the current configuration.
21116 # This directory was configured as follows,
21117 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21118 #
21119 # $0 $ac_configure_args
21120 #
21121 # Compiler output produced by configure, useful for debugging
21122 # configure, is in ./config.log if it exists.
21123
21124 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
21125 for ac_option
21126 do
21127 case "\$ac_option" in
21128 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21129 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21130 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21131 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21132 echo "$CONFIG_STATUS generated by autoconf version 2.13"
21133 exit 0 ;;
21134 -help | --help | --hel | --he | --h)
21135 echo "\$ac_cs_usage"; exit 0 ;;
21136 *) echo "\$ac_cs_usage"; exit 1 ;;
21137 esac
21138 done
21139
21140 ac_given_srcdir=$srcdir
21141 ac_given_INSTALL="$INSTALL"
21142
21143 trap 'rm -fr `echo "
21144 wx-config
21145 src/make.env
21146 src/makeprog.env
21147 src/makelib.env
21148 Makefile
21149 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21150 EOF
21151 cat >> $CONFIG_STATUS <<EOF
21152
21153 # Protect against being on the right side of a sed subst in config.status.
21154 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21155 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21156 $ac_vpsub
21157 $extrasub
21158 s%@SHELL@%$SHELL%g
21159 s%@CFLAGS@%$CFLAGS%g
21160 s%@CPPFLAGS@%$CPPFLAGS%g
21161 s%@CXXFLAGS@%$CXXFLAGS%g
21162 s%@FFLAGS@%$FFLAGS%g
21163 s%@DEFS@%$DEFS%g
21164 s%@LDFLAGS@%$LDFLAGS%g
21165 s%@LIBS@%$LIBS%g
21166 s%@exec_prefix@%$exec_prefix%g
21167 s%@prefix@%$prefix%g
21168 s%@program_transform_name@%$program_transform_name%g
21169 s%@bindir@%$bindir%g
21170 s%@sbindir@%$sbindir%g
21171 s%@libexecdir@%$libexecdir%g
21172 s%@datadir@%$datadir%g
21173 s%@sysconfdir@%$sysconfdir%g
21174 s%@sharedstatedir@%$sharedstatedir%g
21175 s%@localstatedir@%$localstatedir%g
21176 s%@libdir@%$libdir%g
21177 s%@includedir@%$includedir%g
21178 s%@oldincludedir@%$oldincludedir%g
21179 s%@infodir@%$infodir%g
21180 s%@mandir@%$mandir%g
21181 s%@host@%$host%g
21182 s%@host_alias@%$host_alias%g
21183 s%@host_cpu@%$host_cpu%g
21184 s%@host_vendor@%$host_vendor%g
21185 s%@host_os@%$host_os%g
21186 s%@target@%$target%g
21187 s%@target_alias@%$target_alias%g
21188 s%@target_cpu@%$target_cpu%g
21189 s%@target_vendor@%$target_vendor%g
21190 s%@target_os@%$target_os%g
21191 s%@build@%$build%g
21192 s%@build_alias@%$build_alias%g
21193 s%@build_cpu@%$build_cpu%g
21194 s%@build_vendor@%$build_vendor%g
21195 s%@build_os@%$build_os%g
21196 s%@CC@%$CC%g
21197 s%@CPP@%$CPP%g
21198 s%@CXX@%$CXX%g
21199 s%@RANLIB@%$RANLIB%g
21200 s%@AR@%$AR%g
21201 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21202 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21203 s%@INSTALL_DATA@%$INSTALL_DATA%g
21204 s%@STRIP@%$STRIP%g
21205 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
21206 s%@YACC@%$YACC%g
21207 s%@LEX@%$LEX%g
21208 s%@LEXLIB@%$LEXLIB%g
21209 s%@LN_S@%$LN_S%g
21210 s%@CXXCPP@%$CXXCPP%g
21211 s%@PKG_CONFIG@%$PKG_CONFIG%g
21212 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21213 s%@GTK_LIBS@%$GTK_LIBS%g
21214 s%@GTK_CONFIG@%$GTK_CONFIG%g
21215 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
21216 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
21217 s%@X_CFLAGS@%$X_CFLAGS%g
21218 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21219 s%@X_LIBS@%$X_LIBS%g
21220 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
21221 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
21222 s%@RESCOMP@%$RESCOMP%g
21223 s%@DEREZ@%$DEREZ%g
21224 s%@LIBICONV@%$LIBICONV%g
21225 s%@LEX_STEM@%$LEX_STEM%g
21226 s%@PATH_IFS@%$PATH_IFS%g
21227 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21228 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21229 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
21230 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21231 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
21232 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
21233 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21234 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21235 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
21236 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
21237 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21238 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
21239 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21240 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21241 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
21242 s%@WX_ALL@%$WX_ALL%g
21243 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21244 s%@SHARED_LD@%$SHARED_LD%g
21245 s%@PIC_FLAG@%$PIC_FLAG%g
21246 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21247 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
21248 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21249 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
21250 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21251 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21252 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21253 s%@USE_GUI@%$USE_GUI%g
21254 s%@AFMINSTALL@%$AFMINSTALL%g
21255 s%@TOOLKIT@%$TOOLKIT%g
21256 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
21257 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
21258 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21259 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
21260 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
21261 s%@cross_compiling@%$cross_compiling%g
21262 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21263 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
21264 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21265 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
21266 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21267 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
21268 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
21269 s%@ALL_HEADERS@%$ALL_HEADERS%g
21270 s%@ALL_SOURCES@%$ALL_SOURCES%g
21271 s%@GUIDIST@%$GUIDIST%g
21272 s%@PORT_FILES@%$PORT_FILES%g
21273 s%@DISTDIR@%$DISTDIR%g
21274 s%@COMMON_THREADCPPFLAGS@%$COMMON_THREADCPPFLAGS%g
21275 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
21276 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
21277 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
21278 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
21279 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
21280 s%@EXTRADEFS@%$EXTRADEFS%g
21281 s%@RESFLAGS@%$RESFLAGS%g
21282 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
21283 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21284 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
21285 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
21286 s%@LIBWXMACRES@%$LIBWXMACRES%g
21287 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
21288 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
21289 s%@DLLTOOL@%$DLLTOOL%g
21290 s%@AS@%$AS%g
21291 s%@NM@%$NM%g
21292 s%@LD@%$LD%g
21293 s%@MAKEINFO@%$MAKEINFO%g
21294 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
21295 s%@SET_MAKE@%$SET_MAKE%g
21296 s%@subdirs@%$subdirs%g
21297
21298 CEOF
21299 EOF
21300
21301 cat >> $CONFIG_STATUS <<\EOF
21302
21303 # Split the substitutions into bite-sized pieces for seds with
21304 # small command number limits, like on Digital OSF/1 and HP-UX.
21305 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21306 ac_file=1 # Number of current file.
21307 ac_beg=1 # First line for current file.
21308 ac_end=$ac_max_sed_cmds # Line after last line for current file.
21309 ac_more_lines=:
21310 ac_sed_cmds=""
21311 while $ac_more_lines; do
21312 if test $ac_beg -gt 1; then
21313 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21314 else
21315 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21316 fi
21317 if test ! -s conftest.s$ac_file; then
21318 ac_more_lines=false
21319 rm -f conftest.s$ac_file
21320 else
21321 if test -z "$ac_sed_cmds"; then
21322 ac_sed_cmds="sed -f conftest.s$ac_file"
21323 else
21324 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21325 fi
21326 ac_file=`expr $ac_file + 1`
21327 ac_beg=$ac_end
21328 ac_end=`expr $ac_end + $ac_max_sed_cmds`
21329 fi
21330 done
21331 if test -z "$ac_sed_cmds"; then
21332 ac_sed_cmds=cat
21333 fi
21334 EOF
21335
21336 cat >> $CONFIG_STATUS <<EOF
21337
21338 CONFIG_FILES=\${CONFIG_FILES-"wx-config
21339 src/make.env
21340 src/makeprog.env
21341 src/makelib.env
21342 Makefile
21343 "}
21344 EOF
21345 cat >> $CONFIG_STATUS <<\EOF
21346 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21347 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21348 case "$ac_file" in
21349 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21350 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21351 *) ac_file_in="${ac_file}.in" ;;
21352 esac
21353
21354 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21355
21356 # Remove last slash and all that follows it. Not all systems have dirname.
21357 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21358 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21359 # The file is in a subdirectory.
21360 test ! -d "$ac_dir" && mkdir "$ac_dir"
21361 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21362 # A "../" for each directory in $ac_dir_suffix.
21363 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21364 else
21365 ac_dir_suffix= ac_dots=
21366 fi
21367
21368 case "$ac_given_srcdir" in
21369 .) srcdir=.
21370 if test -z "$ac_dots"; then top_srcdir=.
21371 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21372 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21373 *) # Relative path.
21374 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21375 top_srcdir="$ac_dots$ac_given_srcdir" ;;
21376 esac
21377
21378 case "$ac_given_INSTALL" in
21379 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21380 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21381 esac
21382
21383 echo creating "$ac_file"
21384 rm -f "$ac_file"
21385 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21386 case "$ac_file" in
21387 *Makefile*) ac_comsub="1i\\
21388 # $configure_input" ;;
21389 *) ac_comsub= ;;
21390 esac
21391
21392 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21393 sed -e "$ac_comsub
21394 s%@configure_input@%$configure_input%g
21395 s%@srcdir@%$srcdir%g
21396 s%@top_srcdir@%$top_srcdir%g
21397 s%@INSTALL@%$INSTALL%g
21398 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21399 fi; done
21400 rm -f conftest.s*
21401
21402 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21403 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21404 #
21405 # ac_d sets the value in "#define NAME VALUE" lines.
21406 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21407 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21408 ac_dC='\3'
21409 ac_dD='%g'
21410 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21411 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21412 ac_uB='\([ ]\)%\1#\2define\3'
21413 ac_uC=' '
21414 ac_uD='\4%g'
21415 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21416 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21417 ac_eB='$%\1#\2define\3'
21418 ac_eC=' '
21419 ac_eD='%g'
21420
21421 if test "${CONFIG_HEADERS+set}" != set; then
21422 EOF
21423 cat >> $CONFIG_STATUS <<EOF
21424 CONFIG_HEADERS="setup.h:setup.h.in"
21425 EOF
21426 cat >> $CONFIG_STATUS <<\EOF
21427 fi
21428 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21429 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21430 case "$ac_file" in
21431 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21432 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21433 *) ac_file_in="${ac_file}.in" ;;
21434 esac
21435
21436 echo creating $ac_file
21437
21438 rm -f conftest.frag conftest.in conftest.out
21439 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21440 cat $ac_file_inputs > conftest.in
21441
21442 EOF
21443
21444 # Transform confdefs.h into a sed script conftest.vals that substitutes
21445 # the proper values into config.h.in to produce config.h. And first:
21446 # Protect against being on the right side of a sed subst in config.status.
21447 # Protect against being in an unquoted here document in config.status.
21448 rm -f conftest.vals
21449 cat > conftest.hdr <<\EOF
21450 s/[\\&%]/\\&/g
21451 s%[\\$`]%\\&%g
21452 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21453 s%ac_d%ac_u%gp
21454 s%ac_u%ac_e%gp
21455 EOF
21456 sed -n -f conftest.hdr confdefs.h > conftest.vals
21457 rm -f conftest.hdr
21458
21459 # This sed command replaces #undef with comments. This is necessary, for
21460 # example, in the case of _POSIX_SOURCE, which is predefined and required
21461 # on some systems where configure will not decide to define it.
21462 cat >> conftest.vals <<\EOF
21463 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21464 EOF
21465
21466 # Break up conftest.vals because some shells have a limit on
21467 # the size of here documents, and old seds have small limits too.
21468
21469 rm -f conftest.tail
21470 while :
21471 do
21472 ac_lines=`grep -c . conftest.vals`
21473 # grep -c gives empty output for an empty file on some AIX systems.
21474 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21475 # Write a limited-size here document to conftest.frag.
21476 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21477 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21478 echo 'CEOF
21479 sed -f conftest.frag conftest.in > conftest.out
21480 rm -f conftest.in
21481 mv conftest.out conftest.in
21482 ' >> $CONFIG_STATUS
21483 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21484 rm -f conftest.vals
21485 mv conftest.tail conftest.vals
21486 done
21487 rm -f conftest.vals
21488
21489 cat >> $CONFIG_STATUS <<\EOF
21490 rm -f conftest.frag conftest.h
21491 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21492 cat conftest.in >> conftest.h
21493 rm -f conftest.in
21494 if cmp -s $ac_file conftest.h 2>/dev/null; then
21495 echo "$ac_file is unchanged"
21496 rm -f conftest.h
21497 else
21498 # Remove last slash and all that follows it. Not all systems have dirname.
21499 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21500 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21501 # The file is in a subdirectory.
21502 test ! -d "$ac_dir" && mkdir "$ac_dir"
21503 fi
21504 rm -f $ac_file
21505 mv conftest.h $ac_file
21506 fi
21507 fi; done
21508
21509 EOF
21510 cat >> $CONFIG_STATUS <<EOF
21511
21512 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21513 LN_S="${LN_S}"
21514
21515
21516 EOF
21517 cat >> $CONFIG_STATUS <<\EOF
21518
21519 if test ! -h wx-config; then
21520 chmod +x wx-config
21521 mv wx-config wx${TOOLCHAIN_NAME}-config
21522 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21523 fi
21524
21525 if test ! -d lib; then
21526 mkdir lib
21527 fi
21528 if test ! -d lib/wx; then
21529 mkdir lib/wx
21530 fi
21531 if test ! -d lib/wx/include; then
21532 mkdir lib/wx/include
21533 fi
21534 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21535 mkdir lib/wx/include/${TOOLCHAIN_NAME}
21536 fi
21537 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21538 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21539 fi
21540 if test -f setup.h; then
21541 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21542 fi
21543
21544 exit 0
21545 EOF
21546 chmod +x $CONFIG_STATUS
21547 rm -fr confdefs* $ac_clean_files
21548 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21549
21550 if test "$no_recursion" != yes; then
21551
21552 # Remove --cache-file and --srcdir arguments so they do not pile up.
21553 ac_sub_configure_args=
21554 ac_prev=
21555 for ac_arg in $ac_configure_args; do
21556 if test -n "$ac_prev"; then
21557 ac_prev=
21558 continue
21559 fi
21560 case "$ac_arg" in
21561 -cache-file | --cache-file | --cache-fil | --cache-fi \
21562 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21563 ac_prev=cache_file ;;
21564 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21565 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21566 ;;
21567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21568 ac_prev=srcdir ;;
21569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21570 ;;
21571 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21572 esac
21573 done
21574
21575 for ac_config_dir in demos samples utils contrib; do
21576
21577 # Do not complain, so a configure script can configure whichever
21578 # parts of a large source tree are present.
21579 if test ! -d $srcdir/$ac_config_dir; then
21580 continue
21581 fi
21582
21583 echo configuring in $ac_config_dir
21584
21585 case "$srcdir" in
21586 .) ;;
21587 *)
21588 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21589 else
21590 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21591 fi
21592 ;;
21593 esac
21594
21595 ac_popdir=`pwd`
21596 cd $ac_config_dir
21597
21598 # A "../" for each directory in /$ac_config_dir.
21599 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21600
21601 case "$srcdir" in
21602 .) # No --srcdir option. We are building in place.
21603 ac_sub_srcdir=$srcdir ;;
21604 /*) # Absolute path.
21605 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21606 *) # Relative path.
21607 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21608 esac
21609
21610 # Check for guested configure; otherwise get Cygnus style configure.
21611 if test -f $ac_sub_srcdir/configure; then
21612 ac_sub_configure=$ac_sub_srcdir/configure
21613 elif test -f $ac_sub_srcdir/configure.in; then
21614 ac_sub_configure=$ac_configure
21615 else
21616 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21617 ac_sub_configure=
21618 fi
21619
21620 # The recursion is here.
21621 if test -n "$ac_sub_configure"; then
21622
21623 # Make the cache file name correct relative to the subdirectory.
21624 case "$cache_file" in
21625 /*) ac_sub_cache_file=$cache_file ;;
21626 *) # Relative path.
21627 ac_sub_cache_file="$ac_dots$cache_file" ;;
21628 esac
21629 case "$ac_given_INSTALL" in
21630 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21631 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21632 esac
21633
21634 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21635 # The eval makes quoting arguments work.
21636 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21637 then :
21638 else
21639 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21640 fi
21641 fi
21642
21643 cd $ac_popdir
21644 done
21645 fi
21646
21647