]> git.saurik.com Git - wxWidgets.git/blob - configure
merged 2 overloaded functions into a single membersections
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65 # Configure paths for GTK+
66 # Owen Taylor 1997-2001
67
68
69
70 # Configure paths for GTK+
71 # Owen Taylor 97-11-3
72
73
74
75
76
77
78
79
80 # Guess values for system-dependent variables and create Makefiles.
81 # Generated automatically using autoconf version 2.13
82 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
83 #
84 # This configure script is free software; the Free Software Foundation
85 # gives unlimited permission to copy, distribute and modify it.
86
87 # Defaults:
88 ac_help=
89 ac_default_prefix=/usr/local
90 # Any additions from configure.in:
91 ac_help="$ac_help
92 --enable-gui use GUI classes"
93 ac_help="$ac_help
94 --enable-universal use wxWindows GUI controls instead of native ones"
95 ac_help="$ac_help
96 --with-gtk use GTK+"
97 ac_help="$ac_help
98 --with-motif use Motif/Lesstif"
99 ac_help="$ac_help
100 --with-mac use Mac OS X"
101 ac_help="$ac_help
102 --with-cocoa use Cocoa"
103 ac_help="$ac_help
104 --with-wine use Wine"
105 ac_help="$ac_help
106 --with-msw use MS-Windows"
107 ac_help="$ac_help
108 --with-pm use OS/2 Presentation Manager"
109 ac_help="$ac_help
110 --with-mgl use SciTech MGL"
111 ac_help="$ac_help
112 --with-microwin use MicroWindows"
113 ac_help="$ac_help
114 --with-x11 use X11"
115 ac_help="$ac_help
116 --enable-nanox use NanoX"
117 ac_help="$ac_help
118 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
119 ac_help="$ac_help
120 --with-libpng use libpng (PNG image format)"
121 ac_help="$ac_help
122 --with-libjpeg use libjpeg (JPEG file format)"
123 ac_help="$ac_help
124 --with-libtiff use libtiff (TIFF file format)"
125 ac_help="$ac_help
126 --with-opengl use OpenGL (or Mesa)"
127 ac_help="$ac_help
128 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
129 ac_help="$ac_help
130 --with-regex enable support for wxRegEx class"
131 ac_help="$ac_help
132 --with-zlib use zlib for LZW compression"
133 ac_help="$ac_help
134 --with-odbc use the IODBC and wxODBC classes"
135 ac_help="$ac_help
136 --enable-shared create shared library code"
137 ac_help="$ac_help
138 --enable-soname set the DT_SONAME field in ELF shared libraries"
139 ac_help="$ac_help
140 --enable-optimise create optimised code"
141 ac_help="$ac_help
142 --enable-debug same as debug_flag and debug_info"
143 ac_help="$ac_help
144 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
145 ac_help="$ac_help
146 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
147 ac_help="$ac_help
148 --enable-debug_info create code with debugging information"
149 ac_help="$ac_help
150 --enable-debug_gdb create code with extra GDB debugging information"
151 ac_help="$ac_help
152 --enable-debug_cntxt use wxDebugContext"
153 ac_help="$ac_help
154 --enable-mem_tracing create code with memory tracing"
155 ac_help="$ac_help
156 --enable-profile create code with profiling information"
157 ac_help="$ac_help
158 --enable-no_rtti create code without RTTI information"
159 ac_help="$ac_help
160 --enable-no_exceptions create code without C++ exceptions handling"
161 ac_help="$ac_help
162 --enable-permissive compile code disregarding strict ANSI"
163 ac_help="$ac_help
164 --enable-no_deps create code without dependency information"
165 ac_help="$ac_help
166 --enable-compat20 enable wxWindows 2.0 compatibility"
167 ac_help="$ac_help
168 --enable-compat22 enable wxWindows 2.2 compatibility"
169 ac_help="$ac_help
170 --disable-compat24 disable wxWindows 2.4 compatibility"
171 ac_help="$ac_help
172 --enable-rpath=DIR output the rpath flag from wx-config"
173 ac_help="$ac_help
174 --enable-intl use internationalization system"
175 ac_help="$ac_help
176 --enable-config use wxConfig (and derived) classes"
177 ac_help="$ac_help
178 --enable-protocols use wxProtocol and derived classes"
179 ac_help="$ac_help
180 --enable-ftp use wxFTP (requires wxProtocol"
181 ac_help="$ac_help
182 --enable-http use wxHTTP (requires wxProtocol"
183 ac_help="$ac_help
184 --enable-fileproto use wxFileProto class (requires wxProtocol"
185 ac_help="$ac_help
186 --enable-sockets use socket/network classes"
187 ac_help="$ac_help
188 --enable-ole use OLE classes"
189 ac_help="$ac_help
190 --enable-dataobj use data object classes"
191 ac_help="$ac_help
192 --enable-ipc use interprocess communication (wxSocket etc.)"
193 ac_help="$ac_help
194 --enable-cmdline use wxCmdLineParser class"
195 ac_help="$ac_help
196 --enable-datetime use wxDateTime class"
197 ac_help="$ac_help
198 --enable-stopwatch use wxStopWatch class"
199 ac_help="$ac_help
200 --enable-dialupman use dialup network classes"
201 ac_help="$ac_help
202 --enable-apple_ieee use the Apple IEEE codec"
203 ac_help="$ac_help
204 --enable-timer use wxTimer class"
205 ac_help="$ac_help
206 --enable-wave use wxWave class"
207 ac_help="$ac_help
208 --enable-fraction use wxFraction class"
209 ac_help="$ac_help
210 --enable-dynlib use wxLibrary class for DLL loading"
211 ac_help="$ac_help
212 --enable-dynamicloader use (new) wxDynamicLibrary class"
213 ac_help="$ac_help
214 --enable-longlong use wxLongLong class"
215 ac_help="$ac_help
216 --enable-geometry use geometry class"
217 ac_help="$ac_help
218 --enable-log use logging system"
219 ac_help="$ac_help
220 --enable-streams use wxStream etc classes"
221 ac_help="$ac_help
222 --enable-file use wxFile classes"
223 ac_help="$ac_help
224 --enable-ffile use wxFFile classes"
225 ac_help="$ac_help
226 --enable-textbuf use wxTextBuffer class"
227 ac_help="$ac_help
228 --enable-textfile use wxTextFile class"
229 ac_help="$ac_help
230 --enable-fontmap use font encodings conversion classes"
231 ac_help="$ac_help
232 --enable-unicode compile wxString with Unicode support"
233 ac_help="$ac_help
234 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
235 ac_help="$ac_help
236 --enable-wxprintfv use wxWindows implementation of vprintf()"
237 ac_help="$ac_help
238 --enable-std_iostreams use standard C++ stream classes"
239 ac_help="$ac_help
240 --enable-filesystem use virtual file systems classes"
241 ac_help="$ac_help
242 --enable-fs_inet use virtual HTTP/FTP filesystems"
243 ac_help="$ac_help
244 --enable-fs_zip use virtual ZIP filesystems"
245 ac_help="$ac_help
246 --enable-zipstream use wxZipInputStream"
247 ac_help="$ac_help
248 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
249 ac_help="$ac_help
250 --enable-snglinst use wxSingleInstanceChecker class"
251 ac_help="$ac_help
252 --enable-mimetype use wxMimeTypesManager"
253 ac_help="$ac_help
254 --enable-sysoptions use wxSystemOptions"
255 ac_help="$ac_help
256 --enable-url use wxURL class"
257 ac_help="$ac_help
258 --enable-protocol use wxProtocol class"
259 ac_help="$ac_help
260 --enable-protocol-http HTTP support in wxProtocol"
261 ac_help="$ac_help
262 --enable-protocol-ftp FTP support in wxProtocol"
263 ac_help="$ac_help
264 --enable-protocol-file FILE support in wxProtocol"
265 ac_help="$ac_help
266 --enable-threads use threads"
267 ac_help="$ac_help
268 --enable-docview use document view architecture"
269 ac_help="$ac_help
270 --enable-help use help subsystem"
271 ac_help="$ac_help
272 --enable-mshtmlhelp use MS HTML Help (win32)"
273 ac_help="$ac_help
274 --enable-html use wxHTML sub-library"
275 ac_help="$ac_help
276 --enable-htmlhelp use wxHTML-based help"
277 ac_help="$ac_help
278 --enable-constraints use layout-constraints system"
279 ac_help="$ac_help
280 --enable-printarch use printing architecture"
281 ac_help="$ac_help
282 --enable-mdi use multiple document interface architecture"
283 ac_help="$ac_help
284 --enable-loggui use standard GUI logger"
285 ac_help="$ac_help
286 --enable-logwin use wxLogWindow"
287 ac_help="$ac_help
288 --enable-logdialog use wxLogDialog"
289 ac_help="$ac_help
290 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
291 ac_help="$ac_help
292 --enable-resources use wxWindows resources"
293 ac_help="$ac_help
294 --enable-xresources use X resources for save (default for gtk+)"
295 ac_help="$ac_help
296 --enable-clipboard use wxClipboard class"
297 ac_help="$ac_help
298 --enable-dnd use Drag'n'Drop classes"
299 ac_help="$ac_help
300 --enable-metafile use win32 metafiles"
301 ac_help="$ac_help
302 --enable-controls use all usual controls"
303 ac_help="$ac_help
304 --enable-accel use accelerators"
305 ac_help="$ac_help
306 --enable-button use wxButton class"
307 ac_help="$ac_help
308 --enable-bmpbutton use wxBitmapButton class"
309 ac_help="$ac_help
310 --enable-calendar use wxCalendarCtrl class"
311 ac_help="$ac_help
312 --enable-caret use wxCaret class"
313 ac_help="$ac_help
314 --enable-checkbox use wxCheckBox class"
315 ac_help="$ac_help
316 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
317 ac_help="$ac_help
318 --enable-choice use wxChoice class"
319 ac_help="$ac_help
320 --enable-combobox use wxComboBox class"
321 ac_help="$ac_help
322 --enable-display use wxDisplay class"
323 ac_help="$ac_help
324 --enable-gauge use wxGauge class"
325 ac_help="$ac_help
326 --enable-grid use wxGrid class"
327 ac_help="$ac_help
328 --enable-imaglist use wxImageList class"
329 ac_help="$ac_help
330 --enable-listbox use wxListBox class"
331 ac_help="$ac_help
332 --enable-listctrl use wxListCtrl class"
333 ac_help="$ac_help
334 --enable-notebook use wxNotebook class"
335 ac_help="$ac_help
336 --enable-radiobox use wxRadioBox class"
337 ac_help="$ac_help
338 --enable-radiobtn use wxRadioButton class"
339 ac_help="$ac_help
340 --enable-sash use wxSashWindow class"
341 ac_help="$ac_help
342 --enable-scrollbar use wxScrollBar class and scrollable windows"
343 ac_help="$ac_help
344 --enable-slider use wxSlider class"
345 ac_help="$ac_help
346 --enable-spinbtn use wxSpinButton class"
347 ac_help="$ac_help
348 --enable-spinctrl use wxSpinCtrl class"
349 ac_help="$ac_help
350 --enable-splitter use wxSplitterWindow class"
351 ac_help="$ac_help
352 --enable-statbmp use wxStaticBitmap class"
353 ac_help="$ac_help
354 --enable-statbox use wxStaticBox class"
355 ac_help="$ac_help
356 --enable-statline use wxStaticLine class"
357 ac_help="$ac_help
358 --enable-stattext use wxStaticText class"
359 ac_help="$ac_help
360 --enable-statusbar use wxStatusBar class"
361 ac_help="$ac_help
362 --enable-tabdialog use wxTabControl class"
363 ac_help="$ac_help
364 --enable-textctrl use wxTextCtrl class"
365 ac_help="$ac_help
366 --enable-togglebtn use wxToggleButton class"
367 ac_help="$ac_help
368 --enable-toolbar use wxToolBar class"
369 ac_help="$ac_help
370 --enable-tbarnative use native wxToolBar class"
371 ac_help="$ac_help
372 --enable-tbarsmpl use wxToolBarSimple class"
373 ac_help="$ac_help
374 --enable-treectrl use wxTreeCtrl class"
375 ac_help="$ac_help
376 --enable-tipwindow use wxTipWindow class"
377 ac_help="$ac_help
378 --enable-popupwin use wxPopUpWindow class"
379 ac_help="$ac_help
380 --enable-commondlg use all common dialogs"
381 ac_help="$ac_help
382 --enable-choicedlg use wxChoiceDialog"
383 ac_help="$ac_help
384 --enable-coldlg use wxColourDialog"
385 ac_help="$ac_help
386 --enable-filedlg use wxFileDialog"
387 ac_help="$ac_help
388 --enable-finddlg use wxFindReplaceDialog"
389 ac_help="$ac_help
390 --enable-fontdlg use wxFontDialog"
391 ac_help="$ac_help
392 --enable-dirdlg use wxDirDialog"
393 ac_help="$ac_help
394 --enable-msgdlg use wxMessageDialog"
395 ac_help="$ac_help
396 --enable-numberdlg use wxNumberEntryDialog"
397 ac_help="$ac_help
398 --enable-splash use wxSplashScreen"
399 ac_help="$ac_help
400 --enable-textdlg use wxTextDialog"
401 ac_help="$ac_help
402 --enable-tipdlg use startup tips"
403 ac_help="$ac_help
404 --enable-progressdlg use wxProgressDialog"
405 ac_help="$ac_help
406 --enable-wizarddlg use wxWizard"
407 ac_help="$ac_help
408 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
409 ac_help="$ac_help
410 --enable-miniframe use wxMiniFrame class"
411 ac_help="$ac_help
412 --enable-tooltips use wxToolTip class"
413 ac_help="$ac_help
414 --enable-splines use spline drawing code"
415 ac_help="$ac_help
416 --enable-validators use wxValidator and derived classes"
417 ac_help="$ac_help
418 --enable-busyinfo use wxBusyInfo"
419 ac_help="$ac_help
420 --enable-joystick use wxJoystick (Linux only)"
421 ac_help="$ac_help
422 --enable-metafiles use wxMetaFile (Windows only)"
423 ac_help="$ac_help
424 --enable-dragimage use wxDragImage"
425 ac_help="$ac_help
426 --enable-palette use wxPalette class"
427 ac_help="$ac_help
428 --enable-image use wxImage class"
429 ac_help="$ac_help
430 --enable-gif use gif images (GIF file format)"
431 ac_help="$ac_help
432 --enable-pcx use pcx images (PCX file format)"
433 ac_help="$ac_help
434 --enable-iff use iff images (IFF file format)"
435 ac_help="$ac_help
436 --enable-pnm use pnm images (PNM file format)"
437 ac_help="$ac_help
438 --enable-xpm use xpm images (XPM file format)"
439 ac_help="$ac_help
440 --enable-icocur use Windows ICO and CUR formats"
441 ac_help="$ac_help
442 --disable-largefile omit support for large files"
443 ac_help="$ac_help
444 --disable-gtktest do not try to compile and run a test GTK+ program"
445 ac_help="$ac_help
446 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
447 ac_help="$ac_help
448 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
449 ac_help="$ac_help
450 --disable-gtktest Do not try to compile and run a test GTK program"
451 ac_help="$ac_help
452 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
453 ac_help="$ac_help
454 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
455 ac_help="$ac_help
456 --disable-gtktest Do not try to compile and run a test GTK program"
457 ac_help="$ac_help
458 --with-x use the X Window System"
459 ac_help="$ac_help
460 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
461
462 # Initialize some variables set by options.
463 # The variables have the same names as the options, with
464 # dashes changed to underlines.
465 build=NONE
466 cache_file=./config.cache
467 exec_prefix=NONE
468 host=NONE
469 no_create=
470 nonopt=NONE
471 no_recursion=
472 prefix=NONE
473 program_prefix=NONE
474 program_suffix=NONE
475 program_transform_name=s,x,x,
476 silent=
477 site=
478 srcdir=
479 target=NONE
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483 bindir='${exec_prefix}/bin'
484 sbindir='${exec_prefix}/sbin'
485 libexecdir='${exec_prefix}/libexec'
486 datadir='${prefix}/share'
487 sysconfdir='${prefix}/etc'
488 sharedstatedir='${prefix}/com'
489 localstatedir='${prefix}/var'
490 libdir='${exec_prefix}/lib'
491 includedir='${prefix}/include'
492 oldincludedir='/usr/include'
493 infodir='${prefix}/info'
494 mandir='${prefix}/man'
495
496 # Initialize some other variables.
497 subdirs=
498 MFLAGS= MAKEFLAGS=
499 SHELL=${CONFIG_SHELL-/bin/sh}
500 # Maximum number of lines to put in a shell here document.
501 ac_max_here_lines=12
502
503 ac_prev=
504 for ac_option
505 do
506
507 # If the previous option needs an argument, assign it.
508 if test -n "$ac_prev"; then
509 eval "$ac_prev=\$ac_option"
510 ac_prev=
511 continue
512 fi
513
514 case "$ac_option" in
515 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
516 *) ac_optarg= ;;
517 esac
518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
521 case "$ac_option" in
522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir="$ac_optarg" ;;
527
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build="$ac_optarg" ;;
532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file="$ac_optarg" ;;
539
540 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 ac_prev=datadir ;;
542 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 | --da=*)
544 datadir="$ac_optarg" ;;
545
546 -disable-* | --disable-*)
547 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
548 # Reject names that are not valid shell variable names.
549 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
550 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
551 fi
552 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
553 eval "enable_${ac_feature}=no" ;;
554
555 -enable-* | --enable-*)
556 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
557 # Reject names that are not valid shell variable names.
558 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
559 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
560 fi
561 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
562 case "$ac_option" in
563 *=*) ;;
564 *) ac_optarg=yes ;;
565 esac
566 eval "enable_${ac_feature}='$ac_optarg'" ;;
567
568 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570 | --exec | --exe | --ex)
571 ac_prev=exec_prefix ;;
572 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574 | --exec=* | --exe=* | --ex=*)
575 exec_prefix="$ac_optarg" ;;
576
577 -gas | --gas | --ga | --g)
578 # Obsolete; use --with-gas.
579 with_gas=yes ;;
580
581 -help | --help | --hel | --he)
582 # Omit some internal or obsolete options to make the list less imposing.
583 # This message is too long to be a string in the A/UX 3.1 sh.
584 cat << EOF
585 Usage: configure [options] [host]
586 Options: [defaults in brackets after descriptions]
587 Configuration:
588 --cache-file=FILE cache test results in FILE
589 --help print this message
590 --no-create do not create output files
591 --quiet, --silent do not print \`checking...' messages
592 --version print the version of autoconf that created configure
593 Directory and file names:
594 --prefix=PREFIX install architecture-independent files in PREFIX
595 [$ac_default_prefix]
596 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
597 [same as prefix]
598 --bindir=DIR user executables in DIR [EPREFIX/bin]
599 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
600 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
601 --datadir=DIR read-only architecture-independent data in DIR
602 [PREFIX/share]
603 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
604 --sharedstatedir=DIR modifiable architecture-independent data in DIR
605 [PREFIX/com]
606 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
607 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
608 --includedir=DIR C header files in DIR [PREFIX/include]
609 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
610 --infodir=DIR info documentation in DIR [PREFIX/info]
611 --mandir=DIR man documentation in DIR [PREFIX/man]
612 --srcdir=DIR find the sources in DIR [configure dir or ..]
613 --program-prefix=PREFIX prepend PREFIX to installed program names
614 --program-suffix=SUFFIX append SUFFIX to installed program names
615 --program-transform-name=PROGRAM
616 run sed PROGRAM on installed program names
617 EOF
618 cat << EOF
619 Host type:
620 --build=BUILD configure for building on BUILD [BUILD=HOST]
621 --host=HOST configure for HOST [guessed]
622 --target=TARGET configure for TARGET [TARGET=HOST]
623 Features and packages:
624 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
625 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
626 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
627 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
628 --x-includes=DIR X include files are in DIR
629 --x-libraries=DIR X library files are in DIR
630 EOF
631 if test -n "$ac_help"; then
632 echo "--enable and --with options recognized:$ac_help"
633 fi
634 exit 0 ;;
635
636 -host | --host | --hos | --ho)
637 ac_prev=host ;;
638 -host=* | --host=* | --hos=* | --ho=*)
639 host="$ac_optarg" ;;
640
641 -includedir | --includedir | --includedi | --included | --include \
642 | --includ | --inclu | --incl | --inc)
643 ac_prev=includedir ;;
644 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
645 | --includ=* | --inclu=* | --incl=* | --inc=*)
646 includedir="$ac_optarg" ;;
647
648 -infodir | --infodir | --infodi | --infod | --info | --inf)
649 ac_prev=infodir ;;
650 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
651 infodir="$ac_optarg" ;;
652
653 -libdir | --libdir | --libdi | --libd)
654 ac_prev=libdir ;;
655 -libdir=* | --libdir=* | --libdi=* | --libd=*)
656 libdir="$ac_optarg" ;;
657
658 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
659 | --libexe | --libex | --libe)
660 ac_prev=libexecdir ;;
661 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
662 | --libexe=* | --libex=* | --libe=*)
663 libexecdir="$ac_optarg" ;;
664
665 -localstatedir | --localstatedir | --localstatedi | --localstated \
666 | --localstate | --localstat | --localsta | --localst \
667 | --locals | --local | --loca | --loc | --lo)
668 ac_prev=localstatedir ;;
669 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
670 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
671 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
672 localstatedir="$ac_optarg" ;;
673
674 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
675 ac_prev=mandir ;;
676 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
677 mandir="$ac_optarg" ;;
678
679 -nfp | --nfp | --nf)
680 # Obsolete; use --without-fp.
681 with_fp=no ;;
682
683 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
684 | --no-cr | --no-c)
685 no_create=yes ;;
686
687 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
688 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
689 no_recursion=yes ;;
690
691 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
692 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
693 | --oldin | --oldi | --old | --ol | --o)
694 ac_prev=oldincludedir ;;
695 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
696 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
697 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698 oldincludedir="$ac_optarg" ;;
699
700 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
701 ac_prev=prefix ;;
702 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
703 prefix="$ac_optarg" ;;
704
705 -program-prefix | --program-prefix | --program-prefi | --program-pref \
706 | --program-pre | --program-pr | --program-p)
707 ac_prev=program_prefix ;;
708 -program-prefix=* | --program-prefix=* | --program-prefi=* \
709 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
710 program_prefix="$ac_optarg" ;;
711
712 -program-suffix | --program-suffix | --program-suffi | --program-suff \
713 | --program-suf | --program-su | --program-s)
714 ac_prev=program_suffix ;;
715 -program-suffix=* | --program-suffix=* | --program-suffi=* \
716 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
717 program_suffix="$ac_optarg" ;;
718
719 -program-transform-name | --program-transform-name \
720 | --program-transform-nam | --program-transform-na \
721 | --program-transform-n | --program-transform- \
722 | --program-transform | --program-transfor \
723 | --program-transfo | --program-transf \
724 | --program-trans | --program-tran \
725 | --progr-tra | --program-tr | --program-t)
726 ac_prev=program_transform_name ;;
727 -program-transform-name=* | --program-transform-name=* \
728 | --program-transform-nam=* | --program-transform-na=* \
729 | --program-transform-n=* | --program-transform-=* \
730 | --program-transform=* | --program-transfor=* \
731 | --program-transfo=* | --program-transf=* \
732 | --program-trans=* | --program-tran=* \
733 | --progr-tra=* | --program-tr=* | --program-t=*)
734 program_transform_name="$ac_optarg" ;;
735
736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
737 | -silent | --silent | --silen | --sile | --sil)
738 silent=yes ;;
739
740 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
741 ac_prev=sbindir ;;
742 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
743 | --sbi=* | --sb=*)
744 sbindir="$ac_optarg" ;;
745
746 -sharedstatedir | --sharedstatedir | --sharedstatedi \
747 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
748 | --sharedst | --shareds | --shared | --share | --shar \
749 | --sha | --sh)
750 ac_prev=sharedstatedir ;;
751 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
752 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
753 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
754 | --sha=* | --sh=*)
755 sharedstatedir="$ac_optarg" ;;
756
757 -site | --site | --sit)
758 ac_prev=site ;;
759 -site=* | --site=* | --sit=*)
760 site="$ac_optarg" ;;
761
762 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
763 ac_prev=srcdir ;;
764 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
765 srcdir="$ac_optarg" ;;
766
767 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
768 | --syscon | --sysco | --sysc | --sys | --sy)
769 ac_prev=sysconfdir ;;
770 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
771 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
772 sysconfdir="$ac_optarg" ;;
773
774 -target | --target | --targe | --targ | --tar | --ta | --t)
775 ac_prev=target ;;
776 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
777 target="$ac_optarg" ;;
778
779 -v | -verbose | --verbose | --verbos | --verbo | --verb)
780 verbose=yes ;;
781
782 -version | --version | --versio | --versi | --vers)
783 echo "configure generated by autoconf version 2.13"
784 exit 0 ;;
785
786 -with-* | --with-*)
787 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
788 # Reject names that are not valid shell variable names.
789 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
790 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
791 fi
792 ac_package=`echo $ac_package| sed 's/-/_/g'`
793 case "$ac_option" in
794 *=*) ;;
795 *) ac_optarg=yes ;;
796 esac
797 eval "with_${ac_package}='$ac_optarg'" ;;
798
799 -without-* | --without-*)
800 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
801 # Reject names that are not valid shell variable names.
802 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
803 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
804 fi
805 ac_package=`echo $ac_package| sed 's/-/_/g'`
806 eval "with_${ac_package}=no" ;;
807
808 --x)
809 # Obsolete; use --with-x.
810 with_x=yes ;;
811
812 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
813 | --x-incl | --x-inc | --x-in | --x-i)
814 ac_prev=x_includes ;;
815 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
816 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
817 x_includes="$ac_optarg" ;;
818
819 -x-libraries | --x-libraries | --x-librarie | --x-librari \
820 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
821 ac_prev=x_libraries ;;
822 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
823 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
824 x_libraries="$ac_optarg" ;;
825
826 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
827 ;;
828
829 *)
830 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
831 echo "configure: warning: $ac_option: invalid host type" 1>&2
832 fi
833 if test "x$nonopt" != xNONE; then
834 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
835 fi
836 nonopt="$ac_option"
837 ;;
838
839 esac
840 done
841
842 if test -n "$ac_prev"; then
843 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
844 fi
845
846 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
847
848 # File descriptor usage:
849 # 0 standard input
850 # 1 file creation
851 # 2 errors and warnings
852 # 3 some systems may open it to /dev/tty
853 # 4 used on the Kubota Titan
854 # 6 checking for... messages and results
855 # 5 compiler messages saved in config.log
856 if test "$silent" = yes; then
857 exec 6>/dev/null
858 else
859 exec 6>&1
860 fi
861 exec 5>./config.log
862
863 echo "\
864 This file contains any messages produced by compilers while
865 running configure, to aid debugging if configure makes a mistake.
866 " 1>&5
867
868 # Strip out --no-create and --no-recursion so they do not pile up.
869 # Also quote any args containing shell metacharacters.
870 ac_configure_args=
871 for ac_arg
872 do
873 case "$ac_arg" in
874 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
875 | --no-cr | --no-c) ;;
876 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
877 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
878 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
879 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
880 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
881 esac
882 done
883
884 # NLS nuisances.
885 # Only set these to C if already set. These must not be set unconditionally
886 # because not all systems understand e.g. LANG=C (notably SCO).
887 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
888 # Non-C LC_CTYPE values break the ctype check.
889 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
890 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
891 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
892 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
893
894 # confdefs.h avoids OS command line length limits that DEFS can exceed.
895 rm -rf conftest* confdefs.h
896 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
897 echo > confdefs.h
898
899 # A filename unique to this package, relative to the directory that
900 # configure is in, which we can look for to find out if srcdir is correct.
901 ac_unique_file=wx-config.in
902
903 # Find the source files, if location was not specified.
904 if test -z "$srcdir"; then
905 ac_srcdir_defaulted=yes
906 # Try the directory containing this script, then its parent.
907 ac_prog=$0
908 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
909 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
910 srcdir=$ac_confdir
911 if test ! -r $srcdir/$ac_unique_file; then
912 srcdir=..
913 fi
914 else
915 ac_srcdir_defaulted=no
916 fi
917 if test ! -r $srcdir/$ac_unique_file; then
918 if test "$ac_srcdir_defaulted" = yes; then
919 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
920 else
921 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
922 fi
923 fi
924 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
925
926 # Prefer explicitly selected file to automatically selected ones.
927 if test -z "$CONFIG_SITE"; then
928 if test "x$prefix" != xNONE; then
929 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
930 else
931 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
932 fi
933 fi
934 for ac_site_file in $CONFIG_SITE; do
935 if test -r "$ac_site_file"; then
936 echo "loading site script $ac_site_file"
937 . "$ac_site_file"
938 fi
939 done
940
941 if test -r "$cache_file"; then
942 echo "loading cache $cache_file"
943 . $cache_file
944 else
945 echo "creating cache $cache_file"
946 > $cache_file
947 fi
948
949 ac_ext=c
950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
951 ac_cpp='$CPP $CPPFLAGS'
952 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
953 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
954 cross_compiling=$ac_cv_prog_cc_cross
955
956 ac_exeext=
957 ac_objext=o
958 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
959 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
960 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
961 ac_n= ac_c='
962 ' ac_t=' '
963 else
964 ac_n=-n ac_c= ac_t=
965 fi
966 else
967 ac_n= ac_c='\c' ac_t=
968 fi
969
970
971
972 ac_aux_dir=
973 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
974 if test -f $ac_dir/install-sh; then
975 ac_aux_dir=$ac_dir
976 ac_install_sh="$ac_aux_dir/install-sh -c"
977 break
978 elif test -f $ac_dir/install.sh; then
979 ac_aux_dir=$ac_dir
980 ac_install_sh="$ac_aux_dir/install.sh -c"
981 break
982 fi
983 done
984 if test -z "$ac_aux_dir"; then
985 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
986 fi
987 ac_config_guess=$ac_aux_dir/config.guess
988 ac_config_sub=$ac_aux_dir/config.sub
989 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
990
991
992 # Do some error checking and defaulting for the host and target type.
993 # The inputs are:
994 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
995 #
996 # The rules are:
997 # 1. You are not allowed to specify --host, --target, and nonopt at the
998 # same time.
999 # 2. Host defaults to nonopt.
1000 # 3. If nonopt is not specified, then host defaults to the current host,
1001 # as determined by config.guess.
1002 # 4. Target and build default to nonopt.
1003 # 5. If nonopt is not specified, then target and build default to host.
1004
1005 # The aliases save the names the user supplied, while $host etc.
1006 # will get canonicalized.
1007 case $host---$target---$nonopt in
1008 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1009 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1010 esac
1011
1012
1013 # Make sure we can run config.sub.
1014 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1015 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1016 fi
1017
1018 echo $ac_n "checking host system type""... $ac_c" 1>&6
1019 echo "configure:1020: checking host system type" >&5
1020
1021 host_alias=$host
1022 case "$host_alias" in
1023 NONE)
1024 case $nonopt in
1025 NONE)
1026 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1027 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1028 fi ;;
1029 *) host_alias=$nonopt ;;
1030 esac ;;
1031 esac
1032
1033 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1034 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1035 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1036 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1037 echo "$ac_t""$host" 1>&6
1038
1039 echo $ac_n "checking target system type""... $ac_c" 1>&6
1040 echo "configure:1041: checking target system type" >&5
1041
1042 target_alias=$target
1043 case "$target_alias" in
1044 NONE)
1045 case $nonopt in
1046 NONE) target_alias=$host_alias ;;
1047 *) target_alias=$nonopt ;;
1048 esac ;;
1049 esac
1050
1051 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1052 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1053 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1054 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1055 echo "$ac_t""$target" 1>&6
1056
1057 echo $ac_n "checking build system type""... $ac_c" 1>&6
1058 echo "configure:1059: checking build system type" >&5
1059
1060 build_alias=$build
1061 case "$build_alias" in
1062 NONE)
1063 case $nonopt in
1064 NONE) build_alias=$host_alias ;;
1065 *) build_alias=$nonopt ;;
1066 esac ;;
1067 esac
1068
1069 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1070 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1071 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1072 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1073 echo "$ac_t""$build" 1>&6
1074
1075 test "$host_alias" != "$target_alias" &&
1076 test "$program_prefix$program_suffix$program_transform_name" = \
1077 NONENONEs,x,x, &&
1078 program_prefix=${target_alias}-
1079
1080
1081
1082 WX_MAJOR_VERSION_NUMBER=2
1083 WX_MINOR_VERSION_NUMBER=5
1084 WX_RELEASE_NUMBER=0
1085
1086 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1087 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1088
1089 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1090
1091 WX_CURRENT=0
1092 WX_REVISION=0
1093 WX_AGE=0
1094
1095
1096
1097 USE_UNIX=1
1098 USE_WIN32=0
1099 USE_DOS=0
1100 USE_BEOS=0
1101 USE_MAC=0
1102
1103 USE_LINUX=
1104 USE_SGI=
1105 USE_HPUX=
1106 USE_SYSV=
1107 USE_SVR4=
1108 USE_AIX=
1109 USE_SUN=
1110 USE_SOLARIS=
1111 USE_SUNOS=
1112 USE_ALPHA=
1113 USE_OSF=
1114 USE_BSD=
1115 USE_DARWIN=
1116 USE_FREEBSD=
1117 USE_OPENBSD=
1118 USE_NETBSD=
1119 USE_VMS=
1120 USE_ULTRIX=
1121 USE_DATA_GENERAL=
1122
1123 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1124
1125 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1126
1127 DEFAULT_wxUSE_COCOA=0
1128 DEFAULT_wxUSE_GTK=0
1129 DEFAULT_wxUSE_MAC=0
1130 DEFAULT_wxUSE_MGL=0
1131 DEFAULT_wxUSE_MICROWIN=0
1132 DEFAULT_wxUSE_MOTIF=0
1133 DEFAULT_wxUSE_MSW=0
1134 DEFAULT_wxUSE_PM=0
1135 DEFAULT_wxUSE_X11=0
1136
1137 DEFAULT_DEFAULT_wxUSE_COCOA=0
1138 DEFAULT_DEFAULT_wxUSE_GTK=0
1139 DEFAULT_DEFAULT_wxUSE_MAC=0
1140 DEFAULT_DEFAULT_wxUSE_MGL=0
1141 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1142 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1143 DEFAULT_DEFAULT_wxUSE_MSW=0
1144 DEFAULT_DEFAULT_wxUSE_PM=0
1145 DEFAULT_DEFAULT_wxUSE_X11=0
1146
1147 PROGRAM_EXT=
1148 SO_SUFFIX=so
1149
1150 case "${host}" in
1151 *-hp-hpux* )
1152 USE_HPUX=1
1153 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1154 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1155 SO_SUFFIX=sl
1156 cat >> confdefs.h <<\EOF
1157 #define __HPUX__ 1
1158 EOF
1159
1160 ;;
1161 *-*-linux* )
1162 USE_LINUX=1
1163 cat >> confdefs.h <<\EOF
1164 #define __LINUX__ 1
1165 EOF
1166
1167 TMP=`uname -m`
1168 if test "x$TMP" = "xalpha"; then
1169 USE_ALPHA=1
1170 cat >> confdefs.h <<\EOF
1171 #define __ALPHA__ 1
1172 EOF
1173
1174 fi
1175 DEFAULT_DEFAULT_wxUSE_GTK=1
1176 ;;
1177 *-*-irix5* | *-*-irix6* )
1178 USE_SGI=1
1179 USE_SVR4=1
1180 cat >> confdefs.h <<\EOF
1181 #define __SGI__ 1
1182 EOF
1183
1184 cat >> confdefs.h <<\EOF
1185 #define __SVR4__ 1
1186 EOF
1187
1188 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1189 ;;
1190 *-*-solaris2* )
1191 USE_SUN=1
1192 USE_SOLARIS=1
1193 USE_SVR4=1
1194 cat >> confdefs.h <<\EOF
1195 #define __SUN__ 1
1196 EOF
1197
1198 cat >> confdefs.h <<\EOF
1199 #define __SOLARIS__ 1
1200 EOF
1201
1202 cat >> confdefs.h <<\EOF
1203 #define __SVR4__ 1
1204 EOF
1205
1206 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1207 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1208 ;;
1209 *-*-sunos4* )
1210 USE_SUN=1
1211 USE_SUNOS=1
1212 USE_BSD=1
1213 cat >> confdefs.h <<\EOF
1214 #define __SUN__ 1
1215 EOF
1216
1217 cat >> confdefs.h <<\EOF
1218 #define __SUNOS__ 1
1219 EOF
1220
1221 cat >> confdefs.h <<\EOF
1222 #define __BSD__ 1
1223 EOF
1224
1225 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1226 ;;
1227 *-*-freebsd*)
1228 USE_BSD=1
1229 USE_FREEBSD=1
1230 cat >> confdefs.h <<\EOF
1231 #define __FREEBSD__ 1
1232 EOF
1233
1234 cat >> confdefs.h <<\EOF
1235 #define __BSD__ 1
1236 EOF
1237
1238 DEFAULT_DEFAULT_wxUSE_GTK=1
1239 ;;
1240 *-*-openbsd*)
1241 USE_BSD=1
1242 USE_OPENBSD=1
1243 cat >> confdefs.h <<\EOF
1244 #define __OPENBSD__ 1
1245 EOF
1246
1247 cat >> confdefs.h <<\EOF
1248 #define __BSD__ 1
1249 EOF
1250
1251 DEFAULT_DEFAULT_wxUSE_GTK=1
1252 ;;
1253 *-*-netbsd*)
1254 USE_BSD=1
1255 USE_NETBSD=1
1256 cat >> confdefs.h <<\EOF
1257 #define __NETBSD__ 1
1258 EOF
1259
1260 cat >> confdefs.h <<\EOF
1261 #define __BSD__ 1
1262 EOF
1263
1264 DEFAULT_DEFAULT_wxUSE_GTK=1
1265 ;;
1266 *-*-osf* )
1267 USE_ALPHA=1
1268 USE_OSF=1
1269 cat >> confdefs.h <<\EOF
1270 #define __ALPHA__ 1
1271 EOF
1272
1273 cat >> confdefs.h <<\EOF
1274 #define __OSF__ 1
1275 EOF
1276
1277 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1278 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1279 ;;
1280 *-*-dgux5* )
1281 USE_ALPHA=1
1282 USE_SVR4=1
1283 cat >> confdefs.h <<\EOF
1284 #define __ALPHA__ 1
1285 EOF
1286
1287 cat >> confdefs.h <<\EOF
1288 #define __SVR4__ 1
1289 EOF
1290
1291 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1292 ;;
1293 *-*-sysv5* )
1294 USE_SYSV=1
1295 USE_SVR4=1
1296 cat >> confdefs.h <<\EOF
1297 #define __SYSV__ 1
1298 EOF
1299
1300 cat >> confdefs.h <<\EOF
1301 #define __SVR4__ 1
1302 EOF
1303
1304 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1305 ;;
1306 *-*-aix* )
1307 USE_AIX=1
1308 USE_SYSV=1
1309 USE_SVR4=1
1310 SO_SUFFIX=a
1311 cat >> confdefs.h <<\EOF
1312 #define __AIX__ 1
1313 EOF
1314
1315 cat >> confdefs.h <<\EOF
1316 #define __SYSV__ 1
1317 EOF
1318
1319 cat >> confdefs.h <<\EOF
1320 #define __SVR4__ 1
1321 EOF
1322
1323 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1324 ;;
1325
1326 *-*-cygwin* | *-*-mingw32* )
1327 SO_SUFFIX=dll
1328 PROGRAM_EXT=".exe"
1329 RESCOMP=windres
1330 DEFAULT_DEFAULT_wxUSE_MSW=1
1331 ;;
1332
1333 *-pc-msdosdjgpp )
1334 USE_UNIX=0
1335 USE_DOS=1
1336 cat >> confdefs.h <<\EOF
1337 #define __DOS__ 1
1338 EOF
1339
1340 PROGRAM_EXT=".exe"
1341 DEFAULT_DEFAULT_wxUSE_MGL=1
1342 LIBS="$LIBS -lstdc++"
1343 ;;
1344
1345 *-pc-os2_emx | *-pc-os2-emx )
1346 cat >> confdefs.h <<\EOF
1347 #define __EMX__ 1
1348 EOF
1349
1350 PROGRAM_EXT=".exe"
1351 DEFAULT_DEFAULT_wxUSE_PM=1
1352 ;;
1353
1354 powerpc-*-darwin* )
1355 USE_BSD=1
1356 USE_DARWIN=1
1357 SO_SUFFIX=dylib
1358 cat >> confdefs.h <<\EOF
1359 #define __BSD__ 1
1360 EOF
1361
1362 cat >> confdefs.h <<\EOF
1363 #define __DARWIN__ 1
1364 EOF
1365
1366 cat >> confdefs.h <<\EOF
1367 #define __POWERPC__ 1
1368 EOF
1369
1370 cat >> confdefs.h <<\EOF
1371 #define TARGET_CARBON 1
1372 EOF
1373
1374 DEFAULT_DEFAULT_wxUSE_MAC=1
1375 ;;
1376
1377 *-*-beos* )
1378 USE_BEOS=1
1379 cat >> confdefs.h <<\EOF
1380 #define __BEOS__ 1
1381 EOF
1382
1383 ;;
1384
1385 *)
1386 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1387 esac
1388
1389
1390
1391
1392 wx_arg_cache_file="configarg.cache"
1393 echo "loading argument cache $wx_arg_cache_file"
1394 rm -f ${wx_arg_cache_file}.tmp
1395 touch ${wx_arg_cache_file}.tmp
1396 touch ${wx_arg_cache_file}
1397
1398
1399 DEBUG_CONFIGURE=0
1400 if test $DEBUG_CONFIGURE = 1; then
1401 DEFAULT_wxUSE_UNIVERSAL=no
1402
1403 DEFAULT_wxUSE_NANOX=no
1404
1405 DEFAULT_wxUSE_THREADS=yes
1406
1407 DEFAULT_wxUSE_SHARED=yes
1408 DEFAULT_wxUSE_SONAME=no
1409 DEFAULT_wxUSE_OPTIMISE=no
1410 DEFAULT_wxUSE_PROFILE=no
1411 DEFAULT_wxUSE_NO_DEPS=no
1412 DEFAULT_wxUSE_NO_RTTI=no
1413 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1414 DEFAULT_wxUSE_PERMISSIVE=no
1415 DEFAULT_wxUSE_DEBUG_FLAG=yes
1416 DEFAULT_wxUSE_DEBUG_INFO=yes
1417 DEFAULT_wxUSE_DEBUG_GDB=yes
1418 DEFAULT_wxUSE_MEM_TRACING=no
1419 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1420 DEFAULT_wxUSE_DMALLOC=no
1421 DEFAULT_wxUSE_PRECOMP=no
1422 DEFAULT_wxUSE_APPLE_IEEE=no
1423
1424 DEFAULT_wxUSE_LOG=yes
1425 DEFAULT_wxUSE_LOGWINDOW=no
1426 DEFAULT_wxUSE_LOGGUI=no
1427 DEFAULT_wxUSE_LOGDIALOG=no
1428
1429 DEFAULT_wxUSE_GUI=yes
1430 DEFAULT_wxUSE_CONTROLS=no
1431
1432 DEFAULT_wxUSE_REGEX=no
1433 DEFAULT_wxUSE_ZLIB=no
1434 DEFAULT_wxUSE_LIBPNG=no
1435 DEFAULT_wxUSE_LIBJPEG=no
1436 DEFAULT_wxUSE_LIBTIFF=no
1437 DEFAULT_wxUSE_ODBC=no
1438 DEFAULT_wxUSE_OPENGL=no
1439
1440 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1441 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1442 DEFAULT_wxUSE_STD_IOSTREAM=no
1443 DEFAULT_wxUSE_CMDLINE_PARSER=no
1444 DEFAULT_wxUSE_DATETIME=no
1445 DEFAULT_wxUSE_TIMER=no
1446 DEFAULT_wxUSE_STOPWATCH=no
1447 DEFAULT_wxUSE_FILE=no
1448 DEFAULT_wxUSE_FFILE=no
1449 DEFAULT_wxUSE_TEXTBUFFER=no
1450 DEFAULT_wxUSE_TEXTFILE=no
1451 DEFAULT_wxUSE_WAVE=no
1452 DEFAULT_wxUSE_INTL=no
1453 DEFAULT_wxUSE_CONFIG=no
1454 DEFAULT_wxUSE_FONTMAP=no
1455 DEFAULT_wxUSE_STREAMS=no
1456 DEFAULT_wxUSE_SOCKETS=no
1457 DEFAULT_wxUSE_OLE=no
1458 DEFAULT_wxUSE_DATAOBJ=no
1459 DEFAULT_wxUSE_DIALUP_MANAGER=no
1460 DEFAULT_wxUSE_JOYSTICK=no
1461 DEFAULT_wxUSE_DYNLIB_CLASS=no
1462 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1463 DEFAULT_wxUSE_LONGLONG=no
1464 DEFAULT_wxUSE_GEOMETRY=no
1465
1466 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1467 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1468 DEFAULT_wxUSE_POSTSCRIPT=no
1469
1470 DEFAULT_wxUSE_X_RESOURCES=no
1471 DEFAULT_wxUSE_CLIPBOARD=no
1472 DEFAULT_wxUSE_TOOLTIPS=no
1473 DEFAULT_wxUSE_DRAG_AND_DROP=no
1474 DEFAULT_wxUSE_DRAGIMAGE=no
1475 DEFAULT_wxUSE_SPLINES=no
1476
1477 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1478 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1479 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1480
1481 DEFAULT_wxUSE_RESOURCES=no
1482 DEFAULT_wxUSE_CONSTRAINTS=no
1483 DEFAULT_wxUSE_IPC=no
1484 DEFAULT_wxUSE_HELP=no
1485 DEFAULT_wxUSE_MS_HTML_HELP=no
1486 DEFAULT_wxUSE_WXHTML_HELP=no
1487 DEFAULT_wxUSE_TREELAYOUT=no
1488 DEFAULT_wxUSE_METAFILE=no
1489 DEFAULT_wxUSE_MIMETYPE=no
1490 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1491 DEFAULT_wxUSE_PROTOCOL=no
1492 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1493 DEFAULT_wxUSE_PROTOCOL_FTP=no
1494 DEFAULT_wxUSE_PROTOCOL_FILE=no
1495 DEFAULT_wxUSE_URL=no
1496
1497 DEFAULT_wxUSE_COMMONDLGS=no
1498 DEFAULT_wxUSE_CHOICEDLG=no
1499 DEFAULT_wxUSE_COLOURDLG=no
1500 DEFAULT_wxUSE_DIRDLG=no
1501 DEFAULT_wxUSE_FILEDLG=no
1502 DEFAULT_wxUSE_FINDREPLDLG=no
1503 DEFAULT_wxUSE_FONTDLG=no
1504 DEFAULT_wxUSE_MSGDLG=no
1505 DEFAULT_wxUSE_NUMBERDLG=no
1506 DEFAULT_wxUSE_TEXTDLG=no
1507 DEFAULT_wxUSE_SPLASH=no
1508 DEFAULT_wxUSE_STARTUP_TIPS=no
1509 DEFAULT_wxUSE_PROGRESSDLG=no
1510 DEFAULT_wxUSE_WIZARDDLG=no
1511
1512 DEFAULT_wxUSE_MENUS=no
1513 DEFAULT_wxUSE_MINIFRAME=no
1514 DEFAULT_wxUSE_HTML=no
1515 DEFAULT_wxUSE_FILESYSTEM=no
1516 DEFAULT_wxUSE_FS_INET=no
1517 DEFAULT_wxUSE_FS_ZIP=no
1518 DEFAULT_wxUSE_BUSYINFO=no
1519 DEFAULT_wxUSE_ZIPSTREAM=no
1520 DEFAULT_wxUSE_VALIDATORS=no
1521
1522 DEFAULT_wxUSE_ACCEL=no
1523 DEFAULT_wxUSE_BUTTON=no
1524 DEFAULT_wxUSE_BMPBUTTON=no
1525 DEFAULT_wxUSE_CALCTRL=no
1526 DEFAULT_wxUSE_CARET=no
1527 DEFAULT_wxUSE_CHECKBOX=no
1528 DEFAULT_wxUSE_CHECKLST=no
1529 DEFAULT_wxUSE_CHOICE=no
1530 DEFAULT_wxUSE_COMBOBOX=no
1531 DEFAULT_wxUSE_DISPLAY=no
1532 DEFAULT_wxUSE_GAUGE=no
1533 DEFAULT_wxUSE_GRID=no
1534 DEFAULT_wxUSE_IMAGLIST=no
1535 DEFAULT_wxUSE_LISTBOX=no
1536 DEFAULT_wxUSE_LISTCTRL=no
1537 DEFAULT_wxUSE_NOTEBOOK=no
1538 DEFAULT_wxUSE_RADIOBOX=no
1539 DEFAULT_wxUSE_RADIOBTN=no
1540 DEFAULT_wxUSE_SASH=no
1541 DEFAULT_wxUSE_SCROLLBAR=no
1542 DEFAULT_wxUSE_SLIDER=no
1543 DEFAULT_wxUSE_SPINBTN=no
1544 DEFAULT_wxUSE_SPINCTRL=no
1545 DEFAULT_wxUSE_SPLITTER=no
1546 DEFAULT_wxUSE_STATBMP=no
1547 DEFAULT_wxUSE_STATBOX=no
1548 DEFAULT_wxUSE_STATLINE=no
1549 DEFAULT_wxUSE_STATTEXT=no
1550 DEFAULT_wxUSE_STATUSBAR=yes
1551 DEFAULT_wxUSE_TABDIALOG=no
1552 DEFAULT_wxUSE_TEXTCTRL=no
1553 DEFAULT_wxUSE_TOGGLEBTN=no
1554 DEFAULT_wxUSE_TOOLBAR=no
1555 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1556 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1557 DEFAULT_wxUSE_TREECTRL=no
1558 DEFAULT_wxUSE_POPUPWIN=no
1559 DEFAULT_wxUSE_TIPWINDOW=no
1560
1561 DEFAULT_wxUSE_UNICODE=no
1562 DEFAULT_wxUSE_UNICODE_MSLU=no
1563 DEFAULT_wxUSE_WCSRTOMBS=no
1564
1565 DEFAULT_wxUSE_PALETTE=no
1566 DEFAULT_wxUSE_IMAGE=no
1567 DEFAULT_wxUSE_GIF=no
1568 DEFAULT_wxUSE_PCX=no
1569 DEFAULT_wxUSE_PNM=no
1570 DEFAULT_wxUSE_IFF=no
1571 DEFAULT_wxUSE_XPM=no
1572 DEFAULT_wxUSE_ICO_CUR=no
1573 else
1574 DEFAULT_wxUSE_UNIVERSAL=no
1575
1576 DEFAULT_wxUSE_NANOX=no
1577
1578 DEFAULT_wxUSE_THREADS=yes
1579
1580 DEFAULT_wxUSE_SHARED=yes
1581 DEFAULT_wxUSE_SONAME=no
1582 DEFAULT_wxUSE_OPTIMISE=yes
1583 DEFAULT_wxUSE_PROFILE=no
1584 DEFAULT_wxUSE_NO_DEPS=no
1585 DEFAULT_wxUSE_NO_RTTI=no
1586 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1587 DEFAULT_wxUSE_PERMISSIVE=no
1588 DEFAULT_wxUSE_DEBUG_FLAG=no
1589 DEFAULT_wxUSE_DEBUG_INFO=no
1590 DEFAULT_wxUSE_DEBUG_GDB=no
1591 DEFAULT_wxUSE_MEM_TRACING=no
1592 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1593 DEFAULT_wxUSE_DMALLOC=no
1594 DEFAULT_wxUSE_PRECOMP=no
1595 DEFAULT_wxUSE_APPLE_IEEE=yes
1596
1597 DEFAULT_wxUSE_LOG=yes
1598 DEFAULT_wxUSE_LOGWINDOW=yes
1599 DEFAULT_wxUSE_LOGGUI=yes
1600 DEFAULT_wxUSE_LOGDIALOG=yes
1601
1602 DEFAULT_wxUSE_GUI=yes
1603
1604 DEFAULT_wxUSE_REGEX=yes
1605 DEFAULT_wxUSE_ZLIB=yes
1606 DEFAULT_wxUSE_LIBPNG=yes
1607 DEFAULT_wxUSE_LIBJPEG=yes
1608 DEFAULT_wxUSE_LIBTIFF=yes
1609 DEFAULT_wxUSE_ODBC=no
1610 DEFAULT_wxUSE_OPENGL=no
1611
1612 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1613 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1614 DEFAULT_wxUSE_STD_IOSTREAM=no
1615 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1616 DEFAULT_wxUSE_DATETIME=yes
1617 DEFAULT_wxUSE_TIMER=yes
1618 DEFAULT_wxUSE_STOPWATCH=yes
1619 DEFAULT_wxUSE_FILE=yes
1620 DEFAULT_wxUSE_FFILE=yes
1621 DEFAULT_wxUSE_TEXTBUFFER=yes
1622 DEFAULT_wxUSE_TEXTFILE=yes
1623 DEFAULT_wxUSE_WAVE=no
1624 DEFAULT_wxUSE_INTL=yes
1625 DEFAULT_wxUSE_CONFIG=yes
1626 DEFAULT_wxUSE_FONTMAP=yes
1627 DEFAULT_wxUSE_STREAMS=yes
1628 DEFAULT_wxUSE_SOCKETS=yes
1629 DEFAULT_wxUSE_OLE=yes
1630 DEFAULT_wxUSE_DATAOBJ=yes
1631 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1632 DEFAULT_wxUSE_JOYSTICK=yes
1633 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1634 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1635 DEFAULT_wxUSE_LONGLONG=yes
1636 DEFAULT_wxUSE_GEOMETRY=yes
1637
1638 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1639 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1640 DEFAULT_wxUSE_POSTSCRIPT=yes
1641
1642 DEFAULT_wxUSE_X_RESOURCES=no
1643 DEFAULT_wxUSE_CLIPBOARD=yes
1644 DEFAULT_wxUSE_TOOLTIPS=yes
1645 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1646 DEFAULT_wxUSE_DRAGIMAGE=yes
1647 DEFAULT_wxUSE_SPLINES=yes
1648
1649 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1650 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1651 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1652
1653 DEFAULT_wxUSE_RESOURCES=no
1654 DEFAULT_wxUSE_CONSTRAINTS=yes
1655 DEFAULT_wxUSE_IPC=yes
1656 DEFAULT_wxUSE_HELP=yes
1657 DEFAULT_wxUSE_MS_HTML_HELP=yes
1658 DEFAULT_wxUSE_WXHTML_HELP=yes
1659 DEFAULT_wxUSE_TREELAYOUT=yes
1660 DEFAULT_wxUSE_METAFILE=yes
1661 DEFAULT_wxUSE_MIMETYPE=yes
1662 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1663 DEFAULT_wxUSE_PROTOCOL=yes
1664 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1665 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1666 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1667 DEFAULT_wxUSE_URL=yes
1668
1669 DEFAULT_wxUSE_COMMONDLGS=yes
1670 DEFAULT_wxUSE_CHOICEDLG=yes
1671 DEFAULT_wxUSE_COLOURDLG=yes
1672 DEFAULT_wxUSE_DIRDLG=yes
1673 DEFAULT_wxUSE_FILEDLG=yes
1674 DEFAULT_wxUSE_FINDREPLDLG=yes
1675 DEFAULT_wxUSE_FONTDLG=yes
1676 DEFAULT_wxUSE_MSGDLG=yes
1677 DEFAULT_wxUSE_NUMBERDLG=yes
1678 DEFAULT_wxUSE_TEXTDLG=yes
1679 DEFAULT_wxUSE_SPLASH=yes
1680 DEFAULT_wxUSE_STARTUP_TIPS=yes
1681 DEFAULT_wxUSE_PROGRESSDLG=yes
1682 DEFAULT_wxUSE_WIZARDDLG=yes
1683
1684 DEFAULT_wxUSE_MENUS=yes
1685 DEFAULT_wxUSE_MINIFRAME=yes
1686 DEFAULT_wxUSE_HTML=yes
1687 DEFAULT_wxUSE_FILESYSTEM=yes
1688 DEFAULT_wxUSE_FS_INET=yes
1689 DEFAULT_wxUSE_FS_ZIP=yes
1690 DEFAULT_wxUSE_BUSYINFO=yes
1691 DEFAULT_wxUSE_ZIPSTREAM=yes
1692 DEFAULT_wxUSE_VALIDATORS=yes
1693
1694 DEFAULT_wxUSE_ACCEL=yes
1695 DEFAULT_wxUSE_BUTTON=yes
1696 DEFAULT_wxUSE_BMPBUTTON=yes
1697 DEFAULT_wxUSE_CALCTRL=yes
1698 DEFAULT_wxUSE_CARET=yes
1699 DEFAULT_wxUSE_CHECKBOX=yes
1700 DEFAULT_wxUSE_CHECKLST=yes
1701 DEFAULT_wxUSE_CHOICE=yes
1702 DEFAULT_wxUSE_COMBOBOX=yes
1703 DEFAULT_wxUSE_DISPLAY=no
1704 DEFAULT_wxUSE_GAUGE=yes
1705 DEFAULT_wxUSE_GRID=yes
1706 DEFAULT_wxUSE_IMAGLIST=yes
1707 DEFAULT_wxUSE_LISTBOX=yes
1708 DEFAULT_wxUSE_LISTCTRL=yes
1709 DEFAULT_wxUSE_NOTEBOOK=yes
1710 DEFAULT_wxUSE_RADIOBOX=yes
1711 DEFAULT_wxUSE_RADIOBTN=yes
1712 DEFAULT_wxUSE_SASH=yes
1713 DEFAULT_wxUSE_SCROLLBAR=yes
1714 DEFAULT_wxUSE_SLIDER=yes
1715 DEFAULT_wxUSE_SPINBTN=yes
1716 DEFAULT_wxUSE_SPINCTRL=yes
1717 DEFAULT_wxUSE_SPLITTER=yes
1718 DEFAULT_wxUSE_STATBMP=yes
1719 DEFAULT_wxUSE_STATBOX=yes
1720 DEFAULT_wxUSE_STATLINE=yes
1721 DEFAULT_wxUSE_STATTEXT=yes
1722 DEFAULT_wxUSE_STATUSBAR=yes
1723 DEFAULT_wxUSE_TABDIALOG=no
1724 DEFAULT_wxUSE_TEXTCTRL=yes
1725 DEFAULT_wxUSE_TOGGLEBTN=yes
1726 DEFAULT_wxUSE_TOOLBAR=yes
1727 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1728 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1729 DEFAULT_wxUSE_TREECTRL=yes
1730 DEFAULT_wxUSE_POPUPWIN=yes
1731 DEFAULT_wxUSE_TIPWINDOW=yes
1732
1733 DEFAULT_wxUSE_UNICODE=no
1734 DEFAULT_wxUSE_UNICODE_MSLU=yes
1735 DEFAULT_wxUSE_WCSRTOMBS=no
1736
1737 DEFAULT_wxUSE_PALETTE=yes
1738 DEFAULT_wxUSE_IMAGE=yes
1739 DEFAULT_wxUSE_GIF=yes
1740 DEFAULT_wxUSE_PCX=yes
1741 DEFAULT_wxUSE_IFF=no
1742 DEFAULT_wxUSE_PNM=yes
1743 DEFAULT_wxUSE_XPM=yes
1744 DEFAULT_wxUSE_ICO_CUR=yes
1745 fi
1746
1747
1748
1749 for toolkit in `echo $ALL_TOOLKITS`; do
1750 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1751 if test "x$LINE" != "x" ; then
1752 has_toolkit_in_cache=1
1753 eval "DEFAULT_$LINE"
1754 eval "CACHE_$toolkit=1"
1755 fi
1756 done
1757
1758
1759
1760 enablestring=
1761 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1762 echo "configure:1763: checking for --${enablestring:-enable}-gui" >&5
1763 no_cache=0
1764 # Check whether --enable-gui or --disable-gui was given.
1765 if test "${enable_gui+set}" = set; then
1766 enableval="$enable_gui"
1767
1768 if test "$enableval" = yes; then
1769 ac_cv_use_gui='wxUSE_GUI=yes'
1770 else
1771 ac_cv_use_gui='wxUSE_GUI=no'
1772 fi
1773
1774 else
1775
1776 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1777 if test "x$LINE" != x ; then
1778 eval "DEFAULT_$LINE"
1779 else
1780 no_cache=1
1781 fi
1782
1783 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1784
1785 fi
1786
1787
1788 eval "$ac_cv_use_gui"
1789 if test "$no_cache" != 1; then
1790 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1791 fi
1792
1793 if test "$wxUSE_GUI" = yes; then
1794 echo "$ac_t""yes" 1>&6
1795 else
1796 echo "$ac_t""no" 1>&6
1797 fi
1798
1799
1800 if test "$wxUSE_GUI" = "yes"; then
1801
1802
1803 enablestring=
1804 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1805 echo "configure:1806: checking for --${enablestring:-enable}-universal" >&5
1806 no_cache=0
1807 # Check whether --enable-universal or --disable-universal was given.
1808 if test "${enable_universal+set}" = set; then
1809 enableval="$enable_universal"
1810
1811 if test "$enableval" = yes; then
1812 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1813 else
1814 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1815 fi
1816
1817 else
1818
1819 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1820 if test "x$LINE" != x ; then
1821 eval "DEFAULT_$LINE"
1822 else
1823 no_cache=1
1824 fi
1825
1826 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1827
1828 fi
1829
1830
1831 eval "$ac_cv_use_universal"
1832 if test "$no_cache" != 1; then
1833 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1834 fi
1835
1836 if test "$wxUSE_UNIVERSAL" = yes; then
1837 echo "$ac_t""yes" 1>&6
1838 else
1839 echo "$ac_t""no" 1>&6
1840 fi
1841
1842 # Check whether --with-gtk or --without-gtk was given.
1843 if test "${with_gtk+set}" = set; then
1844 withval="$with_gtk"
1845 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1846 fi
1847
1848 # Check whether --with-motif or --without-motif was given.
1849 if test "${with_motif+set}" = set; then
1850 withval="$with_motif"
1851 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1852 fi
1853
1854 # Check whether --with-mac or --without-mac was given.
1855 if test "${with_mac+set}" = set; then
1856 withval="$with_mac"
1857 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1858 fi
1859
1860 # Check whether --with-cocoa or --without-cocoa was given.
1861 if test "${with_cocoa+set}" = set; then
1862 withval="$with_cocoa"
1863 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1864 fi
1865
1866 # Check whether --with-wine or --without-wine was given.
1867 if test "${with_wine+set}" = set; then
1868 withval="$with_wine"
1869 wxUSE_WINE="$withval" CACHE_WINE=1
1870 fi
1871
1872 # Check whether --with-msw or --without-msw was given.
1873 if test "${with_msw+set}" = set; then
1874 withval="$with_msw"
1875 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1876 fi
1877
1878 # Check whether --with-pm or --without-pm was given.
1879 if test "${with_pm+set}" = set; then
1880 withval="$with_pm"
1881 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1882 fi
1883
1884 # Check whether --with-mgl or --without-mgl was given.
1885 if test "${with_mgl+set}" = set; then
1886 withval="$with_mgl"
1887 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1888 fi
1889
1890 # Check whether --with-microwin or --without-microwin was given.
1891 if test "${with_microwin+set}" = set; then
1892 withval="$with_microwin"
1893 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1894 fi
1895
1896 # Check whether --with-x11 or --without-x11 was given.
1897 if test "${with_x11+set}" = set; then
1898 withval="$with_x11"
1899 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1900 fi
1901
1902
1903 enablestring=
1904 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1905 echo "configure:1906: checking for --${enablestring:-enable}-nanox" >&5
1906 no_cache=0
1907 # Check whether --enable-nanox or --disable-nanox was given.
1908 if test "${enable_nanox+set}" = set; then
1909 enableval="$enable_nanox"
1910
1911 if test "$enableval" = yes; then
1912 ac_cv_use_nanox='wxUSE_NANOX=yes'
1913 else
1914 ac_cv_use_nanox='wxUSE_NANOX=no'
1915 fi
1916
1917 else
1918
1919 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1920 if test "x$LINE" != x ; then
1921 eval "DEFAULT_$LINE"
1922 else
1923 no_cache=1
1924 fi
1925
1926 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1927
1928 fi
1929
1930
1931 eval "$ac_cv_use_nanox"
1932 if test "$no_cache" != 1; then
1933 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1934 fi
1935
1936 if test "$wxUSE_NANOX" = yes; then
1937 echo "$ac_t""yes" 1>&6
1938 else
1939 echo "$ac_t""no" 1>&6
1940 fi
1941
1942
1943
1944 enablestring=
1945 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1946 echo "configure:1947: checking for --${enablestring:-enable}-gtk2" >&5
1947 no_cache=0
1948 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1949 if test "${enable_gtk2+set}" = set; then
1950 enableval="$enable_gtk2"
1951
1952 if test "$enableval" = yes; then
1953 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1954 else
1955 ac_cv_use_gtk2='wxUSE_GTK2=no'
1956 fi
1957
1958 else
1959
1960 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1961 if test "x$LINE" != x ; then
1962 eval "DEFAULT_$LINE"
1963 else
1964 no_cache=1
1965 fi
1966
1967 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1968
1969 fi
1970
1971
1972 eval "$ac_cv_use_gtk2"
1973 if test "$no_cache" != 1; then
1974 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1975 fi
1976
1977 if test "$wxUSE_GTK2" = yes; then
1978 echo "$ac_t""yes" 1>&6
1979 else
1980 echo "$ac_t""no" 1>&6
1981 fi
1982
1983
1984
1985 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1986 echo "configure:1987: checking for --with-libpng" >&5
1987 no_cache=0
1988 # Check whether --with-libpng or --without-libpng was given.
1989 if test "${with_libpng+set}" = set; then
1990 withval="$with_libpng"
1991
1992 if test "$withval" = yes; then
1993 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1994 elif test "$withval" = no; then
1995 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1996 elif test "$withval" = sys; then
1997 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1998 elif test "$withval" = builtin; then
1999 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2000 else
2001 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2002 fi
2003
2004 else
2005
2006 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2007 if test "x$LINE" != x ; then
2008 eval "DEFAULT_$LINE"
2009 else
2010 no_cache=1
2011 fi
2012
2013 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2014
2015 fi
2016
2017
2018 eval "$ac_cv_use_libpng"
2019 if test "$no_cache" != 1; then
2020 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2021 fi
2022
2023 if test "$wxUSE_LIBPNG" = yes; then
2024 echo "$ac_t""yes" 1>&6
2025 elif test "$wxUSE_LIBPNG" = no; then
2026 echo "$ac_t""no" 1>&6
2027 elif test "$wxUSE_LIBPNG" = sys; then
2028 echo "$ac_t""system version" 1>&6
2029 elif test "$wxUSE_LIBPNG" = builtin; then
2030 echo "$ac_t""builtin version" 1>&6
2031 else
2032 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2033 fi
2034
2035
2036 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2037 echo "configure:2038: checking for --with-libjpeg" >&5
2038 no_cache=0
2039 # Check whether --with-libjpeg or --without-libjpeg was given.
2040 if test "${with_libjpeg+set}" = set; then
2041 withval="$with_libjpeg"
2042
2043 if test "$withval" = yes; then
2044 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2045 elif test "$withval" = no; then
2046 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2047 elif test "$withval" = sys; then
2048 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2049 elif test "$withval" = builtin; then
2050 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2051 else
2052 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2053 fi
2054
2055 else
2056
2057 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2058 if test "x$LINE" != x ; then
2059 eval "DEFAULT_$LINE"
2060 else
2061 no_cache=1
2062 fi
2063
2064 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2065
2066 fi
2067
2068
2069 eval "$ac_cv_use_libjpeg"
2070 if test "$no_cache" != 1; then
2071 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2072 fi
2073
2074 if test "$wxUSE_LIBJPEG" = yes; then
2075 echo "$ac_t""yes" 1>&6
2076 elif test "$wxUSE_LIBJPEG" = no; then
2077 echo "$ac_t""no" 1>&6
2078 elif test "$wxUSE_LIBJPEG" = sys; then
2079 echo "$ac_t""system version" 1>&6
2080 elif test "$wxUSE_LIBJPEG" = builtin; then
2081 echo "$ac_t""builtin version" 1>&6
2082 else
2083 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2084 fi
2085
2086
2087 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2088 echo "configure:2089: checking for --with-libtiff" >&5
2089 no_cache=0
2090 # Check whether --with-libtiff or --without-libtiff was given.
2091 if test "${with_libtiff+set}" = set; then
2092 withval="$with_libtiff"
2093
2094 if test "$withval" = yes; then
2095 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2096 elif test "$withval" = no; then
2097 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2098 elif test "$withval" = sys; then
2099 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2100 elif test "$withval" = builtin; then
2101 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2102 else
2103 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2104 fi
2105
2106 else
2107
2108 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2109 if test "x$LINE" != x ; then
2110 eval "DEFAULT_$LINE"
2111 else
2112 no_cache=1
2113 fi
2114
2115 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2116
2117 fi
2118
2119
2120 eval "$ac_cv_use_libtiff"
2121 if test "$no_cache" != 1; then
2122 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2123 fi
2124
2125 if test "$wxUSE_LIBTIFF" = yes; then
2126 echo "$ac_t""yes" 1>&6
2127 elif test "$wxUSE_LIBTIFF" = no; then
2128 echo "$ac_t""no" 1>&6
2129 elif test "$wxUSE_LIBTIFF" = sys; then
2130 echo "$ac_t""system version" 1>&6
2131 elif test "$wxUSE_LIBTIFF" = builtin; then
2132 echo "$ac_t""builtin version" 1>&6
2133 else
2134 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2135 fi
2136
2137
2138 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2139 echo "configure:2140: checking for --with-opengl" >&5
2140 no_cache=0
2141 # Check whether --with-opengl or --without-opengl was given.
2142 if test "${with_opengl+set}" = set; then
2143 withval="$with_opengl"
2144
2145 if test "$withval" = yes; then
2146 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2147 else
2148 ac_cv_use_opengl='wxUSE_OPENGL=no'
2149 fi
2150
2151 else
2152
2153 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2154 if test "x$LINE" != x ; then
2155 eval "DEFAULT_$LINE"
2156 else
2157 no_cache=1
2158 fi
2159
2160 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2161
2162 fi
2163
2164
2165 eval "$ac_cv_use_opengl"
2166 if test "$no_cache" != 1; then
2167 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2168 fi
2169
2170 if test "$wxUSE_OPENGL" = yes; then
2171 echo "$ac_t""yes" 1>&6
2172 else
2173 echo "$ac_t""no" 1>&6
2174 fi
2175
2176
2177 fi
2178
2179
2180 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2181 echo "configure:2182: checking for --with-dmalloc" >&5
2182 no_cache=0
2183 # Check whether --with-dmalloc or --without-dmalloc was given.
2184 if test "${with_dmalloc+set}" = set; then
2185 withval="$with_dmalloc"
2186
2187 if test "$withval" = yes; then
2188 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2189 else
2190 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2191 fi
2192
2193 else
2194
2195 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2196 if test "x$LINE" != x ; then
2197 eval "DEFAULT_$LINE"
2198 else
2199 no_cache=1
2200 fi
2201
2202 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2203
2204 fi
2205
2206
2207 eval "$ac_cv_use_dmalloc"
2208 if test "$no_cache" != 1; then
2209 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2210 fi
2211
2212 if test "$wxUSE_DMALLOC" = yes; then
2213 echo "$ac_t""yes" 1>&6
2214 else
2215 echo "$ac_t""no" 1>&6
2216 fi
2217
2218
2219 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2220 echo "configure:2221: checking for --with-regex" >&5
2221 no_cache=0
2222 # Check whether --with-regex or --without-regex was given.
2223 if test "${with_regex+set}" = set; then
2224 withval="$with_regex"
2225
2226 if test "$withval" = yes; then
2227 ac_cv_use_regex='wxUSE_REGEX=yes'
2228 elif test "$withval" = no; then
2229 ac_cv_use_regex='wxUSE_REGEX=no'
2230 elif test "$withval" = sys; then
2231 ac_cv_use_regex='wxUSE_REGEX=sys'
2232 elif test "$withval" = builtin; then
2233 ac_cv_use_regex='wxUSE_REGEX=builtin'
2234 else
2235 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2236 fi
2237
2238 else
2239
2240 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2241 if test "x$LINE" != x ; then
2242 eval "DEFAULT_$LINE"
2243 else
2244 no_cache=1
2245 fi
2246
2247 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2248
2249 fi
2250
2251
2252 eval "$ac_cv_use_regex"
2253 if test "$no_cache" != 1; then
2254 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2255 fi
2256
2257 if test "$wxUSE_REGEX" = yes; then
2258 echo "$ac_t""yes" 1>&6
2259 elif test "$wxUSE_REGEX" = no; then
2260 echo "$ac_t""no" 1>&6
2261 elif test "$wxUSE_REGEX" = sys; then
2262 echo "$ac_t""system version" 1>&6
2263 elif test "$wxUSE_REGEX" = builtin; then
2264 echo "$ac_t""builtin version" 1>&6
2265 else
2266 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2267 fi
2268
2269
2270 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2271 echo "configure:2272: checking for --with-zlib" >&5
2272 no_cache=0
2273 # Check whether --with-zlib or --without-zlib was given.
2274 if test "${with_zlib+set}" = set; then
2275 withval="$with_zlib"
2276
2277 if test "$withval" = yes; then
2278 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2279 elif test "$withval" = no; then
2280 ac_cv_use_zlib='wxUSE_ZLIB=no'
2281 elif test "$withval" = sys; then
2282 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2283 elif test "$withval" = builtin; then
2284 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2285 else
2286 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2287 fi
2288
2289 else
2290
2291 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2292 if test "x$LINE" != x ; then
2293 eval "DEFAULT_$LINE"
2294 else
2295 no_cache=1
2296 fi
2297
2298 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2299
2300 fi
2301
2302
2303 eval "$ac_cv_use_zlib"
2304 if test "$no_cache" != 1; then
2305 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2306 fi
2307
2308 if test "$wxUSE_ZLIB" = yes; then
2309 echo "$ac_t""yes" 1>&6
2310 elif test "$wxUSE_ZLIB" = no; then
2311 echo "$ac_t""no" 1>&6
2312 elif test "$wxUSE_ZLIB" = sys; then
2313 echo "$ac_t""system version" 1>&6
2314 elif test "$wxUSE_ZLIB" = builtin; then
2315 echo "$ac_t""builtin version" 1>&6
2316 else
2317 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2318 fi
2319
2320
2321 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2322 echo "configure:2323: checking for --with-odbc" >&5
2323 no_cache=0
2324 # Check whether --with-odbc or --without-odbc was given.
2325 if test "${with_odbc+set}" = set; then
2326 withval="$with_odbc"
2327
2328 if test "$withval" = yes; then
2329 ac_cv_use_odbc='wxUSE_ODBC=yes'
2330 else
2331 ac_cv_use_odbc='wxUSE_ODBC=no'
2332 fi
2333
2334 else
2335
2336 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2337 if test "x$LINE" != x ; then
2338 eval "DEFAULT_$LINE"
2339 else
2340 no_cache=1
2341 fi
2342
2343 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2344
2345 fi
2346
2347
2348 eval "$ac_cv_use_odbc"
2349 if test "$no_cache" != 1; then
2350 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2351 fi
2352
2353 if test "$wxUSE_ODBC" = yes; then
2354 echo "$ac_t""yes" 1>&6
2355 else
2356 echo "$ac_t""no" 1>&6
2357 fi
2358
2359
2360
2361
2362 enablestring=
2363 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2364 echo "configure:2365: checking for --${enablestring:-enable}-shared" >&5
2365 no_cache=0
2366 # Check whether --enable-shared or --disable-shared was given.
2367 if test "${enable_shared+set}" = set; then
2368 enableval="$enable_shared"
2369
2370 if test "$enableval" = yes; then
2371 ac_cv_use_shared='wxUSE_SHARED=yes'
2372 else
2373 ac_cv_use_shared='wxUSE_SHARED=no'
2374 fi
2375
2376 else
2377
2378 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2379 if test "x$LINE" != x ; then
2380 eval "DEFAULT_$LINE"
2381 else
2382 no_cache=1
2383 fi
2384
2385 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2386
2387 fi
2388
2389
2390 eval "$ac_cv_use_shared"
2391 if test "$no_cache" != 1; then
2392 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2393 fi
2394
2395 if test "$wxUSE_SHARED" = yes; then
2396 echo "$ac_t""yes" 1>&6
2397 else
2398 echo "$ac_t""no" 1>&6
2399 fi
2400
2401
2402 enablestring=
2403 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2404 echo "configure:2405: checking for --${enablestring:-enable}-soname" >&5
2405 no_cache=0
2406 # Check whether --enable-soname or --disable-soname was given.
2407 if test "${enable_soname+set}" = set; then
2408 enableval="$enable_soname"
2409
2410 if test "$enableval" = yes; then
2411 ac_cv_use_soname='wxUSE_SONAME=yes'
2412 else
2413 ac_cv_use_soname='wxUSE_SONAME=no'
2414 fi
2415
2416 else
2417
2418 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2419 if test "x$LINE" != x ; then
2420 eval "DEFAULT_$LINE"
2421 else
2422 no_cache=1
2423 fi
2424
2425 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2426
2427 fi
2428
2429
2430 eval "$ac_cv_use_soname"
2431 if test "$no_cache" != 1; then
2432 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2433 fi
2434
2435 if test "$wxUSE_SONAME" = yes; then
2436 echo "$ac_t""yes" 1>&6
2437 else
2438 echo "$ac_t""no" 1>&6
2439 fi
2440
2441
2442 enablestring=
2443 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2444 echo "configure:2445: checking for --${enablestring:-enable}-optimise" >&5
2445 no_cache=0
2446 # Check whether --enable-optimise or --disable-optimise was given.
2447 if test "${enable_optimise+set}" = set; then
2448 enableval="$enable_optimise"
2449
2450 if test "$enableval" = yes; then
2451 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2452 else
2453 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2454 fi
2455
2456 else
2457
2458 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2459 if test "x$LINE" != x ; then
2460 eval "DEFAULT_$LINE"
2461 else
2462 no_cache=1
2463 fi
2464
2465 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2466
2467 fi
2468
2469
2470 eval "$ac_cv_use_optimise"
2471 if test "$no_cache" != 1; then
2472 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2473 fi
2474
2475 if test "$wxUSE_OPTIMISE" = yes; then
2476 echo "$ac_t""yes" 1>&6
2477 else
2478 echo "$ac_t""no" 1>&6
2479 fi
2480
2481
2482 enablestring=
2483 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2484 echo "configure:2485: checking for --${enablestring:-enable}-debug" >&5
2485 no_cache=0
2486 # Check whether --enable-debug or --disable-debug was given.
2487 if test "${enable_debug+set}" = set; then
2488 enableval="$enable_debug"
2489
2490 if test "$enableval" = yes; then
2491 ac_cv_use_debug='wxUSE_DEBUG=yes'
2492 else
2493 ac_cv_use_debug='wxUSE_DEBUG=no'
2494 fi
2495
2496 else
2497
2498 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2499 if test "x$LINE" != x ; then
2500 eval "DEFAULT_$LINE"
2501 else
2502 no_cache=1
2503 fi
2504
2505 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2506
2507 fi
2508
2509
2510 eval "$ac_cv_use_debug"
2511 if test "$no_cache" != 1; then
2512 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2513 fi
2514
2515 if test "$wxUSE_DEBUG" = yes; then
2516 echo "$ac_t""yes" 1>&6
2517 else
2518 echo "$ac_t""no" 1>&6
2519 fi
2520
2521
2522
2523 enablestring=
2524 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2525 echo "configure:2526: checking for --${enablestring:-enable}-precomp" >&5
2526 no_cache=0
2527 # Check whether --enable-precomp or --disable-precomp was given.
2528 if test "${enable_precomp+set}" = set; then
2529 enableval="$enable_precomp"
2530
2531 if test "$enableval" = yes; then
2532 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2533 else
2534 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2535 fi
2536
2537 else
2538
2539 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2540 if test "x$LINE" != x ; then
2541 eval "DEFAULT_$LINE"
2542 else
2543 no_cache=1
2544 fi
2545
2546 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2547
2548 fi
2549
2550
2551 eval "$ac_cv_use_precomp"
2552 if test "$no_cache" != 1; then
2553 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2554 fi
2555
2556 if test "$wxUSE_PRECOMP" = yes; then
2557 echo "$ac_t""yes" 1>&6
2558 else
2559 echo "$ac_t""no" 1>&6
2560 fi
2561
2562
2563 if test "$wxUSE_DEBUG" = "yes"; then
2564 DEFAULT_wxUSE_DEBUG_FLAG=yes
2565 DEFAULT_wxUSE_DEBUG_INFO=yes
2566 elif test "$wxUSE_DEBUG" = "no"; then
2567 DEFAULT_wxUSE_DEBUG_FLAG=no
2568 DEFAULT_wxUSE_DEBUG_INFO=no
2569 fi
2570
2571
2572 enablestring=
2573 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2574 echo "configure:2575: checking for --${enablestring:-enable}-debug_flag" >&5
2575 no_cache=0
2576 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2577 if test "${enable_debug_flag+set}" = set; then
2578 enableval="$enable_debug_flag"
2579
2580 if test "$enableval" = yes; then
2581 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2582 else
2583 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2584 fi
2585
2586 else
2587
2588 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2596
2597 fi
2598
2599
2600 eval "$ac_cv_use_debug_flag"
2601 if test "$no_cache" != 1; then
2602 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2603 fi
2604
2605 if test "$wxUSE_DEBUG_FLAG" = yes; then
2606 echo "$ac_t""yes" 1>&6
2607 else
2608 echo "$ac_t""no" 1>&6
2609 fi
2610
2611
2612 enablestring=
2613 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2614 echo "configure:2615: checking for --${enablestring:-enable}-debug_info" >&5
2615 no_cache=0
2616 # Check whether --enable-debug_info or --disable-debug_info was given.
2617 if test "${enable_debug_info+set}" = set; then
2618 enableval="$enable_debug_info"
2619
2620 if test "$enableval" = yes; then
2621 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2622 else
2623 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2624 fi
2625
2626 else
2627
2628 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2629 if test "x$LINE" != x ; then
2630 eval "DEFAULT_$LINE"
2631 else
2632 no_cache=1
2633 fi
2634
2635 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2636
2637 fi
2638
2639
2640 eval "$ac_cv_use_debug_info"
2641 if test "$no_cache" != 1; then
2642 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2643 fi
2644
2645 if test "$wxUSE_DEBUG_INFO" = yes; then
2646 echo "$ac_t""yes" 1>&6
2647 else
2648 echo "$ac_t""no" 1>&6
2649 fi
2650
2651
2652 enablestring=
2653 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2654 echo "configure:2655: checking for --${enablestring:-enable}-debug_gdb" >&5
2655 no_cache=0
2656 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2657 if test "${enable_debug_gdb+set}" = set; then
2658 enableval="$enable_debug_gdb"
2659
2660 if test "$enableval" = yes; then
2661 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2662 else
2663 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2664 fi
2665
2666 else
2667
2668 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2669 if test "x$LINE" != x ; then
2670 eval "DEFAULT_$LINE"
2671 else
2672 no_cache=1
2673 fi
2674
2675 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2676
2677 fi
2678
2679
2680 eval "$ac_cv_use_debug_gdb"
2681 if test "$no_cache" != 1; then
2682 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2683 fi
2684
2685 if test "$wxUSE_DEBUG_GDB" = yes; then
2686 echo "$ac_t""yes" 1>&6
2687 else
2688 echo "$ac_t""no" 1>&6
2689 fi
2690
2691
2692 enablestring=
2693 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2694 echo "configure:2695: checking for --${enablestring:-enable}-debug_cntxt" >&5
2695 no_cache=0
2696 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2697 if test "${enable_debug_cntxt+set}" = set; then
2698 enableval="$enable_debug_cntxt"
2699
2700 if test "$enableval" = yes; then
2701 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2702 else
2703 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2704 fi
2705
2706 else
2707
2708 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2709 if test "x$LINE" != x ; then
2710 eval "DEFAULT_$LINE"
2711 else
2712 no_cache=1
2713 fi
2714
2715 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2716
2717 fi
2718
2719
2720 eval "$ac_cv_use_debug_cntxt"
2721 if test "$no_cache" != 1; then
2722 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2723 fi
2724
2725 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2726 echo "$ac_t""yes" 1>&6
2727 else
2728 echo "$ac_t""no" 1>&6
2729 fi
2730
2731
2732 enablestring=
2733 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2734 echo "configure:2735: checking for --${enablestring:-enable}-mem_tracing" >&5
2735 no_cache=0
2736 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2737 if test "${enable_mem_tracing+set}" = set; then
2738 enableval="$enable_mem_tracing"
2739
2740 if test "$enableval" = yes; then
2741 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2742 else
2743 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2744 fi
2745
2746 else
2747
2748 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2749 if test "x$LINE" != x ; then
2750 eval "DEFAULT_$LINE"
2751 else
2752 no_cache=1
2753 fi
2754
2755 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2756
2757 fi
2758
2759
2760 eval "$ac_cv_use_mem_tracing"
2761 if test "$no_cache" != 1; then
2762 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2763 fi
2764
2765 if test "$wxUSE_MEM_TRACING" = yes; then
2766 echo "$ac_t""yes" 1>&6
2767 else
2768 echo "$ac_t""no" 1>&6
2769 fi
2770
2771
2772 enablestring=
2773 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2774 echo "configure:2775: checking for --${enablestring:-enable}-profile" >&5
2775 no_cache=0
2776 # Check whether --enable-profile or --disable-profile was given.
2777 if test "${enable_profile+set}" = set; then
2778 enableval="$enable_profile"
2779
2780 if test "$enableval" = yes; then
2781 ac_cv_use_profile='wxUSE_PROFILE=yes'
2782 else
2783 ac_cv_use_profile='wxUSE_PROFILE=no'
2784 fi
2785
2786 else
2787
2788 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2789 if test "x$LINE" != x ; then
2790 eval "DEFAULT_$LINE"
2791 else
2792 no_cache=1
2793 fi
2794
2795 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2796
2797 fi
2798
2799
2800 eval "$ac_cv_use_profile"
2801 if test "$no_cache" != 1; then
2802 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2803 fi
2804
2805 if test "$wxUSE_PROFILE" = yes; then
2806 echo "$ac_t""yes" 1>&6
2807 else
2808 echo "$ac_t""no" 1>&6
2809 fi
2810
2811
2812 enablestring=
2813 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2814 echo "configure:2815: checking for --${enablestring:-enable}-no_rtti" >&5
2815 no_cache=0
2816 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2817 if test "${enable_no_rtti+set}" = set; then
2818 enableval="$enable_no_rtti"
2819
2820 if test "$enableval" = yes; then
2821 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2822 else
2823 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2824 fi
2825
2826 else
2827
2828 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2829 if test "x$LINE" != x ; then
2830 eval "DEFAULT_$LINE"
2831 else
2832 no_cache=1
2833 fi
2834
2835 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2836
2837 fi
2838
2839
2840 eval "$ac_cv_use_no_rtti"
2841 if test "$no_cache" != 1; then
2842 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2843 fi
2844
2845 if test "$wxUSE_NO_RTTI" = yes; then
2846 echo "$ac_t""yes" 1>&6
2847 else
2848 echo "$ac_t""no" 1>&6
2849 fi
2850
2851
2852 enablestring=
2853 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2854 echo "configure:2855: checking for --${enablestring:-enable}-no_exceptions" >&5
2855 no_cache=0
2856 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2857 if test "${enable_no_exceptions+set}" = set; then
2858 enableval="$enable_no_exceptions"
2859
2860 if test "$enableval" = yes; then
2861 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2862 else
2863 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2864 fi
2865
2866 else
2867
2868 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2876
2877 fi
2878
2879
2880 eval "$ac_cv_use_no_exceptions"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2886 echo "$ac_t""yes" 1>&6
2887 else
2888 echo "$ac_t""no" 1>&6
2889 fi
2890
2891
2892 enablestring=
2893 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2894 echo "configure:2895: checking for --${enablestring:-enable}-permissive" >&5
2895 no_cache=0
2896 # Check whether --enable-permissive or --disable-permissive was given.
2897 if test "${enable_permissive+set}" = set; then
2898 enableval="$enable_permissive"
2899
2900 if test "$enableval" = yes; then
2901 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2902 else
2903 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2904 fi
2905
2906 else
2907
2908 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2909 if test "x$LINE" != x ; then
2910 eval "DEFAULT_$LINE"
2911 else
2912 no_cache=1
2913 fi
2914
2915 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2916
2917 fi
2918
2919
2920 eval "$ac_cv_use_permissive"
2921 if test "$no_cache" != 1; then
2922 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2923 fi
2924
2925 if test "$wxUSE_PERMISSIVE" = yes; then
2926 echo "$ac_t""yes" 1>&6
2927 else
2928 echo "$ac_t""no" 1>&6
2929 fi
2930
2931
2932 enablestring=
2933 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2934 echo "configure:2935: checking for --${enablestring:-enable}-no_deps" >&5
2935 no_cache=0
2936 # Check whether --enable-no_deps or --disable-no_deps was given.
2937 if test "${enable_no_deps+set}" = set; then
2938 enableval="$enable_no_deps"
2939
2940 if test "$enableval" = yes; then
2941 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2942 else
2943 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2944 fi
2945
2946 else
2947
2948 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2949 if test "x$LINE" != x ; then
2950 eval "DEFAULT_$LINE"
2951 else
2952 no_cache=1
2953 fi
2954
2955 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2956
2957 fi
2958
2959
2960 eval "$ac_cv_use_no_deps"
2961 if test "$no_cache" != 1; then
2962 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2963 fi
2964
2965 if test "$wxUSE_NO_DEPS" = yes; then
2966 echo "$ac_t""yes" 1>&6
2967 else
2968 echo "$ac_t""no" 1>&6
2969 fi
2970
2971
2972
2973 enablestring=
2974 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2975 echo "configure:2976: checking for --${enablestring:-enable}-compat20" >&5
2976 no_cache=0
2977 # Check whether --enable-compat20 or --disable-compat20 was given.
2978 if test "${enable_compat20+set}" = set; then
2979 enableval="$enable_compat20"
2980
2981 if test "$enableval" = yes; then
2982 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2983 else
2984 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2985 fi
2986
2987 else
2988
2989 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2990 if test "x$LINE" != x ; then
2991 eval "DEFAULT_$LINE"
2992 else
2993 no_cache=1
2994 fi
2995
2996 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2997
2998 fi
2999
3000
3001 eval "$ac_cv_use_compat20"
3002 if test "$no_cache" != 1; then
3003 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3004 fi
3005
3006 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3007 echo "$ac_t""yes" 1>&6
3008 else
3009 echo "$ac_t""no" 1>&6
3010 fi
3011
3012
3013 enablestring=
3014 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3015 echo "configure:3016: checking for --${enablestring:-enable}-compat22" >&5
3016 no_cache=0
3017 # Check whether --enable-compat22 or --disable-compat22 was given.
3018 if test "${enable_compat22+set}" = set; then
3019 enableval="$enable_compat22"
3020
3021 if test "$enableval" = yes; then
3022 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3023 else
3024 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3025 fi
3026
3027 else
3028
3029 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3030 if test "x$LINE" != x ; then
3031 eval "DEFAULT_$LINE"
3032 else
3033 no_cache=1
3034 fi
3035
3036 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3037
3038 fi
3039
3040
3041 eval "$ac_cv_use_compat22"
3042 if test "$no_cache" != 1; then
3043 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3044 fi
3045
3046 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3047 echo "$ac_t""yes" 1>&6
3048 else
3049 echo "$ac_t""no" 1>&6
3050 fi
3051
3052
3053 enablestring=disable
3054 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3055 echo "configure:3056: checking for --${enablestring:-enable}-compat24" >&5
3056 no_cache=0
3057 # Check whether --enable-compat24 or --disable-compat24 was given.
3058 if test "${enable_compat24+set}" = set; then
3059 enableval="$enable_compat24"
3060
3061 if test "$enableval" = yes; then
3062 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3063 else
3064 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3065 fi
3066
3067 else
3068
3069 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3070 if test "x$LINE" != x ; then
3071 eval "DEFAULT_$LINE"
3072 else
3073 no_cache=1
3074 fi
3075
3076 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3077
3078 fi
3079
3080
3081 eval "$ac_cv_use_compat24"
3082 if test "$no_cache" != 1; then
3083 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3084 fi
3085
3086 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3087 echo "$ac_t""yes" 1>&6
3088 else
3089 echo "$ac_t""no" 1>&6
3090 fi
3091
3092
3093 # Check whether --enable-rpath or --disable-rpath was given.
3094 if test "${enable_rpath+set}" = set; then
3095 enableval="$enable_rpath"
3096 wxRPATH_DIR="$enableval"
3097 fi
3098
3099
3100 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3101 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3102 fi
3103
3104
3105
3106
3107 enablestring=
3108 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3109 echo "configure:3110: checking for --${enablestring:-enable}-intl" >&5
3110 no_cache=0
3111 # Check whether --enable-intl or --disable-intl was given.
3112 if test "${enable_intl+set}" = set; then
3113 enableval="$enable_intl"
3114
3115 if test "$enableval" = yes; then
3116 ac_cv_use_intl='wxUSE_INTL=yes'
3117 else
3118 ac_cv_use_intl='wxUSE_INTL=no'
3119 fi
3120
3121 else
3122
3123 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3124 if test "x$LINE" != x ; then
3125 eval "DEFAULT_$LINE"
3126 else
3127 no_cache=1
3128 fi
3129
3130 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3131
3132 fi
3133
3134
3135 eval "$ac_cv_use_intl"
3136 if test "$no_cache" != 1; then
3137 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3138 fi
3139
3140 if test "$wxUSE_INTL" = yes; then
3141 echo "$ac_t""yes" 1>&6
3142 else
3143 echo "$ac_t""no" 1>&6
3144 fi
3145
3146
3147 enablestring=
3148 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3149 echo "configure:3150: checking for --${enablestring:-enable}-config" >&5
3150 no_cache=0
3151 # Check whether --enable-config or --disable-config was given.
3152 if test "${enable_config+set}" = set; then
3153 enableval="$enable_config"
3154
3155 if test "$enableval" = yes; then
3156 ac_cv_use_config='wxUSE_CONFIG=yes'
3157 else
3158 ac_cv_use_config='wxUSE_CONFIG=no'
3159 fi
3160
3161 else
3162
3163 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3164 if test "x$LINE" != x ; then
3165 eval "DEFAULT_$LINE"
3166 else
3167 no_cache=1
3168 fi
3169
3170 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3171
3172 fi
3173
3174
3175 eval "$ac_cv_use_config"
3176 if test "$no_cache" != 1; then
3177 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3178 fi
3179
3180 if test "$wxUSE_CONFIG" = yes; then
3181 echo "$ac_t""yes" 1>&6
3182 else
3183 echo "$ac_t""no" 1>&6
3184 fi
3185
3186
3187
3188 enablestring=
3189 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3190 echo "configure:3191: checking for --${enablestring:-enable}-protocols" >&5
3191 no_cache=0
3192 # Check whether --enable-protocols or --disable-protocols was given.
3193 if test "${enable_protocols+set}" = set; then
3194 enableval="$enable_protocols"
3195
3196 if test "$enableval" = yes; then
3197 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3198 else
3199 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3200 fi
3201
3202 else
3203
3204 LINE=`grep "wxUSE_PROTOCOL" ${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_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3212
3213 fi
3214
3215
3216 eval "$ac_cv_use_protocols"
3217 if test "$no_cache" != 1; then
3218 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3219 fi
3220
3221 if test "$wxUSE_PROTOCOL" = yes; then
3222 echo "$ac_t""yes" 1>&6
3223 else
3224 echo "$ac_t""no" 1>&6
3225 fi
3226
3227
3228 enablestring=
3229 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3230 echo "configure:3231: checking for --${enablestring:-enable}-ftp" >&5
3231 no_cache=0
3232 # Check whether --enable-ftp or --disable-ftp was given.
3233 if test "${enable_ftp+set}" = set; then
3234 enableval="$enable_ftp"
3235
3236 if test "$enableval" = yes; then
3237 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3238 else
3239 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3240 fi
3241
3242 else
3243
3244 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3245 if test "x$LINE" != x ; then
3246 eval "DEFAULT_$LINE"
3247 else
3248 no_cache=1
3249 fi
3250
3251 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3252
3253 fi
3254
3255
3256 eval "$ac_cv_use_ftp"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3262 echo "$ac_t""yes" 1>&6
3263 else
3264 echo "$ac_t""no" 1>&6
3265 fi
3266
3267
3268 enablestring=
3269 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3270 echo "configure:3271: checking for --${enablestring:-enable}-http" >&5
3271 no_cache=0
3272 # Check whether --enable-http or --disable-http was given.
3273 if test "${enable_http+set}" = set; then
3274 enableval="$enable_http"
3275
3276 if test "$enableval" = yes; then
3277 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3278 else
3279 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3280 fi
3281
3282 else
3283
3284 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3285 if test "x$LINE" != x ; then
3286 eval "DEFAULT_$LINE"
3287 else
3288 no_cache=1
3289 fi
3290
3291 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3292
3293 fi
3294
3295
3296 eval "$ac_cv_use_http"
3297 if test "$no_cache" != 1; then
3298 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3299 fi
3300
3301 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3302 echo "$ac_t""yes" 1>&6
3303 else
3304 echo "$ac_t""no" 1>&6
3305 fi
3306
3307
3308 enablestring=
3309 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3310 echo "configure:3311: checking for --${enablestring:-enable}-fileproto" >&5
3311 no_cache=0
3312 # Check whether --enable-fileproto or --disable-fileproto was given.
3313 if test "${enable_fileproto+set}" = set; then
3314 enableval="$enable_fileproto"
3315
3316 if test "$enableval" = yes; then
3317 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3318 else
3319 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3320 fi
3321
3322 else
3323
3324 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3325 if test "x$LINE" != x ; then
3326 eval "DEFAULT_$LINE"
3327 else
3328 no_cache=1
3329 fi
3330
3331 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3332
3333 fi
3334
3335
3336 eval "$ac_cv_use_fileproto"
3337 if test "$no_cache" != 1; then
3338 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3339 fi
3340
3341 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3342 echo "$ac_t""yes" 1>&6
3343 else
3344 echo "$ac_t""no" 1>&6
3345 fi
3346
3347
3348 enablestring=
3349 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3350 echo "configure:3351: checking for --${enablestring:-enable}-sockets" >&5
3351 no_cache=0
3352 # Check whether --enable-sockets or --disable-sockets was given.
3353 if test "${enable_sockets+set}" = set; then
3354 enableval="$enable_sockets"
3355
3356 if test "$enableval" = yes; then
3357 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3358 else
3359 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3360 fi
3361
3362 else
3363
3364 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3365 if test "x$LINE" != x ; then
3366 eval "DEFAULT_$LINE"
3367 else
3368 no_cache=1
3369 fi
3370
3371 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3372
3373 fi
3374
3375
3376 eval "$ac_cv_use_sockets"
3377 if test "$no_cache" != 1; then
3378 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3379 fi
3380
3381 if test "$wxUSE_SOCKETS" = yes; then
3382 echo "$ac_t""yes" 1>&6
3383 else
3384 echo "$ac_t""no" 1>&6
3385 fi
3386
3387
3388 enablestring=
3389 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3390 echo "configure:3391: checking for --${enablestring:-enable}-ole" >&5
3391 no_cache=0
3392 # Check whether --enable-ole or --disable-ole was given.
3393 if test "${enable_ole+set}" = set; then
3394 enableval="$enable_ole"
3395
3396 if test "$enableval" = yes; then
3397 ac_cv_use_ole='wxUSE_OLE=yes'
3398 else
3399 ac_cv_use_ole='wxUSE_OLE=no'
3400 fi
3401
3402 else
3403
3404 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3405 if test "x$LINE" != x ; then
3406 eval "DEFAULT_$LINE"
3407 else
3408 no_cache=1
3409 fi
3410
3411 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3412
3413 fi
3414
3415
3416 eval "$ac_cv_use_ole"
3417 if test "$no_cache" != 1; then
3418 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3419 fi
3420
3421 if test "$wxUSE_OLE" = yes; then
3422 echo "$ac_t""yes" 1>&6
3423 else
3424 echo "$ac_t""no" 1>&6
3425 fi
3426
3427
3428 enablestring=
3429 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3430 echo "configure:3431: checking for --${enablestring:-enable}-dataobj" >&5
3431 no_cache=0
3432 # Check whether --enable-dataobj or --disable-dataobj was given.
3433 if test "${enable_dataobj+set}" = set; then
3434 enableval="$enable_dataobj"
3435
3436 if test "$enableval" = yes; then
3437 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3438 else
3439 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3440 fi
3441
3442 else
3443
3444 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3445 if test "x$LINE" != x ; then
3446 eval "DEFAULT_$LINE"
3447 else
3448 no_cache=1
3449 fi
3450
3451 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3452
3453 fi
3454
3455
3456 eval "$ac_cv_use_dataobj"
3457 if test "$no_cache" != 1; then
3458 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3459 fi
3460
3461 if test "$wxUSE_DATAOBJ" = yes; then
3462 echo "$ac_t""yes" 1>&6
3463 else
3464 echo "$ac_t""no" 1>&6
3465 fi
3466
3467
3468
3469 enablestring=
3470 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3471 echo "configure:3472: checking for --${enablestring:-enable}-ipc" >&5
3472 no_cache=0
3473 # Check whether --enable-ipc or --disable-ipc was given.
3474 if test "${enable_ipc+set}" = set; then
3475 enableval="$enable_ipc"
3476
3477 if test "$enableval" = yes; then
3478 ac_cv_use_ipc='wxUSE_IPC=yes'
3479 else
3480 ac_cv_use_ipc='wxUSE_IPC=no'
3481 fi
3482
3483 else
3484
3485 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3486 if test "x$LINE" != x ; then
3487 eval "DEFAULT_$LINE"
3488 else
3489 no_cache=1
3490 fi
3491
3492 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3493
3494 fi
3495
3496
3497 eval "$ac_cv_use_ipc"
3498 if test "$no_cache" != 1; then
3499 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3500 fi
3501
3502 if test "$wxUSE_IPC" = yes; then
3503 echo "$ac_t""yes" 1>&6
3504 else
3505 echo "$ac_t""no" 1>&6
3506 fi
3507
3508
3509
3510 enablestring=
3511 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3512 echo "configure:3513: checking for --${enablestring:-enable}-cmdline" >&5
3513 no_cache=0
3514 # Check whether --enable-cmdline or --disable-cmdline was given.
3515 if test "${enable_cmdline+set}" = set; then
3516 enableval="$enable_cmdline"
3517
3518 if test "$enableval" = yes; then
3519 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3520 else
3521 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3522 fi
3523
3524 else
3525
3526 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
3533 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3534
3535 fi
3536
3537
3538 eval "$ac_cv_use_cmdline"
3539 if test "$no_cache" != 1; then
3540 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3541 fi
3542
3543 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3544 echo "$ac_t""yes" 1>&6
3545 else
3546 echo "$ac_t""no" 1>&6
3547 fi
3548
3549
3550 enablestring=
3551 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3552 echo "configure:3553: checking for --${enablestring:-enable}-datetime" >&5
3553 no_cache=0
3554 # Check whether --enable-datetime or --disable-datetime was given.
3555 if test "${enable_datetime+set}" = set; then
3556 enableval="$enable_datetime"
3557
3558 if test "$enableval" = yes; then
3559 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3560 else
3561 ac_cv_use_datetime='wxUSE_DATETIME=no'
3562 fi
3563
3564 else
3565
3566 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3567 if test "x$LINE" != x ; then
3568 eval "DEFAULT_$LINE"
3569 else
3570 no_cache=1
3571 fi
3572
3573 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3574
3575 fi
3576
3577
3578 eval "$ac_cv_use_datetime"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_DATETIME" = yes; then
3584 echo "$ac_t""yes" 1>&6
3585 else
3586 echo "$ac_t""no" 1>&6
3587 fi
3588
3589
3590 enablestring=
3591 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3592 echo "configure:3593: checking for --${enablestring:-enable}-stopwatch" >&5
3593 no_cache=0
3594 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3595 if test "${enable_stopwatch+set}" = set; then
3596 enableval="$enable_stopwatch"
3597
3598 if test "$enableval" = yes; then
3599 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3600 else
3601 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3602 fi
3603
3604 else
3605
3606 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3607 if test "x$LINE" != x ; then
3608 eval "DEFAULT_$LINE"
3609 else
3610 no_cache=1
3611 fi
3612
3613 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3614
3615 fi
3616
3617
3618 eval "$ac_cv_use_stopwatch"
3619 if test "$no_cache" != 1; then
3620 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3621 fi
3622
3623 if test "$wxUSE_STOPWATCH" = yes; then
3624 echo "$ac_t""yes" 1>&6
3625 else
3626 echo "$ac_t""no" 1>&6
3627 fi
3628
3629
3630 enablestring=
3631 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3632 echo "configure:3633: checking for --${enablestring:-enable}-dialupman" >&5
3633 no_cache=0
3634 # Check whether --enable-dialupman or --disable-dialupman was given.
3635 if test "${enable_dialupman+set}" = set; then
3636 enableval="$enable_dialupman"
3637
3638 if test "$enableval" = yes; then
3639 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3640 else
3641 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3642 fi
3643
3644 else
3645
3646 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3647 if test "x$LINE" != x ; then
3648 eval "DEFAULT_$LINE"
3649 else
3650 no_cache=1
3651 fi
3652
3653 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3654
3655 fi
3656
3657
3658 eval "$ac_cv_use_dialupman"
3659 if test "$no_cache" != 1; then
3660 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3661 fi
3662
3663 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3664 echo "$ac_t""yes" 1>&6
3665 else
3666 echo "$ac_t""no" 1>&6
3667 fi
3668
3669
3670 enablestring=
3671 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3672 echo "configure:3673: checking for --${enablestring:-enable}-apple_ieee" >&5
3673 no_cache=0
3674 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3675 if test "${enable_apple_ieee+set}" = set; then
3676 enableval="$enable_apple_ieee"
3677
3678 if test "$enableval" = yes; then
3679 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3680 else
3681 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3682 fi
3683
3684 else
3685
3686 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3687 if test "x$LINE" != x ; then
3688 eval "DEFAULT_$LINE"
3689 else
3690 no_cache=1
3691 fi
3692
3693 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3694
3695 fi
3696
3697
3698 eval "$ac_cv_use_apple_ieee"
3699 if test "$no_cache" != 1; then
3700 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3701 fi
3702
3703 if test "$wxUSE_APPLE_IEEE" = yes; then
3704 echo "$ac_t""yes" 1>&6
3705 else
3706 echo "$ac_t""no" 1>&6
3707 fi
3708
3709
3710 enablestring=
3711 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3712 echo "configure:3713: checking for --${enablestring:-enable}-timer" >&5
3713 no_cache=0
3714 # Check whether --enable-timer or --disable-timer was given.
3715 if test "${enable_timer+set}" = set; then
3716 enableval="$enable_timer"
3717
3718 if test "$enableval" = yes; then
3719 ac_cv_use_timer='wxUSE_TIMER=yes'
3720 else
3721 ac_cv_use_timer='wxUSE_TIMER=no'
3722 fi
3723
3724 else
3725
3726 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3727 if test "x$LINE" != x ; then
3728 eval "DEFAULT_$LINE"
3729 else
3730 no_cache=1
3731 fi
3732
3733 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3734
3735 fi
3736
3737
3738 eval "$ac_cv_use_timer"
3739 if test "$no_cache" != 1; then
3740 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3741 fi
3742
3743 if test "$wxUSE_TIMER" = yes; then
3744 echo "$ac_t""yes" 1>&6
3745 else
3746 echo "$ac_t""no" 1>&6
3747 fi
3748
3749
3750 enablestring=
3751 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3752 echo "configure:3753: checking for --${enablestring:-enable}-wave" >&5
3753 no_cache=0
3754 # Check whether --enable-wave or --disable-wave was given.
3755 if test "${enable_wave+set}" = set; then
3756 enableval="$enable_wave"
3757
3758 if test "$enableval" = yes; then
3759 ac_cv_use_wave='wxUSE_WAVE=yes'
3760 else
3761 ac_cv_use_wave='wxUSE_WAVE=no'
3762 fi
3763
3764 else
3765
3766 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3774
3775 fi
3776
3777
3778 eval "$ac_cv_use_wave"
3779 if test "$no_cache" != 1; then
3780 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3781 fi
3782
3783 if test "$wxUSE_WAVE" = yes; then
3784 echo "$ac_t""yes" 1>&6
3785 else
3786 echo "$ac_t""no" 1>&6
3787 fi
3788
3789
3790 enablestring=
3791 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3792 echo "configure:3793: checking for --${enablestring:-enable}-fraction" >&5
3793 no_cache=0
3794 # Check whether --enable-fraction or --disable-fraction was given.
3795 if test "${enable_fraction+set}" = set; then
3796 enableval="$enable_fraction"
3797
3798 if test "$enableval" = yes; then
3799 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3800 else
3801 ac_cv_use_fraction='wxUSE_FRACTION=no'
3802 fi
3803
3804 else
3805
3806 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3807 if test "x$LINE" != x ; then
3808 eval "DEFAULT_$LINE"
3809 else
3810 no_cache=1
3811 fi
3812
3813 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3814
3815 fi
3816
3817
3818 eval "$ac_cv_use_fraction"
3819 if test "$no_cache" != 1; then
3820 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3821 fi
3822
3823 if test "$wxUSE_FRACTION" = yes; then
3824 echo "$ac_t""yes" 1>&6
3825 else
3826 echo "$ac_t""no" 1>&6
3827 fi
3828
3829
3830 enablestring=
3831 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3832 echo "configure:3833: checking for --${enablestring:-enable}-dynlib" >&5
3833 no_cache=0
3834 # Check whether --enable-dynlib or --disable-dynlib was given.
3835 if test "${enable_dynlib+set}" = set; then
3836 enableval="$enable_dynlib"
3837
3838 if test "$enableval" = yes; then
3839 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3840 else
3841 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3842 fi
3843
3844 else
3845
3846 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3847 if test "x$LINE" != x ; then
3848 eval "DEFAULT_$LINE"
3849 else
3850 no_cache=1
3851 fi
3852
3853 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3854
3855 fi
3856
3857
3858 eval "$ac_cv_use_dynlib"
3859 if test "$no_cache" != 1; then
3860 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3861 fi
3862
3863 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3864 echo "$ac_t""yes" 1>&6
3865 else
3866 echo "$ac_t""no" 1>&6
3867 fi
3868
3869
3870 enablestring=
3871 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3872 echo "configure:3873: checking for --${enablestring:-enable}-dynamicloader" >&5
3873 no_cache=0
3874 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3875 if test "${enable_dynamicloader+set}" = set; then
3876 enableval="$enable_dynamicloader"
3877
3878 if test "$enableval" = yes; then
3879 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3880 else
3881 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3882 fi
3883
3884 else
3885
3886 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3887 if test "x$LINE" != x ; then
3888 eval "DEFAULT_$LINE"
3889 else
3890 no_cache=1
3891 fi
3892
3893 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3894
3895 fi
3896
3897
3898 eval "$ac_cv_use_dynamicloader"
3899 if test "$no_cache" != 1; then
3900 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3901 fi
3902
3903 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3904 echo "$ac_t""yes" 1>&6
3905 else
3906 echo "$ac_t""no" 1>&6
3907 fi
3908
3909
3910 enablestring=
3911 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3912 echo "configure:3913: checking for --${enablestring:-enable}-longlong" >&5
3913 no_cache=0
3914 # Check whether --enable-longlong or --disable-longlong was given.
3915 if test "${enable_longlong+set}" = set; then
3916 enableval="$enable_longlong"
3917
3918 if test "$enableval" = yes; then
3919 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3920 else
3921 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3922 fi
3923
3924 else
3925
3926 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3927 if test "x$LINE" != x ; then
3928 eval "DEFAULT_$LINE"
3929 else
3930 no_cache=1
3931 fi
3932
3933 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3934
3935 fi
3936
3937
3938 eval "$ac_cv_use_longlong"
3939 if test "$no_cache" != 1; then
3940 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3941 fi
3942
3943 if test "$wxUSE_LONGLONG" = yes; then
3944 echo "$ac_t""yes" 1>&6
3945 else
3946 echo "$ac_t""no" 1>&6
3947 fi
3948
3949
3950 enablestring=
3951 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3952 echo "configure:3953: checking for --${enablestring:-enable}-geometry" >&5
3953 no_cache=0
3954 # Check whether --enable-geometry or --disable-geometry was given.
3955 if test "${enable_geometry+set}" = set; then
3956 enableval="$enable_geometry"
3957
3958 if test "$enableval" = yes; then
3959 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3960 else
3961 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3962 fi
3963
3964 else
3965
3966 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3967 if test "x$LINE" != x ; then
3968 eval "DEFAULT_$LINE"
3969 else
3970 no_cache=1
3971 fi
3972
3973 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3974
3975 fi
3976
3977
3978 eval "$ac_cv_use_geometry"
3979 if test "$no_cache" != 1; then
3980 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3981 fi
3982
3983 if test "$wxUSE_GEOMETRY" = yes; then
3984 echo "$ac_t""yes" 1>&6
3985 else
3986 echo "$ac_t""no" 1>&6
3987 fi
3988
3989
3990 enablestring=
3991 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
3992 echo "configure:3993: checking for --${enablestring:-enable}-log" >&5
3993 no_cache=0
3994 # Check whether --enable-log or --disable-log was given.
3995 if test "${enable_log+set}" = set; then
3996 enableval="$enable_log"
3997
3998 if test "$enableval" = yes; then
3999 ac_cv_use_log='wxUSE_LOG=yes'
4000 else
4001 ac_cv_use_log='wxUSE_LOG=no'
4002 fi
4003
4004 else
4005
4006 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4014
4015 fi
4016
4017
4018 eval "$ac_cv_use_log"
4019 if test "$no_cache" != 1; then
4020 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4021 fi
4022
4023 if test "$wxUSE_LOG" = yes; then
4024 echo "$ac_t""yes" 1>&6
4025 else
4026 echo "$ac_t""no" 1>&6
4027 fi
4028
4029
4030 enablestring=
4031 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4032 echo "configure:4033: checking for --${enablestring:-enable}-streams" >&5
4033 no_cache=0
4034 # Check whether --enable-streams or --disable-streams was given.
4035 if test "${enable_streams+set}" = set; then
4036 enableval="$enable_streams"
4037
4038 if test "$enableval" = yes; then
4039 ac_cv_use_streams='wxUSE_STREAMS=yes'
4040 else
4041 ac_cv_use_streams='wxUSE_STREAMS=no'
4042 fi
4043
4044 else
4045
4046 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4047 if test "x$LINE" != x ; then
4048 eval "DEFAULT_$LINE"
4049 else
4050 no_cache=1
4051 fi
4052
4053 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4054
4055 fi
4056
4057
4058 eval "$ac_cv_use_streams"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_STREAMS" = yes; then
4064 echo "$ac_t""yes" 1>&6
4065 else
4066 echo "$ac_t""no" 1>&6
4067 fi
4068
4069
4070 enablestring=
4071 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4072 echo "configure:4073: checking for --${enablestring:-enable}-file" >&5
4073 no_cache=0
4074 # Check whether --enable-file or --disable-file was given.
4075 if test "${enable_file+set}" = set; then
4076 enableval="$enable_file"
4077
4078 if test "$enableval" = yes; then
4079 ac_cv_use_file='wxUSE_FILE=yes'
4080 else
4081 ac_cv_use_file='wxUSE_FILE=no'
4082 fi
4083
4084 else
4085
4086 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4087 if test "x$LINE" != x ; then
4088 eval "DEFAULT_$LINE"
4089 else
4090 no_cache=1
4091 fi
4092
4093 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4094
4095 fi
4096
4097
4098 eval "$ac_cv_use_file"
4099 if test "$no_cache" != 1; then
4100 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4101 fi
4102
4103 if test "$wxUSE_FILE" = yes; then
4104 echo "$ac_t""yes" 1>&6
4105 else
4106 echo "$ac_t""no" 1>&6
4107 fi
4108
4109
4110 enablestring=
4111 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4112 echo "configure:4113: checking for --${enablestring:-enable}-ffile" >&5
4113 no_cache=0
4114 # Check whether --enable-ffile or --disable-ffile was given.
4115 if test "${enable_ffile+set}" = set; then
4116 enableval="$enable_ffile"
4117
4118 if test "$enableval" = yes; then
4119 ac_cv_use_ffile='wxUSE_FFILE=yes'
4120 else
4121 ac_cv_use_ffile='wxUSE_FFILE=no'
4122 fi
4123
4124 else
4125
4126 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4127 if test "x$LINE" != x ; then
4128 eval "DEFAULT_$LINE"
4129 else
4130 no_cache=1
4131 fi
4132
4133 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4134
4135 fi
4136
4137
4138 eval "$ac_cv_use_ffile"
4139 if test "$no_cache" != 1; then
4140 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4141 fi
4142
4143 if test "$wxUSE_FFILE" = yes; then
4144 echo "$ac_t""yes" 1>&6
4145 else
4146 echo "$ac_t""no" 1>&6
4147 fi
4148
4149
4150 enablestring=
4151 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4152 echo "configure:4153: checking for --${enablestring:-enable}-textbuf" >&5
4153 no_cache=0
4154 # Check whether --enable-textbuf or --disable-textbuf was given.
4155 if test "${enable_textbuf+set}" = set; then
4156 enableval="$enable_textbuf"
4157
4158 if test "$enableval" = yes; then
4159 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4160 else
4161 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4162 fi
4163
4164 else
4165
4166 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4167 if test "x$LINE" != x ; then
4168 eval "DEFAULT_$LINE"
4169 else
4170 no_cache=1
4171 fi
4172
4173 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4174
4175 fi
4176
4177
4178 eval "$ac_cv_use_textbuf"
4179 if test "$no_cache" != 1; then
4180 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4181 fi
4182
4183 if test "$wxUSE_TEXTBUFFER" = yes; then
4184 echo "$ac_t""yes" 1>&6
4185 else
4186 echo "$ac_t""no" 1>&6
4187 fi
4188
4189
4190 enablestring=
4191 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4192 echo "configure:4193: checking for --${enablestring:-enable}-textfile" >&5
4193 no_cache=0
4194 # Check whether --enable-textfile or --disable-textfile was given.
4195 if test "${enable_textfile+set}" = set; then
4196 enableval="$enable_textfile"
4197
4198 if test "$enableval" = yes; then
4199 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4200 else
4201 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4202 fi
4203
4204 else
4205
4206 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4207 if test "x$LINE" != x ; then
4208 eval "DEFAULT_$LINE"
4209 else
4210 no_cache=1
4211 fi
4212
4213 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4214
4215 fi
4216
4217
4218 eval "$ac_cv_use_textfile"
4219 if test "$no_cache" != 1; then
4220 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4221 fi
4222
4223 if test "$wxUSE_TEXTFILE" = yes; then
4224 echo "$ac_t""yes" 1>&6
4225 else
4226 echo "$ac_t""no" 1>&6
4227 fi
4228
4229
4230 enablestring=
4231 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4232 echo "configure:4233: checking for --${enablestring:-enable}-fontmap" >&5
4233 no_cache=0
4234 # Check whether --enable-fontmap or --disable-fontmap was given.
4235 if test "${enable_fontmap+set}" = set; then
4236 enableval="$enable_fontmap"
4237
4238 if test "$enableval" = yes; then
4239 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4240 else
4241 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4242 fi
4243
4244 else
4245
4246 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4247 if test "x$LINE" != x ; then
4248 eval "DEFAULT_$LINE"
4249 else
4250 no_cache=1
4251 fi
4252
4253 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4254
4255 fi
4256
4257
4258 eval "$ac_cv_use_fontmap"
4259 if test "$no_cache" != 1; then
4260 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4261 fi
4262
4263 if test "$wxUSE_FONTMAP" = yes; then
4264 echo "$ac_t""yes" 1>&6
4265 else
4266 echo "$ac_t""no" 1>&6
4267 fi
4268
4269
4270 enablestring=
4271 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4272 echo "configure:4273: checking for --${enablestring:-enable}-unicode" >&5
4273 no_cache=0
4274 # Check whether --enable-unicode or --disable-unicode was given.
4275 if test "${enable_unicode+set}" = set; then
4276 enableval="$enable_unicode"
4277
4278 if test "$enableval" = yes; then
4279 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4280 else
4281 ac_cv_use_unicode='wxUSE_UNICODE=no'
4282 fi
4283
4284 else
4285
4286 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4287 if test "x$LINE" != x ; then
4288 eval "DEFAULT_$LINE"
4289 else
4290 no_cache=1
4291 fi
4292
4293 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4294
4295 fi
4296
4297
4298 eval "$ac_cv_use_unicode"
4299 if test "$no_cache" != 1; then
4300 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4301 fi
4302
4303 if test "$wxUSE_UNICODE" = yes; then
4304 echo "$ac_t""yes" 1>&6
4305 else
4306 echo "$ac_t""no" 1>&6
4307 fi
4308
4309
4310 enablestring=
4311 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4312 echo "configure:4313: checking for --${enablestring:-enable}-mslu" >&5
4313 no_cache=0
4314 # Check whether --enable-mslu or --disable-mslu was given.
4315 if test "${enable_mslu+set}" = set; then
4316 enableval="$enable_mslu"
4317
4318 if test "$enableval" = yes; then
4319 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4320 else
4321 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4322 fi
4323
4324 else
4325
4326 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4327 if test "x$LINE" != x ; then
4328 eval "DEFAULT_$LINE"
4329 else
4330 no_cache=1
4331 fi
4332
4333 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4334
4335 fi
4336
4337
4338 eval "$ac_cv_use_mslu"
4339 if test "$no_cache" != 1; then
4340 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4341 fi
4342
4343 if test "$wxUSE_UNICODE_MSLU" = yes; then
4344 echo "$ac_t""yes" 1>&6
4345 else
4346 echo "$ac_t""no" 1>&6
4347 fi
4348
4349
4350 enablestring=
4351 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4352 echo "configure:4353: checking for --${enablestring:-enable}-wxprintfv" >&5
4353 no_cache=0
4354 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4355 if test "${enable_wxprintfv+set}" = set; then
4356 enableval="$enable_wxprintfv"
4357
4358 if test "$enableval" = yes; then
4359 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4360 else
4361 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4362 fi
4363
4364 else
4365
4366 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4367 if test "x$LINE" != x ; then
4368 eval "DEFAULT_$LINE"
4369 else
4370 no_cache=1
4371 fi
4372
4373 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4374
4375 fi
4376
4377
4378 eval "$ac_cv_use_wxprintfv"
4379 if test "$no_cache" != 1; then
4380 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4381 fi
4382
4383 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4384 echo "$ac_t""yes" 1>&6
4385 else
4386 echo "$ac_t""no" 1>&6
4387 fi
4388
4389
4390 enablestring=
4391 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4392 echo "configure:4393: checking for --${enablestring:-enable}-std_iostreams" >&5
4393 no_cache=0
4394 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4395 if test "${enable_std_iostreams+set}" = set; then
4396 enableval="$enable_std_iostreams"
4397
4398 if test "$enableval" = yes; then
4399 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4400 else
4401 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4402 fi
4403
4404 else
4405
4406 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4407 if test "x$LINE" != x ; then
4408 eval "DEFAULT_$LINE"
4409 else
4410 no_cache=1
4411 fi
4412
4413 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4414
4415 fi
4416
4417
4418 eval "$ac_cv_use_std_iostreams"
4419 if test "$no_cache" != 1; then
4420 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4421 fi
4422
4423 if test "$wxUSE_STD_IOSTREAM" = yes; then
4424 echo "$ac_t""yes" 1>&6
4425 else
4426 echo "$ac_t""no" 1>&6
4427 fi
4428
4429
4430 enablestring=
4431 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4432 echo "configure:4433: checking for --${enablestring:-enable}-filesystem" >&5
4433 no_cache=0
4434 # Check whether --enable-filesystem or --disable-filesystem was given.
4435 if test "${enable_filesystem+set}" = set; then
4436 enableval="$enable_filesystem"
4437
4438 if test "$enableval" = yes; then
4439 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4440 else
4441 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4442 fi
4443
4444 else
4445
4446 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4447 if test "x$LINE" != x ; then
4448 eval "DEFAULT_$LINE"
4449 else
4450 no_cache=1
4451 fi
4452
4453 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4454
4455 fi
4456
4457
4458 eval "$ac_cv_use_filesystem"
4459 if test "$no_cache" != 1; then
4460 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4461 fi
4462
4463 if test "$wxUSE_FILESYSTEM" = yes; then
4464 echo "$ac_t""yes" 1>&6
4465 else
4466 echo "$ac_t""no" 1>&6
4467 fi
4468
4469
4470 enablestring=
4471 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4472 echo "configure:4473: checking for --${enablestring:-enable}-fs_inet" >&5
4473 no_cache=0
4474 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4475 if test "${enable_fs_inet+set}" = set; then
4476 enableval="$enable_fs_inet"
4477
4478 if test "$enableval" = yes; then
4479 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4480 else
4481 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4482 fi
4483
4484 else
4485
4486 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4487 if test "x$LINE" != x ; then
4488 eval "DEFAULT_$LINE"
4489 else
4490 no_cache=1
4491 fi
4492
4493 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4494
4495 fi
4496
4497
4498 eval "$ac_cv_use_fs_inet"
4499 if test "$no_cache" != 1; then
4500 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4501 fi
4502
4503 if test "$wxUSE_FS_INET" = yes; then
4504 echo "$ac_t""yes" 1>&6
4505 else
4506 echo "$ac_t""no" 1>&6
4507 fi
4508
4509
4510 enablestring=
4511 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4512 echo "configure:4513: checking for --${enablestring:-enable}-fs_zip" >&5
4513 no_cache=0
4514 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4515 if test "${enable_fs_zip+set}" = set; then
4516 enableval="$enable_fs_zip"
4517
4518 if test "$enableval" = yes; then
4519 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4520 else
4521 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4522 fi
4523
4524 else
4525
4526 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4527 if test "x$LINE" != x ; then
4528 eval "DEFAULT_$LINE"
4529 else
4530 no_cache=1
4531 fi
4532
4533 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4534
4535 fi
4536
4537
4538 eval "$ac_cv_use_fs_zip"
4539 if test "$no_cache" != 1; then
4540 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4541 fi
4542
4543 if test "$wxUSE_FS_ZIP" = yes; then
4544 echo "$ac_t""yes" 1>&6
4545 else
4546 echo "$ac_t""no" 1>&6
4547 fi
4548
4549
4550 enablestring=
4551 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4552 echo "configure:4553: checking for --${enablestring:-enable}-zipstream" >&5
4553 no_cache=0
4554 # Check whether --enable-zipstream or --disable-zipstream was given.
4555 if test "${enable_zipstream+set}" = set; then
4556 enableval="$enable_zipstream"
4557
4558 if test "$enableval" = yes; then
4559 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4560 else
4561 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4562 fi
4563
4564 else
4565
4566 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4567 if test "x$LINE" != x ; then
4568 eval "DEFAULT_$LINE"
4569 else
4570 no_cache=1
4571 fi
4572
4573 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4574
4575 fi
4576
4577
4578 eval "$ac_cv_use_zipstream"
4579 if test "$no_cache" != 1; then
4580 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4581 fi
4582
4583 if test "$wxUSE_ZIPSTREAM" = yes; then
4584 echo "$ac_t""yes" 1>&6
4585 else
4586 echo "$ac_t""no" 1>&6
4587 fi
4588
4589
4590
4591 enablestring=
4592 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4593 echo "configure:4594: checking for --${enablestring:-enable}-catch_segvs" >&5
4594 no_cache=0
4595 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4596 if test "${enable_catch_segvs+set}" = set; then
4597 enableval="$enable_catch_segvs"
4598
4599 if test "$enableval" = yes; then
4600 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4601 else
4602 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4603 fi
4604
4605 else
4606
4607 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4608 if test "x$LINE" != x ; then
4609 eval "DEFAULT_$LINE"
4610 else
4611 no_cache=1
4612 fi
4613
4614 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4615
4616 fi
4617
4618
4619 eval "$ac_cv_use_catch_segvs"
4620 if test "$no_cache" != 1; then
4621 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4622 fi
4623
4624 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4625 echo "$ac_t""yes" 1>&6
4626 else
4627 echo "$ac_t""no" 1>&6
4628 fi
4629
4630
4631 enablestring=
4632 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4633 echo "configure:4634: checking for --${enablestring:-enable}-snglinst" >&5
4634 no_cache=0
4635 # Check whether --enable-snglinst or --disable-snglinst was given.
4636 if test "${enable_snglinst+set}" = set; then
4637 enableval="$enable_snglinst"
4638
4639 if test "$enableval" = yes; then
4640 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4641 else
4642 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4643 fi
4644
4645 else
4646
4647 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4648 if test "x$LINE" != x ; then
4649 eval "DEFAULT_$LINE"
4650 else
4651 no_cache=1
4652 fi
4653
4654 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4655
4656 fi
4657
4658
4659 eval "$ac_cv_use_snglinst"
4660 if test "$no_cache" != 1; then
4661 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4662 fi
4663
4664 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4665 echo "$ac_t""yes" 1>&6
4666 else
4667 echo "$ac_t""no" 1>&6
4668 fi
4669
4670
4671
4672 enablestring=
4673 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4674 echo "configure:4675: checking for --${enablestring:-enable}-mimetype" >&5
4675 no_cache=0
4676 # Check whether --enable-mimetype or --disable-mimetype was given.
4677 if test "${enable_mimetype+set}" = set; then
4678 enableval="$enable_mimetype"
4679
4680 if test "$enableval" = yes; then
4681 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4682 else
4683 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4684 fi
4685
4686 else
4687
4688 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4689 if test "x$LINE" != x ; then
4690 eval "DEFAULT_$LINE"
4691 else
4692 no_cache=1
4693 fi
4694
4695 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4696
4697 fi
4698
4699
4700 eval "$ac_cv_use_mimetype"
4701 if test "$no_cache" != 1; then
4702 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4703 fi
4704
4705 if test "$wxUSE_MIMETYPE" = yes; then
4706 echo "$ac_t""yes" 1>&6
4707 else
4708 echo "$ac_t""no" 1>&6
4709 fi
4710
4711
4712 enablestring=
4713 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4714 echo "configure:4715: checking for --${enablestring:-enable}-system_options" >&5
4715 no_cache=0
4716 # Check whether --enable-system_options or --disable-system_options was given.
4717 if test "${enable_system_options+set}" = set; then
4718 enableval="$enable_system_options"
4719
4720 if test "$enableval" = yes; then
4721 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4722 else
4723 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4724 fi
4725
4726 else
4727
4728 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4729 if test "x$LINE" != x ; then
4730 eval "DEFAULT_$LINE"
4731 else
4732 no_cache=1
4733 fi
4734
4735 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4736
4737 fi
4738
4739
4740 eval "$ac_cv_use_system_options"
4741 if test "$no_cache" != 1; then
4742 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4743 fi
4744
4745 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4746 echo "$ac_t""yes" 1>&6
4747 else
4748 echo "$ac_t""no" 1>&6
4749 fi
4750
4751
4752
4753 enablestring=
4754 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4755 echo "configure:4756: checking for --${enablestring:-enable}-url" >&5
4756 no_cache=0
4757 # Check whether --enable-url or --disable-url was given.
4758 if test "${enable_url+set}" = set; then
4759 enableval="$enable_url"
4760
4761 if test "$enableval" = yes; then
4762 ac_cv_use_url='wxUSE_URL=yes'
4763 else
4764 ac_cv_use_url='wxUSE_URL=no'
4765 fi
4766
4767 else
4768
4769 LINE=`grep "wxUSE_URL" ${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_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4777
4778 fi
4779
4780
4781 eval "$ac_cv_use_url"
4782 if test "$no_cache" != 1; then
4783 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4784 fi
4785
4786 if test "$wxUSE_URL" = yes; then
4787 echo "$ac_t""yes" 1>&6
4788 else
4789 echo "$ac_t""no" 1>&6
4790 fi
4791
4792
4793 enablestring=
4794 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4795 echo "configure:4796: checking for --${enablestring:-enable}-protocol" >&5
4796 no_cache=0
4797 # Check whether --enable-protocol or --disable-protocol was given.
4798 if test "${enable_protocol+set}" = set; then
4799 enableval="$enable_protocol"
4800
4801 if test "$enableval" = yes; then
4802 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4803 else
4804 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4805 fi
4806
4807 else
4808
4809 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4810 if test "x$LINE" != x ; then
4811 eval "DEFAULT_$LINE"
4812 else
4813 no_cache=1
4814 fi
4815
4816 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4817
4818 fi
4819
4820
4821 eval "$ac_cv_use_protocol"
4822 if test "$no_cache" != 1; then
4823 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4824 fi
4825
4826 if test "$wxUSE_PROTOCOL" = yes; then
4827 echo "$ac_t""yes" 1>&6
4828 else
4829 echo "$ac_t""no" 1>&6
4830 fi
4831
4832
4833 enablestring=
4834 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4835 echo "configure:4836: checking for --${enablestring:-enable}-protocol_http" >&5
4836 no_cache=0
4837 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4838 if test "${enable_protocol_http+set}" = set; then
4839 enableval="$enable_protocol_http"
4840
4841 if test "$enableval" = yes; then
4842 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4843 else
4844 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4845 fi
4846
4847 else
4848
4849 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4850 if test "x$LINE" != x ; then
4851 eval "DEFAULT_$LINE"
4852 else
4853 no_cache=1
4854 fi
4855
4856 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4857
4858 fi
4859
4860
4861 eval "$ac_cv_use_protocol_http"
4862 if test "$no_cache" != 1; then
4863 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4864 fi
4865
4866 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4867 echo "$ac_t""yes" 1>&6
4868 else
4869 echo "$ac_t""no" 1>&6
4870 fi
4871
4872
4873 enablestring=
4874 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4875 echo "configure:4876: checking for --${enablestring:-enable}-protocol_ftp" >&5
4876 no_cache=0
4877 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4878 if test "${enable_protocol_ftp+set}" = set; then
4879 enableval="$enable_protocol_ftp"
4880
4881 if test "$enableval" = yes; then
4882 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4883 else
4884 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4885 fi
4886
4887 else
4888
4889 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4890 if test "x$LINE" != x ; then
4891 eval "DEFAULT_$LINE"
4892 else
4893 no_cache=1
4894 fi
4895
4896 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4897
4898 fi
4899
4900
4901 eval "$ac_cv_use_protocol_ftp"
4902 if test "$no_cache" != 1; then
4903 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4904 fi
4905
4906 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4907 echo "$ac_t""yes" 1>&6
4908 else
4909 echo "$ac_t""no" 1>&6
4910 fi
4911
4912
4913 enablestring=
4914 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4915 echo "configure:4916: checking for --${enablestring:-enable}-protocol_file" >&5
4916 no_cache=0
4917 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4918 if test "${enable_protocol_file+set}" = set; then
4919 enableval="$enable_protocol_file"
4920
4921 if test "$enableval" = yes; then
4922 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4923 else
4924 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4925 fi
4926
4927 else
4928
4929 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4930 if test "x$LINE" != x ; then
4931 eval "DEFAULT_$LINE"
4932 else
4933 no_cache=1
4934 fi
4935
4936 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4937
4938 fi
4939
4940
4941 eval "$ac_cv_use_protocol_file"
4942 if test "$no_cache" != 1; then
4943 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4944 fi
4945
4946 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4947 echo "$ac_t""yes" 1>&6
4948 else
4949 echo "$ac_t""no" 1>&6
4950 fi
4951
4952
4953
4954
4955
4956 enablestring=
4957 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4958 echo "configure:4959: checking for --${enablestring:-enable}-threads" >&5
4959 no_cache=0
4960 # Check whether --enable-threads or --disable-threads was given.
4961 if test "${enable_threads+set}" = set; then
4962 enableval="$enable_threads"
4963
4964 if test "$enableval" = yes; then
4965 ac_cv_use_threads='wxUSE_THREADS=yes'
4966 else
4967 ac_cv_use_threads='wxUSE_THREADS=no'
4968 fi
4969
4970 else
4971
4972 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4973 if test "x$LINE" != x ; then
4974 eval "DEFAULT_$LINE"
4975 else
4976 no_cache=1
4977 fi
4978
4979 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4980
4981 fi
4982
4983
4984 eval "$ac_cv_use_threads"
4985 if test "$no_cache" != 1; then
4986 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4987 fi
4988
4989 if test "$wxUSE_THREADS" = yes; then
4990 echo "$ac_t""yes" 1>&6
4991 else
4992 echo "$ac_t""no" 1>&6
4993 fi
4994
4995
4996 if test "$wxUSE_GUI" = "yes"; then
4997
4998
4999
5000 enablestring=
5001 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5002 echo "configure:5003: checking for --${enablestring:-enable}-docview" >&5
5003 no_cache=0
5004 # Check whether --enable-docview or --disable-docview was given.
5005 if test "${enable_docview+set}" = set; then
5006 enableval="$enable_docview"
5007
5008 if test "$enableval" = yes; then
5009 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5010 else
5011 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5012 fi
5013
5014 else
5015
5016 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5017 if test "x$LINE" != x ; then
5018 eval "DEFAULT_$LINE"
5019 else
5020 no_cache=1
5021 fi
5022
5023 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5024
5025 fi
5026
5027
5028 eval "$ac_cv_use_docview"
5029 if test "$no_cache" != 1; then
5030 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5031 fi
5032
5033 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5034 echo "$ac_t""yes" 1>&6
5035 else
5036 echo "$ac_t""no" 1>&6
5037 fi
5038
5039
5040 enablestring=
5041 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5042 echo "configure:5043: checking for --${enablestring:-enable}-help" >&5
5043 no_cache=0
5044 # Check whether --enable-help or --disable-help was given.
5045 if test "${enable_help+set}" = set; then
5046 enableval="$enable_help"
5047
5048 if test "$enableval" = yes; then
5049 ac_cv_use_help='wxUSE_HELP=yes'
5050 else
5051 ac_cv_use_help='wxUSE_HELP=no'
5052 fi
5053
5054 else
5055
5056 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5057 if test "x$LINE" != x ; then
5058 eval "DEFAULT_$LINE"
5059 else
5060 no_cache=1
5061 fi
5062
5063 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5064
5065 fi
5066
5067
5068 eval "$ac_cv_use_help"
5069 if test "$no_cache" != 1; then
5070 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5071 fi
5072
5073 if test "$wxUSE_HELP" = yes; then
5074 echo "$ac_t""yes" 1>&6
5075 else
5076 echo "$ac_t""no" 1>&6
5077 fi
5078
5079
5080 enablestring=
5081 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5082 echo "configure:5083: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5083 no_cache=0
5084 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5085 if test "${enable_mshtmlhelp+set}" = set; then
5086 enableval="$enable_mshtmlhelp"
5087
5088 if test "$enableval" = yes; then
5089 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5090 else
5091 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5092 fi
5093
5094 else
5095
5096 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5097 if test "x$LINE" != x ; then
5098 eval "DEFAULT_$LINE"
5099 else
5100 no_cache=1
5101 fi
5102
5103 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5104
5105 fi
5106
5107
5108 eval "$ac_cv_use_mshtmlhelp"
5109 if test "$no_cache" != 1; then
5110 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5111 fi
5112
5113 if test "$wxUSE_MS_HTML_HELP" = yes; then
5114 echo "$ac_t""yes" 1>&6
5115 else
5116 echo "$ac_t""no" 1>&6
5117 fi
5118
5119
5120 enablestring=
5121 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5122 echo "configure:5123: checking for --${enablestring:-enable}-html" >&5
5123 no_cache=0
5124 # Check whether --enable-html or --disable-html was given.
5125 if test "${enable_html+set}" = set; then
5126 enableval="$enable_html"
5127
5128 if test "$enableval" = yes; then
5129 ac_cv_use_html='wxUSE_HTML=yes'
5130 else
5131 ac_cv_use_html='wxUSE_HTML=no'
5132 fi
5133
5134 else
5135
5136 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
5143 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5144
5145 fi
5146
5147
5148 eval "$ac_cv_use_html"
5149 if test "$no_cache" != 1; then
5150 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5151 fi
5152
5153 if test "$wxUSE_HTML" = yes; then
5154 echo "$ac_t""yes" 1>&6
5155 else
5156 echo "$ac_t""no" 1>&6
5157 fi
5158
5159
5160 enablestring=
5161 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5162 echo "configure:5163: checking for --${enablestring:-enable}-htmlhelp" >&5
5163 no_cache=0
5164 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5165 if test "${enable_htmlhelp+set}" = set; then
5166 enableval="$enable_htmlhelp"
5167
5168 if test "$enableval" = yes; then
5169 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5170 else
5171 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5172 fi
5173
5174 else
5175
5176 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5177 if test "x$LINE" != x ; then
5178 eval "DEFAULT_$LINE"
5179 else
5180 no_cache=1
5181 fi
5182
5183 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5184
5185 fi
5186
5187
5188 eval "$ac_cv_use_htmlhelp"
5189 if test "$no_cache" != 1; then
5190 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5191 fi
5192
5193 if test "$wxUSE_WXHTML_HELP" = yes; then
5194 echo "$ac_t""yes" 1>&6
5195 else
5196 echo "$ac_t""no" 1>&6
5197 fi
5198
5199
5200 enablestring=
5201 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5202 echo "configure:5203: checking for --${enablestring:-enable}-constraints" >&5
5203 no_cache=0
5204 # Check whether --enable-constraints or --disable-constraints was given.
5205 if test "${enable_constraints+set}" = set; then
5206 enableval="$enable_constraints"
5207
5208 if test "$enableval" = yes; then
5209 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5210 else
5211 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5212 fi
5213
5214 else
5215
5216 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5217 if test "x$LINE" != x ; then
5218 eval "DEFAULT_$LINE"
5219 else
5220 no_cache=1
5221 fi
5222
5223 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5224
5225 fi
5226
5227
5228 eval "$ac_cv_use_constraints"
5229 if test "$no_cache" != 1; then
5230 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5231 fi
5232
5233 if test "$wxUSE_CONSTRAINTS" = yes; then
5234 echo "$ac_t""yes" 1>&6
5235 else
5236 echo "$ac_t""no" 1>&6
5237 fi
5238
5239
5240 enablestring=
5241 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5242 echo "configure:5243: checking for --${enablestring:-enable}-printarch" >&5
5243 no_cache=0
5244 # Check whether --enable-printarch or --disable-printarch was given.
5245 if test "${enable_printarch+set}" = set; then
5246 enableval="$enable_printarch"
5247
5248 if test "$enableval" = yes; then
5249 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5250 else
5251 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5252 fi
5253
5254 else
5255
5256 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5257 if test "x$LINE" != x ; then
5258 eval "DEFAULT_$LINE"
5259 else
5260 no_cache=1
5261 fi
5262
5263 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5264
5265 fi
5266
5267
5268 eval "$ac_cv_use_printarch"
5269 if test "$no_cache" != 1; then
5270 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5271 fi
5272
5273 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5274 echo "$ac_t""yes" 1>&6
5275 else
5276 echo "$ac_t""no" 1>&6
5277 fi
5278
5279
5280 enablestring=
5281 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5282 echo "configure:5283: checking for --${enablestring:-enable}-mdi" >&5
5283 no_cache=0
5284 # Check whether --enable-mdi or --disable-mdi was given.
5285 if test "${enable_mdi+set}" = set; then
5286 enableval="$enable_mdi"
5287
5288 if test "$enableval" = yes; then
5289 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5290 else
5291 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5292 fi
5293
5294 else
5295
5296 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5297 if test "x$LINE" != x ; then
5298 eval "DEFAULT_$LINE"
5299 else
5300 no_cache=1
5301 fi
5302
5303 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5304
5305 fi
5306
5307
5308 eval "$ac_cv_use_mdi"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5314 echo "$ac_t""yes" 1>&6
5315 else
5316 echo "$ac_t""no" 1>&6
5317 fi
5318
5319
5320 enablestring=
5321 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5322 echo "configure:5323: checking for --${enablestring:-enable}-loggui" >&5
5323 no_cache=0
5324 # Check whether --enable-loggui or --disable-loggui was given.
5325 if test "${enable_loggui+set}" = set; then
5326 enableval="$enable_loggui"
5327
5328 if test "$enableval" = yes; then
5329 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5330 else
5331 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5332 fi
5333
5334 else
5335
5336 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5337 if test "x$LINE" != x ; then
5338 eval "DEFAULT_$LINE"
5339 else
5340 no_cache=1
5341 fi
5342
5343 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5344
5345 fi
5346
5347
5348 eval "$ac_cv_use_loggui"
5349 if test "$no_cache" != 1; then
5350 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5351 fi
5352
5353 if test "$wxUSE_LOGGUI" = yes; then
5354 echo "$ac_t""yes" 1>&6
5355 else
5356 echo "$ac_t""no" 1>&6
5357 fi
5358
5359
5360 enablestring=
5361 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5362 echo "configure:5363: checking for --${enablestring:-enable}-logwin" >&5
5363 no_cache=0
5364 # Check whether --enable-logwin or --disable-logwin was given.
5365 if test "${enable_logwin+set}" = set; then
5366 enableval="$enable_logwin"
5367
5368 if test "$enableval" = yes; then
5369 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5370 else
5371 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5372 fi
5373
5374 else
5375
5376 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5377 if test "x$LINE" != x ; then
5378 eval "DEFAULT_$LINE"
5379 else
5380 no_cache=1
5381 fi
5382
5383 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5384
5385 fi
5386
5387
5388 eval "$ac_cv_use_logwin"
5389 if test "$no_cache" != 1; then
5390 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5391 fi
5392
5393 if test "$wxUSE_LOGWINDOW" = yes; then
5394 echo "$ac_t""yes" 1>&6
5395 else
5396 echo "$ac_t""no" 1>&6
5397 fi
5398
5399
5400 enablestring=
5401 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5402 echo "configure:5403: checking for --${enablestring:-enable}-logdialog" >&5
5403 no_cache=0
5404 # Check whether --enable-logdialog or --disable-logdialog was given.
5405 if test "${enable_logdialog+set}" = set; then
5406 enableval="$enable_logdialog"
5407
5408 if test "$enableval" = yes; then
5409 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5410 else
5411 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5412 fi
5413
5414 else
5415
5416 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5417 if test "x$LINE" != x ; then
5418 eval "DEFAULT_$LINE"
5419 else
5420 no_cache=1
5421 fi
5422
5423 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5424
5425 fi
5426
5427
5428 eval "$ac_cv_use_logdialog"
5429 if test "$no_cache" != 1; then
5430 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5431 fi
5432
5433 if test "$wxUSE_LOGDIALOG" = yes; then
5434 echo "$ac_t""yes" 1>&6
5435 else
5436 echo "$ac_t""no" 1>&6
5437 fi
5438
5439
5440
5441 enablestring=
5442 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5443 echo "configure:5444: checking for --${enablestring:-enable}-postscript" >&5
5444 no_cache=0
5445 # Check whether --enable-postscript or --disable-postscript was given.
5446 if test "${enable_postscript+set}" = set; then
5447 enableval="$enable_postscript"
5448
5449 if test "$enableval" = yes; then
5450 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5451 else
5452 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5453 fi
5454
5455 else
5456
5457 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5458 if test "x$LINE" != x ; then
5459 eval "DEFAULT_$LINE"
5460 else
5461 no_cache=1
5462 fi
5463
5464 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5465
5466 fi
5467
5468
5469 eval "$ac_cv_use_postscript"
5470 if test "$no_cache" != 1; then
5471 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5472 fi
5473
5474 if test "$wxUSE_POSTSCRIPT" = yes; then
5475 echo "$ac_t""yes" 1>&6
5476 else
5477 echo "$ac_t""no" 1>&6
5478 fi
5479
5480
5481
5482
5483
5484 enablestring=
5485 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5486 echo "configure:5487: checking for --${enablestring:-enable}-resources" >&5
5487 no_cache=0
5488 # Check whether --enable-resources or --disable-resources was given.
5489 if test "${enable_resources+set}" = set; then
5490 enableval="$enable_resources"
5491
5492 if test "$enableval" = yes; then
5493 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5494 else
5495 ac_cv_use_resources='wxUSE_RESOURCES=no'
5496 fi
5497
5498 else
5499
5500 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5501 if test "x$LINE" != x ; then
5502 eval "DEFAULT_$LINE"
5503 else
5504 no_cache=1
5505 fi
5506
5507 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5508
5509 fi
5510
5511
5512 eval "$ac_cv_use_resources"
5513 if test "$no_cache" != 1; then
5514 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5515 fi
5516
5517 if test "$wxUSE_RESOURCES" = yes; then
5518 echo "$ac_t""yes" 1>&6
5519 else
5520 echo "$ac_t""no" 1>&6
5521 fi
5522
5523
5524
5525 enablestring=
5526 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5527 echo "configure:5528: checking for --${enablestring:-enable}-xresources" >&5
5528 no_cache=0
5529 # Check whether --enable-xresources or --disable-xresources was given.
5530 if test "${enable_xresources+set}" = set; then
5531 enableval="$enable_xresources"
5532
5533 if test "$enableval" = yes; then
5534 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5535 else
5536 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5537 fi
5538
5539 else
5540
5541 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5542 if test "x$LINE" != x ; then
5543 eval "DEFAULT_$LINE"
5544 else
5545 no_cache=1
5546 fi
5547
5548 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5549
5550 fi
5551
5552
5553 eval "$ac_cv_use_xresources"
5554 if test "$no_cache" != 1; then
5555 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5556 fi
5557
5558 if test "$wxUSE_X_RESOURCES" = yes; then
5559 echo "$ac_t""yes" 1>&6
5560 else
5561 echo "$ac_t""no" 1>&6
5562 fi
5563
5564
5565
5566
5567 enablestring=
5568 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5569 echo "configure:5570: checking for --${enablestring:-enable}-clipboard" >&5
5570 no_cache=0
5571 # Check whether --enable-clipboard or --disable-clipboard was given.
5572 if test "${enable_clipboard+set}" = set; then
5573 enableval="$enable_clipboard"
5574
5575 if test "$enableval" = yes; then
5576 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5577 else
5578 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5579 fi
5580
5581 else
5582
5583 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5584 if test "x$LINE" != x ; then
5585 eval "DEFAULT_$LINE"
5586 else
5587 no_cache=1
5588 fi
5589
5590 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5591
5592 fi
5593
5594
5595 eval "$ac_cv_use_clipboard"
5596 if test "$no_cache" != 1; then
5597 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5598 fi
5599
5600 if test "$wxUSE_CLIPBOARD" = yes; then
5601 echo "$ac_t""yes" 1>&6
5602 else
5603 echo "$ac_t""no" 1>&6
5604 fi
5605
5606
5607 enablestring=
5608 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5609 echo "configure:5610: checking for --${enablestring:-enable}-dnd" >&5
5610 no_cache=0
5611 # Check whether --enable-dnd or --disable-dnd was given.
5612 if test "${enable_dnd+set}" = set; then
5613 enableval="$enable_dnd"
5614
5615 if test "$enableval" = yes; then
5616 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5617 else
5618 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5619 fi
5620
5621 else
5622
5623 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5624 if test "x$LINE" != x ; then
5625 eval "DEFAULT_$LINE"
5626 else
5627 no_cache=1
5628 fi
5629
5630 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5631
5632 fi
5633
5634
5635 eval "$ac_cv_use_dnd"
5636 if test "$no_cache" != 1; then
5637 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5638 fi
5639
5640 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5641 echo "$ac_t""yes" 1>&6
5642 else
5643 echo "$ac_t""no" 1>&6
5644 fi
5645
5646
5647 enablestring=
5648 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5649 echo "configure:5650: checking for --${enablestring:-enable}-metafile" >&5
5650 no_cache=0
5651 # Check whether --enable-metafile or --disable-metafile was given.
5652 if test "${enable_metafile+set}" = set; then
5653 enableval="$enable_metafile"
5654
5655 if test "$enableval" = yes; then
5656 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5657 else
5658 ac_cv_use_metafile='wxUSE_METAFILE=no'
5659 fi
5660
5661 else
5662
5663 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5671
5672 fi
5673
5674
5675 eval "$ac_cv_use_metafile"
5676 if test "$no_cache" != 1; then
5677 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5678 fi
5679
5680 if test "$wxUSE_METAFILE" = yes; then
5681 echo "$ac_t""yes" 1>&6
5682 else
5683 echo "$ac_t""no" 1>&6
5684 fi
5685
5686
5687
5688
5689
5690 enablestring=
5691 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5692 echo "configure:5693: checking for --${enablestring:-enable}-controls" >&5
5693 no_cache=0
5694 # Check whether --enable-controls or --disable-controls was given.
5695 if test "${enable_controls+set}" = set; then
5696 enableval="$enable_controls"
5697
5698 if test "$enableval" = yes; then
5699 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5700 else
5701 ac_cv_use_controls='wxUSE_CONTROLS=no'
5702 fi
5703
5704 else
5705
5706 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5707 if test "x$LINE" != x ; then
5708 eval "DEFAULT_$LINE"
5709 else
5710 no_cache=1
5711 fi
5712
5713 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5714
5715 fi
5716
5717
5718 eval "$ac_cv_use_controls"
5719 if test "$no_cache" != 1; then
5720 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5721 fi
5722
5723 if test "$wxUSE_CONTROLS" = yes; then
5724 echo "$ac_t""yes" 1>&6
5725 else
5726 echo "$ac_t""no" 1>&6
5727 fi
5728
5729
5730 if test "$wxUSE_CONTROLS" = "yes"; then
5731 DEFAULT_wxUSE_ACCEL=yes
5732 DEFAULT_wxUSE_BMPBUTTON=yes
5733 DEFAULT_wxUSE_BUTTON=yes
5734 DEFAULT_wxUSE_CALCTRL=no
5735 DEFAULT_wxUSE_CARET=yes
5736 DEFAULT_wxUSE_COMBOBOX=yes
5737 DEFAULT_wxUSE_CHECKBOX=yes
5738 DEFAULT_wxUSE_CHECKLISTBOX=yes
5739 DEFAULT_wxUSE_CHOICE=yes
5740 DEFAULT_wxUSE_GAUGE=yes
5741 DEFAULT_wxUSE_GRID=yes
5742 DEFAULT_wxUSE_IMAGLIST=yes
5743 DEFAULT_wxUSE_LISTBOX=yes
5744 DEFAULT_wxUSE_LISTCTRL=yes
5745 DEFAULT_wxUSE_NOTEBOOK=yes
5746 DEFAULT_wxUSE_RADIOBOX=yes
5747 DEFAULT_wxUSE_RADIOBTN=yes
5748 DEFAULT_wxUSE_SASH=yes
5749 DEFAULT_wxUSE_SCROLLBAR=yes
5750 DEFAULT_wxUSE_SLIDER=yes
5751 DEFAULT_wxUSE_SPINBTN=yes
5752 DEFAULT_wxUSE_SPINCTRL=yes
5753 DEFAULT_wxUSE_SPLITTER=yes
5754 DEFAULT_wxUSE_STATBMP=yes
5755 DEFAULT_wxUSE_STATBOX=yes
5756 DEFAULT_wxUSE_STATLINE=yes
5757 DEFAULT_wxUSE_STATUSBAR=yes
5758 DEFAULT_wxUSE_TAB_DIALOG=yes
5759 DEFAULT_wxUSE_TOGGLEBTN=yes
5760 DEFAULT_wxUSE_TOOLBAR=yes
5761 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5762 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5763 DEFAULT_wxUSE_TOOLTIPS=yes
5764 DEFAULT_wxUSE_TREECTRL=yes
5765 DEFAULT_wxUSE_POPUPWIN=yes
5766 DEFAULT_wxUSE_TIPWINDOW=yes
5767 elif test "$wxUSE_CONTROLS" = "no"; then
5768 DEFAULT_wxUSE_ACCEL=no
5769 DEFAULT_wxUSE_BMPBUTTON=no
5770 DEFAULT_wxUSE_BUTTON=no
5771 DEFAULT_wxUSE_CALCTRL=no
5772 DEFAULT_wxUSE_CARET=no
5773 DEFAULT_wxUSE_COMBOBOX=no
5774 DEFAULT_wxUSE_CHECKBOX=no
5775 DEFAULT_wxUSE_CHECKLISTBOX=no
5776 DEFAULT_wxUSE_CHOICE=no
5777 DEFAULT_wxUSE_GAUGE=no
5778 DEFAULT_wxUSE_GRID=no
5779 DEFAULT_wxUSE_IMAGLIST=no
5780 DEFAULT_wxUSE_LISTBOX=no
5781 DEFAULT_wxUSE_LISTCTRL=no
5782 DEFAULT_wxUSE_NOTEBOOK=no
5783 DEFAULT_wxUSE_RADIOBOX=no
5784 DEFAULT_wxUSE_RADIOBTN=no
5785 DEFAULT_wxUSE_SASH=no
5786 DEFAULT_wxUSE_SCROLLBAR=no
5787 DEFAULT_wxUSE_SLIDER=no
5788 DEFAULT_wxUSE_SPINBTN=no
5789 DEFAULT_wxUSE_SPINCTRL=no
5790 DEFAULT_wxUSE_SPLITTER=no
5791 DEFAULT_wxUSE_STATBMP=no
5792 DEFAULT_wxUSE_STATBOX=no
5793 DEFAULT_wxUSE_STATLINE=no
5794 DEFAULT_wxUSE_STATUSBAR=no
5795 DEFAULT_wxUSE_TAB_DIALOG=no
5796 DEFAULT_wxUSE_TOGGLEBTN=no
5797 DEFAULT_wxUSE_TOOLBAR=no
5798 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5799 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5800 DEFAULT_wxUSE_TOOLTIPS=no
5801 DEFAULT_wxUSE_TREECTRL=no
5802 DEFAULT_wxUSE_POPUPWIN=no
5803 DEFAULT_wxUSE_TIPWINDOW=no
5804 fi
5805
5806 ## FIXME: This is a blatant hack
5807 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5808 wxUSE_PRINTING_ARCHITECTURE=no
5809 wxUSE_HELP=no
5810 wxUSE_CLIPBOARD=no
5811 wxUSE_DRAG_AND_DROP=no
5812 wxUSE_DATAOBJ=no
5813 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5814 DEFAULT_wxUSE_TEXTDLG=no
5815 DEFAULT_wxUSE_GAUGE=no
5816 DEFAULT_wxUSE_SCROLLBAR=no
5817 DEFAULT_wxUSE_SLIDER=no
5818 DEFAULT_wxUSE_COMBOBOX=no
5819 DEFAULT_wxUSE_CALCTRL=no
5820 DEFAULT_wxUSE_SPINBTN=no
5821 DEFAULT_wxUSE_SPINCTRL=no
5822 DEFAULT_wxUSE_TOOLTIPS=no
5823 DEFAULT_wxUSE_COLOURDLG=no
5824 DEFAULT_wxUSE_DIRDLG=no
5825 DEFAULT_wxUSE_DRAGIMAGE=no
5826 DEFAULT_wxUSE_FINDREPLDLG=no
5827 DEFAULT_wxUSE_FONTDLG=no
5828 DEFAULT_wxUSE_GRID=no
5829 DEFAULT_wxUSE_NUMBERDLG=no
5830 DEFAULT_wxUSE_PROGRESSDLG=no
5831 DEFAULT_wxUSE_SASH=no
5832 DEFAULT_wxUSE_SPLITTER=no
5833 DEFAULT_wxUSE_WIZARDDLG=no
5834 DEFAULT_wxUSE_SPLITTER=no
5835 DEFAULT_wxUSE_STARTUP_TIPS=no
5836 DEFAULT_wxUSE_TREECTRL=no
5837 fi
5838
5839
5840 enablestring=
5841 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5842 echo "configure:5843: checking for --${enablestring:-enable}-accel" >&5
5843 no_cache=0
5844 # Check whether --enable-accel or --disable-accel was given.
5845 if test "${enable_accel+set}" = set; then
5846 enableval="$enable_accel"
5847
5848 if test "$enableval" = yes; then
5849 ac_cv_use_accel='wxUSE_ACCEL=yes'
5850 else
5851 ac_cv_use_accel='wxUSE_ACCEL=no'
5852 fi
5853
5854 else
5855
5856 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5857 if test "x$LINE" != x ; then
5858 eval "DEFAULT_$LINE"
5859 else
5860 no_cache=1
5861 fi
5862
5863 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5864
5865 fi
5866
5867
5868 eval "$ac_cv_use_accel"
5869 if test "$no_cache" != 1; then
5870 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5871 fi
5872
5873 if test "$wxUSE_ACCEL" = yes; then
5874 echo "$ac_t""yes" 1>&6
5875 else
5876 echo "$ac_t""no" 1>&6
5877 fi
5878
5879
5880 enablestring=
5881 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5882 echo "configure:5883: checking for --${enablestring:-enable}-button" >&5
5883 no_cache=0
5884 # Check whether --enable-button or --disable-button was given.
5885 if test "${enable_button+set}" = set; then
5886 enableval="$enable_button"
5887
5888 if test "$enableval" = yes; then
5889 ac_cv_use_button='wxUSE_BUTTON=yes'
5890 else
5891 ac_cv_use_button='wxUSE_BUTTON=no'
5892 fi
5893
5894 else
5895
5896 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5897 if test "x$LINE" != x ; then
5898 eval "DEFAULT_$LINE"
5899 else
5900 no_cache=1
5901 fi
5902
5903 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5904
5905 fi
5906
5907
5908 eval "$ac_cv_use_button"
5909 if test "$no_cache" != 1; then
5910 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5911 fi
5912
5913 if test "$wxUSE_BUTTON" = yes; then
5914 echo "$ac_t""yes" 1>&6
5915 else
5916 echo "$ac_t""no" 1>&6
5917 fi
5918
5919
5920 enablestring=
5921 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
5922 echo "configure:5923: checking for --${enablestring:-enable}-bmpbutton" >&5
5923 no_cache=0
5924 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5925 if test "${enable_bmpbutton+set}" = set; then
5926 enableval="$enable_bmpbutton"
5927
5928 if test "$enableval" = yes; then
5929 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5930 else
5931 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5932 fi
5933
5934 else
5935
5936 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5937 if test "x$LINE" != x ; then
5938 eval "DEFAULT_$LINE"
5939 else
5940 no_cache=1
5941 fi
5942
5943 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5944
5945 fi
5946
5947
5948 eval "$ac_cv_use_bmpbutton"
5949 if test "$no_cache" != 1; then
5950 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5951 fi
5952
5953 if test "$wxUSE_BMPBUTTON" = yes; then
5954 echo "$ac_t""yes" 1>&6
5955 else
5956 echo "$ac_t""no" 1>&6
5957 fi
5958
5959
5960 enablestring=
5961 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
5962 echo "configure:5963: checking for --${enablestring:-enable}-calendar" >&5
5963 no_cache=0
5964 # Check whether --enable-calendar or --disable-calendar was given.
5965 if test "${enable_calendar+set}" = set; then
5966 enableval="$enable_calendar"
5967
5968 if test "$enableval" = yes; then
5969 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5970 else
5971 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5972 fi
5973
5974 else
5975
5976 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5977 if test "x$LINE" != x ; then
5978 eval "DEFAULT_$LINE"
5979 else
5980 no_cache=1
5981 fi
5982
5983 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5984
5985 fi
5986
5987
5988 eval "$ac_cv_use_calendar"
5989 if test "$no_cache" != 1; then
5990 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5991 fi
5992
5993 if test "$wxUSE_CALCTRL" = yes; then
5994 echo "$ac_t""yes" 1>&6
5995 else
5996 echo "$ac_t""no" 1>&6
5997 fi
5998
5999
6000 enablestring=
6001 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6002 echo "configure:6003: checking for --${enablestring:-enable}-caret" >&5
6003 no_cache=0
6004 # Check whether --enable-caret or --disable-caret was given.
6005 if test "${enable_caret+set}" = set; then
6006 enableval="$enable_caret"
6007
6008 if test "$enableval" = yes; then
6009 ac_cv_use_caret='wxUSE_CARET=yes'
6010 else
6011 ac_cv_use_caret='wxUSE_CARET=no'
6012 fi
6013
6014 else
6015
6016 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6017 if test "x$LINE" != x ; then
6018 eval "DEFAULT_$LINE"
6019 else
6020 no_cache=1
6021 fi
6022
6023 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6024
6025 fi
6026
6027
6028 eval "$ac_cv_use_caret"
6029 if test "$no_cache" != 1; then
6030 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6031 fi
6032
6033 if test "$wxUSE_CARET" = yes; then
6034 echo "$ac_t""yes" 1>&6
6035 else
6036 echo "$ac_t""no" 1>&6
6037 fi
6038
6039
6040 enablestring=
6041 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6042 echo "configure:6043: checking for --${enablestring:-enable}-checkbox" >&5
6043 no_cache=0
6044 # Check whether --enable-checkbox or --disable-checkbox was given.
6045 if test "${enable_checkbox+set}" = set; then
6046 enableval="$enable_checkbox"
6047
6048 if test "$enableval" = yes; then
6049 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6050 else
6051 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6052 fi
6053
6054 else
6055
6056 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6057 if test "x$LINE" != x ; then
6058 eval "DEFAULT_$LINE"
6059 else
6060 no_cache=1
6061 fi
6062
6063 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6064
6065 fi
6066
6067
6068 eval "$ac_cv_use_checkbox"
6069 if test "$no_cache" != 1; then
6070 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6071 fi
6072
6073 if test "$wxUSE_CHECKBOX" = yes; then
6074 echo "$ac_t""yes" 1>&6
6075 else
6076 echo "$ac_t""no" 1>&6
6077 fi
6078
6079
6080 enablestring=
6081 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6082 echo "configure:6083: checking for --${enablestring:-enable}-checklst" >&5
6083 no_cache=0
6084 # Check whether --enable-checklst or --disable-checklst was given.
6085 if test "${enable_checklst+set}" = set; then
6086 enableval="$enable_checklst"
6087
6088 if test "$enableval" = yes; then
6089 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6090 else
6091 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6092 fi
6093
6094 else
6095
6096 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6097 if test "x$LINE" != x ; then
6098 eval "DEFAULT_$LINE"
6099 else
6100 no_cache=1
6101 fi
6102
6103 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6104
6105 fi
6106
6107
6108 eval "$ac_cv_use_checklst"
6109 if test "$no_cache" != 1; then
6110 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6111 fi
6112
6113 if test "$wxUSE_CHECKLST" = yes; then
6114 echo "$ac_t""yes" 1>&6
6115 else
6116 echo "$ac_t""no" 1>&6
6117 fi
6118
6119
6120 enablestring=
6121 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6122 echo "configure:6123: checking for --${enablestring:-enable}-choice" >&5
6123 no_cache=0
6124 # Check whether --enable-choice or --disable-choice was given.
6125 if test "${enable_choice+set}" = set; then
6126 enableval="$enable_choice"
6127
6128 if test "$enableval" = yes; then
6129 ac_cv_use_choice='wxUSE_CHOICE=yes'
6130 else
6131 ac_cv_use_choice='wxUSE_CHOICE=no'
6132 fi
6133
6134 else
6135
6136 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6137 if test "x$LINE" != x ; then
6138 eval "DEFAULT_$LINE"
6139 else
6140 no_cache=1
6141 fi
6142
6143 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6144
6145 fi
6146
6147
6148 eval "$ac_cv_use_choice"
6149 if test "$no_cache" != 1; then
6150 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6151 fi
6152
6153 if test "$wxUSE_CHOICE" = yes; then
6154 echo "$ac_t""yes" 1>&6
6155 else
6156 echo "$ac_t""no" 1>&6
6157 fi
6158
6159
6160 enablestring=
6161 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6162 echo "configure:6163: checking for --${enablestring:-enable}-combobox" >&5
6163 no_cache=0
6164 # Check whether --enable-combobox or --disable-combobox was given.
6165 if test "${enable_combobox+set}" = set; then
6166 enableval="$enable_combobox"
6167
6168 if test "$enableval" = yes; then
6169 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6170 else
6171 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6172 fi
6173
6174 else
6175
6176 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6177 if test "x$LINE" != x ; then
6178 eval "DEFAULT_$LINE"
6179 else
6180 no_cache=1
6181 fi
6182
6183 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6184
6185 fi
6186
6187
6188 eval "$ac_cv_use_combobox"
6189 if test "$no_cache" != 1; then
6190 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6191 fi
6192
6193 if test "$wxUSE_COMBOBOX" = yes; then
6194 echo "$ac_t""yes" 1>&6
6195 else
6196 echo "$ac_t""no" 1>&6
6197 fi
6198
6199
6200 enablestring=
6201 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
6202 echo "configure:6203: checking for --${enablestring:-enable}-display" >&5
6203 no_cache=0
6204 # Check whether --enable-display or --disable-display was given.
6205 if test "${enable_display+set}" = set; then
6206 enableval="$enable_display"
6207
6208 if test "$enableval" = yes; then
6209 ac_cv_use_display='wxUSE_DISPLAY=yes'
6210 else
6211 ac_cv_use_display='wxUSE_DISPLAY=no'
6212 fi
6213
6214 else
6215
6216 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6217 if test "x$LINE" != x ; then
6218 eval "DEFAULT_$LINE"
6219 else
6220 no_cache=1
6221 fi
6222
6223 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6224
6225 fi
6226
6227
6228 eval "$ac_cv_use_display"
6229 if test "$no_cache" != 1; then
6230 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6231 fi
6232
6233 if test "$wxUSE_DISPLAY" = yes; then
6234 echo "$ac_t""yes" 1>&6
6235 else
6236 echo "$ac_t""no" 1>&6
6237 fi
6238
6239
6240 enablestring=
6241 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6242 echo "configure:6243: checking for --${enablestring:-enable}-gauge" >&5
6243 no_cache=0
6244 # Check whether --enable-gauge or --disable-gauge was given.
6245 if test "${enable_gauge+set}" = set; then
6246 enableval="$enable_gauge"
6247
6248 if test "$enableval" = yes; then
6249 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6250 else
6251 ac_cv_use_gauge='wxUSE_GAUGE=no'
6252 fi
6253
6254 else
6255
6256 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6257 if test "x$LINE" != x ; then
6258 eval "DEFAULT_$LINE"
6259 else
6260 no_cache=1
6261 fi
6262
6263 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6264
6265 fi
6266
6267
6268 eval "$ac_cv_use_gauge"
6269 if test "$no_cache" != 1; then
6270 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6271 fi
6272
6273 if test "$wxUSE_GAUGE" = yes; then
6274 echo "$ac_t""yes" 1>&6
6275 else
6276 echo "$ac_t""no" 1>&6
6277 fi
6278
6279
6280 enablestring=
6281 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6282 echo "configure:6283: checking for --${enablestring:-enable}-grid" >&5
6283 no_cache=0
6284 # Check whether --enable-grid or --disable-grid was given.
6285 if test "${enable_grid+set}" = set; then
6286 enableval="$enable_grid"
6287
6288 if test "$enableval" = yes; then
6289 ac_cv_use_grid='wxUSE_GRID=yes'
6290 else
6291 ac_cv_use_grid='wxUSE_GRID=no'
6292 fi
6293
6294 else
6295
6296 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6297 if test "x$LINE" != x ; then
6298 eval "DEFAULT_$LINE"
6299 else
6300 no_cache=1
6301 fi
6302
6303 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6304
6305 fi
6306
6307
6308 eval "$ac_cv_use_grid"
6309 if test "$no_cache" != 1; then
6310 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6311 fi
6312
6313 if test "$wxUSE_GRID" = yes; then
6314 echo "$ac_t""yes" 1>&6
6315 else
6316 echo "$ac_t""no" 1>&6
6317 fi
6318
6319
6320 enablestring=
6321 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6322 echo "configure:6323: checking for --${enablestring:-enable}-imaglist" >&5
6323 no_cache=0
6324 # Check whether --enable-imaglist or --disable-imaglist was given.
6325 if test "${enable_imaglist+set}" = set; then
6326 enableval="$enable_imaglist"
6327
6328 if test "$enableval" = yes; then
6329 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6330 else
6331 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6332 fi
6333
6334 else
6335
6336 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6337 if test "x$LINE" != x ; then
6338 eval "DEFAULT_$LINE"
6339 else
6340 no_cache=1
6341 fi
6342
6343 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6344
6345 fi
6346
6347
6348 eval "$ac_cv_use_imaglist"
6349 if test "$no_cache" != 1; then
6350 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6351 fi
6352
6353 if test "$wxUSE_IMAGLIST" = yes; then
6354 echo "$ac_t""yes" 1>&6
6355 else
6356 echo "$ac_t""no" 1>&6
6357 fi
6358
6359
6360 enablestring=
6361 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6362 echo "configure:6363: checking for --${enablestring:-enable}-listbox" >&5
6363 no_cache=0
6364 # Check whether --enable-listbox or --disable-listbox was given.
6365 if test "${enable_listbox+set}" = set; then
6366 enableval="$enable_listbox"
6367
6368 if test "$enableval" = yes; then
6369 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6370 else
6371 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6372 fi
6373
6374 else
6375
6376 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6377 if test "x$LINE" != x ; then
6378 eval "DEFAULT_$LINE"
6379 else
6380 no_cache=1
6381 fi
6382
6383 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6384
6385 fi
6386
6387
6388 eval "$ac_cv_use_listbox"
6389 if test "$no_cache" != 1; then
6390 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6391 fi
6392
6393 if test "$wxUSE_LISTBOX" = yes; then
6394 echo "$ac_t""yes" 1>&6
6395 else
6396 echo "$ac_t""no" 1>&6
6397 fi
6398
6399
6400 enablestring=
6401 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6402 echo "configure:6403: checking for --${enablestring:-enable}-listctrl" >&5
6403 no_cache=0
6404 # Check whether --enable-listctrl or --disable-listctrl was given.
6405 if test "${enable_listctrl+set}" = set; then
6406 enableval="$enable_listctrl"
6407
6408 if test "$enableval" = yes; then
6409 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6410 else
6411 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6412 fi
6413
6414 else
6415
6416 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6417 if test "x$LINE" != x ; then
6418 eval "DEFAULT_$LINE"
6419 else
6420 no_cache=1
6421 fi
6422
6423 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6424
6425 fi
6426
6427
6428 eval "$ac_cv_use_listctrl"
6429 if test "$no_cache" != 1; then
6430 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6431 fi
6432
6433 if test "$wxUSE_LISTCTRL" = yes; then
6434 echo "$ac_t""yes" 1>&6
6435 else
6436 echo "$ac_t""no" 1>&6
6437 fi
6438
6439
6440 enablestring=
6441 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6442 echo "configure:6443: checking for --${enablestring:-enable}-notebook" >&5
6443 no_cache=0
6444 # Check whether --enable-notebook or --disable-notebook was given.
6445 if test "${enable_notebook+set}" = set; then
6446 enableval="$enable_notebook"
6447
6448 if test "$enableval" = yes; then
6449 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6450 else
6451 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6452 fi
6453
6454 else
6455
6456 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6457 if test "x$LINE" != x ; then
6458 eval "DEFAULT_$LINE"
6459 else
6460 no_cache=1
6461 fi
6462
6463 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6464
6465 fi
6466
6467
6468 eval "$ac_cv_use_notebook"
6469 if test "$no_cache" != 1; then
6470 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6471 fi
6472
6473 if test "$wxUSE_NOTEBOOK" = yes; then
6474 echo "$ac_t""yes" 1>&6
6475 else
6476 echo "$ac_t""no" 1>&6
6477 fi
6478
6479
6480 enablestring=
6481 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6482 echo "configure:6483: checking for --${enablestring:-enable}-radiobox" >&5
6483 no_cache=0
6484 # Check whether --enable-radiobox or --disable-radiobox was given.
6485 if test "${enable_radiobox+set}" = set; then
6486 enableval="$enable_radiobox"
6487
6488 if test "$enableval" = yes; then
6489 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6490 else
6491 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6492 fi
6493
6494 else
6495
6496 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6497 if test "x$LINE" != x ; then
6498 eval "DEFAULT_$LINE"
6499 else
6500 no_cache=1
6501 fi
6502
6503 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6504
6505 fi
6506
6507
6508 eval "$ac_cv_use_radiobox"
6509 if test "$no_cache" != 1; then
6510 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6511 fi
6512
6513 if test "$wxUSE_RADIOBOX" = yes; then
6514 echo "$ac_t""yes" 1>&6
6515 else
6516 echo "$ac_t""no" 1>&6
6517 fi
6518
6519
6520 enablestring=
6521 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6522 echo "configure:6523: checking for --${enablestring:-enable}-radiobtn" >&5
6523 no_cache=0
6524 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6525 if test "${enable_radiobtn+set}" = set; then
6526 enableval="$enable_radiobtn"
6527
6528 if test "$enableval" = yes; then
6529 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6530 else
6531 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6532 fi
6533
6534 else
6535
6536 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6537 if test "x$LINE" != x ; then
6538 eval "DEFAULT_$LINE"
6539 else
6540 no_cache=1
6541 fi
6542
6543 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6544
6545 fi
6546
6547
6548 eval "$ac_cv_use_radiobtn"
6549 if test "$no_cache" != 1; then
6550 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6551 fi
6552
6553 if test "$wxUSE_RADIOBTN" = yes; then
6554 echo "$ac_t""yes" 1>&6
6555 else
6556 echo "$ac_t""no" 1>&6
6557 fi
6558
6559
6560 enablestring=
6561 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6562 echo "configure:6563: checking for --${enablestring:-enable}-sash" >&5
6563 no_cache=0
6564 # Check whether --enable-sash or --disable-sash was given.
6565 if test "${enable_sash+set}" = set; then
6566 enableval="$enable_sash"
6567
6568 if test "$enableval" = yes; then
6569 ac_cv_use_sash='wxUSE_SASH=yes'
6570 else
6571 ac_cv_use_sash='wxUSE_SASH=no'
6572 fi
6573
6574 else
6575
6576 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6577 if test "x$LINE" != x ; then
6578 eval "DEFAULT_$LINE"
6579 else
6580 no_cache=1
6581 fi
6582
6583 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6584
6585 fi
6586
6587
6588 eval "$ac_cv_use_sash"
6589 if test "$no_cache" != 1; then
6590 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6591 fi
6592
6593 if test "$wxUSE_SASH" = yes; then
6594 echo "$ac_t""yes" 1>&6
6595 else
6596 echo "$ac_t""no" 1>&6
6597 fi
6598
6599
6600 enablestring=
6601 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6602 echo "configure:6603: checking for --${enablestring:-enable}-scrollbar" >&5
6603 no_cache=0
6604 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6605 if test "${enable_scrollbar+set}" = set; then
6606 enableval="$enable_scrollbar"
6607
6608 if test "$enableval" = yes; then
6609 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6610 else
6611 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6612 fi
6613
6614 else
6615
6616 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6617 if test "x$LINE" != x ; then
6618 eval "DEFAULT_$LINE"
6619 else
6620 no_cache=1
6621 fi
6622
6623 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6624
6625 fi
6626
6627
6628 eval "$ac_cv_use_scrollbar"
6629 if test "$no_cache" != 1; then
6630 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6631 fi
6632
6633 if test "$wxUSE_SCROLLBAR" = yes; then
6634 echo "$ac_t""yes" 1>&6
6635 else
6636 echo "$ac_t""no" 1>&6
6637 fi
6638
6639
6640 enablestring=
6641 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6642 echo "configure:6643: checking for --${enablestring:-enable}-slider" >&5
6643 no_cache=0
6644 # Check whether --enable-slider or --disable-slider was given.
6645 if test "${enable_slider+set}" = set; then
6646 enableval="$enable_slider"
6647
6648 if test "$enableval" = yes; then
6649 ac_cv_use_slider='wxUSE_SLIDER=yes'
6650 else
6651 ac_cv_use_slider='wxUSE_SLIDER=no'
6652 fi
6653
6654 else
6655
6656 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6657 if test "x$LINE" != x ; then
6658 eval "DEFAULT_$LINE"
6659 else
6660 no_cache=1
6661 fi
6662
6663 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6664
6665 fi
6666
6667
6668 eval "$ac_cv_use_slider"
6669 if test "$no_cache" != 1; then
6670 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6671 fi
6672
6673 if test "$wxUSE_SLIDER" = yes; then
6674 echo "$ac_t""yes" 1>&6
6675 else
6676 echo "$ac_t""no" 1>&6
6677 fi
6678
6679
6680 enablestring=
6681 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6682 echo "configure:6683: checking for --${enablestring:-enable}-spinbtn" >&5
6683 no_cache=0
6684 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6685 if test "${enable_spinbtn+set}" = set; then
6686 enableval="$enable_spinbtn"
6687
6688 if test "$enableval" = yes; then
6689 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6690 else
6691 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6692 fi
6693
6694 else
6695
6696 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6697 if test "x$LINE" != x ; then
6698 eval "DEFAULT_$LINE"
6699 else
6700 no_cache=1
6701 fi
6702
6703 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6704
6705 fi
6706
6707
6708 eval "$ac_cv_use_spinbtn"
6709 if test "$no_cache" != 1; then
6710 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6711 fi
6712
6713 if test "$wxUSE_SPINBTN" = yes; then
6714 echo "$ac_t""yes" 1>&6
6715 else
6716 echo "$ac_t""no" 1>&6
6717 fi
6718
6719
6720 enablestring=
6721 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6722 echo "configure:6723: checking for --${enablestring:-enable}-spinctrl" >&5
6723 no_cache=0
6724 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6725 if test "${enable_spinctrl+set}" = set; then
6726 enableval="$enable_spinctrl"
6727
6728 if test "$enableval" = yes; then
6729 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6730 else
6731 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6732 fi
6733
6734 else
6735
6736 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6737 if test "x$LINE" != x ; then
6738 eval "DEFAULT_$LINE"
6739 else
6740 no_cache=1
6741 fi
6742
6743 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6744
6745 fi
6746
6747
6748 eval "$ac_cv_use_spinctrl"
6749 if test "$no_cache" != 1; then
6750 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6751 fi
6752
6753 if test "$wxUSE_SPINCTRL" = yes; then
6754 echo "$ac_t""yes" 1>&6
6755 else
6756 echo "$ac_t""no" 1>&6
6757 fi
6758
6759
6760 enablestring=
6761 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6762 echo "configure:6763: checking for --${enablestring:-enable}-splitter" >&5
6763 no_cache=0
6764 # Check whether --enable-splitter or --disable-splitter was given.
6765 if test "${enable_splitter+set}" = set; then
6766 enableval="$enable_splitter"
6767
6768 if test "$enableval" = yes; then
6769 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6770 else
6771 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6772 fi
6773
6774 else
6775
6776 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6777 if test "x$LINE" != x ; then
6778 eval "DEFAULT_$LINE"
6779 else
6780 no_cache=1
6781 fi
6782
6783 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6784
6785 fi
6786
6787
6788 eval "$ac_cv_use_splitter"
6789 if test "$no_cache" != 1; then
6790 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6791 fi
6792
6793 if test "$wxUSE_SPLITTER" = yes; then
6794 echo "$ac_t""yes" 1>&6
6795 else
6796 echo "$ac_t""no" 1>&6
6797 fi
6798
6799
6800 enablestring=
6801 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6802 echo "configure:6803: checking for --${enablestring:-enable}-statbmp" >&5
6803 no_cache=0
6804 # Check whether --enable-statbmp or --disable-statbmp was given.
6805 if test "${enable_statbmp+set}" = set; then
6806 enableval="$enable_statbmp"
6807
6808 if test "$enableval" = yes; then
6809 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6810 else
6811 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6812 fi
6813
6814 else
6815
6816 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6817 if test "x$LINE" != x ; then
6818 eval "DEFAULT_$LINE"
6819 else
6820 no_cache=1
6821 fi
6822
6823 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6824
6825 fi
6826
6827
6828 eval "$ac_cv_use_statbmp"
6829 if test "$no_cache" != 1; then
6830 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6831 fi
6832
6833 if test "$wxUSE_STATBMP" = yes; then
6834 echo "$ac_t""yes" 1>&6
6835 else
6836 echo "$ac_t""no" 1>&6
6837 fi
6838
6839
6840 enablestring=
6841 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6842 echo "configure:6843: checking for --${enablestring:-enable}-statbox" >&5
6843 no_cache=0
6844 # Check whether --enable-statbox or --disable-statbox was given.
6845 if test "${enable_statbox+set}" = set; then
6846 enableval="$enable_statbox"
6847
6848 if test "$enableval" = yes; then
6849 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6850 else
6851 ac_cv_use_statbox='wxUSE_STATBOX=no'
6852 fi
6853
6854 else
6855
6856 LINE=`grep "wxUSE_STATBOX" ${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_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6864
6865 fi
6866
6867
6868 eval "$ac_cv_use_statbox"
6869 if test "$no_cache" != 1; then
6870 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6871 fi
6872
6873 if test "$wxUSE_STATBOX" = yes; then
6874 echo "$ac_t""yes" 1>&6
6875 else
6876 echo "$ac_t""no" 1>&6
6877 fi
6878
6879
6880 enablestring=
6881 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
6882 echo "configure:6883: checking for --${enablestring:-enable}-statline" >&5
6883 no_cache=0
6884 # Check whether --enable-statline or --disable-statline was given.
6885 if test "${enable_statline+set}" = set; then
6886 enableval="$enable_statline"
6887
6888 if test "$enableval" = yes; then
6889 ac_cv_use_statline='wxUSE_STATLINE=yes'
6890 else
6891 ac_cv_use_statline='wxUSE_STATLINE=no'
6892 fi
6893
6894 else
6895
6896 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6897 if test "x$LINE" != x ; then
6898 eval "DEFAULT_$LINE"
6899 else
6900 no_cache=1
6901 fi
6902
6903 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6904
6905 fi
6906
6907
6908 eval "$ac_cv_use_statline"
6909 if test "$no_cache" != 1; then
6910 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6911 fi
6912
6913 if test "$wxUSE_STATLINE" = yes; then
6914 echo "$ac_t""yes" 1>&6
6915 else
6916 echo "$ac_t""no" 1>&6
6917 fi
6918
6919
6920 enablestring=
6921 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
6922 echo "configure:6923: checking for --${enablestring:-enable}-stattext" >&5
6923 no_cache=0
6924 # Check whether --enable-stattext or --disable-stattext was given.
6925 if test "${enable_stattext+set}" = set; then
6926 enableval="$enable_stattext"
6927
6928 if test "$enableval" = yes; then
6929 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6930 else
6931 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6932 fi
6933
6934 else
6935
6936 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6937 if test "x$LINE" != x ; then
6938 eval "DEFAULT_$LINE"
6939 else
6940 no_cache=1
6941 fi
6942
6943 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6944
6945 fi
6946
6947
6948 eval "$ac_cv_use_stattext"
6949 if test "$no_cache" != 1; then
6950 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6951 fi
6952
6953 if test "$wxUSE_STATTEXT" = yes; then
6954 echo "$ac_t""yes" 1>&6
6955 else
6956 echo "$ac_t""no" 1>&6
6957 fi
6958
6959
6960 enablestring=
6961 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
6962 echo "configure:6963: checking for --${enablestring:-enable}-statusbar" >&5
6963 no_cache=0
6964 # Check whether --enable-statusbar or --disable-statusbar was given.
6965 if test "${enable_statusbar+set}" = set; then
6966 enableval="$enable_statusbar"
6967
6968 if test "$enableval" = yes; then
6969 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6970 else
6971 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6972 fi
6973
6974 else
6975
6976 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6977 if test "x$LINE" != x ; then
6978 eval "DEFAULT_$LINE"
6979 else
6980 no_cache=1
6981 fi
6982
6983 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6984
6985 fi
6986
6987
6988 eval "$ac_cv_use_statusbar"
6989 if test "$no_cache" != 1; then
6990 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6991 fi
6992
6993 if test "$wxUSE_STATUSBAR" = yes; then
6994 echo "$ac_t""yes" 1>&6
6995 else
6996 echo "$ac_t""no" 1>&6
6997 fi
6998
6999
7000 enablestring=
7001 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7002 echo "configure:7003: checking for --${enablestring:-enable}-tabdialog" >&5
7003 no_cache=0
7004 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7005 if test "${enable_tabdialog+set}" = set; then
7006 enableval="$enable_tabdialog"
7007
7008 if test "$enableval" = yes; then
7009 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7010 else
7011 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7012 fi
7013
7014 else
7015
7016 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7024
7025 fi
7026
7027
7028 eval "$ac_cv_use_tabdialog"
7029 if test "$no_cache" != 1; then
7030 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7031 fi
7032
7033 if test "$wxUSE_TABDIALOG" = yes; then
7034 echo "$ac_t""yes" 1>&6
7035 else
7036 echo "$ac_t""no" 1>&6
7037 fi
7038
7039
7040 enablestring=
7041 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7042 echo "configure:7043: checking for --${enablestring:-enable}-textctrl" >&5
7043 no_cache=0
7044 # Check whether --enable-textctrl or --disable-textctrl was given.
7045 if test "${enable_textctrl+set}" = set; then
7046 enableval="$enable_textctrl"
7047
7048 if test "$enableval" = yes; then
7049 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7050 else
7051 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7052 fi
7053
7054 else
7055
7056 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7057 if test "x$LINE" != x ; then
7058 eval "DEFAULT_$LINE"
7059 else
7060 no_cache=1
7061 fi
7062
7063 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7064
7065 fi
7066
7067
7068 eval "$ac_cv_use_textctrl"
7069 if test "$no_cache" != 1; then
7070 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7071 fi
7072
7073 if test "$wxUSE_TEXTCTRL" = yes; then
7074 echo "$ac_t""yes" 1>&6
7075 else
7076 echo "$ac_t""no" 1>&6
7077 fi
7078
7079
7080 enablestring=
7081 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7082 echo "configure:7083: checking for --${enablestring:-enable}-togglebtn" >&5
7083 no_cache=0
7084 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7085 if test "${enable_togglebtn+set}" = set; then
7086 enableval="$enable_togglebtn"
7087
7088 if test "$enableval" = yes; then
7089 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7090 else
7091 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7092 fi
7093
7094 else
7095
7096 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7097 if test "x$LINE" != x ; then
7098 eval "DEFAULT_$LINE"
7099 else
7100 no_cache=1
7101 fi
7102
7103 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7104
7105 fi
7106
7107
7108 eval "$ac_cv_use_togglebtn"
7109 if test "$no_cache" != 1; then
7110 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7111 fi
7112
7113 if test "$wxUSE_TOGGLEBTN" = yes; then
7114 echo "$ac_t""yes" 1>&6
7115 else
7116 echo "$ac_t""no" 1>&6
7117 fi
7118
7119
7120 enablestring=
7121 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7122 echo "configure:7123: checking for --${enablestring:-enable}-toolbar" >&5
7123 no_cache=0
7124 # Check whether --enable-toolbar or --disable-toolbar was given.
7125 if test "${enable_toolbar+set}" = set; then
7126 enableval="$enable_toolbar"
7127
7128 if test "$enableval" = yes; then
7129 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7130 else
7131 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7132 fi
7133
7134 else
7135
7136 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7137 if test "x$LINE" != x ; then
7138 eval "DEFAULT_$LINE"
7139 else
7140 no_cache=1
7141 fi
7142
7143 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7144
7145 fi
7146
7147
7148 eval "$ac_cv_use_toolbar"
7149 if test "$no_cache" != 1; then
7150 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7151 fi
7152
7153 if test "$wxUSE_TOOLBAR" = yes; then
7154 echo "$ac_t""yes" 1>&6
7155 else
7156 echo "$ac_t""no" 1>&6
7157 fi
7158
7159
7160 enablestring=
7161 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7162 echo "configure:7163: checking for --${enablestring:-enable}-tbarnative" >&5
7163 no_cache=0
7164 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7165 if test "${enable_tbarnative+set}" = set; then
7166 enableval="$enable_tbarnative"
7167
7168 if test "$enableval" = yes; then
7169 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7170 else
7171 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7172 fi
7173
7174 else
7175
7176 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7177 if test "x$LINE" != x ; then
7178 eval "DEFAULT_$LINE"
7179 else
7180 no_cache=1
7181 fi
7182
7183 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7184
7185 fi
7186
7187
7188 eval "$ac_cv_use_tbarnative"
7189 if test "$no_cache" != 1; then
7190 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7191 fi
7192
7193 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7194 echo "$ac_t""yes" 1>&6
7195 else
7196 echo "$ac_t""no" 1>&6
7197 fi
7198
7199
7200 enablestring=
7201 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7202 echo "configure:7203: checking for --${enablestring:-enable}-tbarsmpl" >&5
7203 no_cache=0
7204 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7205 if test "${enable_tbarsmpl+set}" = set; then
7206 enableval="$enable_tbarsmpl"
7207
7208 if test "$enableval" = yes; then
7209 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7210 else
7211 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7212 fi
7213
7214 else
7215
7216 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7217 if test "x$LINE" != x ; then
7218 eval "DEFAULT_$LINE"
7219 else
7220 no_cache=1
7221 fi
7222
7223 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7224
7225 fi
7226
7227
7228 eval "$ac_cv_use_tbarsmpl"
7229 if test "$no_cache" != 1; then
7230 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7231 fi
7232
7233 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7234 echo "$ac_t""yes" 1>&6
7235 else
7236 echo "$ac_t""no" 1>&6
7237 fi
7238
7239
7240 enablestring=
7241 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7242 echo "configure:7243: checking for --${enablestring:-enable}-treectrl" >&5
7243 no_cache=0
7244 # Check whether --enable-treectrl or --disable-treectrl was given.
7245 if test "${enable_treectrl+set}" = set; then
7246 enableval="$enable_treectrl"
7247
7248 if test "$enableval" = yes; then
7249 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7250 else
7251 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7252 fi
7253
7254 else
7255
7256 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7257 if test "x$LINE" != x ; then
7258 eval "DEFAULT_$LINE"
7259 else
7260 no_cache=1
7261 fi
7262
7263 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7264
7265 fi
7266
7267
7268 eval "$ac_cv_use_treectrl"
7269 if test "$no_cache" != 1; then
7270 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7271 fi
7272
7273 if test "$wxUSE_TREECTRL" = yes; then
7274 echo "$ac_t""yes" 1>&6
7275 else
7276 echo "$ac_t""no" 1>&6
7277 fi
7278
7279
7280 enablestring=
7281 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7282 echo "configure:7283: checking for --${enablestring:-enable}-tipwindow" >&5
7283 no_cache=0
7284 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7285 if test "${enable_tipwindow+set}" = set; then
7286 enableval="$enable_tipwindow"
7287
7288 if test "$enableval" = yes; then
7289 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7290 else
7291 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7292 fi
7293
7294 else
7295
7296 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7297 if test "x$LINE" != x ; then
7298 eval "DEFAULT_$LINE"
7299 else
7300 no_cache=1
7301 fi
7302
7303 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7304
7305 fi
7306
7307
7308 eval "$ac_cv_use_tipwindow"
7309 if test "$no_cache" != 1; then
7310 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7311 fi
7312
7313 if test "$wxUSE_TIPWINDOW" = yes; then
7314 echo "$ac_t""yes" 1>&6
7315 else
7316 echo "$ac_t""no" 1>&6
7317 fi
7318
7319
7320 enablestring=
7321 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7322 echo "configure:7323: checking for --${enablestring:-enable}-popupwin" >&5
7323 no_cache=0
7324 # Check whether --enable-popupwin or --disable-popupwin was given.
7325 if test "${enable_popupwin+set}" = set; then
7326 enableval="$enable_popupwin"
7327
7328 if test "$enableval" = yes; then
7329 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7330 else
7331 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7332 fi
7333
7334 else
7335
7336 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7337 if test "x$LINE" != x ; then
7338 eval "DEFAULT_$LINE"
7339 else
7340 no_cache=1
7341 fi
7342
7343 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7344
7345 fi
7346
7347
7348 eval "$ac_cv_use_popupwin"
7349 if test "$no_cache" != 1; then
7350 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7351 fi
7352
7353 if test "$wxUSE_POPUPWIN" = yes; then
7354 echo "$ac_t""yes" 1>&6
7355 else
7356 echo "$ac_t""no" 1>&6
7357 fi
7358
7359
7360
7361
7362 enablestring=
7363 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7364 echo "configure:7365: checking for --${enablestring:-enable}-commondlg" >&5
7365 no_cache=0
7366 # Check whether --enable-commondlg or --disable-commondlg was given.
7367 if test "${enable_commondlg+set}" = set; then
7368 enableval="$enable_commondlg"
7369
7370 if test "$enableval" = yes; then
7371 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7372 else
7373 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7374 fi
7375
7376 else
7377
7378 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7379 if test "x$LINE" != x ; then
7380 eval "DEFAULT_$LINE"
7381 else
7382 no_cache=1
7383 fi
7384
7385 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7386
7387 fi
7388
7389
7390 eval "$ac_cv_use_commondlg"
7391 if test "$no_cache" != 1; then
7392 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7393 fi
7394
7395 if test "$wxUSE_COMMONDLGS" = yes; then
7396 echo "$ac_t""yes" 1>&6
7397 else
7398 echo "$ac_t""no" 1>&6
7399 fi
7400
7401
7402 enablestring=
7403 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7404 echo "configure:7405: checking for --${enablestring:-enable}-choicedlg" >&5
7405 no_cache=0
7406 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7407 if test "${enable_choicedlg+set}" = set; then
7408 enableval="$enable_choicedlg"
7409
7410 if test "$enableval" = yes; then
7411 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7412 else
7413 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7414 fi
7415
7416 else
7417
7418 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7419 if test "x$LINE" != x ; then
7420 eval "DEFAULT_$LINE"
7421 else
7422 no_cache=1
7423 fi
7424
7425 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7426
7427 fi
7428
7429
7430 eval "$ac_cv_use_choicedlg"
7431 if test "$no_cache" != 1; then
7432 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7433 fi
7434
7435 if test "$wxUSE_CHOICEDLG" = yes; then
7436 echo "$ac_t""yes" 1>&6
7437 else
7438 echo "$ac_t""no" 1>&6
7439 fi
7440
7441
7442 enablestring=
7443 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7444 echo "configure:7445: checking for --${enablestring:-enable}-coldlg" >&5
7445 no_cache=0
7446 # Check whether --enable-coldlg or --disable-coldlg was given.
7447 if test "${enable_coldlg+set}" = set; then
7448 enableval="$enable_coldlg"
7449
7450 if test "$enableval" = yes; then
7451 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7452 else
7453 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7454 fi
7455
7456 else
7457
7458 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7459 if test "x$LINE" != x ; then
7460 eval "DEFAULT_$LINE"
7461 else
7462 no_cache=1
7463 fi
7464
7465 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7466
7467 fi
7468
7469
7470 eval "$ac_cv_use_coldlg"
7471 if test "$no_cache" != 1; then
7472 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7473 fi
7474
7475 if test "$wxUSE_COLOURDLG" = yes; then
7476 echo "$ac_t""yes" 1>&6
7477 else
7478 echo "$ac_t""no" 1>&6
7479 fi
7480
7481
7482 enablestring=
7483 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7484 echo "configure:7485: checking for --${enablestring:-enable}-filedlg" >&5
7485 no_cache=0
7486 # Check whether --enable-filedlg or --disable-filedlg was given.
7487 if test "${enable_filedlg+set}" = set; then
7488 enableval="$enable_filedlg"
7489
7490 if test "$enableval" = yes; then
7491 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7492 else
7493 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7494 fi
7495
7496 else
7497
7498 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7499 if test "x$LINE" != x ; then
7500 eval "DEFAULT_$LINE"
7501 else
7502 no_cache=1
7503 fi
7504
7505 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7506
7507 fi
7508
7509
7510 eval "$ac_cv_use_filedlg"
7511 if test "$no_cache" != 1; then
7512 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7513 fi
7514
7515 if test "$wxUSE_FILEDLG" = yes; then
7516 echo "$ac_t""yes" 1>&6
7517 else
7518 echo "$ac_t""no" 1>&6
7519 fi
7520
7521
7522 enablestring=
7523 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7524 echo "configure:7525: checking for --${enablestring:-enable}-finddlg" >&5
7525 no_cache=0
7526 # Check whether --enable-finddlg or --disable-finddlg was given.
7527 if test "${enable_finddlg+set}" = set; then
7528 enableval="$enable_finddlg"
7529
7530 if test "$enableval" = yes; then
7531 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7532 else
7533 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7534 fi
7535
7536 else
7537
7538 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7539 if test "x$LINE" != x ; then
7540 eval "DEFAULT_$LINE"
7541 else
7542 no_cache=1
7543 fi
7544
7545 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7546
7547 fi
7548
7549
7550 eval "$ac_cv_use_finddlg"
7551 if test "$no_cache" != 1; then
7552 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7553 fi
7554
7555 if test "$wxUSE_FINDREPLDLG" = yes; then
7556 echo "$ac_t""yes" 1>&6
7557 else
7558 echo "$ac_t""no" 1>&6
7559 fi
7560
7561
7562 enablestring=
7563 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7564 echo "configure:7565: checking for --${enablestring:-enable}-fontdlg" >&5
7565 no_cache=0
7566 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7567 if test "${enable_fontdlg+set}" = set; then
7568 enableval="$enable_fontdlg"
7569
7570 if test "$enableval" = yes; then
7571 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7572 else
7573 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7574 fi
7575
7576 else
7577
7578 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7579 if test "x$LINE" != x ; then
7580 eval "DEFAULT_$LINE"
7581 else
7582 no_cache=1
7583 fi
7584
7585 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7586
7587 fi
7588
7589
7590 eval "$ac_cv_use_fontdlg"
7591 if test "$no_cache" != 1; then
7592 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7593 fi
7594
7595 if test "$wxUSE_FONTDLG" = yes; then
7596 echo "$ac_t""yes" 1>&6
7597 else
7598 echo "$ac_t""no" 1>&6
7599 fi
7600
7601
7602 enablestring=
7603 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7604 echo "configure:7605: checking for --${enablestring:-enable}-dirdlg" >&5
7605 no_cache=0
7606 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7607 if test "${enable_dirdlg+set}" = set; then
7608 enableval="$enable_dirdlg"
7609
7610 if test "$enableval" = yes; then
7611 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7612 else
7613 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7614 fi
7615
7616 else
7617
7618 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7619 if test "x$LINE" != x ; then
7620 eval "DEFAULT_$LINE"
7621 else
7622 no_cache=1
7623 fi
7624
7625 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7626
7627 fi
7628
7629
7630 eval "$ac_cv_use_dirdlg"
7631 if test "$no_cache" != 1; then
7632 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7633 fi
7634
7635 if test "$wxUSE_DIRDLG" = yes; then
7636 echo "$ac_t""yes" 1>&6
7637 else
7638 echo "$ac_t""no" 1>&6
7639 fi
7640
7641
7642 enablestring=
7643 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7644 echo "configure:7645: checking for --${enablestring:-enable}-msgdlg" >&5
7645 no_cache=0
7646 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7647 if test "${enable_msgdlg+set}" = set; then
7648 enableval="$enable_msgdlg"
7649
7650 if test "$enableval" = yes; then
7651 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7652 else
7653 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7654 fi
7655
7656 else
7657
7658 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7659 if test "x$LINE" != x ; then
7660 eval "DEFAULT_$LINE"
7661 else
7662 no_cache=1
7663 fi
7664
7665 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7666
7667 fi
7668
7669
7670 eval "$ac_cv_use_msgdlg"
7671 if test "$no_cache" != 1; then
7672 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7673 fi
7674
7675 if test "$wxUSE_MSGDLG" = yes; then
7676 echo "$ac_t""yes" 1>&6
7677 else
7678 echo "$ac_t""no" 1>&6
7679 fi
7680
7681
7682 enablestring=
7683 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7684 echo "configure:7685: checking for --${enablestring:-enable}-numberdlg" >&5
7685 no_cache=0
7686 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7687 if test "${enable_numberdlg+set}" = set; then
7688 enableval="$enable_numberdlg"
7689
7690 if test "$enableval" = yes; then
7691 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7692 else
7693 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7694 fi
7695
7696 else
7697
7698 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7699 if test "x$LINE" != x ; then
7700 eval "DEFAULT_$LINE"
7701 else
7702 no_cache=1
7703 fi
7704
7705 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7706
7707 fi
7708
7709
7710 eval "$ac_cv_use_numberdlg"
7711 if test "$no_cache" != 1; then
7712 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7713 fi
7714
7715 if test "$wxUSE_NUMBERDLG" = yes; then
7716 echo "$ac_t""yes" 1>&6
7717 else
7718 echo "$ac_t""no" 1>&6
7719 fi
7720
7721
7722 enablestring=
7723 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7724 echo "configure:7725: checking for --${enablestring:-enable}-splash" >&5
7725 no_cache=0
7726 # Check whether --enable-splash or --disable-splash was given.
7727 if test "${enable_splash+set}" = set; then
7728 enableval="$enable_splash"
7729
7730 if test "$enableval" = yes; then
7731 ac_cv_use_splash='wxUSE_SPLASH=yes'
7732 else
7733 ac_cv_use_splash='wxUSE_SPLASH=no'
7734 fi
7735
7736 else
7737
7738 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7739 if test "x$LINE" != x ; then
7740 eval "DEFAULT_$LINE"
7741 else
7742 no_cache=1
7743 fi
7744
7745 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7746
7747 fi
7748
7749
7750 eval "$ac_cv_use_splash"
7751 if test "$no_cache" != 1; then
7752 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7753 fi
7754
7755 if test "$wxUSE_SPLASH" = yes; then
7756 echo "$ac_t""yes" 1>&6
7757 else
7758 echo "$ac_t""no" 1>&6
7759 fi
7760
7761
7762 enablestring=
7763 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7764 echo "configure:7765: checking for --${enablestring:-enable}-textdlg" >&5
7765 no_cache=0
7766 # Check whether --enable-textdlg or --disable-textdlg was given.
7767 if test "${enable_textdlg+set}" = set; then
7768 enableval="$enable_textdlg"
7769
7770 if test "$enableval" = yes; then
7771 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7772 else
7773 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7774 fi
7775
7776 else
7777
7778 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7779 if test "x$LINE" != x ; then
7780 eval "DEFAULT_$LINE"
7781 else
7782 no_cache=1
7783 fi
7784
7785 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7786
7787 fi
7788
7789
7790 eval "$ac_cv_use_textdlg"
7791 if test "$no_cache" != 1; then
7792 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7793 fi
7794
7795 if test "$wxUSE_TEXTDLG" = yes; then
7796 echo "$ac_t""yes" 1>&6
7797 else
7798 echo "$ac_t""no" 1>&6
7799 fi
7800
7801
7802 enablestring=
7803 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7804 echo "configure:7805: checking for --${enablestring:-enable}-tipdlg" >&5
7805 no_cache=0
7806 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7807 if test "${enable_tipdlg+set}" = set; then
7808 enableval="$enable_tipdlg"
7809
7810 if test "$enableval" = yes; then
7811 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7812 else
7813 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7814 fi
7815
7816 else
7817
7818 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7819 if test "x$LINE" != x ; then
7820 eval "DEFAULT_$LINE"
7821 else
7822 no_cache=1
7823 fi
7824
7825 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7826
7827 fi
7828
7829
7830 eval "$ac_cv_use_tipdlg"
7831 if test "$no_cache" != 1; then
7832 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7833 fi
7834
7835 if test "$wxUSE_STARTUP_TIPS" = yes; then
7836 echo "$ac_t""yes" 1>&6
7837 else
7838 echo "$ac_t""no" 1>&6
7839 fi
7840
7841
7842 enablestring=
7843 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7844 echo "configure:7845: checking for --${enablestring:-enable}-progressdlg" >&5
7845 no_cache=0
7846 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7847 if test "${enable_progressdlg+set}" = set; then
7848 enableval="$enable_progressdlg"
7849
7850 if test "$enableval" = yes; then
7851 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7852 else
7853 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7854 fi
7855
7856 else
7857
7858 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7859 if test "x$LINE" != x ; then
7860 eval "DEFAULT_$LINE"
7861 else
7862 no_cache=1
7863 fi
7864
7865 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7866
7867 fi
7868
7869
7870 eval "$ac_cv_use_progressdlg"
7871 if test "$no_cache" != 1; then
7872 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7873 fi
7874
7875 if test "$wxUSE_PROGRESSDLG" = yes; then
7876 echo "$ac_t""yes" 1>&6
7877 else
7878 echo "$ac_t""no" 1>&6
7879 fi
7880
7881
7882 enablestring=
7883 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7884 echo "configure:7885: checking for --${enablestring:-enable}-wizarddlg" >&5
7885 no_cache=0
7886 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7887 if test "${enable_wizarddlg+set}" = set; then
7888 enableval="$enable_wizarddlg"
7889
7890 if test "$enableval" = yes; then
7891 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7892 else
7893 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7894 fi
7895
7896 else
7897
7898 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7899 if test "x$LINE" != x ; then
7900 eval "DEFAULT_$LINE"
7901 else
7902 no_cache=1
7903 fi
7904
7905 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7906
7907 fi
7908
7909
7910 eval "$ac_cv_use_wizarddlg"
7911 if test "$no_cache" != 1; then
7912 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7913 fi
7914
7915 if test "$wxUSE_WIZARDDLG" = yes; then
7916 echo "$ac_t""yes" 1>&6
7917 else
7918 echo "$ac_t""no" 1>&6
7919 fi
7920
7921
7922
7923
7924 enablestring=
7925 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
7926 echo "configure:7927: checking for --${enablestring:-enable}-menus" >&5
7927 no_cache=0
7928 # Check whether --enable-menus or --disable-menus was given.
7929 if test "${enable_menus+set}" = set; then
7930 enableval="$enable_menus"
7931
7932 if test "$enableval" = yes; then
7933 ac_cv_use_menus='wxUSE_MENUS=yes'
7934 else
7935 ac_cv_use_menus='wxUSE_MENUS=no'
7936 fi
7937
7938 else
7939
7940 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7941 if test "x$LINE" != x ; then
7942 eval "DEFAULT_$LINE"
7943 else
7944 no_cache=1
7945 fi
7946
7947 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7948
7949 fi
7950
7951
7952 eval "$ac_cv_use_menus"
7953 if test "$no_cache" != 1; then
7954 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7955 fi
7956
7957 if test "$wxUSE_MENUS" = yes; then
7958 echo "$ac_t""yes" 1>&6
7959 else
7960 echo "$ac_t""no" 1>&6
7961 fi
7962
7963
7964 enablestring=
7965 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
7966 echo "configure:7967: checking for --${enablestring:-enable}-miniframe" >&5
7967 no_cache=0
7968 # Check whether --enable-miniframe or --disable-miniframe was given.
7969 if test "${enable_miniframe+set}" = set; then
7970 enableval="$enable_miniframe"
7971
7972 if test "$enableval" = yes; then
7973 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7974 else
7975 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7976 fi
7977
7978 else
7979
7980 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7981 if test "x$LINE" != x ; then
7982 eval "DEFAULT_$LINE"
7983 else
7984 no_cache=1
7985 fi
7986
7987 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7988
7989 fi
7990
7991
7992 eval "$ac_cv_use_miniframe"
7993 if test "$no_cache" != 1; then
7994 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7995 fi
7996
7997 if test "$wxUSE_MINIFRAME" = yes; then
7998 echo "$ac_t""yes" 1>&6
7999 else
8000 echo "$ac_t""no" 1>&6
8001 fi
8002
8003
8004 enablestring=
8005 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8006 echo "configure:8007: checking for --${enablestring:-enable}-tooltips" >&5
8007 no_cache=0
8008 # Check whether --enable-tooltips or --disable-tooltips was given.
8009 if test "${enable_tooltips+set}" = set; then
8010 enableval="$enable_tooltips"
8011
8012 if test "$enableval" = yes; then
8013 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8014 else
8015 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8016 fi
8017
8018 else
8019
8020 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8021 if test "x$LINE" != x ; then
8022 eval "DEFAULT_$LINE"
8023 else
8024 no_cache=1
8025 fi
8026
8027 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8028
8029 fi
8030
8031
8032 eval "$ac_cv_use_tooltips"
8033 if test "$no_cache" != 1; then
8034 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8035 fi
8036
8037 if test "$wxUSE_TOOLTIPS" = yes; then
8038 echo "$ac_t""yes" 1>&6
8039 else
8040 echo "$ac_t""no" 1>&6
8041 fi
8042
8043
8044 enablestring=
8045 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8046 echo "configure:8047: checking for --${enablestring:-enable}-splines" >&5
8047 no_cache=0
8048 # Check whether --enable-splines or --disable-splines was given.
8049 if test "${enable_splines+set}" = set; then
8050 enableval="$enable_splines"
8051
8052 if test "$enableval" = yes; then
8053 ac_cv_use_splines='wxUSE_SPLINES=yes'
8054 else
8055 ac_cv_use_splines='wxUSE_SPLINES=no'
8056 fi
8057
8058 else
8059
8060 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8061 if test "x$LINE" != x ; then
8062 eval "DEFAULT_$LINE"
8063 else
8064 no_cache=1
8065 fi
8066
8067 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8068
8069 fi
8070
8071
8072 eval "$ac_cv_use_splines"
8073 if test "$no_cache" != 1; then
8074 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8075 fi
8076
8077 if test "$wxUSE_SPLINES" = yes; then
8078 echo "$ac_t""yes" 1>&6
8079 else
8080 echo "$ac_t""no" 1>&6
8081 fi
8082
8083
8084 enablestring=
8085 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8086 echo "configure:8087: checking for --${enablestring:-enable}-validators" >&5
8087 no_cache=0
8088 # Check whether --enable-validators or --disable-validators was given.
8089 if test "${enable_validators+set}" = set; then
8090 enableval="$enable_validators"
8091
8092 if test "$enableval" = yes; then
8093 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8094 else
8095 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8096 fi
8097
8098 else
8099
8100 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8101 if test "x$LINE" != x ; then
8102 eval "DEFAULT_$LINE"
8103 else
8104 no_cache=1
8105 fi
8106
8107 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8108
8109 fi
8110
8111
8112 eval "$ac_cv_use_validators"
8113 if test "$no_cache" != 1; then
8114 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8115 fi
8116
8117 if test "$wxUSE_VALIDATORS" = yes; then
8118 echo "$ac_t""yes" 1>&6
8119 else
8120 echo "$ac_t""no" 1>&6
8121 fi
8122
8123
8124 enablestring=
8125 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8126 echo "configure:8127: checking for --${enablestring:-enable}-busyinfo" >&5
8127 no_cache=0
8128 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8129 if test "${enable_busyinfo+set}" = set; then
8130 enableval="$enable_busyinfo"
8131
8132 if test "$enableval" = yes; then
8133 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8134 else
8135 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8136 fi
8137
8138 else
8139
8140 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8141 if test "x$LINE" != x ; then
8142 eval "DEFAULT_$LINE"
8143 else
8144 no_cache=1
8145 fi
8146
8147 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8148
8149 fi
8150
8151
8152 eval "$ac_cv_use_busyinfo"
8153 if test "$no_cache" != 1; then
8154 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8155 fi
8156
8157 if test "$wxUSE_BUSYINFO" = yes; then
8158 echo "$ac_t""yes" 1>&6
8159 else
8160 echo "$ac_t""no" 1>&6
8161 fi
8162
8163
8164 enablestring=
8165 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8166 echo "configure:8167: checking for --${enablestring:-enable}-joystick" >&5
8167 no_cache=0
8168 # Check whether --enable-joystick or --disable-joystick was given.
8169 if test "${enable_joystick+set}" = set; then
8170 enableval="$enable_joystick"
8171
8172 if test "$enableval" = yes; then
8173 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8174 else
8175 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8176 fi
8177
8178 else
8179
8180 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8181 if test "x$LINE" != x ; then
8182 eval "DEFAULT_$LINE"
8183 else
8184 no_cache=1
8185 fi
8186
8187 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8188
8189 fi
8190
8191
8192 eval "$ac_cv_use_joystick"
8193 if test "$no_cache" != 1; then
8194 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8195 fi
8196
8197 if test "$wxUSE_JOYSTICK" = yes; then
8198 echo "$ac_t""yes" 1>&6
8199 else
8200 echo "$ac_t""no" 1>&6
8201 fi
8202
8203
8204 enablestring=
8205 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8206 echo "configure:8207: checking for --${enablestring:-enable}-metafile" >&5
8207 no_cache=0
8208 # Check whether --enable-metafile or --disable-metafile was given.
8209 if test "${enable_metafile+set}" = set; then
8210 enableval="$enable_metafile"
8211
8212 if test "$enableval" = yes; then
8213 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8214 else
8215 ac_cv_use_metafile='wxUSE_METAFILE=no'
8216 fi
8217
8218 else
8219
8220 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8221 if test "x$LINE" != x ; then
8222 eval "DEFAULT_$LINE"
8223 else
8224 no_cache=1
8225 fi
8226
8227 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8228
8229 fi
8230
8231
8232 eval "$ac_cv_use_metafile"
8233 if test "$no_cache" != 1; then
8234 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8235 fi
8236
8237 if test "$wxUSE_METAFILE" = yes; then
8238 echo "$ac_t""yes" 1>&6
8239 else
8240 echo "$ac_t""no" 1>&6
8241 fi
8242
8243
8244 enablestring=
8245 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8246 echo "configure:8247: checking for --${enablestring:-enable}-dragimage" >&5
8247 no_cache=0
8248 # Check whether --enable-dragimage or --disable-dragimage was given.
8249 if test "${enable_dragimage+set}" = set; then
8250 enableval="$enable_dragimage"
8251
8252 if test "$enableval" = yes; then
8253 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8254 else
8255 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8256 fi
8257
8258 else
8259
8260 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8261 if test "x$LINE" != x ; then
8262 eval "DEFAULT_$LINE"
8263 else
8264 no_cache=1
8265 fi
8266
8267 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8268
8269 fi
8270
8271
8272 eval "$ac_cv_use_dragimage"
8273 if test "$no_cache" != 1; then
8274 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8275 fi
8276
8277 if test "$wxUSE_DRAGIMAGE" = yes; then
8278 echo "$ac_t""yes" 1>&6
8279 else
8280 echo "$ac_t""no" 1>&6
8281 fi
8282
8283
8284
8285
8286 enablestring=
8287 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8288 echo "configure:8289: checking for --${enablestring:-enable}-palette" >&5
8289 no_cache=0
8290 # Check whether --enable-palette or --disable-palette was given.
8291 if test "${enable_palette+set}" = set; then
8292 enableval="$enable_palette"
8293
8294 if test "$enableval" = yes; then
8295 ac_cv_use_palette='wxUSE_PALETTE=yes'
8296 else
8297 ac_cv_use_palette='wxUSE_PALETTE=no'
8298 fi
8299
8300 else
8301
8302 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8303 if test "x$LINE" != x ; then
8304 eval "DEFAULT_$LINE"
8305 else
8306 no_cache=1
8307 fi
8308
8309 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8310
8311 fi
8312
8313
8314 eval "$ac_cv_use_palette"
8315 if test "$no_cache" != 1; then
8316 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8317 fi
8318
8319 if test "$wxUSE_PALETTE" = yes; then
8320 echo "$ac_t""yes" 1>&6
8321 else
8322 echo "$ac_t""no" 1>&6
8323 fi
8324
8325
8326 enablestring=
8327 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8328 echo "configure:8329: checking for --${enablestring:-enable}-image" >&5
8329 no_cache=0
8330 # Check whether --enable-image or --disable-image was given.
8331 if test "${enable_image+set}" = set; then
8332 enableval="$enable_image"
8333
8334 if test "$enableval" = yes; then
8335 ac_cv_use_image='wxUSE_IMAGE=yes'
8336 else
8337 ac_cv_use_image='wxUSE_IMAGE=no'
8338 fi
8339
8340 else
8341
8342 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8343 if test "x$LINE" != x ; then
8344 eval "DEFAULT_$LINE"
8345 else
8346 no_cache=1
8347 fi
8348
8349 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8350
8351 fi
8352
8353
8354 eval "$ac_cv_use_image"
8355 if test "$no_cache" != 1; then
8356 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8357 fi
8358
8359 if test "$wxUSE_IMAGE" = yes; then
8360 echo "$ac_t""yes" 1>&6
8361 else
8362 echo "$ac_t""no" 1>&6
8363 fi
8364
8365
8366 enablestring=
8367 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8368 echo "configure:8369: checking for --${enablestring:-enable}-gif" >&5
8369 no_cache=0
8370 # Check whether --enable-gif or --disable-gif was given.
8371 if test "${enable_gif+set}" = set; then
8372 enableval="$enable_gif"
8373
8374 if test "$enableval" = yes; then
8375 ac_cv_use_gif='wxUSE_GIF=yes'
8376 else
8377 ac_cv_use_gif='wxUSE_GIF=no'
8378 fi
8379
8380 else
8381
8382 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8383 if test "x$LINE" != x ; then
8384 eval "DEFAULT_$LINE"
8385 else
8386 no_cache=1
8387 fi
8388
8389 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8390
8391 fi
8392
8393
8394 eval "$ac_cv_use_gif"
8395 if test "$no_cache" != 1; then
8396 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8397 fi
8398
8399 if test "$wxUSE_GIF" = yes; then
8400 echo "$ac_t""yes" 1>&6
8401 else
8402 echo "$ac_t""no" 1>&6
8403 fi
8404
8405
8406 enablestring=
8407 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8408 echo "configure:8409: checking for --${enablestring:-enable}-pcx" >&5
8409 no_cache=0
8410 # Check whether --enable-pcx or --disable-pcx was given.
8411 if test "${enable_pcx+set}" = set; then
8412 enableval="$enable_pcx"
8413
8414 if test "$enableval" = yes; then
8415 ac_cv_use_pcx='wxUSE_PCX=yes'
8416 else
8417 ac_cv_use_pcx='wxUSE_PCX=no'
8418 fi
8419
8420 else
8421
8422 LINE=`grep "wxUSE_PCX" ${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_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8430
8431 fi
8432
8433
8434 eval "$ac_cv_use_pcx"
8435 if test "$no_cache" != 1; then
8436 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8437 fi
8438
8439 if test "$wxUSE_PCX" = yes; then
8440 echo "$ac_t""yes" 1>&6
8441 else
8442 echo "$ac_t""no" 1>&6
8443 fi
8444
8445
8446 enablestring=
8447 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8448 echo "configure:8449: checking for --${enablestring:-enable}-iff" >&5
8449 no_cache=0
8450 # Check whether --enable-iff or --disable-iff was given.
8451 if test "${enable_iff+set}" = set; then
8452 enableval="$enable_iff"
8453
8454 if test "$enableval" = yes; then
8455 ac_cv_use_iff='wxUSE_IFF=yes'
8456 else
8457 ac_cv_use_iff='wxUSE_IFF=no'
8458 fi
8459
8460 else
8461
8462 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8463 if test "x$LINE" != x ; then
8464 eval "DEFAULT_$LINE"
8465 else
8466 no_cache=1
8467 fi
8468
8469 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8470
8471 fi
8472
8473
8474 eval "$ac_cv_use_iff"
8475 if test "$no_cache" != 1; then
8476 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8477 fi
8478
8479 if test "$wxUSE_IFF" = yes; then
8480 echo "$ac_t""yes" 1>&6
8481 else
8482 echo "$ac_t""no" 1>&6
8483 fi
8484
8485
8486 enablestring=
8487 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8488 echo "configure:8489: checking for --${enablestring:-enable}-pnm" >&5
8489 no_cache=0
8490 # Check whether --enable-pnm or --disable-pnm was given.
8491 if test "${enable_pnm+set}" = set; then
8492 enableval="$enable_pnm"
8493
8494 if test "$enableval" = yes; then
8495 ac_cv_use_pnm='wxUSE_PNM=yes'
8496 else
8497 ac_cv_use_pnm='wxUSE_PNM=no'
8498 fi
8499
8500 else
8501
8502 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8503 if test "x$LINE" != x ; then
8504 eval "DEFAULT_$LINE"
8505 else
8506 no_cache=1
8507 fi
8508
8509 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8510
8511 fi
8512
8513
8514 eval "$ac_cv_use_pnm"
8515 if test "$no_cache" != 1; then
8516 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8517 fi
8518
8519 if test "$wxUSE_PNM" = yes; then
8520 echo "$ac_t""yes" 1>&6
8521 else
8522 echo "$ac_t""no" 1>&6
8523 fi
8524
8525
8526 enablestring=
8527 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8528 echo "configure:8529: checking for --${enablestring:-enable}-xpm" >&5
8529 no_cache=0
8530 # Check whether --enable-xpm or --disable-xpm was given.
8531 if test "${enable_xpm+set}" = set; then
8532 enableval="$enable_xpm"
8533
8534 if test "$enableval" = yes; then
8535 ac_cv_use_xpm='wxUSE_XPM=yes'
8536 else
8537 ac_cv_use_xpm='wxUSE_XPM=no'
8538 fi
8539
8540 else
8541
8542 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8543 if test "x$LINE" != x ; then
8544 eval "DEFAULT_$LINE"
8545 else
8546 no_cache=1
8547 fi
8548
8549 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8550
8551 fi
8552
8553
8554 eval "$ac_cv_use_xpm"
8555 if test "$no_cache" != 1; then
8556 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8557 fi
8558
8559 if test "$wxUSE_XPM" = yes; then
8560 echo "$ac_t""yes" 1>&6
8561 else
8562 echo "$ac_t""no" 1>&6
8563 fi
8564
8565
8566 enablestring=
8567 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8568 echo "configure:8569: checking for --${enablestring:-enable}-ico_cur" >&5
8569 no_cache=0
8570 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8571 if test "${enable_ico_cur+set}" = set; then
8572 enableval="$enable_ico_cur"
8573
8574 if test "$enableval" = yes; then
8575 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8576 else
8577 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8578 fi
8579
8580 else
8581
8582 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8583 if test "x$LINE" != x ; then
8584 eval "DEFAULT_$LINE"
8585 else
8586 no_cache=1
8587 fi
8588
8589 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8590
8591 fi
8592
8593
8594 eval "$ac_cv_use_ico_cur"
8595 if test "$no_cache" != 1; then
8596 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8597 fi
8598
8599 if test "$wxUSE_ICO_CUR" = yes; then
8600 echo "$ac_t""yes" 1>&6
8601 else
8602 echo "$ac_t""no" 1>&6
8603 fi
8604
8605
8606 fi
8607
8608 case "${host}" in
8609 *-pc-os2_emx | *-pc-os2-emx )
8610 PATH_IFS=';'
8611 LEX_STEM="lexyy"
8612 ;;
8613 *)
8614 PATH_IFS=':'
8615 LEX_STEM="lex.yy"
8616 ;;
8617 esac
8618
8619
8620
8621 echo "saving argument cache $wx_arg_cache_file"
8622 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8623
8624
8625
8626 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8627 echo "configure:8628: checking for toolkit" >&5
8628
8629 # In Wine, we need to default to MSW, not GTK or MOTIF
8630 if test "$wxUSE_WINE" = "yes"; then
8631 DEFAULT_DEFAULT_wxUSE_GTK=0
8632 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8633 DEFAULT_DEFAULT_wxUSE_MSW=1
8634 fi
8635
8636 if test "$wxUSE_GUI" = "yes"; then
8637
8638 if test "$USE_BEOS" = 1; then
8639 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8640 fi
8641
8642 if test "$TOOLKIT_GIVEN" = 1; then
8643 for toolkit in `echo $ALL_TOOLKITS`; do
8644 var=wxUSE_$toolkit
8645 eval "value=\$${var}"
8646 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8647 done
8648 else
8649 for toolkit in `echo $ALL_TOOLKITS`; do
8650 if test "$has_toolkit_in_cache" != 1; then
8651 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8652 else
8653 var=DEFAULT_wxUSE_$toolkit
8654 fi
8655 eval "wxUSE_$toolkit=\$${var}"
8656 done
8657 fi
8658
8659 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8660 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8661 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
8662
8663 case "${host}" in
8664 *-pc-os2_emx | *-pc-os2-emx )
8665 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8666 esac
8667
8668 case "$NUM_TOOLKITS" in
8669 1)
8670 ;;
8671 0)
8672 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8673 ;;
8674 *)
8675 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8676 esac
8677
8678 for toolkit in `echo $ALL_TOOLKITS`; do
8679 var=wxUSE_$toolkit
8680 eval "value=\$${var}"
8681 if test "x$value" != x; then
8682 cache_var=CACHE_$toolkit
8683 eval "cache=\$${cache_var}"
8684 if test "$cache" = 1; then
8685 echo "$var=$value" >> ${wx_arg_cache_file}
8686 fi
8687 if test "$value" = 1; then
8688 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8689 echo "$ac_t""$toolkit_echo" 1>&6
8690 fi
8691 fi
8692 done
8693 else
8694 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8695 fi
8696
8697 wants_win32=0
8698 doesnt_want_win32=0
8699 case "${host}" in
8700 *-*-cygwin*)
8701 if test "$wxUSE_MSW" = 1 ; then
8702 wants_win32=1
8703 else
8704 doesnt_want_win32=1
8705 fi
8706 ;;
8707 *-*-mingw*)
8708 wants_win32=1
8709 ;;
8710 esac
8711
8712 if test "$wxUSE_WINE" = "yes"; then
8713 wants_win32=1
8714 CC=winegcc
8715 CXX=wineg++
8716 RESCOMP=wrc
8717 fi
8718
8719 if test "$wants_win32" = 1 ; then
8720 USE_UNIX=0
8721 USE_WIN32=1
8722 cat >> confdefs.h <<\EOF
8723 #define __WIN32__ 1
8724 EOF
8725
8726 cat >> confdefs.h <<\EOF
8727 #define __WIN95__ 1
8728 EOF
8729
8730 cat >> confdefs.h <<\EOF
8731 #define __WINDOWS__ 1
8732 EOF
8733
8734 cat >> confdefs.h <<\EOF
8735 #define __GNUWIN32__ 1
8736 EOF
8737
8738 cat >> confdefs.h <<\EOF
8739 #define STRICT 1
8740 EOF
8741
8742 cat >> confdefs.h <<\EOF
8743 #define WINVER 0x0400
8744 EOF
8745
8746 fi
8747 if test "$doesnt_want_win32" = 1 ; then
8748 USE_UNIX=1
8749 USE_WIN32=0
8750 fi
8751
8752 if test "$USE_UNIX" = 1 ; then
8753 wxUSE_UNIX=yes
8754 cat >> confdefs.h <<\EOF
8755 #define __UNIX__ 1
8756 EOF
8757
8758 fi
8759
8760
8761 cat > confcache <<\EOF
8762 # This file is a shell script that caches the results of configure
8763 # tests run on this system so they can be shared between configure
8764 # scripts and configure runs. It is not useful on other systems.
8765 # If it contains results you don't want to keep, you may remove or edit it.
8766 #
8767 # By default, configure uses ./config.cache as the cache file,
8768 # creating it if it does not exist already. You can give configure
8769 # the --cache-file=FILE option to use a different cache file; that is
8770 # what configure does when it calls configure scripts in
8771 # subdirectories, so they share the cache.
8772 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8773 # config.status only pays attention to the cache file if you give it the
8774 # --recheck option to rerun configure.
8775 #
8776 EOF
8777 # The following way of writing the cache mishandles newlines in values,
8778 # but we know of no workaround that is simple, portable, and efficient.
8779 # So, don't put newlines in cache variables' values.
8780 # Ultrix sh set writes to stderr and can't be redirected directly,
8781 # and sets the high bit in the cache file unless we assign to the vars.
8782 (set) 2>&1 |
8783 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8784 *ac_space=\ *)
8785 # `set' does not quote correctly, so add quotes (double-quote substitution
8786 # turns \\\\ into \\, and sed turns \\ into \).
8787 sed -n \
8788 -e "s/'/'\\\\''/g" \
8789 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8790 ;;
8791 *)
8792 # `set' quotes correctly as required by POSIX, so do not add quotes.
8793 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8794 ;;
8795 esac >> confcache
8796 if cmp -s $cache_file confcache; then
8797 :
8798 else
8799 if test -w $cache_file; then
8800 echo "updating cache $cache_file"
8801 cat confcache > $cache_file
8802 else
8803 echo "not updating unwritable cache $cache_file"
8804 fi
8805 fi
8806 rm -f confcache
8807
8808
8809 if test "$build" != "$host" ; then
8810 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8811 CC=$host_alias-gcc
8812 CXX=$host_alias-c++
8813 AR=$host_alias-ar
8814 RANLIB=$host_alias-ranlib
8815 DLLTOOL=$host_alias-dlltool
8816 RESCOMP=$host_alias-windres
8817 LD=$host_alias-ld
8818 NM=$host_alias-nm
8819 STRIP=$host_alias-strip
8820 else
8821 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8822 fi
8823 fi
8824
8825 CFLAGS=${CFLAGS:=}
8826 # Extract the first word of "gcc", so it can be a program name with args.
8827 set dummy gcc; ac_word=$2
8828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8829 echo "configure:8830: checking for $ac_word" >&5
8830 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8831 echo $ac_n "(cached) $ac_c" 1>&6
8832 else
8833 if test -n "$CC"; then
8834 ac_cv_prog_CC="$CC" # Let the user override the test.
8835 else
8836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8837 ac_dummy="$PATH"
8838 for ac_dir in $ac_dummy; do
8839 test -z "$ac_dir" && ac_dir=.
8840 if test -f $ac_dir/$ac_word; then
8841 ac_cv_prog_CC="gcc"
8842 break
8843 fi
8844 done
8845 IFS="$ac_save_ifs"
8846 fi
8847 fi
8848 CC="$ac_cv_prog_CC"
8849 if test -n "$CC"; then
8850 echo "$ac_t""$CC" 1>&6
8851 else
8852 echo "$ac_t""no" 1>&6
8853 fi
8854
8855 if test -z "$CC"; then
8856 # Extract the first word of "cc", so it can be a program name with args.
8857 set dummy cc; ac_word=$2
8858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8859 echo "configure:8860: checking for $ac_word" >&5
8860 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8861 echo $ac_n "(cached) $ac_c" 1>&6
8862 else
8863 if test -n "$CC"; then
8864 ac_cv_prog_CC="$CC" # Let the user override the test.
8865 else
8866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8867 ac_prog_rejected=no
8868 ac_dummy="$PATH"
8869 for ac_dir in $ac_dummy; do
8870 test -z "$ac_dir" && ac_dir=.
8871 if test -f $ac_dir/$ac_word; then
8872 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8873 ac_prog_rejected=yes
8874 continue
8875 fi
8876 ac_cv_prog_CC="cc"
8877 break
8878 fi
8879 done
8880 IFS="$ac_save_ifs"
8881 if test $ac_prog_rejected = yes; then
8882 # We found a bogon in the path, so make sure we never use it.
8883 set dummy $ac_cv_prog_CC
8884 shift
8885 if test $# -gt 0; then
8886 # We chose a different compiler from the bogus one.
8887 # However, it has the same basename, so the bogon will be chosen
8888 # first if we set CC to just the basename; use the full file name.
8889 shift
8890 set dummy "$ac_dir/$ac_word" "$@"
8891 shift
8892 ac_cv_prog_CC="$@"
8893 fi
8894 fi
8895 fi
8896 fi
8897 CC="$ac_cv_prog_CC"
8898 if test -n "$CC"; then
8899 echo "$ac_t""$CC" 1>&6
8900 else
8901 echo "$ac_t""no" 1>&6
8902 fi
8903
8904 if test -z "$CC"; then
8905 case "`uname -s`" in
8906 *win32* | *WIN32*)
8907 # Extract the first word of "cl", so it can be a program name with args.
8908 set dummy cl; ac_word=$2
8909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8910 echo "configure:8911: checking for $ac_word" >&5
8911 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8912 echo $ac_n "(cached) $ac_c" 1>&6
8913 else
8914 if test -n "$CC"; then
8915 ac_cv_prog_CC="$CC" # Let the user override the test.
8916 else
8917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8918 ac_dummy="$PATH"
8919 for ac_dir in $ac_dummy; do
8920 test -z "$ac_dir" && ac_dir=.
8921 if test -f $ac_dir/$ac_word; then
8922 ac_cv_prog_CC="cl"
8923 break
8924 fi
8925 done
8926 IFS="$ac_save_ifs"
8927 fi
8928 fi
8929 CC="$ac_cv_prog_CC"
8930 if test -n "$CC"; then
8931 echo "$ac_t""$CC" 1>&6
8932 else
8933 echo "$ac_t""no" 1>&6
8934 fi
8935 ;;
8936 esac
8937 fi
8938 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8939 fi
8940
8941 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8942 echo "configure:8943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8943
8944 ac_ext=c
8945 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8946 ac_cpp='$CPP $CPPFLAGS'
8947 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8948 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8949 cross_compiling=$ac_cv_prog_cc_cross
8950
8951 cat > conftest.$ac_ext << EOF
8952
8953 #line 8954 "configure"
8954 #include "confdefs.h"
8955
8956 main(){return(0);}
8957 EOF
8958 if { (eval echo configure:8959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8959 ac_cv_prog_cc_works=yes
8960 # If we can't run a trivial program, we are probably using a cross compiler.
8961 if (./conftest; exit) 2>/dev/null; then
8962 ac_cv_prog_cc_cross=no
8963 else
8964 ac_cv_prog_cc_cross=yes
8965 fi
8966 else
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8969 ac_cv_prog_cc_works=no
8970 fi
8971 rm -fr conftest*
8972 ac_ext=c
8973 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8974 ac_cpp='$CPP $CPPFLAGS'
8975 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8976 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8977 cross_compiling=$ac_cv_prog_cc_cross
8978
8979 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8980 if test $ac_cv_prog_cc_works = no; then
8981 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8982 fi
8983 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8984 echo "configure:8985: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8985 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8986 cross_compiling=$ac_cv_prog_cc_cross
8987
8988 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8989 echo "configure:8990: checking whether we are using GNU C" >&5
8990 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8991 echo $ac_n "(cached) $ac_c" 1>&6
8992 else
8993 cat > conftest.c <<EOF
8994 #ifdef __GNUC__
8995 yes;
8996 #endif
8997 EOF
8998 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8999 ac_cv_prog_gcc=yes
9000 else
9001 ac_cv_prog_gcc=no
9002 fi
9003 fi
9004
9005 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9006
9007 if test $ac_cv_prog_gcc = yes; then
9008 GCC=yes
9009 else
9010 GCC=
9011 fi
9012
9013 ac_test_CFLAGS="${CFLAGS+set}"
9014 ac_save_CFLAGS="$CFLAGS"
9015 CFLAGS=
9016 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9017 echo "configure:9018: checking whether ${CC-cc} accepts -g" >&5
9018 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9019 echo $ac_n "(cached) $ac_c" 1>&6
9020 else
9021 echo 'void f(){}' > conftest.c
9022 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9023 ac_cv_prog_cc_g=yes
9024 else
9025 ac_cv_prog_cc_g=no
9026 fi
9027 rm -f conftest*
9028
9029 fi
9030
9031 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9032 if test "$ac_test_CFLAGS" = set; then
9033 CFLAGS="$ac_save_CFLAGS"
9034 elif test $ac_cv_prog_cc_g = yes; then
9035 if test "$GCC" = yes; then
9036 CFLAGS="-g -O2"
9037 else
9038 CFLAGS="-g"
9039 fi
9040 else
9041 if test "$GCC" = yes; then
9042 CFLAGS="-O2"
9043 else
9044 CFLAGS=
9045 fi
9046 fi
9047
9048
9049 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9050 echo "configure:9051: checking how to run the C preprocessor" >&5
9051 # On Suns, sometimes $CPP names a directory.
9052 if test -n "$CPP" && test -d "$CPP"; then
9053 CPP=
9054 fi
9055 if test -z "$CPP"; then
9056 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9057 echo $ac_n "(cached) $ac_c" 1>&6
9058 else
9059 # This must be in double quotes, not single quotes, because CPP may get
9060 # substituted into the Makefile and "${CC-cc}" will confuse make.
9061 CPP="${CC-cc} -E"
9062 # On the NeXT, cc -E runs the code through the compiler's parser,
9063 # not just through cpp.
9064 cat > conftest.$ac_ext <<EOF
9065 #line 9066 "configure"
9066 #include "confdefs.h"
9067 #include <assert.h>
9068 Syntax Error
9069 EOF
9070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9071 { (eval echo configure:9072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9073 if test -z "$ac_err"; then
9074 :
9075 else
9076 echo "$ac_err" >&5
9077 echo "configure: failed program was:" >&5
9078 cat conftest.$ac_ext >&5
9079 rm -rf conftest*
9080 CPP="${CC-cc} -E -traditional-cpp"
9081 cat > conftest.$ac_ext <<EOF
9082 #line 9083 "configure"
9083 #include "confdefs.h"
9084 #include <assert.h>
9085 Syntax Error
9086 EOF
9087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9088 { (eval echo configure:9089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9090 if test -z "$ac_err"; then
9091 :
9092 else
9093 echo "$ac_err" >&5
9094 echo "configure: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9096 rm -rf conftest*
9097 CPP="${CC-cc} -nologo -E"
9098 cat > conftest.$ac_ext <<EOF
9099 #line 9100 "configure"
9100 #include "confdefs.h"
9101 #include <assert.h>
9102 Syntax Error
9103 EOF
9104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9105 { (eval echo configure:9106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9107 if test -z "$ac_err"; then
9108 :
9109 else
9110 echo "$ac_err" >&5
9111 echo "configure: failed program was:" >&5
9112 cat conftest.$ac_ext >&5
9113 rm -rf conftest*
9114 CPP=/lib/cpp
9115 fi
9116 rm -f conftest*
9117 fi
9118 rm -f conftest*
9119 fi
9120 rm -f conftest*
9121 ac_cv_prog_CPP="$CPP"
9122 fi
9123 CPP="$ac_cv_prog_CPP"
9124 else
9125 ac_cv_prog_CPP="$CPP"
9126 fi
9127 echo "$ac_t""$CPP" 1>&6
9128
9129 if test $ac_cv_prog_gcc = yes; then
9130 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9131 echo "configure:9132: checking whether ${CC-cc} needs -traditional" >&5
9132 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9133 echo $ac_n "(cached) $ac_c" 1>&6
9134 else
9135 ac_pattern="Autoconf.*'x'"
9136 cat > conftest.$ac_ext <<EOF
9137 #line 9138 "configure"
9138 #include "confdefs.h"
9139 #include <sgtty.h>
9140 Autoconf TIOCGETP
9141 EOF
9142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9143 egrep "$ac_pattern" >/dev/null 2>&1; then
9144 rm -rf conftest*
9145 ac_cv_prog_gcc_traditional=yes
9146 else
9147 rm -rf conftest*
9148 ac_cv_prog_gcc_traditional=no
9149 fi
9150 rm -f conftest*
9151
9152
9153 if test $ac_cv_prog_gcc_traditional = no; then
9154 cat > conftest.$ac_ext <<EOF
9155 #line 9156 "configure"
9156 #include "confdefs.h"
9157 #include <termio.h>
9158 Autoconf TCGETA
9159 EOF
9160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9161 egrep "$ac_pattern" >/dev/null 2>&1; then
9162 rm -rf conftest*
9163 ac_cv_prog_gcc_traditional=yes
9164 fi
9165 rm -f conftest*
9166
9167 fi
9168 fi
9169
9170 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9171 if test $ac_cv_prog_gcc_traditional = yes; then
9172 CC="$CC -traditional"
9173 fi
9174 fi
9175
9176
9177
9178 ac_ext=C
9179 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9180 ac_cpp='$CXXCPP $CPPFLAGS'
9181 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9182 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9183 cross_compiling=$ac_cv_prog_cxx_cross
9184
9185
9186 CXXFLAGS=${CXXFLAGS:=}
9187 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9188 do
9189 # Extract the first word of "$ac_prog", so it can be a program name with args.
9190 set dummy $ac_prog; ac_word=$2
9191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9192 echo "configure:9193: checking for $ac_word" >&5
9193 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9194 echo $ac_n "(cached) $ac_c" 1>&6
9195 else
9196 if test -n "$CXX"; then
9197 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9198 else
9199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9200 ac_dummy="$PATH"
9201 for ac_dir in $ac_dummy; do
9202 test -z "$ac_dir" && ac_dir=.
9203 if test -f $ac_dir/$ac_word; then
9204 ac_cv_prog_CXX="$ac_prog"
9205 break
9206 fi
9207 done
9208 IFS="$ac_save_ifs"
9209 fi
9210 fi
9211 CXX="$ac_cv_prog_CXX"
9212 if test -n "$CXX"; then
9213 echo "$ac_t""$CXX" 1>&6
9214 else
9215 echo "$ac_t""no" 1>&6
9216 fi
9217
9218 test -n "$CXX" && break
9219 done
9220 test -n "$CXX" || CXX="gcc"
9221
9222
9223 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9224 echo "configure:9225: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9225
9226 ac_ext=C
9227 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9228 ac_cpp='$CXXCPP $CPPFLAGS'
9229 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9230 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9231 cross_compiling=$ac_cv_prog_cxx_cross
9232
9233 cat > conftest.$ac_ext << EOF
9234
9235 #line 9236 "configure"
9236 #include "confdefs.h"
9237
9238 int main(){return(0);}
9239 EOF
9240 if { (eval echo configure:9241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9241 ac_cv_prog_cxx_works=yes
9242 # If we can't run a trivial program, we are probably using a cross compiler.
9243 if (./conftest; exit) 2>/dev/null; then
9244 ac_cv_prog_cxx_cross=no
9245 else
9246 ac_cv_prog_cxx_cross=yes
9247 fi
9248 else
9249 echo "configure: failed program was:" >&5
9250 cat conftest.$ac_ext >&5
9251 ac_cv_prog_cxx_works=no
9252 fi
9253 rm -fr conftest*
9254 ac_ext=C
9255 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9256 ac_cpp='$CXXCPP $CPPFLAGS'
9257 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9258 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9259 cross_compiling=$ac_cv_prog_cxx_cross
9260
9261 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9262 if test $ac_cv_prog_cxx_works = no; then
9263 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9264 fi
9265 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9266 echo "configure:9267: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9267 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9268 cross_compiling=$ac_cv_prog_cxx_cross
9269
9270 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9271 echo "configure:9272: checking whether we are using GNU C++" >&5
9272 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9273 echo $ac_n "(cached) $ac_c" 1>&6
9274 else
9275 cat > conftest.C <<EOF
9276 #ifdef __GNUC__
9277 yes;
9278 #endif
9279 EOF
9280 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9281 ac_cv_prog_gxx=yes
9282 else
9283 ac_cv_prog_gxx=no
9284 fi
9285 fi
9286
9287 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9288
9289 if test $ac_cv_prog_gxx = yes; then
9290 GXX=yes
9291 else
9292 GXX=
9293 fi
9294
9295 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9296 ac_save_CXXFLAGS="$CXXFLAGS"
9297 CXXFLAGS=
9298 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9299 echo "configure:9300: checking whether ${CXX-g++} accepts -g" >&5
9300 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9301 echo $ac_n "(cached) $ac_c" 1>&6
9302 else
9303 echo 'void f(){}' > conftest.cc
9304 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9305 ac_cv_prog_cxx_g=yes
9306 else
9307 ac_cv_prog_cxx_g=no
9308 fi
9309 rm -f conftest*
9310
9311 fi
9312
9313 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9314 if test "$ac_test_CXXFLAGS" = set; then
9315 CXXFLAGS="$ac_save_CXXFLAGS"
9316 elif test $ac_cv_prog_cxx_g = yes; then
9317 if test "$GXX" = yes; then
9318 CXXFLAGS="-g -O2"
9319 else
9320 CXXFLAGS="-g"
9321 fi
9322 else
9323 if test "$GXX" = yes; then
9324 CXXFLAGS="-O2"
9325 else
9326 CXXFLAGS=
9327 fi
9328 fi
9329
9330
9331 ac_ext=c
9332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9333 ac_cpp='$CPP $CPPFLAGS'
9334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9336 cross_compiling=$ac_cv_prog_cc_cross
9337
9338
9339 # Extract the first word of "ranlib", so it can be a program name with args.
9340 set dummy ranlib; ac_word=$2
9341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9342 echo "configure:9343: checking for $ac_word" >&5
9343 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9344 echo $ac_n "(cached) $ac_c" 1>&6
9345 else
9346 if test -n "$RANLIB"; then
9347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9348 else
9349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9350 ac_dummy="$PATH"
9351 for ac_dir in $ac_dummy; do
9352 test -z "$ac_dir" && ac_dir=.
9353 if test -f $ac_dir/$ac_word; then
9354 ac_cv_prog_RANLIB="ranlib"
9355 break
9356 fi
9357 done
9358 IFS="$ac_save_ifs"
9359 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9360 fi
9361 fi
9362 RANLIB="$ac_cv_prog_RANLIB"
9363 if test -n "$RANLIB"; then
9364 echo "$ac_t""$RANLIB" 1>&6
9365 else
9366 echo "$ac_t""no" 1>&6
9367 fi
9368
9369
9370 # Extract the first word of "ar", so it can be a program name with args.
9371 set dummy ar; ac_word=$2
9372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9373 echo "configure:9374: checking for $ac_word" >&5
9374 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9375 echo $ac_n "(cached) $ac_c" 1>&6
9376 else
9377 if test -n "$AR"; then
9378 ac_cv_prog_AR="$AR" # Let the user override the test.
9379 else
9380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9381 ac_dummy="$PATH"
9382 for ac_dir in $ac_dummy; do
9383 test -z "$ac_dir" && ac_dir=.
9384 if test -f $ac_dir/$ac_word; then
9385 ac_cv_prog_AR="ar"
9386 break
9387 fi
9388 done
9389 IFS="$ac_save_ifs"
9390 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9391 fi
9392 fi
9393 AR="$ac_cv_prog_AR"
9394 if test -n "$AR"; then
9395 echo "$ac_t""$AR" 1>&6
9396 else
9397 echo "$ac_t""no" 1>&6
9398 fi
9399
9400
9401 # Find a good install program. We prefer a C program (faster),
9402 # so one script is as good as another. But avoid the broken or
9403 # incompatible versions:
9404 # SysV /etc/install, /usr/sbin/install
9405 # SunOS /usr/etc/install
9406 # IRIX /sbin/install
9407 # AIX /bin/install
9408 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9409 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9410 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9411 # ./install, which can be erroneously created by make from ./install.sh.
9412 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9413 echo "configure:9414: checking for a BSD compatible install" >&5
9414 if test -z "$INSTALL"; then
9415 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9416 echo $ac_n "(cached) $ac_c" 1>&6
9417 else
9418 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9419 for ac_dir in $PATH; do
9420 # Account for people who put trailing slashes in PATH elements.
9421 case "$ac_dir/" in
9422 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9423 *)
9424 # OSF1 and SCO ODT 3.0 have their own names for install.
9425 # Don't use installbsd from OSF since it installs stuff as root
9426 # by default.
9427 for ac_prog in ginstall scoinst install; do
9428 if test -f $ac_dir/$ac_prog; then
9429 if test $ac_prog = install &&
9430 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9431 # AIX install. It has an incompatible calling convention.
9432 :
9433 else
9434 ac_cv_path_install="$ac_dir/$ac_prog -c"
9435 break 2
9436 fi
9437 fi
9438 done
9439 ;;
9440 esac
9441 done
9442 IFS="$ac_save_IFS"
9443
9444 fi
9445 if test "${ac_cv_path_install+set}" = set; then
9446 INSTALL="$ac_cv_path_install"
9447 else
9448 # As a last resort, use the slow shell script. We don't cache a
9449 # path for INSTALL within a source directory, because that will
9450 # break other packages using the cache if that directory is
9451 # removed, or if the path is relative.
9452 INSTALL="$ac_install_sh"
9453 fi
9454 fi
9455 echo "$ac_t""$INSTALL" 1>&6
9456
9457 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9458 # It thinks the first close brace ends the variable substitution.
9459 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9460
9461 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9462
9463 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9464
9465
9466 case ${INSTALL} in
9467 /* ) # Absolute
9468 ;;
9469 ?:* ) # Drive letter, considered as absolute.
9470 ;;
9471 *)
9472 INSTALL=`pwd`/${INSTALL} ;;
9473 esac
9474
9475 case ${host} in
9476 *-hp-hpux* )
9477 INSTALL_DIR="mkdir"
9478 ;;
9479
9480 *) INSTALL_DIR="$INSTALL -d"
9481 ;;
9482 esac
9483
9484
9485 case "${host}" in
9486
9487 powerpc-*-darwin* )
9488 INSTALL_PROGRAM="cp -fp"
9489 INSTALL_DATA="cp -fp"
9490 ;;
9491 *)
9492 ;;
9493 esac
9494
9495 # Extract the first word of "strip", so it can be a program name with args.
9496 set dummy strip; 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_STRIP'+set}'`\" = set"; then
9500 echo $ac_n "(cached) $ac_c" 1>&6
9501 else
9502 if test -n "$STRIP"; then
9503 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="strip"
9511 break
9512 fi
9513 done
9514 IFS="$ac_save_ifs"
9515 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9516 fi
9517 fi
9518 STRIP="$ac_cv_prog_STRIP"
9519 if test -n "$STRIP"; then
9520 echo "$ac_t""$STRIP" 1>&6
9521 else
9522 echo "$ac_t""no" 1>&6
9523 fi
9524
9525
9526 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9527 echo "configure:9528: checking if make is GNU make" >&5
9528 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9529 echo $ac_n "(cached) $ac_c" 1>&6
9530 else
9531
9532 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9533 egrep -s GNU > /dev/null); then
9534 wx_cv_prog_makeisgnu="yes"
9535 else
9536 wx_cv_prog_makeisgnu="no"
9537 fi
9538
9539 fi
9540
9541 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9542
9543 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9544 IF_GNU_MAKE=""
9545 else
9546 IF_GNU_MAKE="#"
9547 fi
9548
9549
9550
9551 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9552 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9553 echo "configure:9554: checking if make supports VPATH" >&5
9554 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9555 echo $ac_n "(cached) $ac_c" 1>&6
9556 else
9557
9558 cat - << EOF > confMake
9559 check : file
9560 cp \$? \$@
9561 cp \$? final_file
9562 EOF
9563
9564 if test ! -d sub ; then
9565 mkdir sub
9566 fi
9567 echo dummy > sub/file
9568 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9569 RESULT=$?
9570 rm -f sub/file check final_file confMake
9571 rmdir sub
9572 if test "$RESULT" = 0; then
9573 wx_cv_prog_makevpath="yes"
9574 else
9575 wx_cv_prog_makevpath="no"
9576 fi
9577
9578 fi
9579
9580 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9581
9582 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9583 { echo "configure: error:
9584 You need a make-utility that is able to use the variable
9585 VPATH correctly.
9586 If your version of make does not support VPATH correctly,
9587 please install GNU-make (possibly as gmake), and start
9588 configure with the following command:
9589 export MAKE=gmake; ./configure for sh-type shells
9590 setenv MAKE gmake; ./configure for csh-type shells
9591 Also please do remember to use gmake in this case every time
9592 you are trying to compile.
9593 " 1>&2; exit 1; }
9594 fi fi
9595 for ac_prog in 'bison -y' byacc
9596 do
9597 # Extract the first word of "$ac_prog", so it can be a program name with args.
9598 set dummy $ac_prog; ac_word=$2
9599 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9600 echo "configure:9601: checking for $ac_word" >&5
9601 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9602 echo $ac_n "(cached) $ac_c" 1>&6
9603 else
9604 if test -n "$YACC"; then
9605 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9606 else
9607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9608 ac_dummy="$PATH"
9609 for ac_dir in $ac_dummy; do
9610 test -z "$ac_dir" && ac_dir=.
9611 if test -f $ac_dir/$ac_word; then
9612 ac_cv_prog_YACC="$ac_prog"
9613 break
9614 fi
9615 done
9616 IFS="$ac_save_ifs"
9617 fi
9618 fi
9619 YACC="$ac_cv_prog_YACC"
9620 if test -n "$YACC"; then
9621 echo "$ac_t""$YACC" 1>&6
9622 else
9623 echo "$ac_t""no" 1>&6
9624 fi
9625
9626 test -n "$YACC" && break
9627 done
9628 test -n "$YACC" || YACC="yacc"
9629
9630
9631 # Extract the first word of "flex", so it can be a program name with args.
9632 set dummy flex; ac_word=$2
9633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9634 echo "configure:9635: checking for $ac_word" >&5
9635 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9636 echo $ac_n "(cached) $ac_c" 1>&6
9637 else
9638 if test -n "$LEX"; then
9639 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9640 else
9641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9642 ac_dummy="$PATH"
9643 for ac_dir in $ac_dummy; do
9644 test -z "$ac_dir" && ac_dir=.
9645 if test -f $ac_dir/$ac_word; then
9646 ac_cv_prog_LEX="flex"
9647 break
9648 fi
9649 done
9650 IFS="$ac_save_ifs"
9651 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9652 fi
9653 fi
9654 LEX="$ac_cv_prog_LEX"
9655 if test -n "$LEX"; then
9656 echo "$ac_t""$LEX" 1>&6
9657 else
9658 echo "$ac_t""no" 1>&6
9659 fi
9660
9661 if test -z "$LEXLIB"
9662 then
9663 case "$LEX" in
9664 flex*) ac_lib=fl ;;
9665 *) ac_lib=l ;;
9666 esac
9667 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9668 echo "configure:9669: checking for yywrap in -l$ac_lib" >&5
9669 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9670 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9671 echo $ac_n "(cached) $ac_c" 1>&6
9672 else
9673 ac_save_LIBS="$LIBS"
9674 LIBS="-l$ac_lib $LIBS"
9675 cat > conftest.$ac_ext <<EOF
9676 #line 9677 "configure"
9677 #include "confdefs.h"
9678 /* Override any gcc2 internal prototype to avoid an error. */
9679 /* We use char because int might match the return type of a gcc2
9680 builtin and then its argument prototype would still apply. */
9681 char yywrap();
9682
9683 int main() {
9684 yywrap()
9685 ; return 0; }
9686 EOF
9687 if { (eval echo configure:9688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9688 rm -rf conftest*
9689 eval "ac_cv_lib_$ac_lib_var=yes"
9690 else
9691 echo "configure: failed program was:" >&5
9692 cat conftest.$ac_ext >&5
9693 rm -rf conftest*
9694 eval "ac_cv_lib_$ac_lib_var=no"
9695 fi
9696 rm -f conftest*
9697 LIBS="$ac_save_LIBS"
9698
9699 fi
9700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9701 echo "$ac_t""yes" 1>&6
9702 LEXLIB="-l$ac_lib"
9703 else
9704 echo "$ac_t""no" 1>&6
9705 fi
9706
9707 fi
9708
9709
9710 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9711 echo "configure:9712: checking whether ln -s works" >&5
9712 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9713 echo $ac_n "(cached) $ac_c" 1>&6
9714 else
9715 rm -f conftestdata
9716 if ln -s X conftestdata 2>/dev/null
9717 then
9718 rm -f conftestdata
9719 ac_cv_prog_LN_S="ln -s"
9720 else
9721 ac_cv_prog_LN_S=ln
9722 fi
9723 fi
9724 LN_S="$ac_cv_prog_LN_S"
9725 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9726 echo "$ac_t""yes" 1>&6
9727 else
9728 echo "$ac_t""no" 1>&6
9729 fi
9730
9731
9732 case "${host}" in
9733 *-pc-os2_emx | *-pc-os2-emx )
9734 LIBS="$LIBS -lstdcpp"
9735 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9736 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9737 echo "configure:9738: checking for drand48 in -lcExt" >&5
9738 ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9740 echo $ac_n "(cached) $ac_c" 1>&6
9741 else
9742 ac_save_LIBS="$LIBS"
9743 LIBS="-lcExt $LIBS"
9744 cat > conftest.$ac_ext <<EOF
9745 #line 9746 "configure"
9746 #include "confdefs.h"
9747 /* Override any gcc2 internal prototype to avoid an error. */
9748 /* We use char because int might match the return type of a gcc2
9749 builtin and then its argument prototype would still apply. */
9750 char drand48();
9751
9752 int main() {
9753 drand48()
9754 ; return 0; }
9755 EOF
9756 if { (eval echo configure:9757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9757 rm -rf conftest*
9758 eval "ac_cv_lib_$ac_lib_var=yes"
9759 else
9760 echo "configure: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9762 rm -rf conftest*
9763 eval "ac_cv_lib_$ac_lib_var=no"
9764 fi
9765 rm -f conftest*
9766 LIBS="$ac_save_LIBS"
9767
9768 fi
9769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9770 echo "$ac_t""yes" 1>&6
9771 LIBS="$LIBS -lcExt"
9772 else
9773 echo "$ac_t""no" 1>&6
9774 fi
9775
9776 else
9777 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9778 fi
9779 ;;
9780 esac
9781
9782
9783 if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
9784 for ac_hdr in strings.h
9785 do
9786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9788 echo "configure:9789: checking for $ac_hdr" >&5
9789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9790 echo $ac_n "(cached) $ac_c" 1>&6
9791 else
9792 cat > conftest.$ac_ext <<EOF
9793 #line 9794 "configure"
9794 #include "confdefs.h"
9795 #include <$ac_hdr>
9796 EOF
9797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9798 { (eval echo configure:9799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9800 if test -z "$ac_err"; then
9801 rm -rf conftest*
9802 eval "ac_cv_header_$ac_safe=yes"
9803 else
9804 echo "$ac_err" >&5
9805 echo "configure: failed program was:" >&5
9806 cat conftest.$ac_ext >&5
9807 rm -rf conftest*
9808 eval "ac_cv_header_$ac_safe=no"
9809 fi
9810 rm -f conftest*
9811 fi
9812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9813 echo "$ac_t""yes" 1>&6
9814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9815 cat >> confdefs.h <<EOF
9816 #define $ac_tr_hdr 1
9817 EOF
9818
9819 else
9820 echo "$ac_t""no" 1>&6
9821 fi
9822 done
9823
9824 fi
9825
9826 for ac_hdr in stdlib.h
9827 do
9828 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9829 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9830 echo "configure:9831: checking for $ac_hdr" >&5
9831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9832 echo $ac_n "(cached) $ac_c" 1>&6
9833 else
9834 cat > conftest.$ac_ext <<EOF
9835 #line 9836 "configure"
9836 #include "confdefs.h"
9837 #include <$ac_hdr>
9838 EOF
9839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9840 { (eval echo configure:9841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9842 if test -z "$ac_err"; then
9843 rm -rf conftest*
9844 eval "ac_cv_header_$ac_safe=yes"
9845 else
9846 echo "$ac_err" >&5
9847 echo "configure: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9849 rm -rf conftest*
9850 eval "ac_cv_header_$ac_safe=no"
9851 fi
9852 rm -f conftest*
9853 fi
9854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9855 echo "$ac_t""yes" 1>&6
9856 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9857 cat >> confdefs.h <<EOF
9858 #define $ac_tr_hdr 1
9859 EOF
9860
9861 else
9862 echo "$ac_t""no" 1>&6
9863 fi
9864 done
9865
9866 for ac_hdr in malloc.h
9867 do
9868 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9869 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9870 echo "configure:9871: checking for $ac_hdr" >&5
9871 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9872 echo $ac_n "(cached) $ac_c" 1>&6
9873 else
9874 cat > conftest.$ac_ext <<EOF
9875 #line 9876 "configure"
9876 #include "confdefs.h"
9877 #include <$ac_hdr>
9878 EOF
9879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9880 { (eval echo configure:9881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9882 if test -z "$ac_err"; then
9883 rm -rf conftest*
9884 eval "ac_cv_header_$ac_safe=yes"
9885 else
9886 echo "$ac_err" >&5
9887 echo "configure: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9889 rm -rf conftest*
9890 eval "ac_cv_header_$ac_safe=no"
9891 fi
9892 rm -f conftest*
9893 fi
9894 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9895 echo "$ac_t""yes" 1>&6
9896 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9897 cat >> confdefs.h <<EOF
9898 #define $ac_tr_hdr 1
9899 EOF
9900
9901 else
9902 echo "$ac_t""no" 1>&6
9903 fi
9904 done
9905
9906 for ac_hdr in unistd.h
9907 do
9908 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9910 echo "configure:9911: checking for $ac_hdr" >&5
9911 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9912 echo $ac_n "(cached) $ac_c" 1>&6
9913 else
9914 cat > conftest.$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9917 #include <$ac_hdr>
9918 EOF
9919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9920 { (eval echo configure:9921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9922 if test -z "$ac_err"; then
9923 rm -rf conftest*
9924 eval "ac_cv_header_$ac_safe=yes"
9925 else
9926 echo "$ac_err" >&5
9927 echo "configure: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9929 rm -rf conftest*
9930 eval "ac_cv_header_$ac_safe=no"
9931 fi
9932 rm -f conftest*
9933 fi
9934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9935 echo "$ac_t""yes" 1>&6
9936 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9937 cat >> confdefs.h <<EOF
9938 #define $ac_tr_hdr 1
9939 EOF
9940
9941 else
9942 echo "$ac_t""no" 1>&6
9943 fi
9944 done
9945
9946 for ac_hdr in wchar.h
9947 do
9948 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9949 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9950 echo "configure:9951: checking for $ac_hdr" >&5
9951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9952 echo $ac_n "(cached) $ac_c" 1>&6
9953 else
9954 cat > conftest.$ac_ext <<EOF
9955 #line 9956 "configure"
9956 #include "confdefs.h"
9957 #include <$ac_hdr>
9958 EOF
9959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9960 { (eval echo configure:9961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9962 if test -z "$ac_err"; then
9963 rm -rf conftest*
9964 eval "ac_cv_header_$ac_safe=yes"
9965 else
9966 echo "$ac_err" >&5
9967 echo "configure: failed program was:" >&5
9968 cat conftest.$ac_ext >&5
9969 rm -rf conftest*
9970 eval "ac_cv_header_$ac_safe=no"
9971 fi
9972 rm -f conftest*
9973 fi
9974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9975 echo "$ac_t""yes" 1>&6
9976 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9977 cat >> confdefs.h <<EOF
9978 #define $ac_tr_hdr 1
9979 EOF
9980
9981 else
9982 echo "$ac_t""no" 1>&6
9983 fi
9984 done
9985
9986
9987 if test "$ac_cv_header_wchar_h" != "yes"; then
9988 for ac_hdr in wcstr.h
9989 do
9990 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9991 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9992 echo "configure:9993: checking for $ac_hdr" >&5
9993 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9994 echo $ac_n "(cached) $ac_c" 1>&6
9995 else
9996 cat > conftest.$ac_ext <<EOF
9997 #line 9998 "configure"
9998 #include "confdefs.h"
9999 #include <$ac_hdr>
10000 EOF
10001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10002 { (eval echo configure:10003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10004 if test -z "$ac_err"; then
10005 rm -rf conftest*
10006 eval "ac_cv_header_$ac_safe=yes"
10007 else
10008 echo "$ac_err" >&5
10009 echo "configure: failed program was:" >&5
10010 cat conftest.$ac_ext >&5
10011 rm -rf conftest*
10012 eval "ac_cv_header_$ac_safe=no"
10013 fi
10014 rm -f conftest*
10015 fi
10016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10017 echo "$ac_t""yes" 1>&6
10018 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10019 cat >> confdefs.h <<EOF
10020 #define $ac_tr_hdr 1
10021 EOF
10022
10023 else
10024 echo "$ac_t""no" 1>&6
10025 fi
10026 done
10027
10028 fi
10029
10030 for ac_hdr in fnmatch.h
10031 do
10032 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10033 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10034 echo "configure:10035: checking for $ac_hdr" >&5
10035 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10036 echo $ac_n "(cached) $ac_c" 1>&6
10037 else
10038 cat > conftest.$ac_ext <<EOF
10039 #line 10040 "configure"
10040 #include "confdefs.h"
10041 #include <$ac_hdr>
10042 EOF
10043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10044 { (eval echo configure:10045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10046 if test -z "$ac_err"; then
10047 rm -rf conftest*
10048 eval "ac_cv_header_$ac_safe=yes"
10049 else
10050 echo "$ac_err" >&5
10051 echo "configure: failed program was:" >&5
10052 cat conftest.$ac_ext >&5
10053 rm -rf conftest*
10054 eval "ac_cv_header_$ac_safe=no"
10055 fi
10056 rm -f conftest*
10057 fi
10058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10059 echo "$ac_t""yes" 1>&6
10060 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10061 cat >> confdefs.h <<EOF
10062 #define $ac_tr_hdr 1
10063 EOF
10064
10065 else
10066 echo "$ac_t""no" 1>&6
10067 fi
10068 done
10069
10070
10071 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10072 for ac_func in fnmatch
10073 do
10074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10075 echo "configure:10076: checking for $ac_func" >&5
10076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10077 echo $ac_n "(cached) $ac_c" 1>&6
10078 else
10079 cat > conftest.$ac_ext <<EOF
10080 #line 10081 "configure"
10081 #include "confdefs.h"
10082 /* System header to define __stub macros and hopefully few prototypes,
10083 which can conflict with char $ac_func(); below. */
10084 #include <assert.h>
10085 /* Override any gcc2 internal prototype to avoid an error. */
10086 /* We use char because int might match the return type of a gcc2
10087 builtin and then its argument prototype would still apply. */
10088 char $ac_func();
10089
10090 int main() {
10091
10092 /* The GNU C library defines this for functions which it implements
10093 to always fail with ENOSYS. Some functions are actually named
10094 something starting with __ and the normal name is an alias. */
10095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10096 choke me
10097 #else
10098 $ac_func();
10099 #endif
10100
10101 ; return 0; }
10102 EOF
10103 if { (eval echo configure:10104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10104 rm -rf conftest*
10105 eval "ac_cv_func_$ac_func=yes"
10106 else
10107 echo "configure: failed program was:" >&5
10108 cat conftest.$ac_ext >&5
10109 rm -rf conftest*
10110 eval "ac_cv_func_$ac_func=no"
10111 fi
10112 rm -f conftest*
10113 fi
10114
10115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10116 echo "$ac_t""yes" 1>&6
10117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10118 cat >> confdefs.h <<EOF
10119 #define $ac_tr_func 1
10120 EOF
10121
10122 else
10123 echo "$ac_t""no" 1>&6
10124 fi
10125 done
10126
10127 fi
10128
10129 for ac_hdr in langinfo.h
10130 do
10131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10133 echo "configure:10134: checking for $ac_hdr" >&5
10134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10135 echo $ac_n "(cached) $ac_c" 1>&6
10136 else
10137 cat > conftest.$ac_ext <<EOF
10138 #line 10139 "configure"
10139 #include "confdefs.h"
10140 #include <$ac_hdr>
10141 EOF
10142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10143 { (eval echo configure:10144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10145 if test -z "$ac_err"; then
10146 rm -rf conftest*
10147 eval "ac_cv_header_$ac_safe=yes"
10148 else
10149 echo "$ac_err" >&5
10150 echo "configure: failed program was:" >&5
10151 cat conftest.$ac_ext >&5
10152 rm -rf conftest*
10153 eval "ac_cv_header_$ac_safe=no"
10154 fi
10155 rm -f conftest*
10156 fi
10157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10158 echo "$ac_t""yes" 1>&6
10159 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10160 cat >> confdefs.h <<EOF
10161 #define $ac_tr_hdr 1
10162 EOF
10163
10164 else
10165 echo "$ac_t""no" 1>&6
10166 fi
10167 done
10168
10169
10170 case "${host}" in
10171 *-pc-os2_emx | *-pc-os2-emx )
10172 if test $ac_cv_header_langinfo_h = "yes"; then
10173 LIBS="$LIBS -lintl"
10174 fi
10175 ;;
10176 esac
10177
10178 if test "$wxUSE_GUI" = "yes"; then
10179 if test "$wxUSE_UNIX" = "yes"; then
10180 for ac_hdr in X11/XKBlib.h
10181 do
10182 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10183 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10184 echo "configure:10185: checking for $ac_hdr" >&5
10185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10186 echo $ac_n "(cached) $ac_c" 1>&6
10187 else
10188 cat > conftest.$ac_ext <<EOF
10189 #line 10190 "configure"
10190 #include "confdefs.h"
10191 #include <$ac_hdr>
10192 EOF
10193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10194 { (eval echo configure:10195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10196 if test -z "$ac_err"; then
10197 rm -rf conftest*
10198 eval "ac_cv_header_$ac_safe=yes"
10199 else
10200 echo "$ac_err" >&5
10201 echo "configure: failed program was:" >&5
10202 cat conftest.$ac_ext >&5
10203 rm -rf conftest*
10204 eval "ac_cv_header_$ac_safe=no"
10205 fi
10206 rm -f conftest*
10207 fi
10208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10209 echo "$ac_t""yes" 1>&6
10210 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10211 cat >> confdefs.h <<EOF
10212 #define $ac_tr_hdr 1
10213 EOF
10214
10215 else
10216 echo "$ac_t""no" 1>&6
10217 fi
10218 done
10219
10220 fi
10221 fi
10222
10223
10224 echo $ac_n "checking for working const""... $ac_c" 1>&6
10225 echo "configure:10226: checking for working const" >&5
10226 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10227 echo $ac_n "(cached) $ac_c" 1>&6
10228 else
10229 cat > conftest.$ac_ext <<EOF
10230 #line 10231 "configure"
10231 #include "confdefs.h"
10232
10233 int main() {
10234
10235 /* Ultrix mips cc rejects this. */
10236 typedef int charset[2]; const charset x;
10237 /* SunOS 4.1.1 cc rejects this. */
10238 char const *const *ccp;
10239 char **p;
10240 /* NEC SVR4.0.2 mips cc rejects this. */
10241 struct point {int x, y;};
10242 static struct point const zero = {0,0};
10243 /* AIX XL C 1.02.0.0 rejects this.
10244 It does not let you subtract one const X* pointer from another in an arm
10245 of an if-expression whose if-part is not a constant expression */
10246 const char *g = "string";
10247 ccp = &g + (g ? g-g : 0);
10248 /* HPUX 7.0 cc rejects these. */
10249 ++ccp;
10250 p = (char**) ccp;
10251 ccp = (char const *const *) p;
10252 { /* SCO 3.2v4 cc rejects this. */
10253 char *t;
10254 char const *s = 0 ? (char *) 0 : (char const *) 0;
10255
10256 *t++ = 0;
10257 }
10258 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10259 int x[] = {25, 17};
10260 const int *foo = &x[0];
10261 ++foo;
10262 }
10263 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10264 typedef const int *iptr;
10265 iptr p = 0;
10266 ++p;
10267 }
10268 { /* AIX XL C 1.02.0.0 rejects this saying
10269 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10270 struct s { int j; const int *ap[3]; };
10271 struct s *b; b->j = 5;
10272 }
10273 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10274 const int foo = 10;
10275 }
10276
10277 ; return 0; }
10278 EOF
10279 if { (eval echo configure:10280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10280 rm -rf conftest*
10281 ac_cv_c_const=yes
10282 else
10283 echo "configure: failed program was:" >&5
10284 cat conftest.$ac_ext >&5
10285 rm -rf conftest*
10286 ac_cv_c_const=no
10287 fi
10288 rm -f conftest*
10289 fi
10290
10291 echo "$ac_t""$ac_cv_c_const" 1>&6
10292 if test $ac_cv_c_const = no; then
10293 cat >> confdefs.h <<\EOF
10294 #define const
10295 EOF
10296
10297 fi
10298
10299 echo $ac_n "checking for inline""... $ac_c" 1>&6
10300 echo "configure:10301: checking for inline" >&5
10301 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
10303 else
10304 ac_cv_c_inline=no
10305 for ac_kw in inline __inline__ __inline; do
10306 cat > conftest.$ac_ext <<EOF
10307 #line 10308 "configure"
10308 #include "confdefs.h"
10309
10310 int main() {
10311 } $ac_kw foo() {
10312 ; return 0; }
10313 EOF
10314 if { (eval echo configure:10315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10315 rm -rf conftest*
10316 ac_cv_c_inline=$ac_kw; break
10317 else
10318 echo "configure: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 fi
10321 rm -f conftest*
10322 done
10323
10324 fi
10325
10326 echo "$ac_t""$ac_cv_c_inline" 1>&6
10327 case "$ac_cv_c_inline" in
10328 inline | yes) ;;
10329 no) cat >> confdefs.h <<\EOF
10330 #define inline
10331 EOF
10332 ;;
10333 *) cat >> confdefs.h <<EOF
10334 #define inline $ac_cv_c_inline
10335 EOF
10336 ;;
10337 esac
10338
10339
10340 echo $ac_n "checking size of char""... $ac_c" 1>&6
10341 echo "configure:10342: checking size of char" >&5
10342 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10343 echo $ac_n "(cached) $ac_c" 1>&6
10344 else
10345 if test "$cross_compiling" = yes; then
10346 ac_cv_sizeof_char=1
10347 else
10348 cat > conftest.$ac_ext <<EOF
10349 #line 10350 "configure"
10350 #include "confdefs.h"
10351 #include <stdio.h>
10352 #include <sys/types.h>
10353 main()
10354 {
10355 FILE *f=fopen("conftestval", "w");
10356 if (!f) exit(1);
10357 fprintf(f, "%d\n", sizeof(char));
10358 exit(0);
10359 }
10360 EOF
10361 if { (eval echo configure:10362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10362 then
10363 ac_cv_sizeof_char=`cat conftestval`
10364 else
10365 echo "configure: failed program was:" >&5
10366 cat conftest.$ac_ext >&5
10367 rm -fr conftest*
10368 ac_cv_sizeof_char=0
10369 fi
10370 rm -fr conftest*
10371 fi
10372
10373 fi
10374 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10375 cat >> confdefs.h <<EOF
10376 #define SIZEOF_CHAR $ac_cv_sizeof_char
10377 EOF
10378
10379
10380 echo $ac_n "checking size of short""... $ac_c" 1>&6
10381 echo "configure:10382: checking size of short" >&5
10382 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10383 echo $ac_n "(cached) $ac_c" 1>&6
10384 else
10385 if test "$cross_compiling" = yes; then
10386 ac_cv_sizeof_short=2
10387 else
10388 cat > conftest.$ac_ext <<EOF
10389 #line 10390 "configure"
10390 #include "confdefs.h"
10391 #include <stdio.h>
10392 #include <sys/types.h>
10393 main()
10394 {
10395 FILE *f=fopen("conftestval", "w");
10396 if (!f) exit(1);
10397 fprintf(f, "%d\n", sizeof(short));
10398 exit(0);
10399 }
10400 EOF
10401 if { (eval echo configure:10402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10402 then
10403 ac_cv_sizeof_short=`cat conftestval`
10404 else
10405 echo "configure: failed program was:" >&5
10406 cat conftest.$ac_ext >&5
10407 rm -fr conftest*
10408 ac_cv_sizeof_short=0
10409 fi
10410 rm -fr conftest*
10411 fi
10412
10413 fi
10414 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10415 cat >> confdefs.h <<EOF
10416 #define SIZEOF_SHORT $ac_cv_sizeof_short
10417 EOF
10418
10419
10420 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10421 echo "configure:10422: checking size of void *" >&5
10422 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10424 else
10425 if test "$cross_compiling" = yes; then
10426 ac_cv_sizeof_void_p=4
10427 else
10428 cat > conftest.$ac_ext <<EOF
10429 #line 10430 "configure"
10430 #include "confdefs.h"
10431 #include <stdio.h>
10432 #include <sys/types.h>
10433 main()
10434 {
10435 FILE *f=fopen("conftestval", "w");
10436 if (!f) exit(1);
10437 fprintf(f, "%d\n", sizeof(void *));
10438 exit(0);
10439 }
10440 EOF
10441 if { (eval echo configure:10442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10442 then
10443 ac_cv_sizeof_void_p=`cat conftestval`
10444 else
10445 echo "configure: failed program was:" >&5
10446 cat conftest.$ac_ext >&5
10447 rm -fr conftest*
10448 ac_cv_sizeof_void_p=0
10449 fi
10450 rm -fr conftest*
10451 fi
10452
10453 fi
10454 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10455 cat >> confdefs.h <<EOF
10456 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10457 EOF
10458
10459
10460 echo $ac_n "checking size of int""... $ac_c" 1>&6
10461 echo "configure:10462: checking size of int" >&5
10462 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10463 echo $ac_n "(cached) $ac_c" 1>&6
10464 else
10465 if test "$cross_compiling" = yes; then
10466 ac_cv_sizeof_int=4
10467 else
10468 cat > conftest.$ac_ext <<EOF
10469 #line 10470 "configure"
10470 #include "confdefs.h"
10471 #include <stdio.h>
10472 #include <sys/types.h>
10473 main()
10474 {
10475 FILE *f=fopen("conftestval", "w");
10476 if (!f) exit(1);
10477 fprintf(f, "%d\n", sizeof(int));
10478 exit(0);
10479 }
10480 EOF
10481 if { (eval echo configure:10482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10482 then
10483 ac_cv_sizeof_int=`cat conftestval`
10484 else
10485 echo "configure: failed program was:" >&5
10486 cat conftest.$ac_ext >&5
10487 rm -fr conftest*
10488 ac_cv_sizeof_int=0
10489 fi
10490 rm -fr conftest*
10491 fi
10492
10493 fi
10494 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10495 cat >> confdefs.h <<EOF
10496 #define SIZEOF_INT $ac_cv_sizeof_int
10497 EOF
10498
10499
10500 echo $ac_n "checking size of long""... $ac_c" 1>&6
10501 echo "configure:10502: checking size of long" >&5
10502 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10503 echo $ac_n "(cached) $ac_c" 1>&6
10504 else
10505 if test "$cross_compiling" = yes; then
10506 ac_cv_sizeof_long=4
10507 else
10508 cat > conftest.$ac_ext <<EOF
10509 #line 10510 "configure"
10510 #include "confdefs.h"
10511 #include <stdio.h>
10512 #include <sys/types.h>
10513 main()
10514 {
10515 FILE *f=fopen("conftestval", "w");
10516 if (!f) exit(1);
10517 fprintf(f, "%d\n", sizeof(long));
10518 exit(0);
10519 }
10520 EOF
10521 if { (eval echo configure:10522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10522 then
10523 ac_cv_sizeof_long=`cat conftestval`
10524 else
10525 echo "configure: failed program was:" >&5
10526 cat conftest.$ac_ext >&5
10527 rm -fr conftest*
10528 ac_cv_sizeof_long=0
10529 fi
10530 rm -fr conftest*
10531 fi
10532
10533 fi
10534 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10535 cat >> confdefs.h <<EOF
10536 #define SIZEOF_LONG $ac_cv_sizeof_long
10537 EOF
10538
10539
10540
10541 case "${host}" in
10542 arm-*-linux* )
10543 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10544 echo "configure:10545: checking size of long long" >&5
10545 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10546 echo $ac_n "(cached) $ac_c" 1>&6
10547 else
10548 if test "$cross_compiling" = yes; then
10549 ac_cv_sizeof_long_long=8
10550 else
10551 cat > conftest.$ac_ext <<EOF
10552 #line 10553 "configure"
10553 #include "confdefs.h"
10554 #include <stdio.h>
10555 #include <sys/types.h>
10556 main()
10557 {
10558 FILE *f=fopen("conftestval", "w");
10559 if (!f) exit(1);
10560 fprintf(f, "%d\n", sizeof(long long));
10561 exit(0);
10562 }
10563 EOF
10564 if { (eval echo configure:10565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10565 then
10566 ac_cv_sizeof_long_long=`cat conftestval`
10567 else
10568 echo "configure: failed program was:" >&5
10569 cat conftest.$ac_ext >&5
10570 rm -fr conftest*
10571 ac_cv_sizeof_long_long=0
10572 fi
10573 rm -fr conftest*
10574 fi
10575
10576 fi
10577 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10578 cat >> confdefs.h <<EOF
10579 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10580 EOF
10581
10582
10583 ;;
10584 *-hp-hpux* )
10585 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10586 echo "configure:10587: checking size of long long" >&5
10587 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10588 echo $ac_n "(cached) $ac_c" 1>&6
10589 else
10590 if test "$cross_compiling" = yes; then
10591 ac_cv_sizeof_long_long=0
10592 else
10593 cat > conftest.$ac_ext <<EOF
10594 #line 10595 "configure"
10595 #include "confdefs.h"
10596 #include <stdio.h>
10597 #include <sys/types.h>
10598 main()
10599 {
10600 FILE *f=fopen("conftestval", "w");
10601 if (!f) exit(1);
10602 fprintf(f, "%d\n", sizeof(long long));
10603 exit(0);
10604 }
10605 EOF
10606 if { (eval echo configure:10607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10607 then
10608 ac_cv_sizeof_long_long=`cat conftestval`
10609 else
10610 echo "configure: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10612 rm -fr conftest*
10613 ac_cv_sizeof_long_long=0
10614 fi
10615 rm -fr conftest*
10616 fi
10617
10618 fi
10619 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10620 cat >> confdefs.h <<EOF
10621 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10622 EOF
10623
10624
10625 if test "$ac_cv_sizeof_long_long" != "0"; then
10626 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10627 fi
10628 ;;
10629 * )
10630 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10631 echo "configure:10632: checking size of long long" >&5
10632 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10633 echo $ac_n "(cached) $ac_c" 1>&6
10634 else
10635 if test "$cross_compiling" = yes; then
10636 ac_cv_sizeof_long_long=0
10637 else
10638 cat > conftest.$ac_ext <<EOF
10639 #line 10640 "configure"
10640 #include "confdefs.h"
10641 #include <stdio.h>
10642 #include <sys/types.h>
10643 main()
10644 {
10645 FILE *f=fopen("conftestval", "w");
10646 if (!f) exit(1);
10647 fprintf(f, "%d\n", sizeof(long long));
10648 exit(0);
10649 }
10650 EOF
10651 if { (eval echo configure:10652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10652 then
10653 ac_cv_sizeof_long_long=`cat conftestval`
10654 else
10655 echo "configure: failed program was:" >&5
10656 cat conftest.$ac_ext >&5
10657 rm -fr conftest*
10658 ac_cv_sizeof_long_long=0
10659 fi
10660 rm -fr conftest*
10661 fi
10662
10663 fi
10664 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10665 cat >> confdefs.h <<EOF
10666 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10667 EOF
10668
10669
10670 esac
10671
10672 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10673 echo "configure:10674: checking size of wchar_t" >&5
10674 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10675 echo $ac_n "(cached) $ac_c" 1>&6
10676 else
10677
10678 if test "$cross_compiling" = yes; then
10679
10680 case "${host}" in
10681 *-pc-msdosdjgpp )
10682 wx_cv_sizeof_wchar_t=0
10683 ;;
10684 * )
10685 wx_cv_sizeof_wchar_t=4
10686 ;;
10687 esac
10688
10689
10690 else
10691 cat > conftest.$ac_ext <<EOF
10692 #line 10693 "configure"
10693 #include "confdefs.h"
10694
10695 /* DJGPP only has fake wchar_t: */
10696 #ifdef __DJGPP__
10697 # error "fake wchar_t"
10698 #endif
10699 #ifdef HAVE_WCHAR_H
10700 # ifdef __CYGWIN__
10701 # include <stddef.h>
10702 # endif
10703 # include <wchar.h>
10704 #endif
10705 #ifdef HAVE_STDLIB_H
10706 # include <stdlib.h>
10707 #endif
10708 #include <stdio.h>
10709 int main()
10710 {
10711 FILE *f=fopen("conftestval", "w");
10712 if (!f) exit(1);
10713 fprintf(f, "%i", sizeof(wchar_t));
10714 exit(0);
10715 }
10716
10717 EOF
10718 if { (eval echo configure:10719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10719 then
10720 wx_cv_sizeof_wchar_t=`cat conftestval`
10721 else
10722 echo "configure: failed program was:" >&5
10723 cat conftest.$ac_ext >&5
10724 rm -fr conftest*
10725 wx_cv_sizeof_wchar_t=0
10726 fi
10727 rm -fr conftest*
10728 fi
10729
10730
10731 fi
10732
10733 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10734
10735 cat >> confdefs.h <<EOF
10736 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10737 EOF
10738
10739
10740 # Check whether --enable-largefile or --disable-largefile was given.
10741 if test "${enable_largefile+set}" = set; then
10742 enableval="$enable_largefile"
10743 :
10744 fi
10745
10746 if test "$enable_largefile" != no; then
10747 wx_largefile=no
10748
10749 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10750 echo "configure:10751: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10751 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10752 echo $ac_n "(cached) $ac_c" 1>&6
10753 else
10754
10755 cat > conftest.$ac_ext <<EOF
10756 #line 10757 "configure"
10757 #include "confdefs.h"
10758 #define _FILE_OFFSET_BITS 64
10759 #include <sys/types.h>
10760 int main() {
10761 typedef struct {
10762 unsigned int field: sizeof(off_t) == 8;
10763 } wxlf;
10764
10765 ; return 0; }
10766 EOF
10767 if { (eval echo configure:10768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10768 rm -rf conftest*
10769 ac_cv_sys_file_offset_bits=64
10770 else
10771 echo "configure: failed program was:" >&5
10772 cat conftest.$ac_ext >&5
10773 rm -rf conftest*
10774 ac_cv_sys_file_offset_bits=no
10775 fi
10776 rm -f conftest*
10777
10778
10779 fi
10780
10781 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10782
10783 if test "$ac_cv_sys_file_offset_bits" != no; then
10784 wx_largefile=yes
10785 cat >> confdefs.h <<EOF
10786 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10787 EOF
10788
10789 fi
10790
10791 if test "x$wx_largefile" != "xyes"; then
10792
10793 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10794 echo "configure:10795: checking for _LARGE_FILES value needed for large files" >&5
10795 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10797 else
10798
10799 cat > conftest.$ac_ext <<EOF
10800 #line 10801 "configure"
10801 #include "confdefs.h"
10802 #define _LARGE_FILES 1
10803 #include <sys/types.h>
10804 int main() {
10805 typedef struct {
10806 unsigned int field: sizeof(off_t) == 8;
10807 } wxlf;
10808
10809 ; return 0; }
10810 EOF
10811 if { (eval echo configure:10812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10812 rm -rf conftest*
10813 ac_cv_sys_large_files=1
10814 else
10815 echo "configure: failed program was:" >&5
10816 cat conftest.$ac_ext >&5
10817 rm -rf conftest*
10818 ac_cv_sys_large_files=no
10819 fi
10820 rm -f conftest*
10821
10822
10823 fi
10824
10825 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10826
10827 if test "$ac_cv_sys_large_files" != no; then
10828 wx_largefile=yes
10829 cat >> confdefs.h <<EOF
10830 #define _LARGE_FILES $ac_cv_sys_large_files
10831 EOF
10832
10833 fi
10834
10835 fi
10836
10837 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10838 echo "configure:10839: checking if large file support is available" >&5
10839 if test "x$wx_largefile" = "xyes"; then
10840 cat >> confdefs.h <<\EOF
10841 #define HAVE_LARGEFILE_SUPPORT 1
10842 EOF
10843
10844 fi
10845 echo "$ac_t""$wx_largefile" 1>&6
10846 fi
10847
10848
10849 if test "x$wx_largefile" = "xyes"; then
10850 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10851 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10852 else
10853 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10854 fi
10855 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10856 fi
10857
10858 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10859 echo "configure:10860: checking whether byte ordering is bigendian" >&5
10860 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
10862 else
10863 ac_cv_c_bigendian=unknown
10864 # See if sys/param.h defines the BYTE_ORDER macro.
10865 cat > conftest.$ac_ext <<EOF
10866 #line 10867 "configure"
10867 #include "confdefs.h"
10868 #include <sys/types.h>
10869 #include <sys/param.h>
10870 int main() {
10871
10872 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10873 bogus endian macros
10874 #endif
10875 ; return 0; }
10876 EOF
10877 if { (eval echo configure:10878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10878 rm -rf conftest*
10879 # It does; now see whether it defined to BIG_ENDIAN or not.
10880 cat > conftest.$ac_ext <<EOF
10881 #line 10882 "configure"
10882 #include "confdefs.h"
10883 #include <sys/types.h>
10884 #include <sys/param.h>
10885 int main() {
10886
10887 #if BYTE_ORDER != BIG_ENDIAN
10888 not big endian
10889 #endif
10890 ; return 0; }
10891 EOF
10892 if { (eval echo configure:10893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10893 rm -rf conftest*
10894 ac_cv_c_bigendian=yes
10895 else
10896 echo "configure: failed program was:" >&5
10897 cat conftest.$ac_ext >&5
10898 rm -rf conftest*
10899 ac_cv_c_bigendian=no
10900 fi
10901 rm -f conftest*
10902 else
10903 echo "configure: failed program was:" >&5
10904 cat conftest.$ac_ext >&5
10905 fi
10906 rm -f conftest*
10907 if test $ac_cv_c_bigendian = unknown; then
10908 if test "$cross_compiling" = yes; then
10909 ac_cv_c_bigendian=unknown
10910 else
10911 cat > conftest.$ac_ext <<EOF
10912 #line 10913 "configure"
10913 #include "confdefs.h"
10914 main () {
10915 /* Are we little or big endian? From Harbison&Steele. */
10916 union
10917 {
10918 long l;
10919 char c[sizeof (long)];
10920 } u;
10921 u.l = 1;
10922 exit (u.c[sizeof (long) - 1] == 1);
10923 }
10924 EOF
10925 if { (eval echo configure:10926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10926 then
10927 ac_cv_c_bigendian=no
10928 else
10929 echo "configure: failed program was:" >&5
10930 cat conftest.$ac_ext >&5
10931 rm -fr conftest*
10932 ac_cv_c_bigendian=yes
10933 fi
10934 rm -fr conftest*
10935 fi
10936
10937 fi
10938 fi
10939
10940 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10941 if test $ac_cv_c_bigendian = unknown; then
10942 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
10943 fi
10944 if test $ac_cv_c_bigendian = yes; then
10945 cat >> confdefs.h <<\EOF
10946 #define WORDS_BIGENDIAN 1
10947 EOF
10948
10949 fi
10950
10951
10952 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10953 echo "configure:10954: checking how to run the C++ preprocessor" >&5
10954 if test -z "$CXXCPP"; then
10955 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10956 echo $ac_n "(cached) $ac_c" 1>&6
10957 else
10958 ac_ext=C
10959 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10960 ac_cpp='$CXXCPP $CPPFLAGS'
10961 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10962 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10963 cross_compiling=$ac_cv_prog_cxx_cross
10964 CXXCPP="${CXX-g++} -E"
10965 cat > conftest.$ac_ext <<EOF
10966 #line 10967 "configure"
10967 #include "confdefs.h"
10968 #include <stdlib.h>
10969 EOF
10970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10971 { (eval echo configure:10972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10973 if test -z "$ac_err"; then
10974 :
10975 else
10976 echo "$ac_err" >&5
10977 echo "configure: failed program was:" >&5
10978 cat conftest.$ac_ext >&5
10979 rm -rf conftest*
10980 CXXCPP=/lib/cpp
10981 fi
10982 rm -f conftest*
10983 ac_cv_prog_CXXCPP="$CXXCPP"
10984 ac_ext=C
10985 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10986 ac_cpp='$CXXCPP $CPPFLAGS'
10987 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10988 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10989 cross_compiling=$ac_cv_prog_cxx_cross
10990 fi
10991 fi
10992 CXXCPP="$ac_cv_prog_CXXCPP"
10993 echo "$ac_t""$CXXCPP" 1>&6
10994
10995
10996 if test "$cross_compiling" = "yes"; then
10997 cat >> confdefs.h <<\EOF
10998 #define wxUSE_IOSTREAMH 1
10999 EOF
11000
11001 else
11002
11003 ac_ext=C
11004 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11005 ac_cpp='$CXXCPP $CPPFLAGS'
11006 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11007 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11008 cross_compiling=$ac_cv_prog_cxx_cross
11009
11010
11011 for ac_hdr in iostream
11012 do
11013 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11015 echo "configure:11016: checking for $ac_hdr" >&5
11016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11017 echo $ac_n "(cached) $ac_c" 1>&6
11018 else
11019 cat > conftest.$ac_ext <<EOF
11020 #line 11021 "configure"
11021 #include "confdefs.h"
11022 #include <$ac_hdr>
11023 EOF
11024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11025 { (eval echo configure:11026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11027 if test -z "$ac_err"; then
11028 rm -rf conftest*
11029 eval "ac_cv_header_$ac_safe=yes"
11030 else
11031 echo "$ac_err" >&5
11032 echo "configure: failed program was:" >&5
11033 cat conftest.$ac_ext >&5
11034 rm -rf conftest*
11035 eval "ac_cv_header_$ac_safe=no"
11036 fi
11037 rm -f conftest*
11038 fi
11039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11040 echo "$ac_t""yes" 1>&6
11041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11042 cat >> confdefs.h <<EOF
11043 #define $ac_tr_hdr 1
11044 EOF
11045
11046 else
11047 echo "$ac_t""no" 1>&6
11048 fi
11049 done
11050
11051
11052 if test "$ac_cv_header_iostream" = "yes" ; then
11053 :
11054 else
11055 cat >> confdefs.h <<\EOF
11056 #define wxUSE_IOSTREAMH 1
11057 EOF
11058
11059 fi
11060
11061 ac_ext=c
11062 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11063 ac_cpp='$CPP $CPPFLAGS'
11064 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11065 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11066 cross_compiling=$ac_cv_prog_cc_cross
11067
11068 fi
11069
11070
11071
11072 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11073 echo "configure:11074: checking if C++ compiler supports bool" >&5
11074 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11075 echo $ac_n "(cached) $ac_c" 1>&6
11076 else
11077
11078
11079 ac_ext=C
11080 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11081 ac_cpp='$CXXCPP $CPPFLAGS'
11082 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11083 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11084 cross_compiling=$ac_cv_prog_cxx_cross
11085
11086
11087 cat > conftest.$ac_ext <<EOF
11088 #line 11089 "configure"
11089 #include "confdefs.h"
11090
11091
11092 int main() {
11093
11094 bool b = true;
11095
11096 return 0;
11097
11098 ; return 0; }
11099 EOF
11100 if { (eval echo configure:11101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11101 rm -rf conftest*
11102
11103 wx_cv_cpp_bool=yes
11104
11105 else
11106 echo "configure: failed program was:" >&5
11107 cat conftest.$ac_ext >&5
11108 rm -rf conftest*
11109
11110 wx_cv_cpp_bool=no
11111
11112
11113 fi
11114 rm -f conftest*
11115
11116 ac_ext=c
11117 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11118 ac_cpp='$CPP $CPPFLAGS'
11119 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11120 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11121 cross_compiling=$ac_cv_prog_cc_cross
11122
11123
11124 fi
11125
11126 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11127
11128 if test "$wx_cv_cpp_bool" = "yes"; then
11129 cat >> confdefs.h <<\EOF
11130 #define HAVE_BOOL 1
11131 EOF
11132
11133 fi
11134
11135
11136
11137 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11138 echo "configure:11139: checking if C++ compiler supports the explicit keyword" >&5
11139 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11140 echo $ac_n "(cached) $ac_c" 1>&6
11141 else
11142
11143
11144 ac_ext=C
11145 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11146 ac_cpp='$CXXCPP $CPPFLAGS'
11147 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11148 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11149 cross_compiling=$ac_cv_prog_cxx_cross
11150
11151
11152 cat > conftest.$ac_ext <<EOF
11153 #line 11154 "configure"
11154 #include "confdefs.h"
11155
11156 class Foo { public: explicit Foo(int) {} };
11157
11158 int main() {
11159
11160 return 0;
11161
11162 ; return 0; }
11163 EOF
11164 if { (eval echo configure:11165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11165 rm -rf conftest*
11166
11167 cat > conftest.$ac_ext <<EOF
11168 #line 11169 "configure"
11169 #include "confdefs.h"
11170
11171 class Foo { public: explicit Foo(int) {} };
11172 static void TakeFoo(const Foo& foo) { }
11173
11174 int main() {
11175
11176 TakeFoo(17);
11177 return 0;
11178
11179 ; return 0; }
11180 EOF
11181 if { (eval echo configure:11182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11182 rm -rf conftest*
11183 wx_cv_explicit=no
11184 else
11185 echo "configure: failed program was:" >&5
11186 cat conftest.$ac_ext >&5
11187 rm -rf conftest*
11188 wx_cv_explicit=yes
11189
11190 fi
11191 rm -f conftest*
11192
11193 else
11194 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5
11196 rm -rf conftest*
11197 wx_cv_explicit=no
11198
11199 fi
11200 rm -f conftest*
11201
11202 ac_ext=c
11203 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11204 ac_cpp='$CPP $CPPFLAGS'
11205 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11206 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11207 cross_compiling=$ac_cv_prog_cc_cross
11208
11209
11210 fi
11211
11212 echo "$ac_t""$wx_cv_explicit" 1>&6
11213
11214 if test "$wx_cv_explicit" = "yes"; then
11215 cat >> confdefs.h <<\EOF
11216 #define HAVE_EXPLICIT 1
11217 EOF
11218
11219 fi
11220
11221
11222 echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
11223 echo "configure:11224: checking whether the compiler supports const_cast<>" >&5
11224 if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11226 else
11227
11228 ac_ext=C
11229 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11230 ac_cpp='$CXXCPP $CPPFLAGS'
11231 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11232 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11233 cross_compiling=$ac_cv_prog_cxx_cross
11234
11235 cat > conftest.$ac_ext <<EOF
11236 #line 11237 "configure"
11237 #include "confdefs.h"
11238
11239 int main() {
11240 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11241 ; return 0; }
11242 EOF
11243 if { (eval echo configure:11244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11244 rm -rf conftest*
11245 ac_cv_cxx_const_cast=yes
11246 else
11247 echo "configure: failed program was:" >&5
11248 cat conftest.$ac_ext >&5
11249 rm -rf conftest*
11250 ac_cv_cxx_const_cast=no
11251 fi
11252 rm -f conftest*
11253 ac_ext=c
11254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11255 ac_cpp='$CPP $CPPFLAGS'
11256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11258 cross_compiling=$ac_cv_prog_cc_cross
11259
11260
11261 fi
11262
11263 echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11264 if test "$ac_cv_cxx_const_cast" = yes; then
11265 cat >> confdefs.h <<\EOF
11266 #define HAVE_CONST_CAST
11267 EOF
11268
11269 fi
11270
11271
11272
11273 SEARCH_INCLUDE="\
11274 /usr/local/include \
11275 \
11276 /usr/Motif-1.2/include \
11277 /usr/Motif-2.1/include \
11278 \
11279 /usr/include/Motif1.2 \
11280 /opt/xpm/include/X11 \
11281 /opt/GBxpm/include/ \
11282 /opt/GBxpm/X11/include/ \
11283 \
11284 /usr/Motif1.2/include \
11285 /usr/dt/include \
11286 /usr/openwin/include \
11287 \
11288 /usr/include/Xm \
11289 \
11290 /usr/X11R6/include \
11291 /usr/X11R6.4/include \
11292 /usr/X11R5/include \
11293 /usr/X11R4/include \
11294 \
11295 /usr/include/X11R6 \
11296 /usr/include/X11R5 \
11297 /usr/include/X11R4 \
11298 \
11299 /usr/local/X11R6/include \
11300 /usr/local/X11R5/include \
11301 /usr/local/X11R4/include \
11302 \
11303 /usr/local/include/X11R6 \
11304 /usr/local/include/X11R5 \
11305 /usr/local/include/X11R4 \
11306 \
11307 /usr/X11/include \
11308 /usr/include/X11 \
11309 /usr/local/X11/include \
11310 /usr/local/include/X11 \
11311 \
11312 /usr/X386/include \
11313 /usr/x386/include \
11314 /usr/XFree86/include/X11 \
11315 \
11316 X:/XFree86/include \
11317 X:/XFree86/include/X11 \
11318 \
11319 /usr/include/gtk \
11320 /usr/local/include/gtk \
11321 /usr/include/glib \
11322 /usr/local/include/glib \
11323 \
11324 /usr/include/qt \
11325 /usr/local/include/qt \
11326 \
11327 /usr/include/windows \
11328 /usr/include/wine \
11329 /usr/local/include/wine \
11330 \
11331 /usr/unsupported/include \
11332 /usr/athena/include \
11333 /usr/local/x11r5/include \
11334 /usr/lpp/Xamples/include \
11335 \
11336 /usr/openwin/share/include"
11337
11338 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11339
11340
11341 cat > confcache <<\EOF
11342 # This file is a shell script that caches the results of configure
11343 # tests run on this system so they can be shared between configure
11344 # scripts and configure runs. It is not useful on other systems.
11345 # If it contains results you don't want to keep, you may remove or edit it.
11346 #
11347 # By default, configure uses ./config.cache as the cache file,
11348 # creating it if it does not exist already. You can give configure
11349 # the --cache-file=FILE option to use a different cache file; that is
11350 # what configure does when it calls configure scripts in
11351 # subdirectories, so they share the cache.
11352 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11353 # config.status only pays attention to the cache file if you give it the
11354 # --recheck option to rerun configure.
11355 #
11356 EOF
11357 # The following way of writing the cache mishandles newlines in values,
11358 # but we know of no workaround that is simple, portable, and efficient.
11359 # So, don't put newlines in cache variables' values.
11360 # Ultrix sh set writes to stderr and can't be redirected directly,
11361 # and sets the high bit in the cache file unless we assign to the vars.
11362 (set) 2>&1 |
11363 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11364 *ac_space=\ *)
11365 # `set' does not quote correctly, so add quotes (double-quote substitution
11366 # turns \\\\ into \\, and sed turns \\ into \).
11367 sed -n \
11368 -e "s/'/'\\\\''/g" \
11369 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11370 ;;
11371 *)
11372 # `set' quotes correctly as required by POSIX, so do not add quotes.
11373 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11374 ;;
11375 esac >> confcache
11376 if cmp -s $cache_file confcache; then
11377 :
11378 else
11379 if test -w $cache_file; then
11380 echo "updating cache $cache_file"
11381 cat confcache > $cache_file
11382 else
11383 echo "not updating unwritable cache $cache_file"
11384 fi
11385 fi
11386 rm -f confcache
11387
11388
11389 if test "$USE_LINUX" = 1; then
11390 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11391 echo "configure:11392: checking for glibc 2.1 or later" >&5
11392 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11393 echo $ac_n "(cached) $ac_c" 1>&6
11394 else
11395
11396 cat > conftest.$ac_ext <<EOF
11397 #line 11398 "configure"
11398 #include "confdefs.h"
11399 #include <features.h>
11400 int main() {
11401
11402 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11403 #error not glibc2.1
11404 #endif
11405
11406 ; return 0; }
11407 EOF
11408 if { (eval echo configure:11409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11409 rm -rf conftest*
11410
11411 wx_cv_lib_glibc21=yes
11412
11413 else
11414 echo "configure: failed program was:" >&5
11415 cat conftest.$ac_ext >&5
11416 rm -rf conftest*
11417
11418 wx_cv_lib_glibc21=no
11419
11420
11421 fi
11422 rm -f conftest*
11423
11424 fi
11425
11426 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11427 if test "$wx_cv_lib_glibc21" = "yes"; then
11428 cat >> confdefs.h <<\EOF
11429 #define wxHAVE_GLIBC2 1
11430 EOF
11431
11432 fi
11433 fi
11434
11435 if test "x$wx_cv_lib_glibc21" = "xyes"; then
11436 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11437 cat >> confdefs.h <<\EOF
11438 #define _GNU_SOURCE 1
11439 EOF
11440
11441 fi
11442 fi
11443
11444
11445
11446 REGEX_INCLUDE=
11447 if test "$wxUSE_REGEX" != "no"; then
11448 cat >> confdefs.h <<\EOF
11449 #define wxUSE_REGEX 1
11450 EOF
11451
11452
11453 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11454 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11455 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11456 echo "configure:11457: checking for regex.h" >&5
11457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11458 echo $ac_n "(cached) $ac_c" 1>&6
11459 else
11460 cat > conftest.$ac_ext <<EOF
11461 #line 11462 "configure"
11462 #include "confdefs.h"
11463 #include <regex.h>
11464 EOF
11465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11466 { (eval echo configure:11467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11468 if test -z "$ac_err"; then
11469 rm -rf conftest*
11470 eval "ac_cv_header_$ac_safe=yes"
11471 else
11472 echo "$ac_err" >&5
11473 echo "configure: failed program was:" >&5
11474 cat conftest.$ac_ext >&5
11475 rm -rf conftest*
11476 eval "ac_cv_header_$ac_safe=no"
11477 fi
11478 rm -f conftest*
11479 fi
11480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11481 echo "$ac_t""yes" 1>&6
11482 for ac_func in regcomp
11483 do
11484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11485 echo "configure:11486: checking for $ac_func" >&5
11486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11487 echo $ac_n "(cached) $ac_c" 1>&6
11488 else
11489 cat > conftest.$ac_ext <<EOF
11490 #line 11491 "configure"
11491 #include "confdefs.h"
11492 /* System header to define __stub macros and hopefully few prototypes,
11493 which can conflict with char $ac_func(); below. */
11494 #include <assert.h>
11495 /* Override any gcc2 internal prototype to avoid an error. */
11496 /* We use char because int might match the return type of a gcc2
11497 builtin and then its argument prototype would still apply. */
11498 char $ac_func();
11499
11500 int main() {
11501
11502 /* The GNU C library defines this for functions which it implements
11503 to always fail with ENOSYS. Some functions are actually named
11504 something starting with __ and the normal name is an alias. */
11505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11506 choke me
11507 #else
11508 $ac_func();
11509 #endif
11510
11511 ; return 0; }
11512 EOF
11513 if { (eval echo configure:11514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11514 rm -rf conftest*
11515 eval "ac_cv_func_$ac_func=yes"
11516 else
11517 echo "configure: failed program was:" >&5
11518 cat conftest.$ac_ext >&5
11519 rm -rf conftest*
11520 eval "ac_cv_func_$ac_func=no"
11521 fi
11522 rm -f conftest*
11523 fi
11524
11525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11526 echo "$ac_t""yes" 1>&6
11527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11528 cat >> confdefs.h <<EOF
11529 #define $ac_tr_func 1
11530 EOF
11531
11532 else
11533 echo "$ac_t""no" 1>&6
11534 fi
11535 done
11536
11537 else
11538 echo "$ac_t""no" 1>&6
11539 fi
11540
11541
11542 if test "x$ac_cv_func_regcomp" != "xyes"; then
11543 if test "$wxUSE_REGEX" = "sys" ; then
11544 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11545 else
11546 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11547 wxUSE_REGEX=builtin
11548 fi
11549 else
11550 wxUSE_REGEX=sys
11551 fi
11552 fi
11553
11554 if test "$wxUSE_REGEX" = "builtin" ; then
11555 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11556 fi
11557 fi
11558
11559
11560 ZLIB_INCLUDE=
11561 ZLIB_LINK=
11562 if test "$wxUSE_ZLIB" != "no" ; then
11563 cat >> confdefs.h <<\EOF
11564 #define wxUSE_ZLIB 1
11565 EOF
11566
11567
11568 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11569 if test "$USE_DARWIN" = 1; then
11570 system_zlib_h_ok="yes"
11571 else
11572 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11573 echo "configure:11574: checking for zlib.h >= 1.1.4" >&5
11574 if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11575 echo $ac_n "(cached) $ac_c" 1>&6
11576 else
11577 if test "$cross_compiling" = yes; then
11578 unset ac_cv_header_zlib_h
11579
11580 else
11581 cat > conftest.$ac_ext <<EOF
11582 #line 11583 "configure"
11583 #include "confdefs.h"
11584
11585 #include <zlib.h>
11586 #include <stdio.h>
11587
11588
11589 int main()
11590 {
11591 FILE *f=fopen("conftestval", "w");
11592 if (!f) exit(1);
11593 fprintf(f, "%s",
11594 ZLIB_VERSION[0] == '1' &&
11595 (ZLIB_VERSION[2] > '1' ||
11596 (ZLIB_VERSION[2] == '1' &&
11597 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11598 exit(0);
11599 }
11600
11601
11602 EOF
11603 if { (eval echo configure:11604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11604 then
11605 ac_cv_header_zlib_h=`cat conftestval`
11606 else
11607 echo "configure: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11609 rm -fr conftest*
11610 ac_cv_header_zlib_h=no
11611 fi
11612 rm -fr conftest*
11613 fi
11614
11615
11616 fi
11617
11618 echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11619 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11620 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11621 echo "configure:11622: checking for zlib.h" >&5
11622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11623 echo $ac_n "(cached) $ac_c" 1>&6
11624 else
11625 cat > conftest.$ac_ext <<EOF
11626 #line 11627 "configure"
11627 #include "confdefs.h"
11628 #include <zlib.h>
11629 EOF
11630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11631 { (eval echo configure:11632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11633 if test -z "$ac_err"; then
11634 rm -rf conftest*
11635 eval "ac_cv_header_$ac_safe=yes"
11636 else
11637 echo "$ac_err" >&5
11638 echo "configure: failed program was:" >&5
11639 cat conftest.$ac_ext >&5
11640 rm -rf conftest*
11641 eval "ac_cv_header_$ac_safe=no"
11642 fi
11643 rm -f conftest*
11644 fi
11645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11646 echo "$ac_t""yes" 1>&6
11647 :
11648 else
11649 echo "$ac_t""no" 1>&6
11650 fi
11651
11652
11653 system_zlib_h_ok=$ac_cv_header_zlib_h
11654 fi
11655
11656 if test "$system_zlib_h_ok" = "yes"; then
11657 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11658 echo "configure:11659: checking for deflate in -lz" >&5
11659 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11661 echo $ac_n "(cached) $ac_c" 1>&6
11662 else
11663 ac_save_LIBS="$LIBS"
11664 LIBS="-lz $LIBS"
11665 cat > conftest.$ac_ext <<EOF
11666 #line 11667 "configure"
11667 #include "confdefs.h"
11668 /* Override any gcc2 internal prototype to avoid an error. */
11669 /* We use char because int might match the return type of a gcc2
11670 builtin and then its argument prototype would still apply. */
11671 char deflate();
11672
11673 int main() {
11674 deflate()
11675 ; return 0; }
11676 EOF
11677 if { (eval echo configure:11678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11678 rm -rf conftest*
11679 eval "ac_cv_lib_$ac_lib_var=yes"
11680 else
11681 echo "configure: failed program was:" >&5
11682 cat conftest.$ac_ext >&5
11683 rm -rf conftest*
11684 eval "ac_cv_lib_$ac_lib_var=no"
11685 fi
11686 rm -f conftest*
11687 LIBS="$ac_save_LIBS"
11688
11689 fi
11690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11691 echo "$ac_t""yes" 1>&6
11692 ZLIB_LINK=" -lz"
11693 else
11694 echo "$ac_t""no" 1>&6
11695 fi
11696
11697 fi
11698
11699 if test "x$ZLIB_LINK" = "x" ; then
11700 if test "$wxUSE_ZLIB" = "sys" ; then
11701 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11702 else
11703 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11704 wxUSE_ZLIB=builtin
11705 fi
11706 else
11707 wxUSE_ZLIB=sys
11708 fi
11709 fi
11710
11711 if test "$wxUSE_ZLIB" = "builtin" ; then
11712 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11713 fi
11714 fi
11715
11716
11717 PNG_INCLUDE=
11718 PNG_LINK=
11719 if test "$wxUSE_LIBPNG" != "no" ; then
11720 cat >> confdefs.h <<\EOF
11721 #define wxUSE_LIBPNG 1
11722 EOF
11723
11724
11725 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11726 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11727 wxUSE_LIBPNG=sys
11728 fi
11729
11730 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11731 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11732 wxUSE_LIBPNG=builtin
11733 fi
11734
11735 if test "$wxUSE_MGL" != 1 ; then
11736 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11737 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11738 echo "configure:11739: checking for png.h > 0.90" >&5
11739 if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11740 echo $ac_n "(cached) $ac_c" 1>&6
11741 else
11742 if test "$cross_compiling" = yes; then
11743 unset ac_cv_header_png_h
11744
11745 else
11746 cat > conftest.$ac_ext <<EOF
11747 #line 11748 "configure"
11748 #include "confdefs.h"
11749
11750 #include <png.h>
11751 #include <stdio.h>
11752
11753 int main()
11754 {
11755 FILE *f=fopen("conftestval", "w");
11756 if (!f) exit(1);
11757 fprintf(f, "%s",
11758 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11759 exit(0);
11760 }
11761
11762 EOF
11763 if { (eval echo configure:11764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11764 then
11765 ac_cv_header_png_h=`cat conftestval`
11766 else
11767 echo "configure: failed program was:" >&5
11768 cat conftest.$ac_ext >&5
11769 rm -fr conftest*
11770 ac_cv_header_png_h=no
11771 fi
11772 rm -fr conftest*
11773 fi
11774
11775
11776 fi
11777
11778 echo "$ac_t""$ac_cv_header_png_h" 1>&6
11779 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11780 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11781 echo "configure:11782: checking for png.h" >&5
11782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11783 echo $ac_n "(cached) $ac_c" 1>&6
11784 else
11785 cat > conftest.$ac_ext <<EOF
11786 #line 11787 "configure"
11787 #include "confdefs.h"
11788 #include <png.h>
11789 EOF
11790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11791 { (eval echo configure:11792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11793 if test -z "$ac_err"; then
11794 rm -rf conftest*
11795 eval "ac_cv_header_$ac_safe=yes"
11796 else
11797 echo "$ac_err" >&5
11798 echo "configure: failed program was:" >&5
11799 cat conftest.$ac_ext >&5
11800 rm -rf conftest*
11801 eval "ac_cv_header_$ac_safe=no"
11802 fi
11803 rm -f conftest*
11804 fi
11805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11806 echo "$ac_t""yes" 1>&6
11807 :
11808 else
11809 echo "$ac_t""no" 1>&6
11810 fi
11811
11812
11813 if test "$ac_cv_header_png_h" = "yes"; then
11814 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11815 echo "configure:11816: checking for png_check_sig in -lpng" >&5
11816 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11818 echo $ac_n "(cached) $ac_c" 1>&6
11819 else
11820 ac_save_LIBS="$LIBS"
11821 LIBS="-lpng -lz -lm $LIBS"
11822 cat > conftest.$ac_ext <<EOF
11823 #line 11824 "configure"
11824 #include "confdefs.h"
11825 /* Override any gcc2 internal prototype to avoid an error. */
11826 /* We use char because int might match the return type of a gcc2
11827 builtin and then its argument prototype would still apply. */
11828 char png_check_sig();
11829
11830 int main() {
11831 png_check_sig()
11832 ; return 0; }
11833 EOF
11834 if { (eval echo configure:11835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11835 rm -rf conftest*
11836 eval "ac_cv_lib_$ac_lib_var=yes"
11837 else
11838 echo "configure: failed program was:" >&5
11839 cat conftest.$ac_ext >&5
11840 rm -rf conftest*
11841 eval "ac_cv_lib_$ac_lib_var=no"
11842 fi
11843 rm -f conftest*
11844 LIBS="$ac_save_LIBS"
11845
11846 fi
11847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11848 echo "$ac_t""yes" 1>&6
11849 PNG_LINK=" -lpng"
11850 else
11851 echo "$ac_t""no" 1>&6
11852 fi
11853
11854 fi
11855
11856 if test "x$PNG_LINK" = "x" ; then
11857 if test "$wxUSE_LIBPNG" = "sys" ; then
11858 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11859 else
11860 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11861 wxUSE_LIBPNG=builtin
11862 fi
11863 else
11864 wxUSE_LIBPNG=sys
11865 fi
11866 fi
11867 fi
11868
11869 if test "$wxUSE_LIBPNG" = "builtin" ; then
11870 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11871 fi
11872
11873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11874 fi
11875
11876
11877 JPEG_INCLUDE=
11878 JPEG_LINK=
11879 if test "$wxUSE_LIBJPEG" != "no" ; then
11880 cat >> confdefs.h <<\EOF
11881 #define wxUSE_LIBJPEG 1
11882 EOF
11883
11884
11885 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11886 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11887 wxUSE_LIBJPEG=sys
11888 fi
11889
11890 if test "$wxUSE_MGL" != 1 ; then
11891 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11892 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11893 echo "configure:11894: checking for jpeglib.h" >&5
11894 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11895 echo $ac_n "(cached) $ac_c" 1>&6
11896 else
11897 cat > conftest.$ac_ext <<EOF
11898 #line 11899 "configure"
11899 #include "confdefs.h"
11900
11901 #undef HAVE_STDLIB_H
11902 #include <stdio.h>
11903 #include <jpeglib.h>
11904
11905 int main() {
11906
11907
11908 ; return 0; }
11909 EOF
11910 if { (eval echo configure:11911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11911 rm -rf conftest*
11912 ac_cv_header_jpeglib_h=yes
11913 else
11914 echo "configure: failed program was:" >&5
11915 cat conftest.$ac_ext >&5
11916 rm -rf conftest*
11917 ac_cv_header_jpeglib_h=no
11918
11919 fi
11920 rm -f conftest*
11921
11922 fi
11923
11924 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11925
11926 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11927 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11928 echo "configure:11929: checking for jpeg_read_header in -ljpeg" >&5
11929 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11931 echo $ac_n "(cached) $ac_c" 1>&6
11932 else
11933 ac_save_LIBS="$LIBS"
11934 LIBS="-ljpeg $LIBS"
11935 cat > conftest.$ac_ext <<EOF
11936 #line 11937 "configure"
11937 #include "confdefs.h"
11938 /* Override any gcc2 internal prototype to avoid an error. */
11939 /* We use char because int might match the return type of a gcc2
11940 builtin and then its argument prototype would still apply. */
11941 char jpeg_read_header();
11942
11943 int main() {
11944 jpeg_read_header()
11945 ; return 0; }
11946 EOF
11947 if { (eval echo configure:11948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11948 rm -rf conftest*
11949 eval "ac_cv_lib_$ac_lib_var=yes"
11950 else
11951 echo "configure: failed program was:" >&5
11952 cat conftest.$ac_ext >&5
11953 rm -rf conftest*
11954 eval "ac_cv_lib_$ac_lib_var=no"
11955 fi
11956 rm -f conftest*
11957 LIBS="$ac_save_LIBS"
11958
11959 fi
11960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11961 echo "$ac_t""yes" 1>&6
11962 JPEG_LINK=" -ljpeg"
11963 else
11964 echo "$ac_t""no" 1>&6
11965 fi
11966
11967 fi
11968
11969 if test "x$JPEG_LINK" = "x" ; then
11970 if test "$wxUSE_LIBJPEG" = "sys" ; then
11971 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11972 else
11973 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11974 wxUSE_LIBJPEG=builtin
11975 fi
11976 else
11977 wxUSE_LIBJPEG=sys
11978 fi
11979 fi
11980 fi
11981
11982 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11983 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11984 fi
11985 fi
11986
11987
11988 TIFF_INCLUDE=
11989 TIFF_LINK=
11990 TIFF_PREREQ_LINKS=-lm
11991 if test "$wxUSE_LIBTIFF" != "no" ; then
11992 cat >> confdefs.h <<\EOF
11993 #define wxUSE_LIBTIFF 1
11994 EOF
11995
11996
11997 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11998 if test "$wxUSE_LIBJPEG" = "sys"; then
11999 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12000 fi
12001 if test "$wxUSE_ZLIB" = "sys"; then
12002 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12003 fi
12004 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12005 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12006 echo "configure:12007: checking for tiffio.h" >&5
12007 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12008 echo $ac_n "(cached) $ac_c" 1>&6
12009 else
12010 cat > conftest.$ac_ext <<EOF
12011 #line 12012 "configure"
12012 #include "confdefs.h"
12013 #include <tiffio.h>
12014 EOF
12015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12016 { (eval echo configure:12017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12018 if test -z "$ac_err"; then
12019 rm -rf conftest*
12020 eval "ac_cv_header_$ac_safe=yes"
12021 else
12022 echo "$ac_err" >&5
12023 echo "configure: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12025 rm -rf conftest*
12026 eval "ac_cv_header_$ac_safe=no"
12027 fi
12028 rm -f conftest*
12029 fi
12030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12031 echo "$ac_t""yes" 1>&6
12032 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12033 echo "configure:12034: checking for TIFFError in -ltiff" >&5
12034 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12036 echo $ac_n "(cached) $ac_c" 1>&6
12037 else
12038 ac_save_LIBS="$LIBS"
12039 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12040 cat > conftest.$ac_ext <<EOF
12041 #line 12042 "configure"
12042 #include "confdefs.h"
12043 /* Override any gcc2 internal prototype to avoid an error. */
12044 /* We use char because int might match the return type of a gcc2
12045 builtin and then its argument prototype would still apply. */
12046 char TIFFError();
12047
12048 int main() {
12049 TIFFError()
12050 ; return 0; }
12051 EOF
12052 if { (eval echo configure:12053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12053 rm -rf conftest*
12054 eval "ac_cv_lib_$ac_lib_var=yes"
12055 else
12056 echo "configure: failed program was:" >&5
12057 cat conftest.$ac_ext >&5
12058 rm -rf conftest*
12059 eval "ac_cv_lib_$ac_lib_var=no"
12060 fi
12061 rm -f conftest*
12062 LIBS="$ac_save_LIBS"
12063
12064 fi
12065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12066 echo "$ac_t""yes" 1>&6
12067 TIFF_LINK=" -ltiff"
12068 else
12069 echo "$ac_t""no" 1>&6
12070 fi
12071
12072
12073 else
12074 echo "$ac_t""no" 1>&6
12075 fi
12076
12077
12078 if test "x$TIFF_LINK" = "x" ; then
12079 if test "$wxUSE_LIBTIFF" = "sys" ; then
12080 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12081 else
12082 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12083 wxUSE_LIBTIFF=builtin
12084 fi
12085 else
12086 wxUSE_LIBTIFF=sys
12087 fi
12088 fi
12089
12090 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12091 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12092 fi
12093 fi
12094
12095
12096 AFMINSTALL=
12097 WIN32INSTALL=
12098
12099 TOOLKIT=
12100 TOOLKIT_INCLUDE=
12101 WIDGET_SET=
12102
12103 if test "$USE_WIN32" = 1 ; then
12104 for ac_hdr in w32api.h
12105 do
12106 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12108 echo "configure:12109: checking for $ac_hdr" >&5
12109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12110 echo $ac_n "(cached) $ac_c" 1>&6
12111 else
12112 cat > conftest.$ac_ext <<EOF
12113 #line 12114 "configure"
12114 #include "confdefs.h"
12115 #include <$ac_hdr>
12116 EOF
12117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12118 { (eval echo configure:12119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12120 if test -z "$ac_err"; then
12121 rm -rf conftest*
12122 eval "ac_cv_header_$ac_safe=yes"
12123 else
12124 echo "$ac_err" >&5
12125 echo "configure: failed program was:" >&5
12126 cat conftest.$ac_ext >&5
12127 rm -rf conftest*
12128 eval "ac_cv_header_$ac_safe=no"
12129 fi
12130 rm -f conftest*
12131 fi
12132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12133 echo "$ac_t""yes" 1>&6
12134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12135 cat >> confdefs.h <<EOF
12136 #define $ac_tr_hdr 1
12137 EOF
12138
12139 else
12140 echo "$ac_t""no" 1>&6
12141 fi
12142 done
12143
12144 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12145 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12146 echo "configure:12147: checking for windows.h" >&5
12147 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12148 echo $ac_n "(cached) $ac_c" 1>&6
12149 else
12150 cat > conftest.$ac_ext <<EOF
12151 #line 12152 "configure"
12152 #include "confdefs.h"
12153 #include <windows.h>
12154 EOF
12155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12156 { (eval echo configure:12157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12158 if test -z "$ac_err"; then
12159 rm -rf conftest*
12160 eval "ac_cv_header_$ac_safe=yes"
12161 else
12162 echo "$ac_err" >&5
12163 echo "configure: failed program was:" >&5
12164 cat conftest.$ac_ext >&5
12165 rm -rf conftest*
12166 eval "ac_cv_header_$ac_safe=no"
12167 fi
12168 rm -f conftest*
12169 fi
12170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12171 echo "$ac_t""yes" 1>&6
12172 :
12173 else
12174 echo "$ac_t""no" 1>&6
12175
12176 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12177
12178 fi
12179
12180
12181 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12182 echo "configure:12183: checking if w32api has good enough MSIE support" >&5
12183 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12184 echo $ac_n "(cached) $ac_c" 1>&6
12185 else
12186
12187 cat > conftest.$ac_ext <<EOF
12188 #line 12189 "configure"
12189 #include "confdefs.h"
12190 #include <w32api.h>
12191 int main() {
12192
12193 #define wxCHECK_W32API_VERSION( major, minor ) \
12194 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12195 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12196 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12197
12198 #if !wxCHECK_W32API_VERSION(1,1)
12199 #error You need w32api 1.1 or newer
12200 #endif
12201
12202 ; return 0; }
12203 EOF
12204 if { (eval echo configure:12205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12205 rm -rf conftest*
12206
12207 wx_cv_w32api_win32_ie=yes
12208
12209 else
12210 echo "configure: failed program was:" >&5
12211 cat conftest.$ac_ext >&5
12212 rm -rf conftest*
12213
12214 wx_cv_w32api_win32_ie=no
12215
12216 fi
12217 rm -f conftest*
12218
12219 fi
12220
12221 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12222 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12223 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12224 fi
12225
12226 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12227
12228 case "${host}" in
12229 *-*-cygwin* )
12230 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12231 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12232 esac
12233
12234 if test "$wxUSE_ODBC" = "yes" ; then
12235 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12236 fi
12237
12238 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12239 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12240
12241 WIN32INSTALL=win32install
12242 fi
12243
12244 if test "$USE_DARWIN" = 1; then
12245 if test "$wxUSE_PRECOMP" = "yes"; then
12246 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12247 else
12248 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12249 fi
12250 fi
12251
12252 if test "$wxUSE_GUI" = "yes"; then
12253 USE_GUI=1
12254
12255 GUI_TK_LIBRARY=
12256
12257 WXGTK12=
12258 WXGTK127=
12259 WXGTK20=
12260
12261 if test "$wxUSE_MSW" = 1 ; then
12262 TOOLKIT=MSW
12263 GUIDIST=MSW_DIST
12264
12265 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12266 fi
12267
12268 if test "$wxUSE_GTK" = 1; then
12269 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12270 echo "configure:12271: checking for GTK+ version" >&5
12271
12272 gtk_version_cached=1
12273 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12274 echo $ac_n "(cached) $ac_c" 1>&6
12275 else
12276
12277 gtk_version_cached=0
12278 echo "$ac_t""" 1>&6
12279
12280 GTK_MODULES=
12281 if test "$wxUSE_THREADS" = "yes"; then
12282 GTK_MODULES=gthread
12283 fi
12284
12285 wx_cv_lib_gtk=
12286 if test "x$wxUSE_GTK2" = "xyes"; then
12287 # Check whether --enable-gtktest or --disable-gtktest was given.
12288 if test "${enable_gtktest+set}" = set; then
12289 enableval="$enable_gtktest"
12290 :
12291 else
12292 enable_gtktest=yes
12293 fi
12294
12295
12296 pkg_config_args=gtk+-2.0
12297 for module in . $GTK_MODULES
12298 do
12299 case "$module" in
12300 gthread)
12301 pkg_config_args="$pkg_config_args gthread-2.0"
12302 ;;
12303 esac
12304 done
12305
12306 no_gtk=""
12307
12308 # Extract the first word of "pkg-config", so it can be a program name with args.
12309 set dummy pkg-config; ac_word=$2
12310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12311 echo "configure:12312: checking for $ac_word" >&5
12312 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12313 echo $ac_n "(cached) $ac_c" 1>&6
12314 else
12315 case "$PKG_CONFIG" in
12316 /*)
12317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12318 ;;
12319 ?:/*)
12320 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12321 ;;
12322 *)
12323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12324 ac_dummy="$PATH"
12325 for ac_dir in $ac_dummy; do
12326 test -z "$ac_dir" && ac_dir=.
12327 if test -f $ac_dir/$ac_word; then
12328 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12329 break
12330 fi
12331 done
12332 IFS="$ac_save_ifs"
12333 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12334 ;;
12335 esac
12336 fi
12337 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12338 if test -n "$PKG_CONFIG"; then
12339 echo "$ac_t""$PKG_CONFIG" 1>&6
12340 else
12341 echo "$ac_t""no" 1>&6
12342 fi
12343
12344
12345 if test x$PKG_CONFIG != xno ; then
12346 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12347 :
12348 else
12349 echo *** pkg-config too old; version 0.7 or better required.
12350 no_gtk=yes
12351 PKG_CONFIG=no
12352 fi
12353 else
12354 no_gtk=yes
12355 fi
12356
12357 min_gtk_version=2.0.0
12358 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12359 echo "configure:12360: checking for GTK+ - version >= $min_gtk_version" >&5
12360
12361 if test x$PKG_CONFIG != xno ; then
12362 ## don't try to run the test against uninstalled libtool libs
12363 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12364 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12365 enable_gtktest=no
12366 fi
12367
12368 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12369 :
12370 else
12371 no_gtk=yes
12372 fi
12373 fi
12374
12375 if test x"$no_gtk" = x ; then
12376 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12377 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12378 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12379 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12380 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12381 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12382 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12383 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12384 if test "x$enable_gtktest" = "xyes" ; then
12385 ac_save_CFLAGS="$CFLAGS"
12386 ac_save_LIBS="$LIBS"
12387 CFLAGS="$CFLAGS $GTK_CFLAGS"
12388 LIBS="$GTK_LIBS $LIBS"
12389 rm -f conf.gtktest
12390 if test "$cross_compiling" = yes; then
12391 echo $ac_n "cross compiling; assumed OK... $ac_c"
12392 else
12393 cat > conftest.$ac_ext <<EOF
12394 #line 12395 "configure"
12395 #include "confdefs.h"
12396
12397 #include <gtk/gtk.h>
12398 #include <stdio.h>
12399 #include <stdlib.h>
12400
12401 int
12402 main ()
12403 {
12404 int major, minor, micro;
12405 char *tmp_version;
12406
12407 system ("touch conf.gtktest");
12408
12409 /* HP/UX 9 (%@#!) writes to sscanf strings */
12410 tmp_version = g_strdup("$min_gtk_version");
12411 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12412 printf("%s, bad version string\n", "$min_gtk_version");
12413 exit(1);
12414 }
12415
12416 if ((gtk_major_version != $gtk_config_major_version) ||
12417 (gtk_minor_version != $gtk_config_minor_version) ||
12418 (gtk_micro_version != $gtk_config_micro_version))
12419 {
12420 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12421 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12422 gtk_major_version, gtk_minor_version, gtk_micro_version);
12423 printf ("*** was found! If pkg-config was correct, then it is best\n");
12424 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12425 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12426 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12427 printf("*** required on your system.\n");
12428 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12429 printf("*** to point to the correct configuration files\n");
12430 }
12431 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12432 (gtk_minor_version != GTK_MINOR_VERSION) ||
12433 (gtk_micro_version != GTK_MICRO_VERSION))
12434 {
12435 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12436 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12437 printf("*** library (version %d.%d.%d)\n",
12438 gtk_major_version, gtk_minor_version, gtk_micro_version);
12439 }
12440 else
12441 {
12442 if ((gtk_major_version > major) ||
12443 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12444 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12445 {
12446 return 0;
12447 }
12448 else
12449 {
12450 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12451 gtk_major_version, gtk_minor_version, gtk_micro_version);
12452 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12453 major, minor, micro);
12454 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12455 printf("***\n");
12456 printf("*** If you have already installed a sufficiently new version, this error\n");
12457 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12458 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12459 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12460 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12461 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12462 printf("*** so that the correct libraries are found at run-time))\n");
12463 }
12464 }
12465 return 1;
12466 }
12467
12468 EOF
12469 if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12470 then
12471 :
12472 else
12473 echo "configure: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12475 rm -fr conftest*
12476 no_gtk=yes
12477 fi
12478 rm -fr conftest*
12479 fi
12480
12481 CFLAGS="$ac_save_CFLAGS"
12482 LIBS="$ac_save_LIBS"
12483 fi
12484 fi
12485 if test "x$no_gtk" = x ; then
12486 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12487 wx_cv_lib_gtk=2.0
12488 else
12489 echo "$ac_t""no" 1>&6
12490 if test "$PKG_CONFIG" = "no" ; then
12491 echo "*** A new enough version of pkg-config was not found."
12492 echo "*** See http://pkgconfig.sourceforge.net"
12493 else
12494 if test -f conf.gtktest ; then
12495 :
12496 else
12497 echo "*** Could not run GTK+ test program, checking why..."
12498 ac_save_CFLAGS="$CFLAGS"
12499 ac_save_LIBS="$LIBS"
12500 CFLAGS="$CFLAGS $GTK_CFLAGS"
12501 LIBS="$LIBS $GTK_LIBS"
12502 cat > conftest.$ac_ext <<EOF
12503 #line 12504 "configure"
12504 #include "confdefs.h"
12505
12506 #include <gtk/gtk.h>
12507 #include <stdio.h>
12508
12509 int main() {
12510 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12511 ; return 0; }
12512 EOF
12513 if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12514 rm -rf conftest*
12515 echo "*** The test program compiled, but did not run. This usually means"
12516 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12517 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12518 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12519 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12520 echo "*** is required on your system"
12521 echo "***"
12522 echo "*** If you have an old version installed, it is best to remove it, although"
12523 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12524 else
12525 echo "configure: failed program was:" >&5
12526 cat conftest.$ac_ext >&5
12527 rm -rf conftest*
12528 echo "*** The test program failed to compile or link. See the file config.log for the"
12529 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12530 fi
12531 rm -f conftest*
12532 CFLAGS="$ac_save_CFLAGS"
12533 LIBS="$ac_save_LIBS"
12534 fi
12535 fi
12536 GTK_CFLAGS=""
12537 GTK_LIBS=""
12538 :
12539 fi
12540
12541
12542 rm -f conf.gtktest
12543
12544 else
12545 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12546 if test "${with_gtk_prefix+set}" = set; then
12547 withval="$with_gtk_prefix"
12548 gtk_config_prefix="$withval"
12549 else
12550 gtk_config_prefix=""
12551 fi
12552
12553 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12554 if test "${with_gtk_exec_prefix+set}" = set; then
12555 withval="$with_gtk_exec_prefix"
12556 gtk_config_exec_prefix="$withval"
12557 else
12558 gtk_config_exec_prefix=""
12559 fi
12560
12561 # Check whether --enable-gtktest or --disable-gtktest was given.
12562 if test "${enable_gtktest+set}" = set; then
12563 enableval="$enable_gtktest"
12564 :
12565 else
12566 enable_gtktest=yes
12567 fi
12568
12569
12570 for module in . $GTK_MODULES
12571 do
12572 case "$module" in
12573 gthread)
12574 gtk_config_args="$gtk_config_args gthread"
12575 ;;
12576 esac
12577 done
12578
12579 if test x$gtk_config_exec_prefix != x ; then
12580 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12581 if test x${GTK_CONFIG+set} != xset ; then
12582 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12583 fi
12584 fi
12585 if test x$gtk_config_prefix != x ; then
12586 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12587 if test x${GTK_CONFIG+set} != xset ; then
12588 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12589 fi
12590 fi
12591
12592 # Extract the first word of "gtk-config", so it can be a program name with args.
12593 set dummy gtk-config; ac_word=$2
12594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12595 echo "configure:12596: checking for $ac_word" >&5
12596 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12597 echo $ac_n "(cached) $ac_c" 1>&6
12598 else
12599 case "$GTK_CONFIG" in
12600 /*)
12601 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12602 ;;
12603 ?:/*)
12604 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12605 ;;
12606 *)
12607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12608 ac_dummy="$PATH"
12609 for ac_dir in $ac_dummy; do
12610 test -z "$ac_dir" && ac_dir=.
12611 if test -f $ac_dir/$ac_word; then
12612 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12613 break
12614 fi
12615 done
12616 IFS="$ac_save_ifs"
12617 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12618 ;;
12619 esac
12620 fi
12621 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12622 if test -n "$GTK_CONFIG"; then
12623 echo "$ac_t""$GTK_CONFIG" 1>&6
12624 else
12625 echo "$ac_t""no" 1>&6
12626 fi
12627
12628 min_gtk_version=1.2.7
12629 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12630 echo "configure:12631: checking for GTK - version >= $min_gtk_version" >&5
12631 no_gtk=""
12632 if test "$GTK_CONFIG" = "no" ; then
12633 no_gtk=yes
12634 else
12635 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12636 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12637 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12638 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12639 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12640 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12641 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12642 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12643 if test "x$enable_gtktest" = "xyes" ; then
12644 ac_save_CFLAGS="$CFLAGS"
12645 ac_save_LIBS="$LIBS"
12646 CFLAGS="$CFLAGS $GTK_CFLAGS"
12647 LIBS="$GTK_LIBS $LIBS"
12648 rm -f conf.gtktest
12649 if test "$cross_compiling" = yes; then
12650 echo $ac_n "cross compiling; assumed OK... $ac_c"
12651 else
12652 cat > conftest.$ac_ext <<EOF
12653 #line 12654 "configure"
12654 #include "confdefs.h"
12655
12656 #include <gtk/gtk.h>
12657 #include <stdio.h>
12658 #include <stdlib.h>
12659
12660 int
12661 main ()
12662 {
12663 int major, minor, micro;
12664 char *tmp_version;
12665
12666 system ("touch conf.gtktest");
12667
12668 /* HP/UX 9 (%@#!) writes to sscanf strings */
12669 tmp_version = g_strdup("$min_gtk_version");
12670 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12671 printf("%s, bad version string\n", "$min_gtk_version");
12672 exit(1);
12673 }
12674
12675 if ((gtk_major_version != $gtk_config_major_version) ||
12676 (gtk_minor_version != $gtk_config_minor_version) ||
12677 (gtk_micro_version != $gtk_config_micro_version))
12678 {
12679 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12680 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12681 gtk_major_version, gtk_minor_version, gtk_micro_version);
12682 printf ("*** was found! If gtk-config was correct, then it is best\n");
12683 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12684 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12685 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12686 printf("*** required on your system.\n");
12687 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12688 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12689 printf("*** before re-running configure\n");
12690 }
12691 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12692 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12693 (gtk_minor_version != GTK_MINOR_VERSION) ||
12694 (gtk_micro_version != GTK_MICRO_VERSION))
12695 {
12696 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12697 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12698 printf("*** library (version %d.%d.%d)\n",
12699 gtk_major_version, gtk_minor_version, gtk_micro_version);
12700 }
12701 #endif /* defined (GTK_MAJOR_VERSION) ... */
12702 else
12703 {
12704 if ((gtk_major_version > major) ||
12705 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12706 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12707 {
12708 return 0;
12709 }
12710 else
12711 {
12712 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12713 gtk_major_version, gtk_minor_version, gtk_micro_version);
12714 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12715 major, minor, micro);
12716 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12717 printf("***\n");
12718 printf("*** If you have already installed a sufficiently new version, this error\n");
12719 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12720 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12721 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12722 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12723 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12724 printf("*** so that the correct libraries are found at run-time))\n");
12725 }
12726 }
12727 return 1;
12728 }
12729
12730 EOF
12731 if { (eval echo configure:12732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12732 then
12733 :
12734 else
12735 echo "configure: failed program was:" >&5
12736 cat conftest.$ac_ext >&5
12737 rm -fr conftest*
12738 no_gtk=yes
12739 fi
12740 rm -fr conftest*
12741 fi
12742
12743 CFLAGS="$ac_save_CFLAGS"
12744 LIBS="$ac_save_LIBS"
12745 fi
12746 fi
12747 if test "x$no_gtk" = x ; then
12748 echo "$ac_t""yes" 1>&6
12749 wx_cv_lib_gtk=1.2.7
12750 else
12751 echo "$ac_t""no" 1>&6
12752 if test "$GTK_CONFIG" = "no" ; then
12753 echo "*** The gtk-config script installed by GTK could not be found"
12754 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12755 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12756 echo "*** full path to gtk-config."
12757 else
12758 if test -f conf.gtktest ; then
12759 :
12760 else
12761 echo "*** Could not run GTK test program, checking why..."
12762 CFLAGS="$CFLAGS $GTK_CFLAGS"
12763 LIBS="$LIBS $GTK_LIBS"
12764 cat > conftest.$ac_ext <<EOF
12765 #line 12766 "configure"
12766 #include "confdefs.h"
12767
12768 #include <gtk/gtk.h>
12769 #include <stdio.h>
12770
12771 int main() {
12772 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12773 ; return 0; }
12774 EOF
12775 if { (eval echo configure:12776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12776 rm -rf conftest*
12777 echo "*** The test program compiled, but did not run. This usually means"
12778 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12779 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12780 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12781 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12782 echo "*** is required on your system"
12783 echo "***"
12784 echo "*** If you have an old version installed, it is best to remove it, although"
12785 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12786 echo "***"
12787 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12788 echo "*** came with the system with the command"
12789 echo "***"
12790 echo "*** rpm --erase --nodeps gtk gtk-devel"
12791 else
12792 echo "configure: failed program was:" >&5
12793 cat conftest.$ac_ext >&5
12794 rm -rf conftest*
12795 echo "*** The test program failed to compile or link. See the file config.log for the"
12796 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12797 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12798 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12799 fi
12800 rm -f conftest*
12801 CFLAGS="$ac_save_CFLAGS"
12802 LIBS="$ac_save_LIBS"
12803 fi
12804 fi
12805 GTK_CFLAGS=""
12806 GTK_LIBS=""
12807 :
12808 fi
12809
12810
12811 rm -f conf.gtktest
12812
12813
12814 if test -z "$wx_cv_lib_gtk"; then
12815 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12816 if test "${with_gtk_prefix+set}" = set; then
12817 withval="$with_gtk_prefix"
12818 gtk_config_prefix="$withval"
12819 else
12820 gtk_config_prefix=""
12821 fi
12822
12823 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12824 if test "${with_gtk_exec_prefix+set}" = set; then
12825 withval="$with_gtk_exec_prefix"
12826 gtk_config_exec_prefix="$withval"
12827 else
12828 gtk_config_exec_prefix=""
12829 fi
12830
12831 # Check whether --enable-gtktest or --disable-gtktest was given.
12832 if test "${enable_gtktest+set}" = set; then
12833 enableval="$enable_gtktest"
12834 :
12835 else
12836 enable_gtktest=yes
12837 fi
12838
12839
12840 for module in . $GTK_MODULES
12841 do
12842 case "$module" in
12843 gthread)
12844 gtk_config_args="$gtk_config_args gthread"
12845 ;;
12846 esac
12847 done
12848
12849 if test x$gtk_config_exec_prefix != x ; then
12850 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12851 if test x${GTK_CONFIG+set} != xset ; then
12852 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12853 fi
12854 fi
12855 if test x$gtk_config_prefix != x ; then
12856 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12857 if test x${GTK_CONFIG+set} != xset ; then
12858 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12859 fi
12860 fi
12861
12862 # Extract the first word of "gtk-config", so it can be a program name with args.
12863 set dummy gtk-config; ac_word=$2
12864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12865 echo "configure:12866: checking for $ac_word" >&5
12866 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12867 echo $ac_n "(cached) $ac_c" 1>&6
12868 else
12869 case "$GTK_CONFIG" in
12870 /*)
12871 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12872 ;;
12873 ?:/*)
12874 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12875 ;;
12876 *)
12877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12878 ac_dummy="$PATH"
12879 for ac_dir in $ac_dummy; do
12880 test -z "$ac_dir" && ac_dir=.
12881 if test -f $ac_dir/$ac_word; then
12882 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12883 break
12884 fi
12885 done
12886 IFS="$ac_save_ifs"
12887 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12888 ;;
12889 esac
12890 fi
12891 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12892 if test -n "$GTK_CONFIG"; then
12893 echo "$ac_t""$GTK_CONFIG" 1>&6
12894 else
12895 echo "$ac_t""no" 1>&6
12896 fi
12897
12898 min_gtk_version=1.2.3
12899 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12900 echo "configure:12901: checking for GTK - version >= $min_gtk_version" >&5
12901 no_gtk=""
12902 if test "$GTK_CONFIG" = "no" ; then
12903 no_gtk=yes
12904 else
12905 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12906 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12907 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12908 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12909 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12910 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12911 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12912 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12913 if test "x$enable_gtktest" = "xyes" ; then
12914 ac_save_CFLAGS="$CFLAGS"
12915 ac_save_LIBS="$LIBS"
12916 CFLAGS="$CFLAGS $GTK_CFLAGS"
12917 LIBS="$GTK_LIBS $LIBS"
12918 rm -f conf.gtktest
12919 if test "$cross_compiling" = yes; then
12920 echo $ac_n "cross compiling; assumed OK... $ac_c"
12921 else
12922 cat > conftest.$ac_ext <<EOF
12923 #line 12924 "configure"
12924 #include "confdefs.h"
12925
12926 #include <gtk/gtk.h>
12927 #include <stdio.h>
12928 #include <stdlib.h>
12929
12930 int
12931 main ()
12932 {
12933 int major, minor, micro;
12934 char *tmp_version;
12935
12936 system ("touch conf.gtktest");
12937
12938 /* HP/UX 9 (%@#!) writes to sscanf strings */
12939 tmp_version = g_strdup("$min_gtk_version");
12940 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12941 printf("%s, bad version string\n", "$min_gtk_version");
12942 exit(1);
12943 }
12944
12945 if ((gtk_major_version != $gtk_config_major_version) ||
12946 (gtk_minor_version != $gtk_config_minor_version) ||
12947 (gtk_micro_version != $gtk_config_micro_version))
12948 {
12949 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12950 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12951 gtk_major_version, gtk_minor_version, gtk_micro_version);
12952 printf ("*** was found! If gtk-config was correct, then it is best\n");
12953 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12954 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12955 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12956 printf("*** required on your system.\n");
12957 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12958 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12959 printf("*** before re-running configure\n");
12960 }
12961 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12962 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12963 (gtk_minor_version != GTK_MINOR_VERSION) ||
12964 (gtk_micro_version != GTK_MICRO_VERSION))
12965 {
12966 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12967 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12968 printf("*** library (version %d.%d.%d)\n",
12969 gtk_major_version, gtk_minor_version, gtk_micro_version);
12970 }
12971 #endif /* defined (GTK_MAJOR_VERSION) ... */
12972 else
12973 {
12974 if ((gtk_major_version > major) ||
12975 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12976 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12977 {
12978 return 0;
12979 }
12980 else
12981 {
12982 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12983 gtk_major_version, gtk_minor_version, gtk_micro_version);
12984 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12985 major, minor, micro);
12986 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12987 printf("***\n");
12988 printf("*** If you have already installed a sufficiently new version, this error\n");
12989 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12990 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12991 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12992 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12993 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12994 printf("*** so that the correct libraries are found at run-time))\n");
12995 }
12996 }
12997 return 1;
12998 }
12999
13000 EOF
13001 if { (eval echo configure:13002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13002 then
13003 :
13004 else
13005 echo "configure: failed program was:" >&5
13006 cat conftest.$ac_ext >&5
13007 rm -fr conftest*
13008 no_gtk=yes
13009 fi
13010 rm -fr conftest*
13011 fi
13012
13013 CFLAGS="$ac_save_CFLAGS"
13014 LIBS="$ac_save_LIBS"
13015 fi
13016 fi
13017 if test "x$no_gtk" = x ; then
13018 echo "$ac_t""yes" 1>&6
13019 wx_cv_lib_gtk=1.2.3
13020 else
13021 echo "$ac_t""no" 1>&6
13022 if test "$GTK_CONFIG" = "no" ; then
13023 echo "*** The gtk-config script installed by GTK could not be found"
13024 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13025 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13026 echo "*** full path to gtk-config."
13027 else
13028 if test -f conf.gtktest ; then
13029 :
13030 else
13031 echo "*** Could not run GTK test program, checking why..."
13032 CFLAGS="$CFLAGS $GTK_CFLAGS"
13033 LIBS="$LIBS $GTK_LIBS"
13034 cat > conftest.$ac_ext <<EOF
13035 #line 13036 "configure"
13036 #include "confdefs.h"
13037
13038 #include <gtk/gtk.h>
13039 #include <stdio.h>
13040
13041 int main() {
13042 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13043 ; return 0; }
13044 EOF
13045 if { (eval echo configure:13046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13046 rm -rf conftest*
13047 echo "*** The test program compiled, but did not run. This usually means"
13048 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13049 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13050 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13051 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13052 echo "*** is required on your system"
13053 echo "***"
13054 echo "*** If you have an old version installed, it is best to remove it, although"
13055 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13056 echo "***"
13057 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13058 echo "*** came with the system with the command"
13059 echo "***"
13060 echo "*** rpm --erase --nodeps gtk gtk-devel"
13061 else
13062 echo "configure: failed program was:" >&5
13063 cat conftest.$ac_ext >&5
13064 rm -rf conftest*
13065 echo "*** The test program failed to compile or link. See the file config.log for the"
13066 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13067 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13068 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13069 fi
13070 rm -f conftest*
13071 CFLAGS="$ac_save_CFLAGS"
13072 LIBS="$ac_save_LIBS"
13073 fi
13074 fi
13075 GTK_CFLAGS=""
13076 GTK_LIBS=""
13077 :
13078 fi
13079
13080
13081 rm -f conf.gtktest
13082
13083 fi
13084 fi
13085
13086 if test -z "$wx_cv_lib_gtk"; then
13087 wx_cv_lib_gtk=none
13088 else
13089 wx_cv_cflags_gtk=$GTK_CFLAGS
13090 wx_cv_libs_gtk=$GTK_LIBS
13091 fi
13092
13093
13094 fi
13095
13096
13097 if test "$gtk_version_cached" = 1; then
13098 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13099 fi
13100
13101 case "$wx_cv_lib_gtk" in
13102 2.0) WXGTK20=1
13103 TOOLKIT_VERSION=2
13104 ;;
13105 1.2.7) WXGTK127=1
13106 WXGTK12=1
13107 ;;
13108 1.2.3) WXGTK12=1
13109 ;;
13110 *) { echo "configure: error:
13111 Please check that gtk-config is in path, the directory
13112 where GTK+ libraries are installed (returned by
13113 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13114 equivalent variable and GTK+ is version 1.2.3 or above.
13115 " 1>&2; exit 1; }
13116 ;;
13117 esac
13118
13119 if test "$WXGTK20" = 1; then
13120 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13121
13122 succeeded=no
13123
13124 if test -z "$PKG_CONFIG"; then
13125 # Extract the first word of "pkg-config", so it can be a program name with args.
13126 set dummy pkg-config; ac_word=$2
13127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13128 echo "configure:13129: checking for $ac_word" >&5
13129 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13130 echo $ac_n "(cached) $ac_c" 1>&6
13131 else
13132 case "$PKG_CONFIG" in
13133 /*)
13134 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13135 ;;
13136 ?:/*)
13137 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13138 ;;
13139 *)
13140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13141 ac_dummy="$PATH"
13142 for ac_dir in $ac_dummy; do
13143 test -z "$ac_dir" && ac_dir=.
13144 if test -f $ac_dir/$ac_word; then
13145 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13146 break
13147 fi
13148 done
13149 IFS="$ac_save_ifs"
13150 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13151 ;;
13152 esac
13153 fi
13154 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13155 if test -n "$PKG_CONFIG"; then
13156 echo "$ac_t""$PKG_CONFIG" 1>&6
13157 else
13158 echo "$ac_t""no" 1>&6
13159 fi
13160
13161 fi
13162
13163 if test "$PKG_CONFIG" = "no" ; then
13164 echo "*** The pkg-config script could not be found. Make sure it is"
13165 echo "*** in your path, or set the PKG_CONFIG environment variable"
13166 echo "*** to the full path to pkg-config."
13167 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13168 else
13169 PKG_CONFIG_MIN_VERSION=0.9.0
13170 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13171 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13172 echo "configure:13173: checking for pangoft2" >&5
13173
13174 if $PKG_CONFIG --exists "pangoft2" ; then
13175 echo "$ac_t""yes" 1>&6
13176 succeeded=yes
13177
13178 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13179 echo "configure:13180: checking PANGOFT2_CFLAGS" >&5
13180 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13181 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13182
13183 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13184 echo "configure:13185: checking PANGOFT2_LIBS" >&5
13185 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13186 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13187 else
13188 PANGOFT2_CFLAGS=""
13189 PANGOFT2_LIBS=""
13190 ## If we have a custom action on failure, don't print errors, but
13191 ## do set a variable so people can do so.
13192 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13193
13194 fi
13195
13196
13197
13198 else
13199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13201 fi
13202 fi
13203
13204 if test $succeeded = yes; then
13205
13206 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13207 LIBS="$LIBS $PANGOFT2_LIBS"
13208
13209 else
13210
13211 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13212 wxUSE_PRINTING_ARCHITECTURE="no"
13213
13214
13215 fi
13216
13217 fi
13218 else
13219 if test "$wxUSE_UNICODE" = "yes"; then
13220 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13221 wxUSE_UNICODE=no
13222 fi
13223 fi
13224
13225 if test "$USE_DARWIN" != 1; then
13226 for ac_func in poll
13227 do
13228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13229 echo "configure:13230: checking for $ac_func" >&5
13230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13231 echo $ac_n "(cached) $ac_c" 1>&6
13232 else
13233 cat > conftest.$ac_ext <<EOF
13234 #line 13235 "configure"
13235 #include "confdefs.h"
13236 /* System header to define __stub macros and hopefully few prototypes,
13237 which can conflict with char $ac_func(); below. */
13238 #include <assert.h>
13239 /* Override any gcc2 internal prototype to avoid an error. */
13240 /* We use char because int might match the return type of a gcc2
13241 builtin and then its argument prototype would still apply. */
13242 char $ac_func();
13243
13244 int main() {
13245
13246 /* The GNU C library defines this for functions which it implements
13247 to always fail with ENOSYS. Some functions are actually named
13248 something starting with __ and the normal name is an alias. */
13249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13250 choke me
13251 #else
13252 $ac_func();
13253 #endif
13254
13255 ; return 0; }
13256 EOF
13257 if { (eval echo configure:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13258 rm -rf conftest*
13259 eval "ac_cv_func_$ac_func=yes"
13260 else
13261 echo "configure: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13263 rm -rf conftest*
13264 eval "ac_cv_func_$ac_func=no"
13265 fi
13266 rm -f conftest*
13267 fi
13268
13269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13270 echo "$ac_t""yes" 1>&6
13271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13272 cat >> confdefs.h <<EOF
13273 #define $ac_tr_func 1
13274 EOF
13275
13276 else
13277 echo "$ac_t""no" 1>&6
13278 fi
13279 done
13280
13281 fi
13282
13283 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13284 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13285
13286 AFMINSTALL=afminstall
13287 TOOLKIT=GTK
13288 GUIDIST=GTK_DIST
13289
13290 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13291 echo "configure:13292: checking for gdk_im_open in -lgdk" >&5
13292 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13294 echo $ac_n "(cached) $ac_c" 1>&6
13295 else
13296 ac_save_LIBS="$LIBS"
13297 LIBS="-lgdk $LIBS"
13298 cat > conftest.$ac_ext <<EOF
13299 #line 13300 "configure"
13300 #include "confdefs.h"
13301 /* Override any gcc2 internal prototype to avoid an error. */
13302 /* We use char because int might match the return type of a gcc2
13303 builtin and then its argument prototype would still apply. */
13304 char gdk_im_open();
13305
13306 int main() {
13307 gdk_im_open()
13308 ; return 0; }
13309 EOF
13310 if { (eval echo configure:13311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13311 rm -rf conftest*
13312 eval "ac_cv_lib_$ac_lib_var=yes"
13313 else
13314 echo "configure: failed program was:" >&5
13315 cat conftest.$ac_ext >&5
13316 rm -rf conftest*
13317 eval "ac_cv_lib_$ac_lib_var=no"
13318 fi
13319 rm -f conftest*
13320 LIBS="$ac_save_LIBS"
13321
13322 fi
13323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13324 echo "$ac_t""yes" 1>&6
13325 cat >> confdefs.h <<\EOF
13326 #define HAVE_XIM 1
13327 EOF
13328
13329 else
13330 echo "$ac_t""no" 1>&6
13331 fi
13332
13333 fi
13334
13335 if test "$wxUSE_MGL" = 1; then
13336 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13337 echo "configure:13338: checking for SciTech MGL library" >&5
13338 if test "x$MGL_ROOT" = x ; then
13339 echo "$ac_t""not found" 1>&6
13340 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13341 else
13342 echo "$ac_t""$MGL_ROOT" 1>&6
13343 fi
13344
13345 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13346 echo "configure:13347: checking for libmgl location" >&5
13347 case "${host}" in
13348 *-*-linux* )
13349 if test "x$wxUSE_SHARED" = xyes ; then
13350 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13351 else
13352 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13353 fi
13354 ;;
13355 *-pc-msdosdjgpp )
13356 mgl_os_candidates="dos32/dj2"
13357 ;;
13358 *)
13359 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13360 esac
13361
13362 mgl_lib_type=""
13363 mgl_os=""
13364
13365 for mgl_os_i in $mgl_os_candidates ; do
13366 if test "x$mgl_os" = x ; then
13367 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13368 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13369 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13370 mgl_lib_type=debug
13371 mgl_os=$mgl_os_i
13372 fi
13373 fi
13374 if test "x$mgl_lib_type" = x ; then
13375 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13376 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13377 mgl_lib_type=release
13378 mgl_os=$mgl_os_i
13379 fi
13380 fi
13381 fi
13382 done
13383
13384 if test "x$mgl_os" = x ; then
13385 echo "$ac_t""not found" 1>&6
13386 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13387 fi
13388 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13389
13390 wxUSE_UNIVERSAL="yes"
13391
13392 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13393 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13394
13395 AFMINSTALL=afminstall
13396 TOOLKIT=MGL
13397 GUIDIST=MGL_DIST
13398 fi
13399
13400 if test "$wxUSE_MICROWIN" = 1; then
13401 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13402 echo "configure:13403: checking for MicroWindows" >&5
13403 if test "x$MICROWINDOWS" = x ; then
13404 echo "$ac_t""not found" 1>&6
13405 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13406 else
13407 echo "$ac_t""$MICROWINDOWS" 1>&6
13408 fi
13409
13410 if test -f $MICROWINDOWS/lib/libmwin.a; then
13411 echo "$ac_t""MicroWindows' libraries found." 1>&6
13412 else
13413 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13414 fi
13415
13416 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13417 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13418
13419 wxUSE_UNIVERSAL="yes"
13420
13421 AFMINSTALL=afminstall
13422 TOOLKIT=MICROWIN
13423 GUIDIST=MICROWIN_DIST
13424
13425 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13426 fi
13427
13428 if test "$wxUSE_X11" = 1; then
13429 # If we find X, set shell vars x_includes and x_libraries to the
13430 # paths, otherwise set no_x=yes.
13431 # Uses ac_ vars as temps to allow command line to override cache and checks.
13432 # --without-x overrides everything else, but does not touch the cache.
13433 echo $ac_n "checking for X""... $ac_c" 1>&6
13434 echo "configure:13435: checking for X" >&5
13435
13436 # Check whether --with-x or --without-x was given.
13437 if test "${with_x+set}" = set; then
13438 withval="$with_x"
13439 :
13440 fi
13441
13442 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13443 if test "x$with_x" = xno; then
13444 # The user explicitly disabled X.
13445 have_x=disabled
13446 else
13447 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13448 # Both variables are already set.
13449 have_x=yes
13450 else
13451 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13452 echo $ac_n "(cached) $ac_c" 1>&6
13453 else
13454 # One or both of the vars are not set, and there is no cached value.
13455 ac_x_includes=NO ac_x_libraries=NO
13456 rm -fr conftestdir
13457 if mkdir conftestdir; then
13458 cd conftestdir
13459 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13460 cat > Imakefile <<'EOF'
13461 acfindx:
13462 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13463 EOF
13464 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13465 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13466 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13467 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13468 for ac_extension in a so sl; do
13469 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13470 test -f $ac_im_libdir/libX11.$ac_extension; then
13471 ac_im_usrlibdir=$ac_im_libdir; break
13472 fi
13473 done
13474 # Screen out bogus values from the imake configuration. They are
13475 # bogus both because they are the default anyway, and because
13476 # using them would break gcc on systems where it needs fixed includes.
13477 case "$ac_im_incroot" in
13478 /usr/include) ;;
13479 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13480 esac
13481 case "$ac_im_usrlibdir" in
13482 /usr/lib | /lib) ;;
13483 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13484 esac
13485 fi
13486 cd ..
13487 rm -fr conftestdir
13488 fi
13489
13490 if test "$ac_x_includes" = NO; then
13491 # Guess where to find include files, by looking for this one X11 .h file.
13492 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13493
13494 # First, try using that file with no special directory specified.
13495 cat > conftest.$ac_ext <<EOF
13496 #line 13497 "configure"
13497 #include "confdefs.h"
13498 #include <$x_direct_test_include>
13499 EOF
13500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13501 { (eval echo configure:13502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13503 if test -z "$ac_err"; then
13504 rm -rf conftest*
13505 # We can compile using X headers with no special include directory.
13506 ac_x_includes=
13507 else
13508 echo "$ac_err" >&5
13509 echo "configure: failed program was:" >&5
13510 cat conftest.$ac_ext >&5
13511 rm -rf conftest*
13512 # Look for the header file in a standard set of common directories.
13513 # Check X11 before X11Rn because it is often a symlink to the current release.
13514 for ac_dir in \
13515 /usr/X11/include \
13516 /usr/X11R6/include \
13517 /usr/X11R5/include \
13518 /usr/X11R4/include \
13519 \
13520 /usr/include/X11 \
13521 /usr/include/X11R6 \
13522 /usr/include/X11R5 \
13523 /usr/include/X11R4 \
13524 \
13525 /usr/local/X11/include \
13526 /usr/local/X11R6/include \
13527 /usr/local/X11R5/include \
13528 /usr/local/X11R4/include \
13529 \
13530 /usr/local/include/X11 \
13531 /usr/local/include/X11R6 \
13532 /usr/local/include/X11R5 \
13533 /usr/local/include/X11R4 \
13534 \
13535 /usr/X386/include \
13536 /usr/x386/include \
13537 /usr/XFree86/include/X11 \
13538 \
13539 /usr/include \
13540 /usr/local/include \
13541 /usr/unsupported/include \
13542 /usr/athena/include \
13543 /usr/local/x11r5/include \
13544 /usr/lpp/Xamples/include \
13545 \
13546 /usr/openwin/include \
13547 /usr/openwin/share/include \
13548 ; \
13549 do
13550 if test -r "$ac_dir/$x_direct_test_include"; then
13551 ac_x_includes=$ac_dir
13552 break
13553 fi
13554 done
13555 fi
13556 rm -f conftest*
13557 fi # $ac_x_includes = NO
13558
13559 if test "$ac_x_libraries" = NO; then
13560 # Check for the libraries.
13561
13562 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13563 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13564
13565 # See if we find them without any special options.
13566 # Don't add to $LIBS permanently.
13567 ac_save_LIBS="$LIBS"
13568 LIBS="-l$x_direct_test_library $LIBS"
13569 cat > conftest.$ac_ext <<EOF
13570 #line 13571 "configure"
13571 #include "confdefs.h"
13572
13573 int main() {
13574 ${x_direct_test_function}()
13575 ; return 0; }
13576 EOF
13577 if { (eval echo configure:13578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13578 rm -rf conftest*
13579 LIBS="$ac_save_LIBS"
13580 # We can link X programs with no special library path.
13581 ac_x_libraries=
13582 else
13583 echo "configure: failed program was:" >&5
13584 cat conftest.$ac_ext >&5
13585 rm -rf conftest*
13586 LIBS="$ac_save_LIBS"
13587 # First see if replacing the include by lib works.
13588 # Check X11 before X11Rn because it is often a symlink to the current release.
13589 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13590 /usr/X11/lib \
13591 /usr/X11R6/lib \
13592 /usr/X11R5/lib \
13593 /usr/X11R4/lib \
13594 \
13595 /usr/lib/X11 \
13596 /usr/lib/X11R6 \
13597 /usr/lib/X11R5 \
13598 /usr/lib/X11R4 \
13599 \
13600 /usr/local/X11/lib \
13601 /usr/local/X11R6/lib \
13602 /usr/local/X11R5/lib \
13603 /usr/local/X11R4/lib \
13604 \
13605 /usr/local/lib/X11 \
13606 /usr/local/lib/X11R6 \
13607 /usr/local/lib/X11R5 \
13608 /usr/local/lib/X11R4 \
13609 \
13610 /usr/X386/lib \
13611 /usr/x386/lib \
13612 /usr/XFree86/lib/X11 \
13613 \
13614 /usr/lib \
13615 /usr/local/lib \
13616 /usr/unsupported/lib \
13617 /usr/athena/lib \
13618 /usr/local/x11r5/lib \
13619 /usr/lpp/Xamples/lib \
13620 /lib/usr/lib/X11 \
13621 \
13622 /usr/openwin/lib \
13623 /usr/openwin/share/lib \
13624 ; \
13625 do
13626 for ac_extension in a so sl; do
13627 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13628 ac_x_libraries=$ac_dir
13629 break 2
13630 fi
13631 done
13632 done
13633 fi
13634 rm -f conftest*
13635 fi # $ac_x_libraries = NO
13636
13637 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13638 # Didn't find X anywhere. Cache the known absence of X.
13639 ac_cv_have_x="have_x=no"
13640 else
13641 # Record where we found X for the cache.
13642 ac_cv_have_x="have_x=yes \
13643 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13644 fi
13645 fi
13646 fi
13647 eval "$ac_cv_have_x"
13648 fi # $with_x != no
13649
13650 if test "$have_x" != yes; then
13651 echo "$ac_t""$have_x" 1>&6
13652 no_x=yes
13653 else
13654 # If each of the values was on the command line, it overrides each guess.
13655 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13656 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13657 # Update the cache value to reflect the command line values.
13658 ac_cv_have_x="have_x=yes \
13659 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13660 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13661 fi
13662
13663 if test "$no_x" = yes; then
13664 # Not all programs may use this symbol, but it does not hurt to define it.
13665 cat >> confdefs.h <<\EOF
13666 #define X_DISPLAY_MISSING 1
13667 EOF
13668
13669 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13670 else
13671 if test -n "$x_includes"; then
13672 X_CFLAGS="$X_CFLAGS -I$x_includes"
13673 fi
13674
13675 # It would also be nice to do this for all -L options, not just this one.
13676 if test -n "$x_libraries"; then
13677 X_LIBS="$X_LIBS -L$x_libraries"
13678 # For Solaris; some versions of Sun CC require a space after -R and
13679 # others require no space. Words are not sufficient . . . .
13680 case "`(uname -sr) 2>/dev/null`" in
13681 "SunOS 5"*)
13682 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13683 echo "configure:13684: checking whether -R must be followed by a space" >&5
13684 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13685 cat > conftest.$ac_ext <<EOF
13686 #line 13687 "configure"
13687 #include "confdefs.h"
13688
13689 int main() {
13690
13691 ; return 0; }
13692 EOF
13693 if { (eval echo configure:13694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13694 rm -rf conftest*
13695 ac_R_nospace=yes
13696 else
13697 echo "configure: failed program was:" >&5
13698 cat conftest.$ac_ext >&5
13699 rm -rf conftest*
13700 ac_R_nospace=no
13701 fi
13702 rm -f conftest*
13703 if test $ac_R_nospace = yes; then
13704 echo "$ac_t""no" 1>&6
13705 X_LIBS="$X_LIBS -R$x_libraries"
13706 else
13707 LIBS="$ac_xsave_LIBS -R $x_libraries"
13708 cat > conftest.$ac_ext <<EOF
13709 #line 13710 "configure"
13710 #include "confdefs.h"
13711
13712 int main() {
13713
13714 ; return 0; }
13715 EOF
13716 if { (eval echo configure:13717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13717 rm -rf conftest*
13718 ac_R_space=yes
13719 else
13720 echo "configure: failed program was:" >&5
13721 cat conftest.$ac_ext >&5
13722 rm -rf conftest*
13723 ac_R_space=no
13724 fi
13725 rm -f conftest*
13726 if test $ac_R_space = yes; then
13727 echo "$ac_t""yes" 1>&6
13728 X_LIBS="$X_LIBS -R $x_libraries"
13729 else
13730 echo "$ac_t""neither works" 1>&6
13731 fi
13732 fi
13733 LIBS="$ac_xsave_LIBS"
13734 esac
13735 fi
13736
13737 # Check for system-dependent libraries X programs must link with.
13738 # Do this before checking for the system-independent R6 libraries
13739 # (-lICE), since we may need -lsocket or whatever for X linking.
13740
13741 if test "$ISC" = yes; then
13742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13743 else
13744 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13745 # libraries were built with DECnet support. And karl@cs.umb.edu says
13746 # the Alpha needs dnet_stub (dnet does not exist).
13747 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13748 echo "configure:13749: checking for dnet_ntoa in -ldnet" >&5
13749 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13751 echo $ac_n "(cached) $ac_c" 1>&6
13752 else
13753 ac_save_LIBS="$LIBS"
13754 LIBS="-ldnet $LIBS"
13755 cat > conftest.$ac_ext <<EOF
13756 #line 13757 "configure"
13757 #include "confdefs.h"
13758 /* Override any gcc2 internal prototype to avoid an error. */
13759 /* We use char because int might match the return type of a gcc2
13760 builtin and then its argument prototype would still apply. */
13761 char dnet_ntoa();
13762
13763 int main() {
13764 dnet_ntoa()
13765 ; return 0; }
13766 EOF
13767 if { (eval echo configure:13768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13768 rm -rf conftest*
13769 eval "ac_cv_lib_$ac_lib_var=yes"
13770 else
13771 echo "configure: failed program was:" >&5
13772 cat conftest.$ac_ext >&5
13773 rm -rf conftest*
13774 eval "ac_cv_lib_$ac_lib_var=no"
13775 fi
13776 rm -f conftest*
13777 LIBS="$ac_save_LIBS"
13778
13779 fi
13780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13781 echo "$ac_t""yes" 1>&6
13782 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13783 else
13784 echo "$ac_t""no" 1>&6
13785 fi
13786
13787 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13788 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13789 echo "configure:13790: checking for dnet_ntoa in -ldnet_stub" >&5
13790 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13792 echo $ac_n "(cached) $ac_c" 1>&6
13793 else
13794 ac_save_LIBS="$LIBS"
13795 LIBS="-ldnet_stub $LIBS"
13796 cat > conftest.$ac_ext <<EOF
13797 #line 13798 "configure"
13798 #include "confdefs.h"
13799 /* Override any gcc2 internal prototype to avoid an error. */
13800 /* We use char because int might match the return type of a gcc2
13801 builtin and then its argument prototype would still apply. */
13802 char dnet_ntoa();
13803
13804 int main() {
13805 dnet_ntoa()
13806 ; return 0; }
13807 EOF
13808 if { (eval echo configure:13809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13809 rm -rf conftest*
13810 eval "ac_cv_lib_$ac_lib_var=yes"
13811 else
13812 echo "configure: failed program was:" >&5
13813 cat conftest.$ac_ext >&5
13814 rm -rf conftest*
13815 eval "ac_cv_lib_$ac_lib_var=no"
13816 fi
13817 rm -f conftest*
13818 LIBS="$ac_save_LIBS"
13819
13820 fi
13821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13822 echo "$ac_t""yes" 1>&6
13823 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13824 else
13825 echo "$ac_t""no" 1>&6
13826 fi
13827
13828 fi
13829
13830 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13831 # to get the SysV transport functions.
13832 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13833 # needs -lnsl.
13834 # The nsl library prevents programs from opening the X display
13835 # on Irix 5.2, according to dickey@clark.net.
13836 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13837 echo "configure:13838: checking for gethostbyname" >&5
13838 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13839 echo $ac_n "(cached) $ac_c" 1>&6
13840 else
13841 cat > conftest.$ac_ext <<EOF
13842 #line 13843 "configure"
13843 #include "confdefs.h"
13844 /* System header to define __stub macros and hopefully few prototypes,
13845 which can conflict with char gethostbyname(); below. */
13846 #include <assert.h>
13847 /* Override any gcc2 internal prototype to avoid an error. */
13848 /* We use char because int might match the return type of a gcc2
13849 builtin and then its argument prototype would still apply. */
13850 char gethostbyname();
13851
13852 int main() {
13853
13854 /* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
13857 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13858 choke me
13859 #else
13860 gethostbyname();
13861 #endif
13862
13863 ; return 0; }
13864 EOF
13865 if { (eval echo configure:13866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13866 rm -rf conftest*
13867 eval "ac_cv_func_gethostbyname=yes"
13868 else
13869 echo "configure: failed program was:" >&5
13870 cat conftest.$ac_ext >&5
13871 rm -rf conftest*
13872 eval "ac_cv_func_gethostbyname=no"
13873 fi
13874 rm -f conftest*
13875 fi
13876
13877 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13878 echo "$ac_t""yes" 1>&6
13879 :
13880 else
13881 echo "$ac_t""no" 1>&6
13882 fi
13883
13884 if test $ac_cv_func_gethostbyname = no; then
13885 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13886 echo "configure:13887: checking for gethostbyname in -lnsl" >&5
13887 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13889 echo $ac_n "(cached) $ac_c" 1>&6
13890 else
13891 ac_save_LIBS="$LIBS"
13892 LIBS="-lnsl $LIBS"
13893 cat > conftest.$ac_ext <<EOF
13894 #line 13895 "configure"
13895 #include "confdefs.h"
13896 /* Override any gcc2 internal prototype to avoid an error. */
13897 /* We use char because int might match the return type of a gcc2
13898 builtin and then its argument prototype would still apply. */
13899 char gethostbyname();
13900
13901 int main() {
13902 gethostbyname()
13903 ; return 0; }
13904 EOF
13905 if { (eval echo configure:13906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13906 rm -rf conftest*
13907 eval "ac_cv_lib_$ac_lib_var=yes"
13908 else
13909 echo "configure: failed program was:" >&5
13910 cat conftest.$ac_ext >&5
13911 rm -rf conftest*
13912 eval "ac_cv_lib_$ac_lib_var=no"
13913 fi
13914 rm -f conftest*
13915 LIBS="$ac_save_LIBS"
13916
13917 fi
13918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13919 echo "$ac_t""yes" 1>&6
13920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13921 else
13922 echo "$ac_t""no" 1>&6
13923 fi
13924
13925 fi
13926
13927 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13928 # socket/setsockopt and other routines are undefined under SCO ODT
13929 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13930 # on later versions), says simon@lia.di.epfl.ch: it contains
13931 # gethostby* variants that don't use the nameserver (or something).
13932 # -lsocket must be given before -lnsl if both are needed.
13933 # We assume that if connect needs -lnsl, so does gethostbyname.
13934 echo $ac_n "checking for connect""... $ac_c" 1>&6
13935 echo "configure:13936: checking for connect" >&5
13936 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13937 echo $ac_n "(cached) $ac_c" 1>&6
13938 else
13939 cat > conftest.$ac_ext <<EOF
13940 #line 13941 "configure"
13941 #include "confdefs.h"
13942 /* System header to define __stub macros and hopefully few prototypes,
13943 which can conflict with char connect(); below. */
13944 #include <assert.h>
13945 /* Override any gcc2 internal prototype to avoid an error. */
13946 /* We use char because int might match the return type of a gcc2
13947 builtin and then its argument prototype would still apply. */
13948 char connect();
13949
13950 int main() {
13951
13952 /* The GNU C library defines this for functions which it implements
13953 to always fail with ENOSYS. Some functions are actually named
13954 something starting with __ and the normal name is an alias. */
13955 #if defined (__stub_connect) || defined (__stub___connect)
13956 choke me
13957 #else
13958 connect();
13959 #endif
13960
13961 ; return 0; }
13962 EOF
13963 if { (eval echo configure:13964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13964 rm -rf conftest*
13965 eval "ac_cv_func_connect=yes"
13966 else
13967 echo "configure: failed program was:" >&5
13968 cat conftest.$ac_ext >&5
13969 rm -rf conftest*
13970 eval "ac_cv_func_connect=no"
13971 fi
13972 rm -f conftest*
13973 fi
13974
13975 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13976 echo "$ac_t""yes" 1>&6
13977 :
13978 else
13979 echo "$ac_t""no" 1>&6
13980 fi
13981
13982 if test $ac_cv_func_connect = no; then
13983 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13984 echo "configure:13985: checking for connect in -lsocket" >&5
13985 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13987 echo $ac_n "(cached) $ac_c" 1>&6
13988 else
13989 ac_save_LIBS="$LIBS"
13990 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13991 cat > conftest.$ac_ext <<EOF
13992 #line 13993 "configure"
13993 #include "confdefs.h"
13994 /* Override any gcc2 internal prototype to avoid an error. */
13995 /* We use char because int might match the return type of a gcc2
13996 builtin and then its argument prototype would still apply. */
13997 char connect();
13998
13999 int main() {
14000 connect()
14001 ; return 0; }
14002 EOF
14003 if { (eval echo configure:14004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14004 rm -rf conftest*
14005 eval "ac_cv_lib_$ac_lib_var=yes"
14006 else
14007 echo "configure: failed program was:" >&5
14008 cat conftest.$ac_ext >&5
14009 rm -rf conftest*
14010 eval "ac_cv_lib_$ac_lib_var=no"
14011 fi
14012 rm -f conftest*
14013 LIBS="$ac_save_LIBS"
14014
14015 fi
14016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14017 echo "$ac_t""yes" 1>&6
14018 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14019 else
14020 echo "$ac_t""no" 1>&6
14021 fi
14022
14023 fi
14024
14025 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14026 echo $ac_n "checking for remove""... $ac_c" 1>&6
14027 echo "configure:14028: checking for remove" >&5
14028 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14029 echo $ac_n "(cached) $ac_c" 1>&6
14030 else
14031 cat > conftest.$ac_ext <<EOF
14032 #line 14033 "configure"
14033 #include "confdefs.h"
14034 /* System header to define __stub macros and hopefully few prototypes,
14035 which can conflict with char remove(); below. */
14036 #include <assert.h>
14037 /* Override any gcc2 internal prototype to avoid an error. */
14038 /* We use char because int might match the return type of a gcc2
14039 builtin and then its argument prototype would still apply. */
14040 char remove();
14041
14042 int main() {
14043
14044 /* The GNU C library defines this for functions which it implements
14045 to always fail with ENOSYS. Some functions are actually named
14046 something starting with __ and the normal name is an alias. */
14047 #if defined (__stub_remove) || defined (__stub___remove)
14048 choke me
14049 #else
14050 remove();
14051 #endif
14052
14053 ; return 0; }
14054 EOF
14055 if { (eval echo configure:14056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14056 rm -rf conftest*
14057 eval "ac_cv_func_remove=yes"
14058 else
14059 echo "configure: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061 rm -rf conftest*
14062 eval "ac_cv_func_remove=no"
14063 fi
14064 rm -f conftest*
14065 fi
14066
14067 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14068 echo "$ac_t""yes" 1>&6
14069 :
14070 else
14071 echo "$ac_t""no" 1>&6
14072 fi
14073
14074 if test $ac_cv_func_remove = no; then
14075 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14076 echo "configure:14077: checking for remove in -lposix" >&5
14077 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14079 echo $ac_n "(cached) $ac_c" 1>&6
14080 else
14081 ac_save_LIBS="$LIBS"
14082 LIBS="-lposix $LIBS"
14083 cat > conftest.$ac_ext <<EOF
14084 #line 14085 "configure"
14085 #include "confdefs.h"
14086 /* Override any gcc2 internal prototype to avoid an error. */
14087 /* We use char because int might match the return type of a gcc2
14088 builtin and then its argument prototype would still apply. */
14089 char remove();
14090
14091 int main() {
14092 remove()
14093 ; return 0; }
14094 EOF
14095 if { (eval echo configure:14096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14096 rm -rf conftest*
14097 eval "ac_cv_lib_$ac_lib_var=yes"
14098 else
14099 echo "configure: failed program was:" >&5
14100 cat conftest.$ac_ext >&5
14101 rm -rf conftest*
14102 eval "ac_cv_lib_$ac_lib_var=no"
14103 fi
14104 rm -f conftest*
14105 LIBS="$ac_save_LIBS"
14106
14107 fi
14108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14109 echo "$ac_t""yes" 1>&6
14110 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14111 else
14112 echo "$ac_t""no" 1>&6
14113 fi
14114
14115 fi
14116
14117 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14118 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14119 echo "configure:14120: checking for shmat" >&5
14120 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14121 echo $ac_n "(cached) $ac_c" 1>&6
14122 else
14123 cat > conftest.$ac_ext <<EOF
14124 #line 14125 "configure"
14125 #include "confdefs.h"
14126 /* System header to define __stub macros and hopefully few prototypes,
14127 which can conflict with char shmat(); below. */
14128 #include <assert.h>
14129 /* Override any gcc2 internal prototype to avoid an error. */
14130 /* We use char because int might match the return type of a gcc2
14131 builtin and then its argument prototype would still apply. */
14132 char shmat();
14133
14134 int main() {
14135
14136 /* The GNU C library defines this for functions which it implements
14137 to always fail with ENOSYS. Some functions are actually named
14138 something starting with __ and the normal name is an alias. */
14139 #if defined (__stub_shmat) || defined (__stub___shmat)
14140 choke me
14141 #else
14142 shmat();
14143 #endif
14144
14145 ; return 0; }
14146 EOF
14147 if { (eval echo configure:14148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14148 rm -rf conftest*
14149 eval "ac_cv_func_shmat=yes"
14150 else
14151 echo "configure: failed program was:" >&5
14152 cat conftest.$ac_ext >&5
14153 rm -rf conftest*
14154 eval "ac_cv_func_shmat=no"
14155 fi
14156 rm -f conftest*
14157 fi
14158
14159 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14160 echo "$ac_t""yes" 1>&6
14161 :
14162 else
14163 echo "$ac_t""no" 1>&6
14164 fi
14165
14166 if test $ac_cv_func_shmat = no; then
14167 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14168 echo "configure:14169: checking for shmat in -lipc" >&5
14169 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14171 echo $ac_n "(cached) $ac_c" 1>&6
14172 else
14173 ac_save_LIBS="$LIBS"
14174 LIBS="-lipc $LIBS"
14175 cat > conftest.$ac_ext <<EOF
14176 #line 14177 "configure"
14177 #include "confdefs.h"
14178 /* Override any gcc2 internal prototype to avoid an error. */
14179 /* We use char because int might match the return type of a gcc2
14180 builtin and then its argument prototype would still apply. */
14181 char shmat();
14182
14183 int main() {
14184 shmat()
14185 ; return 0; }
14186 EOF
14187 if { (eval echo configure:14188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14188 rm -rf conftest*
14189 eval "ac_cv_lib_$ac_lib_var=yes"
14190 else
14191 echo "configure: failed program was:" >&5
14192 cat conftest.$ac_ext >&5
14193 rm -rf conftest*
14194 eval "ac_cv_lib_$ac_lib_var=no"
14195 fi
14196 rm -f conftest*
14197 LIBS="$ac_save_LIBS"
14198
14199 fi
14200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14201 echo "$ac_t""yes" 1>&6
14202 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14203 else
14204 echo "$ac_t""no" 1>&6
14205 fi
14206
14207 fi
14208 fi
14209
14210 # Check for libraries that X11R6 Xt/Xaw programs need.
14211 ac_save_LDFLAGS="$LDFLAGS"
14212 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14213 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14214 # check for ICE first), but we must link in the order -lSM -lICE or
14215 # we get undefined symbols. So assume we have SM if we have ICE.
14216 # These have to be linked with before -lX11, unlike the other
14217 # libraries we check for below, so use a different variable.
14218 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14219 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14220 echo "configure:14221: checking for IceConnectionNumber in -lICE" >&5
14221 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14223 echo $ac_n "(cached) $ac_c" 1>&6
14224 else
14225 ac_save_LIBS="$LIBS"
14226 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14227 cat > conftest.$ac_ext <<EOF
14228 #line 14229 "configure"
14229 #include "confdefs.h"
14230 /* Override any gcc2 internal prototype to avoid an error. */
14231 /* We use char because int might match the return type of a gcc2
14232 builtin and then its argument prototype would still apply. */
14233 char IceConnectionNumber();
14234
14235 int main() {
14236 IceConnectionNumber()
14237 ; return 0; }
14238 EOF
14239 if { (eval echo configure:14240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14240 rm -rf conftest*
14241 eval "ac_cv_lib_$ac_lib_var=yes"
14242 else
14243 echo "configure: failed program was:" >&5
14244 cat conftest.$ac_ext >&5
14245 rm -rf conftest*
14246 eval "ac_cv_lib_$ac_lib_var=no"
14247 fi
14248 rm -f conftest*
14249 LIBS="$ac_save_LIBS"
14250
14251 fi
14252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14253 echo "$ac_t""yes" 1>&6
14254 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14255 else
14256 echo "$ac_t""no" 1>&6
14257 fi
14258
14259 LDFLAGS="$ac_save_LDFLAGS"
14260
14261 fi
14262
14263
14264 if test "$no_x" = "yes"; then
14265 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14266 fi
14267
14268 GUI_TK_LIBRARY="$X_LIBS"
14269 TOOLKIT_INCLUDE="$X_CFLAGS"
14270 AFMINSTALL=afminstall
14271 COMPILED_X_PROGRAM=0
14272
14273 if test "$wxUSE_NANOX" = "yes"; then
14274 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14275 echo "configure:14276: checking for MicroWindows/NanoX distribution" >&5
14276 if test "x$MICROWIN" = x ; then
14277 echo "$ac_t""not found" 1>&6
14278 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14279 else
14280 echo "$ac_t""$MICROWIN" 1>&6
14281 cat >> confdefs.h <<\EOF
14282 #define wxUSE_NANOX 1
14283 EOF
14284
14285 fi
14286 fi
14287
14288 xpm_link=
14289 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14290 echo "configure:14291: checking for Xpm library" >&5
14291
14292 ac_find_libraries=
14293 for ac_dir in $SEARCH_LIB /usr/lib;
14294 do
14295 for ac_extension in a so sl dylib; do
14296 if test -f "$ac_dir/libXpm.$ac_extension"; then
14297 ac_find_libraries=$ac_dir
14298 break 2
14299 fi
14300 done
14301 done
14302
14303 if test "$ac_find_libraries" != "" ; then
14304
14305 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14306 result=$?
14307 if test $result = 0; then
14308 ac_path_to_link=""
14309 else
14310 ac_path_to_link=" -L$ac_find_libraries"
14311 fi
14312
14313 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14314 xpm_link=" -lXpm"
14315 cat >> confdefs.h <<\EOF
14316 #define wxHAVE_LIB_XPM 1
14317 EOF
14318
14319 echo "$ac_t""found at $ac_find_libraries" 1>&6
14320 else
14321 cat > conftest.$ac_ext <<EOF
14322 #line 14323 "configure"
14323 #include "confdefs.h"
14324
14325 #include <X11/xpm.h>
14326
14327 int main() {
14328
14329 int version;
14330 version = XpmLibraryVersion();
14331
14332 ; return 0; }
14333 EOF
14334 if { (eval echo configure:14335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14335 rm -rf conftest*
14336
14337 xpm_link=" -lXpm"
14338 cat >> confdefs.h <<\EOF
14339 #define wxHAVE_LIB_XPM 1
14340 EOF
14341
14342 echo "$ac_t""found in default search path" 1>&6
14343 COMPILED_X_PROGRAM=0
14344
14345 else
14346 echo "configure: failed program was:" >&5
14347 cat conftest.$ac_ext >&5
14348 rm -rf conftest*
14349
14350 echo "$ac_t""no" 1>&6
14351 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14352
14353
14354 fi
14355 rm -f conftest*
14356 fi
14357
14358 if test "$wxUSE_UNICODE" = "yes"; then
14359
14360 succeeded=no
14361
14362 if test -z "$PKG_CONFIG"; then
14363 # Extract the first word of "pkg-config", so it can be a program name with args.
14364 set dummy pkg-config; ac_word=$2
14365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14366 echo "configure:14367: checking for $ac_word" >&5
14367 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14368 echo $ac_n "(cached) $ac_c" 1>&6
14369 else
14370 case "$PKG_CONFIG" in
14371 /*)
14372 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14373 ;;
14374 ?:/*)
14375 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14376 ;;
14377 *)
14378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14379 ac_dummy="$PATH"
14380 for ac_dir in $ac_dummy; do
14381 test -z "$ac_dir" && ac_dir=.
14382 if test -f $ac_dir/$ac_word; then
14383 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14384 break
14385 fi
14386 done
14387 IFS="$ac_save_ifs"
14388 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14389 ;;
14390 esac
14391 fi
14392 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14393 if test -n "$PKG_CONFIG"; then
14394 echo "$ac_t""$PKG_CONFIG" 1>&6
14395 else
14396 echo "$ac_t""no" 1>&6
14397 fi
14398
14399 fi
14400
14401 if test "$PKG_CONFIG" = "no" ; then
14402 echo "*** The pkg-config script could not be found. Make sure it is"
14403 echo "*** in your path, or set the PKG_CONFIG environment variable"
14404 echo "*** to the full path to pkg-config."
14405 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14406 else
14407 PKG_CONFIG_MIN_VERSION=0.9.0
14408 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14409 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14410 echo "configure:14411: checking for pangox" >&5
14411
14412 if $PKG_CONFIG --exists "pangox" ; then
14413 echo "$ac_t""yes" 1>&6
14414 succeeded=yes
14415
14416 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14417 echo "configure:14418: checking PANGOX_CFLAGS" >&5
14418 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14419 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14420
14421 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14422 echo "configure:14423: checking PANGOX_LIBS" >&5
14423 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14424 echo "$ac_t""$PANGOX_LIBS" 1>&6
14425 else
14426 PANGOX_CFLAGS=""
14427 PANGOX_LIBS=""
14428 ## If we have a custom action on failure, don't print errors, but
14429 ## do set a variable so people can do so.
14430 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14431
14432 fi
14433
14434
14435
14436 else
14437 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14438 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14439 fi
14440 fi
14441
14442 if test $succeeded = yes; then
14443
14444 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14445 LIBS="$LIBS $PANGOX_LIBS"
14446
14447 else
14448
14449 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14450
14451
14452 fi
14453
14454
14455 succeeded=no
14456
14457 if test -z "$PKG_CONFIG"; then
14458 # Extract the first word of "pkg-config", so it can be a program name with args.
14459 set dummy pkg-config; ac_word=$2
14460 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14461 echo "configure:14462: checking for $ac_word" >&5
14462 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14463 echo $ac_n "(cached) $ac_c" 1>&6
14464 else
14465 case "$PKG_CONFIG" in
14466 /*)
14467 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14468 ;;
14469 ?:/*)
14470 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14471 ;;
14472 *)
14473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14474 ac_dummy="$PATH"
14475 for ac_dir in $ac_dummy; do
14476 test -z "$ac_dir" && ac_dir=.
14477 if test -f $ac_dir/$ac_word; then
14478 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14479 break
14480 fi
14481 done
14482 IFS="$ac_save_ifs"
14483 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14484 ;;
14485 esac
14486 fi
14487 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14488 if test -n "$PKG_CONFIG"; then
14489 echo "$ac_t""$PKG_CONFIG" 1>&6
14490 else
14491 echo "$ac_t""no" 1>&6
14492 fi
14493
14494 fi
14495
14496 if test "$PKG_CONFIG" = "no" ; then
14497 echo "*** The pkg-config script could not be found. Make sure it is"
14498 echo "*** in your path, or set the PKG_CONFIG environment variable"
14499 echo "*** to the full path to pkg-config."
14500 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14501 else
14502 PKG_CONFIG_MIN_VERSION=0.9.0
14503 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14504 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14505 echo "configure:14506: checking for pangoft2" >&5
14506
14507 if $PKG_CONFIG --exists "pangoft2" ; then
14508 echo "$ac_t""yes" 1>&6
14509 succeeded=yes
14510
14511 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14512 echo "configure:14513: checking PANGOFT2_CFLAGS" >&5
14513 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14514 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14515
14516 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14517 echo "configure:14518: checking PANGOFT2_LIBS" >&5
14518 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14519 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14520 else
14521 PANGOFT2_CFLAGS=""
14522 PANGOFT2_LIBS=""
14523 ## If we have a custom action on failure, don't print errors, but
14524 ## do set a variable so people can do so.
14525 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14526
14527 fi
14528
14529
14530
14531 else
14532 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14533 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14534 fi
14535 fi
14536
14537 if test $succeeded = yes; then
14538
14539 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14540 LIBS="$LIBS $PANGOFT2_LIBS"
14541
14542 else
14543
14544 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14545 wxUSE_PRINTING_ARCHITECTURE="no"
14546
14547
14548 fi
14549
14550
14551 succeeded=no
14552
14553 if test -z "$PKG_CONFIG"; then
14554 # Extract the first word of "pkg-config", so it can be a program name with args.
14555 set dummy pkg-config; ac_word=$2
14556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14557 echo "configure:14558: checking for $ac_word" >&5
14558 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14559 echo $ac_n "(cached) $ac_c" 1>&6
14560 else
14561 case "$PKG_CONFIG" in
14562 /*)
14563 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14564 ;;
14565 ?:/*)
14566 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14567 ;;
14568 *)
14569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14570 ac_dummy="$PATH"
14571 for ac_dir in $ac_dummy; do
14572 test -z "$ac_dir" && ac_dir=.
14573 if test -f $ac_dir/$ac_word; then
14574 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14575 break
14576 fi
14577 done
14578 IFS="$ac_save_ifs"
14579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14580 ;;
14581 esac
14582 fi
14583 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14584 if test -n "$PKG_CONFIG"; then
14585 echo "$ac_t""$PKG_CONFIG" 1>&6
14586 else
14587 echo "$ac_t""no" 1>&6
14588 fi
14589
14590 fi
14591
14592 if test "$PKG_CONFIG" = "no" ; then
14593 echo "*** The pkg-config script could not be found. Make sure it is"
14594 echo "*** in your path, or set the PKG_CONFIG environment variable"
14595 echo "*** to the full path to pkg-config."
14596 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14597 else
14598 PKG_CONFIG_MIN_VERSION=0.9.0
14599 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14600 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14601 echo "configure:14602: checking for pangoxft" >&5
14602
14603 if $PKG_CONFIG --exists "pangoxft" ; then
14604 echo "$ac_t""yes" 1>&6
14605 succeeded=yes
14606
14607 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14608 echo "configure:14609: checking PANGOXFT_CFLAGS" >&5
14609 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14610 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14611
14612 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14613 echo "configure:14614: checking PANGOXFT_LIBS" >&5
14614 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14615 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14616 else
14617 PANGOXFT_CFLAGS=""
14618 PANGOXFT_LIBS=""
14619 ## If we have a custom action on failure, don't print errors, but
14620 ## do set a variable so people can do so.
14621 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14622
14623 fi
14624
14625
14626
14627 else
14628 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14629 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14630 fi
14631 fi
14632
14633 if test $succeeded = yes; then
14634
14635 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14636 LIBS="$LIBS $PANGOXFT_LIBS"
14637
14638 else
14639
14640 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14641
14642
14643 fi
14644
14645 fi
14646
14647 wxUSE_UNIVERSAL="yes"
14648
14649 if test "$wxUSE_NANOX" = "yes"; then
14650 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14651 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"
14652 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14653 else
14654 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14655 fi
14656
14657 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14658 TOOLKIT=X11
14659 GUIDIST=X11_DIST
14660 fi
14661
14662 if test "$wxUSE_MOTIF" = 1; then
14663 if test "$no_x" = yes; then
14664 # Not all programs may use this symbol, but it does not hurt to define it.
14665 cat >> confdefs.h <<\EOF
14666 #define X_DISPLAY_MISSING 1
14667 EOF
14668
14669 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14670 else
14671 if test -n "$x_includes"; then
14672 X_CFLAGS="$X_CFLAGS -I$x_includes"
14673 fi
14674
14675 # It would also be nice to do this for all -L options, not just this one.
14676 if test -n "$x_libraries"; then
14677 X_LIBS="$X_LIBS -L$x_libraries"
14678 # For Solaris; some versions of Sun CC require a space after -R and
14679 # others require no space. Words are not sufficient . . . .
14680 case "`(uname -sr) 2>/dev/null`" in
14681 "SunOS 5"*)
14682 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14683 echo "configure:14684: checking whether -R must be followed by a space" >&5
14684 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14685 cat > conftest.$ac_ext <<EOF
14686 #line 14687 "configure"
14687 #include "confdefs.h"
14688
14689 int main() {
14690
14691 ; return 0; }
14692 EOF
14693 if { (eval echo configure:14694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14694 rm -rf conftest*
14695 ac_R_nospace=yes
14696 else
14697 echo "configure: failed program was:" >&5
14698 cat conftest.$ac_ext >&5
14699 rm -rf conftest*
14700 ac_R_nospace=no
14701 fi
14702 rm -f conftest*
14703 if test $ac_R_nospace = yes; then
14704 echo "$ac_t""no" 1>&6
14705 X_LIBS="$X_LIBS -R$x_libraries"
14706 else
14707 LIBS="$ac_xsave_LIBS -R $x_libraries"
14708 cat > conftest.$ac_ext <<EOF
14709 #line 14710 "configure"
14710 #include "confdefs.h"
14711
14712 int main() {
14713
14714 ; return 0; }
14715 EOF
14716 if { (eval echo configure:14717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14717 rm -rf conftest*
14718 ac_R_space=yes
14719 else
14720 echo "configure: failed program was:" >&5
14721 cat conftest.$ac_ext >&5
14722 rm -rf conftest*
14723 ac_R_space=no
14724 fi
14725 rm -f conftest*
14726 if test $ac_R_space = yes; then
14727 echo "$ac_t""yes" 1>&6
14728 X_LIBS="$X_LIBS -R $x_libraries"
14729 else
14730 echo "$ac_t""neither works" 1>&6
14731 fi
14732 fi
14733 LIBS="$ac_xsave_LIBS"
14734 esac
14735 fi
14736
14737 # Check for system-dependent libraries X programs must link with.
14738 # Do this before checking for the system-independent R6 libraries
14739 # (-lICE), since we may need -lsocket or whatever for X linking.
14740
14741 if test "$ISC" = yes; then
14742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14743 else
14744 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14745 # libraries were built with DECnet support. And karl@cs.umb.edu says
14746 # the Alpha needs dnet_stub (dnet does not exist).
14747 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14748 echo "configure:14749: checking for dnet_ntoa in -ldnet" >&5
14749 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14751 echo $ac_n "(cached) $ac_c" 1>&6
14752 else
14753 ac_save_LIBS="$LIBS"
14754 LIBS="-ldnet $LIBS"
14755 cat > conftest.$ac_ext <<EOF
14756 #line 14757 "configure"
14757 #include "confdefs.h"
14758 /* Override any gcc2 internal prototype to avoid an error. */
14759 /* We use char because int might match the return type of a gcc2
14760 builtin and then its argument prototype would still apply. */
14761 char dnet_ntoa();
14762
14763 int main() {
14764 dnet_ntoa()
14765 ; return 0; }
14766 EOF
14767 if { (eval echo configure:14768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14768 rm -rf conftest*
14769 eval "ac_cv_lib_$ac_lib_var=yes"
14770 else
14771 echo "configure: failed program was:" >&5
14772 cat conftest.$ac_ext >&5
14773 rm -rf conftest*
14774 eval "ac_cv_lib_$ac_lib_var=no"
14775 fi
14776 rm -f conftest*
14777 LIBS="$ac_save_LIBS"
14778
14779 fi
14780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14781 echo "$ac_t""yes" 1>&6
14782 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14783 else
14784 echo "$ac_t""no" 1>&6
14785 fi
14786
14787 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14788 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14789 echo "configure:14790: checking for dnet_ntoa in -ldnet_stub" >&5
14790 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14792 echo $ac_n "(cached) $ac_c" 1>&6
14793 else
14794 ac_save_LIBS="$LIBS"
14795 LIBS="-ldnet_stub $LIBS"
14796 cat > conftest.$ac_ext <<EOF
14797 #line 14798 "configure"
14798 #include "confdefs.h"
14799 /* Override any gcc2 internal prototype to avoid an error. */
14800 /* We use char because int might match the return type of a gcc2
14801 builtin and then its argument prototype would still apply. */
14802 char dnet_ntoa();
14803
14804 int main() {
14805 dnet_ntoa()
14806 ; return 0; }
14807 EOF
14808 if { (eval echo configure:14809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14809 rm -rf conftest*
14810 eval "ac_cv_lib_$ac_lib_var=yes"
14811 else
14812 echo "configure: failed program was:" >&5
14813 cat conftest.$ac_ext >&5
14814 rm -rf conftest*
14815 eval "ac_cv_lib_$ac_lib_var=no"
14816 fi
14817 rm -f conftest*
14818 LIBS="$ac_save_LIBS"
14819
14820 fi
14821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14822 echo "$ac_t""yes" 1>&6
14823 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14824 else
14825 echo "$ac_t""no" 1>&6
14826 fi
14827
14828 fi
14829
14830 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14831 # to get the SysV transport functions.
14832 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14833 # needs -lnsl.
14834 # The nsl library prevents programs from opening the X display
14835 # on Irix 5.2, according to dickey@clark.net.
14836 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14837 echo "configure:14838: checking for gethostbyname" >&5
14838 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14839 echo $ac_n "(cached) $ac_c" 1>&6
14840 else
14841 cat > conftest.$ac_ext <<EOF
14842 #line 14843 "configure"
14843 #include "confdefs.h"
14844 /* System header to define __stub macros and hopefully few prototypes,
14845 which can conflict with char gethostbyname(); below. */
14846 #include <assert.h>
14847 /* Override any gcc2 internal prototype to avoid an error. */
14848 /* We use char because int might match the return type of a gcc2
14849 builtin and then its argument prototype would still apply. */
14850 char gethostbyname();
14851
14852 int main() {
14853
14854 /* The GNU C library defines this for functions which it implements
14855 to always fail with ENOSYS. Some functions are actually named
14856 something starting with __ and the normal name is an alias. */
14857 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14858 choke me
14859 #else
14860 gethostbyname();
14861 #endif
14862
14863 ; return 0; }
14864 EOF
14865 if { (eval echo configure:14866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14866 rm -rf conftest*
14867 eval "ac_cv_func_gethostbyname=yes"
14868 else
14869 echo "configure: failed program was:" >&5
14870 cat conftest.$ac_ext >&5
14871 rm -rf conftest*
14872 eval "ac_cv_func_gethostbyname=no"
14873 fi
14874 rm -f conftest*
14875 fi
14876
14877 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14878 echo "$ac_t""yes" 1>&6
14879 :
14880 else
14881 echo "$ac_t""no" 1>&6
14882 fi
14883
14884 if test $ac_cv_func_gethostbyname = no; then
14885 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14886 echo "configure:14887: checking for gethostbyname in -lnsl" >&5
14887 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14889 echo $ac_n "(cached) $ac_c" 1>&6
14890 else
14891 ac_save_LIBS="$LIBS"
14892 LIBS="-lnsl $LIBS"
14893 cat > conftest.$ac_ext <<EOF
14894 #line 14895 "configure"
14895 #include "confdefs.h"
14896 /* Override any gcc2 internal prototype to avoid an error. */
14897 /* We use char because int might match the return type of a gcc2
14898 builtin and then its argument prototype would still apply. */
14899 char gethostbyname();
14900
14901 int main() {
14902 gethostbyname()
14903 ; return 0; }
14904 EOF
14905 if { (eval echo configure:14906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14906 rm -rf conftest*
14907 eval "ac_cv_lib_$ac_lib_var=yes"
14908 else
14909 echo "configure: failed program was:" >&5
14910 cat conftest.$ac_ext >&5
14911 rm -rf conftest*
14912 eval "ac_cv_lib_$ac_lib_var=no"
14913 fi
14914 rm -f conftest*
14915 LIBS="$ac_save_LIBS"
14916
14917 fi
14918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14919 echo "$ac_t""yes" 1>&6
14920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14921 else
14922 echo "$ac_t""no" 1>&6
14923 fi
14924
14925 fi
14926
14927 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14928 # socket/setsockopt and other routines are undefined under SCO ODT
14929 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14930 # on later versions), says simon@lia.di.epfl.ch: it contains
14931 # gethostby* variants that don't use the nameserver (or something).
14932 # -lsocket must be given before -lnsl if both are needed.
14933 # We assume that if connect needs -lnsl, so does gethostbyname.
14934 echo $ac_n "checking for connect""... $ac_c" 1>&6
14935 echo "configure:14936: checking for connect" >&5
14936 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14937 echo $ac_n "(cached) $ac_c" 1>&6
14938 else
14939 cat > conftest.$ac_ext <<EOF
14940 #line 14941 "configure"
14941 #include "confdefs.h"
14942 /* System header to define __stub macros and hopefully few prototypes,
14943 which can conflict with char connect(); below. */
14944 #include <assert.h>
14945 /* Override any gcc2 internal prototype to avoid an error. */
14946 /* We use char because int might match the return type of a gcc2
14947 builtin and then its argument prototype would still apply. */
14948 char connect();
14949
14950 int main() {
14951
14952 /* The GNU C library defines this for functions which it implements
14953 to always fail with ENOSYS. Some functions are actually named
14954 something starting with __ and the normal name is an alias. */
14955 #if defined (__stub_connect) || defined (__stub___connect)
14956 choke me
14957 #else
14958 connect();
14959 #endif
14960
14961 ; return 0; }
14962 EOF
14963 if { (eval echo configure:14964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14964 rm -rf conftest*
14965 eval "ac_cv_func_connect=yes"
14966 else
14967 echo "configure: failed program was:" >&5
14968 cat conftest.$ac_ext >&5
14969 rm -rf conftest*
14970 eval "ac_cv_func_connect=no"
14971 fi
14972 rm -f conftest*
14973 fi
14974
14975 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14976 echo "$ac_t""yes" 1>&6
14977 :
14978 else
14979 echo "$ac_t""no" 1>&6
14980 fi
14981
14982 if test $ac_cv_func_connect = no; then
14983 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14984 echo "configure:14985: checking for connect in -lsocket" >&5
14985 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14987 echo $ac_n "(cached) $ac_c" 1>&6
14988 else
14989 ac_save_LIBS="$LIBS"
14990 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14991 cat > conftest.$ac_ext <<EOF
14992 #line 14993 "configure"
14993 #include "confdefs.h"
14994 /* Override any gcc2 internal prototype to avoid an error. */
14995 /* We use char because int might match the return type of a gcc2
14996 builtin and then its argument prototype would still apply. */
14997 char connect();
14998
14999 int main() {
15000 connect()
15001 ; return 0; }
15002 EOF
15003 if { (eval echo configure:15004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15004 rm -rf conftest*
15005 eval "ac_cv_lib_$ac_lib_var=yes"
15006 else
15007 echo "configure: failed program was:" >&5
15008 cat conftest.$ac_ext >&5
15009 rm -rf conftest*
15010 eval "ac_cv_lib_$ac_lib_var=no"
15011 fi
15012 rm -f conftest*
15013 LIBS="$ac_save_LIBS"
15014
15015 fi
15016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15017 echo "$ac_t""yes" 1>&6
15018 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15019 else
15020 echo "$ac_t""no" 1>&6
15021 fi
15022
15023 fi
15024
15025 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15026 echo $ac_n "checking for remove""... $ac_c" 1>&6
15027 echo "configure:15028: checking for remove" >&5
15028 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15029 echo $ac_n "(cached) $ac_c" 1>&6
15030 else
15031 cat > conftest.$ac_ext <<EOF
15032 #line 15033 "configure"
15033 #include "confdefs.h"
15034 /* System header to define __stub macros and hopefully few prototypes,
15035 which can conflict with char remove(); below. */
15036 #include <assert.h>
15037 /* Override any gcc2 internal prototype to avoid an error. */
15038 /* We use char because int might match the return type of a gcc2
15039 builtin and then its argument prototype would still apply. */
15040 char remove();
15041
15042 int main() {
15043
15044 /* The GNU C library defines this for functions which it implements
15045 to always fail with ENOSYS. Some functions are actually named
15046 something starting with __ and the normal name is an alias. */
15047 #if defined (__stub_remove) || defined (__stub___remove)
15048 choke me
15049 #else
15050 remove();
15051 #endif
15052
15053 ; return 0; }
15054 EOF
15055 if { (eval echo configure:15056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15056 rm -rf conftest*
15057 eval "ac_cv_func_remove=yes"
15058 else
15059 echo "configure: failed program was:" >&5
15060 cat conftest.$ac_ext >&5
15061 rm -rf conftest*
15062 eval "ac_cv_func_remove=no"
15063 fi
15064 rm -f conftest*
15065 fi
15066
15067 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15068 echo "$ac_t""yes" 1>&6
15069 :
15070 else
15071 echo "$ac_t""no" 1>&6
15072 fi
15073
15074 if test $ac_cv_func_remove = no; then
15075 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15076 echo "configure:15077: checking for remove in -lposix" >&5
15077 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15079 echo $ac_n "(cached) $ac_c" 1>&6
15080 else
15081 ac_save_LIBS="$LIBS"
15082 LIBS="-lposix $LIBS"
15083 cat > conftest.$ac_ext <<EOF
15084 #line 15085 "configure"
15085 #include "confdefs.h"
15086 /* Override any gcc2 internal prototype to avoid an error. */
15087 /* We use char because int might match the return type of a gcc2
15088 builtin and then its argument prototype would still apply. */
15089 char remove();
15090
15091 int main() {
15092 remove()
15093 ; return 0; }
15094 EOF
15095 if { (eval echo configure:15096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15096 rm -rf conftest*
15097 eval "ac_cv_lib_$ac_lib_var=yes"
15098 else
15099 echo "configure: failed program was:" >&5
15100 cat conftest.$ac_ext >&5
15101 rm -rf conftest*
15102 eval "ac_cv_lib_$ac_lib_var=no"
15103 fi
15104 rm -f conftest*
15105 LIBS="$ac_save_LIBS"
15106
15107 fi
15108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15109 echo "$ac_t""yes" 1>&6
15110 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15111 else
15112 echo "$ac_t""no" 1>&6
15113 fi
15114
15115 fi
15116
15117 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15118 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15119 echo "configure:15120: checking for shmat" >&5
15120 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15121 echo $ac_n "(cached) $ac_c" 1>&6
15122 else
15123 cat > conftest.$ac_ext <<EOF
15124 #line 15125 "configure"
15125 #include "confdefs.h"
15126 /* System header to define __stub macros and hopefully few prototypes,
15127 which can conflict with char shmat(); below. */
15128 #include <assert.h>
15129 /* Override any gcc2 internal prototype to avoid an error. */
15130 /* We use char because int might match the return type of a gcc2
15131 builtin and then its argument prototype would still apply. */
15132 char shmat();
15133
15134 int main() {
15135
15136 /* The GNU C library defines this for functions which it implements
15137 to always fail with ENOSYS. Some functions are actually named
15138 something starting with __ and the normal name is an alias. */
15139 #if defined (__stub_shmat) || defined (__stub___shmat)
15140 choke me
15141 #else
15142 shmat();
15143 #endif
15144
15145 ; return 0; }
15146 EOF
15147 if { (eval echo configure:15148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15148 rm -rf conftest*
15149 eval "ac_cv_func_shmat=yes"
15150 else
15151 echo "configure: failed program was:" >&5
15152 cat conftest.$ac_ext >&5
15153 rm -rf conftest*
15154 eval "ac_cv_func_shmat=no"
15155 fi
15156 rm -f conftest*
15157 fi
15158
15159 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15160 echo "$ac_t""yes" 1>&6
15161 :
15162 else
15163 echo "$ac_t""no" 1>&6
15164 fi
15165
15166 if test $ac_cv_func_shmat = no; then
15167 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15168 echo "configure:15169: checking for shmat in -lipc" >&5
15169 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15171 echo $ac_n "(cached) $ac_c" 1>&6
15172 else
15173 ac_save_LIBS="$LIBS"
15174 LIBS="-lipc $LIBS"
15175 cat > conftest.$ac_ext <<EOF
15176 #line 15177 "configure"
15177 #include "confdefs.h"
15178 /* Override any gcc2 internal prototype to avoid an error. */
15179 /* We use char because int might match the return type of a gcc2
15180 builtin and then its argument prototype would still apply. */
15181 char shmat();
15182
15183 int main() {
15184 shmat()
15185 ; return 0; }
15186 EOF
15187 if { (eval echo configure:15188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15188 rm -rf conftest*
15189 eval "ac_cv_lib_$ac_lib_var=yes"
15190 else
15191 echo "configure: failed program was:" >&5
15192 cat conftest.$ac_ext >&5
15193 rm -rf conftest*
15194 eval "ac_cv_lib_$ac_lib_var=no"
15195 fi
15196 rm -f conftest*
15197 LIBS="$ac_save_LIBS"
15198
15199 fi
15200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15201 echo "$ac_t""yes" 1>&6
15202 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15203 else
15204 echo "$ac_t""no" 1>&6
15205 fi
15206
15207 fi
15208 fi
15209
15210 # Check for libraries that X11R6 Xt/Xaw programs need.
15211 ac_save_LDFLAGS="$LDFLAGS"
15212 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15213 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15214 # check for ICE first), but we must link in the order -lSM -lICE or
15215 # we get undefined symbols. So assume we have SM if we have ICE.
15216 # These have to be linked with before -lX11, unlike the other
15217 # libraries we check for below, so use a different variable.
15218 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15219 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15220 echo "configure:15221: checking for IceConnectionNumber in -lICE" >&5
15221 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15223 echo $ac_n "(cached) $ac_c" 1>&6
15224 else
15225 ac_save_LIBS="$LIBS"
15226 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15227 cat > conftest.$ac_ext <<EOF
15228 #line 15229 "configure"
15229 #include "confdefs.h"
15230 /* Override any gcc2 internal prototype to avoid an error. */
15231 /* We use char because int might match the return type of a gcc2
15232 builtin and then its argument prototype would still apply. */
15233 char IceConnectionNumber();
15234
15235 int main() {
15236 IceConnectionNumber()
15237 ; return 0; }
15238 EOF
15239 if { (eval echo configure:15240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15240 rm -rf conftest*
15241 eval "ac_cv_lib_$ac_lib_var=yes"
15242 else
15243 echo "configure: failed program was:" >&5
15244 cat conftest.$ac_ext >&5
15245 rm -rf conftest*
15246 eval "ac_cv_lib_$ac_lib_var=no"
15247 fi
15248 rm -f conftest*
15249 LIBS="$ac_save_LIBS"
15250
15251 fi
15252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15253 echo "$ac_t""yes" 1>&6
15254 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15255 else
15256 echo "$ac_t""no" 1>&6
15257 fi
15258
15259 LDFLAGS="$ac_save_LDFLAGS"
15260
15261 fi
15262
15263
15264 if test "$no_x" = "yes"; then
15265 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15266 fi
15267
15268 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15269 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15270 AFMINSTALL=afminstall
15271 COMPILED_X_PROGRAM=0
15272
15273 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15274 echo "configure:15275: checking for Motif/Lesstif headers" >&5
15275
15276 ac_find_includes=
15277 for ac_dir in $SEARCH_INCLUDE /usr/include;
15278 do
15279 if test -f "$ac_dir/Xm/Xm.h"; then
15280 ac_find_includes=$ac_dir
15281 break
15282 fi
15283 done
15284
15285 if test "$ac_find_includes" != "" ; then
15286 echo "$ac_t""found in $ac_find_includes" 1>&6
15287
15288 if test "x$ac_find_includes" = "x/usr/include"; then
15289 ac_path_to_include=""
15290 else
15291 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15292 result=$?
15293 if test $result = 0; then
15294 ac_path_to_include=""
15295 else
15296 ac_path_to_include=" -I$ac_find_includes"
15297 fi
15298 fi
15299
15300 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15301 else
15302 cat > conftest.$ac_ext <<EOF
15303 #line 15304 "configure"
15304 #include "confdefs.h"
15305
15306 #include <Xm/Xm.h>
15307
15308 int main() {
15309
15310 int version;
15311 version = xmUseVersion;
15312
15313 ; return 0; }
15314 EOF
15315 if { (eval echo configure:15316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15316 rm -rf conftest*
15317
15318 echo "$ac_t""found in default search path" 1>&6
15319 COMPILED_X_PROGRAM=1
15320
15321 else
15322 echo "configure: failed program was:" >&5
15323 cat conftest.$ac_ext >&5
15324 rm -rf conftest*
15325
15326 echo "$ac_t""no" 1>&6
15327 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15328
15329
15330 fi
15331 rm -f conftest*
15332 fi
15333
15334 if test "$COMPILED_X_PROGRAM" = 0; then
15335 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15336 echo "configure:15337: checking for Motif/Lesstif library" >&5
15337
15338 ac_find_libraries=
15339 for ac_dir in $SEARCH_LIB /usr/lib;
15340 do
15341 for ac_extension in a so sl dylib; do
15342 if test -f "$ac_dir/libXm.$ac_extension"; then
15343 ac_find_libraries=$ac_dir
15344 break 2
15345 fi
15346 done
15347 done
15348
15349 if test "$ac_find_libraries" != "" ; then
15350 echo "$ac_t""found at $ac_find_libraries" 1>&6
15351
15352
15353 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15354 result=$?
15355 if test $result = 0; then
15356 ac_path_to_link=""
15357 else
15358 ac_path_to_link=" -L$ac_find_libraries"
15359 fi
15360
15361 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15362 else
15363 save_CFLAGS=$CFLAGS
15364 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15365
15366 cat > conftest.$ac_ext <<EOF
15367 #line 15368 "configure"
15368 #include "confdefs.h"
15369
15370 #include <Xm/Xm.h>
15371
15372 int main() {
15373
15374 int version;
15375 version = xmUseVersion;
15376
15377 ; return 0; }
15378 EOF
15379 if { (eval echo configure:15380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15380 rm -rf conftest*
15381
15382 echo "$ac_t""found in default search path" 1>&6
15383 COMPILED_X_PROGRAM=1
15384
15385 else
15386 echo "configure: failed program was:" >&5
15387 cat conftest.$ac_ext >&5
15388 rm -rf conftest*
15389
15390 echo "$ac_t""no" 1>&6
15391 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15392
15393
15394 fi
15395 rm -f conftest*
15396
15397 CFLAGS=$save_CFLAGS
15398 fi
15399 fi
15400
15401 xpm_link=
15402 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15403 echo "configure:15404: checking for Xpm library" >&5
15404
15405 ac_find_libraries=
15406 for ac_dir in $SEARCH_LIB /usr/lib;
15407 do
15408 for ac_extension in a so sl dylib; do
15409 if test -f "$ac_dir/libXpm.$ac_extension"; then
15410 ac_find_libraries=$ac_dir
15411 break 2
15412 fi
15413 done
15414 done
15415
15416 if test "$ac_find_libraries" != "" ; then
15417
15418 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15419 result=$?
15420 if test $result = 0; then
15421 ac_path_to_link=""
15422 else
15423 ac_path_to_link=" -L$ac_find_libraries"
15424 fi
15425
15426 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15427
15428 xpm_link=" -lXpm"
15429 cat >> confdefs.h <<\EOF
15430 #define wxHAVE_LIB_XPM 1
15431 EOF
15432
15433 echo "$ac_t""found at $ac_find_libraries" 1>&6
15434 else
15435 save_CFLAGS=$CFLAGS
15436 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15437
15438 cat > conftest.$ac_ext <<EOF
15439 #line 15440 "configure"
15440 #include "confdefs.h"
15441
15442 #include <X11/xpm.h>
15443
15444 int main() {
15445
15446 int version;
15447 version = XpmLibraryVersion();
15448
15449 ; return 0; }
15450 EOF
15451 if { (eval echo configure:15452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15452 rm -rf conftest*
15453
15454 xpm_link=" -lXpm"
15455 cat >> confdefs.h <<\EOF
15456 #define wxHAVE_LIB_XPM 1
15457 EOF
15458
15459 echo "$ac_t""found in default search path" 1>&6
15460 COMPILED_X_PROGRAM=0
15461
15462 else
15463 echo "configure: failed program was:" >&5
15464 cat conftest.$ac_ext >&5
15465 rm -rf conftest*
15466
15467 echo "$ac_t""no" 1>&6
15468 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15469
15470
15471 fi
15472 rm -f conftest*
15473
15474 CFLAGS=$save_CFLAGS
15475 fi
15476
15477 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15478 echo "configure:15479: checking if we need -lXp and/or -lSM -lICE" >&5
15479 libp_link=""
15480 libsm_ice_link=""
15481 libs_found=0
15482 for libp in "" " -lXp"; do
15483 if test "$libs_found" = "0"; then
15484 for libsm_ice in " -lSM -lICE"; do
15485 if test "$libs_found" = "0"; then
15486 save_LIBS="$LIBS"
15487 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15488 save_CFLAGS=$CFLAGS
15489 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15490
15491 cat > conftest.$ac_ext <<EOF
15492 #line 15493 "configure"
15493 #include "confdefs.h"
15494
15495 #include <Xm/Xm.h>
15496 #include <Xm/List.h>
15497
15498 int main() {
15499
15500 XmString string = NULL;
15501 Widget w = NULL;
15502 int position = 0;
15503 XmListAddItem(w, string, position);
15504
15505 ; return 0; }
15506 EOF
15507 if { (eval echo configure:15508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15508 rm -rf conftest*
15509
15510 libp_link="$libp"
15511 libsm_ice_link="$libsm_ice"
15512 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15513 libs_found=1
15514
15515 else
15516 echo "configure: failed program was:" >&5
15517 cat conftest.$ac_ext >&5
15518 rm -rf conftest*
15519
15520
15521 fi
15522 rm -f conftest*
15523
15524 LIBS="$save_LIBS"
15525 CFLAGS=$save_CFLAGS
15526 fi
15527 done
15528 fi
15529 done
15530
15531 if test "$libs_found" = "0"; then
15532 echo "$ac_t""can't find the right libraries" 1>&6
15533 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15534 fi
15535
15536 save_CFLAGS=$CFLAGS
15537 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15538 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
15539 echo "configure:15540: checking for Motif 2" >&5
15540 cat > conftest.$ac_ext <<EOF
15541 #line 15542 "configure"
15542 #include "confdefs.h"
15543
15544 #include <Xm/Xm.h>
15545
15546 int main() {
15547
15548 #if XmVersion < 2000
15549 #error "Not Motif 2"
15550 #endif
15551
15552 ; return 0; }
15553 EOF
15554 if { (eval echo configure:15555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15555 rm -rf conftest*
15556
15557 cat >> confdefs.h <<\EOF
15558 #define __WXMOTIF20__ 1
15559 EOF
15560
15561 echo "$ac_t""found" 1>&6
15562
15563 else
15564 echo "configure: failed program was:" >&5
15565 cat conftest.$ac_ext >&5
15566 rm -rf conftest*
15567
15568 cat >> confdefs.h <<\EOF
15569 #define __WXMOTIF20__ 0
15570 EOF
15571
15572 echo "$ac_t""not found" 1>&6
15573
15574 fi
15575 rm -f conftest*
15576 CFLAGS=$save_CFLAGS
15577
15578 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15579 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
15580 TOOLKIT=MOTIF
15581 GUIDIST=MOTIF_DIST
15582 fi
15583
15584 if test "$wxUSE_MAC" = 1; then
15585 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15586
15587 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15588 TOOLKIT=MAC
15589 GUIDIST=MACX_DIST
15590 fi
15591
15592 if test "$wxUSE_COCOA" = 1; then
15593 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15594 TOOLKIT=COCOA
15595 GUIDIST=COCOA_DIST
15596 fi
15597
15598 if test "$wxUSE_PM" = 1; then
15599 TOOLKIT=PM
15600 GUIDIST=GTK_DIST
15601 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15602 wxUSE_THREADS="no"
15603 fi
15604
15605 if test "$TOOLKIT" = "PM" ; then
15606 TOOLKIT_DIR="os2"
15607 else
15608 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15609 fi
15610
15611 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15612
15613 if test "$wxUSE_UNIVERSAL" = "yes"; then
15614 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15615
15616 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15617 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15618
15619 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15620 if test "$wxUSE_X11" = 1; then
15621 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15622 else
15623 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15624 fi
15625 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15626 WIDGET_SET=univ
15627 else
15628 ALL_OBJECTS="\$(GUIOBJS)"
15629 ALL_SOURCES="\$(ALL_SOURCES)"
15630 ALL_HEADERS="\$(ALL_HEADERS)"
15631 fi
15632
15633 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15634
15635 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15636 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15637 fi
15638
15639 if test "$wxUSE_HTML" = "yes"; then
15640 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15641 fi
15642
15643 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15644 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15645 fi
15646 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15647 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15648 fi
15649 if test "$wxUSE_LIBPNG" = "builtin" ; then
15650 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15651 fi
15652
15653 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15654 DISTDIR="wx\$(TOOLKIT)"
15655 else
15656 USE_GUI=0
15657
15658 TOOLKIT_DIR="base"
15659
15660 if test "$USE_WIN32" = 1 ; then
15661 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15662 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15663
15664 TOOLKIT="MSW"
15665 else
15666 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15667 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15668 fi
15669
15670 ALL_SOURCES="\$(ALL_SOURCES)"
15671 ALL_HEADERS="\$(ALL_HEADERS)"
15672
15673 PORT_FILES="\${top_srcdir}/src/files.lst"
15674
15675 GUIDIST="BASE_DIST"
15676 DISTDIR="wxBase"
15677 fi
15678
15679
15680 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15681 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15682 fi
15683
15684 if test "$wxUSE_REGEX" = "builtin" ; then
15685 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15686 fi
15687 if test "$wxUSE_ZLIB" = "builtin" ; then
15688 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15689 fi
15690
15691
15692 if test "$wxUSE_OPENGL" = "yes"; then
15693 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
15694 OPENGL_LIBS="-framework OpenGL -framework AGL"
15695 elif test "$wxUSE_MSW" = 1; then
15696 OPENGL_LIBS="-lopengl32 -lglu32"
15697 else
15698 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15699 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15700 echo "configure:15701: checking for GL/gl.h" >&5
15701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15702 echo $ac_n "(cached) $ac_c" 1>&6
15703 else
15704 cat > conftest.$ac_ext <<EOF
15705 #line 15706 "configure"
15706 #include "confdefs.h"
15707 #include <GL/gl.h>
15708 EOF
15709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15710 { (eval echo configure:15711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15712 if test -z "$ac_err"; then
15713 rm -rf conftest*
15714 eval "ac_cv_header_$ac_safe=yes"
15715 else
15716 echo "$ac_err" >&5
15717 echo "configure: failed program was:" >&5
15718 cat conftest.$ac_ext >&5
15719 rm -rf conftest*
15720 eval "ac_cv_header_$ac_safe=no"
15721 fi
15722 rm -f conftest*
15723 fi
15724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15725 echo "$ac_t""yes" 1>&6
15726
15727 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15728 echo "configure:15729: checking for -lGL" >&5
15729
15730 ac_find_libraries=
15731 for ac_dir in $SEARCH_LIB /usr/lib;
15732 do
15733 for ac_extension in a so sl dylib; do
15734 if test -f "$ac_dir/libGL.$ac_extension"; then
15735 ac_find_libraries=$ac_dir
15736 break 2
15737 fi
15738 done
15739 done
15740
15741 if test "$ac_find_libraries" != "" ; then
15742
15743 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15744 result=$?
15745 if test $result = 0; then
15746 ac_path_to_link=""
15747 else
15748 ac_path_to_link=" -L$ac_find_libraries"
15749 fi
15750
15751 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15752 LDFLAGS_GL="$LDFLAGS"
15753 else
15754 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15755 fi
15756 OPENGL_LIBS="-lGL -lGLU"
15757 echo "$ac_t""yes" 1>&6
15758 else
15759 echo "$ac_t""no" 1>&6
15760 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15761 echo "configure:15762: checking for -lMesaGL" >&5
15762
15763 ac_find_libraries=
15764 for ac_dir in $SEARCH_LIB /usr/lib;
15765 do
15766 for ac_extension in a so sl dylib; do
15767 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15768 ac_find_libraries=$ac_dir
15769 break 2
15770 fi
15771 done
15772 done
15773
15774 if test "$ac_find_libraries" != "" ; then
15775
15776 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15777 result=$?
15778 if test $result = 0; then
15779 ac_path_to_link=""
15780 else
15781 ac_path_to_link=" -L$ac_find_libraries"
15782 fi
15783
15784 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15785 OPENGL_LIBS="-lMesaGL -lMesaGLU"
15786 echo "$ac_t""yes" 1>&6
15787 else
15788 echo "$ac_t""no" 1>&6
15789 fi
15790 fi
15791
15792 else
15793 echo "$ac_t""no" 1>&6
15794 fi
15795
15796
15797 if test "x$OPENGL_LIBS" = "x"; then
15798 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15799 fi
15800 fi
15801
15802 if test "$wxUSE_OPENGL" = "yes"; then
15803 cat >> confdefs.h <<\EOF
15804 #define wxUSE_OPENGL 1
15805 EOF
15806
15807 cat >> confdefs.h <<\EOF
15808 #define wxUSE_GLCANVAS 1
15809 EOF
15810
15811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15812 fi
15813 fi
15814
15815 if test -z "$TOOLKIT_VPATH" ; then
15816 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15817 fi
15818
15819 if test -n "$TOOLKIT" ; then
15820 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15821 fi
15822
15823 lib_unicode_suffix=
15824 if test "$wxUSE_UNICODE" = "yes"; then
15825 lib_unicode_suffix=u
15826 fi
15827
15828 lib_debug_suffix=
15829 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15830 lib_debug_suffix=d
15831 fi
15832
15833 WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15834
15835 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15836 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15837
15838 if test "$cross_compiling" = "yes"; then
15839 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15840 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15841 fi
15842
15843 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15844 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15845 WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
15846
15847 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15848 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15849
15850 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15851 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15852 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15853 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15854
15855 case "${host}" in
15856 *-*-cygwin* | *-*-mingw32* )
15857
15858
15859
15860 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15861 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15862 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15863 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15864 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15865 else
15866 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15867 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15868 fi
15869 ;;
15870
15871 *-*-darwin* )
15872
15873 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15874 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15875
15876 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
15877 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15878 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
15879 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15880
15881 if test "$wxUSE_MAC" = 1; then
15882 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
15883 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
15884 fi
15885 ;;
15886 esac
15887
15888 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15889 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15890
15891 WXCONFIG_LIBS="-l${WX_LIBRARY}"
15892 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15893
15894 if test "$wxUSE_OPENGL" = "yes"; then
15895 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15896 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15897 fi
15898
15899
15900
15901 if test "$wxUSE_SHARED" = "yes"; then
15902 case "${host}" in
15903 *-pc-os2_emx | *-pc-os2-emx | \
15904 *-pc-msdosdjgpp )
15905 wxUSE_SHARED=no
15906 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
15907 ;;
15908 esac
15909 fi
15910
15911 if test "$wxUSE_SHARED" = "yes"; then
15912
15913 if test "$wxUSE_OPENGL" = "yes"; then
15914 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15915 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15916 else
15917 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15918 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15919 fi
15920
15921 if test "$GCC" = "yes"; then
15922 PIC_FLAG="-fPIC"
15923 fi
15924
15925
15926
15927 found_versioning=no
15928
15929
15930 if test $found_versioning = no ; then
15931 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
15932 echo "configure:15933: checking if the linker accepts --version-script" >&5
15933 if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
15934 echo $ac_n "(cached) $ac_c" 1>&6
15935 else
15936
15937 echo "VER_1 { *; };" >conftest.sym
15938 echo "int main() { return 0; }" >conftest.cpp
15939
15940 if { ac_try='
15941 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
15942 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
15943 if test -s conftest.stderr ; then
15944 wx_cv_version_script=no
15945 else
15946 wx_cv_version_script=yes
15947 fi
15948 else
15949 wx_cv_version_script=no
15950 fi
15951 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
15952
15953 fi
15954
15955 echo "$ac_t""$wx_cv_version_script" 1>&6
15956 if test $wx_cv_version_script = yes ; then
15957 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
15958 fi
15959 fi
15960
15961
15962 SHARED_LD="${CXX} -shared -o"
15963
15964 case "${host}" in
15965 *-hp-hpux* )
15966 if test "$GCC" = "yes"; then
15967 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
15968 else
15969 LDFLAGS="$LDFLAGS -L/usr/lib"
15970
15971 SHARED_LD="${CXX} -b -o"
15972 PIC_FLAG="+Z"
15973 fi
15974
15975 if test "$wxUSE_OPENGL" = "yes"; then
15976 WX_ALL_INSTALLED="preinstall_gl"
15977 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15978 else
15979 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15980 fi
15981 ;;
15982
15983 *-*-linux* )
15984 if test "$GCC" != "yes"; then
15985 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
15986 echo "configure:15987: checking for Intel compiler" >&5
15987 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15988 echo $ac_n "(cached) $ac_c" 1>&6
15989 else
15990
15991 cat > conftest.$ac_ext <<EOF
15992 #line 15993 "configure"
15993 #include "confdefs.h"
15994
15995 int main() {
15996
15997 #ifndef __INTEL_COMPILER
15998 #error Not icc
15999 #endif
16000
16001 ; return 0; }
16002 EOF
16003 if { (eval echo configure:16004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16004 rm -rf conftest*
16005 wx_cv_prog_icc=yes
16006 else
16007 echo "configure: failed program was:" >&5
16008 cat conftest.$ac_ext >&5
16009 rm -rf conftest*
16010 wx_cv_prog_icc=no
16011
16012 fi
16013 rm -f conftest*
16014
16015 fi
16016
16017 echo "$ac_t""$wx_cv_prog_icc" 1>&6
16018 if test "$wx_cv_prog_icc" = "yes"; then
16019 PIC_FLAG="-KPIC"
16020 fi
16021 fi
16022
16023 if test "$wxUSE_SONAME" = "yes" ; then
16024 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16025 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16026 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16027 fi
16028 ;;
16029
16030 *-*-solaris2* )
16031 if test "$GCC" = yes ; then
16032 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16033 else
16034 SHARED_LD="${CXX} -G -o"
16035 PIC_FLAG="-KPIC"
16036 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16037 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16038 fi
16039 ;;
16040
16041 *-*-darwin* )
16042 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16043 CFLAGS="$CFLAGS -fno-common"
16044 CXXFLAGS="$CXXFLAGS -fno-common"
16045 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16046 PIC_FLAG="-dynamic -fPIC"
16047 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16048 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16049 ;;
16050
16051 *-*-aix* )
16052 if test "$GCC" != "yes"; then
16053 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16054 set dummy makeC++SharedLib; ac_word=$2
16055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16056 echo "configure:16057: checking for $ac_word" >&5
16057 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16058 echo $ac_n "(cached) $ac_c" 1>&6
16059 else
16060 if test -n "$AIX_CXX_LD"; then
16061 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16062 else
16063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16064 ac_dummy="$PATH"
16065 for ac_dir in $ac_dummy; do
16066 test -z "$ac_dir" && ac_dir=.
16067 if test -f $ac_dir/$ac_word; then
16068 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16069 break
16070 fi
16071 done
16072 IFS="$ac_save_ifs"
16073 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16074 fi
16075 fi
16076 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16077 if test -n "$AIX_CXX_LD"; then
16078 echo "$ac_t""$AIX_CXX_LD" 1>&6
16079 else
16080 echo "$ac_t""no" 1>&6
16081 fi
16082
16083
16084 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16085 fi
16086 ;;
16087
16088 *-*-cygwin* | *-*-mingw32* )
16089 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16090
16091 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16092 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16093
16094 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16095
16096 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16097 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16098
16099 if test "$wxUSE_OPENGL" = "yes"; then
16100 LIBS="${LIBS} ${OPENGL_LIBS}"
16101 fi
16102 ;;
16103
16104 *-*-beos* )
16105 SHARED_LD="${LD} -shared -o"
16106 ;;
16107
16108 *-*-irix* )
16109 if test "$GCC" != "yes"; then
16110 PIC_FLAG="-KPIC"
16111 fi
16112 ;;
16113
16114 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16115 *-*-sunos4* | \
16116 *-*-osf* | \
16117 *-*-dgux5* | \
16118 *-*-sysv5* )
16119 ;;
16120
16121 *)
16122 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16123 esac
16124
16125 if test "x$WX_TARGET_LIBRARY" = "x"; then
16126 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16127 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16128 fi
16129
16130 WX_TARGET_LIBRARY_TYPE="so"
16131 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16132 fi
16133
16134 if test "$wxUSE_SHARED" = "no"; then
16135
16136 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16137 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16138 fi
16139
16140 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
16141 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16142 fi
16143
16144 if test "$wxUSE_OPENGL" = "yes"; then
16145 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16146 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16147 else
16148 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16149 fi
16150
16151 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16152 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16153
16154 WX_TARGET_LIBRARY_TYPE="a"
16155 INSTALL_LIBRARY='$(INSTALL_DATA)'
16156
16157 STATIC_FLAG="yes"
16158 else
16159 STATIC_FLAG="no"
16160 fi
16161
16162 MACRESCOMP="@#"
16163 MACSETFILE="@#"
16164 MACRESWXCONFIG="#"
16165 if test "$wxUSE_MAC" = 1; then
16166 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16167 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16168 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16169 # Extract the first word of "Rez", so it can be a program name with args.
16170 set dummy Rez; ac_word=$2
16171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16172 echo "configure:16173: checking for $ac_word" >&5
16173 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16174 echo $ac_n "(cached) $ac_c" 1>&6
16175 else
16176 if test -n "$RESCOMP"; then
16177 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16178 else
16179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16180 ac_dummy="$PATH"
16181 for ac_dir in $ac_dummy; do
16182 test -z "$ac_dir" && ac_dir=.
16183 if test -f $ac_dir/$ac_word; then
16184 ac_cv_prog_RESCOMP="Rez"
16185 break
16186 fi
16187 done
16188 IFS="$ac_save_ifs"
16189 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16190 fi
16191 fi
16192 RESCOMP="$ac_cv_prog_RESCOMP"
16193 if test -n "$RESCOMP"; then
16194 echo "$ac_t""$RESCOMP" 1>&6
16195 else
16196 echo "$ac_t""no" 1>&6
16197 fi
16198
16199 # Extract the first word of "DeRez", so it can be a program name with args.
16200 set dummy DeRez; ac_word=$2
16201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16202 echo "configure:16203: checking for $ac_word" >&5
16203 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16204 echo $ac_n "(cached) $ac_c" 1>&6
16205 else
16206 if test -n "$DEREZ"; then
16207 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16208 else
16209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16210 ac_dummy="$PATH"
16211 for ac_dir in $ac_dummy; do
16212 test -z "$ac_dir" && ac_dir=.
16213 if test -f $ac_dir/$ac_word; then
16214 ac_cv_prog_DEREZ="DeRez"
16215 break
16216 fi
16217 done
16218 IFS="$ac_save_ifs"
16219 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16220 fi
16221 fi
16222 DEREZ="$ac_cv_prog_DEREZ"
16223 if test -n "$DEREZ"; then
16224 echo "$ac_t""$DEREZ" 1>&6
16225 else
16226 echo "$ac_t""no" 1>&6
16227 fi
16228
16229 # Extract the first word of "SetFile", so it can be a program name with args.
16230 set dummy SetFile; ac_word=$2
16231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16232 echo "configure:16233: checking for $ac_word" >&5
16233 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16234 echo $ac_n "(cached) $ac_c" 1>&6
16235 else
16236 if test -n "$SETFILE"; then
16237 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16238 else
16239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16240 ac_dummy="$PATH"
16241 for ac_dir in $ac_dummy; do
16242 test -z "$ac_dir" && ac_dir=.
16243 if test -f $ac_dir/$ac_word; then
16244 ac_cv_prog_SETFILE="SetFile"
16245 break
16246 fi
16247 done
16248 IFS="$ac_save_ifs"
16249 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16250 fi
16251 fi
16252 SETFILE="$ac_cv_prog_SETFILE"
16253 if test -n "$SETFILE"; then
16254 echo "$ac_t""$SETFILE" 1>&6
16255 else
16256 echo "$ac_t""no" 1>&6
16257 fi
16258
16259 MACOSX_BUNDLE="bundle"
16260 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16261 MACSETFILE="\$(SETFILE)"
16262 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16263 else
16264 if test "$wxUSE_PM" = 1; then
16265 MACRESCOMP="emxbind -ep"
16266 fi
16267 fi
16268
16269
16270 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16271 echo "configure:16272: checking for ANSI C header files" >&5
16272 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16273 echo $ac_n "(cached) $ac_c" 1>&6
16274 else
16275 cat > conftest.$ac_ext <<EOF
16276 #line 16277 "configure"
16277 #include "confdefs.h"
16278 #include <stdlib.h>
16279 #include <stdarg.h>
16280 #include <string.h>
16281 #include <float.h>
16282 EOF
16283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16284 { (eval echo configure:16285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16286 if test -z "$ac_err"; then
16287 rm -rf conftest*
16288 ac_cv_header_stdc=yes
16289 else
16290 echo "$ac_err" >&5
16291 echo "configure: failed program was:" >&5
16292 cat conftest.$ac_ext >&5
16293 rm -rf conftest*
16294 ac_cv_header_stdc=no
16295 fi
16296 rm -f conftest*
16297
16298 if test $ac_cv_header_stdc = yes; then
16299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16300 cat > conftest.$ac_ext <<EOF
16301 #line 16302 "configure"
16302 #include "confdefs.h"
16303 #include <string.h>
16304 EOF
16305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16306 egrep "memchr" >/dev/null 2>&1; then
16307 :
16308 else
16309 rm -rf conftest*
16310 ac_cv_header_stdc=no
16311 fi
16312 rm -f conftest*
16313
16314 fi
16315
16316 if test $ac_cv_header_stdc = yes; then
16317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16318 cat > conftest.$ac_ext <<EOF
16319 #line 16320 "configure"
16320 #include "confdefs.h"
16321 #include <stdlib.h>
16322 EOF
16323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16324 egrep "free" >/dev/null 2>&1; then
16325 :
16326 else
16327 rm -rf conftest*
16328 ac_cv_header_stdc=no
16329 fi
16330 rm -f conftest*
16331
16332 fi
16333
16334 if test $ac_cv_header_stdc = yes; then
16335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16336 if test "$cross_compiling" = yes; then
16337 :
16338 else
16339 cat > conftest.$ac_ext <<EOF
16340 #line 16341 "configure"
16341 #include "confdefs.h"
16342 #include <ctype.h>
16343 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16344 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16345 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16346 int main () { int i; for (i = 0; i < 256; i++)
16347 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16348 exit (0); }
16349
16350 EOF
16351 if { (eval echo configure:16352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16352 then
16353 :
16354 else
16355 echo "configure: failed program was:" >&5
16356 cat conftest.$ac_ext >&5
16357 rm -fr conftest*
16358 ac_cv_header_stdc=no
16359 fi
16360 rm -fr conftest*
16361 fi
16362
16363 fi
16364 fi
16365
16366 echo "$ac_t""$ac_cv_header_stdc" 1>&6
16367 if test $ac_cv_header_stdc = yes; then
16368 cat >> confdefs.h <<\EOF
16369 #define STDC_HEADERS 1
16370 EOF
16371
16372 fi
16373
16374 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16375 echo "configure:16376: checking for mode_t" >&5
16376 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16377 echo $ac_n "(cached) $ac_c" 1>&6
16378 else
16379 cat > conftest.$ac_ext <<EOF
16380 #line 16381 "configure"
16381 #include "confdefs.h"
16382 #include <sys/types.h>
16383 #if STDC_HEADERS
16384 #include <stdlib.h>
16385 #include <stddef.h>
16386 #endif
16387 EOF
16388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16389 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16390 rm -rf conftest*
16391 ac_cv_type_mode_t=yes
16392 else
16393 rm -rf conftest*
16394 ac_cv_type_mode_t=no
16395 fi
16396 rm -f conftest*
16397
16398 fi
16399 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16400 if test $ac_cv_type_mode_t = no; then
16401 cat >> confdefs.h <<\EOF
16402 #define mode_t int
16403 EOF
16404
16405 fi
16406
16407 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16408 echo "configure:16409: checking for off_t" >&5
16409 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16410 echo $ac_n "(cached) $ac_c" 1>&6
16411 else
16412 cat > conftest.$ac_ext <<EOF
16413 #line 16414 "configure"
16414 #include "confdefs.h"
16415 #include <sys/types.h>
16416 #if STDC_HEADERS
16417 #include <stdlib.h>
16418 #include <stddef.h>
16419 #endif
16420 EOF
16421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16422 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16423 rm -rf conftest*
16424 ac_cv_type_off_t=yes
16425 else
16426 rm -rf conftest*
16427 ac_cv_type_off_t=no
16428 fi
16429 rm -f conftest*
16430
16431 fi
16432 echo "$ac_t""$ac_cv_type_off_t" 1>&6
16433 if test $ac_cv_type_off_t = no; then
16434 cat >> confdefs.h <<\EOF
16435 #define off_t long
16436 EOF
16437
16438 fi
16439
16440 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16441 echo "configure:16442: checking for pid_t" >&5
16442 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16443 echo $ac_n "(cached) $ac_c" 1>&6
16444 else
16445 cat > conftest.$ac_ext <<EOF
16446 #line 16447 "configure"
16447 #include "confdefs.h"
16448 #include <sys/types.h>
16449 #if STDC_HEADERS
16450 #include <stdlib.h>
16451 #include <stddef.h>
16452 #endif
16453 EOF
16454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16455 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16456 rm -rf conftest*
16457 ac_cv_type_pid_t=yes
16458 else
16459 rm -rf conftest*
16460 ac_cv_type_pid_t=no
16461 fi
16462 rm -f conftest*
16463
16464 fi
16465 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16466 if test $ac_cv_type_pid_t = no; then
16467 cat >> confdefs.h <<\EOF
16468 #define pid_t int
16469 EOF
16470
16471 fi
16472
16473 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16474 echo "configure:16475: checking for size_t" >&5
16475 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16476 echo $ac_n "(cached) $ac_c" 1>&6
16477 else
16478 cat > conftest.$ac_ext <<EOF
16479 #line 16480 "configure"
16480 #include "confdefs.h"
16481 #include <sys/types.h>
16482 #if STDC_HEADERS
16483 #include <stdlib.h>
16484 #include <stddef.h>
16485 #endif
16486 EOF
16487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16488 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16489 rm -rf conftest*
16490 ac_cv_type_size_t=yes
16491 else
16492 rm -rf conftest*
16493 ac_cv_type_size_t=no
16494 fi
16495 rm -f conftest*
16496
16497 fi
16498 echo "$ac_t""$ac_cv_type_size_t" 1>&6
16499 if test $ac_cv_type_size_t = no; then
16500 cat >> confdefs.h <<\EOF
16501 #define size_t unsigned
16502 EOF
16503
16504 fi
16505
16506 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16507 echo "configure:16508: checking for uid_t in sys/types.h" >&5
16508 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16509 echo $ac_n "(cached) $ac_c" 1>&6
16510 else
16511 cat > conftest.$ac_ext <<EOF
16512 #line 16513 "configure"
16513 #include "confdefs.h"
16514 #include <sys/types.h>
16515 EOF
16516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16517 egrep "uid_t" >/dev/null 2>&1; then
16518 rm -rf conftest*
16519 ac_cv_type_uid_t=yes
16520 else
16521 rm -rf conftest*
16522 ac_cv_type_uid_t=no
16523 fi
16524 rm -f conftest*
16525
16526 fi
16527
16528 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16529 if test $ac_cv_type_uid_t = no; then
16530 cat >> confdefs.h <<\EOF
16531 #define uid_t int
16532 EOF
16533
16534 cat >> confdefs.h <<\EOF
16535 #define gid_t int
16536 EOF
16537
16538 fi
16539
16540
16541
16542 ac_ext=C
16543 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16544 ac_cpp='$CXXCPP $CPPFLAGS'
16545 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16546 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16547 cross_compiling=$ac_cv_prog_cxx_cross
16548
16549 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16550 echo "configure:16551: checking if size_t is unsigned int" >&5
16551 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16552 echo $ac_n "(cached) $ac_c" 1>&6
16553 else
16554 cat > conftest.$ac_ext <<EOF
16555 #line 16556 "configure"
16556 #include "confdefs.h"
16557 #include <stddef.h>
16558 int main() {
16559
16560 return 0; }
16561
16562 struct Foo { void foo(size_t); void foo(unsigned int); };
16563
16564 int bar() {
16565
16566 ; return 0; }
16567 EOF
16568 if { (eval echo configure:16569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16569 rm -rf conftest*
16570 wx_cv_size_t_is_uint=no
16571 else
16572 echo "configure: failed program was:" >&5
16573 cat conftest.$ac_ext >&5
16574 rm -rf conftest*
16575 wx_cv_size_t_is_uint=yes
16576
16577 fi
16578 rm -f conftest*
16579
16580 fi
16581
16582 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16583
16584 if test "$wx_cv_size_t_is_uint" = "yes"; then
16585 cat >> confdefs.h <<\EOF
16586 #define wxSIZE_T_IS_UINT 1
16587 EOF
16588
16589 else
16590 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16591 echo "configure:16592: checking if size_t is unsigned long" >&5
16592 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16593 echo $ac_n "(cached) $ac_c" 1>&6
16594 else
16595 cat > conftest.$ac_ext <<EOF
16596 #line 16597 "configure"
16597 #include "confdefs.h"
16598 #include <stddef.h>
16599 int main() {
16600
16601 return 0; }
16602
16603 struct Foo { void foo(size_t); void foo(unsigned long); };
16604
16605 int bar() {
16606
16607 ; return 0; }
16608 EOF
16609 if { (eval echo configure:16610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16610 rm -rf conftest*
16611 wx_cv_size_t_is_ulong=no
16612 else
16613 echo "configure: failed program was:" >&5
16614 cat conftest.$ac_ext >&5
16615 rm -rf conftest*
16616 wx_cv_size_t_is_ulong=yes
16617
16618 fi
16619 rm -f conftest*
16620
16621 fi
16622
16623 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16624
16625 if test "$wx_cv_size_t_is_ulong" = "yes"; then
16626 cat >> confdefs.h <<\EOF
16627 #define wxSIZE_T_IS_ULONG 1
16628 EOF
16629
16630 fi
16631 fi
16632
16633 ac_ext=c
16634 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16635 ac_cpp='$CPP $CPPFLAGS'
16636 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16637 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16638 cross_compiling=$ac_cv_prog_cc_cross
16639
16640
16641
16642 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16643 echo "configure:16644: checking for pw_gecos in struct passwd" >&5
16644 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16645 echo $ac_n "(cached) $ac_c" 1>&6
16646 else
16647
16648 cat > conftest.$ac_ext <<EOF
16649 #line 16650 "configure"
16650 #include "confdefs.h"
16651 #include <pwd.h>
16652 int main() {
16653
16654 char *p;
16655 struct passwd *pw;
16656 p = pw->pw_gecos;
16657
16658 ; return 0; }
16659 EOF
16660 if { (eval echo configure:16661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16661 rm -rf conftest*
16662
16663 wx_cv_struct_pw_gecos=yes
16664
16665 else
16666 echo "configure: failed program was:" >&5
16667 cat conftest.$ac_ext >&5
16668 rm -rf conftest*
16669
16670 wx_cv_struct_pw_gecos=no
16671
16672
16673 fi
16674 rm -f conftest*
16675
16676
16677 fi
16678
16679 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16680
16681 if test "$wx_cv_struct_pw_gecos" = "yes"; then
16682 cat >> confdefs.h <<\EOF
16683 #define HAVE_PW_GECOS 1
16684 EOF
16685
16686 fi
16687
16688
16689 if test "$wx_cv_sizeof_wchar_t" != "0"; then
16690 cat >> confdefs.h <<\EOF
16691 #define wxUSE_WCHAR_T 1
16692 EOF
16693
16694
16695 WCSLEN_FOUND=0
16696 WCHAR_LINK=
16697 for ac_func in wcslen
16698 do
16699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16700 echo "configure:16701: checking for $ac_func" >&5
16701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16702 echo $ac_n "(cached) $ac_c" 1>&6
16703 else
16704 cat > conftest.$ac_ext <<EOF
16705 #line 16706 "configure"
16706 #include "confdefs.h"
16707 /* System header to define __stub macros and hopefully few prototypes,
16708 which can conflict with char $ac_func(); below. */
16709 #include <assert.h>
16710 /* Override any gcc2 internal prototype to avoid an error. */
16711 /* We use char because int might match the return type of a gcc2
16712 builtin and then its argument prototype would still apply. */
16713 char $ac_func();
16714
16715 int main() {
16716
16717 /* The GNU C library defines this for functions which it implements
16718 to always fail with ENOSYS. Some functions are actually named
16719 something starting with __ and the normal name is an alias. */
16720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16721 choke me
16722 #else
16723 $ac_func();
16724 #endif
16725
16726 ; return 0; }
16727 EOF
16728 if { (eval echo configure:16729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16729 rm -rf conftest*
16730 eval "ac_cv_func_$ac_func=yes"
16731 else
16732 echo "configure: failed program was:" >&5
16733 cat conftest.$ac_ext >&5
16734 rm -rf conftest*
16735 eval "ac_cv_func_$ac_func=no"
16736 fi
16737 rm -f conftest*
16738 fi
16739
16740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16741 echo "$ac_t""yes" 1>&6
16742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16743 cat >> confdefs.h <<EOF
16744 #define $ac_tr_func 1
16745 EOF
16746 WCSLEN_FOUND=1
16747 else
16748 echo "$ac_t""no" 1>&6
16749 fi
16750 done
16751
16752
16753 if test "$WCSLEN_FOUND" = 0; then
16754 if test "$TOOLKIT" = "MSW"; then
16755 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16756 echo "configure:16757: checking for wcslen in -lmsvcrt" >&5
16757 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16759 echo $ac_n "(cached) $ac_c" 1>&6
16760 else
16761 ac_save_LIBS="$LIBS"
16762 LIBS="-lmsvcrt $LIBS"
16763 cat > conftest.$ac_ext <<EOF
16764 #line 16765 "configure"
16765 #include "confdefs.h"
16766 /* Override any gcc2 internal prototype to avoid an error. */
16767 /* We use char because int might match the return type of a gcc2
16768 builtin and then its argument prototype would still apply. */
16769 char wcslen();
16770
16771 int main() {
16772 wcslen()
16773 ; return 0; }
16774 EOF
16775 if { (eval echo configure:16776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16776 rm -rf conftest*
16777 eval "ac_cv_lib_$ac_lib_var=yes"
16778 else
16779 echo "configure: failed program was:" >&5
16780 cat conftest.$ac_ext >&5
16781 rm -rf conftest*
16782 eval "ac_cv_lib_$ac_lib_var=no"
16783 fi
16784 rm -f conftest*
16785 LIBS="$ac_save_LIBS"
16786
16787 fi
16788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16789 echo "$ac_t""yes" 1>&6
16790 WCHAR_OK=1
16791 else
16792 echo "$ac_t""no" 1>&6
16793 fi
16794
16795 else
16796 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
16797 echo "configure:16798: checking for wcslen in -lw" >&5
16798 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16800 echo $ac_n "(cached) $ac_c" 1>&6
16801 else
16802 ac_save_LIBS="$LIBS"
16803 LIBS="-lw $LIBS"
16804 cat > conftest.$ac_ext <<EOF
16805 #line 16806 "configure"
16806 #include "confdefs.h"
16807 /* Override any gcc2 internal prototype to avoid an error. */
16808 /* We use char because int might match the return type of a gcc2
16809 builtin and then its argument prototype would still apply. */
16810 char wcslen();
16811
16812 int main() {
16813 wcslen()
16814 ; return 0; }
16815 EOF
16816 if { (eval echo configure:16817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16817 rm -rf conftest*
16818 eval "ac_cv_lib_$ac_lib_var=yes"
16819 else
16820 echo "configure: failed program was:" >&5
16821 cat conftest.$ac_ext >&5
16822 rm -rf conftest*
16823 eval "ac_cv_lib_$ac_lib_var=no"
16824 fi
16825 rm -f conftest*
16826 LIBS="$ac_save_LIBS"
16827
16828 fi
16829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16830 echo "$ac_t""yes" 1>&6
16831
16832 WCHAR_LINK=" -lw"
16833 WCSLEN_FOUND=1
16834
16835 else
16836 echo "$ac_t""no" 1>&6
16837 fi
16838
16839 fi
16840 fi
16841
16842 if test "$WCSLEN_FOUND" = 1; then
16843 cat >> confdefs.h <<\EOF
16844 #define HAVE_WCSLEN 1
16845 EOF
16846
16847 fi
16848
16849 for ac_func in wcsrtombs
16850 do
16851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16852 echo "configure:16853: checking for $ac_func" >&5
16853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16854 echo $ac_n "(cached) $ac_c" 1>&6
16855 else
16856 cat > conftest.$ac_ext <<EOF
16857 #line 16858 "configure"
16858 #include "confdefs.h"
16859 /* System header to define __stub macros and hopefully few prototypes,
16860 which can conflict with char $ac_func(); below. */
16861 #include <assert.h>
16862 /* Override any gcc2 internal prototype to avoid an error. */
16863 /* We use char because int might match the return type of a gcc2
16864 builtin and then its argument prototype would still apply. */
16865 char $ac_func();
16866
16867 int main() {
16868
16869 /* The GNU C library defines this for functions which it implements
16870 to always fail with ENOSYS. Some functions are actually named
16871 something starting with __ and the normal name is an alias. */
16872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16873 choke me
16874 #else
16875 $ac_func();
16876 #endif
16877
16878 ; return 0; }
16879 EOF
16880 if { (eval echo configure:16881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16881 rm -rf conftest*
16882 eval "ac_cv_func_$ac_func=yes"
16883 else
16884 echo "configure: failed program was:" >&5
16885 cat conftest.$ac_ext >&5
16886 rm -rf conftest*
16887 eval "ac_cv_func_$ac_func=no"
16888 fi
16889 rm -f conftest*
16890 fi
16891
16892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16893 echo "$ac_t""yes" 1>&6
16894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16895 cat >> confdefs.h <<EOF
16896 #define $ac_tr_func 1
16897 EOF
16898
16899 else
16900 echo "$ac_t""no" 1>&6
16901 fi
16902 done
16903
16904 else
16905 echo "configure: warning: Wide character support is unavailable" 1>&2
16906 fi
16907
16908
16909 ac_ext=C
16910 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16911 ac_cpp='$CXXCPP $CPPFLAGS'
16912 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16913 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16914 cross_compiling=$ac_cv_prog_cxx_cross
16915
16916
16917 for ac_func in vsnprintf
16918 do
16919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16920 echo "configure:16921: checking for $ac_func" >&5
16921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16922 echo $ac_n "(cached) $ac_c" 1>&6
16923 else
16924 cat > conftest.$ac_ext <<EOF
16925 #line 16926 "configure"
16926 #include "confdefs.h"
16927 /* System header to define __stub macros and hopefully few prototypes,
16928 which can conflict with char $ac_func(); below. */
16929 #include <assert.h>
16930 /* Override any gcc2 internal prototype to avoid an error. */
16931 #ifdef __cplusplus
16932 extern "C"
16933 #endif
16934 /* We use char because int might match the return type of a gcc2
16935 builtin and then its argument prototype would still apply. */
16936 char $ac_func();
16937
16938 int main() {
16939
16940 /* The GNU C library defines this for functions which it implements
16941 to always fail with ENOSYS. Some functions are actually named
16942 something starting with __ and the normal name is an alias. */
16943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16944 choke me
16945 #else
16946 $ac_func();
16947 #endif
16948
16949 ; return 0; }
16950 EOF
16951 if { (eval echo configure:16952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16952 rm -rf conftest*
16953 eval "ac_cv_func_$ac_func=yes"
16954 else
16955 echo "configure: failed program was:" >&5
16956 cat conftest.$ac_ext >&5
16957 rm -rf conftest*
16958 eval "ac_cv_func_$ac_func=no"
16959 fi
16960 rm -f conftest*
16961 fi
16962
16963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16964 echo "$ac_t""yes" 1>&6
16965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16966 cat >> confdefs.h <<EOF
16967 #define $ac_tr_func 1
16968 EOF
16969
16970 else
16971 echo "$ac_t""no" 1>&6
16972 fi
16973 done
16974
16975
16976 if test "$ac_cv_func_vsnprintf" = "yes"; then
16977 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
16978 echo "configure:16979: checking for vsnprintf declaration" >&5
16979 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
16980 echo $ac_n "(cached) $ac_c" 1>&6
16981 else
16982
16983 cat > conftest.$ac_ext <<EOF
16984 #line 16985 "configure"
16985 #include "confdefs.h"
16986
16987 #include <stdio.h>
16988 #include <stdarg.h>
16989
16990 int main() {
16991
16992 char *buf;
16993 va_list ap;
16994 vsnprintf(buf, 10u, "%s", ap);
16995
16996 ; return 0; }
16997 EOF
16998 if { (eval echo configure:16999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16999 rm -rf conftest*
17000 wx_cv_func_vsnprintf_decl=yes
17001 else
17002 echo "configure: failed program was:" >&5
17003 cat conftest.$ac_ext >&5
17004 rm -rf conftest*
17005 wx_cv_func_vsnprintf_decl=no
17006
17007 fi
17008 rm -f conftest*
17009
17010
17011 fi
17012
17013 echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17014
17015 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17016 cat >> confdefs.h <<\EOF
17017 #define HAVE_VSNPRINTF_DECL 1
17018 EOF
17019
17020 fi
17021 fi
17022
17023 if test "$wxUSE_UNICODE" = yes; then
17024 for ac_func in fputwc wprintf vswprintf
17025 do
17026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17027 echo "configure:17028: checking for $ac_func" >&5
17028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17029 echo $ac_n "(cached) $ac_c" 1>&6
17030 else
17031 cat > conftest.$ac_ext <<EOF
17032 #line 17033 "configure"
17033 #include "confdefs.h"
17034 /* System header to define __stub macros and hopefully few prototypes,
17035 which can conflict with char $ac_func(); below. */
17036 #include <assert.h>
17037 /* Override any gcc2 internal prototype to avoid an error. */
17038 #ifdef __cplusplus
17039 extern "C"
17040 #endif
17041 /* We use char because int might match the return type of a gcc2
17042 builtin and then its argument prototype would still apply. */
17043 char $ac_func();
17044
17045 int main() {
17046
17047 /* The GNU C library defines this for functions which it implements
17048 to always fail with ENOSYS. Some functions are actually named
17049 something starting with __ and the normal name is an alias. */
17050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17051 choke me
17052 #else
17053 $ac_func();
17054 #endif
17055
17056 ; return 0; }
17057 EOF
17058 if { (eval echo configure:17059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17059 rm -rf conftest*
17060 eval "ac_cv_func_$ac_func=yes"
17061 else
17062 echo "configure: failed program was:" >&5
17063 cat conftest.$ac_ext >&5
17064 rm -rf conftest*
17065 eval "ac_cv_func_$ac_func=no"
17066 fi
17067 rm -f conftest*
17068 fi
17069
17070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17071 echo "$ac_t""yes" 1>&6
17072 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17073 cat >> confdefs.h <<EOF
17074 #define $ac_tr_func 1
17075 EOF
17076
17077 else
17078 echo "$ac_t""no" 1>&6
17079 fi
17080 done
17081
17082
17083 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17084 echo "configure:17085: checking for _vsnwprintf" >&5
17085 cat > conftest.$ac_ext <<EOF
17086 #line 17087 "configure"
17087 #include "confdefs.h"
17088 #include <wchar.h>
17089 int main() {
17090 &_vsnwprintf;
17091 ; return 0; }
17092 EOF
17093 if { (eval echo configure:17094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17094 rm -rf conftest*
17095 echo "$ac_t""yes" 1>&6
17096 cat >> confdefs.h <<\EOF
17097 #define HAVE__VSNWPRINTF 1
17098 EOF
17099
17100 else
17101 echo "configure: failed program was:" >&5
17102 cat conftest.$ac_ext >&5
17103 rm -rf conftest*
17104 echo "$ac_t""no" 1>&6
17105 fi
17106 rm -f conftest*;
17107 fi
17108
17109 ac_ext=c
17110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17111 ac_cpp='$CPP $CPPFLAGS'
17112 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17113 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17114 cross_compiling=$ac_cv_prog_cc_cross
17115
17116
17117
17118
17119 if test "$TOOLKIT" != "MSW"; then
17120
17121
17122
17123 ac_ext=C
17124 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17125 ac_cpp='$CXXCPP $CPPFLAGS'
17126 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17127 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17128 cross_compiling=$ac_cv_prog_cxx_cross
17129
17130
17131
17132 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17133 if test "${with_libiconv_prefix+set}" = set; then
17134 withval="$with_libiconv_prefix"
17135
17136 for dir in `echo "$withval" | tr : ' '`; do
17137 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17138 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17139 done
17140
17141 fi
17142
17143
17144 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17145 echo "configure:17146: checking for iconv" >&5
17146 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17147 echo $ac_n "(cached) $ac_c" 1>&6
17148 else
17149
17150 am_cv_func_iconv="no, consider installing GNU libiconv"
17151 am_cv_lib_iconv=no
17152 cat > conftest.$ac_ext <<EOF
17153 #line 17154 "configure"
17154 #include "confdefs.h"
17155 #include <stdlib.h>
17156 #include <iconv.h>
17157 int main() {
17158 iconv_t cd = iconv_open("","");
17159 iconv(cd,NULL,NULL,NULL,NULL);
17160 iconv_close(cd);
17161 ; return 0; }
17162 EOF
17163 if { (eval echo configure:17164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17164 rm -rf conftest*
17165 am_cv_func_iconv=yes
17166 else
17167 echo "configure: failed program was:" >&5
17168 cat conftest.$ac_ext >&5
17169 fi
17170 rm -f conftest*
17171 if test "$am_cv_func_iconv" != yes; then
17172 am_save_LIBS="$LIBS"
17173 LIBS="$LIBS -liconv"
17174 cat > conftest.$ac_ext <<EOF
17175 #line 17176 "configure"
17176 #include "confdefs.h"
17177 #include <stdlib.h>
17178 #include <iconv.h>
17179 int main() {
17180 iconv_t cd = iconv_open("","");
17181 iconv(cd,NULL,NULL,NULL,NULL);
17182 iconv_close(cd);
17183 ; return 0; }
17184 EOF
17185 if { (eval echo configure:17186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17186 rm -rf conftest*
17187 am_cv_lib_iconv=yes
17188 am_cv_func_iconv=yes
17189 else
17190 echo "configure: failed program was:" >&5
17191 cat conftest.$ac_ext >&5
17192 fi
17193 rm -f conftest*
17194 LIBS="$am_save_LIBS"
17195 fi
17196
17197 fi
17198
17199 echo "$ac_t""$am_cv_func_iconv" 1>&6
17200 if test "$am_cv_func_iconv" = yes; then
17201 cat >> confdefs.h <<\EOF
17202 #define HAVE_ICONV 1
17203 EOF
17204
17205 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17206 echo "configure:17207: checking if iconv needs const" >&5
17207 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17208 echo $ac_n "(cached) $ac_c" 1>&6
17209 else
17210 cat > conftest.$ac_ext <<EOF
17211 #line 17212 "configure"
17212 #include "confdefs.h"
17213
17214 #include <stdlib.h>
17215 #include <iconv.h>
17216 extern
17217 #ifdef __cplusplus
17218 "C"
17219 #endif
17220 #if defined(__STDC__) || defined(__cplusplus)
17221 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17222 #else
17223 size_t iconv();
17224 #endif
17225
17226 int main() {
17227
17228 ; return 0; }
17229 EOF
17230 if { (eval echo configure:17231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17231 rm -rf conftest*
17232 wx_cv_func_iconv_const="no"
17233 else
17234 echo "configure: failed program was:" >&5
17235 cat conftest.$ac_ext >&5
17236 rm -rf conftest*
17237 wx_cv_func_iconv_const="yes"
17238
17239 fi
17240 rm -f conftest*
17241
17242 fi
17243
17244 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17245
17246 iconv_const=
17247 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17248 iconv_const="const"
17249 fi
17250
17251 cat >> confdefs.h <<EOF
17252 #define ICONV_CONST $iconv_const
17253 EOF
17254
17255 fi
17256 LIBICONV=
17257 if test "$am_cv_lib_iconv" = yes; then
17258 LIBICONV="-liconv"
17259 fi
17260
17261
17262 LIBS="$LIBICONV $LIBS"
17263 ac_ext=c
17264 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17265 ac_cpp='$CPP $CPPFLAGS'
17266 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17267 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17268 cross_compiling=$ac_cv_prog_cc_cross
17269
17270
17271 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17272 for ac_func in sigaction
17273 do
17274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17275 echo "configure:17276: checking for $ac_func" >&5
17276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17277 echo $ac_n "(cached) $ac_c" 1>&6
17278 else
17279 cat > conftest.$ac_ext <<EOF
17280 #line 17281 "configure"
17281 #include "confdefs.h"
17282 /* System header to define __stub macros and hopefully few prototypes,
17283 which can conflict with char $ac_func(); below. */
17284 #include <assert.h>
17285 /* Override any gcc2 internal prototype to avoid an error. */
17286 /* We use char because int might match the return type of a gcc2
17287 builtin and then its argument prototype would still apply. */
17288 char $ac_func();
17289
17290 int main() {
17291
17292 /* The GNU C library defines this for functions which it implements
17293 to always fail with ENOSYS. Some functions are actually named
17294 something starting with __ and the normal name is an alias. */
17295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17296 choke me
17297 #else
17298 $ac_func();
17299 #endif
17300
17301 ; return 0; }
17302 EOF
17303 if { (eval echo configure:17304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17304 rm -rf conftest*
17305 eval "ac_cv_func_$ac_func=yes"
17306 else
17307 echo "configure: failed program was:" >&5
17308 cat conftest.$ac_ext >&5
17309 rm -rf conftest*
17310 eval "ac_cv_func_$ac_func=no"
17311 fi
17312 rm -f conftest*
17313 fi
17314
17315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17316 echo "$ac_t""yes" 1>&6
17317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17318 cat >> confdefs.h <<EOF
17319 #define $ac_tr_func 1
17320 EOF
17321
17322 else
17323 echo "$ac_t""no" 1>&6
17324 fi
17325 done
17326
17327
17328 if test "$ac_cv_func_sigaction" = "no"; then
17329 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17330 wxUSE_ON_FATAL_EXCEPTION=no
17331 fi
17332
17333 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17334
17335 ac_ext=C
17336 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17337 ac_cpp='$CXXCPP $CPPFLAGS'
17338 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17339 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17340 cross_compiling=$ac_cv_prog_cxx_cross
17341
17342
17343 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17344 echo "configure:17345: checking for sa_handler type" >&5
17345 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17346 echo $ac_n "(cached) $ac_c" 1>&6
17347 else
17348
17349 cat > conftest.$ac_ext <<EOF
17350 #line 17351 "configure"
17351 #include "confdefs.h"
17352 #include <signal.h>
17353 int main() {
17354
17355 extern void testSigHandler(int);
17356
17357 struct sigaction sa;
17358 sa.sa_handler = testSigHandler;
17359
17360 ; return 0; }
17361 EOF
17362 if { (eval echo configure:17363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17363 rm -rf conftest*
17364
17365 wx_cv_type_sa_handler=int
17366
17367 else
17368 echo "configure: failed program was:" >&5
17369 cat conftest.$ac_ext >&5
17370 rm -rf conftest*
17371
17372 wx_cv_type_sa_handler=void
17373
17374 fi
17375 rm -f conftest*
17376
17377 fi
17378
17379 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17380
17381 ac_ext=c
17382 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17383 ac_cpp='$CPP $CPPFLAGS'
17384 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17385 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17386 cross_compiling=$ac_cv_prog_cc_cross
17387
17388
17389 cat >> confdefs.h <<EOF
17390 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17391 EOF
17392
17393 fi
17394 fi
17395
17396 for ac_func in mkstemp mktemp
17397 do
17398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17399 echo "configure:17400: checking for $ac_func" >&5
17400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17401 echo $ac_n "(cached) $ac_c" 1>&6
17402 else
17403 cat > conftest.$ac_ext <<EOF
17404 #line 17405 "configure"
17405 #include "confdefs.h"
17406 /* System header to define __stub macros and hopefully few prototypes,
17407 which can conflict with char $ac_func(); below. */
17408 #include <assert.h>
17409 /* Override any gcc2 internal prototype to avoid an error. */
17410 /* We use char because int might match the return type of a gcc2
17411 builtin and then its argument prototype would still apply. */
17412 char $ac_func();
17413
17414 int main() {
17415
17416 /* The GNU C library defines this for functions which it implements
17417 to always fail with ENOSYS. Some functions are actually named
17418 something starting with __ and the normal name is an alias. */
17419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17420 choke me
17421 #else
17422 $ac_func();
17423 #endif
17424
17425 ; return 0; }
17426 EOF
17427 if { (eval echo configure:17428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17428 rm -rf conftest*
17429 eval "ac_cv_func_$ac_func=yes"
17430 else
17431 echo "configure: failed program was:" >&5
17432 cat conftest.$ac_ext >&5
17433 rm -rf conftest*
17434 eval "ac_cv_func_$ac_func=no"
17435 fi
17436 rm -f conftest*
17437 fi
17438
17439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17440 echo "$ac_t""yes" 1>&6
17441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17442 cat >> confdefs.h <<EOF
17443 #define $ac_tr_func 1
17444 EOF
17445 break
17446 else
17447 echo "$ac_t""no" 1>&6
17448 fi
17449 done
17450
17451
17452 echo $ac_n "checking for statfs""... $ac_c" 1>&6
17453 echo "configure:17454: checking for statfs" >&5
17454 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17455 echo $ac_n "(cached) $ac_c" 1>&6
17456 else
17457 cat > conftest.$ac_ext <<EOF
17458 #line 17459 "configure"
17459 #include "confdefs.h"
17460
17461 #if defined(__BSD__)
17462 #include <sys/param.h>
17463 #include <sys/mount.h>
17464 #else
17465 #include <sys/vfs.h>
17466 #endif
17467
17468 int main() {
17469
17470 long l;
17471 struct statfs fs;
17472 statfs("/", &fs);
17473 l = fs.f_bsize;
17474 l += fs.f_blocks;
17475 l += fs.f_bavail;
17476
17477 ; return 0; }
17478 EOF
17479 if { (eval echo configure:17480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17480 rm -rf conftest*
17481
17482 wx_cv_func_statfs=yes
17483
17484 else
17485 echo "configure: failed program was:" >&5
17486 cat conftest.$ac_ext >&5
17487 rm -rf conftest*
17488
17489 wx_cv_func_statfs=no
17490
17491
17492 fi
17493 rm -f conftest*
17494
17495 fi
17496
17497 echo "$ac_t""$wx_cv_func_statfs" 1>&6
17498
17499 if test "$wx_cv_func_statfs" = "yes"; then
17500 wx_cv_type_statvfs_t="struct statfs"
17501 cat >> confdefs.h <<\EOF
17502 #define HAVE_STATFS 1
17503 EOF
17504
17505 else
17506 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17507 echo "configure:17508: checking for statvfs" >&5
17508 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17509 echo $ac_n "(cached) $ac_c" 1>&6
17510 else
17511 cat > conftest.$ac_ext <<EOF
17512 #line 17513 "configure"
17513 #include "confdefs.h"
17514
17515 #include <stddef.h>
17516 #include <sys/statvfs.h>
17517
17518 int main() {
17519
17520 statvfs("/", NULL);
17521
17522 ; return 0; }
17523 EOF
17524 if { (eval echo configure:17525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17525 rm -rf conftest*
17526 wx_cv_func_statvfs=yes
17527 else
17528 echo "configure: failed program was:" >&5
17529 cat conftest.$ac_ext >&5
17530 rm -rf conftest*
17531 wx_cv_func_statvfs=no
17532
17533 fi
17534 rm -f conftest*
17535
17536 fi
17537
17538 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17539
17540 if test "$wx_cv_func_statvfs" = "yes"; then
17541
17542 ac_ext=C
17543 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17544 ac_cpp='$CXXCPP $CPPFLAGS'
17545 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17546 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17547 cross_compiling=$ac_cv_prog_cxx_cross
17548
17549
17550 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17551 echo "configure:17552: checking for statvfs argument type" >&5
17552 if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17553 echo $ac_n "(cached) $ac_c" 1>&6
17554 else
17555 cat > conftest.$ac_ext <<EOF
17556 #line 17557 "configure"
17557 #include "confdefs.h"
17558
17559 #include <sys/statvfs.h>
17560
17561 int main() {
17562
17563 long l;
17564 statvfs_t fs;
17565 statvfs("/", &fs);
17566 l = fs.f_bsize;
17567 l += fs.f_blocks;
17568 l += fs.f_bavail;
17569
17570 ; return 0; }
17571 EOF
17572 if { (eval echo configure:17573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17573 rm -rf conftest*
17574 wx_cv_type_statvfs_t=statvfs_t
17575 else
17576 echo "configure: failed program was:" >&5
17577 cat conftest.$ac_ext >&5
17578 rm -rf conftest*
17579
17580 cat > conftest.$ac_ext <<EOF
17581 #line 17582 "configure"
17582 #include "confdefs.h"
17583
17584 #include <sys/statvfs.h>
17585
17586 int main() {
17587
17588 long l;
17589 struct statvfs fs;
17590 statvfs("/", &fs);
17591 l = fs.f_bsize;
17592 l += fs.f_blocks;
17593 l += fs.f_bavail;
17594
17595 ; return 0; }
17596 EOF
17597 if { (eval echo configure:17598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17598 rm -rf conftest*
17599 wx_cv_type_statvfs_t="struct statvfs"
17600 else
17601 echo "configure: failed program was:" >&5
17602 cat conftest.$ac_ext >&5
17603 rm -rf conftest*
17604 wx_cv_type_statvfs_t="unknown"
17605
17606 fi
17607 rm -f conftest*
17608
17609
17610 fi
17611 rm -f conftest*
17612
17613 fi
17614
17615 echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17616
17617 ac_ext=c
17618 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17619 ac_cpp='$CPP $CPPFLAGS'
17620 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17621 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17622 cross_compiling=$ac_cv_prog_cc_cross
17623
17624
17625 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17626 cat >> confdefs.h <<\EOF
17627 #define HAVE_STATVFS 1
17628 EOF
17629
17630 fi
17631 else
17632 wx_cv_type_statvfs_t="unknown"
17633 fi
17634 fi
17635
17636 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17637 cat >> confdefs.h <<EOF
17638 #define WX_STATFS_T $wx_cv_type_statvfs_t
17639 EOF
17640
17641 else
17642 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17643 fi
17644
17645 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17646 for ac_func in fcntl flock
17647 do
17648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17649 echo "configure:17650: checking for $ac_func" >&5
17650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17651 echo $ac_n "(cached) $ac_c" 1>&6
17652 else
17653 cat > conftest.$ac_ext <<EOF
17654 #line 17655 "configure"
17655 #include "confdefs.h"
17656 /* System header to define __stub macros and hopefully few prototypes,
17657 which can conflict with char $ac_func(); below. */
17658 #include <assert.h>
17659 /* Override any gcc2 internal prototype to avoid an error. */
17660 /* We use char because int might match the return type of a gcc2
17661 builtin and then its argument prototype would still apply. */
17662 char $ac_func();
17663
17664 int main() {
17665
17666 /* The GNU C library defines this for functions which it implements
17667 to always fail with ENOSYS. Some functions are actually named
17668 something starting with __ and the normal name is an alias. */
17669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17670 choke me
17671 #else
17672 $ac_func();
17673 #endif
17674
17675 ; return 0; }
17676 EOF
17677 if { (eval echo configure:17678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17678 rm -rf conftest*
17679 eval "ac_cv_func_$ac_func=yes"
17680 else
17681 echo "configure: failed program was:" >&5
17682 cat conftest.$ac_ext >&5
17683 rm -rf conftest*
17684 eval "ac_cv_func_$ac_func=no"
17685 fi
17686 rm -f conftest*
17687 fi
17688
17689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17690 echo "$ac_t""yes" 1>&6
17691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17692 cat >> confdefs.h <<EOF
17693 #define $ac_tr_func 1
17694 EOF
17695 break
17696 else
17697 echo "$ac_t""no" 1>&6
17698 fi
17699 done
17700
17701
17702 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17703 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17704 wxUSE_SNGLINST_CHECKER=no
17705 fi
17706 fi
17707
17708 for ac_func in timegm
17709 do
17710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17711 echo "configure:17712: checking for $ac_func" >&5
17712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17713 echo $ac_n "(cached) $ac_c" 1>&6
17714 else
17715 cat > conftest.$ac_ext <<EOF
17716 #line 17717 "configure"
17717 #include "confdefs.h"
17718 /* System header to define __stub macros and hopefully few prototypes,
17719 which can conflict with char $ac_func(); below. */
17720 #include <assert.h>
17721 /* Override any gcc2 internal prototype to avoid an error. */
17722 /* We use char because int might match the return type of a gcc2
17723 builtin and then its argument prototype would still apply. */
17724 char $ac_func();
17725
17726 int main() {
17727
17728 /* The GNU C library defines this for functions which it implements
17729 to always fail with ENOSYS. Some functions are actually named
17730 something starting with __ and the normal name is an alias. */
17731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17732 choke me
17733 #else
17734 $ac_func();
17735 #endif
17736
17737 ; return 0; }
17738 EOF
17739 if { (eval echo configure:17740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17740 rm -rf conftest*
17741 eval "ac_cv_func_$ac_func=yes"
17742 else
17743 echo "configure: failed program was:" >&5
17744 cat conftest.$ac_ext >&5
17745 rm -rf conftest*
17746 eval "ac_cv_func_$ac_func=no"
17747 fi
17748 rm -f conftest*
17749 fi
17750
17751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17752 echo "$ac_t""yes" 1>&6
17753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17754 cat >> confdefs.h <<EOF
17755 #define $ac_tr_func 1
17756 EOF
17757
17758 else
17759 echo "$ac_t""no" 1>&6
17760 fi
17761 done
17762
17763
17764 for ac_func in putenv setenv
17765 do
17766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17767 echo "configure:17768: checking for $ac_func" >&5
17768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17769 echo $ac_n "(cached) $ac_c" 1>&6
17770 else
17771 cat > conftest.$ac_ext <<EOF
17772 #line 17773 "configure"
17773 #include "confdefs.h"
17774 /* System header to define __stub macros and hopefully few prototypes,
17775 which can conflict with char $ac_func(); below. */
17776 #include <assert.h>
17777 /* Override any gcc2 internal prototype to avoid an error. */
17778 /* We use char because int might match the return type of a gcc2
17779 builtin and then its argument prototype would still apply. */
17780 char $ac_func();
17781
17782 int main() {
17783
17784 /* The GNU C library defines this for functions which it implements
17785 to always fail with ENOSYS. Some functions are actually named
17786 something starting with __ and the normal name is an alias. */
17787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17788 choke me
17789 #else
17790 $ac_func();
17791 #endif
17792
17793 ; return 0; }
17794 EOF
17795 if { (eval echo configure:17796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17796 rm -rf conftest*
17797 eval "ac_cv_func_$ac_func=yes"
17798 else
17799 echo "configure: failed program was:" >&5
17800 cat conftest.$ac_ext >&5
17801 rm -rf conftest*
17802 eval "ac_cv_func_$ac_func=no"
17803 fi
17804 rm -f conftest*
17805 fi
17806
17807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17808 echo "$ac_t""yes" 1>&6
17809 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17810 cat >> confdefs.h <<EOF
17811 #define $ac_tr_func 1
17812 EOF
17813 break
17814 else
17815 echo "$ac_t""no" 1>&6
17816 fi
17817 done
17818
17819
17820 HAVE_SOME_SLEEP_FUNC=0
17821 if test "$USE_BEOS" = 1; then
17822 cat >> confdefs.h <<\EOF
17823 #define HAVE_SLEEP 1
17824 EOF
17825
17826 HAVE_SOME_SLEEP_FUNC=1
17827 fi
17828
17829 if test "$USE_DARWIN" = 1; then
17830 cat >> confdefs.h <<\EOF
17831 #define HAVE_USLEEP 1
17832 EOF
17833
17834 HAVE_SOME_SLEEP_FUNC=1
17835 fi
17836
17837 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17838 POSIX4_LINK=
17839 for ac_func in nanosleep
17840 do
17841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17842 echo "configure:17843: checking for $ac_func" >&5
17843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17844 echo $ac_n "(cached) $ac_c" 1>&6
17845 else
17846 cat > conftest.$ac_ext <<EOF
17847 #line 17848 "configure"
17848 #include "confdefs.h"
17849 /* System header to define __stub macros and hopefully few prototypes,
17850 which can conflict with char $ac_func(); below. */
17851 #include <assert.h>
17852 /* Override any gcc2 internal prototype to avoid an error. */
17853 /* We use char because int might match the return type of a gcc2
17854 builtin and then its argument prototype would still apply. */
17855 char $ac_func();
17856
17857 int main() {
17858
17859 /* The GNU C library defines this for functions which it implements
17860 to always fail with ENOSYS. Some functions are actually named
17861 something starting with __ and the normal name is an alias. */
17862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17863 choke me
17864 #else
17865 $ac_func();
17866 #endif
17867
17868 ; return 0; }
17869 EOF
17870 if { (eval echo configure:17871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17871 rm -rf conftest*
17872 eval "ac_cv_func_$ac_func=yes"
17873 else
17874 echo "configure: failed program was:" >&5
17875 cat conftest.$ac_ext >&5
17876 rm -rf conftest*
17877 eval "ac_cv_func_$ac_func=no"
17878 fi
17879 rm -f conftest*
17880 fi
17881
17882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17883 echo "$ac_t""yes" 1>&6
17884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17885 cat >> confdefs.h <<EOF
17886 #define $ac_tr_func 1
17887 EOF
17888 cat >> confdefs.h <<\EOF
17889 #define HAVE_NANOSLEEP 1
17890 EOF
17891
17892 else
17893 echo "$ac_t""no" 1>&6
17894 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
17895 echo "configure:17896: checking for nanosleep in -lposix4" >&5
17896 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17898 echo $ac_n "(cached) $ac_c" 1>&6
17899 else
17900 ac_save_LIBS="$LIBS"
17901 LIBS="-lposix4 $LIBS"
17902 cat > conftest.$ac_ext <<EOF
17903 #line 17904 "configure"
17904 #include "confdefs.h"
17905 /* Override any gcc2 internal prototype to avoid an error. */
17906 /* We use char because int might match the return type of a gcc2
17907 builtin and then its argument prototype would still apply. */
17908 char nanosleep();
17909
17910 int main() {
17911 nanosleep()
17912 ; return 0; }
17913 EOF
17914 if { (eval echo configure:17915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17915 rm -rf conftest*
17916 eval "ac_cv_lib_$ac_lib_var=yes"
17917 else
17918 echo "configure: failed program was:" >&5
17919 cat conftest.$ac_ext >&5
17920 rm -rf conftest*
17921 eval "ac_cv_lib_$ac_lib_var=no"
17922 fi
17923 rm -f conftest*
17924 LIBS="$ac_save_LIBS"
17925
17926 fi
17927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17928 echo "$ac_t""yes" 1>&6
17929
17930 cat >> confdefs.h <<\EOF
17931 #define HAVE_NANOSLEEP 1
17932 EOF
17933
17934 POSIX4_LINK=" -lposix4"
17935
17936 else
17937 echo "$ac_t""no" 1>&6
17938
17939 for ac_func in usleep
17940 do
17941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17942 echo "configure:17943: checking for $ac_func" >&5
17943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17944 echo $ac_n "(cached) $ac_c" 1>&6
17945 else
17946 cat > conftest.$ac_ext <<EOF
17947 #line 17948 "configure"
17948 #include "confdefs.h"
17949 /* System header to define __stub macros and hopefully few prototypes,
17950 which can conflict with char $ac_func(); below. */
17951 #include <assert.h>
17952 /* Override any gcc2 internal prototype to avoid an error. */
17953 /* We use char because int might match the return type of a gcc2
17954 builtin and then its argument prototype would still apply. */
17955 char $ac_func();
17956
17957 int main() {
17958
17959 /* The GNU C library defines this for functions which it implements
17960 to always fail with ENOSYS. Some functions are actually named
17961 something starting with __ and the normal name is an alias. */
17962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17963 choke me
17964 #else
17965 $ac_func();
17966 #endif
17967
17968 ; return 0; }
17969 EOF
17970 if { (eval echo configure:17971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17971 rm -rf conftest*
17972 eval "ac_cv_func_$ac_func=yes"
17973 else
17974 echo "configure: failed program was:" >&5
17975 cat conftest.$ac_ext >&5
17976 rm -rf conftest*
17977 eval "ac_cv_func_$ac_func=no"
17978 fi
17979 rm -f conftest*
17980 fi
17981
17982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17983 echo "$ac_t""yes" 1>&6
17984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17985 cat >> confdefs.h <<EOF
17986 #define $ac_tr_func 1
17987 EOF
17988 cat >> confdefs.h <<\EOF
17989 #define HAVE_USLEEP 1
17990 EOF
17991
17992 else
17993 echo "$ac_t""no" 1>&6
17994 echo "configure: warning: wxSleep() function will not work" 1>&2
17995
17996 fi
17997 done
17998
17999
18000
18001 fi
18002
18003
18004
18005 fi
18006 done
18007
18008 fi
18009
18010 for ac_func in uname gethostname
18011 do
18012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18013 echo "configure:18014: checking for $ac_func" >&5
18014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18015 echo $ac_n "(cached) $ac_c" 1>&6
18016 else
18017 cat > conftest.$ac_ext <<EOF
18018 #line 18019 "configure"
18019 #include "confdefs.h"
18020 /* System header to define __stub macros and hopefully few prototypes,
18021 which can conflict with char $ac_func(); below. */
18022 #include <assert.h>
18023 /* Override any gcc2 internal prototype to avoid an error. */
18024 /* We use char because int might match the return type of a gcc2
18025 builtin and then its argument prototype would still apply. */
18026 char $ac_func();
18027
18028 int main() {
18029
18030 /* The GNU C library defines this for functions which it implements
18031 to always fail with ENOSYS. Some functions are actually named
18032 something starting with __ and the normal name is an alias. */
18033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18034 choke me
18035 #else
18036 $ac_func();
18037 #endif
18038
18039 ; return 0; }
18040 EOF
18041 if { (eval echo configure:18042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18042 rm -rf conftest*
18043 eval "ac_cv_func_$ac_func=yes"
18044 else
18045 echo "configure: failed program was:" >&5
18046 cat conftest.$ac_ext >&5
18047 rm -rf conftest*
18048 eval "ac_cv_func_$ac_func=no"
18049 fi
18050 rm -f conftest*
18051 fi
18052
18053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18054 echo "$ac_t""yes" 1>&6
18055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18056 cat >> confdefs.h <<EOF
18057 #define $ac_tr_func 1
18058 EOF
18059 break
18060 else
18061 echo "$ac_t""no" 1>&6
18062 fi
18063 done
18064
18065
18066
18067 ac_ext=C
18068 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18069 ac_cpp='$CXXCPP $CPPFLAGS'
18070 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18071 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18072 cross_compiling=$ac_cv_prog_cxx_cross
18073
18074
18075 for ac_func in strtok_r
18076 do
18077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18078 echo "configure:18079: checking for $ac_func" >&5
18079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 $ac_func(); below. */
18087 #include <assert.h>
18088 /* Override any gcc2 internal prototype to avoid an error. */
18089 #ifdef __cplusplus
18090 extern "C"
18091 #endif
18092 /* We use char because int might match the return type of a gcc2
18093 builtin and then its argument prototype would still apply. */
18094 char $ac_func();
18095
18096 int main() {
18097
18098 /* The GNU C library defines this for functions which it implements
18099 to always fail with ENOSYS. Some functions are actually named
18100 something starting with __ and the normal name is an alias. */
18101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18102 choke me
18103 #else
18104 $ac_func();
18105 #endif
18106
18107 ; return 0; }
18108 EOF
18109 if { (eval echo configure:18110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18110 rm -rf conftest*
18111 eval "ac_cv_func_$ac_func=yes"
18112 else
18113 echo "configure: failed program was:" >&5
18114 cat conftest.$ac_ext >&5
18115 rm -rf conftest*
18116 eval "ac_cv_func_$ac_func=no"
18117 fi
18118 rm -f conftest*
18119 fi
18120
18121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18122 echo "$ac_t""yes" 1>&6
18123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18124 cat >> confdefs.h <<EOF
18125 #define $ac_tr_func 1
18126 EOF
18127
18128 else
18129 echo "$ac_t""no" 1>&6
18130 fi
18131 done
18132
18133
18134 ac_ext=c
18135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18136 ac_cpp='$CPP $CPPFLAGS'
18137 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18138 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18139 cross_compiling=$ac_cv_prog_cc_cross
18140
18141
18142 INET_LINK=
18143 for ac_func in inet_addr
18144 do
18145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18146 echo "configure:18147: checking for $ac_func" >&5
18147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18148 echo $ac_n "(cached) $ac_c" 1>&6
18149 else
18150 cat > conftest.$ac_ext <<EOF
18151 #line 18152 "configure"
18152 #include "confdefs.h"
18153 /* System header to define __stub macros and hopefully few prototypes,
18154 which can conflict with char $ac_func(); below. */
18155 #include <assert.h>
18156 /* Override any gcc2 internal prototype to avoid an error. */
18157 /* We use char because int might match the return type of a gcc2
18158 builtin and then its argument prototype would still apply. */
18159 char $ac_func();
18160
18161 int main() {
18162
18163 /* The GNU C library defines this for functions which it implements
18164 to always fail with ENOSYS. Some functions are actually named
18165 something starting with __ and the normal name is an alias. */
18166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18167 choke me
18168 #else
18169 $ac_func();
18170 #endif
18171
18172 ; return 0; }
18173 EOF
18174 if { (eval echo configure:18175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18175 rm -rf conftest*
18176 eval "ac_cv_func_$ac_func=yes"
18177 else
18178 echo "configure: failed program was:" >&5
18179 cat conftest.$ac_ext >&5
18180 rm -rf conftest*
18181 eval "ac_cv_func_$ac_func=no"
18182 fi
18183 rm -f conftest*
18184 fi
18185
18186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18187 echo "$ac_t""yes" 1>&6
18188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18189 cat >> confdefs.h <<EOF
18190 #define $ac_tr_func 1
18191 EOF
18192 cat >> confdefs.h <<\EOF
18193 #define HAVE_INET_ADDR 1
18194 EOF
18195
18196 else
18197 echo "$ac_t""no" 1>&6
18198 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18199 echo "configure:18200: checking for inet_addr in -lnsl" >&5
18200 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18202 echo $ac_n "(cached) $ac_c" 1>&6
18203 else
18204 ac_save_LIBS="$LIBS"
18205 LIBS="-lnsl $LIBS"
18206 cat > conftest.$ac_ext <<EOF
18207 #line 18208 "configure"
18208 #include "confdefs.h"
18209 /* Override any gcc2 internal prototype to avoid an error. */
18210 /* We use char because int might match the return type of a gcc2
18211 builtin and then its argument prototype would still apply. */
18212 char inet_addr();
18213
18214 int main() {
18215 inet_addr()
18216 ; return 0; }
18217 EOF
18218 if { (eval echo configure:18219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18219 rm -rf conftest*
18220 eval "ac_cv_lib_$ac_lib_var=yes"
18221 else
18222 echo "configure: failed program was:" >&5
18223 cat conftest.$ac_ext >&5
18224 rm -rf conftest*
18225 eval "ac_cv_lib_$ac_lib_var=no"
18226 fi
18227 rm -f conftest*
18228 LIBS="$ac_save_LIBS"
18229
18230 fi
18231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18232 echo "$ac_t""yes" 1>&6
18233 INET_LINK="nsl"
18234 else
18235 echo "$ac_t""no" 1>&6
18236 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18237 echo "configure:18238: checking for inet_addr in -lresolv" >&5
18238 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18240 echo $ac_n "(cached) $ac_c" 1>&6
18241 else
18242 ac_save_LIBS="$LIBS"
18243 LIBS="-lresolv $LIBS"
18244 cat > conftest.$ac_ext <<EOF
18245 #line 18246 "configure"
18246 #include "confdefs.h"
18247 /* Override any gcc2 internal prototype to avoid an error. */
18248 /* We use char because int might match the return type of a gcc2
18249 builtin and then its argument prototype would still apply. */
18250 char inet_addr();
18251
18252 int main() {
18253 inet_addr()
18254 ; return 0; }
18255 EOF
18256 if { (eval echo configure:18257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18257 rm -rf conftest*
18258 eval "ac_cv_lib_$ac_lib_var=yes"
18259 else
18260 echo "configure: failed program was:" >&5
18261 cat conftest.$ac_ext >&5
18262 rm -rf conftest*
18263 eval "ac_cv_lib_$ac_lib_var=no"
18264 fi
18265 rm -f conftest*
18266 LIBS="$ac_save_LIBS"
18267
18268 fi
18269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18270 echo "$ac_t""yes" 1>&6
18271 INET_LINK="resolv"
18272 else
18273 echo "$ac_t""no" 1>&6
18274 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18275 echo "configure:18276: checking for inet_addr in -lsocket" >&5
18276 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18278 echo $ac_n "(cached) $ac_c" 1>&6
18279 else
18280 ac_save_LIBS="$LIBS"
18281 LIBS="-lsocket $LIBS"
18282 cat > conftest.$ac_ext <<EOF
18283 #line 18284 "configure"
18284 #include "confdefs.h"
18285 /* Override any gcc2 internal prototype to avoid an error. */
18286 /* We use char because int might match the return type of a gcc2
18287 builtin and then its argument prototype would still apply. */
18288 char inet_addr();
18289
18290 int main() {
18291 inet_addr()
18292 ; return 0; }
18293 EOF
18294 if { (eval echo configure:18295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18295 rm -rf conftest*
18296 eval "ac_cv_lib_$ac_lib_var=yes"
18297 else
18298 echo "configure: failed program was:" >&5
18299 cat conftest.$ac_ext >&5
18300 rm -rf conftest*
18301 eval "ac_cv_lib_$ac_lib_var=no"
18302 fi
18303 rm -f conftest*
18304 LIBS="$ac_save_LIBS"
18305
18306 fi
18307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18308 echo "$ac_t""yes" 1>&6
18309 INET_LINK="socket"
18310
18311 else
18312 echo "$ac_t""no" 1>&6
18313 fi
18314
18315
18316 fi
18317
18318
18319 fi
18320
18321
18322
18323 fi
18324 done
18325
18326
18327 for ac_func in inet_aton
18328 do
18329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18330 echo "configure:18331: checking for $ac_func" >&5
18331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18332 echo $ac_n "(cached) $ac_c" 1>&6
18333 else
18334 cat > conftest.$ac_ext <<EOF
18335 #line 18336 "configure"
18336 #include "confdefs.h"
18337 /* System header to define __stub macros and hopefully few prototypes,
18338 which can conflict with char $ac_func(); below. */
18339 #include <assert.h>
18340 /* Override any gcc2 internal prototype to avoid an error. */
18341 /* We use char because int might match the return type of a gcc2
18342 builtin and then its argument prototype would still apply. */
18343 char $ac_func();
18344
18345 int main() {
18346
18347 /* The GNU C library defines this for functions which it implements
18348 to always fail with ENOSYS. Some functions are actually named
18349 something starting with __ and the normal name is an alias. */
18350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18351 choke me
18352 #else
18353 $ac_func();
18354 #endif
18355
18356 ; return 0; }
18357 EOF
18358 if { (eval echo configure:18359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18359 rm -rf conftest*
18360 eval "ac_cv_func_$ac_func=yes"
18361 else
18362 echo "configure: failed program was:" >&5
18363 cat conftest.$ac_ext >&5
18364 rm -rf conftest*
18365 eval "ac_cv_func_$ac_func=no"
18366 fi
18367 rm -f conftest*
18368 fi
18369
18370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18371 echo "$ac_t""yes" 1>&6
18372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18373 cat >> confdefs.h <<EOF
18374 #define $ac_tr_func 1
18375 EOF
18376 cat >> confdefs.h <<\EOF
18377 #define HAVE_INET_ATON 1
18378 EOF
18379
18380 else
18381 echo "$ac_t""no" 1>&6
18382 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18383 echo "configure:18384: checking for inet_aton in -l$INET_LINK" >&5
18384 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18386 echo $ac_n "(cached) $ac_c" 1>&6
18387 else
18388 ac_save_LIBS="$LIBS"
18389 LIBS="-l$INET_LINK $LIBS"
18390 cat > conftest.$ac_ext <<EOF
18391 #line 18392 "configure"
18392 #include "confdefs.h"
18393 /* Override any gcc2 internal prototype to avoid an error. */
18394 /* We use char because int might match the return type of a gcc2
18395 builtin and then its argument prototype would still apply. */
18396 char inet_aton();
18397
18398 int main() {
18399 inet_aton()
18400 ; return 0; }
18401 EOF
18402 if { (eval echo configure:18403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18403 rm -rf conftest*
18404 eval "ac_cv_lib_$ac_lib_var=yes"
18405 else
18406 echo "configure: failed program was:" >&5
18407 cat conftest.$ac_ext >&5
18408 rm -rf conftest*
18409 eval "ac_cv_lib_$ac_lib_var=no"
18410 fi
18411 rm -f conftest*
18412 LIBS="$ac_save_LIBS"
18413
18414 fi
18415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18416 echo "$ac_t""yes" 1>&6
18417 cat >> confdefs.h <<\EOF
18418 #define HAVE_INET_ATON 1
18419 EOF
18420
18421 else
18422 echo "$ac_t""no" 1>&6
18423 fi
18424
18425
18426 fi
18427 done
18428
18429
18430 if test "x$INET_LINK" != "x"; then
18431 cat >> confdefs.h <<\EOF
18432 #define HAVE_INET_ADDR 1
18433 EOF
18434
18435 INET_LINK=" -l$INET_LINK"
18436 fi
18437
18438 fi
18439
18440
18441 cat > confcache <<\EOF
18442 # This file is a shell script that caches the results of configure
18443 # tests run on this system so they can be shared between configure
18444 # scripts and configure runs. It is not useful on other systems.
18445 # If it contains results you don't want to keep, you may remove or edit it.
18446 #
18447 # By default, configure uses ./config.cache as the cache file,
18448 # creating it if it does not exist already. You can give configure
18449 # the --cache-file=FILE option to use a different cache file; that is
18450 # what configure does when it calls configure scripts in
18451 # subdirectories, so they share the cache.
18452 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18453 # config.status only pays attention to the cache file if you give it the
18454 # --recheck option to rerun configure.
18455 #
18456 EOF
18457 # The following way of writing the cache mishandles newlines in values,
18458 # but we know of no workaround that is simple, portable, and efficient.
18459 # So, don't put newlines in cache variables' values.
18460 # Ultrix sh set writes to stderr and can't be redirected directly,
18461 # and sets the high bit in the cache file unless we assign to the vars.
18462 (set) 2>&1 |
18463 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18464 *ac_space=\ *)
18465 # `set' does not quote correctly, so add quotes (double-quote substitution
18466 # turns \\\\ into \\, and sed turns \\ into \).
18467 sed -n \
18468 -e "s/'/'\\\\''/g" \
18469 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18470 ;;
18471 *)
18472 # `set' quotes correctly as required by POSIX, so do not add quotes.
18473 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18474 ;;
18475 esac >> confcache
18476 if cmp -s $cache_file confcache; then
18477 :
18478 else
18479 if test -w $cache_file; then
18480 echo "updating cache $cache_file"
18481 cat confcache > $cache_file
18482 else
18483 echo "not updating unwritable cache $cache_file"
18484 fi
18485 fi
18486 rm -f confcache
18487
18488
18489
18490 CPP_MT_FLAG=
18491 if test "$TOOLKIT" != "MSW"; then
18492
18493
18494 THREADS_LINK=
18495 THREADS_CFLAGS=
18496
18497 if test "$wxUSE_THREADS" = "yes" ; then
18498 if test "$USE_BEOS" = 1; then
18499 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18500 wxUSE_THREADS="no"
18501 fi
18502 fi
18503
18504 if test "$wxUSE_THREADS" = "yes" ; then
18505
18506
18507 THREAD_OPTS="-pthread"
18508 case "${host}" in
18509 *-*-solaris2* | *-*-sunos4* )
18510 if test "x$GCC" = "xyes"; then
18511 THREAD_OPTS="-pthreads $THREAD_OPTS"
18512 else
18513 THREAD_OPTS="-mt $THREAD_OPTS"
18514 fi
18515 ;;
18516 *-*-freebsd*)
18517 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18518 ;;
18519 *-*-darwin* | *-*-cygwin* )
18520 THREAD_OPTS=""
18521 ;;
18522 *-*-aix*)
18523 THREAD_OPTS="pthreads"
18524 ;;
18525 *-hp-hpux* )
18526 if test "x$GCC" != "xyes"; then
18527 THREAD_OPTS=""
18528 fi
18529 esac
18530
18531 THREAD_OPTS="$THREAD_OPTS pthread none"
18532
18533 THREADS_OK=no
18534 for flag in $THREAD_OPTS; do
18535 case $flag in
18536 none)
18537 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18538 echo "configure:18539: checking whether pthreads work without any flags" >&5
18539 ;;
18540
18541 -*)
18542 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18543 echo "configure:18544: checking whether pthreads work with $flag" >&5
18544 THREADS_CFLAGS="$flag"
18545 ;;
18546
18547 *)
18548 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18549 echo "configure:18550: checking for the pthreads library -l$flag" >&5
18550 THREADS_LINK="-l$flag"
18551 ;;
18552 esac
18553
18554 save_LIBS="$LIBS"
18555 save_CFLAGS="$CFLAGS"
18556 LIBS="$THREADS_LINK $LIBS"
18557 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18558
18559 cat > conftest.$ac_ext <<EOF
18560 #line 18561 "configure"
18561 #include "confdefs.h"
18562 #include <pthread.h>
18563 int main() {
18564 pthread_create(0,0,0,0);
18565 ; return 0; }
18566 EOF
18567 if { (eval echo configure:18568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18568 rm -rf conftest*
18569 THREADS_OK=yes
18570 else
18571 echo "configure: failed program was:" >&5
18572 cat conftest.$ac_ext >&5
18573 fi
18574 rm -f conftest*
18575
18576 LIBS="$save_LIBS"
18577 CFLAGS="$save_CFLAGS"
18578
18579 echo "$ac_t""$THREADS_OK" 1>&6
18580 if test "x$THREADS_OK" = "xyes"; then
18581 break;
18582 fi
18583
18584 THREADS_LINK=""
18585 THREADS_CFLAGS=""
18586 done
18587
18588 if test "x$THREADS_OK" != "xyes"; then
18589 wxUSE_THREADS=no
18590 echo "configure: warning: No thread support on this system... disabled" 1>&2
18591 else
18592 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18593 LIBS="$THREADS_LINK $LIBS"
18594
18595 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
18596 echo "configure:18597: checking if more special flags are required for pthreads" >&5
18597 flag=no
18598 case "${host}" in
18599 *-aix*)
18600 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18601 flag="-D_THREAD_SAFE"
18602 ;;
18603 *-freebsd*)
18604 flag="-D_THREAD_SAFE"
18605 ;;
18606 *-hp-hpux* )
18607 flag="-D_REENTRANT"
18608 if test "x$GCC" != "xyes"; then
18609 flag="$flag -D_RWSTD_MULTI_THREAD"
18610 fi
18611 ;;
18612 *solaris* | alpha*-osf*)
18613 flag="-D_REENTRANT"
18614 ;;
18615 esac
18616 echo "$ac_t""${flag}" 1>&6
18617 if test "x$flag" != xno; then
18618 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
18619 fi
18620
18621 if test "x$THREADS_CFLAGS" != "x"; then
18622 CFLAGS="$CFLAGS $THREADS_CFLAGS"
18623 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18624 fi
18625 fi
18626 fi
18627
18628 if test "$wxUSE_THREADS" = "yes" ; then
18629 for ac_func in thr_setconcurrency
18630 do
18631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18632 echo "configure:18633: checking for $ac_func" >&5
18633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18634 echo $ac_n "(cached) $ac_c" 1>&6
18635 else
18636 cat > conftest.$ac_ext <<EOF
18637 #line 18638 "configure"
18638 #include "confdefs.h"
18639 /* System header to define __stub macros and hopefully few prototypes,
18640 which can conflict with char $ac_func(); below. */
18641 #include <assert.h>
18642 /* Override any gcc2 internal prototype to avoid an error. */
18643 /* We use char because int might match the return type of a gcc2
18644 builtin and then its argument prototype would still apply. */
18645 char $ac_func();
18646
18647 int main() {
18648
18649 /* The GNU C library defines this for functions which it implements
18650 to always fail with ENOSYS. Some functions are actually named
18651 something starting with __ and the normal name is an alias. */
18652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18653 choke me
18654 #else
18655 $ac_func();
18656 #endif
18657
18658 ; return 0; }
18659 EOF
18660 if { (eval echo configure:18661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18661 rm -rf conftest*
18662 eval "ac_cv_func_$ac_func=yes"
18663 else
18664 echo "configure: failed program was:" >&5
18665 cat conftest.$ac_ext >&5
18666 rm -rf conftest*
18667 eval "ac_cv_func_$ac_func=no"
18668 fi
18669 rm -f conftest*
18670 fi
18671
18672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18673 echo "$ac_t""yes" 1>&6
18674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18675 cat >> confdefs.h <<EOF
18676 #define $ac_tr_func 1
18677 EOF
18678
18679 else
18680 echo "$ac_t""no" 1>&6
18681 fi
18682 done
18683
18684
18685 for ac_hdr in sched.h
18686 do
18687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18689 echo "configure:18690: checking for $ac_hdr" >&5
18690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18691 echo $ac_n "(cached) $ac_c" 1>&6
18692 else
18693 cat > conftest.$ac_ext <<EOF
18694 #line 18695 "configure"
18695 #include "confdefs.h"
18696 #include <$ac_hdr>
18697 EOF
18698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18699 { (eval echo configure:18700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18701 if test -z "$ac_err"; then
18702 rm -rf conftest*
18703 eval "ac_cv_header_$ac_safe=yes"
18704 else
18705 echo "$ac_err" >&5
18706 echo "configure: failed program was:" >&5
18707 cat conftest.$ac_ext >&5
18708 rm -rf conftest*
18709 eval "ac_cv_header_$ac_safe=no"
18710 fi
18711 rm -f conftest*
18712 fi
18713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18714 echo "$ac_t""yes" 1>&6
18715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18716 cat >> confdefs.h <<EOF
18717 #define $ac_tr_hdr 1
18718 EOF
18719
18720 else
18721 echo "$ac_t""no" 1>&6
18722 fi
18723 done
18724
18725 if test "$ac_cv_header_sched_h" = "yes"; then
18726 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
18727 echo "configure:18728: checking for sched_yield" >&5
18728 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18729 echo $ac_n "(cached) $ac_c" 1>&6
18730 else
18731 cat > conftest.$ac_ext <<EOF
18732 #line 18733 "configure"
18733 #include "confdefs.h"
18734 /* System header to define __stub macros and hopefully few prototypes,
18735 which can conflict with char sched_yield(); below. */
18736 #include <assert.h>
18737 /* Override any gcc2 internal prototype to avoid an error. */
18738 /* We use char because int might match the return type of a gcc2
18739 builtin and then its argument prototype would still apply. */
18740 char sched_yield();
18741
18742 int main() {
18743
18744 /* The GNU C library defines this for functions which it implements
18745 to always fail with ENOSYS. Some functions are actually named
18746 something starting with __ and the normal name is an alias. */
18747 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18748 choke me
18749 #else
18750 sched_yield();
18751 #endif
18752
18753 ; return 0; }
18754 EOF
18755 if { (eval echo configure:18756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18756 rm -rf conftest*
18757 eval "ac_cv_func_sched_yield=yes"
18758 else
18759 echo "configure: failed program was:" >&5
18760 cat conftest.$ac_ext >&5
18761 rm -rf conftest*
18762 eval "ac_cv_func_sched_yield=no"
18763 fi
18764 rm -f conftest*
18765 fi
18766
18767 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18768 echo "$ac_t""yes" 1>&6
18769 cat >> confdefs.h <<\EOF
18770 #define HAVE_SCHED_YIELD 1
18771 EOF
18772
18773 else
18774 echo "$ac_t""no" 1>&6
18775
18776 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
18777 echo "configure:18778: checking for sched_yield in -lposix4" >&5
18778 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18780 echo $ac_n "(cached) $ac_c" 1>&6
18781 else
18782 ac_save_LIBS="$LIBS"
18783 LIBS="-lposix4 $LIBS"
18784 cat > conftest.$ac_ext <<EOF
18785 #line 18786 "configure"
18786 #include "confdefs.h"
18787 /* Override any gcc2 internal prototype to avoid an error. */
18788 /* We use char because int might match the return type of a gcc2
18789 builtin and then its argument prototype would still apply. */
18790 char sched_yield();
18791
18792 int main() {
18793 sched_yield()
18794 ; return 0; }
18795 EOF
18796 if { (eval echo configure:18797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18797 rm -rf conftest*
18798 eval "ac_cv_lib_$ac_lib_var=yes"
18799 else
18800 echo "configure: failed program was:" >&5
18801 cat conftest.$ac_ext >&5
18802 rm -rf conftest*
18803 eval "ac_cv_lib_$ac_lib_var=no"
18804 fi
18805 rm -f conftest*
18806 LIBS="$ac_save_LIBS"
18807
18808 fi
18809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18810 echo "$ac_t""yes" 1>&6
18811 cat >> confdefs.h <<\EOF
18812 #define HAVE_SCHED_YIELD 1
18813 EOF
18814 POSIX4_LINK=" -lposix4"
18815 else
18816 echo "$ac_t""no" 1>&6
18817 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18818
18819 fi
18820
18821
18822
18823 fi
18824
18825 fi
18826
18827 HAVE_PRIOR_FUNCS=0
18828 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
18829 echo "configure:18830: checking for pthread_attr_getschedpolicy" >&5
18830 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18831 echo $ac_n "(cached) $ac_c" 1>&6
18832 else
18833 cat > conftest.$ac_ext <<EOF
18834 #line 18835 "configure"
18835 #include "confdefs.h"
18836 /* System header to define __stub macros and hopefully few prototypes,
18837 which can conflict with char pthread_attr_getschedpolicy(); below. */
18838 #include <assert.h>
18839 /* Override any gcc2 internal prototype to avoid an error. */
18840 /* We use char because int might match the return type of a gcc2
18841 builtin and then its argument prototype would still apply. */
18842 char pthread_attr_getschedpolicy();
18843
18844 int main() {
18845
18846 /* The GNU C library defines this for functions which it implements
18847 to always fail with ENOSYS. Some functions are actually named
18848 something starting with __ and the normal name is an alias. */
18849 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18850 choke me
18851 #else
18852 pthread_attr_getschedpolicy();
18853 #endif
18854
18855 ; return 0; }
18856 EOF
18857 if { (eval echo configure:18858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18858 rm -rf conftest*
18859 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18860 else
18861 echo "configure: failed program was:" >&5
18862 cat conftest.$ac_ext >&5
18863 rm -rf conftest*
18864 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18865 fi
18866 rm -f conftest*
18867 fi
18868
18869 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18870 echo "$ac_t""yes" 1>&6
18871 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
18872 echo "configure:18873: checking for pthread_attr_setschedparam" >&5
18873 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
18874 echo $ac_n "(cached) $ac_c" 1>&6
18875 else
18876 cat > conftest.$ac_ext <<EOF
18877 #line 18878 "configure"
18878 #include "confdefs.h"
18879 /* System header to define __stub macros and hopefully few prototypes,
18880 which can conflict with char pthread_attr_setschedparam(); below. */
18881 #include <assert.h>
18882 /* Override any gcc2 internal prototype to avoid an error. */
18883 /* We use char because int might match the return type of a gcc2
18884 builtin and then its argument prototype would still apply. */
18885 char pthread_attr_setschedparam();
18886
18887 int main() {
18888
18889 /* The GNU C library defines this for functions which it implements
18890 to always fail with ENOSYS. Some functions are actually named
18891 something starting with __ and the normal name is an alias. */
18892 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
18893 choke me
18894 #else
18895 pthread_attr_setschedparam();
18896 #endif
18897
18898 ; return 0; }
18899 EOF
18900 if { (eval echo configure:18901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18901 rm -rf conftest*
18902 eval "ac_cv_func_pthread_attr_setschedparam=yes"
18903 else
18904 echo "configure: failed program was:" >&5
18905 cat conftest.$ac_ext >&5
18906 rm -rf conftest*
18907 eval "ac_cv_func_pthread_attr_setschedparam=no"
18908 fi
18909 rm -f conftest*
18910 fi
18911
18912 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18913 echo "$ac_t""yes" 1>&6
18914 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
18915 echo "configure:18916: checking for sched_get_priority_max" >&5
18916 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18917 echo $ac_n "(cached) $ac_c" 1>&6
18918 else
18919 cat > conftest.$ac_ext <<EOF
18920 #line 18921 "configure"
18921 #include "confdefs.h"
18922 /* System header to define __stub macros and hopefully few prototypes
18923 else
18924 echo "$ac_t""no" 1>&6
18925 which can conflict with char sched_get_priority_max(); below. */
18926 #include <assert.h>
18927 /* Override any gcc2 internal prototype to avoid an error. */
18928 /* We use char because int might match the return type of a gcc2
18929 builtin and then its argument prototype would still apply. */
18930 char sched_get_priority_max();
18931
18932 int main() {
18933
18934 /* The GNU C library defines this for functions which it implements
18935 to always fail with ENOSYS. Some functions are actually named
18936 something starting with __ and the normal name is an alias. */
18937 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18938 choke me
18939 #else
18940 sched_get_priority_max();
18941 #endif
18942
18943 ; return 0; }
18944 EOF
18945 if { (eval echo configure:18946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18946 rm -rf conftest*
18947 eval "ac_cv_func_sched_get_priority_max=yes"
18948 else
18949 echo "configure: failed program was:" >&5
18950 cat conftest.$ac_ext >&5
18951 rm -rf conftest*
18952 eval "ac_cv_func_sched_get_priority_max=no"
18953 fi
18954 rm -f conftest*
18955 fi
18956
18957 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18958 echo "$ac_t""yes" 1>&6
18959 HAVE_PRIOR_FUNCS=1
18960 else
18961 echo "$ac_t""no" 1>&6
18962 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
18963 echo "configure:18964: checking for sched_get_priority_max in -lposix4" >&5
18964 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18966 echo $ac_n "(cached) $ac_c" 1>&6
18967 else
18968 ac_save_LIBS="$LIBS"
18969 LIBS="-lposix4 $LIBS"
18970 cat > conftest.$ac_ext <<EOF
18971 #line 18972 "configure"
18972 #include "confdefs.h"
18973 /* Override any gcc2 internal prototype to avoid an error. */
18974 /* We use char because int might match the return type of a gcc2
18975 builtin and then its argument prototype would still apply. */
18976 char sched_get_priority_max();
18977
18978 int main() {
18979 sched_get_priority_max()
18980 ; return 0; }
18981 EOF
18982 if { (eval echo configure:18983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18983 rm -rf conftest*
18984 eval "ac_cv_lib_$ac_lib_var=yes"
18985 else
18986 echo "configure: failed program was:" >&5
18987 cat conftest.$ac_ext >&5
18988 rm -rf conftest*
18989 eval "ac_cv_lib_$ac_lib_var=no"
18990 fi
18991 rm -f conftest*
18992 LIBS="$ac_save_LIBS"
18993
18994 fi
18995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18996 echo "$ac_t""yes" 1>&6
18997
18998 HAVE_PRIOR_FUNCS=1
18999 POSIX4_LINK=" -lposix4"
19000
19001 else
19002 echo "$ac_t""no" 1>&6
19003 fi
19004
19005
19006 fi
19007
19008
19009 else
19010 echo "$ac_t""no" 1>&6
19011 fi
19012
19013
19014 fi
19015
19016
19017 if test "$HAVE_PRIOR_FUNCS" = 1; then
19018 cat >> confdefs.h <<\EOF
19019 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19020 EOF
19021
19022 else
19023 echo "configure: warning: Setting thread priority will not work" 1>&2
19024 fi
19025
19026 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19027 echo "configure:19028: checking for pthread_cancel" >&5
19028 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19029 echo $ac_n "(cached) $ac_c" 1>&6
19030 else
19031 cat > conftest.$ac_ext <<EOF
19032 #line 19033 "configure"
19033 #include "confdefs.h"
19034 /* System header to define __stub macros and hopefully few prototypes,
19035 which can conflict with char pthread_cancel(); below. */
19036 #include <assert.h>
19037 /* Override any gcc2 internal prototype to avoid an error. */
19038 /* We use char because int might match the return type of a gcc2
19039 builtin and then its argument prototype would still apply. */
19040 char pthread_cancel();
19041
19042 int main() {
19043
19044 /* The GNU C library defines this for functions which it implements
19045 to always fail with ENOSYS. Some functions are actually named
19046 something starting with __ and the normal name is an alias. */
19047 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19048 choke me
19049 #else
19050 pthread_cancel();
19051 #endif
19052
19053 ; return 0; }
19054 EOF
19055 if { (eval echo configure:19056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19056 rm -rf conftest*
19057 eval "ac_cv_func_pthread_cancel=yes"
19058 else
19059 echo "configure: failed program was:" >&5
19060 cat conftest.$ac_ext >&5
19061 rm -rf conftest*
19062 eval "ac_cv_func_pthread_cancel=no"
19063 fi
19064 rm -f conftest*
19065 fi
19066
19067 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19068 echo "$ac_t""yes" 1>&6
19069 cat >> confdefs.h <<\EOF
19070 #define HAVE_PTHREAD_CANCEL 1
19071 EOF
19072
19073 else
19074 echo "$ac_t""no" 1>&6
19075 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19076 fi
19077
19078
19079 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19080 echo "configure:19081: checking for pthread_cleanup_push/pop" >&5
19081 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19082 echo $ac_n "(cached) $ac_c" 1>&6
19083 else
19084
19085 cat > conftest.$ac_ext <<EOF
19086 #line 19087 "configure"
19087 #include "confdefs.h"
19088 #include <pthread.h>
19089 int main() {
19090
19091 pthread_cleanup_push(NULL, NULL);
19092 pthread_cleanup_pop(0);
19093
19094 ; return 0; }
19095 EOF
19096 if { (eval echo configure:19097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19097 rm -rf conftest*
19098
19099 wx_cv_func_pthread_cleanup_push=yes
19100
19101 else
19102 echo "configure: failed program was:" >&5
19103 cat conftest.$ac_ext >&5
19104 rm -rf conftest*
19105
19106 wx_cv_func_pthread_cleanup_push=no
19107
19108 fi
19109 rm -f conftest*
19110
19111 fi
19112
19113 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19114
19115 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19116 cat >> confdefs.h <<\EOF
19117 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19118 EOF
19119
19120 fi
19121
19122
19123 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19124 echo "configure:19125: checking for pthread_mutexattr_t" >&5
19125 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19126 echo $ac_n "(cached) $ac_c" 1>&6
19127 else
19128
19129 cat > conftest.$ac_ext <<EOF
19130 #line 19131 "configure"
19131 #include "confdefs.h"
19132 #include <pthread.h>
19133 int main() {
19134
19135 pthread_mutexattr_t attr;
19136 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19137
19138 ; return 0; }
19139 EOF
19140 if { (eval echo configure:19141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19141 rm -rf conftest*
19142
19143 wx_cv_type_pthread_mutexattr_t=yes
19144
19145 else
19146 echo "configure: failed program was:" >&5
19147 cat conftest.$ac_ext >&5
19148 rm -rf conftest*
19149
19150 wx_cv_type_pthread_mutexattr_t=no
19151
19152
19153 fi
19154 rm -f conftest*
19155
19156 fi
19157
19158 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19159
19160 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19161 cat >> confdefs.h <<\EOF
19162 #define HAVE_PTHREAD_MUTEXATTR_T 1
19163 EOF
19164
19165 else
19166 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19167 echo "configure:19168: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19168 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19169 echo $ac_n "(cached) $ac_c" 1>&6
19170 else
19171
19172 cat > conftest.$ac_ext <<EOF
19173 #line 19174 "configure"
19174 #include "confdefs.h"
19175 #include <pthread.h>
19176 int main() {
19177
19178 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19179
19180 ; return 0; }
19181 EOF
19182 if { (eval echo configure:19183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19183 rm -rf conftest*
19184
19185 wx_cv_type_pthread_rec_mutex_init=yes
19186
19187 else
19188 echo "configure: failed program was:" >&5
19189 cat conftest.$ac_ext >&5
19190 rm -rf conftest*
19191
19192 wx_cv_type_pthread_rec_mutex_init=no
19193
19194
19195 fi
19196 rm -f conftest*
19197
19198 fi
19199
19200 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19201 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19202 cat >> confdefs.h <<\EOF
19203 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19204 EOF
19205
19206 else
19207 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19208 fi
19209 fi
19210 fi
19211
19212 else
19213 if test "$wxUSE_THREADS" = "yes" ; then
19214 case "${host}" in
19215 *-*-mingw32* )
19216 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19217 echo "configure:19218: checking if compiler supports -mthreads" >&5
19218 if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19219 echo $ac_n "(cached) $ac_c" 1>&6
19220 else
19221
19222 CFLAGS_OLD="$CFLAGS"
19223 CFLAGS="$CFLAGS -mthreads"
19224 cat > conftest.$ac_ext <<EOF
19225 #line 19226 "configure"
19226 #include "confdefs.h"
19227
19228 int main() {
19229
19230 ; return 0; }
19231 EOF
19232 if { (eval echo configure:19233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19233 rm -rf conftest*
19234 wx_cv_cflags_mthread=yes
19235 else
19236 echo "configure: failed program was:" >&5
19237 cat conftest.$ac_ext >&5
19238 rm -rf conftest*
19239 wx_cv_cflags_mthread=no
19240
19241 fi
19242 rm -f conftest*
19243
19244
19245 fi
19246
19247 echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19248
19249 if test "$wx_cv_cflags_mthread" = "yes"; then
19250 CXXFLAGS="$CXXFLAGS -mthreads"
19251 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19252 LDFLAGS="$LDFLAGS -mthreads"
19253 else
19254 CFLAGS="$CFLAGS_OLD"
19255 fi
19256 ;;
19257 esac
19258 fi
19259 fi
19260
19261 if test "$wxUSE_THREADS" = "yes"; then
19262 cat >> confdefs.h <<\EOF
19263 #define wxUSE_THREADS 1
19264 EOF
19265
19266
19267 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19268 else
19269 if test "$ac_cv_func_strtok_r" = "yes"; then
19270 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19271 echo "configure:19272: checking if -D_REENTRANT is needed" >&5
19272 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19273 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19274 echo "$ac_t""yes" 1>&6
19275 else
19276 echo "$ac_t""no" 1>&6
19277 fi
19278 fi
19279 fi
19280
19281 if test "$WXGTK20" = 1 ; then
19282 cat >> confdefs.h <<EOF
19283 #define __WXGTK20__ $WXGTK20
19284 EOF
19285
19286 WXGTK12=1
19287 fi
19288
19289 if test "$WXGTK12" = 1 ; then
19290 cat >> confdefs.h <<EOF
19291 #define __WXGTK12__ $WXGTK12
19292 EOF
19293
19294 fi
19295
19296 if test "$WXGTK127" = 1 ; then
19297 cat >> confdefs.h <<EOF
19298 #define __WXGTK127__ $WXGTK127
19299 EOF
19300
19301 fi
19302
19303 WXDEBUG=
19304
19305 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19306 WXDEBUG="-g"
19307 wxUSE_OPTIMISE=no
19308 fi
19309
19310 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19311 wxUSE_DEBUG_INFO=yes
19312 WXDEBUG="-ggdb"
19313 fi
19314
19315 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19316 cat >> confdefs.h <<\EOF
19317 #define WXDEBUG 1
19318 EOF
19319
19320 WXDEBUG_DEFINE="-D__WXDEBUG__"
19321 else
19322 if test "$wxUSE_GTK" = 1 ; then
19323 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19324 fi
19325 fi
19326
19327 if test "$wxUSE_MEM_TRACING" = "yes" ; then
19328 cat >> confdefs.h <<\EOF
19329 #define wxUSE_MEMORY_TRACING 1
19330 EOF
19331
19332 cat >> confdefs.h <<\EOF
19333 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19334 EOF
19335
19336 cat >> confdefs.h <<\EOF
19337 #define wxUSE_DEBUG_NEW_ALWAYS 1
19338 EOF
19339
19340 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19341 fi
19342
19343 if test "$wxUSE_DMALLOC" = "yes" ; then
19344 DMALLOC_LIBS="-ldmalloc"
19345 fi
19346
19347 PROFILE=
19348 if test "$wxUSE_PROFILE" = "yes" ; then
19349 PROFILE=" -pg"
19350 fi
19351
19352 CODE_GEN_FLAGS=
19353 CODE_GEN_FLAGS_CXX=
19354 if test "$GCC" = "yes" ; then
19355 if test "$wxUSE_NO_RTTI" = "yes" ; then
19356 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19357 fi
19358 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19359 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19360 fi
19361 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19362 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19363 fi
19364 if test "$USE_WIN32" = 1 ; then
19365 # I'm not even really sure what this was ever added to solve,
19366 # but someone added it for mingw native builds, so I guess
19367 # they had a reason, right??
19368 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19369 fi
19370
19371 case "${host}" in
19372 powerpc*-*-aix* )
19373 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19374 ;;
19375 *-hppa* )
19376 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19377 ;;
19378 esac
19379 fi
19380
19381 OPTIMISE=
19382 if test "$wxUSE_OPTIMISE" = "no" ; then
19383 if test "$GCC" = yes ; then
19384 OPTIMISE="-O0"
19385 fi
19386 else
19387 if test "$GCC" = yes ; then
19388 OPTIMISE="-O2"
19389
19390 case "${host}" in
19391 i586-*-*|i686-*-* )
19392 OPTIMISE="${OPTIMISE} "
19393 ;;
19394 esac
19395 else
19396 OPTIMISE="-O"
19397 fi
19398 fi
19399
19400
19401 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19402 cat >> confdefs.h <<\EOF
19403 #define WXWIN_COMPATIBILITY_2 1
19404 EOF
19405
19406
19407 WXWIN_COMPATIBILITY_2_2="yes"
19408 fi
19409
19410 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19411 cat >> confdefs.h <<\EOF
19412 #define WXWIN_COMPATIBILITY_2_2 1
19413 EOF
19414
19415
19416 WXWIN_COMPATIBILITY_2_4="yes"
19417 fi
19418
19419 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19420 cat >> confdefs.h <<\EOF
19421 #define WXWIN_COMPATIBILITY_2_4 1
19422 EOF
19423
19424 fi
19425
19426
19427 if test "$wxUSE_GUI" = "yes"; then
19428 cat >> confdefs.h <<\EOF
19429 #define wxUSE_GUI 1
19430 EOF
19431
19432
19433 else
19434 cat >> confdefs.h <<\EOF
19435 #define wxUSE_NOGUI 1
19436 EOF
19437
19438 fi
19439
19440
19441 if test "$wxUSE_UNIX" = "yes"; then
19442 cat >> confdefs.h <<\EOF
19443 #define wxUSE_UNIX 1
19444 EOF
19445
19446 fi
19447
19448
19449 if test "$wxUSE_APPLE_IEEE" = "yes"; then
19450 cat >> confdefs.h <<\EOF
19451 #define wxUSE_APPLE_IEEE 1
19452 EOF
19453
19454 fi
19455
19456 if test "$wxUSE_TIMER" = "yes"; then
19457 cat >> confdefs.h <<\EOF
19458 #define wxUSE_TIMER 1
19459 EOF
19460
19461 fi
19462
19463 if test "$wxUSE_WAVE" = "yes"; then
19464 cat >> confdefs.h <<\EOF
19465 #define wxUSE_WAVE 1
19466 EOF
19467
19468 fi
19469
19470 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19471 cat >> confdefs.h <<\EOF
19472 #define wxUSE_CMDLINE_PARSER 1
19473 EOF
19474
19475 fi
19476
19477 if test "$wxUSE_STOPWATCH" = "yes"; then
19478 cat >> confdefs.h <<\EOF
19479 #define wxUSE_STOPWATCH 1
19480 EOF
19481
19482 fi
19483
19484 if test "$wxUSE_DATETIME" = "yes"; then
19485 cat >> confdefs.h <<\EOF
19486 #define wxUSE_DATETIME 1
19487 EOF
19488
19489 fi
19490
19491 if test "$wxUSE_FILE" = "yes"; then
19492 cat >> confdefs.h <<\EOF
19493 #define wxUSE_FILE 1
19494 EOF
19495
19496 fi
19497
19498 if test "$wxUSE_FFILE" = "yes"; then
19499 cat >> confdefs.h <<\EOF
19500 #define wxUSE_FFILE 1
19501 EOF
19502
19503 fi
19504
19505 if test "$wxUSE_FILESYSTEM" = "yes"; then
19506 cat >> confdefs.h <<\EOF
19507 #define wxUSE_FILESYSTEM 1
19508 EOF
19509
19510 fi
19511
19512 if test "$wxUSE_FS_INET" = "yes"; then
19513 cat >> confdefs.h <<\EOF
19514 #define wxUSE_FS_INET 1
19515 EOF
19516
19517 fi
19518
19519 if test "$wxUSE_FS_ZIP" = "yes"; then
19520 cat >> confdefs.h <<\EOF
19521 #define wxUSE_FS_ZIP 1
19522 EOF
19523
19524 fi
19525
19526 if test "$wxUSE_ZIPSTREAM" = "yes"; then
19527 cat >> confdefs.h <<\EOF
19528 #define wxUSE_ZIPSTREAM 1
19529 EOF
19530
19531 fi
19532
19533 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19534 cat >> confdefs.h <<\EOF
19535 #define wxUSE_ON_FATAL_EXCEPTION 1
19536 EOF
19537
19538 fi
19539
19540 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19541 cat >> confdefs.h <<\EOF
19542 #define wxUSE_SNGLINST_CHECKER 1
19543 EOF
19544
19545 fi
19546
19547 if test "$wxUSE_BUSYINFO" = "yes"; then
19548 cat >> confdefs.h <<\EOF
19549 #define wxUSE_BUSYINFO 1
19550 EOF
19551
19552 fi
19553
19554 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19555 cat >> confdefs.h <<\EOF
19556 #define wxUSE_STD_IOSTREAM 1
19557 EOF
19558
19559 fi
19560
19561 if test "$wxUSE_TEXTBUFFER" = "yes"; then
19562 cat >> confdefs.h <<\EOF
19563 #define wxUSE_TEXTBUFFER 1
19564 EOF
19565
19566 fi
19567
19568 if test "$wxUSE_TEXTFILE" = "yes"; then
19569 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19570 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19571 else
19572 cat >> confdefs.h <<\EOF
19573 #define wxUSE_TEXTFILE 1
19574 EOF
19575
19576 fi
19577 fi
19578
19579 if test "$wxUSE_CONFIG" = "yes" ; then
19580 if test "$wxUSE_TEXTFILE" != "yes"; then
19581 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19582 else
19583 cat >> confdefs.h <<\EOF
19584 #define wxUSE_CONFIG 1
19585 EOF
19586
19587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19588 fi
19589 fi
19590
19591 if test "$wxUSE_INTL" = "yes" ; then
19592 if test "$wxUSE_FILE" != "yes"; then
19593 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
19594 else
19595 cat >> confdefs.h <<\EOF
19596 #define wxUSE_INTL 1
19597 EOF
19598
19599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
19600 GUIDIST="$GUIDIST INTL_DIST"
19601 fi
19602 fi
19603
19604 if test "$wxUSE_LOG" = "yes"; then
19605 cat >> confdefs.h <<\EOF
19606 #define wxUSE_LOG 1
19607 EOF
19608
19609
19610 if test "$wxUSE_LOGGUI" = "yes"; then
19611 cat >> confdefs.h <<\EOF
19612 #define wxUSE_LOGGUI 1
19613 EOF
19614
19615 fi
19616
19617 if test "$wxUSE_LOGWINDOW" = "yes"; then
19618 cat >> confdefs.h <<\EOF
19619 #define wxUSE_LOGWINDOW 1
19620 EOF
19621
19622 fi
19623
19624 if test "$wxUSE_LOGDIALOG" = "yes"; then
19625 cat >> confdefs.h <<\EOF
19626 #define wxUSE_LOG_DIALOG 1
19627 EOF
19628
19629 fi
19630 fi
19631
19632 if test "$wxUSE_LONGLONG" = "yes"; then
19633 cat >> confdefs.h <<\EOF
19634 #define wxUSE_LONGLONG 1
19635 EOF
19636
19637 fi
19638
19639 if test "$wxUSE_GEOMETRY" = "yes"; then
19640 cat >> confdefs.h <<\EOF
19641 #define wxUSE_GEOMETRY 1
19642 EOF
19643
19644 fi
19645
19646 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
19647 cat >> confdefs.h <<\EOF
19648 #define wxUSE_DIALUP_MANAGER 1
19649 EOF
19650
19651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
19652 fi
19653
19654 if test "$wxUSE_STREAMS" = "yes" ; then
19655 cat >> confdefs.h <<\EOF
19656 #define wxUSE_STREAMS 1
19657 EOF
19658
19659 fi
19660
19661
19662 if test "$wxUSE_DATETIME" = "yes"; then
19663 for ac_func in strptime
19664 do
19665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19666 echo "configure:19667: checking for $ac_func" >&5
19667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19668 echo $ac_n "(cached) $ac_c" 1>&6
19669 else
19670 cat > conftest.$ac_ext <<EOF
19671 #line 19672 "configure"
19672 #include "confdefs.h"
19673 /* System header to define __stub macros and hopefully few prototypes,
19674 which can conflict with char $ac_func(); below. */
19675 #include <assert.h>
19676 /* Override any gcc2 internal prototype to avoid an error. */
19677 /* We use char because int might match the return type of a gcc2
19678 builtin and then its argument prototype would still apply. */
19679 char $ac_func();
19680
19681 int main() {
19682
19683 /* The GNU C library defines this for functions which it implements
19684 to always fail with ENOSYS. Some functions are actually named
19685 something starting with __ and the normal name is an alias. */
19686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19687 choke me
19688 #else
19689 $ac_func();
19690 #endif
19691
19692 ; return 0; }
19693 EOF
19694 if { (eval echo configure:19695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19695 rm -rf conftest*
19696 eval "ac_cv_func_$ac_func=yes"
19697 else
19698 echo "configure: failed program was:" >&5
19699 cat conftest.$ac_ext >&5
19700 rm -rf conftest*
19701 eval "ac_cv_func_$ac_func=no"
19702 fi
19703 rm -f conftest*
19704 fi
19705
19706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19707 echo "$ac_t""yes" 1>&6
19708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19709 cat >> confdefs.h <<EOF
19710 #define $ac_tr_func 1
19711 EOF
19712
19713 else
19714 echo "$ac_t""no" 1>&6
19715 fi
19716 done
19717
19718
19719 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
19720 echo "configure:19721: checking for timezone variable in <time.h>" >&5
19721 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19722 echo $ac_n "(cached) $ac_c" 1>&6
19723 else
19724
19725 cat > conftest.$ac_ext <<EOF
19726 #line 19727 "configure"
19727 #include "confdefs.h"
19728
19729 #include <time.h>
19730
19731 int main() {
19732
19733 int tz;
19734 tz = timezone;
19735
19736 ; return 0; }
19737 EOF
19738 if { (eval echo configure:19739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19739 rm -rf conftest*
19740
19741 wx_cv_var_timezone=timezone
19742
19743 else
19744 echo "configure: failed program was:" >&5
19745 cat conftest.$ac_ext >&5
19746 rm -rf conftest*
19747
19748 cat > conftest.$ac_ext <<EOF
19749 #line 19750 "configure"
19750 #include "confdefs.h"
19751
19752 #include <time.h>
19753
19754 int main() {
19755
19756 int tz;
19757 tz = _timezone;
19758
19759 ; return 0; }
19760 EOF
19761 if { (eval echo configure:19762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19762 rm -rf conftest*
19763
19764 wx_cv_var_timezone=_timezone
19765
19766 else
19767 echo "configure: failed program was:" >&5
19768 cat conftest.$ac_ext >&5
19769 rm -rf conftest*
19770
19771 cat > conftest.$ac_ext <<EOF
19772 #line 19773 "configure"
19773 #include "confdefs.h"
19774
19775 #include <time.h>
19776
19777 int main() {
19778
19779 int tz;
19780 tz = __timezone;
19781
19782 ; return 0; }
19783 EOF
19784 if { (eval echo configure:19785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19785 rm -rf conftest*
19786
19787 wx_cv_var_timezone=__timezone
19788
19789 else
19790 echo "configure: failed program was:" >&5
19791 cat conftest.$ac_ext >&5
19792 rm -rf conftest*
19793
19794 if test "$USE_DOS" = 0 ; then
19795 echo "configure: warning: no timezone variable" 1>&2
19796 fi
19797
19798
19799 fi
19800 rm -f conftest*
19801
19802
19803 fi
19804 rm -f conftest*
19805
19806
19807 fi
19808 rm -f conftest*
19809
19810
19811 fi
19812
19813 echo "$ac_t""$wx_cv_var_timezone" 1>&6
19814
19815 if test "x$wx_cv_var_timezone" != x ; then
19816 cat >> confdefs.h <<EOF
19817 #define WX_TIMEZONE $wx_cv_var_timezone
19818 EOF
19819
19820 fi
19821
19822 for ac_func in localtime
19823 do
19824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19825 echo "configure:19826: checking for $ac_func" >&5
19826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19827 echo $ac_n "(cached) $ac_c" 1>&6
19828 else
19829 cat > conftest.$ac_ext <<EOF
19830 #line 19831 "configure"
19831 #include "confdefs.h"
19832 /* System header to define __stub macros and hopefully few prototypes,
19833 which can conflict with char $ac_func(); below. */
19834 #include <assert.h>
19835 /* Override any gcc2 internal prototype to avoid an error. */
19836 /* We use char because int might match the return type of a gcc2
19837 builtin and then its argument prototype would still apply. */
19838 char $ac_func();
19839
19840 int main() {
19841
19842 /* The GNU C library defines this for functions which it implements
19843 to always fail with ENOSYS. Some functions are actually named
19844 something starting with __ and the normal name is an alias. */
19845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19846 choke me
19847 #else
19848 $ac_func();
19849 #endif
19850
19851 ; return 0; }
19852 EOF
19853 if { (eval echo configure:19854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19854 rm -rf conftest*
19855 eval "ac_cv_func_$ac_func=yes"
19856 else
19857 echo "configure: failed program was:" >&5
19858 cat conftest.$ac_ext >&5
19859 rm -rf conftest*
19860 eval "ac_cv_func_$ac_func=no"
19861 fi
19862 rm -f conftest*
19863 fi
19864
19865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19866 echo "$ac_t""yes" 1>&6
19867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19868 cat >> confdefs.h <<EOF
19869 #define $ac_tr_func 1
19870 EOF
19871
19872 else
19873 echo "$ac_t""no" 1>&6
19874 fi
19875 done
19876
19877
19878 if test "$ac_cv_func_localtime" = "yes"; then
19879 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
19880 echo "configure:19881: checking for tm_gmtoff in struct tm" >&5
19881 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
19882 echo $ac_n "(cached) $ac_c" 1>&6
19883 else
19884
19885 cat > conftest.$ac_ext <<EOF
19886 #line 19887 "configure"
19887 #include "confdefs.h"
19888
19889 #include <time.h>
19890
19891 int main() {
19892
19893 struct tm tm;
19894 tm.tm_gmtoff++;
19895
19896 ; return 0; }
19897 EOF
19898 if { (eval echo configure:19899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19899 rm -rf conftest*
19900
19901 wx_cv_struct_tm_has_gmtoff=yes
19902
19903 else
19904 echo "configure: failed program was:" >&5
19905 cat conftest.$ac_ext >&5
19906 rm -rf conftest*
19907 wx_cv_struct_tm_has_gmtoff=no
19908
19909 fi
19910 rm -f conftest*
19911
19912 fi
19913
19914 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
19915 fi
19916
19917 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
19918 cat >> confdefs.h <<\EOF
19919 #define WX_GMTOFF_IN_TM 1
19920 EOF
19921
19922 fi
19923
19924 for ac_func in gettimeofday ftime
19925 do
19926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19927 echo "configure:19928: checking for $ac_func" >&5
19928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19929 echo $ac_n "(cached) $ac_c" 1>&6
19930 else
19931 cat > conftest.$ac_ext <<EOF
19932 #line 19933 "configure"
19933 #include "confdefs.h"
19934 /* System header to define __stub macros and hopefully few prototypes,
19935 which can conflict with char $ac_func(); below. */
19936 #include <assert.h>
19937 /* Override any gcc2 internal prototype to avoid an error. */
19938 /* We use char because int might match the return type of a gcc2
19939 builtin and then its argument prototype would still apply. */
19940 char $ac_func();
19941
19942 int main() {
19943
19944 /* The GNU C library defines this for functions which it implements
19945 to always fail with ENOSYS. Some functions are actually named
19946 something starting with __ and the normal name is an alias. */
19947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19948 choke me
19949 #else
19950 $ac_func();
19951 #endif
19952
19953 ; return 0; }
19954 EOF
19955 if { (eval echo configure:19956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19956 rm -rf conftest*
19957 eval "ac_cv_func_$ac_func=yes"
19958 else
19959 echo "configure: failed program was:" >&5
19960 cat conftest.$ac_ext >&5
19961 rm -rf conftest*
19962 eval "ac_cv_func_$ac_func=no"
19963 fi
19964 rm -f conftest*
19965 fi
19966
19967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19968 echo "$ac_t""yes" 1>&6
19969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19970 cat >> confdefs.h <<EOF
19971 #define $ac_tr_func 1
19972 EOF
19973 break
19974 else
19975 echo "$ac_t""no" 1>&6
19976 fi
19977 done
19978
19979
19980 if test "$ac_cv_func_gettimeofday" = "yes"; then
19981 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
19982 echo "configure:19983: checking whether gettimeofday takes two arguments" >&5
19983 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19984 echo $ac_n "(cached) $ac_c" 1>&6
19985 else
19986
19987
19988 ac_ext=C
19989 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19990 ac_cpp='$CXXCPP $CPPFLAGS'
19991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19993 cross_compiling=$ac_cv_prog_cxx_cross
19994
19995
19996 cat > conftest.$ac_ext <<EOF
19997 #line 19998 "configure"
19998 #include "confdefs.h"
19999
20000 #include <sys/time.h>
20001 #include <unistd.h>
20002
20003 int main() {
20004
20005 struct timeval tv;
20006 gettimeofday(&tv, NULL);
20007
20008 ; return 0; }
20009 EOF
20010 if { (eval echo configure:20011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20011 rm -rf conftest*
20012 wx_cv_func_gettimeofday_has_2_args=yes
20013 else
20014 echo "configure: failed program was:" >&5
20015 cat conftest.$ac_ext >&5
20016 rm -rf conftest*
20017 cat > conftest.$ac_ext <<EOF
20018 #line 20019 "configure"
20019 #include "confdefs.h"
20020
20021 #include <sys/time.h>
20022 #include <unistd.h>
20023
20024 int main() {
20025
20026 struct timeval tv;
20027 gettimeofday(&tv);
20028
20029 ; return 0; }
20030 EOF
20031 if { (eval echo configure:20032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20032 rm -rf conftest*
20033 wx_cv_func_gettimeofday_has_2_args=no
20034 else
20035 echo "configure: failed program was:" >&5
20036 cat conftest.$ac_ext >&5
20037 rm -rf conftest*
20038
20039 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20040 wx_cv_func_gettimeofday_has_2_args=unknown
20041
20042
20043 fi
20044 rm -f conftest*
20045
20046 fi
20047 rm -f conftest*
20048 ac_ext=c
20049 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20050 ac_cpp='$CPP $CPPFLAGS'
20051 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20052 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20053 cross_compiling=$ac_cv_prog_cc_cross
20054
20055
20056 fi
20057
20058 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20059
20060 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20061 cat >> confdefs.h <<\EOF
20062 #define WX_GETTIMEOFDAY_NO_TZ 1
20063 EOF
20064
20065 fi
20066 fi
20067
20068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20069 fi
20070
20071
20072 if test "$wxUSE_SOCKETS" = "yes"; then
20073 if test "$wxUSE_MGL" = "1"; then
20074 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20075 wxUSE_SOCKETS="no"
20076 fi
20077 fi
20078
20079 if test "$wxUSE_SOCKETS" = "yes"; then
20080 if test "$TOOLKIT" != "MSW"; then
20081 echo $ac_n "checking for socket""... $ac_c" 1>&6
20082 echo "configure:20083: checking for socket" >&5
20083 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20084 echo $ac_n "(cached) $ac_c" 1>&6
20085 else
20086 cat > conftest.$ac_ext <<EOF
20087 #line 20088 "configure"
20088 #include "confdefs.h"
20089 /* System header to define __stub macros and hopefully few prototypes,
20090 which can conflict with char socket(); below. */
20091 #include <assert.h>
20092 /* Override any gcc2 internal prototype to avoid an error. */
20093 /* We use char because int might match the return type of a gcc2
20094 builtin and then its argument prototype would still apply. */
20095 char socket();
20096
20097 int main() {
20098
20099 /* The GNU C library defines this for functions which it implements
20100 to always fail with ENOSYS. Some functions are actually named
20101 something starting with __ and the normal name is an alias. */
20102 #if defined (__stub_socket) || defined (__stub___socket)
20103 choke me
20104 #else
20105 socket();
20106 #endif
20107
20108 ; return 0; }
20109 EOF
20110 if { (eval echo configure:20111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20111 rm -rf conftest*
20112 eval "ac_cv_func_socket=yes"
20113 else
20114 echo "configure: failed program was:" >&5
20115 cat conftest.$ac_ext >&5
20116 rm -rf conftest*
20117 eval "ac_cv_func_socket=no"
20118 fi
20119 rm -f conftest*
20120 fi
20121
20122 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20123 echo "$ac_t""yes" 1>&6
20124 :
20125 else
20126 echo "$ac_t""no" 1>&6
20127 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20128 echo "configure:20129: checking for socket in -lsocket" >&5
20129 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20131 echo $ac_n "(cached) $ac_c" 1>&6
20132 else
20133 ac_save_LIBS="$LIBS"
20134 LIBS="-lsocket $LIBS"
20135 cat > conftest.$ac_ext <<EOF
20136 #line 20137 "configure"
20137 #include "confdefs.h"
20138 /* Override any gcc2 internal prototype to avoid an error. */
20139 /* We use char because int might match the return type of a gcc2
20140 builtin and then its argument prototype would still apply. */
20141 char socket();
20142
20143 int main() {
20144 socket()
20145 ; return 0; }
20146 EOF
20147 if { (eval echo configure:20148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20148 rm -rf conftest*
20149 eval "ac_cv_lib_$ac_lib_var=yes"
20150 else
20151 echo "configure: failed program was:" >&5
20152 cat conftest.$ac_ext >&5
20153 rm -rf conftest*
20154 eval "ac_cv_lib_$ac_lib_var=no"
20155 fi
20156 rm -f conftest*
20157 LIBS="$ac_save_LIBS"
20158
20159 fi
20160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20161 echo "$ac_t""yes" 1>&6
20162 if test "$INET_LINK" != " -lsocket"; then
20163 INET_LINK="$INET_LINK -lsocket"
20164 fi
20165 else
20166 echo "$ac_t""no" 1>&6
20167
20168 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20169 wxUSE_SOCKETS=no
20170
20171
20172 fi
20173
20174
20175 fi
20176
20177 fi
20178 fi
20179
20180 if test "$wxUSE_SOCKETS" = "yes" ; then
20181 if test "$TOOLKIT" != "MSW"; then
20182 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20183 echo "configure:20184: checking what is the type of the third argument of getsockname" >&5
20184 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20185 echo $ac_n "(cached) $ac_c" 1>&6
20186 else
20187
20188
20189 ac_ext=C
20190 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20191 ac_cpp='$CXXCPP $CPPFLAGS'
20192 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20193 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20194 cross_compiling=$ac_cv_prog_cxx_cross
20195
20196
20197 cat > conftest.$ac_ext <<EOF
20198 #line 20199 "configure"
20199 #include "confdefs.h"
20200
20201 #include <sys/types.h>
20202 #include <sys/socket.h>
20203
20204 int main() {
20205
20206 socklen_t len;
20207 getsockname(0, 0, &len);
20208
20209 ; return 0; }
20210 EOF
20211 if { (eval echo configure:20212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20212 rm -rf conftest*
20213 wx_cv_type_getsockname3=socklen_t
20214 else
20215 echo "configure: failed program was:" >&5
20216 cat conftest.$ac_ext >&5
20217 rm -rf conftest*
20218 cat > conftest.$ac_ext <<EOF
20219 #line 20220 "configure"
20220 #include "confdefs.h"
20221
20222 #include <sys/types.h>
20223 #include <sys/socket.h>
20224
20225 int main() {
20226
20227 size_t len;
20228 getsockname(0, 0, &len);
20229
20230 ; return 0; }
20231 EOF
20232 if { (eval echo configure:20233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20233 rm -rf conftest*
20234 wx_cv_type_getsockname3=size_t
20235 else
20236 echo "configure: failed program was:" >&5
20237 cat conftest.$ac_ext >&5
20238 rm -rf conftest*
20239 cat > conftest.$ac_ext <<EOF
20240 #line 20241 "configure"
20241 #include "confdefs.h"
20242
20243 #include <sys/types.h>
20244 #include <sys/socket.h>
20245
20246 int main() {
20247
20248 int len;
20249 getsockname(0, 0, &len);
20250
20251 ; return 0; }
20252 EOF
20253 if { (eval echo configure:20254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20254 rm -rf conftest*
20255 wx_cv_type_getsockname3=int
20256 else
20257 echo "configure: failed program was:" >&5
20258 cat conftest.$ac_ext >&5
20259 rm -rf conftest*
20260 wx_cv_type_getsockname3=unknown
20261
20262 fi
20263 rm -f conftest*
20264
20265 fi
20266 rm -f conftest*
20267
20268 fi
20269 rm -f conftest*
20270
20271 ac_ext=c
20272 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20273 ac_cpp='$CPP $CPPFLAGS'
20274 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20275 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20276 cross_compiling=$ac_cv_prog_cc_cross
20277
20278
20279 fi
20280
20281 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20282
20283 if test "$wx_cv_type_getsockname3" = "unknown"; then
20284 wxUSE_SOCKETS=no
20285 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20286 else
20287 cat >> confdefs.h <<EOF
20288 #define SOCKLEN_T $wx_cv_type_getsockname3
20289 EOF
20290
20291 fi
20292 fi
20293 fi
20294
20295 if test "$wxUSE_SOCKETS" = "yes" ; then
20296 cat >> confdefs.h <<\EOF
20297 #define wxUSE_SOCKETS 1
20298 EOF
20299
20300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20301 fi
20302
20303
20304 if test "$wxUSE_GUI" = "yes"; then
20305
20306 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
20307 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20308 wxUSE_JOYSTICK=no
20309 fi
20310 if test "$TOOLKIT" = "MOTIF"; then
20311 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20312 wxUSE_JOYSTICK=no
20313 fi
20314 if test "$TOOLKIT" = "X11"; then
20315 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20316 wxUSE_JOYSTICK=no
20317 fi
20318
20319 if test "$TOOLKIT" != "MSW"; then
20320 if test "$wxUSE_JOYSTICK" = "yes"; then
20321 for ac_hdr in linux/joystick.h
20322 do
20323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20325 echo "configure:20326: checking for $ac_hdr" >&5
20326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20327 echo $ac_n "(cached) $ac_c" 1>&6
20328 else
20329 cat > conftest.$ac_ext <<EOF
20330 #line 20331 "configure"
20331 #include "confdefs.h"
20332 #include <$ac_hdr>
20333 EOF
20334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20335 { (eval echo configure:20336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20337 if test -z "$ac_err"; then
20338 rm -rf conftest*
20339 eval "ac_cv_header_$ac_safe=yes"
20340 else
20341 echo "$ac_err" >&5
20342 echo "configure: failed program was:" >&5
20343 cat conftest.$ac_ext >&5
20344 rm -rf conftest*
20345 eval "ac_cv_header_$ac_safe=no"
20346 fi
20347 rm -f conftest*
20348 fi
20349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20350 echo "$ac_t""yes" 1>&6
20351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20352 cat >> confdefs.h <<EOF
20353 #define $ac_tr_hdr 1
20354 EOF
20355
20356 else
20357 echo "$ac_t""no" 1>&6
20358 fi
20359 done
20360
20361 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20362 wxUSE_JOYSTICK=no
20363 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20364 fi
20365 fi
20366 fi
20367
20368 if test "$wxUSE_JOYSTICK" = "yes"; then
20369 cat >> confdefs.h <<\EOF
20370 #define wxUSE_JOYSTICK 1
20371 EOF
20372
20373 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20374 fi
20375 fi
20376
20377
20378 if test "$TOOLKIT" != "MSW"; then
20379
20380 HAVE_DL_FUNCS=0
20381 HAVE_SHL_FUNCS=0
20382 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20383 if test "$USE_DARWIN" = 1; then
20384 HAVE_DL_FUNCS=1
20385 else
20386 for ac_func in dlopen
20387 do
20388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20389 echo "configure:20390: checking for $ac_func" >&5
20390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20391 echo $ac_n "(cached) $ac_c" 1>&6
20392 else
20393 cat > conftest.$ac_ext <<EOF
20394 #line 20395 "configure"
20395 #include "confdefs.h"
20396 /* System header to define __stub macros and hopefully few prototypes,
20397 which can conflict with char $ac_func(); below. */
20398 #include <assert.h>
20399 /* Override any gcc2 internal prototype to avoid an error. */
20400 /* We use char because int might match the return type of a gcc2
20401 builtin and then its argument prototype would still apply. */
20402 char $ac_func();
20403
20404 int main() {
20405
20406 /* The GNU C library defines this for functions which it implements
20407 to always fail with ENOSYS. Some functions are actually named
20408 something starting with __ and the normal name is an alias. */
20409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20410 choke me
20411 #else
20412 $ac_func();
20413 #endif
20414
20415 ; return 0; }
20416 EOF
20417 if { (eval echo configure:20418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20418 rm -rf conftest*
20419 eval "ac_cv_func_$ac_func=yes"
20420 else
20421 echo "configure: failed program was:" >&5
20422 cat conftest.$ac_ext >&5
20423 rm -rf conftest*
20424 eval "ac_cv_func_$ac_func=no"
20425 fi
20426 rm -f conftest*
20427 fi
20428
20429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20430 echo "$ac_t""yes" 1>&6
20431 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20432 cat >> confdefs.h <<EOF
20433 #define $ac_tr_func 1
20434 EOF
20435
20436 cat >> confdefs.h <<\EOF
20437 #define HAVE_DLOPEN 1
20438 EOF
20439
20440 HAVE_DL_FUNCS=1
20441
20442 else
20443 echo "$ac_t""no" 1>&6
20444 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20445 echo "configure:20446: checking for dlopen in -ldl" >&5
20446 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20448 echo $ac_n "(cached) $ac_c" 1>&6
20449 else
20450 ac_save_LIBS="$LIBS"
20451 LIBS="-ldl $LIBS"
20452 cat > conftest.$ac_ext <<EOF
20453 #line 20454 "configure"
20454 #include "confdefs.h"
20455 /* Override any gcc2 internal prototype to avoid an error. */
20456 /* We use char because int might match the return type of a gcc2
20457 builtin and then its argument prototype would still apply. */
20458 char dlopen();
20459
20460 int main() {
20461 dlopen()
20462 ; return 0; }
20463 EOF
20464 if { (eval echo configure:20465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20465 rm -rf conftest*
20466 eval "ac_cv_lib_$ac_lib_var=yes"
20467 else
20468 echo "configure: failed program was:" >&5
20469 cat conftest.$ac_ext >&5
20470 rm -rf conftest*
20471 eval "ac_cv_lib_$ac_lib_var=no"
20472 fi
20473 rm -f conftest*
20474 LIBS="$ac_save_LIBS"
20475
20476 fi
20477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20478 echo "$ac_t""yes" 1>&6
20479
20480 cat >> confdefs.h <<\EOF
20481 #define HAVE_DLOPEN 1
20482 EOF
20483
20484 HAVE_DL_FUNCS=1
20485 DL_LINK=" -ldl$DL_LINK"
20486
20487 else
20488 echo "$ac_t""no" 1>&6
20489
20490 for ac_func in shl_load
20491 do
20492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20493 echo "configure:20494: checking for $ac_func" >&5
20494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20495 echo $ac_n "(cached) $ac_c" 1>&6
20496 else
20497 cat > conftest.$ac_ext <<EOF
20498 #line 20499 "configure"
20499 #include "confdefs.h"
20500 /* System header to define __stub macros and hopefully few prototypes,
20501 which can conflict with char $ac_func(); below. */
20502 #include <assert.h>
20503 /* Override any gcc2 internal prototype to avoid an error. */
20504 /* We use char because int might match the return type of a gcc2
20505 builtin and then its argument prototype would still apply. */
20506 char $ac_func();
20507
20508 int main() {
20509
20510 /* The GNU C library defines this for functions which it implements
20511 to always fail with ENOSYS. Some functions are actually named
20512 something starting with __ and the normal name is an alias. */
20513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20514 choke me
20515 #else
20516 $ac_func();
20517 #endif
20518
20519 ; return 0; }
20520 EOF
20521 if { (eval echo configure:20522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20522 rm -rf conftest*
20523 eval "ac_cv_func_$ac_func=yes"
20524 else
20525 echo "configure: failed program was:" >&5
20526 cat conftest.$ac_ext >&5
20527 rm -rf conftest*
20528 eval "ac_cv_func_$ac_func=no"
20529 fi
20530 rm -f conftest*
20531 fi
20532
20533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20534 echo "$ac_t""yes" 1>&6
20535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20536 cat >> confdefs.h <<EOF
20537 #define $ac_tr_func 1
20538 EOF
20539
20540 cat >> confdefs.h <<\EOF
20541 #define HAVE_SHL_LOAD 1
20542 EOF
20543
20544 HAVE_SHL_FUNCS=1
20545
20546 else
20547 echo "$ac_t""no" 1>&6
20548 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20549 echo "configure:20550: checking for dld in -lshl_load" >&5
20550 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20552 echo $ac_n "(cached) $ac_c" 1>&6
20553 else
20554 ac_save_LIBS="$LIBS"
20555 LIBS="-lshl_load $LIBS"
20556 cat > conftest.$ac_ext <<EOF
20557 #line 20558 "configure"
20558 #include "confdefs.h"
20559 /* Override any gcc2 internal prototype to avoid an error. */
20560 /* We use char because int might match the return type of a gcc2
20561 builtin and then its argument prototype would still apply. */
20562 char dld();
20563
20564 int main() {
20565 dld()
20566 ; return 0; }
20567 EOF
20568 if { (eval echo configure:20569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20569 rm -rf conftest*
20570 eval "ac_cv_lib_$ac_lib_var=yes"
20571 else
20572 echo "configure: failed program was:" >&5
20573 cat conftest.$ac_ext >&5
20574 rm -rf conftest*
20575 eval "ac_cv_lib_$ac_lib_var=no"
20576 fi
20577 rm -f conftest*
20578 LIBS="$ac_save_LIBS"
20579
20580 fi
20581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20582 echo "$ac_t""yes" 1>&6
20583
20584 HAVE_SHL_FUNCS=1
20585 DL_LINK=" -ldld$DL_LINK"
20586
20587 else
20588 echo "$ac_t""no" 1>&6
20589 fi
20590
20591
20592 fi
20593 done
20594
20595
20596 fi
20597
20598
20599 fi
20600 done
20601
20602
20603 if test "$HAVE_DL_FUNCS" = 1; then
20604 for ac_func in dlerror
20605 do
20606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20607 echo "configure:20608: checking for $ac_func" >&5
20608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20609 echo $ac_n "(cached) $ac_c" 1>&6
20610 else
20611 cat > conftest.$ac_ext <<EOF
20612 #line 20613 "configure"
20613 #include "confdefs.h"
20614 /* System header to define __stub macros and hopefully few prototypes,
20615 which can conflict with char $ac_func(); below. */
20616 #include <assert.h>
20617 /* Override any gcc2 internal prototype to avoid an error. */
20618 /* We use char because int might match the return type of a gcc2
20619 builtin and then its argument prototype would still apply. */
20620 char $ac_func();
20621
20622 int main() {
20623
20624 /* The GNU C library defines this for functions which it implements
20625 to always fail with ENOSYS. Some functions are actually named
20626 something starting with __ and the normal name is an alias. */
20627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20628 choke me
20629 #else
20630 $ac_func();
20631 #endif
20632
20633 ; return 0; }
20634 EOF
20635 if { (eval echo configure:20636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20636 rm -rf conftest*
20637 eval "ac_cv_func_$ac_func=yes"
20638 else
20639 echo "configure: failed program was:" >&5
20640 cat conftest.$ac_ext >&5
20641 rm -rf conftest*
20642 eval "ac_cv_func_$ac_func=no"
20643 fi
20644 rm -f conftest*
20645 fi
20646
20647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20648 echo "$ac_t""yes" 1>&6
20649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20650 cat >> confdefs.h <<EOF
20651 #define $ac_tr_func 1
20652 EOF
20653 cat >> confdefs.h <<\EOF
20654 #define HAVE_DLERROR 1
20655 EOF
20656
20657 else
20658 echo "$ac_t""no" 1>&6
20659 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
20660 echo "configure:20661: checking for dlerror in -ldl" >&5
20661 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20662 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20663 echo $ac_n "(cached) $ac_c" 1>&6
20664 else
20665 ac_save_LIBS="$LIBS"
20666 LIBS="-ldl $LIBS"
20667 cat > conftest.$ac_ext <<EOF
20668 #line 20669 "configure"
20669 #include "confdefs.h"
20670 /* Override any gcc2 internal prototype to avoid an error. */
20671 /* We use char because int might match the return type of a gcc2
20672 builtin and then its argument prototype would still apply. */
20673 char dlerror();
20674
20675 int main() {
20676 dlerror()
20677 ; return 0; }
20678 EOF
20679 if { (eval echo configure:20680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20680 rm -rf conftest*
20681 eval "ac_cv_lib_$ac_lib_var=yes"
20682 else
20683 echo "configure: failed program was:" >&5
20684 cat conftest.$ac_ext >&5
20685 rm -rf conftest*
20686 eval "ac_cv_lib_$ac_lib_var=no"
20687 fi
20688 rm -f conftest*
20689 LIBS="$ac_save_LIBS"
20690
20691 fi
20692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20693 echo "$ac_t""yes" 1>&6
20694 cat >> confdefs.h <<\EOF
20695 #define HAVE_DLERROR 1
20696 EOF
20697
20698 else
20699 echo "$ac_t""no" 1>&6
20700 fi
20701
20702 fi
20703 done
20704
20705 fi
20706 fi
20707
20708 if test "$HAVE_DL_FUNCS" = 0; then
20709 if test "$HAVE_SHL_FUNCS" = 0; then
20710 if test "$USE_UNIX" = 1; then
20711 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20712 wxUSE_DYNAMIC_LOADER=no
20713 wxUSE_DYNLIB_CLASS=no
20714 else
20715 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20716 fi
20717 fi
20718 fi
20719 fi
20720 fi
20721
20722 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
20723 cat >> confdefs.h <<\EOF
20724 #define wxUSE_DYNAMIC_LOADER 1
20725 EOF
20726
20727 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20728 cat >> confdefs.h <<\EOF
20729 #define wxUSE_DYNLIB_CLASS 1
20730 EOF
20731
20732 fi
20733
20734
20735 if test "$wxUSE_FONTMAP" = "yes" ; then
20736 cat >> confdefs.h <<\EOF
20737 #define wxUSE_FONTMAP 1
20738 EOF
20739
20740 fi
20741
20742 if test "$wxUSE_UNICODE" = "yes" ; then
20743 cat >> confdefs.h <<\EOF
20744 #define wxUSE_UNICODE 1
20745 EOF
20746
20747
20748 if test "$wxUSE_MSW" != 1; then
20749 wxUSE_UNICODE_MSLU=no
20750 fi
20751
20752 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
20753 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
20754 echo "configure:20755: checking for main in -lunicows" >&5
20755 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20757 echo $ac_n "(cached) $ac_c" 1>&6
20758 else
20759 ac_save_LIBS="$LIBS"
20760 LIBS="-lunicows $LIBS"
20761 cat > conftest.$ac_ext <<EOF
20762 #line 20763 "configure"
20763 #include "confdefs.h"
20764
20765 int main() {
20766 main()
20767 ; return 0; }
20768 EOF
20769 if { (eval echo configure:20770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20770 rm -rf conftest*
20771 eval "ac_cv_lib_$ac_lib_var=yes"
20772 else
20773 echo "configure: failed program was:" >&5
20774 cat conftest.$ac_ext >&5
20775 rm -rf conftest*
20776 eval "ac_cv_lib_$ac_lib_var=no"
20777 fi
20778 rm -f conftest*
20779 LIBS="$ac_save_LIBS"
20780
20781 fi
20782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20783 echo "$ac_t""yes" 1>&6
20784
20785 cat >> confdefs.h <<\EOF
20786 #define wxUSE_UNICODE_MSLU 1
20787 EOF
20788
20789
20790 else
20791 echo "$ac_t""no" 1>&6
20792
20793 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20794 Applications will only run on Windows NT/2000/XP!" 1>&2
20795 wxUSE_UNICODE_MSLU=no
20796
20797 fi
20798
20799 fi
20800 fi
20801
20802 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
20803 cat >> confdefs.h <<\EOF
20804 #define wxUSE_EXPERIMENTAL_PRINTF 1
20805 EOF
20806
20807 fi
20808
20809
20810
20811 IODBC_C_SRC=""
20812 if test "$wxUSE_ODBC" = "yes" ; then
20813 cat >> confdefs.h <<\EOF
20814 #define wxUSE_ODBC 1
20815 EOF
20816
20817 WXODBCFLAG="-D_IODBC_"
20818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
20819 fi
20820
20821
20822 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
20823 cat >> confdefs.h <<\EOF
20824 #define wxUSE_POSTSCRIPT 1
20825 EOF
20826
20827 fi
20828
20829 cat >> confdefs.h <<\EOF
20830 #define wxUSE_AFM_FOR_POSTSCRIPT 1
20831 EOF
20832
20833
20834 cat >> confdefs.h <<\EOF
20835 #define wxUSE_NORMALIZED_PS_FONTS 1
20836 EOF
20837
20838
20839
20840 if test "$wxUSE_CONSTRAINTS" = "yes"; then
20841 cat >> confdefs.h <<\EOF
20842 #define wxUSE_CONSTRAINTS 1
20843 EOF
20844
20845 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20846 fi
20847
20848 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20849
20850
20851 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20852 cat >> confdefs.h <<\EOF
20853 #define wxUSE_MDI_ARCHITECTURE 1
20854 EOF
20855
20856 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20857 fi
20858 fi
20859
20860 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
20861 cat >> confdefs.h <<\EOF
20862 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
20863 EOF
20864
20865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20866 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20867 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
20868 fi
20869 fi
20870
20871 if test "$wxUSE_HELP" = "yes"; then
20872 cat >> confdefs.h <<\EOF
20873 #define wxUSE_HELP 1
20874 EOF
20875
20876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
20877
20878 if test "$wxUSE_MSW" = 1; then
20879 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
20880 cat >> confdefs.h <<\EOF
20881 #define wxUSE_MS_HTML_HELP 1
20882 EOF
20883
20884 fi
20885 fi
20886
20887 if test "$wxUSE_WXHTML_HELP" = "yes"; then
20888 if test "$wxUSE_HTML" = "yes"; then
20889 cat >> confdefs.h <<\EOF
20890 #define wxUSE_WXHTML_HELP 1
20891 EOF
20892
20893 else
20894 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
20895 wxUSE_WXHTML_HELP=no
20896 fi
20897 fi
20898 fi
20899
20900 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20901 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20902 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
20903 else
20904 cat >> confdefs.h <<\EOF
20905 #define wxUSE_PRINTING_ARCHITECTURE 1
20906 EOF
20907
20908 fi
20909 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
20910 fi
20911
20912
20913
20914 if test "$wxUSE_X_RESOURCES" = "yes"; then
20915 cat >> confdefs.h <<\EOF
20916 #define wxUSE_X_RESOURCES 1
20917 EOF
20918
20919 fi
20920
20921
20922 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20923 -o "$wxUSE_CLIPBOARD" = "yes" \
20924 -o "$wxUSE_OLE" = "yes" \
20925 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20926 for ac_hdr in ole2.h
20927 do
20928 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20929 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20930 echo "configure:20931: checking for $ac_hdr" >&5
20931 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20932 echo $ac_n "(cached) $ac_c" 1>&6
20933 else
20934 cat > conftest.$ac_ext <<EOF
20935 #line 20936 "configure"
20936 #include "confdefs.h"
20937 #include <$ac_hdr>
20938 EOF
20939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20940 { (eval echo configure:20941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20942 if test -z "$ac_err"; then
20943 rm -rf conftest*
20944 eval "ac_cv_header_$ac_safe=yes"
20945 else
20946 echo "$ac_err" >&5
20947 echo "configure: failed program was:" >&5
20948 cat conftest.$ac_ext >&5
20949 rm -rf conftest*
20950 eval "ac_cv_header_$ac_safe=no"
20951 fi
20952 rm -f conftest*
20953 fi
20954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20955 echo "$ac_t""yes" 1>&6
20956 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20957 cat >> confdefs.h <<EOF
20958 #define $ac_tr_hdr 1
20959 EOF
20960
20961 else
20962 echo "$ac_t""no" 1>&6
20963 fi
20964 done
20965
20966
20967 if test "$ac_cv_header_ole2_h" = "yes" ; then
20968 if test "$GCC" = yes ; then
20969
20970 ac_ext=C
20971 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20972 ac_cpp='$CXXCPP $CPPFLAGS'
20973 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20974 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20975 cross_compiling=$ac_cv_prog_cxx_cross
20976
20977
20978 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
20979 echo "configure:20980: checking if g++ requires -fvtable-thunks" >&5
20980 cat > conftest.$ac_ext <<EOF
20981 #line 20982 "configure"
20982 #include "confdefs.h"
20983 #include <windows.h>
20984 #include <ole2.h>
20985 int main() {
20986
20987 ; return 0; }
20988 EOF
20989 if { (eval echo configure:20990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20990 rm -rf conftest*
20991 echo "$ac_t""no" 1>&6
20992 else
20993 echo "configure: failed program was:" >&5
20994 cat conftest.$ac_ext >&5
20995 rm -rf conftest*
20996 echo "$ac_t""yes" 1>&6
20997 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20998 fi
20999 rm -f conftest*
21000 ac_ext=c
21001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21002 ac_cpp='$CPP $CPPFLAGS'
21003 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21004 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21005 cross_compiling=$ac_cv_prog_cc_cross
21006
21007 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21008 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21009 cat >> confdefs.h <<\EOF
21010 #define wxUSE_OLE 1
21011 EOF
21012
21013
21014 fi
21015
21016 cat >> confdefs.h <<\EOF
21017 #define wxUSE_DATAOBJ 1
21018 EOF
21019
21020 else
21021 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21022
21023 wxUSE_CLIPBOARD=no
21024 wxUSE_DRAG_AND_DROP=no
21025 wxUSE_DATAOBJ=no
21026 wxUSE_OLE=no
21027 fi
21028
21029 if test "$wxUSE_METAFILE" = "yes"; then
21030 cat >> confdefs.h <<\EOF
21031 #define wxUSE_METAFILE 1
21032 EOF
21033
21034
21035 cat >> confdefs.h <<\EOF
21036 #define wxUSE_ENH_METAFILE 1
21037 EOF
21038
21039 fi
21040 fi
21041
21042 if test "$wxUSE_IPC" = "yes"; then
21043 if test "$wxUSE_SOCKETS" != "yes"; then
21044 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21045 fi
21046
21047 cat >> confdefs.h <<\EOF
21048 #define wxUSE_IPC 1
21049 EOF
21050
21051 fi
21052
21053 if test "$wxUSE_CLIPBOARD" = "yes"; then
21054 if test "$wxUSE_MGL" = 1; then
21055 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21056 wxUSE_CLIPBOARD=no
21057 fi
21058
21059 if test "$wxUSE_CLIPBOARD" = "yes"; then
21060 cat >> confdefs.h <<\EOF
21061 #define wxUSE_CLIPBOARD 1
21062 EOF
21063
21064
21065 cat >> confdefs.h <<\EOF
21066 #define wxUSE_DATAOBJ 1
21067 EOF
21068
21069 fi
21070 fi
21071
21072 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21073 if test "$wxUSE_GTK" = 1; then
21074 if test "$WXGTK12" != 1; then
21075 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21076 wxUSE_DRAG_AND_DROP=no
21077 fi
21078 fi
21079
21080 if test "$wxUSE_MOTIF" = 1; then
21081 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21082 wxUSE_DRAG_AND_DROP=no
21083 fi
21084
21085 if test "$wxUSE_X11" = 1; then
21086 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21087 wxUSE_DRAG_AND_DROP=no
21088 fi
21089
21090 if test "$wxUSE_MGL" = 1; then
21091 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21092 wxUSE_DRAG_AND_DROP=no
21093 fi
21094
21095 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21096 cat >> confdefs.h <<\EOF
21097 #define wxUSE_DRAG_AND_DROP 1
21098 EOF
21099
21100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21101 fi
21102
21103 fi
21104
21105 if test "$wxUSE_SPLINES" = "yes" ; then
21106 cat >> confdefs.h <<\EOF
21107 #define wxUSE_SPLINES 1
21108 EOF
21109
21110 fi
21111
21112
21113 USES_CONTROLS=0
21114 if test "$wxUSE_CONTROLS" = "yes"; then
21115 USES_CONTROLS=1
21116 fi
21117
21118 if test "$wxUSE_ACCEL" = "yes"; then
21119 cat >> confdefs.h <<\EOF
21120 #define wxUSE_ACCEL 1
21121 EOF
21122
21123 USES_CONTROLS=1
21124 fi
21125
21126 if test "$wxUSE_BUTTON" = "yes"; then
21127 cat >> confdefs.h <<\EOF
21128 #define wxUSE_BUTTON 1
21129 EOF
21130
21131 USES_CONTROLS=1
21132 fi
21133
21134 if test "$wxUSE_BMPBUTTON" = "yes"; then
21135 cat >> confdefs.h <<\EOF
21136 #define wxUSE_BMPBUTTON 1
21137 EOF
21138
21139 USES_CONTROLS=1
21140 fi
21141
21142 if test "$wxUSE_CALCTRL" = "yes"; then
21143 cat >> confdefs.h <<\EOF
21144 #define wxUSE_CALENDARCTRL 1
21145 EOF
21146
21147 USES_CONTROLS=1
21148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21149 fi
21150
21151 if test "$wxUSE_CARET" = "yes"; then
21152 cat >> confdefs.h <<\EOF
21153 #define wxUSE_CARET 1
21154 EOF
21155
21156 USES_CONTROLS=1
21157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21158 fi
21159
21160 if test "$wxUSE_COMBOBOX" = "yes"; then
21161 cat >> confdefs.h <<\EOF
21162 #define wxUSE_COMBOBOX 1
21163 EOF
21164
21165 USES_CONTROLS=1
21166 fi
21167
21168 if test "$wxUSE_CHOICE" = "yes"; then
21169 cat >> confdefs.h <<\EOF
21170 #define wxUSE_CHOICE 1
21171 EOF
21172
21173 USES_CONTROLS=1
21174 fi
21175
21176 if test "$wxUSE_CHECKBOX" = "yes"; then
21177 cat >> confdefs.h <<\EOF
21178 #define wxUSE_CHECKBOX 1
21179 EOF
21180
21181 USES_CONTROLS=1
21182 fi
21183
21184 if test "$wxUSE_CHECKLST" = "yes"; then
21185 cat >> confdefs.h <<\EOF
21186 #define wxUSE_CHECKLISTBOX 1
21187 EOF
21188
21189 USES_CONTROLS=1
21190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21191 fi
21192
21193 if test "$wxUSE_DISPLAY" = "yes"; then
21194 cat >> confdefs.h <<\EOF
21195 #define wxUSE_DISPLAY 1
21196 EOF
21197
21198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21199 fi
21200
21201 if test "$wxUSE_GAUGE" = "yes"; then
21202 cat >> confdefs.h <<\EOF
21203 #define wxUSE_GAUGE 1
21204 EOF
21205
21206 USES_CONTROLS=1
21207 fi
21208
21209 if test "$wxUSE_GRID" = "yes"; then
21210 cat >> confdefs.h <<\EOF
21211 #define wxUSE_GRID 1
21212 EOF
21213
21214 USES_CONTROLS=1
21215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21216 fi
21217
21218 if test "$wxUSE_IMAGLIST" = "yes"; then
21219 cat >> confdefs.h <<\EOF
21220 #define wxUSE_IMAGLIST 1
21221 EOF
21222
21223 fi
21224
21225 if test "$wxUSE_LISTBOX" = "yes"; then
21226 cat >> confdefs.h <<\EOF
21227 #define wxUSE_LISTBOX 1
21228 EOF
21229
21230 USES_CONTROLS=1
21231 fi
21232
21233 if test "$wxUSE_LISTCTRL" = "yes"; then
21234 if test "$wxUSE_IMAGLIST" = "yes"; then
21235 cat >> confdefs.h <<\EOF
21236 #define wxUSE_LISTCTRL 1
21237 EOF
21238
21239 USES_CONTROLS=1
21240 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21241 else
21242 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21243 fi
21244 fi
21245
21246 if test "$wxUSE_NOTEBOOK" = "yes"; then
21247 cat >> confdefs.h <<\EOF
21248 #define wxUSE_NOTEBOOK 1
21249 EOF
21250
21251 USES_CONTROLS=1
21252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21253 fi
21254
21255
21256 if test "$wxUSE_RADIOBOX" = "yes"; then
21257 cat >> confdefs.h <<\EOF
21258 #define wxUSE_RADIOBOX 1
21259 EOF
21260
21261 USES_CONTROLS=1
21262 fi
21263
21264 if test "$wxUSE_RADIOBTN" = "yes"; then
21265 cat >> confdefs.h <<\EOF
21266 #define wxUSE_RADIOBTN 1
21267 EOF
21268
21269 USES_CONTROLS=1
21270 fi
21271
21272 if test "$wxUSE_SASH" = "yes"; then
21273 cat >> confdefs.h <<\EOF
21274 #define wxUSE_SASH 1
21275 EOF
21276
21277 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21278 fi
21279
21280 if test "$wxUSE_SCROLLBAR" = "yes"; then
21281 cat >> confdefs.h <<\EOF
21282 #define wxUSE_SCROLLBAR 1
21283 EOF
21284
21285 USES_CONTROLS=1
21286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21287 fi
21288
21289 if test "$wxUSE_SLIDER" = "yes"; then
21290 cat >> confdefs.h <<\EOF
21291 #define wxUSE_SLIDER 1
21292 EOF
21293
21294 USES_CONTROLS=1
21295 fi
21296
21297 if test "$wxUSE_SPINBTN" = "yes"; then
21298 cat >> confdefs.h <<\EOF
21299 #define wxUSE_SPINBTN 1
21300 EOF
21301
21302 USES_CONTROLS=1
21303 fi
21304
21305 if test "$wxUSE_SPINCTRL" = "yes"; then
21306 cat >> confdefs.h <<\EOF
21307 #define wxUSE_SPINCTRL 1
21308 EOF
21309
21310 USES_CONTROLS=1
21311 fi
21312
21313 if test "$wxUSE_SPLITTER" = "yes"; then
21314 cat >> confdefs.h <<\EOF
21315 #define wxUSE_SPLITTER 1
21316 EOF
21317
21318 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21319 fi
21320
21321 if test "$wxUSE_STATBMP" = "yes"; then
21322 cat >> confdefs.h <<\EOF
21323 #define wxUSE_STATBMP 1
21324 EOF
21325
21326 USES_CONTROLS=1
21327 fi
21328
21329 if test "$wxUSE_STATBOX" = "yes"; then
21330 cat >> confdefs.h <<\EOF
21331 #define wxUSE_STATBOX 1
21332 EOF
21333
21334 USES_CONTROLS=1
21335 fi
21336
21337 if test "$wxUSE_STATTEXT" = "yes"; then
21338 cat >> confdefs.h <<\EOF
21339 #define wxUSE_STATTEXT 1
21340 EOF
21341
21342 USES_CONTROLS=1
21343 fi
21344
21345 if test "$wxUSE_STATLINE" = "yes"; then
21346 cat >> confdefs.h <<\EOF
21347 #define wxUSE_STATLINE 1
21348 EOF
21349
21350 USES_CONTROLS=1
21351 fi
21352
21353 if test "$wxUSE_STATUSBAR" = "yes"; then
21354 cat >> confdefs.h <<\EOF
21355 #define wxUSE_STATUSBAR 1
21356 EOF
21357
21358 USES_CONTROLS=1
21359
21360 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21361 fi
21362
21363 if test "$wxUSE_TABDIALOG" = "yes"; then
21364 cat >> confdefs.h <<\EOF
21365 #define wxUSE_TAB_DIALOG 1
21366 EOF
21367
21368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21369 fi
21370
21371 if test "$wxUSE_TEXTCTRL" = "yes"; then
21372 cat >> confdefs.h <<\EOF
21373 #define wxUSE_TEXTCTRL 1
21374 EOF
21375
21376 USES_CONTROLS=1
21377 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21378 fi
21379
21380 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21381 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21382 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21383 wxUSE_TOGGLEBTN=no
21384 fi
21385 if test "$wxUSE_UNIVERSAL" = "yes"; then
21386 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21387 wxUSE_TOGGLEBTN=no
21388 fi
21389
21390 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21391 cat >> confdefs.h <<\EOF
21392 #define wxUSE_TOGGLEBTN 1
21393 EOF
21394
21395 USES_CONTROLS=1
21396 fi
21397 fi
21398
21399 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21400 cat >> confdefs.h <<\EOF
21401 #define wxUSE_TOOLBAR_SIMPLE 1
21402 EOF
21403
21404 wxUSE_TOOLBAR="yes"
21405 USES_CONTROLS=1
21406 fi
21407
21408 if test "$wxUSE_TOOLBAR" = "yes"; then
21409 cat >> confdefs.h <<\EOF
21410 #define wxUSE_TOOLBAR 1
21411 EOF
21412
21413 USES_CONTROLS=1
21414
21415 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21416 wxUSE_TOOLBAR_NATIVE="yes"
21417 fi
21418
21419 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21420 cat >> confdefs.h <<\EOF
21421 #define wxUSE_TOOLBAR_NATIVE 1
21422 EOF
21423
21424 USES_CONTROLS=1
21425 fi
21426
21427 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21428 fi
21429
21430 if test "$wxUSE_TOOLTIPS" = "yes"; then
21431 if test "$wxUSE_MOTIF" = 1; then
21432 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21433 else
21434 if test "$wxUSE_UNIVERSAL" = "yes"; then
21435 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21436 else
21437 cat >> confdefs.h <<\EOF
21438 #define wxUSE_TOOLTIPS 1
21439 EOF
21440
21441 fi
21442 fi
21443 fi
21444
21445 if test "$wxUSE_TREECTRL" = "yes"; then
21446 if test "$wxUSE_IMAGLIST" = "yes"; then
21447 cat >> confdefs.h <<\EOF
21448 #define wxUSE_TREECTRL 1
21449 EOF
21450
21451 USES_CONTROLS=1
21452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21453 else
21454 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21455 fi
21456 fi
21457
21458 if test "$wxUSE_POPUPWIN" = "yes"; then
21459 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21460 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21461 else
21462 if test "$wxUSE_MOTIF" = 1; then
21463 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21464 else
21465 if test "$wxUSE_PM" = 1; then
21466 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21467 else
21468 cat >> confdefs.h <<\EOF
21469 #define wxUSE_POPUPWIN 1
21470 EOF
21471
21472
21473 USES_CONTROLS=1
21474 fi
21475 fi
21476 fi
21477 fi
21478
21479 if test "$wxUSE_TIPWINDOW" = "yes"; then
21480 if test "$wxUSE_PM" = 1; then
21481 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21482 else
21483 cat >> confdefs.h <<\EOF
21484 #define wxUSE_TIPWINDOW 1
21485 EOF
21486
21487 fi
21488 fi
21489
21490 if test "$USES_CONTROLS" = 1; then
21491 cat >> confdefs.h <<\EOF
21492 #define wxUSE_CONTROLS 1
21493 EOF
21494
21495 fi
21496
21497
21498
21499 if test "$wxUSE_DRAGIMAGE" = "yes"; then
21500 cat >> confdefs.h <<\EOF
21501 #define wxUSE_DRAGIMAGE 1
21502 EOF
21503
21504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21505 fi
21506
21507 if test "$wxUSE_MENUS" = "yes"; then
21508 cat >> confdefs.h <<\EOF
21509 #define wxUSE_MENUS 1
21510 EOF
21511
21512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21513 fi
21514
21515 if test "$wxUSE_METAFILE" = "yes"; then
21516 cat >> confdefs.h <<\EOF
21517 #define wxUSE_METAFILE 1
21518 EOF
21519
21520 fi
21521
21522 if test "$wxUSE_MIMETYPE" = "yes"; then
21523 cat >> confdefs.h <<\EOF
21524 #define wxUSE_MIMETYPE 1
21525 EOF
21526
21527 fi
21528
21529 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21530 cat >> confdefs.h <<\EOF
21531 #define wxUSE_SYSTEM_OPTIONS 1
21532 EOF
21533
21534 if test "$TOOLKIT" = "MSW"; then
21535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21536 fi
21537
21538 fi
21539
21540 if test "$wxUSE_PROTOCOL" = "yes"; then
21541 if test "$wxUSE_SOCKETS" != "yes"; then
21542 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21543 wxUSE_PROTOCOL=no
21544 fi
21545
21546 if test "$wxUSE_PROTOCOL" = "yes"; then
21547 cat >> confdefs.h <<\EOF
21548 #define wxUSE_PROTOCOL 1
21549 EOF
21550
21551
21552 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21553 cat >> confdefs.h <<\EOF
21554 #define wxUSE_PROTOCOL_HTTP 1
21555 EOF
21556
21557 fi
21558 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21559 cat >> confdefs.h <<\EOF
21560 #define wxUSE_PROTOCOL_FTP 1
21561 EOF
21562
21563 fi
21564 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21565 cat >> confdefs.h <<\EOF
21566 #define wxUSE_PROTOCOL_FILE 1
21567 EOF
21568
21569 fi
21570 fi
21571 fi
21572
21573 if test "$wxUSE_URL" = "yes"; then
21574 if test "$wxUSE_PROTOCOL" != "yes"; then
21575 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21576 wxUSE_URL=no
21577 fi
21578 if test "$wxUSE_URL" = "yes"; then
21579 cat >> confdefs.h <<\EOF
21580 #define wxUSE_URL 1
21581 EOF
21582
21583 fi
21584 fi
21585
21586 if test "$wxUSE_MINIFRAME" = "yes"; then
21587 cat >> confdefs.h <<\EOF
21588 #define wxUSE_MINIFRAME 1
21589 EOF
21590
21591 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21592 fi
21593
21594 if test "$wxUSE_HTML" = "yes"; then
21595 cat >> confdefs.h <<\EOF
21596 #define wxUSE_HTML 1
21597 EOF
21598
21599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21600 fi
21601
21602 if test "$wxUSE_VALIDATORS" = "yes"; then
21603 cat >> confdefs.h <<\EOF
21604 #define wxUSE_VALIDATORS 1
21605 EOF
21606
21607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21608 fi
21609
21610 if test "$wxUSE_PALETTE" = "yes" ; then
21611 cat >> confdefs.h <<\EOF
21612 #define wxUSE_PALETTE 1
21613 EOF
21614
21615 fi
21616
21617 if test "$wxUSE_IMAGE" = "yes" ; then
21618 cat >> confdefs.h <<\EOF
21619 #define wxUSE_IMAGE 1
21620 EOF
21621
21622 fi
21623
21624 if test "$wxUSE_GIF" = "yes" ; then
21625 cat >> confdefs.h <<\EOF
21626 #define wxUSE_GIF 1
21627 EOF
21628
21629 fi
21630
21631 if test "$wxUSE_PCX" = "yes" ; then
21632 cat >> confdefs.h <<\EOF
21633 #define wxUSE_PCX 1
21634 EOF
21635
21636 fi
21637
21638 if test "$wxUSE_IFF" = "yes" ; then
21639 cat >> confdefs.h <<\EOF
21640 #define wxUSE_IFF 1
21641 EOF
21642
21643 fi
21644
21645 if test "$wxUSE_PNM" = "yes" ; then
21646 cat >> confdefs.h <<\EOF
21647 #define wxUSE_PNM 1
21648 EOF
21649
21650 fi
21651
21652 if test "$wxUSE_XPM" = "yes" ; then
21653 cat >> confdefs.h <<\EOF
21654 #define wxUSE_XPM 1
21655 EOF
21656
21657 fi
21658
21659 if test "$wxUSE_ICO_CUR" = "yes" ; then
21660 cat >> confdefs.h <<\EOF
21661 #define wxUSE_ICO_CUR 1
21662 EOF
21663
21664 fi
21665
21666 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21667 LIBS=" -lunicows $LIBS"
21668 fi
21669
21670
21671 if test "$wxUSE_CHOICEDLG" = "yes"; then
21672 cat >> confdefs.h <<\EOF
21673 #define wxUSE_CHOICEDLG 1
21674 EOF
21675
21676 fi
21677
21678 if test "$wxUSE_COLOURDLG" = "yes"; then
21679 cat >> confdefs.h <<\EOF
21680 #define wxUSE_COLOURDLG 1
21681 EOF
21682
21683 fi
21684
21685 if test "$wxUSE_FILEDLG" = "yes"; then
21686 cat >> confdefs.h <<\EOF
21687 #define wxUSE_FILEDLG 1
21688 EOF
21689
21690 fi
21691
21692 if test "$wxUSE_FINDREPLDLG" = "yes"; then
21693 cat >> confdefs.h <<\EOF
21694 #define wxUSE_FINDREPLDLG 1
21695 EOF
21696
21697 fi
21698
21699 if test "$wxUSE_FONTDLG" = "yes"; then
21700 cat >> confdefs.h <<\EOF
21701 #define wxUSE_FONTDLG 1
21702 EOF
21703
21704 fi
21705
21706 if test "$wxUSE_DIRDLG" = "yes"; then
21707 if test "$wxUSE_TREECTRL" != "yes"; then
21708 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
21709 else
21710 cat >> confdefs.h <<\EOF
21711 #define wxUSE_DIRDLG 1
21712 EOF
21713
21714 fi
21715 fi
21716
21717 if test "$wxUSE_MSGDLG" = "yes"; then
21718 cat >> confdefs.h <<\EOF
21719 #define wxUSE_MSGDLG 1
21720 EOF
21721
21722 fi
21723
21724 if test "$wxUSE_NUMBERDLG" = "yes"; then
21725 cat >> confdefs.h <<\EOF
21726 #define wxUSE_NUMBERDLG 1
21727 EOF
21728
21729 fi
21730
21731 if test "$wxUSE_PROGRESSDLG" = "yes"; then
21732 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21733 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
21734 else
21735 cat >> confdefs.h <<\EOF
21736 #define wxUSE_PROGRESSDLG 1
21737 EOF
21738
21739 fi
21740 fi
21741
21742 if test "$wxUSE_SPLASH" = "yes"; then
21743 cat >> confdefs.h <<\EOF
21744 #define wxUSE_SPLASH 1
21745 EOF
21746
21747 fi
21748
21749 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21750 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21751 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
21752 else
21753 cat >> confdefs.h <<\EOF
21754 #define wxUSE_STARTUP_TIPS 1
21755 EOF
21756
21757 fi
21758 fi
21759
21760 if test "$wxUSE_TEXTDLG" = "yes"; then
21761 cat >> confdefs.h <<\EOF
21762 #define wxUSE_TEXTDLG 1
21763 EOF
21764
21765 fi
21766
21767 if test "$wxUSE_WIZARDDLG" = "yes"; then
21768 cat >> confdefs.h <<\EOF
21769 #define wxUSE_WIZARDDLG 1
21770 EOF
21771
21772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21773 fi
21774
21775
21776 if test "$cross_compiling" = "yes"; then
21777 OSINFO="\"$host\""
21778 else
21779 OSINFO=`uname -s -r -m`
21780 OSINFO="\"$OSINFO\""
21781 fi
21782
21783 cat >> confdefs.h <<EOF
21784 #define WXWIN_OS_DESCRIPTION $OSINFO
21785 EOF
21786
21787
21788
21789 if test "x$prefix" != "xNONE"; then
21790 wxPREFIX=$prefix
21791 else
21792 wxPREFIX=$ac_default_prefix
21793 fi
21794
21795 cat >> confdefs.h <<EOF
21796 #define wxINSTALL_PREFIX "$wxPREFIX"
21797 EOF
21798
21799
21800 top_builddir=`pwd`
21801
21802
21803
21804
21805 if test "$wxUSE_MAC" = 1 ; then
21806 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21807 fi
21808 if test "$wxUSE_COCOA" = 1 ; then
21809 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
21810 fi
21811
21812
21813 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
21814
21815 have_cos=0
21816 have_floor=0
21817 for ac_func in cos
21818 do
21819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21820 echo "configure:21821: checking for $ac_func" >&5
21821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21822 echo $ac_n "(cached) $ac_c" 1>&6
21823 else
21824 cat > conftest.$ac_ext <<EOF
21825 #line 21826 "configure"
21826 #include "confdefs.h"
21827 /* System header to define __stub macros and hopefully few prototypes,
21828 which can conflict with char $ac_func(); below. */
21829 #include <assert.h>
21830 /* Override any gcc2 internal prototype to avoid an error. */
21831 /* We use char because int might match the return type of a gcc2
21832 builtin and then its argument prototype would still apply. */
21833 char $ac_func();
21834
21835 int main() {
21836
21837 /* The GNU C library defines this for functions which it implements
21838 to always fail with ENOSYS. Some functions are actually named
21839 something starting with __ and the normal name is an alias. */
21840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21841 choke me
21842 #else
21843 $ac_func();
21844 #endif
21845
21846 ; return 0; }
21847 EOF
21848 if { (eval echo configure:21849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21849 rm -rf conftest*
21850 eval "ac_cv_func_$ac_func=yes"
21851 else
21852 echo "configure: failed program was:" >&5
21853 cat conftest.$ac_ext >&5
21854 rm -rf conftest*
21855 eval "ac_cv_func_$ac_func=no"
21856 fi
21857 rm -f conftest*
21858 fi
21859
21860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21861 echo "$ac_t""yes" 1>&6
21862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21863 cat >> confdefs.h <<EOF
21864 #define $ac_tr_func 1
21865 EOF
21866 have_cos=1
21867 else
21868 echo "$ac_t""no" 1>&6
21869 fi
21870 done
21871
21872 for ac_func in floor
21873 do
21874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21875 echo "configure:21876: checking for $ac_func" >&5
21876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21877 echo $ac_n "(cached) $ac_c" 1>&6
21878 else
21879 cat > conftest.$ac_ext <<EOF
21880 #line 21881 "configure"
21881 #include "confdefs.h"
21882 /* System header to define __stub macros and hopefully few prototypes,
21883 which can conflict with char $ac_func(); below. */
21884 #include <assert.h>
21885 /* Override any gcc2 internal prototype to avoid an error. */
21886 /* We use char because int might match the return type of a gcc2
21887 builtin and then its argument prototype would still apply. */
21888 char $ac_func();
21889
21890 int main() {
21891
21892 /* The GNU C library defines this for functions which it implements
21893 to always fail with ENOSYS. Some functions are actually named
21894 something starting with __ and the normal name is an alias. */
21895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21896 choke me
21897 #else
21898 $ac_func();
21899 #endif
21900
21901 ; return 0; }
21902 EOF
21903 if { (eval echo configure:21904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21904 rm -rf conftest*
21905 eval "ac_cv_func_$ac_func=yes"
21906 else
21907 echo "configure: failed program was:" >&5
21908 cat conftest.$ac_ext >&5
21909 rm -rf conftest*
21910 eval "ac_cv_func_$ac_func=no"
21911 fi
21912 rm -f conftest*
21913 fi
21914
21915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21916 echo "$ac_t""yes" 1>&6
21917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21918 cat >> confdefs.h <<EOF
21919 #define $ac_tr_func 1
21920 EOF
21921 have_floor=1
21922 else
21923 echo "$ac_t""no" 1>&6
21924 fi
21925 done
21926
21927 echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
21928 echo "configure:21929: checking if floating point functions link without -lm" >&5
21929 if test "$have_cos" = 1 -a "$have_floor" = 1; then
21930 echo "$ac_t""yes" 1>&6
21931 else
21932 echo "$ac_t""no" 1>&6
21933 LIBS="$LIBS -lm"
21934 # use different functions to avoid configure caching
21935 have_sin=0
21936 have_ceil=0
21937 for ac_func in sin
21938 do
21939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21940 echo "configure:21941: checking for $ac_func" >&5
21941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21942 echo $ac_n "(cached) $ac_c" 1>&6
21943 else
21944 cat > conftest.$ac_ext <<EOF
21945 #line 21946 "configure"
21946 #include "confdefs.h"
21947 /* System header to define __stub macros and hopefully few prototypes,
21948 which can conflict with char $ac_func(); below. */
21949 #include <assert.h>
21950 /* Override any gcc2 internal prototype to avoid an error. */
21951 /* We use char because int might match the return type of a gcc2
21952 builtin and then its argument prototype would still apply. */
21953 char $ac_func();
21954
21955 int main() {
21956
21957 /* The GNU C library defines this for functions which it implements
21958 to always fail with ENOSYS. Some functions are actually named
21959 something starting with __ and the normal name is an alias. */
21960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21961 choke me
21962 #else
21963 $ac_func();
21964 #endif
21965
21966 ; return 0; }
21967 EOF
21968 if { (eval echo configure:21969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21969 rm -rf conftest*
21970 eval "ac_cv_func_$ac_func=yes"
21971 else
21972 echo "configure: failed program was:" >&5
21973 cat conftest.$ac_ext >&5
21974 rm -rf conftest*
21975 eval "ac_cv_func_$ac_func=no"
21976 fi
21977 rm -f conftest*
21978 fi
21979
21980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21981 echo "$ac_t""yes" 1>&6
21982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21983 cat >> confdefs.h <<EOF
21984 #define $ac_tr_func 1
21985 EOF
21986 have_sin=1
21987 else
21988 echo "$ac_t""no" 1>&6
21989 fi
21990 done
21991
21992 for ac_func in ceil
21993 do
21994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21995 echo "configure:21996: checking for $ac_func" >&5
21996 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21997 echo $ac_n "(cached) $ac_c" 1>&6
21998 else
21999 cat > conftest.$ac_ext <<EOF
22000 #line 22001 "configure"
22001 #include "confdefs.h"
22002 /* System header to define __stub macros and hopefully few prototypes,
22003 which can conflict with char $ac_func(); below. */
22004 #include <assert.h>
22005 /* Override any gcc2 internal prototype to avoid an error. */
22006 /* We use char because int might match the return type of a gcc2
22007 builtin and then its argument prototype would still apply. */
22008 char $ac_func();
22009
22010 int main() {
22011
22012 /* The GNU C library defines this for functions which it implements
22013 to always fail with ENOSYS. Some functions are actually named
22014 something starting with __ and the normal name is an alias. */
22015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22016 choke me
22017 #else
22018 $ac_func();
22019 #endif
22020
22021 ; return 0; }
22022 EOF
22023 if { (eval echo configure:22024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22024 rm -rf conftest*
22025 eval "ac_cv_func_$ac_func=yes"
22026 else
22027 echo "configure: failed program was:" >&5
22028 cat conftest.$ac_ext >&5
22029 rm -rf conftest*
22030 eval "ac_cv_func_$ac_func=no"
22031 fi
22032 rm -f conftest*
22033 fi
22034
22035 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22036 echo "$ac_t""yes" 1>&6
22037 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22038 cat >> confdefs.h <<EOF
22039 #define $ac_tr_func 1
22040 EOF
22041 have_ceil=1
22042 else
22043 echo "$ac_t""no" 1>&6
22044 fi
22045 done
22046
22047 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22048 echo "configure:22049: checking if floating point functions link with -lm" >&5
22049 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22050 echo "$ac_t""yes" 1>&6
22051 else
22052 echo "$ac_t""no" 1>&6
22053 # not sure we should warn the user, crash, etc.
22054 fi
22055 fi
22056
22057 if test "$wxUSE_GUI" = "yes"; then
22058
22059 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22060
22061
22062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22063 drawing dynamic erase event exec font image \
22064 minimal propsize rotate shaped widgets"
22065
22066 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22067 else
22068 SAMPLES_SUBDIRS="console"
22069 fi
22070
22071
22072 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22073 -I\${top_srcdir}/include \
22074 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22075 $TOOLKIT_INCLUDE"
22076
22077 if test "$wxUSE_GTK" = 1; then
22078 WXCONFIG_INCLUDE=
22079 else
22080 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22081 fi
22082
22083 if test "$GXX" = yes ; then
22084 CXXWARNINGS="-Wall"
22085
22086 if test "$wxUSE_NO_DEPS" = "no" ; then
22087 CFLAGS="-MMD $CFLAGS"
22088 CXXFLAGS="-MMD $CXXFLAGS"
22089 fi
22090 fi
22091
22092 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22093
22094 CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22095 CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22096 CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22097 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22098
22099 LDFLAGS="$LDFLAGS $PROFILE"
22100
22101 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22204 echo "configure:22205: checking whether ${MAKE-make} sets \${MAKE}" >&5
22205 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22206 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22207 echo $ac_n "(cached) $ac_c" 1>&6
22208 else
22209 cat > conftestmake <<\EOF
22210 all:
22211 @echo 'ac_maketemp="${MAKE}"'
22212 EOF
22213 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22214 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22215 if test -n "$ac_maketemp"; then
22216 eval ac_cv_prog_make_${ac_make}_set=yes
22217 else
22218 eval ac_cv_prog_make_${ac_make}_set=no
22219 fi
22220 rm -f conftestmake
22221 fi
22222 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22223 echo "$ac_t""yes" 1>&6
22224 SET_MAKE=
22225 else
22226 echo "$ac_t""no" 1>&6
22227 SET_MAKE="MAKE=${MAKE-make}"
22228 fi
22229
22230
22231 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22232 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22233 fi
22234
22235
22236
22237 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22238 wx_cv_if_gnu_make=$IF_GNU_MAKE
22239 wx_cv_path_ifs=$PATH_IFS
22240 wx_cv_program_ext=$PROGRAM_EXT
22241 wx_cv_target_library=$WX_TARGET_LIBRARY
22242 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22243 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22244 wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22245 wx_cv_release=${WX_RELEASE}
22246 wx_cv_current=${WX_CURRENT}
22247 wx_cv_revision=${WX_REVISION}
22248 wx_cv_age=${WX_AGE}
22249 wx_cv_use_gui=${USE_GUI}
22250 wx_cv_use_resources=${wxUSE_RESOURCES}
22251 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22252 wx_cv_path_ifs wx_cv_program_ext \
22253 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22254 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22255 wx_cv_use_gui wx_cv_use_resources
22256
22257 subdirs="demos samples utils contrib"
22258
22259
22260 trap '' 1 2 15
22261 cat > confcache <<\EOF
22262 # This file is a shell script that caches the results of configure
22263 # tests run on this system so they can be shared between configure
22264 # scripts and configure runs. It is not useful on other systems.
22265 # If it contains results you don't want to keep, you may remove or edit it.
22266 #
22267 # By default, configure uses ./config.cache as the cache file,
22268 # creating it if it does not exist already. You can give configure
22269 # the --cache-file=FILE option to use a different cache file; that is
22270 # what configure does when it calls configure scripts in
22271 # subdirectories, so they share the cache.
22272 # Giving --cache-file=/dev/null disables caching, for debugging configure.
22273 # config.status only pays attention to the cache file if you give it the
22274 # --recheck option to rerun configure.
22275 #
22276 EOF
22277 # The following way of writing the cache mishandles newlines in values,
22278 # but we know of no workaround that is simple, portable, and efficient.
22279 # So, don't put newlines in cache variables' values.
22280 # Ultrix sh set writes to stderr and can't be redirected directly,
22281 # and sets the high bit in the cache file unless we assign to the vars.
22282 (set) 2>&1 |
22283 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22284 *ac_space=\ *)
22285 # `set' does not quote correctly, so add quotes (double-quote substitution
22286 # turns \\\\ into \\, and sed turns \\ into \).
22287 sed -n \
22288 -e "s/'/'\\\\''/g" \
22289 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22290 ;;
22291 *)
22292 # `set' quotes correctly as required by POSIX, so do not add quotes.
22293 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22294 ;;
22295 esac >> confcache
22296 if cmp -s $cache_file confcache; then
22297 :
22298 else
22299 if test -w $cache_file; then
22300 echo "updating cache $cache_file"
22301 cat confcache > $cache_file
22302 else
22303 echo "not updating unwritable cache $cache_file"
22304 fi
22305 fi
22306 rm -f confcache
22307
22308 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22309
22310 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22311 # Let make expand exec_prefix.
22312 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22313
22314 # Any assignment to VPATH causes Sun make to only execute
22315 # the first set of double-colon rules, so remove it if not needed.
22316 # If there is a colon in the path, we need to keep it.
22317 if test "x$srcdir" = x.; then
22318 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22319 fi
22320
22321 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22322
22323 DEFS=-DHAVE_CONFIG_H
22324
22325 # Without the "./", some shells look in PATH for config.status.
22326 : ${CONFIG_STATUS=./config.status}
22327
22328 echo creating $CONFIG_STATUS
22329 rm -f $CONFIG_STATUS
22330 cat > $CONFIG_STATUS <<EOF
22331 #! /bin/sh
22332 # Generated automatically by configure.
22333 # Run this file to recreate the current configuration.
22334 # This directory was configured as follows,
22335 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22336 #
22337 # $0 $ac_configure_args
22338 #
22339 # Compiler output produced by configure, useful for debugging
22340 # configure, is in ./config.log if it exists.
22341
22342 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22343 for ac_option
22344 do
22345 case "\$ac_option" in
22346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22347 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22348 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22349 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22350 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22351 exit 0 ;;
22352 -help | --help | --hel | --he | --h)
22353 echo "\$ac_cs_usage"; exit 0 ;;
22354 *) echo "\$ac_cs_usage"; exit 1 ;;
22355 esac
22356 done
22357
22358 ac_given_srcdir=$srcdir
22359 ac_given_INSTALL="$INSTALL"
22360
22361 trap 'rm -fr `echo "
22362 wx-config
22363 version-script
22364 src/make.env
22365 src/makeprog.env
22366 src/makelib.env
22367 Makefile
22368 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22369 EOF
22370 cat >> $CONFIG_STATUS <<EOF
22371
22372 # Protect against being on the right side of a sed subst in config.status.
22373 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22374 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22375 $ac_vpsub
22376 $extrasub
22377 s%@SHELL@%$SHELL%g
22378 s%@CFLAGS@%$CFLAGS%g
22379 s%@CPPFLAGS@%$CPPFLAGS%g
22380 s%@CXXFLAGS@%$CXXFLAGS%g
22381 s%@FFLAGS@%$FFLAGS%g
22382 s%@DEFS@%$DEFS%g
22383 s%@LDFLAGS@%$LDFLAGS%g
22384 s%@LIBS@%$LIBS%g
22385 s%@exec_prefix@%$exec_prefix%g
22386 s%@prefix@%$prefix%g
22387 s%@program_transform_name@%$program_transform_name%g
22388 s%@bindir@%$bindir%g
22389 s%@sbindir@%$sbindir%g
22390 s%@libexecdir@%$libexecdir%g
22391 s%@datadir@%$datadir%g
22392 s%@sysconfdir@%$sysconfdir%g
22393 s%@sharedstatedir@%$sharedstatedir%g
22394 s%@localstatedir@%$localstatedir%g
22395 s%@libdir@%$libdir%g
22396 s%@includedir@%$includedir%g
22397 s%@oldincludedir@%$oldincludedir%g
22398 s%@infodir@%$infodir%g
22399 s%@mandir@%$mandir%g
22400 s%@host@%$host%g
22401 s%@host_alias@%$host_alias%g
22402 s%@host_cpu@%$host_cpu%g
22403 s%@host_vendor@%$host_vendor%g
22404 s%@host_os@%$host_os%g
22405 s%@target@%$target%g
22406 s%@target_alias@%$target_alias%g
22407 s%@target_cpu@%$target_cpu%g
22408 s%@target_vendor@%$target_vendor%g
22409 s%@target_os@%$target_os%g
22410 s%@build@%$build%g
22411 s%@build_alias@%$build_alias%g
22412 s%@build_cpu@%$build_cpu%g
22413 s%@build_vendor@%$build_vendor%g
22414 s%@build_os@%$build_os%g
22415 s%@CC@%$CC%g
22416 s%@CPP@%$CPP%g
22417 s%@CXX@%$CXX%g
22418 s%@RANLIB@%$RANLIB%g
22419 s%@AR@%$AR%g
22420 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22421 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22422 s%@INSTALL_DATA@%$INSTALL_DATA%g
22423 s%@STRIP@%$STRIP%g
22424 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22425 s%@YACC@%$YACC%g
22426 s%@LEX@%$LEX%g
22427 s%@LEXLIB@%$LEXLIB%g
22428 s%@LN_S@%$LN_S%g
22429 s%@CXXCPP@%$CXXCPP%g
22430 s%@PKG_CONFIG@%$PKG_CONFIG%g
22431 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22432 s%@GTK_LIBS@%$GTK_LIBS%g
22433 s%@GTK_CONFIG@%$GTK_CONFIG%g
22434 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22435 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22436 s%@X_CFLAGS@%$X_CFLAGS%g
22437 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22438 s%@X_LIBS@%$X_LIBS%g
22439 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22440 s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22441 s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22442 s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22443 s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22444 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22445 s%@RESCOMP@%$RESCOMP%g
22446 s%@DEREZ@%$DEREZ%g
22447 s%@SETFILE@%$SETFILE%g
22448 s%@LIBICONV@%$LIBICONV%g
22449 s%@LEX_STEM@%$LEX_STEM%g
22450 s%@PATH_IFS@%$PATH_IFS%g
22451 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22452 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22453 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22454 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22455 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22456 s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22457 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22458 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22459 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22460 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22461 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22462 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22463 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22464 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22465 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22466 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22467 s%@WX_ALL@%$WX_ALL%g
22468 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22469 s%@SHARED_LD@%$SHARED_LD%g
22470 s%@PIC_FLAG@%$PIC_FLAG%g
22471 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22472 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22473 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22474 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22475 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22476 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22477 s%@STATIC_FLAG@%$STATIC_FLAG%g
22478 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22479 s%@USE_GUI@%$USE_GUI%g
22480 s%@AFMINSTALL@%$AFMINSTALL%g
22481 s%@WIN32INSTALL@%$WIN32INSTALL%g
22482 s%@TOOLKIT@%$TOOLKIT%g
22483 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22484 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22485 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22486 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22487 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22488 s%@top_builddir@%$top_builddir%g
22489 s%@cross_compiling@%$cross_compiling%g
22490 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22491 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22492 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22493 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22494 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22495 s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22496 s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22497 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22498 s%@ALL_HEADERS@%$ALL_HEADERS%g
22499 s%@ALL_SOURCES@%$ALL_SOURCES%g
22500 s%@GUIDIST@%$GUIDIST%g
22501 s%@PORT_FILES@%$PORT_FILES%g
22502 s%@DISTDIR@%$DISTDIR%g
22503 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22504 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22505 s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22506 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22507 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22508 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22509 s%@EXTRADEFS@%$EXTRADEFS%g
22510 s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22511 s%@RESFLAGS@%$RESFLAGS%g
22512 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22513 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22514 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22515 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22516 s%@LIBWXMACRES@%$LIBWXMACRES%g
22517 s%@MACRESCOMP@%$MACRESCOMP%g
22518 s%@MACSETFILE@%$MACSETFILE%g
22519 s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22520 s%@GCC@%$GCC%g
22521 s%@DLLTOOL@%$DLLTOOL%g
22522 s%@AS@%$AS%g
22523 s%@NM@%$NM%g
22524 s%@LD@%$LD%g
22525 s%@MAKEINFO@%$MAKEINFO%g
22526 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22527 s%@INSTALL_DIR@%$INSTALL_DIR%g
22528 s%@SET_MAKE@%$SET_MAKE%g
22529 s%@subdirs@%$subdirs%g
22530
22531 CEOF
22532 EOF
22533
22534 cat >> $CONFIG_STATUS <<\EOF
22535
22536 # Split the substitutions into bite-sized pieces for seds with
22537 # small command number limits, like on Digital OSF/1 and HP-UX.
22538 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22539 ac_file=1 # Number of current file.
22540 ac_beg=1 # First line for current file.
22541 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22542 ac_more_lines=:
22543 ac_sed_cmds=""
22544 while $ac_more_lines; do
22545 if test $ac_beg -gt 1; then
22546 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22547 else
22548 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22549 fi
22550 if test ! -s conftest.s$ac_file; then
22551 ac_more_lines=false
22552 rm -f conftest.s$ac_file
22553 else
22554 if test -z "$ac_sed_cmds"; then
22555 ac_sed_cmds="sed -f conftest.s$ac_file"
22556 else
22557 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22558 fi
22559 ac_file=`expr $ac_file + 1`
22560 ac_beg=$ac_end
22561 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22562 fi
22563 done
22564 if test -z "$ac_sed_cmds"; then
22565 ac_sed_cmds=cat
22566 fi
22567 EOF
22568
22569 cat >> $CONFIG_STATUS <<EOF
22570
22571 CONFIG_FILES=\${CONFIG_FILES-"wx-config
22572 version-script
22573 src/make.env
22574 src/makeprog.env
22575 src/makelib.env
22576 Makefile
22577 "}
22578 EOF
22579 cat >> $CONFIG_STATUS <<\EOF
22580 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22582 case "$ac_file" in
22583 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22584 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22585 *) ac_file_in="${ac_file}.in" ;;
22586 esac
22587
22588 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22589
22590 # Remove last slash and all that follows it. Not all systems have dirname.
22591 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22592 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22593 # The file is in a subdirectory.
22594 test ! -d "$ac_dir" && mkdir "$ac_dir"
22595 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22596 # A "../" for each directory in $ac_dir_suffix.
22597 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22598 else
22599 ac_dir_suffix= ac_dots=
22600 fi
22601
22602 case "$ac_given_srcdir" in
22603 .) srcdir=.
22604 if test -z "$ac_dots"; then top_srcdir=.
22605 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22606 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22607 *) # Relative path.
22608 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22609 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22610 esac
22611
22612 case "$ac_given_INSTALL" in
22613 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22614 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22615 esac
22616
22617 echo creating "$ac_file"
22618 rm -f "$ac_file"
22619 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22620 case "$ac_file" in
22621 *Makefile*) ac_comsub="1i\\
22622 # $configure_input" ;;
22623 *) ac_comsub= ;;
22624 esac
22625
22626 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22627 sed -e "$ac_comsub
22628 s%@configure_input@%$configure_input%g
22629 s%@srcdir@%$srcdir%g
22630 s%@top_srcdir@%$top_srcdir%g
22631 s%@INSTALL@%$INSTALL%g
22632 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22633 fi; done
22634 rm -f conftest.s*
22635
22636 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22637 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22638 #
22639 # ac_d sets the value in "#define NAME VALUE" lines.
22640 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22641 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22642 ac_dC='\3'
22643 ac_dD='%g'
22644 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22645 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22646 ac_uB='\([ ]\)%\1#\2define\3'
22647 ac_uC=' '
22648 ac_uD='\4%g'
22649 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22650 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22651 ac_eB='$%\1#\2define\3'
22652 ac_eC=' '
22653 ac_eD='%g'
22654
22655 if test "${CONFIG_HEADERS+set}" != set; then
22656 EOF
22657 cat >> $CONFIG_STATUS <<EOF
22658 CONFIG_HEADERS="setup.h:setup.h.in"
22659 EOF
22660 cat >> $CONFIG_STATUS <<\EOF
22661 fi
22662 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22663 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22664 case "$ac_file" in
22665 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22666 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22667 *) ac_file_in="${ac_file}.in" ;;
22668 esac
22669
22670 echo creating $ac_file
22671
22672 rm -f conftest.frag conftest.in conftest.out
22673 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22674 cat $ac_file_inputs > conftest.in
22675
22676 EOF
22677
22678 # Transform confdefs.h into a sed script conftest.vals that substitutes
22679 # the proper values into config.h.in to produce config.h. And first:
22680 # Protect against being on the right side of a sed subst in config.status.
22681 # Protect against being in an unquoted here document in config.status.
22682 rm -f conftest.vals
22683 cat > conftest.hdr <<\EOF
22684 s/[\\&%]/\\&/g
22685 s%[\\$`]%\\&%g
22686 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22687 s%ac_d%ac_u%gp
22688 s%ac_u%ac_e%gp
22689 EOF
22690 sed -n -f conftest.hdr confdefs.h > conftest.vals
22691 rm -f conftest.hdr
22692
22693 # This sed command replaces #undef with comments. This is necessary, for
22694 # example, in the case of _POSIX_SOURCE, which is predefined and required
22695 # on some systems where configure will not decide to define it.
22696 cat >> conftest.vals <<\EOF
22697 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22698 EOF
22699
22700 # Break up conftest.vals because some shells have a limit on
22701 # the size of here documents, and old seds have small limits too.
22702
22703 rm -f conftest.tail
22704 while :
22705 do
22706 ac_lines=`grep -c . conftest.vals`
22707 # grep -c gives empty output for an empty file on some AIX systems.
22708 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22709 # Write a limited-size here document to conftest.frag.
22710 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22711 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22712 echo 'CEOF
22713 sed -f conftest.frag conftest.in > conftest.out
22714 rm -f conftest.in
22715 mv conftest.out conftest.in
22716 ' >> $CONFIG_STATUS
22717 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22718 rm -f conftest.vals
22719 mv conftest.tail conftest.vals
22720 done
22721 rm -f conftest.vals
22722
22723 cat >> $CONFIG_STATUS <<\EOF
22724 rm -f conftest.frag conftest.h
22725 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22726 cat conftest.in >> conftest.h
22727 rm -f conftest.in
22728 if cmp -s $ac_file conftest.h 2>/dev/null; then
22729 echo "$ac_file is unchanged"
22730 rm -f conftest.h
22731 else
22732 # Remove last slash and all that follows it. Not all systems have dirname.
22733 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22734 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22735 # The file is in a subdirectory.
22736 test ! -d "$ac_dir" && mkdir "$ac_dir"
22737 fi
22738 rm -f $ac_file
22739 mv conftest.h $ac_file
22740 fi
22741 fi; done
22742
22743 EOF
22744 cat >> $CONFIG_STATUS <<EOF
22745
22746 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22747 LN_S="${LN_S}"
22748
22749
22750 EOF
22751 cat >> $CONFIG_STATUS <<\EOF
22752
22753 if test ! -h wx-config; then
22754 chmod +x wx-config
22755 mv wx-config wx${TOOLCHAIN_NAME}-config
22756 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
22757 fi
22758
22759 if test ! -d lib; then
22760 mkdir lib
22761 fi
22762 if test ! -d lib/wx; then
22763 mkdir lib/wx
22764 fi
22765 if test ! -d lib/wx/include; then
22766 mkdir lib/wx/include
22767 fi
22768 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22769 mkdir lib/wx/include/${TOOLCHAIN_NAME}
22770 fi
22771 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22772 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
22773 fi
22774 if test -f setup.h; then
22775 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
22776 fi
22777
22778 exit 0
22779 EOF
22780 chmod +x $CONFIG_STATUS
22781 rm -fr confdefs* $ac_clean_files
22782 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22783
22784 if test "$no_recursion" != yes; then
22785
22786 # Remove --cache-file and --srcdir arguments so they do not pile up.
22787 ac_sub_configure_args=
22788 ac_prev=
22789 for ac_arg in $ac_configure_args; do
22790 if test -n "$ac_prev"; then
22791 ac_prev=
22792 continue
22793 fi
22794 case "$ac_arg" in
22795 -cache-file | --cache-file | --cache-fil | --cache-fi \
22796 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22797 ac_prev=cache_file ;;
22798 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22799 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
22800 ;;
22801 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22802 ac_prev=srcdir ;;
22803 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22804 ;;
22805 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22806 esac
22807 done
22808
22809 for ac_config_dir in demos samples utils contrib; do
22810
22811 # Do not complain, so a configure script can configure whichever
22812 # parts of a large source tree are present.
22813 if test ! -d $srcdir/$ac_config_dir; then
22814 continue
22815 fi
22816
22817 echo configuring in $ac_config_dir
22818
22819 case "$srcdir" in
22820 .) ;;
22821 *)
22822 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22823 else
22824 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
22825 fi
22826 ;;
22827 esac
22828
22829 ac_popdir=`pwd`
22830 cd $ac_config_dir
22831
22832 # A "../" for each directory in /$ac_config_dir.
22833 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
22834
22835 case "$srcdir" in
22836 .) # No --srcdir option. We are building in place.
22837 ac_sub_srcdir=$srcdir ;;
22838 /*) # Absolute path.
22839 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
22840 *) # Relative path.
22841 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
22842 esac
22843
22844 # Check for guested configure; otherwise get Cygnus style configure.
22845 if test -f $ac_sub_srcdir/configure; then
22846 ac_sub_configure=$ac_sub_srcdir/configure
22847 elif test -f $ac_sub_srcdir/configure.in; then
22848 ac_sub_configure=$ac_configure
22849 else
22850 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
22851 ac_sub_configure=
22852 fi
22853
22854 # The recursion is here.
22855 if test -n "$ac_sub_configure"; then
22856
22857 # Make the cache file name correct relative to the subdirectory.
22858 case "$cache_file" in
22859 /*) ac_sub_cache_file=$cache_file ;;
22860 *) # Relative path.
22861 ac_sub_cache_file="$ac_dots$cache_file" ;;
22862 esac
22863 case "$ac_given_INSTALL" in
22864 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22865 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22866 esac
22867
22868 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
22869 # The eval makes quoting arguments work.
22870 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
22871 then :
22872 else
22873 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
22874 fi
22875 fi
22876
22877 cd $ac_popdir
22878 done
22879 fi
22880
22881
22882 echo
22883 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
22884 echo ""
22885 echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
22886
22887 echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
22888 echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
22889 echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
22890
22891 echo " What level of wxWindows compatibility should be enabled?"
22892 echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
22893 echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
22894 echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
22895
22896 echo " Which libraries should wxWindows use?"
22897 echo " jpeg ${wxUSE_LIBJPEG-none}"
22898 echo " png ${wxUSE_LIBPNG-none}"
22899 echo " regex ${wxUSE_REGEX}"
22900 echo " tiff ${wxUSE_LIBTIFF-none}"
22901 echo " zlib ${wxUSE_ZLIB}"
22902
22903 echo ""
22904