]> git.saurik.com Git - wxWidgets.git/blame - configure
disable use of #pragma interface under Mac OS X
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
a0b9e27f
MB
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
52127426 25
52127426 26
8284b0c5
MB
27
28
29
30
31
32
33
34
35
8284b0c5
MB
36
37
38
39
40
41
42
43
8284b0c5
MB
44
45
46
247f5006 47
247f5006 48
a0b9e27f
MB
49
50
51
52
53
54
55
56
57
58
59# Configure paths for GTK+
60# Owen Taylor 1997-2001
61
62
63
64
65
66
67
68
69# Configure paths for GTK+
70# Owen Taylor 97-11-3
71
72
73
74# Guess values for system-dependent variables and create Makefiles.
75# Generated automatically using autoconf version 2.13
76# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
77#
78# This configure script is free software; the Free Software Foundation
79# gives unlimited permission to copy, distribute and modify it.
80
81# Defaults:
82ac_help=
83ac_default_prefix=/usr/local
84# Any additions from configure.in:
85ac_help="$ac_help
86 --enable-gui use GUI classes"
87ac_help="$ac_help
88 --enable-universal use wxWindows GUI controls instead of native ones"
89ac_help="$ac_help
90 --with-gtk use GTK+"
91ac_help="$ac_help
92 --with-motif use Motif/Lesstif"
93ac_help="$ac_help
94 --with-mac use Mac OS X"
95ac_help="$ac_help
96 --with-wine use WINE"
97ac_help="$ac_help
98 --with-msw use MS-Windows"
99ac_help="$ac_help
100 --with-pm use OS/2 Presentation Manager"
101ac_help="$ac_help
102 --with-mgl use SciTech MGL"
103ac_help="$ac_help
104 --with-microwin use MicroWindows"
105ac_help="$ac_help
106 --with-x11 use X11"
107ac_help="$ac_help
108 --enable-nanox use NanoX"
109ac_help="$ac_help
110 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
111ac_help="$ac_help
112 --with-libpng use libpng (PNG image format)"
113ac_help="$ac_help
114 --with-libjpeg use libjpeg (JPEG file format)"
115ac_help="$ac_help
116 --with-libtiff use libtiff (TIFF file format)"
117ac_help="$ac_help
118 --with-opengl use OpenGL (or Mesa)"
119ac_help="$ac_help
120 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
121ac_help="$ac_help
122 --with-regex enable support for wxRegEx class"
123ac_help="$ac_help
124 --with-zlib use zlib for LZW compression"
125ac_help="$ac_help
126 --with-odbc use the IODBC and wxODBC classes"
127ac_help="$ac_help
128 --enable-shared create shared library code"
129ac_help="$ac_help
130 --enable-soname set the DT_SONAME field in ELF shared libraries"
131ac_help="$ac_help
132 --enable-optimise create optimised code"
133ac_help="$ac_help
134 --enable-debug same as debug_flag and debug_info"
135ac_help="$ac_help
136 --enable-precomp enable use of precompiled headers (Mac OS X)"
137ac_help="$ac_help
138 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
139ac_help="$ac_help
140 --enable-debug_info create code with debugging information"
141ac_help="$ac_help
142 --enable-debug_gdb create code with extra GDB debugging information"
143ac_help="$ac_help
144 --enable-debug_cntxt use wxDebugContext"
145ac_help="$ac_help
146 --enable-mem_tracing create code with memory tracing"
147ac_help="$ac_help
148 --enable-profile create code with profiling information"
149ac_help="$ac_help
150 --enable-no_rtti create code without RTTI information"
151ac_help="$ac_help
152 --enable-no_exceptions create code without C++ exceptions handling"
153ac_help="$ac_help
154 --enable-permissive compile code disregarding strict ANSI"
155ac_help="$ac_help
156 --enable-no_deps create code without dependency information"
157ac_help="$ac_help
158 --enable-compat20 enable wxWindows 2.0 compatibility"
159ac_help="$ac_help
160 --disable-compat22 disable wxWindows 2.2 compatibility"
161ac_help="$ac_help
162 --enable-rpath=DIR output the rpath flag from wx-config"
163ac_help="$ac_help
164 --enable-intl use internationalization system"
165ac_help="$ac_help
166 --enable-config use wxConfig (and derived) classes"
167ac_help="$ac_help
168 --enable-protocols use wxProtocol and derived classes"
169ac_help="$ac_help
170 --enable-ftp use wxFTP (requires wxProtocol"
171ac_help="$ac_help
172 --enable-http use wxHTTP (requires wxProtocol"
173ac_help="$ac_help
174 --enable-fileproto use wxFileProto class (requires wxProtocol"
175ac_help="$ac_help
176 --enable-sockets use socket/network classes"
3bce6687
JS
177ac_help="$ac_help
178 --enable-ole use OLE classes"
179ac_help="$ac_help
180 --enable-dataobj use data object classes"
a0b9e27f
MB
181ac_help="$ac_help
182 --enable-ipc use interprocess communication (wxSocket etc.)"
183ac_help="$ac_help
184 --enable-cmdline use wxCmdLineParser class"
185ac_help="$ac_help
186 --enable-datetime use wxDateTime class"
187ac_help="$ac_help
188 --enable-timedate use obsolete wxDate/wxTime classes"
189ac_help="$ac_help
190 --enable-stopwatch use wxStopWatch class"
191ac_help="$ac_help
192 --enable-dialupman use dialup network classes"
193ac_help="$ac_help
194 --enable-apple_ieee use the Apple IEEE codec"
195ac_help="$ac_help
196 --enable-timer use wxTimer class"
197ac_help="$ac_help
198 --enable-wave use wxWave class"
199ac_help="$ac_help
200 --enable-fraction use wxFraction class"
201ac_help="$ac_help
202 --enable-dynlib use wxLibrary class for DLL loading"
203ac_help="$ac_help
204 --enable-dynamicloader use (new) wxDynamicLibrary class"
205ac_help="$ac_help
206 --enable-longlong use wxLongLong class"
207ac_help="$ac_help
208 --enable-geometry use geometry class"
209ac_help="$ac_help
210 --enable-log use logging system"
211ac_help="$ac_help
212 --enable-streams use wxStream etc classes"
213ac_help="$ac_help
214 --enable-file use wxFile classes"
215ac_help="$ac_help
216 --enable-ffile use wxFFile classes"
217ac_help="$ac_help
218 --enable-textbuf use wxTextBuffer class"
219ac_help="$ac_help
220 --enable-textfile use wxTextFile class"
221ac_help="$ac_help
222 --enable-fontmap use font encodings conversion classes"
223ac_help="$ac_help
224 --enable-unicode compile wxString with Unicode support"
225ac_help="$ac_help
226 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
227ac_help="$ac_help
228 --enable-wxprintfv use wxWindows implementation of vprintf()"
229ac_help="$ac_help
230 --enable-std_iostreams use standard C++ stream classes"
231ac_help="$ac_help
232 --enable-filesystem use virtual file systems classes"
233ac_help="$ac_help
234 --enable-fs_inet use virtual HTTP/FTP filesystems"
235ac_help="$ac_help
236 --enable-fs_zip use virtual ZIP filesystems"
237ac_help="$ac_help
238 --enable-zipstream use wxZipInputStream"
239ac_help="$ac_help
240 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
241ac_help="$ac_help
242 --enable-snglinst use wxSingleInstanceChecker class"
243ac_help="$ac_help
244 --enable-mimetype use wxMimeTypesManager"
245ac_help="$ac_help
246 --enable-sysoptions use wxSystemOptions"
247ac_help="$ac_help
248 --enable-url use wxURL class"
249ac_help="$ac_help
250 --enable-protocol use wxProtocol class"
251ac_help="$ac_help
252 --enable-protocol-http HTTP support in wxProtocol"
253ac_help="$ac_help
254 --enable-protocol-ftp FTP support in wxProtocol"
255ac_help="$ac_help
256 --enable-protocol-file FILE support in wxProtocol"
257ac_help="$ac_help
258 --enable-threads use threads"
259ac_help="$ac_help
260 --enable-docview use document view architecture"
261ac_help="$ac_help
262 --enable-help use help subsystem"
263ac_help="$ac_help
264 --enable-mshtmlhelp use MS HTML Help (win32)"
265ac_help="$ac_help
266 --enable-html use wxHTML sub-library"
267ac_help="$ac_help
268 --enable-htmlhelp use wxHTML-based help"
269ac_help="$ac_help
270 --enable-constraints use layout-constraints system"
271ac_help="$ac_help
272 --enable-printarch use printing architecture"
273ac_help="$ac_help
274 --enable-mdi use multiple document interface architecture"
275ac_help="$ac_help
276 --enable-loggui use standard GUI logger"
277ac_help="$ac_help
278 --enable-logwin use wxLogWindow"
279ac_help="$ac_help
280 --enable-logdialog use wxLogDialog"
281ac_help="$ac_help
282 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
283ac_help="$ac_help
284 --enable-prologio use Prolog IO library"
285ac_help="$ac_help
286 --enable-resources use wxWindows resources"
287ac_help="$ac_help
288 --enable-xresources use X resources for save (default for gtk+)"
289ac_help="$ac_help
290 --enable-clipboard use wxClipboard classes"
291ac_help="$ac_help
292 --enable-dnd use Drag'n'Drop classes"
293ac_help="$ac_help
294 --enable-metafile use win32 metafiles"
295ac_help="$ac_help
296 --enable-treelayout use wxTreeLayout classes"
297ac_help="$ac_help
298 --enable-controls use all usual controls"
299ac_help="$ac_help
300 --enable-accel use accelerators"
301ac_help="$ac_help
302 --enable-button use wxButton class"
303ac_help="$ac_help
304 --enable-bmpbutton use wxBitmapButton class"
305ac_help="$ac_help
306 --enable-calendar use wxCalendarCtrl class"
307ac_help="$ac_help
308 --enable-caret use wxCaret class"
309ac_help="$ac_help
310 --enable-checkbox use wxCheckBox class"
311ac_help="$ac_help
312 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
313ac_help="$ac_help
314 --enable-choice use wxChoice class"
315ac_help="$ac_help
316 --enable-combobox use wxComboBox classes"
317ac_help="$ac_help
318 --enable-gauge use wxGauge class"
319ac_help="$ac_help
320 --enable-grid use wxGrid class"
321ac_help="$ac_help
322 --enable-newgrid use new wxGrid class"
323ac_help="$ac_help
324 --enable-imaglist use wxImageList class"
325ac_help="$ac_help
326 --enable-listbox use wxListBox class"
327ac_help="$ac_help
328 --enable-listctrl use wxListCtrl class"
329ac_help="$ac_help
330 --enable-notebook use wxNotebook class"
331ac_help="$ac_help
332 --enable-propsheet use wxPropertySheet class"
333ac_help="$ac_help
334 --enable-radiobox use wxRadioBox class"
335ac_help="$ac_help
336 --enable-radiobtn use wxRadioButton class"
337ac_help="$ac_help
338 --enable-sash use wxSashWindow class"
339ac_help="$ac_help
340 --enable-scrollbar use wxScrollBar class and scrollable windows"
341ac_help="$ac_help
342 --enable-slider use wxSlider class"
343ac_help="$ac_help
344 --enable-spinbtn use wxSpinButton class"
345ac_help="$ac_help
346 --enable-spinctrl use wxSpinCtrl class"
347ac_help="$ac_help
348 --enable-splitter use wxSplitterWindow class"
349ac_help="$ac_help
350 --enable-statbmp use wxStaticBitmap class"
351ac_help="$ac_help
352 --enable-statbox use wxStaticBox class"
353ac_help="$ac_help
354 --enable-statline use wxStaticLine class"
355ac_help="$ac_help
356 --enable-stattext use wxStaticText class"
357ac_help="$ac_help
358 --enable-statusbar use wxStatusBar class"
359ac_help="$ac_help
360 --enable-tabdialog use wxTabControl class"
361ac_help="$ac_help
362 --enable-textctrl use wxTextCtrl class"
363ac_help="$ac_help
364 --enable-togglebtn use wxToggleButton class"
365ac_help="$ac_help
366 --enable-toolbar use wxToolBar class"
367ac_help="$ac_help
368 --enable-tbarnative use native wxToolBar class"
369ac_help="$ac_help
370 --enable-tbarsmpl use wxToolBarSimple class"
371ac_help="$ac_help
372 --enable-treectrl use wxTreeCtrl class"
373ac_help="$ac_help
374 --enable-tipwindow use wxTipWindow class"
375ac_help="$ac_help
376 --enable-popupwin use wxPopUpWindow class"
377ac_help="$ac_help
378 --enable-commondlg use all common dialogs"
379ac_help="$ac_help
380 --enable-choicedlg use wxChoiceDialog"
381ac_help="$ac_help
382 --enable-coldlg use wxColourDialog"
383ac_help="$ac_help
384 --enable-filedlg use wxFileDialog"
385ac_help="$ac_help
386 --enable-finddlg use wxFindReplaceDialog"
387ac_help="$ac_help
388 --enable-fontdlg use wxFontDialog"
389ac_help="$ac_help
390 --enable-dirdlg use wxDirDialog"
391ac_help="$ac_help
392 --enable-msgdlg use wxMessageDialog"
393ac_help="$ac_help
394 --enable-numberdlg use wxNumberEntryDialog"
395ac_help="$ac_help
396 --enable-splash use wxSplashScreen"
397ac_help="$ac_help
398 --enable-textdlg use wxTextDialog"
399ac_help="$ac_help
400 --enable-tipdlg use startup tips"
401ac_help="$ac_help
402 --enable-progressdlg use wxProgressDialog"
403ac_help="$ac_help
404 --enable-wizarddlg use wxWizard"
405ac_help="$ac_help
406 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
407ac_help="$ac_help
408 --enable-miniframe use wxMiniFrame class"
409ac_help="$ac_help
410 --enable-tooltips use wxToolTip class"
411ac_help="$ac_help
412 --enable-splines use spline drawing code"
413ac_help="$ac_help
414 --enable-validators use wxValidator and derived classes"
415ac_help="$ac_help
416 --enable-busyinfo use wxBusyInfo"
417ac_help="$ac_help
418 --enable-joystick use wxJoystick (Linux only)"
419ac_help="$ac_help
420 --enable-metafiles use wxMetaFile (Windows only)"
421ac_help="$ac_help
422 --enable-dragimage use wxDragImage"
423ac_help="$ac_help
424 --enable-palette use wxPalette class"
425ac_help="$ac_help
426 --enable-image use wxImage class"
427ac_help="$ac_help
428 --enable-gif use gif images (GIF file format)"
429ac_help="$ac_help
430 --enable-pcx use pcx images (PCX file format)"
431ac_help="$ac_help
432 --enable-iff use iff images (IFF file format)"
433ac_help="$ac_help
434 --enable-pnm use pnm images (PNM file format)"
435ac_help="$ac_help
436 --enable-xpm use xpm images (XPM file format)"
437ac_help="$ac_help
438 --enable-icocur use Windows ICO and CUR formats"
439ac_help="$ac_help
440 --disable-largefile omit support for large files"
441ac_help="$ac_help
442 --disable-gtktest do not try to compile and run a test GTK+ program"
443ac_help="$ac_help
444 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
445ac_help="$ac_help
446 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
447ac_help="$ac_help
448 --disable-gtktest Do not try to compile and run a test GTK program"
449ac_help="$ac_help
450 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
451ac_help="$ac_help
452 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
453ac_help="$ac_help
454 --disable-gtktest Do not try to compile and run a test GTK program"
455ac_help="$ac_help
456 --with-x use the X Window System"
457ac_help="$ac_help
458 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
459
460# Initialize some variables set by options.
461# The variables have the same names as the options, with
462# dashes changed to underlines.
a0b9e27f
MB
463build=NONE
464cache_file=./config.cache
10f2d63a 465exec_prefix=NONE
a0b9e27f 466host=NONE
10f2d63a 467no_create=
a0b9e27f 468nonopt=NONE
10f2d63a
VZ
469no_recursion=
470prefix=NONE
471program_prefix=NONE
472program_suffix=NONE
473program_transform_name=s,x,x,
474silent=
475site=
476srcdir=
a0b9e27f 477target=NONE
10f2d63a
VZ
478verbose=
479x_includes=NONE
480x_libraries=NONE
481bindir='${exec_prefix}/bin'
482sbindir='${exec_prefix}/sbin'
483libexecdir='${exec_prefix}/libexec'
484datadir='${prefix}/share'
485sysconfdir='${prefix}/etc'
486sharedstatedir='${prefix}/com'
487localstatedir='${prefix}/var'
488libdir='${exec_prefix}/lib'
489includedir='${prefix}/include'
490oldincludedir='/usr/include'
491infodir='${prefix}/info'
492mandir='${prefix}/man'
493
a0b9e27f
MB
494# Initialize some other variables.
495subdirs=
496MFLAGS= MAKEFLAGS=
497SHELL=${CONFIG_SHELL-/bin/sh}
498# Maximum number of lines to put in a shell here document.
499ac_max_here_lines=12
500
10f2d63a
VZ
501ac_prev=
502for ac_option
503do
a0b9e27f 504
10f2d63a
VZ
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
a0b9e27f
MB
512 case "$ac_option" in
513 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
514 *) ac_optarg= ;;
515 esac
10f2d63a
VZ
516
517 # Accept the important Cygnus configure options, so we can diagnose typos.
518
a0b9e27f 519 case "$ac_option" in
10f2d63a
VZ
520
521 -bindir | --bindir | --bindi | --bind | --bin | --bi)
522 ac_prev=bindir ;;
523 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a0b9e27f 524 bindir="$ac_optarg" ;;
10f2d63a
VZ
525
526 -build | --build | --buil | --bui | --bu)
a0b9e27f 527 ac_prev=build ;;
10f2d63a 528 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a0b9e27f 529 build="$ac_optarg" ;;
10f2d63a
VZ
530
531 -cache-file | --cache-file | --cache-fil | --cache-fi \
532 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
533 ac_prev=cache_file ;;
534 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
535 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a0b9e27f 536 cache_file="$ac_optarg" ;;
10f2d63a
VZ
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
a0b9e27f 542 datadir="$ac_optarg" ;;
10f2d63a
VZ
543
544 -disable-* | --disable-*)
a0b9e27f 545 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 546 # Reject names that are not valid shell variable names.
a0b9e27f
MB
547 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
548 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
549 fi
550 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
551 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
552
553 -enable-* | --enable-*)
a0b9e27f 554 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 555 # Reject names that are not valid shell variable names.
a0b9e27f
MB
556 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
557 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
558 fi
559 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
560 case "$ac_option" in
561 *=*) ;;
10f2d63a
VZ
562 *) ac_optarg=yes ;;
563 esac
a0b9e27f 564 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
a0b9e27f 573 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
a0b9e27f
MB
579 -help | --help | --hel | --he)
580 # Omit some internal or obsolete options to make the list less imposing.
581 # This message is too long to be a string in the A/UX 3.1 sh.
582 cat << EOF
583Usage: configure [options] [host]
584Options: [defaults in brackets after descriptions]
585Configuration:
586 --cache-file=FILE cache test results in FILE
587 --help print this message
588 --no-create do not create output files
589 --quiet, --silent do not print \`checking...' messages
590 --version print the version of autoconf that created configure
591Directory and file names:
592 --prefix=PREFIX install architecture-independent files in PREFIX
593 [$ac_default_prefix]
594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
595 [same as prefix]
596 --bindir=DIR user executables in DIR [EPREFIX/bin]
597 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
598 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
599 --datadir=DIR read-only architecture-independent data in DIR
600 [PREFIX/share]
601 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
602 --sharedstatedir=DIR modifiable architecture-independent data in DIR
603 [PREFIX/com]
604 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
605 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
606 --includedir=DIR C header files in DIR [PREFIX/include]
607 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
608 --infodir=DIR info documentation in DIR [PREFIX/info]
609 --mandir=DIR man documentation in DIR [PREFIX/man]
610 --srcdir=DIR find the sources in DIR [configure dir or ..]
611 --program-prefix=PREFIX prepend PREFIX to installed program names
612 --program-suffix=SUFFIX append SUFFIX to installed program names
613 --program-transform-name=PROGRAM
614 run sed PROGRAM on installed program names
615EOF
616 cat << EOF
617Host type:
618 --build=BUILD configure for building on BUILD [BUILD=HOST]
619 --host=HOST configure for HOST [guessed]
620 --target=TARGET configure for TARGET [TARGET=HOST]
621Features and packages:
622 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
623 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
624 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
625 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
626 --x-includes=DIR X include files are in DIR
627 --x-libraries=DIR X library files are in DIR
628EOF
629 if test -n "$ac_help"; then
630 echo "--enable and --with options recognized:$ac_help"
631 fi
632 exit 0 ;;
10f2d63a
VZ
633
634 -host | --host | --hos | --ho)
a0b9e27f 635 ac_prev=host ;;
10f2d63a 636 -host=* | --host=* | --hos=* | --ho=*)
a0b9e27f 637 host="$ac_optarg" ;;
10f2d63a
VZ
638
639 -includedir | --includedir | --includedi | --included | --include \
640 | --includ | --inclu | --incl | --inc)
641 ac_prev=includedir ;;
642 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
643 | --includ=* | --inclu=* | --incl=* | --inc=*)
a0b9e27f 644 includedir="$ac_optarg" ;;
10f2d63a
VZ
645
646 -infodir | --infodir | --infodi | --infod | --info | --inf)
647 ac_prev=infodir ;;
648 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a0b9e27f 649 infodir="$ac_optarg" ;;
10f2d63a
VZ
650
651 -libdir | --libdir | --libdi | --libd)
652 ac_prev=libdir ;;
653 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a0b9e27f 654 libdir="$ac_optarg" ;;
10f2d63a
VZ
655
656 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
657 | --libexe | --libex | --libe)
658 ac_prev=libexecdir ;;
659 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
660 | --libexe=* | --libex=* | --libe=*)
a0b9e27f 661 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
662
663 -localstatedir | --localstatedir | --localstatedi | --localstated \
664 | --localstate | --localstat | --localsta | --localst \
665 | --locals | --local | --loca | --loc | --lo)
666 ac_prev=localstatedir ;;
667 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
668 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
669 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a0b9e27f 670 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
671
672 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
673 ac_prev=mandir ;;
674 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a0b9e27f 675 mandir="$ac_optarg" ;;
10f2d63a
VZ
676
677 -nfp | --nfp | --nf)
678 # Obsolete; use --without-fp.
679 with_fp=no ;;
680
681 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a0b9e27f 682 | --no-cr | --no-c)
10f2d63a
VZ
683 no_create=yes ;;
684
685 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
686 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
687 no_recursion=yes ;;
688
689 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
690 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
691 | --oldin | --oldi | --old | --ol | --o)
692 ac_prev=oldincludedir ;;
693 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
694 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
695 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a0b9e27f 696 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
697
698 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
699 ac_prev=prefix ;;
700 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a0b9e27f 701 prefix="$ac_optarg" ;;
10f2d63a
VZ
702
703 -program-prefix | --program-prefix | --program-prefi | --program-pref \
704 | --program-pre | --program-pr | --program-p)
705 ac_prev=program_prefix ;;
706 -program-prefix=* | --program-prefix=* | --program-prefi=* \
707 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a0b9e27f 708 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
709
710 -program-suffix | --program-suffix | --program-suffi | --program-suff \
711 | --program-suf | --program-su | --program-s)
712 ac_prev=program_suffix ;;
713 -program-suffix=* | --program-suffix=* | --program-suffi=* \
714 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a0b9e27f 715 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
716
717 -program-transform-name | --program-transform-name \
718 | --program-transform-nam | --program-transform-na \
719 | --program-transform-n | --program-transform- \
720 | --program-transform | --program-transfor \
721 | --program-transfo | --program-transf \
722 | --program-trans | --program-tran \
723 | --progr-tra | --program-tr | --program-t)
724 ac_prev=program_transform_name ;;
725 -program-transform-name=* | --program-transform-name=* \
726 | --program-transform-nam=* | --program-transform-na=* \
727 | --program-transform-n=* | --program-transform-=* \
728 | --program-transform=* | --program-transfor=* \
729 | --program-transfo=* | --program-transf=* \
730 | --program-trans=* | --program-tran=* \
731 | --progr-tra=* | --program-tr=* | --program-t=*)
a0b9e27f 732 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
733
734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
735 | -silent | --silent | --silen | --sile | --sil)
736 silent=yes ;;
737
738 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
739 ac_prev=sbindir ;;
740 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
741 | --sbi=* | --sb=*)
a0b9e27f 742 sbindir="$ac_optarg" ;;
10f2d63a
VZ
743
744 -sharedstatedir | --sharedstatedir | --sharedstatedi \
745 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
746 | --sharedst | --shareds | --shared | --share | --shar \
747 | --sha | --sh)
748 ac_prev=sharedstatedir ;;
749 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
750 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
751 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
752 | --sha=* | --sh=*)
a0b9e27f 753 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
754
755 -site | --site | --sit)
756 ac_prev=site ;;
757 -site=* | --site=* | --sit=*)
a0b9e27f 758 site="$ac_optarg" ;;
10f2d63a
VZ
759
760 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
761 ac_prev=srcdir ;;
762 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a0b9e27f 763 srcdir="$ac_optarg" ;;
10f2d63a
VZ
764
765 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
766 | --syscon | --sysco | --sysc | --sys | --sy)
767 ac_prev=sysconfdir ;;
768 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
769 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a0b9e27f 770 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
771
772 -target | --target | --targe | --targ | --tar | --ta | --t)
a0b9e27f 773 ac_prev=target ;;
10f2d63a 774 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a0b9e27f 775 target="$ac_optarg" ;;
10f2d63a
VZ
776
777 -v | -verbose | --verbose | --verbos | --verbo | --verb)
778 verbose=yes ;;
779
a0b9e27f
MB
780 -version | --version | --versio | --versi | --vers)
781 echo "configure generated by autoconf version 2.13"
782 exit 0 ;;
10f2d63a
VZ
783
784 -with-* | --with-*)
a0b9e27f 785 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 786 # Reject names that are not valid shell variable names.
a0b9e27f
MB
787 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
788 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
789 fi
10f2d63a 790 ac_package=`echo $ac_package| sed 's/-/_/g'`
a0b9e27f
MB
791 case "$ac_option" in
792 *=*) ;;
10f2d63a
VZ
793 *) ac_optarg=yes ;;
794 esac
a0b9e27f 795 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
796
797 -without-* | --without-*)
a0b9e27f 798 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 799 # Reject names that are not valid shell variable names.
a0b9e27f
MB
800 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
801 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
802 fi
803 ac_package=`echo $ac_package| sed 's/-/_/g'`
804 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
805
806 --x)
807 # Obsolete; use --with-x.
808 with_x=yes ;;
809
810 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
811 | --x-incl | --x-inc | --x-in | --x-i)
812 ac_prev=x_includes ;;
813 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
814 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a0b9e27f 815 x_includes="$ac_optarg" ;;
10f2d63a
VZ
816
817 -x-libraries | --x-libraries | --x-librarie | --x-librari \
818 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
819 ac_prev=x_libraries ;;
820 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
821 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a0b9e27f 822 x_libraries="$ac_optarg" ;;
10f2d63a 823
a0b9e27f 824 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
825 ;;
826
827 *)
a0b9e27f
MB
828 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
829 echo "configure: warning: $ac_option: invalid host type" 1>&2
830 fi
831 if test "x$nonopt" != xNONE; then
832 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
833 fi
834 nonopt="$ac_option"
10f2d63a
VZ
835 ;;
836
837 esac
838done
839
840if test -n "$ac_prev"; then
a0b9e27f 841 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
8284b0c5 842fi
8284b0c5 843
a0b9e27f
MB
844trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
845
846# File descriptor usage:
847# 0 standard input
848# 1 file creation
849# 2 errors and warnings
850# 3 some systems may open it to /dev/tty
851# 4 used on the Kubota Titan
852# 6 checking for... messages and results
853# 5 compiler messages saved in config.log
854if test "$silent" = yes; then
855 exec 6>/dev/null
856else
857 exec 6>&1
858fi
859exec 5>./config.log
860
861echo "\
862This file contains any messages produced by compilers while
863running configure, to aid debugging if configure makes a mistake.
864" 1>&5
8284b0c5 865
a0b9e27f
MB
866# Strip out --no-create and --no-recursion so they do not pile up.
867# Also quote any args containing shell metacharacters.
868ac_configure_args=
869for ac_arg
10f2d63a 870do
a0b9e27f
MB
871 case "$ac_arg" in
872 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
873 | --no-cr | --no-c) ;;
874 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
875 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
876 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
877 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
878 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
879 esac
880done
881
a0b9e27f
MB
882# NLS nuisances.
883# Only set these to C if already set. These must not be set unconditionally
884# because not all systems understand e.g. LANG=C (notably SCO).
885# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
886# Non-C LC_CTYPE values break the ctype check.
887if test "${LANG+set}" = set; then LANG=C; export LANG; fi
888if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
889if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
890if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
247f5006 891
a0b9e27f
MB
892# confdefs.h avoids OS command line length limits that DEFS can exceed.
893rm -rf conftest* confdefs.h
894# AIX cpp loses on an empty file, so make sure it contains at least a newline.
895echo > confdefs.h
10f2d63a 896
a0b9e27f
MB
897# A filename unique to this package, relative to the directory that
898# configure is in, which we can look for to find out if srcdir is correct.
899ac_unique_file=wx-config.in
10f2d63a
VZ
900
901# Find the source files, if location was not specified.
902if test -z "$srcdir"; then
903 ac_srcdir_defaulted=yes
904 # Try the directory containing this script, then its parent.
a0b9e27f
MB
905 ac_prog=$0
906 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
907 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
10f2d63a
VZ
908 srcdir=$ac_confdir
909 if test ! -r $srcdir/$ac_unique_file; then
910 srcdir=..
911 fi
912else
913 ac_srcdir_defaulted=no
914fi
915if test ! -r $srcdir/$ac_unique_file; then
916 if test "$ac_srcdir_defaulted" = yes; then
a0b9e27f 917 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 918 else
a0b9e27f 919 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
920 fi
921fi
a0b9e27f 922srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
328a083c 923
10f2d63a
VZ
924# Prefer explicitly selected file to automatically selected ones.
925if test -z "$CONFIG_SITE"; then
926 if test "x$prefix" != xNONE; then
927 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
928 else
929 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
930 fi
931fi
932for ac_site_file in $CONFIG_SITE; do
933 if test -r "$ac_site_file"; then
a0b9e27f 934 echo "loading site script $ac_site_file"
10f2d63a
VZ
935 . "$ac_site_file"
936 fi
937done
938
939if test -r "$cache_file"; then
a0b9e27f
MB
940 echo "loading cache $cache_file"
941 . $cache_file
10f2d63a 942else
a0b9e27f
MB
943 echo "creating cache $cache_file"
944 > $cache_file
10f2d63a
VZ
945fi
946
947ac_ext=c
a0b9e27f 948# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 949ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
950ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
951ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
952cross_compiling=$ac_cv_prog_cc_cross
953
954ac_exeext=
955ac_objext=o
956if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
957 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
958 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
959 ac_n= ac_c='
960' ac_t=' '
961 else
962 ac_n=-n ac_c= ac_t=
963 fi
964else
965 ac_n= ac_c='\c' ac_t=
966fi
8284b0c5
MB
967
968
10f2d63a 969
7c66a493
VZ
970ac_aux_dir=
971for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
972 if test -f $ac_dir/install-sh; then
973 ac_aux_dir=$ac_dir
974 ac_install_sh="$ac_aux_dir/install-sh -c"
975 break
976 elif test -f $ac_dir/install.sh; then
977 ac_aux_dir=$ac_dir
978 ac_install_sh="$ac_aux_dir/install.sh -c"
979 break
247f5006 980 fi
7c66a493
VZ
981done
982if test -z "$ac_aux_dir"; then
a0b9e27f 983 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 984fi
a0b9e27f
MB
985ac_config_guess=$ac_aux_dir/config.guess
986ac_config_sub=$ac_aux_dir/config.sub
987ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
698dcdb6 988
8284b0c5 989
a0b9e27f
MB
990# Do some error checking and defaulting for the host and target type.
991# The inputs are:
992# configure --host=HOST --target=TARGET --build=BUILD NONOPT
993#
994# The rules are:
995# 1. You are not allowed to specify --host, --target, and nonopt at the
996# same time.
997# 2. Host defaults to nonopt.
998# 3. If nonopt is not specified, then host defaults to the current host,
999# as determined by config.guess.
1000# 4. Target and build default to nonopt.
1001# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
1002
1003# The aliases save the names the user supplied, while $host etc.
1004# will get canonicalized.
a0b9e27f
MB
1005case $host---$target---$nonopt in
1006NONE---*---* | *---NONE---* | *---*---NONE) ;;
1007*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1008esac
1009
1010
1011# Make sure we can run config.sub.
1012if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1013else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1014fi
1015
1016echo $ac_n "checking host system type""... $ac_c" 1>&6
3bce6687 1017echo "configure:1018: checking host system type" >&5
a0b9e27f
MB
1018
1019host_alias=$host
1020case "$host_alias" in
1021NONE)
1022 case $nonopt in
1023 NONE)
1024 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1025 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1026 fi ;;
1027 *) host_alias=$nonopt ;;
1028 esac ;;
1029esac
1030
1031host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1032host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1033host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1034host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1035echo "$ac_t""$host" 1>&6
1036
1037echo $ac_n "checking target system type""... $ac_c" 1>&6
3bce6687 1038echo "configure:1039: checking target system type" >&5
a0b9e27f
MB
1039
1040target_alias=$target
1041case "$target_alias" in
1042NONE)
1043 case $nonopt in
1044 NONE) target_alias=$host_alias ;;
1045 *) target_alias=$nonopt ;;
1046 esac ;;
1047esac
1048
1049target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1050target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1051target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1052target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1053echo "$ac_t""$target" 1>&6
1054
1055echo $ac_n "checking build system type""... $ac_c" 1>&6
3bce6687 1056echo "configure:1057: checking build system type" >&5
a0b9e27f
MB
1057
1058build_alias=$build
1059case "$build_alias" in
1060NONE)
1061 case $nonopt in
1062 NONE) build_alias=$host_alias ;;
1063 *) build_alias=$nonopt ;;
1064 esac ;;
1065esac
1066
1067build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1068build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1071echo "$ac_t""$build" 1>&6
1072
1073test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1074 test "$program_prefix$program_suffix$program_transform_name" = \
1075 NONENONEs,x,x, &&
1076 program_prefix=${target_alias}-
8284b0c5
MB
1077
1078
a0b9e27f 1079
10f2d63a 1080WX_MAJOR_VERSION_NUMBER=2
37d403aa 1081WX_MINOR_VERSION_NUMBER=3
a0d927d1 1082WX_RELEASE_NUMBER=3
10f2d63a 1083
10f2d63a 1084WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1085WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1086
978f1259
RL
1087WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1088
a0d927d1 1089WX_CURRENT=2
6426998c
RL
1090WX_REVISION=0
1091WX_AGE=0
1092
8284b0c5
MB
1093
1094
10f2d63a
VZ
1095USE_UNIX=1
1096USE_WIN32=0
f9bc1684 1097USE_DOS=0
b12915c1 1098USE_BEOS=0
1216f52d 1099USE_MAC=0
b12915c1 1100
10f2d63a
VZ
1101USE_LINUX=
1102USE_SGI=
1103USE_HPUX=
1104USE_SYSV=
1105USE_SVR4=
1106USE_AIX=
1107USE_SUN=
1108USE_SOLARIS=
1109USE_SUNOS=
1110USE_ALPHA=
1111USE_OSF=
1112USE_BSD=
f11bdd03 1113USE_DARWIN=
10f2d63a 1114USE_FREEBSD=
95c8801c 1115USE_OPENBSD=
f6bcfd97 1116USE_NETBSD=
10f2d63a
VZ
1117USE_VMS=
1118USE_ULTRIX=
10f2d63a
VZ
1119USE_DATA_GENERAL=
1120
ab9b9eab
VZ
1121NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1122
f79bd02d 1123ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
10f2d63a
VZ
1124
1125DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1126DEFAULT_wxUSE_MAC=0
1127DEFAULT_wxUSE_MGL=0
1725144d 1128DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1129DEFAULT_wxUSE_MOTIF=0
1130DEFAULT_wxUSE_MSW=0
e07802fc 1131DEFAULT_wxUSE_PM=0
1e6feb95 1132DEFAULT_wxUSE_WINE=0
f79bd02d 1133DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1134
1135DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1136DEFAULT_DEFAULT_wxUSE_MAC=0
1137DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1138DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1139DEFAULT_DEFAULT_wxUSE_MOTIF=0
1140DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1141DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1142DEFAULT_DEFAULT_wxUSE_WINE=0
f79bd02d 1143DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1144
d6a55c4b 1145PROGRAM_EXT=
3a922bb4 1146SO_SUFFIX=so
d6a55c4b 1147
10f2d63a
VZ
1148case "${host}" in
1149 *-hp-hpux* )
1150 USE_HPUX=1
1151 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1152 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1153 SO_SUFFIX=sl
a0b9e27f 1154 cat >> confdefs.h <<\EOF
10f2d63a 1155#define __HPUX__ 1
a0b9e27f 1156EOF
10f2d63a
VZ
1157
1158 ;;
1159 *-*-linux* )
1160 USE_LINUX=1
a0b9e27f 1161 cat >> confdefs.h <<\EOF
10f2d63a 1162#define __LINUX__ 1
a0b9e27f 1163EOF
10f2d63a
VZ
1164
1165 TMP=`uname -m`
1166 if test "x$TMP" = "xalpha"; then
1167 USE_ALPHA=1
a0b9e27f 1168 cat >> confdefs.h <<\EOF
10f2d63a 1169#define __ALPHA__ 1
a0b9e27f 1170EOF
10f2d63a
VZ
1171
1172 fi
1173 DEFAULT_DEFAULT_wxUSE_GTK=1
1174 ;;
1175 *-*-irix5* | *-*-irix6* )
1176 USE_SGI=1
1177 USE_SVR4=1
a0b9e27f 1178 cat >> confdefs.h <<\EOF
10f2d63a 1179#define __SGI__ 1
a0b9e27f 1180EOF
10f2d63a 1181
a0b9e27f 1182 cat >> confdefs.h <<\EOF
10f2d63a 1183#define __SVR4__ 1
a0b9e27f 1184EOF
10f2d63a
VZ
1185
1186 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1187 ;;
1188 *-*-solaris2* )
1189 USE_SUN=1
1190 USE_SOLARIS=1
1191 USE_SVR4=1
a0b9e27f 1192 cat >> confdefs.h <<\EOF
10f2d63a 1193#define __SUN__ 1
a0b9e27f 1194EOF
10f2d63a 1195
a0b9e27f 1196 cat >> confdefs.h <<\EOF
10f2d63a 1197#define __SOLARIS__ 1
a0b9e27f 1198EOF
10f2d63a 1199
a0b9e27f 1200 cat >> confdefs.h <<\EOF
10f2d63a 1201#define __SVR4__ 1
a0b9e27f 1202EOF
10f2d63a
VZ
1203
1204 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1205 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1206 ;;
1207 *-*-sunos4* )
1208 USE_SUN=1
1209 USE_SUNOS=1
1210 USE_BSD=1
a0b9e27f 1211 cat >> confdefs.h <<\EOF
10f2d63a 1212#define __SUN__ 1
a0b9e27f 1213EOF
10f2d63a 1214
a0b9e27f 1215 cat >> confdefs.h <<\EOF
10f2d63a 1216#define __SUNOS__ 1
a0b9e27f 1217EOF
10f2d63a 1218
a0b9e27f 1219 cat >> confdefs.h <<\EOF
10f2d63a 1220#define __BSD__ 1
a0b9e27f 1221EOF
10f2d63a
VZ
1222
1223 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1224 ;;
f6bcfd97 1225 *-*-freebsd*)
10f2d63a
VZ
1226 USE_BSD=1
1227 USE_FREEBSD=1
a0b9e27f 1228 cat >> confdefs.h <<\EOF
10f2d63a 1229#define __FREEBSD__ 1
a0b9e27f 1230EOF
10f2d63a 1231
a0b9e27f 1232 cat >> confdefs.h <<\EOF
10f2d63a 1233#define __BSD__ 1
a0b9e27f 1234EOF
95c8801c
VS
1235
1236 DEFAULT_DEFAULT_wxUSE_GTK=1
1237 ;;
1238 *-*-openbsd*)
1239 USE_BSD=1
1240 USE_OPENBSD=1
a0b9e27f 1241 cat >> confdefs.h <<\EOF
95c8801c 1242#define __FREEBSD__ 1
a0b9e27f 1243EOF
95c8801c 1244
a0b9e27f 1245 cat >> confdefs.h <<\EOF
95c8801c 1246#define __OPENBSD__ 1
a0b9e27f 1247EOF
f6bcfd97
BP
1248
1249 DEFAULT_DEFAULT_wxUSE_GTK=1
1250 ;;
1251 *-*-netbsd*)
1252 USE_BSD=1
1253 USE_NETBSD=1
a0b9e27f 1254 cat >> confdefs.h <<\EOF
f6bcfd97 1255#define __FREEBSD__ 1
a0b9e27f 1256EOF
f6bcfd97 1257
a0b9e27f 1258 cat >> confdefs.h <<\EOF
f6bcfd97 1259#define __NETBSD__ 1
a0b9e27f 1260EOF
10f2d63a
VZ
1261
1262 DEFAULT_DEFAULT_wxUSE_GTK=1
1263 ;;
1264 *-*-osf* )
1265 USE_ALPHA=1
1266 USE_OSF=1
a0b9e27f 1267 cat >> confdefs.h <<\EOF
10f2d63a 1268#define __ALPHA__ 1
a0b9e27f 1269EOF
10f2d63a 1270
a0b9e27f 1271 cat >> confdefs.h <<\EOF
10f2d63a 1272#define __OSF__ 1
a0b9e27f 1273EOF
10f2d63a
VZ
1274
1275 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1276 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1277 ;;
1278 *-*-dgux5* )
1279 USE_ALPHA=1
1280 USE_SVR4=1
a0b9e27f 1281 cat >> confdefs.h <<\EOF
10f2d63a 1282#define __ALPHA__ 1
a0b9e27f 1283EOF
10f2d63a 1284
a0b9e27f 1285 cat >> confdefs.h <<\EOF
10f2d63a 1286#define __SVR4__ 1
a0b9e27f 1287EOF
10f2d63a
VZ
1288
1289 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1290 ;;
1291 *-*-sysv5* )
1292 USE_SYSV=1
1293 USE_SVR4=1
a0b9e27f 1294 cat >> confdefs.h <<\EOF
10f2d63a 1295#define __SYSV__ 1
a0b9e27f 1296EOF
10f2d63a 1297
a0b9e27f 1298 cat >> confdefs.h <<\EOF
10f2d63a 1299#define __SVR4__ 1
a0b9e27f 1300EOF
10f2d63a
VZ
1301
1302 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1303 ;;
1304 *-*-aix* )
1305 USE_AIX=1
1306 USE_SYSV=1
1307 USE_SVR4=1
321d2b14 1308 SO_SUFFIX=a
a0b9e27f 1309 cat >> confdefs.h <<\EOF
10f2d63a 1310#define __AIX__ 1
a0b9e27f 1311EOF
10f2d63a 1312
a0b9e27f 1313 cat >> confdefs.h <<\EOF
10f2d63a 1314#define __SYSV__ 1
a0b9e27f 1315EOF
10f2d63a 1316
a0b9e27f 1317 cat >> confdefs.h <<\EOF
10f2d63a 1318#define __SVR4__ 1
a0b9e27f 1319EOF
10f2d63a
VZ
1320
1321 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1322 ;;
1323
1c8183e2 1324 *-*-cygwin* | *-*-mingw32* )
17234b26 1325 SO_SUFFIX=dll
cf27ef00 1326 PROGRAM_EXT=".exe"
7b7a7637 1327 RESCOMP=windres
10f2d63a
VZ
1328 DEFAULT_DEFAULT_wxUSE_MSW=1
1329 ;;
1330
f9bc1684
VS
1331 *-pc-msdosdjgpp )
1332 USE_UNIX=0
1333 USE_DOS=1
a0b9e27f 1334 cat >> confdefs.h <<\EOF
f9bc1684 1335#define __DOS__ 1
a0b9e27f 1336EOF
f9bc1684
VS
1337
1338 PROGRAM_EXT=".exe"
1339 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1340 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1341 ;;
1342
6fa882bd 1343 *-pc-os2_emx | *-pc-os2-emx )
a0b9e27f 1344 cat >> confdefs.h <<\EOF
10f2d63a 1345#define __EMX__ 1
a0b9e27f 1346EOF
10f2d63a 1347
cf27ef00 1348 PROGRAM_EXT=".exe"
e07802fc 1349 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1350 ;;
1351
d08b457b
GD
1352 powerpc-*-darwin* )
1353 USE_BSD=1
f11bdd03 1354 USE_DARWIN=1
3a922bb4 1355 SO_SUFFIX=dylib
a0b9e27f 1356 cat >> confdefs.h <<\EOF
f11bdd03 1357#define __BSD__ 1
a0b9e27f 1358EOF
b4085ce6 1359
a0b9e27f 1360 cat >> confdefs.h <<\EOF
f11bdd03 1361#define __DARWIN__ 1
a0b9e27f 1362EOF
d08b457b 1363
a0b9e27f 1364 cat >> confdefs.h <<\EOF
d08b457b 1365#define __POWERPC__ 1
a0b9e27f 1366EOF
b4085ce6
GD
1367
1368 DEFAULT_DEFAULT_wxUSE_MAC=1
1369 ;;
1370
b12915c1
VZ
1371 *-*-beos* )
1372 USE_BEOS=1
a0b9e27f 1373 cat >> confdefs.h <<\EOF
b12915c1 1374#define __BEOS__ 1
a0b9e27f 1375EOF
b12915c1
VZ
1376
1377 ;;
1378
10f2d63a 1379 *)
a0b9e27f 1380 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1381esac
1382
8284b0c5
MB
1383
1384
1385
1386 wx_arg_cache_file="configarg.cache"
1387 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1388 rm -f ${wx_arg_cache_file}.tmp
1389 touch ${wx_arg_cache_file}.tmp
1390 touch ${wx_arg_cache_file}
a0b9e27f 1391
10f2d63a
VZ
1392
1393DEBUG_CONFIGURE=0
1394if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1395 DEFAULT_wxUSE_UNIVERSAL=no
1396
d8356fa3
VZ
1397 DEFAULT_wxUSE_NANOX=no
1398
10f2d63a
VZ
1399 DEFAULT_wxUSE_THREADS=yes
1400
1401 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1402 DEFAULT_wxUSE_SONAME=no
1e6feb95 1403 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1404 DEFAULT_wxUSE_PROFILE=no
1405 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1406 DEFAULT_wxUSE_NO_RTTI=no
1407 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1408 DEFAULT_wxUSE_PERMISSIVE=no
1409 DEFAULT_wxUSE_DEBUG_FLAG=yes
1410 DEFAULT_wxUSE_DEBUG_INFO=yes
1411 DEFAULT_wxUSE_DEBUG_GDB=yes
1412 DEFAULT_wxUSE_MEM_TRACING=no
1413 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1414 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1415 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1416 DEFAULT_wxUSE_APPLE_IEEE=no
1417
1418 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1419 DEFAULT_wxUSE_LOGWINDOW=no
1420 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1421 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1422
1423 DEFAULT_wxUSE_GUI=yes
1e6feb95 1424 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1425
3e44f09d 1426 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1427 DEFAULT_wxUSE_ZLIB=no
1428 DEFAULT_wxUSE_LIBPNG=no
1429 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1430 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1431 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1432 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1433
eb4efbdc 1434 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1435 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1436 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1437 DEFAULT_wxUSE_CMDLINE_PARSER=no
1438 DEFAULT_wxUSE_DATETIME=no
1439 DEFAULT_wxUSE_TIMEDATE=no
1440 DEFAULT_wxUSE_TIMER=no
1441 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1442 DEFAULT_wxUSE_FILE=no
1e6feb95 1443 DEFAULT_wxUSE_FFILE=no
a3a584a7 1444 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1445 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1446 DEFAULT_wxUSE_WAVE=no
1447 DEFAULT_wxUSE_INTL=no
1448 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1449 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1450 DEFAULT_wxUSE_STREAMS=no
1451 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1452 DEFAULT_wxUSE_OLE=no
1453 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1454 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1455 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1456 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1457 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1458 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1459 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1460
1461 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1462 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1463 DEFAULT_wxUSE_POSTSCRIPT=no
1464
1465 DEFAULT_wxUSE_X_RESOURCES=no
1466 DEFAULT_wxUSE_CLIPBOARD=no
1467 DEFAULT_wxUSE_TOOLTIPS=no
1468 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1469 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1470 DEFAULT_wxUSE_SPLINES=no
1471
1472 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1473 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1474 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1475
1476 DEFAULT_wxUSE_PROLOGIO=no
1477 DEFAULT_wxUSE_RESOURCES=no
1478 DEFAULT_wxUSE_CONSTRAINTS=no
1479 DEFAULT_wxUSE_IPC=no
1480 DEFAULT_wxUSE_HELP=no
29fd3c0c 1481 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1482 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1483 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1484 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1485 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1486 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1487 DEFAULT_wxUSE_PROTOCOL=no
1488 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1489 DEFAULT_wxUSE_PROTOCOL_FTP=no
1490 DEFAULT_wxUSE_PROTOCOL_FILE=no
1491 DEFAULT_wxUSE_URL=no
3bd8fb5f 1492
10f2d63a 1493 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1494 DEFAULT_wxUSE_CHOICEDLG=no
1495 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1496 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1497 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1498 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1499 DEFAULT_wxUSE_FONTDLG=no
1500 DEFAULT_wxUSE_MSGDLG=no
1501 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1502 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1503 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1504 DEFAULT_wxUSE_STARTUP_TIPS=no
1505 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1506 DEFAULT_wxUSE_WIZARDDLG=no
1507
1e6feb95 1508 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1509 DEFAULT_wxUSE_MINIFRAME=no
1510 DEFAULT_wxUSE_HTML=no
24528b0c 1511 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1512 DEFAULT_wxUSE_FS_INET=no
1513 DEFAULT_wxUSE_FS_ZIP=no
1514 DEFAULT_wxUSE_BUSYINFO=no
1515 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1516 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1517
1518 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1519 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1520 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1521 DEFAULT_wxUSE_CALCTRL=no
1522 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1523 DEFAULT_wxUSE_CHECKBOX=no
1524 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1525 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1526 DEFAULT_wxUSE_COMBOBOX=no
1527 DEFAULT_wxUSE_GAUGE=no
1528 DEFAULT_wxUSE_GRID=no
1529 DEFAULT_wxUSE_NEW_GRID=no
1530 DEFAULT_wxUSE_IMAGLIST=no
1531 DEFAULT_wxUSE_LISTBOX=no
1532 DEFAULT_wxUSE_LISTCTRL=no
1533 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1534 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1535 DEFAULT_wxUSE_RADIOBOX=no
1536 DEFAULT_wxUSE_RADIOBTN=no
1537 DEFAULT_wxUSE_SASH=no
1538 DEFAULT_wxUSE_SCROLLBAR=no
1539 DEFAULT_wxUSE_SLIDER=no
1540 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1541 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1542 DEFAULT_wxUSE_SPLITTER=no
1543 DEFAULT_wxUSE_STATBMP=no
1544 DEFAULT_wxUSE_STATBOX=no
1545 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1546 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1547 DEFAULT_wxUSE_STATUSBAR=yes
1548 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1549 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1550 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1551 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1552 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1553 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1554 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1555 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1556 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1557
1558 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1559 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1560 DEFAULT_wxUSE_WCSRTOMBS=no
1561
edae8572 1562 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1563 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1564 DEFAULT_wxUSE_GIF=no
1565 DEFAULT_wxUSE_PCX=no
1566 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1567 DEFAULT_wxUSE_IFF=no
0046ff7c 1568 DEFAULT_wxUSE_XPM=no
658974ae 1569 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1570else
1e6feb95
VZ
1571 DEFAULT_wxUSE_UNIVERSAL=no
1572
d8356fa3
VZ
1573 DEFAULT_wxUSE_NANOX=no
1574
10f2d63a
VZ
1575 DEFAULT_wxUSE_THREADS=yes
1576
1577 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1578 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1579 DEFAULT_wxUSE_OPTIMISE=yes
1580 DEFAULT_wxUSE_PROFILE=no
1581 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1582 DEFAULT_wxUSE_NO_RTTI=no
1583 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1584 DEFAULT_wxUSE_PERMISSIVE=no
1585 DEFAULT_wxUSE_DEBUG_FLAG=no
1586 DEFAULT_wxUSE_DEBUG_INFO=no
1587 DEFAULT_wxUSE_DEBUG_GDB=no
1588 DEFAULT_wxUSE_MEM_TRACING=no
1589 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1590 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1591 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1592 DEFAULT_wxUSE_APPLE_IEEE=yes
1593
1594 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1595 DEFAULT_wxUSE_LOGWINDOW=yes
1596 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1597 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1598
1599 DEFAULT_wxUSE_GUI=yes
1600
831b3152 1601 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1602 DEFAULT_wxUSE_ZLIB=yes
1603 DEFAULT_wxUSE_LIBPNG=yes
1604 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1605 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1606 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1607 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1608
eb4efbdc 1609 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1610 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1611 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1612 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1613 DEFAULT_wxUSE_DATETIME=yes
1614 DEFAULT_wxUSE_TIMEDATE=no
1615 DEFAULT_wxUSE_TIMER=yes
1616 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1617 DEFAULT_wxUSE_FILE=yes
1e6feb95 1618 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1619 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1620 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1621 DEFAULT_wxUSE_WAVE=no
1622 DEFAULT_wxUSE_INTL=yes
1623 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1624 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1625 DEFAULT_wxUSE_STREAMS=yes
1626 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
1627 DEFAULT_wxUSE_OLE=yes
1628 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 1629 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1630 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1631 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1632 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1633 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1634 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1635
1636 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1637 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1638 DEFAULT_wxUSE_POSTSCRIPT=yes
1639
1640 DEFAULT_wxUSE_X_RESOURCES=no
1641 DEFAULT_wxUSE_CLIPBOARD=yes
1642 DEFAULT_wxUSE_TOOLTIPS=yes
1643 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1644 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1645 DEFAULT_wxUSE_SPLINES=yes
1646
1647 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1648 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1649 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1650
1651 DEFAULT_wxUSE_PROLOGIO=yes
1652 DEFAULT_wxUSE_RESOURCES=yes
1653 DEFAULT_wxUSE_CONSTRAINTS=yes
1654 DEFAULT_wxUSE_IPC=yes
1655 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1656 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1657 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1658 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1659 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1660 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1661 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1662 DEFAULT_wxUSE_PROTOCOL=yes
1663 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1664 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1665 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1666 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1667
1668 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1669 DEFAULT_wxUSE_CHOICEDLG=yes
1670 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1671 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1672 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1673 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1674 DEFAULT_wxUSE_FONTDLG=yes
1675 DEFAULT_wxUSE_MSGDLG=yes
1676 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1677 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1678 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1679 DEFAULT_wxUSE_STARTUP_TIPS=yes
1680 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1681 DEFAULT_wxUSE_WIZARDDLG=yes
1682
1e6feb95 1683 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1684 DEFAULT_wxUSE_MINIFRAME=yes
1685 DEFAULT_wxUSE_HTML=yes
24528b0c 1686 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1687 DEFAULT_wxUSE_FS_INET=yes
1688 DEFAULT_wxUSE_FS_ZIP=yes
1689 DEFAULT_wxUSE_BUSYINFO=yes
1690 DEFAULT_wxUSE_ZIPSTREAM=yes
1691 DEFAULT_wxUSE_VALIDATORS=yes
1692
1693 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1694 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1695 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1696 DEFAULT_wxUSE_CALCTRL=yes
1697 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1698 DEFAULT_wxUSE_CHECKBOX=yes
1699 DEFAULT_wxUSE_CHECKLST=yes
1700 DEFAULT_wxUSE_CHOICE=yes
1701 DEFAULT_wxUSE_COMBOBOX=yes
1702 DEFAULT_wxUSE_GAUGE=yes
1703 DEFAULT_wxUSE_GRID=yes
cc977e5f 1704 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1705 DEFAULT_wxUSE_IMAGLIST=yes
1706 DEFAULT_wxUSE_LISTBOX=yes
1707 DEFAULT_wxUSE_LISTCTRL=yes
1708 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1709 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
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
56cfaa52 1716 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1717 DEFAULT_wxUSE_SPLITTER=yes
1718 DEFAULT_wxUSE_STATBMP=yes
1719 DEFAULT_wxUSE_STATBOX=yes
1720 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1721 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1722 DEFAULT_wxUSE_STATUSBAR=yes
1723 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1724 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1725 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1726 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1727 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1728 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1729 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1730 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1731 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1732
1733 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1734 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1735 DEFAULT_wxUSE_WCSRTOMBS=no
1736
edae8572 1737 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1738 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1739 DEFAULT_wxUSE_GIF=yes
1740 DEFAULT_wxUSE_PCX=yes
cc0e8480 1741 DEFAULT_wxUSE_IFF=no
10f2d63a 1742 DEFAULT_wxUSE_PNM=yes
0046ff7c 1743 DEFAULT_wxUSE_XPM=yes
658974ae 1744 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1745fi
1746
8284b0c5
MB
1747
1748
10f2d63a 1749for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
1750 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1751 if test "x$LINE" != "x" ; then
10f2d63a
VZ
1752 has_toolkit_in_cache=1
1753 eval "DEFAULT_$LINE"
1754 eval "CACHE_$toolkit=1"
1755 fi
1756done
1757
8284b0c5
MB
1758
1759
a0b9e27f 1760 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
3bce6687 1761echo "configure:1762: checking for --enable-gui" >&5
10f2d63a
VZ
1762 no_cache=0
1763 # Check whether --enable-gui or --disable-gui was given.
1764if test "${enable_gui+set}" = set; then
1765 enableval="$enable_gui"
a0b9e27f 1766
10f2d63a
VZ
1767 if test "$enableval" = yes; then
1768 ac_cv_use_gui='wxUSE_GUI=yes'
1769 else
1770 ac_cv_use_gui='wxUSE_GUI=no'
1771 fi
a0b9e27f 1772
10f2d63a 1773else
a0b9e27f 1774
10f2d63a
VZ
1775 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1776 if test "x$LINE" != x ; then
1777 eval "DEFAULT_$LINE"
1778 else
1779 no_cache=1
1780 fi
1781
1782 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
a0b9e27f
MB
1783
1784fi
10f2d63a
VZ
1785
1786
1787 eval "$ac_cv_use_gui"
1788 if test "$no_cache" != 1; then
1789 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1790 fi
1791
1792 if test "$wxUSE_GUI" = yes; then
a0b9e27f 1793 echo "$ac_t""yes" 1>&6
10f2d63a 1794 else
a0b9e27f 1795 echo "$ac_t""no" 1>&6
10f2d63a 1796 fi
a0b9e27f 1797
10f2d63a 1798
b12915c1 1799if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1800
8284b0c5 1801
a0b9e27f 1802 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
3bce6687 1803echo "configure:1804: checking for --enable-universal" >&5
1e6feb95
VZ
1804 no_cache=0
1805 # Check whether --enable-universal or --disable-universal was given.
1806if test "${enable_universal+set}" = set; then
1807 enableval="$enable_universal"
a0b9e27f 1808
1e6feb95
VZ
1809 if test "$enableval" = yes; then
1810 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1811 else
1812 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1813 fi
a0b9e27f 1814
1e6feb95 1815else
a0b9e27f 1816
1e6feb95
VZ
1817 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1818 if test "x$LINE" != x ; then
1819 eval "DEFAULT_$LINE"
1820 else
1821 no_cache=1
1822 fi
1823
1824 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
a0b9e27f
MB
1825
1826fi
1e6feb95
VZ
1827
1828
1829 eval "$ac_cv_use_universal"
1830 if test "$no_cache" != 1; then
1831 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1832 fi
1833
1834 if test "$wxUSE_UNIVERSAL" = yes; then
a0b9e27f 1835 echo "$ac_t""yes" 1>&6
1e6feb95 1836 else
a0b9e27f 1837 echo "$ac_t""no" 1>&6
1e6feb95 1838 fi
a0b9e27f 1839
10f2d63a
VZ
1840# Check whether --with-gtk or --without-gtk was given.
1841if test "${with_gtk+set}" = set; then
1842 withval="$with_gtk"
1843 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
a0b9e27f 1844fi
10f2d63a
VZ
1845
1846# Check whether --with-motif or --without-motif was given.
1847if test "${with_motif+set}" = set; then
1848 withval="$with_motif"
1849 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
a0b9e27f 1850fi
10f2d63a 1851
b4085ce6
GD
1852# Check whether --with-mac or --without-mac was given.
1853if test "${with_mac+set}" = set; then
1854 withval="$with_mac"
1855 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
a0b9e27f 1856fi
b4085ce6 1857
10f2d63a
VZ
1858# Check whether --with-wine or --without-wine was given.
1859if test "${with_wine+set}" = set; then
1860 withval="$with_wine"
1861 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
a0b9e27f 1862fi
10f2d63a 1863
77e13408
RL
1864# Check whether --with-msw or --without-msw was given.
1865if test "${with_msw+set}" = set; then
1866 withval="$with_msw"
b4efce5e 1867 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
a0b9e27f 1868fi
10f2d63a 1869
e07802fc
VZ
1870# Check whether --with-pm or --without-pm was given.
1871if test "${with_pm+set}" = set; then
1872 withval="$with_pm"
1873 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
a0b9e27f 1874fi
698dcdb6 1875
1e6feb95
VZ
1876# Check whether --with-mgl or --without-mgl was given.
1877if test "${with_mgl+set}" = set; then
1878 withval="$with_mgl"
6c657b52 1879 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
a0b9e27f 1880fi
1e6feb95 1881
1725144d
RR
1882# Check whether --with-microwin or --without-microwin was given.
1883if test "${with_microwin+set}" = set; then
1884 withval="$with_microwin"
1885 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
a0b9e27f 1886fi
1725144d 1887
f79bd02d
JS
1888# Check whether --with-x11 or --without-x11 was given.
1889if test "${with_x11+set}" = set; then
1890 withval="$with_x11"
3c011993 1891 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
a0b9e27f 1892fi
10f2d63a 1893
a0b9e27f
MB
1894
1895 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
3bce6687 1896echo "configure:1897: checking for --enable-nanox" >&5
d8356fa3 1897 no_cache=0
ba875e66
VZ
1898 # Check whether --enable-nanox or --disable-nanox was given.
1899if test "${enable_nanox+set}" = set; then
1900 enableval="$enable_nanox"
a0b9e27f 1901
d8356fa3 1902 if test "$enableval" = yes; then
ba875e66 1903 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1904 else
ba875e66 1905 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 1906 fi
a0b9e27f 1907
d8356fa3 1908else
a0b9e27f 1909
d8356fa3
VZ
1910 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1911 if test "x$LINE" != x ; then
1912 eval "DEFAULT_$LINE"
1913 else
1914 no_cache=1
1915 fi
1916
ba875e66 1917 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
a0b9e27f
MB
1918
1919fi
d8356fa3
VZ
1920
1921
ba875e66 1922 eval "$ac_cv_use_nanox"
d8356fa3 1923 if test "$no_cache" != 1; then
ba875e66 1924 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1925 fi
1926
1927 if test "$wxUSE_NANOX" = yes; then
a0b9e27f 1928 echo "$ac_t""yes" 1>&6
d8356fa3 1929 else
a0b9e27f 1930 echo "$ac_t""no" 1>&6
d8356fa3 1931 fi
a0b9e27f 1932
8284b0c5 1933
d74f4b5a 1934
a0b9e27f 1935 echo $ac_n "checking for --enable-gtk2""... $ac_c" 1>&6
3bce6687 1936echo "configure:1937: checking for --enable-gtk2" >&5
d74f4b5a
VZ
1937 no_cache=0
1938 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
1939if test "${enable_gtk2+set}" = set; then
1940 enableval="$enable_gtk2"
a0b9e27f 1941
d74f4b5a
VZ
1942 if test "$enableval" = yes; then
1943 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1944 else
1945 ac_cv_use_gtk2='wxUSE_GTK2=no'
1946 fi
a0b9e27f 1947
10f2d63a 1948else
a0b9e27f 1949
d74f4b5a
VZ
1950 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1951 if test "x$LINE" != x ; then
1952 eval "DEFAULT_$LINE"
1953 else
1954 no_cache=1
1955 fi
1956
1957 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
a0b9e27f
MB
1958
1959fi
52127426 1960
328a083c 1961
d74f4b5a
VZ
1962 eval "$ac_cv_use_gtk2"
1963 if test "$no_cache" != 1; then
1964 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1965 fi
1966
1967 if test "$wxUSE_GTK2" = yes; then
a0b9e27f 1968 echo "$ac_t""yes" 1>&6
d74f4b5a 1969 else
a0b9e27f 1970 echo "$ac_t""no" 1>&6
d74f4b5a 1971 fi
a0b9e27f 1972
d74f4b5a 1973
5c6fa7d2 1974
a0b9e27f 1975 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
3bce6687 1976echo "configure:1977: checking for --with-libpng" >&5
8284b0c5 1977 no_cache=0
a0b9e27f 1978 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1979if test "${with_libpng+set}" = set; then
1980 withval="$with_libpng"
a0b9e27f 1981
10f2d63a 1982 if test "$withval" = yes; then
b12915c1 1983 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1984 elif test "$withval" = no; then
b12915c1 1985 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1986 elif test "$withval" = sys; then
1987 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1988 elif test "$withval" = builtin; then
1989 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1990 else
a0b9e27f 1991 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1992 fi
a0b9e27f 1993
10f2d63a 1994else
a0b9e27f 1995
b12915c1 1996 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1997 if test "x$LINE" != x ; then
1998 eval "DEFAULT_$LINE"
1999 else
2000 no_cache=1
2001 fi
2002
b12915c1 2003 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
a0b9e27f
MB
2004
2005fi
10f2d63a
VZ
2006
2007
b12915c1 2008 eval "$ac_cv_use_libpng"
10f2d63a 2009 if test "$no_cache" != 1; then
b12915c1 2010 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2011 fi
2012
b12915c1 2013 if test "$wxUSE_LIBPNG" = yes; then
a0b9e27f 2014 echo "$ac_t""yes" 1>&6
422107f9 2015 elif test "$wxUSE_LIBPNG" = no; then
a0b9e27f 2016 echo "$ac_t""no" 1>&6
422107f9 2017 elif test "$wxUSE_LIBPNG" = sys; then
a0b9e27f 2018 echo "$ac_t""system version" 1>&6
4f14bcd8 2019 elif test "$wxUSE_LIBPNG" = builtin; then
a0b9e27f 2020 echo "$ac_t""builtin version" 1>&6
422107f9 2021 else
a0b9e27f 2022 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2023 fi
a0b9e27f 2024
10f2d63a 2025
a0b9e27f 2026 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
3bce6687 2027echo "configure:2028: checking for --with-libjpeg" >&5
10f2d63a 2028 no_cache=0
a0b9e27f 2029 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2030if test "${with_libjpeg+set}" = set; then
2031 withval="$with_libjpeg"
a0b9e27f 2032
10f2d63a 2033 if test "$withval" = yes; then
b12915c1 2034 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2035 elif test "$withval" = no; then
b12915c1 2036 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2037 elif test "$withval" = sys; then
2038 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2039 elif test "$withval" = builtin; then
2040 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2041 else
a0b9e27f 2042 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2043 fi
a0b9e27f 2044
10f2d63a 2045else
a0b9e27f 2046
b12915c1 2047 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2048 if test "x$LINE" != x ; then
2049 eval "DEFAULT_$LINE"
2050 else
2051 no_cache=1
2052 fi
2053
b12915c1 2054 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
a0b9e27f
MB
2055
2056fi
10f2d63a
VZ
2057
2058
b12915c1 2059 eval "$ac_cv_use_libjpeg"
10f2d63a 2060 if test "$no_cache" != 1; then
b12915c1 2061 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2062 fi
2063
b12915c1 2064 if test "$wxUSE_LIBJPEG" = yes; then
a0b9e27f 2065 echo "$ac_t""yes" 1>&6
422107f9 2066 elif test "$wxUSE_LIBJPEG" = no; then
a0b9e27f 2067 echo "$ac_t""no" 1>&6
422107f9 2068 elif test "$wxUSE_LIBJPEG" = sys; then
a0b9e27f 2069 echo "$ac_t""system version" 1>&6
4f14bcd8 2070 elif test "$wxUSE_LIBJPEG" = builtin; then
a0b9e27f 2071 echo "$ac_t""builtin version" 1>&6
422107f9 2072 else
a0b9e27f 2073 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2074 fi
a0b9e27f 2075
10f2d63a 2076
a0b9e27f 2077 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
3bce6687 2078echo "configure:2079: checking for --with-libtiff" >&5
10f2d63a 2079 no_cache=0
a0b9e27f 2080 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2081if test "${with_libtiff+set}" = set; then
2082 withval="$with_libtiff"
a0b9e27f 2083
10f2d63a 2084 if test "$withval" = yes; then
b12915c1 2085 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2086 elif test "$withval" = no; then
b12915c1 2087 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2088 elif test "$withval" = sys; then
2089 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2090 elif test "$withval" = builtin; then
2091 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2092 else
a0b9e27f 2093 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2094 fi
a0b9e27f 2095
10f2d63a 2096else
a0b9e27f 2097
b12915c1 2098 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2099 if test "x$LINE" != x ; then
2100 eval "DEFAULT_$LINE"
2101 else
2102 no_cache=1
2103 fi
2104
b12915c1 2105 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
a0b9e27f
MB
2106
2107fi
10f2d63a
VZ
2108
2109
b12915c1 2110 eval "$ac_cv_use_libtiff"
10f2d63a 2111 if test "$no_cache" != 1; then
b12915c1 2112 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2113 fi
2114
b12915c1 2115 if test "$wxUSE_LIBTIFF" = yes; then
a0b9e27f 2116 echo "$ac_t""yes" 1>&6
0dcf9893 2117 elif test "$wxUSE_LIBTIFF" = no; then
a0b9e27f 2118 echo "$ac_t""no" 1>&6
0dcf9893 2119 elif test "$wxUSE_LIBTIFF" = sys; then
a0b9e27f 2120 echo "$ac_t""system version" 1>&6
4f14bcd8 2121 elif test "$wxUSE_LIBTIFF" = builtin; then
a0b9e27f 2122 echo "$ac_t""builtin version" 1>&6
0dcf9893 2123 else
a0b9e27f 2124 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2125 fi
a0b9e27f 2126
10f2d63a 2127
a0b9e27f 2128 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
3bce6687 2129echo "configure:2130: checking for --with-opengl" >&5
10f2d63a 2130 no_cache=0
a0b9e27f 2131 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2132if test "${with_opengl+set}" = set; then
2133 withval="$with_opengl"
a0b9e27f 2134
10f2d63a 2135 if test "$withval" = yes; then
b12915c1 2136 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2137 else
b12915c1 2138 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2139 fi
a0b9e27f 2140
10f2d63a 2141else
a0b9e27f 2142
b12915c1 2143 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2144 if test "x$LINE" != x ; then
2145 eval "DEFAULT_$LINE"
2146 else
2147 no_cache=1
2148 fi
2149
b12915c1 2150 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
a0b9e27f
MB
2151
2152fi
10f2d63a
VZ
2153
2154
b12915c1 2155 eval "$ac_cv_use_opengl"
10f2d63a 2156 if test "$no_cache" != 1; then
b12915c1 2157 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2158 fi
2159
b12915c1 2160 if test "$wxUSE_OPENGL" = yes; then
a0b9e27f 2161 echo "$ac_t""yes" 1>&6
10f2d63a 2162 else
a0b9e27f 2163 echo "$ac_t""no" 1>&6
10f2d63a 2164 fi
a0b9e27f 2165
10f2d63a 2166
b12915c1
VZ
2167fi
2168
5c6fa7d2 2169
a0b9e27f 2170 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
3bce6687 2171echo "configure:2172: checking for --with-dmalloc" >&5
8284b0c5 2172 no_cache=0
a0b9e27f 2173 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2174if test "${with_dmalloc+set}" = set; then
2175 withval="$with_dmalloc"
a0b9e27f 2176
c7a2bf27 2177 if test "$withval" = yes; then
b12915c1 2178 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2179 else
b12915c1 2180 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2181 fi
a0b9e27f 2182
c7a2bf27 2183else
a0b9e27f 2184
b12915c1 2185 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2186 if test "x$LINE" != x ; then
2187 eval "DEFAULT_$LINE"
2188 else
2189 no_cache=1
2190 fi
2191
b12915c1 2192 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
a0b9e27f
MB
2193
2194fi
c7a2bf27
RR
2195
2196
b12915c1 2197 eval "$ac_cv_use_dmalloc"
c7a2bf27 2198 if test "$no_cache" != 1; then
b12915c1 2199 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2200 fi
2201
b12915c1 2202 if test "$wxUSE_DMALLOC" = yes; then
a0b9e27f 2203 echo "$ac_t""yes" 1>&6
c7a2bf27 2204 else
a0b9e27f 2205 echo "$ac_t""no" 1>&6
c7a2bf27 2206 fi
a0b9e27f 2207
c7a2bf27 2208
a0b9e27f 2209 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
3bce6687 2210echo "configure:2211: checking for --with-regex" >&5
3e44f09d 2211 no_cache=0
a0b9e27f 2212 # Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2213if test "${with_regex+set}" = set; then
2214 withval="$with_regex"
a0b9e27f 2215
3e44f09d
VZ
2216 if test "$withval" = yes; then
2217 ac_cv_use_regex='wxUSE_REGEX=yes'
2218 elif test "$withval" = no; then
2219 ac_cv_use_regex='wxUSE_REGEX=no'
2220 elif test "$withval" = sys; then
2221 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2222 elif test "$withval" = builtin; then
2223 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2224 else
a0b9e27f 2225 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2226 fi
a0b9e27f 2227
3e44f09d 2228else
a0b9e27f 2229
3e44f09d
VZ
2230 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2231 if test "x$LINE" != x ; then
2232 eval "DEFAULT_$LINE"
2233 else
2234 no_cache=1
2235 fi
2236
2237 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
a0b9e27f
MB
2238
2239fi
3e44f09d
VZ
2240
2241
2242 eval "$ac_cv_use_regex"
2243 if test "$no_cache" != 1; then
2244 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2245 fi
2246
2247 if test "$wxUSE_REGEX" = yes; then
a0b9e27f 2248 echo "$ac_t""yes" 1>&6
3e44f09d 2249 elif test "$wxUSE_REGEX" = no; then
a0b9e27f 2250 echo "$ac_t""no" 1>&6
3e44f09d 2251 elif test "$wxUSE_REGEX" = sys; then
a0b9e27f 2252 echo "$ac_t""system version" 1>&6
4f14bcd8 2253 elif test "$wxUSE_REGEX" = builtin; then
a0b9e27f 2254 echo "$ac_t""builtin version" 1>&6
3e44f09d 2255 else
a0b9e27f 2256 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d 2257 fi
a0b9e27f 2258
3e44f09d 2259
a0b9e27f 2260 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
3bce6687 2261echo "configure:2262: checking for --with-zlib" >&5
10f2d63a 2262 no_cache=0
a0b9e27f 2263 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2264if test "${with_zlib+set}" = set; then
2265 withval="$with_zlib"
a0b9e27f 2266
10f2d63a 2267 if test "$withval" = yes; then
b12915c1 2268 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2269 elif test "$withval" = no; then
b12915c1 2270 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2271 elif test "$withval" = sys; then
2272 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2273 elif test "$withval" = builtin; then
2274 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2275 else
a0b9e27f 2276 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2277 fi
a0b9e27f 2278
10f2d63a 2279else
a0b9e27f 2280
b12915c1 2281 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2282 if test "x$LINE" != x ; then
2283 eval "DEFAULT_$LINE"
2284 else
2285 no_cache=1
2286 fi
2287
b12915c1 2288 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
a0b9e27f
MB
2289
2290fi
10f2d63a
VZ
2291
2292
b12915c1 2293 eval "$ac_cv_use_zlib"
10f2d63a 2294 if test "$no_cache" != 1; then
b12915c1 2295 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2296 fi
2297
b12915c1 2298 if test "$wxUSE_ZLIB" = yes; then
a0b9e27f 2299 echo "$ac_t""yes" 1>&6
422107f9 2300 elif test "$wxUSE_ZLIB" = no; then
a0b9e27f 2301 echo "$ac_t""no" 1>&6
422107f9 2302 elif test "$wxUSE_ZLIB" = sys; then
a0b9e27f 2303 echo "$ac_t""system version" 1>&6
4f14bcd8 2304 elif test "$wxUSE_ZLIB" = builtin; then
a0b9e27f 2305 echo "$ac_t""builtin version" 1>&6
422107f9 2306 else
a0b9e27f 2307 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2308 fi
a0b9e27f 2309
10f2d63a 2310
a0b9e27f 2311 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
3bce6687 2312echo "configure:2313: checking for --with-odbc" >&5
10f2d63a 2313 no_cache=0
a0b9e27f 2314 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2315if test "${with_odbc+set}" = set; then
2316 withval="$with_odbc"
a0b9e27f 2317
10f2d63a
VZ
2318 if test "$withval" = yes; then
2319 ac_cv_use_odbc='wxUSE_ODBC=yes'
2320 else
2321 ac_cv_use_odbc='wxUSE_ODBC=no'
2322 fi
a0b9e27f 2323
10f2d63a 2324else
a0b9e27f 2325
10f2d63a
VZ
2326 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2327 if test "x$LINE" != x ; then
2328 eval "DEFAULT_$LINE"
2329 else
2330 no_cache=1
2331 fi
2332
2333 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
a0b9e27f
MB
2334
2335fi
10f2d63a
VZ
2336
2337
2338 eval "$ac_cv_use_odbc"
2339 if test "$no_cache" != 1; then
2340 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2341 fi
2342
2343 if test "$wxUSE_ODBC" = yes; then
a0b9e27f 2344 echo "$ac_t""yes" 1>&6
10f2d63a 2345 else
a0b9e27f 2346 echo "$ac_t""no" 1>&6
10f2d63a 2347 fi
a0b9e27f 2348
52127426 2349
8284b0c5
MB
2350
2351
a0b9e27f 2352 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
3bce6687 2353echo "configure:2354: checking for --enable-shared" >&5
10f2d63a
VZ
2354 no_cache=0
2355 # Check whether --enable-shared or --disable-shared was given.
2356if test "${enable_shared+set}" = set; then
2357 enableval="$enable_shared"
a0b9e27f 2358
10f2d63a
VZ
2359 if test "$enableval" = yes; then
2360 ac_cv_use_shared='wxUSE_SHARED=yes'
2361 else
2362 ac_cv_use_shared='wxUSE_SHARED=no'
2363 fi
a0b9e27f 2364
10f2d63a 2365else
a0b9e27f 2366
10f2d63a
VZ
2367 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2368 if test "x$LINE" != x ; then
2369 eval "DEFAULT_$LINE"
2370 else
2371 no_cache=1
2372 fi
2373
2374 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
a0b9e27f
MB
2375
2376fi
10f2d63a
VZ
2377
2378
2379 eval "$ac_cv_use_shared"
2380 if test "$no_cache" != 1; then
2381 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2382 fi
2383
2384 if test "$wxUSE_SHARED" = yes; then
a0b9e27f 2385 echo "$ac_t""yes" 1>&6
10f2d63a 2386 else
a0b9e27f 2387 echo "$ac_t""no" 1>&6
10f2d63a 2388 fi
a0b9e27f 2389
10f2d63a 2390
a0b9e27f 2391 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
3bce6687 2392echo "configure:2393: checking for --enable-soname" >&5
00cf1208 2393 no_cache=0
3a922bb4
RL
2394 # Check whether --enable-soname or --disable-soname was given.
2395if test "${enable_soname+set}" = set; then
2396 enableval="$enable_soname"
a0b9e27f 2397
00cf1208 2398 if test "$enableval" = yes; then
3a922bb4 2399 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2400 else
3a922bb4 2401 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2402 fi
a0b9e27f 2403
00cf1208 2404else
a0b9e27f 2405
3a922bb4 2406 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2407 if test "x$LINE" != x ; then
2408 eval "DEFAULT_$LINE"
2409 else
2410 no_cache=1
2411 fi
2412
3a922bb4 2413 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
a0b9e27f
MB
2414
2415fi
00cf1208
RR
2416
2417
3a922bb4 2418 eval "$ac_cv_use_soname"
00cf1208 2419 if test "$no_cache" != 1; then
3a922bb4 2420 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2421 fi
2422
3a922bb4 2423 if test "$wxUSE_SONAME" = yes; then
a0b9e27f 2424 echo "$ac_t""yes" 1>&6
00cf1208 2425 else
a0b9e27f 2426 echo "$ac_t""no" 1>&6
00cf1208 2427 fi
a0b9e27f 2428
00cf1208 2429
a0b9e27f 2430 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
3bce6687 2431echo "configure:2432: checking for --enable-optimise" >&5
10f2d63a
VZ
2432 no_cache=0
2433 # Check whether --enable-optimise or --disable-optimise was given.
2434if test "${enable_optimise+set}" = set; then
2435 enableval="$enable_optimise"
a0b9e27f 2436
10f2d63a
VZ
2437 if test "$enableval" = yes; then
2438 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2439 else
2440 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2441 fi
a0b9e27f 2442
10f2d63a 2443else
a0b9e27f 2444
10f2d63a
VZ
2445 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2446 if test "x$LINE" != x ; then
2447 eval "DEFAULT_$LINE"
2448 else
2449 no_cache=1
2450 fi
2451
2452 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
a0b9e27f
MB
2453
2454fi
10f2d63a
VZ
2455
2456
2457 eval "$ac_cv_use_optimise"
2458 if test "$no_cache" != 1; then
2459 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2460 fi
2461
2462 if test "$wxUSE_OPTIMISE" = yes; then
a0b9e27f 2463 echo "$ac_t""yes" 1>&6
10f2d63a 2464 else
a0b9e27f 2465 echo "$ac_t""no" 1>&6
10f2d63a 2466 fi
a0b9e27f 2467
10f2d63a 2468
a0b9e27f 2469 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
3bce6687 2470echo "configure:2471: checking for --enable-debug" >&5
10f2d63a
VZ
2471 no_cache=0
2472 # Check whether --enable-debug or --disable-debug was given.
2473if test "${enable_debug+set}" = set; then
2474 enableval="$enable_debug"
a0b9e27f 2475
10f2d63a
VZ
2476 if test "$enableval" = yes; then
2477 ac_cv_use_debug='wxUSE_DEBUG=yes'
2478 else
2479 ac_cv_use_debug='wxUSE_DEBUG=no'
2480 fi
a0b9e27f 2481
10f2d63a 2482else
a0b9e27f 2483
10f2d63a
VZ
2484 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2485 if test "x$LINE" != x ; then
2486 eval "DEFAULT_$LINE"
2487 else
2488 no_cache=1
2489 fi
2490
2491 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
a0b9e27f
MB
2492
2493fi
10f2d63a
VZ
2494
2495
2496 eval "$ac_cv_use_debug"
2497 if test "$no_cache" != 1; then
2498 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2499 fi
2500
2501 if test "$wxUSE_DEBUG" = yes; then
a0b9e27f 2502 echo "$ac_t""yes" 1>&6
10f2d63a 2503 else
a0b9e27f 2504 echo "$ac_t""no" 1>&6
10f2d63a 2505 fi
a0b9e27f 2506
52127426 2507
8284b0c5 2508
a0b9e27f 2509 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
3bce6687 2510echo "configure:2511: checking for --enable-precomp" >&5
683dccda
GD
2511 no_cache=0
2512 # Check whether --enable-precomp or --disable-precomp was given.
2513if test "${enable_precomp+set}" = set; then
2514 enableval="$enable_precomp"
a0b9e27f 2515
683dccda
GD
2516 if test "$enableval" = yes; then
2517 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2518 else
2519 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2520 fi
a0b9e27f 2521
683dccda 2522else
a0b9e27f 2523
683dccda
GD
2524 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2525 if test "x$LINE" != x ; then
2526 eval "DEFAULT_$LINE"
2527 else
2528 no_cache=1
2529 fi
2530
2531 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
a0b9e27f
MB
2532
2533fi
683dccda
GD
2534
2535
2536 eval "$ac_cv_use_precomp"
2537 if test "$no_cache" != 1; then
2538 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2539 fi
2540
2541 if test "$wxUSE_PRECOMP" = yes; then
a0b9e27f 2542 echo "$ac_t""yes" 1>&6
683dccda 2543 else
a0b9e27f 2544 echo "$ac_t""no" 1>&6
683dccda 2545 fi
a0b9e27f 2546
683dccda 2547
10f2d63a
VZ
2548if test "$wxUSE_DEBUG" = "yes"; then
2549 DEFAULT_wxUSE_DEBUG_FLAG=yes
2550 DEFAULT_wxUSE_DEBUG_INFO=yes
2551elif test "$wxUSE_DEBUG" = "no"; then
2552 DEFAULT_wxUSE_DEBUG_FLAG=no
2553 DEFAULT_wxUSE_DEBUG_INFO=no
2554fi
2555
8284b0c5 2556
a0b9e27f 2557 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
3bce6687 2558echo "configure:2559: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2559 no_cache=0
2560 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2561if test "${enable_debug_flag+set}" = set; then
2562 enableval="$enable_debug_flag"
a0b9e27f 2563
10f2d63a
VZ
2564 if test "$enableval" = yes; then
2565 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2566 else
2567 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2568 fi
a0b9e27f 2569
10f2d63a 2570else
a0b9e27f 2571
10f2d63a
VZ
2572 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2573 if test "x$LINE" != x ; then
2574 eval "DEFAULT_$LINE"
2575 else
2576 no_cache=1
2577 fi
2578
2579 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
a0b9e27f
MB
2580
2581fi
10f2d63a
VZ
2582
2583
2584 eval "$ac_cv_use_debug_flag"
2585 if test "$no_cache" != 1; then
2586 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2587 fi
2588
2589 if test "$wxUSE_DEBUG_FLAG" = yes; then
a0b9e27f 2590 echo "$ac_t""yes" 1>&6
10f2d63a 2591 else
a0b9e27f 2592 echo "$ac_t""no" 1>&6
10f2d63a 2593 fi
a0b9e27f 2594
10f2d63a 2595
a0b9e27f 2596 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
3bce6687 2597echo "configure:2598: checking for --enable-debug_info" >&5
10f2d63a
VZ
2598 no_cache=0
2599 # Check whether --enable-debug_info or --disable-debug_info was given.
2600if test "${enable_debug_info+set}" = set; then
2601 enableval="$enable_debug_info"
a0b9e27f 2602
10f2d63a
VZ
2603 if test "$enableval" = yes; then
2604 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2605 else
2606 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2607 fi
a0b9e27f 2608
10f2d63a 2609else
a0b9e27f 2610
10f2d63a
VZ
2611 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2612 if test "x$LINE" != x ; then
2613 eval "DEFAULT_$LINE"
2614 else
2615 no_cache=1
2616 fi
2617
2618 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
a0b9e27f
MB
2619
2620fi
10f2d63a
VZ
2621
2622
2623 eval "$ac_cv_use_debug_info"
2624 if test "$no_cache" != 1; then
2625 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2626 fi
2627
2628 if test "$wxUSE_DEBUG_INFO" = yes; then
a0b9e27f 2629 echo "$ac_t""yes" 1>&6
10f2d63a 2630 else
a0b9e27f 2631 echo "$ac_t""no" 1>&6
10f2d63a 2632 fi
a0b9e27f 2633
10f2d63a 2634
a0b9e27f 2635 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
3bce6687 2636echo "configure:2637: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2637 no_cache=0
2638 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2639if test "${enable_debug_gdb+set}" = set; then
2640 enableval="$enable_debug_gdb"
a0b9e27f 2641
10f2d63a
VZ
2642 if test "$enableval" = yes; then
2643 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2644 else
2645 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2646 fi
a0b9e27f 2647
10f2d63a 2648else
a0b9e27f 2649
10f2d63a
VZ
2650 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2651 if test "x$LINE" != x ; then
2652 eval "DEFAULT_$LINE"
2653 else
2654 no_cache=1
2655 fi
2656
2657 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
a0b9e27f
MB
2658
2659fi
10f2d63a
VZ
2660
2661
2662 eval "$ac_cv_use_debug_gdb"
2663 if test "$no_cache" != 1; then
2664 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2665 fi
2666
2667 if test "$wxUSE_DEBUG_GDB" = yes; then
a0b9e27f 2668 echo "$ac_t""yes" 1>&6
10f2d63a 2669 else
a0b9e27f 2670 echo "$ac_t""no" 1>&6
10f2d63a 2671 fi
a0b9e27f 2672
10f2d63a 2673
a0b9e27f 2674 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
3bce6687 2675echo "configure:2676: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2676 no_cache=0
2677 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2678if test "${enable_debug_cntxt+set}" = set; then
2679 enableval="$enable_debug_cntxt"
a0b9e27f 2680
10f2d63a
VZ
2681 if test "$enableval" = yes; then
2682 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2683 else
2684 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2685 fi
a0b9e27f 2686
10f2d63a 2687else
a0b9e27f 2688
10f2d63a
VZ
2689 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2690 if test "x$LINE" != x ; then
2691 eval "DEFAULT_$LINE"
2692 else
2693 no_cache=1
2694 fi
2695
2696 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
a0b9e27f
MB
2697
2698fi
10f2d63a
VZ
2699
2700
2701 eval "$ac_cv_use_debug_cntxt"
2702 if test "$no_cache" != 1; then
2703 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2704 fi
2705
2706 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
a0b9e27f 2707 echo "$ac_t""yes" 1>&6
10f2d63a 2708 else
a0b9e27f 2709 echo "$ac_t""no" 1>&6
10f2d63a 2710 fi
a0b9e27f 2711
10f2d63a 2712
a0b9e27f 2713 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
3bce6687 2714echo "configure:2715: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2715 no_cache=0
2716 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2717if test "${enable_mem_tracing+set}" = set; then
2718 enableval="$enable_mem_tracing"
a0b9e27f 2719
10f2d63a
VZ
2720 if test "$enableval" = yes; then
2721 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2722 else
2723 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2724 fi
a0b9e27f 2725
10f2d63a 2726else
a0b9e27f 2727
10f2d63a
VZ
2728 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2729 if test "x$LINE" != x ; then
2730 eval "DEFAULT_$LINE"
2731 else
2732 no_cache=1
2733 fi
2734
2735 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
a0b9e27f
MB
2736
2737fi
10f2d63a
VZ
2738
2739
2740 eval "$ac_cv_use_mem_tracing"
2741 if test "$no_cache" != 1; then
2742 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2743 fi
2744
2745 if test "$wxUSE_MEM_TRACING" = yes; then
a0b9e27f 2746 echo "$ac_t""yes" 1>&6
10f2d63a 2747 else
a0b9e27f 2748 echo "$ac_t""no" 1>&6
10f2d63a 2749 fi
a0b9e27f 2750
10f2d63a 2751
a0b9e27f 2752 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
3bce6687 2753echo "configure:2754: checking for --enable-profile" >&5
10f2d63a
VZ
2754 no_cache=0
2755 # Check whether --enable-profile or --disable-profile was given.
2756if test "${enable_profile+set}" = set; then
2757 enableval="$enable_profile"
a0b9e27f 2758
10f2d63a
VZ
2759 if test "$enableval" = yes; then
2760 ac_cv_use_profile='wxUSE_PROFILE=yes'
2761 else
2762 ac_cv_use_profile='wxUSE_PROFILE=no'
2763 fi
a0b9e27f 2764
10f2d63a 2765else
a0b9e27f 2766
10f2d63a
VZ
2767 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2768 if test "x$LINE" != x ; then
2769 eval "DEFAULT_$LINE"
2770 else
2771 no_cache=1
2772 fi
2773
2774 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
a0b9e27f
MB
2775
2776fi
10f2d63a
VZ
2777
2778
2779 eval "$ac_cv_use_profile"
2780 if test "$no_cache" != 1; then
2781 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2782 fi
2783
2784 if test "$wxUSE_PROFILE" = yes; then
a0b9e27f 2785 echo "$ac_t""yes" 1>&6
10f2d63a 2786 else
a0b9e27f 2787 echo "$ac_t""no" 1>&6
10f2d63a 2788 fi
a0b9e27f 2789
10f2d63a 2790
a0b9e27f 2791 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
3bce6687 2792echo "configure:2793: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2793 no_cache=0
2794 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2795if test "${enable_no_rtti+set}" = set; then
2796 enableval="$enable_no_rtti"
a0b9e27f 2797
10f2d63a
VZ
2798 if test "$enableval" = yes; then
2799 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2800 else
2801 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2802 fi
a0b9e27f 2803
10f2d63a 2804else
a0b9e27f 2805
10f2d63a
VZ
2806 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2807 if test "x$LINE" != x ; then
2808 eval "DEFAULT_$LINE"
2809 else
2810 no_cache=1
2811 fi
2812
2813 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
a0b9e27f
MB
2814
2815fi
10f2d63a
VZ
2816
2817
2818 eval "$ac_cv_use_no_rtti"
2819 if test "$no_cache" != 1; then
2820 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2821 fi
2822
2823 if test "$wxUSE_NO_RTTI" = yes; then
a0b9e27f 2824 echo "$ac_t""yes" 1>&6
10f2d63a 2825 else
a0b9e27f 2826 echo "$ac_t""no" 1>&6
10f2d63a 2827 fi
a0b9e27f 2828
10f2d63a 2829
a0b9e27f 2830 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
3bce6687 2831echo "configure:2832: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2832 no_cache=0
2833 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2834if test "${enable_no_exceptions+set}" = set; then
2835 enableval="$enable_no_exceptions"
a0b9e27f 2836
10f2d63a
VZ
2837 if test "$enableval" = yes; then
2838 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2839 else
2840 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2841 fi
a0b9e27f 2842
10f2d63a 2843else
a0b9e27f 2844
10f2d63a
VZ
2845 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2846 if test "x$LINE" != x ; then
2847 eval "DEFAULT_$LINE"
2848 else
2849 no_cache=1
2850 fi
2851
2852 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
a0b9e27f
MB
2853
2854fi
10f2d63a
VZ
2855
2856
2857 eval "$ac_cv_use_no_exceptions"
2858 if test "$no_cache" != 1; then
2859 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2860 fi
2861
2862 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
a0b9e27f 2863 echo "$ac_t""yes" 1>&6
10f2d63a 2864 else
a0b9e27f 2865 echo "$ac_t""no" 1>&6
10f2d63a 2866 fi
a0b9e27f 2867
10f2d63a 2868
a0b9e27f 2869 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
3bce6687 2870echo "configure:2871: checking for --enable-permissive" >&5
10f2d63a
VZ
2871 no_cache=0
2872 # Check whether --enable-permissive or --disable-permissive was given.
2873if test "${enable_permissive+set}" = set; then
2874 enableval="$enable_permissive"
a0b9e27f 2875
10f2d63a
VZ
2876 if test "$enableval" = yes; then
2877 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2878 else
2879 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2880 fi
a0b9e27f 2881
10f2d63a 2882else
a0b9e27f 2883
10f2d63a
VZ
2884 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2885 if test "x$LINE" != x ; then
2886 eval "DEFAULT_$LINE"
2887 else
2888 no_cache=1
2889 fi
2890
2891 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
a0b9e27f
MB
2892
2893fi
10f2d63a
VZ
2894
2895
2896 eval "$ac_cv_use_permissive"
2897 if test "$no_cache" != 1; then
2898 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2899 fi
2900
2901 if test "$wxUSE_PERMISSIVE" = yes; then
a0b9e27f 2902 echo "$ac_t""yes" 1>&6
10f2d63a 2903 else
a0b9e27f 2904 echo "$ac_t""no" 1>&6
10f2d63a 2905 fi
a0b9e27f 2906
10f2d63a 2907
a0b9e27f 2908 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
3bce6687 2909echo "configure:2910: checking for --enable-no_deps" >&5
10f2d63a
VZ
2910 no_cache=0
2911 # Check whether --enable-no_deps or --disable-no_deps was given.
2912if test "${enable_no_deps+set}" = set; then
2913 enableval="$enable_no_deps"
a0b9e27f 2914
10f2d63a
VZ
2915 if test "$enableval" = yes; then
2916 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2917 else
2918 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2919 fi
a0b9e27f 2920
10f2d63a 2921else
a0b9e27f 2922
10f2d63a
VZ
2923 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2924 if test "x$LINE" != x ; then
2925 eval "DEFAULT_$LINE"
2926 else
2927 no_cache=1
2928 fi
2929
2930 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
a0b9e27f
MB
2931
2932fi
10f2d63a
VZ
2933
2934
2935 eval "$ac_cv_use_no_deps"
2936 if test "$no_cache" != 1; then
2937 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2938 fi
2939
2940 if test "$wxUSE_NO_DEPS" = yes; then
a0b9e27f 2941 echo "$ac_t""yes" 1>&6
10f2d63a 2942 else
a0b9e27f 2943 echo "$ac_t""no" 1>&6
10f2d63a 2944 fi
a0b9e27f 2945
52127426 2946
8284b0c5 2947
a0b9e27f 2948 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
3bce6687 2949echo "configure:2950: checking for --enable-compat20" >&5
54276ccf
VZ
2950 no_cache=0
2951 # Check whether --enable-compat20 or --disable-compat20 was given.
2952if test "${enable_compat20+set}" = set; then
2953 enableval="$enable_compat20"
a0b9e27f 2954
54276ccf
VZ
2955 if test "$enableval" = yes; then
2956 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2957 else
2958 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2959 fi
a0b9e27f 2960
54276ccf 2961else
a0b9e27f 2962
54276ccf
VZ
2963 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2964 if test "x$LINE" != x ; then
2965 eval "DEFAULT_$LINE"
2966 else
2967 no_cache=1
2968 fi
2969
2970 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
a0b9e27f
MB
2971
2972fi
54276ccf
VZ
2973
2974
2975 eval "$ac_cv_use_compat20"
2976 if test "$no_cache" != 1; then
2977 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2978 fi
2979
2980 if test "$WXWIN_COMPATIBILITY_2" = yes; then
a0b9e27f 2981 echo "$ac_t""yes" 1>&6
54276ccf 2982 else
a0b9e27f 2983 echo "$ac_t""no" 1>&6
54276ccf 2984 fi
a0b9e27f 2985
54276ccf 2986
a0b9e27f 2987 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
3bce6687 2988echo "configure:2989: checking for --enable-compat22" >&5
54276ccf
VZ
2989 no_cache=0
2990 # Check whether --enable-compat22 or --disable-compat22 was given.
2991if test "${enable_compat22+set}" = set; then
2992 enableval="$enable_compat22"
a0b9e27f 2993
54276ccf
VZ
2994 if test "$enableval" = yes; then
2995 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2996 else
2997 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2998 fi
a0b9e27f 2999
54276ccf 3000else
a0b9e27f 3001
54276ccf
VZ
3002 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3003 if test "x$LINE" != x ; then
3004 eval "DEFAULT_$LINE"
3005 else
3006 no_cache=1
3007 fi
3008
3009 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
a0b9e27f
MB
3010
3011fi
54276ccf
VZ
3012
3013
3014 eval "$ac_cv_use_compat22"
3015 if test "$no_cache" != 1; then
3016 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3017 fi
3018
3019 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
a0b9e27f 3020 echo "$ac_t""yes" 1>&6
54276ccf 3021 else
a0b9e27f 3022 echo "$ac_t""no" 1>&6
54276ccf 3023 fi
a0b9e27f 3024
54276ccf 3025
3bd8fb5f
RD
3026# Check whether --enable-rpath or --disable-rpath was given.
3027if test "${enable_rpath+set}" = set; then
3028 enableval="$enable_rpath"
3029 wxRPATH_DIR="$enableval"
a0b9e27f
MB
3030fi
3031
3bd8fb5f
RD
3032
3033if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3034 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3035fi
3036
8284b0c5
MB
3037
3038
3039
a0b9e27f 3040 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3bce6687 3041echo "configure:3042: checking for --enable-intl" >&5
10f2d63a
VZ
3042 no_cache=0
3043 # Check whether --enable-intl or --disable-intl was given.
3044if test "${enable_intl+set}" = set; then
3045 enableval="$enable_intl"
a0b9e27f 3046
10f2d63a
VZ
3047 if test "$enableval" = yes; then
3048 ac_cv_use_intl='wxUSE_INTL=yes'
3049 else
3050 ac_cv_use_intl='wxUSE_INTL=no'
3051 fi
a0b9e27f 3052
10f2d63a 3053else
a0b9e27f 3054
10f2d63a
VZ
3055 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3056 if test "x$LINE" != x ; then
3057 eval "DEFAULT_$LINE"
3058 else
3059 no_cache=1
3060 fi
3061
3062 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
a0b9e27f
MB
3063
3064fi
10f2d63a
VZ
3065
3066
3067 eval "$ac_cv_use_intl"
3068 if test "$no_cache" != 1; then
3069 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3070 fi
3071
3072 if test "$wxUSE_INTL" = yes; then
a0b9e27f 3073 echo "$ac_t""yes" 1>&6
10f2d63a 3074 else
a0b9e27f 3075 echo "$ac_t""no" 1>&6
10f2d63a 3076 fi
a0b9e27f 3077
10f2d63a 3078
a0b9e27f 3079 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3bce6687 3080echo "configure:3081: checking for --enable-config" >&5
10f2d63a
VZ
3081 no_cache=0
3082 # Check whether --enable-config or --disable-config was given.
3083if test "${enable_config+set}" = set; then
3084 enableval="$enable_config"
a0b9e27f 3085
10f2d63a
VZ
3086 if test "$enableval" = yes; then
3087 ac_cv_use_config='wxUSE_CONFIG=yes'
3088 else
3089 ac_cv_use_config='wxUSE_CONFIG=no'
3090 fi
a0b9e27f 3091
10f2d63a 3092else
a0b9e27f 3093
10f2d63a
VZ
3094 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3095 if test "x$LINE" != x ; then
3096 eval "DEFAULT_$LINE"
3097 else
3098 no_cache=1
3099 fi
3100
3101 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
a0b9e27f
MB
3102
3103fi
10f2d63a
VZ
3104
3105
3106 eval "$ac_cv_use_config"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_CONFIG" = yes; then
a0b9e27f 3112 echo "$ac_t""yes" 1>&6
10f2d63a 3113 else
a0b9e27f 3114 echo "$ac_t""no" 1>&6
10f2d63a 3115 fi
a0b9e27f 3116
52127426 3117
8284b0c5 3118
a0b9e27f 3119 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3bce6687 3120echo "configure:3121: checking for --enable-protocols" >&5
a1622950
VZ
3121 no_cache=0
3122 # Check whether --enable-protocols or --disable-protocols was given.
3123if test "${enable_protocols+set}" = set; then
3124 enableval="$enable_protocols"
a0b9e27f 3125
a1622950
VZ
3126 if test "$enableval" = yes; then
3127 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3128 else
3129 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3130 fi
a0b9e27f 3131
a1622950 3132else
a0b9e27f 3133
a1622950
VZ
3134 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
3142
3143fi
a1622950
VZ
3144
3145
3146 eval "$ac_cv_use_protocols"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 3152 echo "$ac_t""yes" 1>&6
a1622950 3153 else
a0b9e27f 3154 echo "$ac_t""no" 1>&6
a1622950 3155 fi
a0b9e27f 3156
a1622950 3157
a0b9e27f 3158 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3bce6687 3159echo "configure:3160: checking for --enable-ftp" >&5
a1622950
VZ
3160 no_cache=0
3161 # Check whether --enable-ftp or --disable-ftp was given.
3162if test "${enable_ftp+set}" = set; then
3163 enableval="$enable_ftp"
a0b9e27f 3164
a1622950
VZ
3165 if test "$enableval" = yes; then
3166 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3167 else
3168 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3169 fi
a0b9e27f 3170
a1622950 3171else
a0b9e27f 3172
a1622950
VZ
3173 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
3181
3182fi
a1622950
VZ
3183
3184
3185 eval "$ac_cv_use_ftp"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 3191 echo "$ac_t""yes" 1>&6
a1622950 3192 else
a0b9e27f 3193 echo "$ac_t""no" 1>&6
a1622950 3194 fi
a0b9e27f 3195
a1622950 3196
a0b9e27f 3197 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3bce6687 3198echo "configure:3199: checking for --enable-http" >&5
a1622950
VZ
3199 no_cache=0
3200 # Check whether --enable-http or --disable-http was given.
3201if test "${enable_http+set}" = set; then
3202 enableval="$enable_http"
a0b9e27f 3203
a1622950
VZ
3204 if test "$enableval" = yes; then
3205 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3206 else
3207 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3208 fi
a0b9e27f 3209
a1622950 3210else
a0b9e27f 3211
a1622950
VZ
3212 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
3219 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
3220
3221fi
a1622950
VZ
3222
3223
3224 eval "$ac_cv_use_http"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 3230 echo "$ac_t""yes" 1>&6
a1622950 3231 else
a0b9e27f 3232 echo "$ac_t""no" 1>&6
a1622950 3233 fi
a0b9e27f 3234
a1622950 3235
a0b9e27f 3236 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3bce6687 3237echo "configure:3238: checking for --enable-fileproto" >&5
a1622950
VZ
3238 no_cache=0
3239 # Check whether --enable-fileproto or --disable-fileproto was given.
3240if test "${enable_fileproto+set}" = set; then
3241 enableval="$enable_fileproto"
a0b9e27f 3242
a1622950
VZ
3243 if test "$enableval" = yes; then
3244 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3245 else
3246 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3247 fi
a0b9e27f 3248
a1622950 3249else
a0b9e27f 3250
a1622950
VZ
3251 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
3259
3260fi
a1622950
VZ
3261
3262
3263 eval "$ac_cv_use_fileproto"
3264 if test "$no_cache" != 1; then
3265 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3266 fi
3267
3268 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 3269 echo "$ac_t""yes" 1>&6
a1622950 3270 else
a0b9e27f 3271 echo "$ac_t""no" 1>&6
a1622950 3272 fi
a0b9e27f 3273
a1622950 3274
a0b9e27f 3275 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3bce6687 3276echo "configure:3277: checking for --enable-sockets" >&5
10f2d63a
VZ
3277 no_cache=0
3278 # Check whether --enable-sockets or --disable-sockets was given.
3279if test "${enable_sockets+set}" = set; then
3280 enableval="$enable_sockets"
a0b9e27f 3281
10f2d63a
VZ
3282 if test "$enableval" = yes; then
3283 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3284 else
3285 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3286 fi
a0b9e27f 3287
10f2d63a 3288else
a0b9e27f 3289
10f2d63a
VZ
3290 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
3297 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
a0b9e27f
MB
3298
3299fi
10f2d63a
VZ
3300
3301
3302 eval "$ac_cv_use_sockets"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_SOCKETS" = yes; then
a0b9e27f 3308 echo "$ac_t""yes" 1>&6
10f2d63a 3309 else
a0b9e27f 3310 echo "$ac_t""no" 1>&6
10f2d63a 3311 fi
a0b9e27f 3312
8284b0c5 3313
3bce6687
JS
3314 echo $ac_n "checking for --enable-ole""... $ac_c" 1>&6
3315echo "configure:3316: checking for --enable-ole" >&5
3316 no_cache=0
3317 # Check whether --enable-ole or --disable-ole was given.
3318if test "${enable_ole+set}" = set; then
3319 enableval="$enable_ole"
3320
3321 if test "$enableval" = yes; then
3322 ac_cv_use_ole='wxUSE_OLE=yes'
3323 else
3324 ac_cv_use_ole='wxUSE_OLE=no'
3325 fi
3326
3327else
3328
3329 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3330 if test "x$LINE" != x ; then
3331 eval "DEFAULT_$LINE"
3332 else
3333 no_cache=1
3334 fi
3335
3336 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3337
3338fi
3339
3340
3341 eval "$ac_cv_use_ole"
3342 if test "$no_cache" != 1; then
3343 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3344 fi
3345
3346 if test "$wxUSE_OLE" = yes; then
3347 echo "$ac_t""yes" 1>&6
3348 else
3349 echo "$ac_t""no" 1>&6
3350 fi
3351
3352
3353 echo $ac_n "checking for --enable-dataobj""... $ac_c" 1>&6
3354echo "configure:3355: checking for --enable-dataobj" >&5
3355 no_cache=0
3356 # Check whether --enable-dataobj or --disable-dataobj was given.
3357if test "${enable_dataobj+set}" = set; then
3358 enableval="$enable_dataobj"
3359
3360 if test "$enableval" = yes; then
3361 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3362 else
3363 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3364 fi
3365
3366else
3367
3368 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3376
3377fi
3378
3379
3380 eval "$ac_cv_use_dataobj"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_DATAOBJ" = yes; then
3386 echo "$ac_t""yes" 1>&6
3387 else
3388 echo "$ac_t""no" 1>&6
3389 fi
3390
3391
52127426 3392
a0b9e27f 3393 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3bce6687 3394echo "configure:3395: checking for --enable-ipc" >&5
10f2d63a 3395 no_cache=0
eb4efbdc
VZ
3396 # Check whether --enable-ipc or --disable-ipc was given.
3397if test "${enable_ipc+set}" = set; then
3398 enableval="$enable_ipc"
a0b9e27f 3399
10f2d63a 3400 if test "$enableval" = yes; then
eb4efbdc 3401 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3402 else
eb4efbdc 3403 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3404 fi
a0b9e27f 3405
10f2d63a 3406else
a0b9e27f 3407
eb4efbdc 3408 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3409 if test "x$LINE" != x ; then
3410 eval "DEFAULT_$LINE"
3411 else
3412 no_cache=1
3413 fi
3414
eb4efbdc 3415 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
a0b9e27f
MB
3416
3417fi
10f2d63a
VZ
3418
3419
eb4efbdc 3420 eval "$ac_cv_use_ipc"
10f2d63a 3421 if test "$no_cache" != 1; then
eb4efbdc 3422 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3423 fi
3424
eb4efbdc 3425 if test "$wxUSE_IPC" = yes; then
a0b9e27f 3426 echo "$ac_t""yes" 1>&6
10f2d63a 3427 else
a0b9e27f 3428 echo "$ac_t""no" 1>&6
10f2d63a 3429 fi
a0b9e27f 3430
52127426 3431
8284b0c5 3432
a0b9e27f 3433 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3bce6687 3434echo "configure:3435: checking for --enable-cmdline" >&5
1e6feb95
VZ
3435 no_cache=0
3436 # Check whether --enable-cmdline or --disable-cmdline was given.
3437if test "${enable_cmdline+set}" = set; then
3438 enableval="$enable_cmdline"
a0b9e27f 3439
1e6feb95
VZ
3440 if test "$enableval" = yes; then
3441 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3442 else
3443 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3444 fi
a0b9e27f 3445
1e6feb95 3446else
a0b9e27f 3447
1e6feb95
VZ
3448 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
a0b9e27f
MB
3456
3457fi
1e6feb95
VZ
3458
3459
3460 eval "$ac_cv_use_cmdline"
3461 if test "$no_cache" != 1; then
3462 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3463 fi
3464
3465 if test "$wxUSE_CMDLINE_PARSER" = yes; then
a0b9e27f 3466 echo "$ac_t""yes" 1>&6
1e6feb95 3467 else
a0b9e27f 3468 echo "$ac_t""no" 1>&6
1e6feb95 3469 fi
a0b9e27f 3470
1e6feb95 3471
a0b9e27f 3472 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3bce6687 3473echo "configure:3474: checking for --enable-datetime" >&5
1e6feb95
VZ
3474 no_cache=0
3475 # Check whether --enable-datetime or --disable-datetime was given.
3476if test "${enable_datetime+set}" = set; then
3477 enableval="$enable_datetime"
a0b9e27f 3478
1e6feb95
VZ
3479 if test "$enableval" = yes; then
3480 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3481 else
3482 ac_cv_use_datetime='wxUSE_DATETIME=no'
3483 fi
a0b9e27f 3484
1e6feb95 3485else
a0b9e27f 3486
1e6feb95
VZ
3487 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3488 if test "x$LINE" != x ; then
3489 eval "DEFAULT_$LINE"
3490 else
3491 no_cache=1
3492 fi
3493
3494 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
a0b9e27f
MB
3495
3496fi
1e6feb95
VZ
3497
3498
3499 eval "$ac_cv_use_datetime"
3500 if test "$no_cache" != 1; then
3501 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3502 fi
3503
3504 if test "$wxUSE_DATETIME" = yes; then
a0b9e27f 3505 echo "$ac_t""yes" 1>&6
1e6feb95 3506 else
a0b9e27f 3507 echo "$ac_t""no" 1>&6
1e6feb95 3508 fi
a0b9e27f 3509
1e6feb95 3510
a0b9e27f 3511 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3bce6687 3512echo "configure:3513: checking for --enable-timedate" >&5
1e6feb95
VZ
3513 no_cache=0
3514 # Check whether --enable-timedate or --disable-timedate was given.
3515if test "${enable_timedate+set}" = set; then
3516 enableval="$enable_timedate"
a0b9e27f 3517
1e6feb95
VZ
3518 if test "$enableval" = yes; then
3519 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3520 else
3521 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3522 fi
a0b9e27f 3523
1e6feb95 3524else
a0b9e27f 3525
1e6feb95
VZ
3526 LINE=`grep "wxUSE_TIMEDATE" ${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_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
a0b9e27f
MB
3534
3535fi
1e6feb95
VZ
3536
3537
3538 eval "$ac_cv_use_timedate"
3539 if test "$no_cache" != 1; then
3540 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3541 fi
3542
3543 if test "$wxUSE_TIMEDATE" = yes; then
a0b9e27f 3544 echo "$ac_t""yes" 1>&6
1e6feb95 3545 else
a0b9e27f 3546 echo "$ac_t""no" 1>&6
1e6feb95 3547 fi
a0b9e27f 3548
1e6feb95 3549
a0b9e27f 3550 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3bce6687 3551echo "configure:3552: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3552 no_cache=0
3553 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3554if test "${enable_stopwatch+set}" = set; then
3555 enableval="$enable_stopwatch"
a0b9e27f 3556
1e6feb95
VZ
3557 if test "$enableval" = yes; then
3558 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3559 else
3560 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3561 fi
a0b9e27f 3562
1e6feb95 3563else
a0b9e27f 3564
1e6feb95
VZ
3565 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
a0b9e27f
MB
3573
3574fi
1e6feb95
VZ
3575
3576
3577 eval "$ac_cv_use_stopwatch"
3578 if test "$no_cache" != 1; then
3579 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3580 fi
3581
3582 if test "$wxUSE_STOPWATCH" = yes; then
a0b9e27f 3583 echo "$ac_t""yes" 1>&6
1e6feb95 3584 else
a0b9e27f 3585 echo "$ac_t""no" 1>&6
1e6feb95 3586 fi
a0b9e27f 3587
1e6feb95 3588
a0b9e27f 3589 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3bce6687 3590echo "configure:3591: checking for --enable-dialupman" >&5
10f2d63a 3591 no_cache=0
eb4efbdc
VZ
3592 # Check whether --enable-dialupman or --disable-dialupman was given.
3593if test "${enable_dialupman+set}" = set; then
3594 enableval="$enable_dialupman"
a0b9e27f 3595
10f2d63a 3596 if test "$enableval" = yes; then
eb4efbdc 3597 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3598 else
eb4efbdc 3599 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3600 fi
a0b9e27f 3601
10f2d63a 3602else
a0b9e27f 3603
eb4efbdc 3604 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3605 if test "x$LINE" != x ; then
3606 eval "DEFAULT_$LINE"
3607 else
3608 no_cache=1
3609 fi
3610
eb4efbdc 3611 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
a0b9e27f
MB
3612
3613fi
10f2d63a
VZ
3614
3615
eb4efbdc 3616 eval "$ac_cv_use_dialupman"
10f2d63a 3617 if test "$no_cache" != 1; then
eb4efbdc 3618 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3619 fi
3620
eb4efbdc 3621 if test "$wxUSE_DIALUP_MANAGER" = yes; then
a0b9e27f 3622 echo "$ac_t""yes" 1>&6
10f2d63a 3623 else
a0b9e27f 3624 echo "$ac_t""no" 1>&6
10f2d63a 3625 fi
a0b9e27f 3626
10f2d63a 3627
a0b9e27f 3628 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3bce6687 3629echo "configure:3630: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3630 no_cache=0
3631 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3632if test "${enable_apple_ieee+set}" = set; then
3633 enableval="$enable_apple_ieee"
a0b9e27f 3634
10f2d63a
VZ
3635 if test "$enableval" = yes; then
3636 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3637 else
3638 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3639 fi
a0b9e27f 3640
10f2d63a 3641else
a0b9e27f 3642
10f2d63a
VZ
3643 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
a0b9e27f
MB
3651
3652fi
10f2d63a
VZ
3653
3654
3655 eval "$ac_cv_use_apple_ieee"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_APPLE_IEEE" = yes; then
a0b9e27f 3661 echo "$ac_t""yes" 1>&6
10f2d63a 3662 else
a0b9e27f 3663 echo "$ac_t""no" 1>&6
10f2d63a 3664 fi
a0b9e27f 3665
10f2d63a 3666
a0b9e27f 3667 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3bce6687 3668echo "configure:3669: checking for --enable-timer" >&5
10f2d63a 3669 no_cache=0
1e6feb95
VZ
3670 # Check whether --enable-timer or --disable-timer was given.
3671if test "${enable_timer+set}" = set; then
3672 enableval="$enable_timer"
a0b9e27f 3673
10f2d63a 3674 if test "$enableval" = yes; then
1e6feb95 3675 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3676 else
1e6feb95 3677 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3678 fi
a0b9e27f 3679
10f2d63a 3680else
a0b9e27f 3681
1e6feb95 3682 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3683 if test "x$LINE" != x ; then
3684 eval "DEFAULT_$LINE"
3685 else
3686 no_cache=1
3687 fi
3688
1e6feb95 3689 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
a0b9e27f
MB
3690
3691fi
10f2d63a
VZ
3692
3693
1e6feb95 3694 eval "$ac_cv_use_timer"
10f2d63a 3695 if test "$no_cache" != 1; then
1e6feb95 3696 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3697 fi
3698
1e6feb95 3699 if test "$wxUSE_TIMER" = yes; then
a0b9e27f 3700 echo "$ac_t""yes" 1>&6
10f2d63a 3701 else
a0b9e27f 3702 echo "$ac_t""no" 1>&6
10f2d63a 3703 fi
a0b9e27f 3704
10f2d63a 3705
a0b9e27f 3706 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3bce6687 3707echo "configure:3708: checking for --enable-wave" >&5
10f2d63a
VZ
3708 no_cache=0
3709 # Check whether --enable-wave or --disable-wave was given.
3710if test "${enable_wave+set}" = set; then
3711 enableval="$enable_wave"
a0b9e27f 3712
10f2d63a
VZ
3713 if test "$enableval" = yes; then
3714 ac_cv_use_wave='wxUSE_WAVE=yes'
3715 else
3716 ac_cv_use_wave='wxUSE_WAVE=no'
3717 fi
a0b9e27f 3718
10f2d63a 3719else
a0b9e27f 3720
10f2d63a
VZ
3721 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3722 if test "x$LINE" != x ; then
3723 eval "DEFAULT_$LINE"
3724 else
3725 no_cache=1
3726 fi
3727
3728 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
a0b9e27f
MB
3729
3730fi
10f2d63a
VZ
3731
3732
3733 eval "$ac_cv_use_wave"
3734 if test "$no_cache" != 1; then
3735 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3736 fi
3737
3738 if test "$wxUSE_WAVE" = yes; then
a0b9e27f 3739 echo "$ac_t""yes" 1>&6
10f2d63a 3740 else
a0b9e27f 3741 echo "$ac_t""no" 1>&6
10f2d63a 3742 fi
a0b9e27f 3743
10f2d63a 3744
a0b9e27f 3745 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3bce6687 3746echo "configure:3747: checking for --enable-fraction" >&5
10f2d63a
VZ
3747 no_cache=0
3748 # Check whether --enable-fraction or --disable-fraction was given.
3749if test "${enable_fraction+set}" = set; then
3750 enableval="$enable_fraction"
a0b9e27f 3751
10f2d63a
VZ
3752 if test "$enableval" = yes; then
3753 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3754 else
3755 ac_cv_use_fraction='wxUSE_FRACTION=no'
3756 fi
a0b9e27f 3757
10f2d63a 3758else
a0b9e27f 3759
10f2d63a
VZ
3760 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
a0b9e27f
MB
3768
3769fi
10f2d63a
VZ
3770
3771
3772 eval "$ac_cv_use_fraction"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_FRACTION" = yes; then
a0b9e27f 3778 echo "$ac_t""yes" 1>&6
10f2d63a 3779 else
a0b9e27f 3780 echo "$ac_t""no" 1>&6
10f2d63a 3781 fi
a0b9e27f 3782
10f2d63a 3783
a0b9e27f 3784 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3bce6687 3785echo "configure:3786: checking for --enable-dynlib" >&5
10f2d63a
VZ
3786 no_cache=0
3787 # Check whether --enable-dynlib or --disable-dynlib was given.
3788if test "${enable_dynlib+set}" = set; then
3789 enableval="$enable_dynlib"
a0b9e27f 3790
10f2d63a
VZ
3791 if test "$enableval" = yes; then
3792 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3793 else
3794 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3795 fi
a0b9e27f 3796
10f2d63a 3797else
a0b9e27f 3798
10f2d63a
VZ
3799 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3800 if test "x$LINE" != x ; then
3801 eval "DEFAULT_$LINE"
3802 else
3803 no_cache=1
3804 fi
3805
3806 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
a0b9e27f
MB
3807
3808fi
10f2d63a
VZ
3809
3810
3811 eval "$ac_cv_use_dynlib"
3812 if test "$no_cache" != 1; then
3813 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3814 fi
3815
3816 if test "$wxUSE_DYNLIB_CLASS" = yes; then
a0b9e27f 3817 echo "$ac_t""yes" 1>&6
10f2d63a 3818 else
a0b9e27f 3819 echo "$ac_t""no" 1>&6
10f2d63a 3820 fi
a0b9e27f 3821
10f2d63a 3822
a0b9e27f 3823 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3bce6687 3824echo "configure:3825: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3825 no_cache=0
3826 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3827if test "${enable_dynamicloader+set}" = set; then
3828 enableval="$enable_dynamicloader"
a0b9e27f 3829
0b9ab0bd
RL
3830 if test "$enableval" = yes; then
3831 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3832 else
3833 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3834 fi
a0b9e27f 3835
0b9ab0bd 3836else
a0b9e27f 3837
0b9ab0bd
RL
3838 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
a0b9e27f
MB
3846
3847fi
0b9ab0bd
RL
3848
3849
3850 eval "$ac_cv_use_dynamicloader"
3851 if test "$no_cache" != 1; then
3852 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3853 fi
3854
3855 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
a0b9e27f 3856 echo "$ac_t""yes" 1>&6
0b9ab0bd 3857 else
a0b9e27f 3858 echo "$ac_t""no" 1>&6
0b9ab0bd 3859 fi
a0b9e27f 3860
0b9ab0bd 3861
a0b9e27f 3862 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3bce6687 3863echo "configure:3864: checking for --enable-longlong" >&5
10f2d63a
VZ
3864 no_cache=0
3865 # Check whether --enable-longlong or --disable-longlong was given.
3866if test "${enable_longlong+set}" = set; then
3867 enableval="$enable_longlong"
a0b9e27f 3868
10f2d63a
VZ
3869 if test "$enableval" = yes; then
3870 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3871 else
3872 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3873 fi
a0b9e27f 3874
10f2d63a 3875else
a0b9e27f 3876
10f2d63a
VZ
3877 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3878 if test "x$LINE" != x ; then
3879 eval "DEFAULT_$LINE"
3880 else
3881 no_cache=1
3882 fi
3883
3884 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
a0b9e27f
MB
3885
3886fi
10f2d63a
VZ
3887
3888
3889 eval "$ac_cv_use_longlong"
3890 if test "$no_cache" != 1; then
3891 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3892 fi
3893
3894 if test "$wxUSE_LONGLONG" = yes; then
a0b9e27f 3895 echo "$ac_t""yes" 1>&6
10f2d63a 3896 else
a0b9e27f 3897 echo "$ac_t""no" 1>&6
10f2d63a 3898 fi
a0b9e27f 3899
10f2d63a 3900
a0b9e27f 3901 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3bce6687 3902echo "configure:3903: checking for --enable-geometry" >&5
e8f65ba6
RR
3903 no_cache=0
3904 # Check whether --enable-geometry or --disable-geometry was given.
3905if test "${enable_geometry+set}" = set; then
3906 enableval="$enable_geometry"
a0b9e27f 3907
e8f65ba6
RR
3908 if test "$enableval" = yes; then
3909 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3910 else
3911 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3912 fi
a0b9e27f 3913
e8f65ba6 3914else
a0b9e27f 3915
e8f65ba6
RR
3916 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3917 if test "x$LINE" != x ; then
3918 eval "DEFAULT_$LINE"
3919 else
3920 no_cache=1
3921 fi
3922
3923 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
a0b9e27f
MB
3924
3925fi
e8f65ba6
RR
3926
3927
3928 eval "$ac_cv_use_geometry"
3929 if test "$no_cache" != 1; then
3930 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3931 fi
3932
3933 if test "$wxUSE_GEOMETRY" = yes; then
a0b9e27f 3934 echo "$ac_t""yes" 1>&6
e8f65ba6 3935 else
a0b9e27f 3936 echo "$ac_t""no" 1>&6
e8f65ba6 3937 fi
a0b9e27f 3938
e8f65ba6 3939
a0b9e27f 3940 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3bce6687 3941echo "configure:3942: checking for --enable-log" >&5
10f2d63a
VZ
3942 no_cache=0
3943 # Check whether --enable-log or --disable-log was given.
3944if test "${enable_log+set}" = set; then
3945 enableval="$enable_log"
a0b9e27f 3946
10f2d63a
VZ
3947 if test "$enableval" = yes; then
3948 ac_cv_use_log='wxUSE_LOG=yes'
3949 else
3950 ac_cv_use_log='wxUSE_LOG=no'
3951 fi
a0b9e27f 3952
10f2d63a 3953else
a0b9e27f 3954
10f2d63a
VZ
3955 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3956 if test "x$LINE" != x ; then
3957 eval "DEFAULT_$LINE"
3958 else
3959 no_cache=1
3960 fi
3961
3962 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
a0b9e27f
MB
3963
3964fi
10f2d63a
VZ
3965
3966
3967 eval "$ac_cv_use_log"
3968 if test "$no_cache" != 1; then
3969 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3970 fi
3971
3972 if test "$wxUSE_LOG" = yes; then
a0b9e27f 3973 echo "$ac_t""yes" 1>&6
10f2d63a 3974 else
a0b9e27f 3975 echo "$ac_t""no" 1>&6
10f2d63a 3976 fi
a0b9e27f 3977
10f2d63a 3978
a0b9e27f 3979 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3bce6687 3980echo "configure:3981: checking for --enable-streams" >&5
10f2d63a
VZ
3981 no_cache=0
3982 # Check whether --enable-streams or --disable-streams was given.
3983if test "${enable_streams+set}" = set; then
3984 enableval="$enable_streams"
a0b9e27f 3985
10f2d63a
VZ
3986 if test "$enableval" = yes; then
3987 ac_cv_use_streams='wxUSE_STREAMS=yes'
3988 else
3989 ac_cv_use_streams='wxUSE_STREAMS=no'
3990 fi
a0b9e27f 3991
10f2d63a 3992else
a0b9e27f 3993
10f2d63a
VZ
3994 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3995 if test "x$LINE" != x ; then
3996 eval "DEFAULT_$LINE"
3997 else
3998 no_cache=1
3999 fi
4000
4001 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
a0b9e27f
MB
4002
4003fi
10f2d63a
VZ
4004
4005
4006 eval "$ac_cv_use_streams"
4007 if test "$no_cache" != 1; then
4008 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4009 fi
4010
4011 if test "$wxUSE_STREAMS" = yes; then
a0b9e27f 4012 echo "$ac_t""yes" 1>&6
10f2d63a 4013 else
a0b9e27f 4014 echo "$ac_t""no" 1>&6
10f2d63a 4015 fi
a0b9e27f 4016
10f2d63a 4017
a0b9e27f 4018 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3bce6687 4019echo "configure:4020: checking for --enable-file" >&5
10f2d63a
VZ
4020 no_cache=0
4021 # Check whether --enable-file or --disable-file was given.
4022if test "${enable_file+set}" = set; then
4023 enableval="$enable_file"
a0b9e27f 4024
10f2d63a
VZ
4025 if test "$enableval" = yes; then
4026 ac_cv_use_file='wxUSE_FILE=yes'
4027 else
4028 ac_cv_use_file='wxUSE_FILE=no'
4029 fi
a0b9e27f 4030
10f2d63a 4031else
a0b9e27f 4032
10f2d63a
VZ
4033 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4034 if test "x$LINE" != x ; then
4035 eval "DEFAULT_$LINE"
4036 else
4037 no_cache=1
4038 fi
4039
4040 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
a0b9e27f
MB
4041
4042fi
10f2d63a
VZ
4043
4044
4045 eval "$ac_cv_use_file"
4046 if test "$no_cache" != 1; then
4047 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4048 fi
4049
4050 if test "$wxUSE_FILE" = yes; then
a0b9e27f 4051 echo "$ac_t""yes" 1>&6
10f2d63a 4052 else
a0b9e27f 4053 echo "$ac_t""no" 1>&6
10f2d63a 4054 fi
a0b9e27f 4055
10f2d63a 4056
a0b9e27f 4057 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3bce6687 4058echo "configure:4059: checking for --enable-ffile" >&5
10f2d63a 4059 no_cache=0
1e6feb95
VZ
4060 # Check whether --enable-ffile or --disable-ffile was given.
4061if test "${enable_ffile+set}" = set; then
4062 enableval="$enable_ffile"
a0b9e27f 4063
10f2d63a 4064 if test "$enableval" = yes; then
1e6feb95 4065 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4066 else
1e6feb95 4067 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4068 fi
a0b9e27f 4069
10f2d63a 4070else
a0b9e27f 4071
1e6feb95 4072 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4073 if test "x$LINE" != x ; then
4074 eval "DEFAULT_$LINE"
4075 else
4076 no_cache=1
4077 fi
4078
1e6feb95 4079 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
a0b9e27f
MB
4080
4081fi
10f2d63a
VZ
4082
4083
1e6feb95 4084 eval "$ac_cv_use_ffile"
10f2d63a 4085 if test "$no_cache" != 1; then
1e6feb95 4086 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4087 fi
4088
1e6feb95 4089 if test "$wxUSE_FFILE" = yes; then
a0b9e27f 4090 echo "$ac_t""yes" 1>&6
10f2d63a 4091 else
a0b9e27f 4092 echo "$ac_t""no" 1>&6
10f2d63a 4093 fi
a0b9e27f 4094
10f2d63a 4095
a0b9e27f 4096 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3bce6687 4097echo "configure:4098: checking for --enable-textbuf" >&5
a3a584a7
VZ
4098 no_cache=0
4099 # Check whether --enable-textbuf or --disable-textbuf was given.
4100if test "${enable_textbuf+set}" = set; then
4101 enableval="$enable_textbuf"
a0b9e27f 4102
a3a584a7
VZ
4103 if test "$enableval" = yes; then
4104 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4105 else
4106 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4107 fi
a0b9e27f 4108
a3a584a7 4109else
a0b9e27f 4110
a3a584a7
VZ
4111 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4112 if test "x$LINE" != x ; then
4113 eval "DEFAULT_$LINE"
4114 else
4115 no_cache=1
4116 fi
4117
4118 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a0b9e27f
MB
4119
4120fi
a3a584a7
VZ
4121
4122
4123 eval "$ac_cv_use_textbuf"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_TEXTBUFFER" = yes; then
a0b9e27f 4129 echo "$ac_t""yes" 1>&6
a3a584a7 4130 else
a0b9e27f 4131 echo "$ac_t""no" 1>&6
a3a584a7 4132 fi
a0b9e27f 4133
a3a584a7 4134
a0b9e27f 4135 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3bce6687 4136echo "configure:4137: checking for --enable-textfile" >&5
10f2d63a 4137 no_cache=0
1e6feb95
VZ
4138 # Check whether --enable-textfile or --disable-textfile was given.
4139if test "${enable_textfile+set}" = set; then
4140 enableval="$enable_textfile"
a0b9e27f 4141
10f2d63a 4142 if test "$enableval" = yes; then
1e6feb95 4143 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4144 else
1e6feb95 4145 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4146 fi
a0b9e27f 4147
10f2d63a 4148else
a0b9e27f 4149
1e6feb95 4150 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
1e6feb95 4157 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
a0b9e27f
MB
4158
4159fi
10f2d63a
VZ
4160
4161
1e6feb95 4162 eval "$ac_cv_use_textfile"
10f2d63a 4163 if test "$no_cache" != 1; then
1e6feb95 4164 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4165 fi
4166
1e6feb95 4167 if test "$wxUSE_TEXTFILE" = yes; then
a0b9e27f 4168 echo "$ac_t""yes" 1>&6
10f2d63a 4169 else
a0b9e27f 4170 echo "$ac_t""no" 1>&6
10f2d63a 4171 fi
a0b9e27f 4172
10f2d63a 4173
a0b9e27f 4174 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3bce6687 4175echo "configure:4176: checking for --enable-fontmap" >&5
10f2d63a 4176 no_cache=0
1e6feb95
VZ
4177 # Check whether --enable-fontmap or --disable-fontmap was given.
4178if test "${enable_fontmap+set}" = set; then
4179 enableval="$enable_fontmap"
a0b9e27f 4180
10f2d63a 4181 if test "$enableval" = yes; then
1e6feb95 4182 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4183 else
1e6feb95 4184 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4185 fi
a0b9e27f 4186
10f2d63a 4187else
a0b9e27f 4188
1e6feb95 4189 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4190 if test "x$LINE" != x ; then
4191 eval "DEFAULT_$LINE"
4192 else
4193 no_cache=1
4194 fi
4195
1e6feb95 4196 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
a0b9e27f
MB
4197
4198fi
10f2d63a
VZ
4199
4200
1e6feb95 4201 eval "$ac_cv_use_fontmap"
10f2d63a 4202 if test "$no_cache" != 1; then
1e6feb95 4203 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4204 fi
4205
1e6feb95 4206 if test "$wxUSE_FONTMAP" = yes; then
a0b9e27f 4207 echo "$ac_t""yes" 1>&6
10f2d63a 4208 else
a0b9e27f 4209 echo "$ac_t""no" 1>&6
10f2d63a 4210 fi
a0b9e27f 4211
10f2d63a 4212
a0b9e27f 4213 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3bce6687 4214echo "configure:4215: checking for --enable-unicode" >&5
10f2d63a 4215 no_cache=0
1e6feb95
VZ
4216 # Check whether --enable-unicode or --disable-unicode was given.
4217if test "${enable_unicode+set}" = set; then
4218 enableval="$enable_unicode"
a0b9e27f 4219
1e6feb95
VZ
4220 if test "$enableval" = yes; then
4221 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4222 else
4223 ac_cv_use_unicode='wxUSE_UNICODE=no'
4224 fi
a0b9e27f 4225
1e6feb95 4226else
a0b9e27f 4227
1e6feb95
VZ
4228 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4229 if test "x$LINE" != x ; then
4230 eval "DEFAULT_$LINE"
4231 else
4232 no_cache=1
4233 fi
4234
4235 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
a0b9e27f
MB
4236
4237fi
1e6feb95
VZ
4238
4239
4240 eval "$ac_cv_use_unicode"
4241 if test "$no_cache" != 1; then
4242 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4243 fi
4244
4245 if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 4246 echo "$ac_t""yes" 1>&6
1e6feb95 4247 else
a0b9e27f 4248 echo "$ac_t""no" 1>&6
1e6feb95 4249 fi
a0b9e27f 4250
1e6feb95 4251
a0b9e27f 4252 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
3bce6687 4253echo "configure:4254: checking for --enable-mslu" >&5
a72a4bfa
VS
4254 no_cache=0
4255 # Check whether --enable-mslu or --disable-mslu was given.
4256if test "${enable_mslu+set}" = set; then
4257 enableval="$enable_mslu"
a0b9e27f 4258
a72a4bfa
VS
4259 if test "$enableval" = yes; then
4260 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4261 else
4262 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4263 fi
a0b9e27f 4264
a72a4bfa 4265else
a0b9e27f 4266
a72a4bfa
VS
4267 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4268 if test "x$LINE" != x ; then
4269 eval "DEFAULT_$LINE"
4270 else
4271 no_cache=1
4272 fi
4273
4274 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a0b9e27f
MB
4275
4276fi
a72a4bfa
VS
4277
4278
4279 eval "$ac_cv_use_mslu"
4280 if test "$no_cache" != 1; then
4281 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4282 fi
4283
4284 if test "$wxUSE_UNICODE_MSLU" = yes; then
a0b9e27f 4285 echo "$ac_t""yes" 1>&6
a72a4bfa 4286 else
a0b9e27f 4287 echo "$ac_t""no" 1>&6
a72a4bfa 4288 fi
a0b9e27f 4289
a72a4bfa 4290
a0b9e27f 4291 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3bce6687 4292echo "configure:4293: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4293 no_cache=0
4294 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4295if test "${enable_wxprintfv+set}" = set; then
4296 enableval="$enable_wxprintfv"
a0b9e27f 4297
1e6feb95 4298 if test "$enableval" = yes; then
10f2d63a
VZ
4299 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4300 else
4301 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4302 fi
a0b9e27f 4303
10f2d63a 4304else
a0b9e27f 4305
10f2d63a
VZ
4306 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4307 if test "x$LINE" != x ; then
4308 eval "DEFAULT_$LINE"
4309 else
4310 no_cache=1
4311 fi
4312
4313 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
a0b9e27f
MB
4314
4315fi
10f2d63a
VZ
4316
4317
4318 eval "$ac_cv_use_wxprintfv"
4319 if test "$no_cache" != 1; then
4320 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4321 fi
4322
4323 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
a0b9e27f 4324 echo "$ac_t""yes" 1>&6
10f2d63a 4325 else
a0b9e27f 4326 echo "$ac_t""no" 1>&6
10f2d63a 4327 fi
a0b9e27f 4328
10f2d63a 4329
a0b9e27f 4330 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3bce6687 4331echo "configure:4332: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4332 no_cache=0
4333 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4334if test "${enable_std_iostreams+set}" = set; then
4335 enableval="$enable_std_iostreams"
a0b9e27f 4336
10f2d63a
VZ
4337 if test "$enableval" = yes; then
4338 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4339 else
4340 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4341 fi
a0b9e27f 4342
10f2d63a 4343else
a0b9e27f 4344
10f2d63a
VZ
4345 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
4352 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a0b9e27f
MB
4353
4354fi
10f2d63a
VZ
4355
4356
4357 eval "$ac_cv_use_std_iostreams"
4358 if test "$no_cache" != 1; then
4359 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4360 fi
4361
4362 if test "$wxUSE_STD_IOSTREAM" = yes; then
a0b9e27f 4363 echo "$ac_t""yes" 1>&6
10f2d63a 4364 else
a0b9e27f 4365 echo "$ac_t""no" 1>&6
10f2d63a 4366 fi
a0b9e27f 4367
10f2d63a 4368
a0b9e27f 4369 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3bce6687 4370echo "configure:4371: checking for --enable-filesystem" >&5
24528b0c
VS
4371 no_cache=0
4372 # Check whether --enable-filesystem or --disable-filesystem was given.
4373if test "${enable_filesystem+set}" = set; then
4374 enableval="$enable_filesystem"
a0b9e27f 4375
24528b0c
VS
4376 if test "$enableval" = yes; then
4377 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4378 else
4379 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4380 fi
a0b9e27f 4381
24528b0c 4382else
a0b9e27f 4383
24528b0c
VS
4384 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4385 if test "x$LINE" != x ; then
4386 eval "DEFAULT_$LINE"
4387 else
4388 no_cache=1
4389 fi
4390
4391 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
a0b9e27f
MB
4392
4393fi
24528b0c
VS
4394
4395
4396 eval "$ac_cv_use_filesystem"
4397 if test "$no_cache" != 1; then
4398 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4399 fi
4400
4401 if test "$wxUSE_FILESYSTEM" = yes; then
a0b9e27f 4402 echo "$ac_t""yes" 1>&6
24528b0c 4403 else
a0b9e27f 4404 echo "$ac_t""no" 1>&6
24528b0c 4405 fi
a0b9e27f 4406
24528b0c 4407
a0b9e27f 4408 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3bce6687 4409echo "configure:4410: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4410 no_cache=0
4411 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4412if test "${enable_fs_inet+set}" = set; then
4413 enableval="$enable_fs_inet"
a0b9e27f 4414
10f2d63a
VZ
4415 if test "$enableval" = yes; then
4416 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4417 else
4418 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4419 fi
a0b9e27f 4420
10f2d63a 4421else
a0b9e27f 4422
10f2d63a
VZ
4423 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4424 if test "x$LINE" != x ; then
4425 eval "DEFAULT_$LINE"
4426 else
4427 no_cache=1
4428 fi
4429
4430 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
a0b9e27f
MB
4431
4432fi
10f2d63a
VZ
4433
4434
4435 eval "$ac_cv_use_fs_inet"
4436 if test "$no_cache" != 1; then
4437 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4438 fi
4439
4440 if test "$wxUSE_FS_INET" = yes; then
a0b9e27f 4441 echo "$ac_t""yes" 1>&6
10f2d63a 4442 else
a0b9e27f 4443 echo "$ac_t""no" 1>&6
10f2d63a 4444 fi
a0b9e27f 4445
10f2d63a 4446
a0b9e27f 4447 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3bce6687 4448echo "configure:4449: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4449 no_cache=0
4450 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4451if test "${enable_fs_zip+set}" = set; then
4452 enableval="$enable_fs_zip"
a0b9e27f 4453
10f2d63a
VZ
4454 if test "$enableval" = yes; then
4455 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4456 else
4457 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4458 fi
a0b9e27f 4459
10f2d63a 4460else
a0b9e27f 4461
10f2d63a
VZ
4462 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4463 if test "x$LINE" != x ; then
4464 eval "DEFAULT_$LINE"
4465 else
4466 no_cache=1
4467 fi
4468
4469 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a0b9e27f
MB
4470
4471fi
10f2d63a
VZ
4472
4473
4474 eval "$ac_cv_use_fs_zip"
4475 if test "$no_cache" != 1; then
4476 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4477 fi
4478
4479 if test "$wxUSE_FS_ZIP" = yes; then
a0b9e27f 4480 echo "$ac_t""yes" 1>&6
10f2d63a 4481 else
a0b9e27f 4482 echo "$ac_t""no" 1>&6
10f2d63a 4483 fi
a0b9e27f 4484
10f2d63a 4485
a0b9e27f 4486 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3bce6687 4487echo "configure:4488: checking for --enable-zipstream" >&5
10f2d63a
VZ
4488 no_cache=0
4489 # Check whether --enable-zipstream or --disable-zipstream was given.
4490if test "${enable_zipstream+set}" = set; then
4491 enableval="$enable_zipstream"
a0b9e27f 4492
10f2d63a
VZ
4493 if test "$enableval" = yes; then
4494 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4495 else
4496 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4497 fi
a0b9e27f 4498
10f2d63a 4499else
a0b9e27f 4500
10f2d63a
VZ
4501 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4502 if test "x$LINE" != x ; then
4503 eval "DEFAULT_$LINE"
4504 else
4505 no_cache=1
4506 fi
4507
4508 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
a0b9e27f
MB
4509
4510fi
10f2d63a
VZ
4511
4512
4513 eval "$ac_cv_use_zipstream"
4514 if test "$no_cache" != 1; then
4515 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4516 fi
4517
4518 if test "$wxUSE_ZIPSTREAM" = yes; then
a0b9e27f 4519 echo "$ac_t""yes" 1>&6
10f2d63a 4520 else
a0b9e27f 4521 echo "$ac_t""no" 1>&6
10f2d63a 4522 fi
a0b9e27f 4523
8284b0c5 4524
52127426 4525
a0b9e27f 4526 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
3bce6687 4527echo "configure:4528: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4528 no_cache=0
4529 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4530if test "${enable_catch_segvs+set}" = set; then
4531 enableval="$enable_catch_segvs"
a0b9e27f 4532
eb4efbdc
VZ
4533 if test "$enableval" = yes; then
4534 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4535 else
4536 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4537 fi
a0b9e27f 4538
eb4efbdc 4539else
a0b9e27f 4540
eb4efbdc
VZ
4541 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4542 if test "x$LINE" != x ; then
4543 eval "DEFAULT_$LINE"
4544 else
4545 no_cache=1
4546 fi
4547
4548 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
a0b9e27f
MB
4549
4550fi
eb4efbdc
VZ
4551
4552
4553 eval "$ac_cv_use_catch_segvs"
4554 if test "$no_cache" != 1; then
4555 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4556 fi
4557
4558 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
a0b9e27f 4559 echo "$ac_t""yes" 1>&6
eb4efbdc 4560 else
a0b9e27f 4561 echo "$ac_t""no" 1>&6
eb4efbdc 4562 fi
a0b9e27f 4563
eb4efbdc 4564
a0b9e27f 4565 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
3bce6687 4566echo "configure:4567: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4567 no_cache=0
4568 # Check whether --enable-snglinst or --disable-snglinst was given.
4569if test "${enable_snglinst+set}" = set; then
4570 enableval="$enable_snglinst"
a0b9e27f 4571
4f3c5f06
VZ
4572 if test "$enableval" = yes; then
4573 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4574 else
4575 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4576 fi
a0b9e27f 4577
4f3c5f06 4578else
a0b9e27f 4579
4f3c5f06
VZ
4580 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4581 if test "x$LINE" != x ; then
4582 eval "DEFAULT_$LINE"
4583 else
4584 no_cache=1
4585 fi
4586
4587 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
a0b9e27f
MB
4588
4589fi
4f3c5f06
VZ
4590
4591
4592 eval "$ac_cv_use_snglinst"
4593 if test "$no_cache" != 1; then
4594 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4595 fi
4596
4597 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
a0b9e27f 4598 echo "$ac_t""yes" 1>&6
4f3c5f06 4599 else
a0b9e27f 4600 echo "$ac_t""no" 1>&6
4f3c5f06 4601 fi
a0b9e27f 4602
52127426 4603
8284b0c5 4604
a0b9e27f 4605 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
3bce6687 4606echo "configure:4607: checking for --enable-mimetype" >&5
1e6feb95
VZ
4607 no_cache=0
4608 # Check whether --enable-mimetype or --disable-mimetype was given.
4609if test "${enable_mimetype+set}" = set; then
4610 enableval="$enable_mimetype"
a0b9e27f 4611
1e6feb95
VZ
4612 if test "$enableval" = yes; then
4613 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4614 else
4615 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4616 fi
a0b9e27f 4617
1e6feb95 4618else
a0b9e27f 4619
1e6feb95
VZ
4620 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4621 if test "x$LINE" != x ; then
4622 eval "DEFAULT_$LINE"
4623 else
4624 no_cache=1
4625 fi
4626
4627 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
a0b9e27f
MB
4628
4629fi
1e6feb95
VZ
4630
4631
4632 eval "$ac_cv_use_mimetype"
4633 if test "$no_cache" != 1; then
4634 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4635 fi
4636
4637 if test "$wxUSE_MIMETYPE" = yes; then
a0b9e27f 4638 echo "$ac_t""yes" 1>&6
1e6feb95 4639 else
a0b9e27f 4640 echo "$ac_t""no" 1>&6
1e6feb95 4641 fi
a0b9e27f 4642
1e6feb95 4643
a0b9e27f 4644 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
3bce6687 4645echo "configure:4646: checking for --enable-system_options" >&5
3e44f09d
VZ
4646 no_cache=0
4647 # Check whether --enable-system_options or --disable-system_options was given.
4648if test "${enable_system_options+set}" = set; then
4649 enableval="$enable_system_options"
a0b9e27f 4650
3e44f09d
VZ
4651 if test "$enableval" = yes; then
4652 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4653 else
4654 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4655 fi
a0b9e27f 4656
3e44f09d 4657else
a0b9e27f 4658
3e44f09d
VZ
4659 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4660 if test "x$LINE" != x ; then
4661 eval "DEFAULT_$LINE"
4662 else
4663 no_cache=1
4664 fi
4665
4666 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
a0b9e27f
MB
4667
4668fi
3e44f09d
VZ
4669
4670
4671 eval "$ac_cv_use_system_options"
4672 if test "$no_cache" != 1; then
4673 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4674 fi
4675
4676 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
a0b9e27f 4677 echo "$ac_t""yes" 1>&6
3e44f09d 4678 else
a0b9e27f 4679 echo "$ac_t""no" 1>&6
3e44f09d 4680 fi
a0b9e27f 4681
8284b0c5 4682
52127426 4683
a0b9e27f 4684 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
3bce6687 4685echo "configure:4686: checking for --enable-url" >&5
4cdb0ab0
VS
4686 no_cache=0
4687 # Check whether --enable-url or --disable-url was given.
4688if test "${enable_url+set}" = set; then
4689 enableval="$enable_url"
a0b9e27f 4690
4cdb0ab0
VS
4691 if test "$enableval" = yes; then
4692 ac_cv_use_url='wxUSE_URL=yes'
4693 else
4694 ac_cv_use_url='wxUSE_URL=no'
4695 fi
a0b9e27f 4696
4cdb0ab0 4697else
a0b9e27f 4698
4cdb0ab0
VS
4699 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4700 if test "x$LINE" != x ; then
4701 eval "DEFAULT_$LINE"
4702 else
4703 no_cache=1
4704 fi
4705
4706 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
a0b9e27f
MB
4707
4708fi
4cdb0ab0
VS
4709
4710
4711 eval "$ac_cv_use_url"
4712 if test "$no_cache" != 1; then
4713 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4714 fi
4715
4716 if test "$wxUSE_URL" = yes; then
a0b9e27f 4717 echo "$ac_t""yes" 1>&6
4cdb0ab0 4718 else
a0b9e27f 4719 echo "$ac_t""no" 1>&6
4cdb0ab0 4720 fi
a0b9e27f 4721
4cdb0ab0 4722
a0b9e27f 4723 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
3bce6687 4724echo "configure:4725: checking for --enable-protocol" >&5
4cdb0ab0
VS
4725 no_cache=0
4726 # Check whether --enable-protocol or --disable-protocol was given.
4727if test "${enable_protocol+set}" = set; then
4728 enableval="$enable_protocol"
a0b9e27f 4729
4cdb0ab0
VS
4730 if test "$enableval" = yes; then
4731 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4732 else
4733 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4734 fi
a0b9e27f 4735
4cdb0ab0 4736else
a0b9e27f 4737
4cdb0ab0
VS
4738 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4739 if test "x$LINE" != x ; then
4740 eval "DEFAULT_$LINE"
4741 else
4742 no_cache=1
4743 fi
4744
4745 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a0b9e27f
MB
4746
4747fi
4cdb0ab0
VS
4748
4749
4750 eval "$ac_cv_use_protocol"
4751 if test "$no_cache" != 1; then
4752 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4753 fi
4754
4755 if test "$wxUSE_PROTOCOL" = yes; then
a0b9e27f 4756 echo "$ac_t""yes" 1>&6
4cdb0ab0 4757 else
a0b9e27f 4758 echo "$ac_t""no" 1>&6
4cdb0ab0 4759 fi
a0b9e27f 4760
4cdb0ab0 4761
a0b9e27f 4762 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
3bce6687 4763echo "configure:4764: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4764 no_cache=0
4765 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4766if test "${enable_protocol_http+set}" = set; then
4767 enableval="$enable_protocol_http"
a0b9e27f 4768
4cdb0ab0
VS
4769 if test "$enableval" = yes; then
4770 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4771 else
4772 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4773 fi
a0b9e27f 4774
4cdb0ab0 4775else
a0b9e27f 4776
4cdb0ab0
VS
4777 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4778 if test "x$LINE" != x ; then
4779 eval "DEFAULT_$LINE"
4780 else
4781 no_cache=1
4782 fi
4783
4784 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a0b9e27f
MB
4785
4786fi
4cdb0ab0
VS
4787
4788
4789 eval "$ac_cv_use_protocol_http"
4790 if test "$no_cache" != 1; then
4791 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4792 fi
4793
4794 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
a0b9e27f 4795 echo "$ac_t""yes" 1>&6
4cdb0ab0 4796 else
a0b9e27f 4797 echo "$ac_t""no" 1>&6
4cdb0ab0 4798 fi
a0b9e27f 4799
4cdb0ab0 4800
a0b9e27f 4801 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
3bce6687 4802echo "configure:4803: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4803 no_cache=0
4804 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4805if test "${enable_protocol_ftp+set}" = set; then
4806 enableval="$enable_protocol_ftp"
a0b9e27f 4807
4cdb0ab0
VS
4808 if test "$enableval" = yes; then
4809 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4810 else
4811 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4812 fi
a0b9e27f 4813
4cdb0ab0 4814else
a0b9e27f 4815
4cdb0ab0
VS
4816 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4817 if test "x$LINE" != x ; then
4818 eval "DEFAULT_$LINE"
4819 else
4820 no_cache=1
4821 fi
4822
4823 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a0b9e27f
MB
4824
4825fi
4cdb0ab0
VS
4826
4827
4828 eval "$ac_cv_use_protocol_ftp"
4829 if test "$no_cache" != 1; then
4830 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4831 fi
4832
4833 if test "$wxUSE_PROTOCOL_FTP" = yes; then
a0b9e27f 4834 echo "$ac_t""yes" 1>&6
4cdb0ab0 4835 else
a0b9e27f 4836 echo "$ac_t""no" 1>&6
4cdb0ab0 4837 fi
a0b9e27f 4838
4cdb0ab0 4839
a0b9e27f 4840 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
3bce6687 4841echo "configure:4842: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4842 no_cache=0
4843 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4844if test "${enable_protocol_file+set}" = set; then
4845 enableval="$enable_protocol_file"
a0b9e27f 4846
4cdb0ab0
VS
4847 if test "$enableval" = yes; then
4848 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4849 else
4850 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4851 fi
a0b9e27f 4852
4cdb0ab0 4853else
a0b9e27f 4854
4cdb0ab0
VS
4855 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4856 if test "x$LINE" != x ; then
4857 eval "DEFAULT_$LINE"
4858 else
4859 no_cache=1
4860 fi
4861
4862 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a0b9e27f
MB
4863
4864fi
4cdb0ab0
VS
4865
4866
4867 eval "$ac_cv_use_protocol_file"
4868 if test "$no_cache" != 1; then
4869 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4870 fi
4871
4872 if test "$wxUSE_PROTOCOL_FILE" = yes; then
a0b9e27f 4873 echo "$ac_t""yes" 1>&6
4cdb0ab0 4874 else
a0b9e27f 4875 echo "$ac_t""no" 1>&6
4cdb0ab0 4876 fi
a0b9e27f 4877
52127426 4878
8284b0c5
MB
4879
4880
4881
a0b9e27f 4882 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
3bce6687 4883echo "configure:4884: checking for --enable-threads" >&5
10f2d63a
VZ
4884 no_cache=0
4885 # Check whether --enable-threads or --disable-threads was given.
4886if test "${enable_threads+set}" = set; then
4887 enableval="$enable_threads"
a0b9e27f 4888
10f2d63a
VZ
4889 if test "$enableval" = yes; then
4890 ac_cv_use_threads='wxUSE_THREADS=yes'
4891 else
4892 ac_cv_use_threads='wxUSE_THREADS=no'
4893 fi
a0b9e27f 4894
10f2d63a 4895else
a0b9e27f 4896
10f2d63a
VZ
4897 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4898 if test "x$LINE" != x ; then
4899 eval "DEFAULT_$LINE"
4900 else
4901 no_cache=1
4902 fi
4903
4904 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
a0b9e27f
MB
4905
4906fi
10f2d63a
VZ
4907
4908
4909 eval "$ac_cv_use_threads"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_THREADS" = yes; then
a0b9e27f 4915 echo "$ac_t""yes" 1>&6
10f2d63a 4916 else
a0b9e27f 4917 echo "$ac_t""no" 1>&6
10f2d63a 4918 fi
a0b9e27f 4919
10f2d63a 4920
b12915c1
VZ
4921if test "$wxUSE_GUI" = "yes"; then
4922
8284b0c5
MB
4923
4924
a0b9e27f 4925 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
3bce6687 4926echo "configure:4927: checking for --enable-docview" >&5
10f2d63a
VZ
4927 no_cache=0
4928 # Check whether --enable-docview or --disable-docview was given.
4929if test "${enable_docview+set}" = set; then
4930 enableval="$enable_docview"
a0b9e27f 4931
10f2d63a
VZ
4932 if test "$enableval" = yes; then
4933 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4934 else
4935 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4936 fi
a0b9e27f 4937
10f2d63a 4938else
a0b9e27f 4939
10f2d63a
VZ
4940 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
a0b9e27f
MB
4948
4949fi
10f2d63a
VZ
4950
4951
4952 eval "$ac_cv_use_docview"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
a0b9e27f 4958 echo "$ac_t""yes" 1>&6
10f2d63a 4959 else
a0b9e27f 4960 echo "$ac_t""no" 1>&6
10f2d63a 4961 fi
a0b9e27f 4962
10f2d63a 4963
a0b9e27f 4964 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
3bce6687 4965echo "configure:4966: checking for --enable-help" >&5
10f2d63a
VZ
4966 no_cache=0
4967 # Check whether --enable-help or --disable-help was given.
4968if test "${enable_help+set}" = set; then
4969 enableval="$enable_help"
a0b9e27f 4970
10f2d63a
VZ
4971 if test "$enableval" = yes; then
4972 ac_cv_use_help='wxUSE_HELP=yes'
4973 else
4974 ac_cv_use_help='wxUSE_HELP=no'
4975 fi
a0b9e27f 4976
10f2d63a 4977else
a0b9e27f 4978
10f2d63a
VZ
4979 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4980 if test "x$LINE" != x ; then
4981 eval "DEFAULT_$LINE"
4982 else
4983 no_cache=1
4984 fi
4985
4986 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
a0b9e27f
MB
4987
4988fi
10f2d63a
VZ
4989
4990
4991 eval "$ac_cv_use_help"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_HELP" = yes; then
a0b9e27f 4997 echo "$ac_t""yes" 1>&6
10f2d63a 4998 else
a0b9e27f 4999 echo "$ac_t""no" 1>&6
10f2d63a 5000 fi
a0b9e27f 5001
10f2d63a 5002
a0b9e27f 5003 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
3bce6687 5004echo "configure:5005: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
5005 no_cache=0
5006 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5007if test "${enable_mshtmlhelp+set}" = set; then
5008 enableval="$enable_mshtmlhelp"
a0b9e27f 5009
29fd3c0c
VS
5010 if test "$enableval" = yes; then
5011 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5012 else
5013 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5014 fi
a0b9e27f 5015
29fd3c0c 5016else
a0b9e27f 5017
29fd3c0c
VS
5018 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5019 if test "x$LINE" != x ; then
5020 eval "DEFAULT_$LINE"
5021 else
5022 no_cache=1
5023 fi
5024
5025 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
a0b9e27f
MB
5026
5027fi
29fd3c0c
VS
5028
5029
5030 eval "$ac_cv_use_mshtmlhelp"
5031 if test "$no_cache" != 1; then
5032 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5033 fi
5034
5035 if test "$wxUSE_MS_HTML_HELP" = yes; then
a0b9e27f 5036 echo "$ac_t""yes" 1>&6
29fd3c0c 5037 else
a0b9e27f 5038 echo "$ac_t""no" 1>&6
29fd3c0c 5039 fi
a0b9e27f 5040
29fd3c0c 5041
a0b9e27f 5042 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
3bce6687 5043echo "configure:5044: checking for --enable-html" >&5
3379ed37
VZ
5044 no_cache=0
5045 # Check whether --enable-html or --disable-html was given.
5046if test "${enable_html+set}" = set; then
5047 enableval="$enable_html"
a0b9e27f 5048
3379ed37
VZ
5049 if test "$enableval" = yes; then
5050 ac_cv_use_html='wxUSE_HTML=yes'
5051 else
5052 ac_cv_use_html='wxUSE_HTML=no'
5053 fi
a0b9e27f 5054
3379ed37 5055else
a0b9e27f 5056
3379ed37
VZ
5057 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
a0b9e27f
MB
5065
5066fi
3379ed37
VZ
5067
5068
5069 eval "$ac_cv_use_html"
5070 if test "$no_cache" != 1; then
5071 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5072 fi
5073
5074 if test "$wxUSE_HTML" = yes; then
a0b9e27f 5075 echo "$ac_t""yes" 1>&6
3379ed37 5076 else
a0b9e27f 5077 echo "$ac_t""no" 1>&6
3379ed37 5078 fi
a0b9e27f 5079
3379ed37 5080
a0b9e27f 5081 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
3bce6687 5082echo "configure:5083: checking for --enable-htmlhelp" >&5
3379ed37
VZ
5083 no_cache=0
5084 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5085if test "${enable_htmlhelp+set}" = set; then
5086 enableval="$enable_htmlhelp"
a0b9e27f 5087
3379ed37
VZ
5088 if test "$enableval" = yes; then
5089 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5090 else
5091 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5092 fi
a0b9e27f 5093
3379ed37 5094else
a0b9e27f 5095
3379ed37
VZ
5096 LINE=`grep "wxUSE_WXHTML_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_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
a0b9e27f
MB
5104
5105fi
3379ed37
VZ
5106
5107
5108 eval "$ac_cv_use_htmlhelp"
5109 if test "$no_cache" != 1; then
5110 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5111 fi
5112
5113 if test "$wxUSE_WXHTML_HELP" = yes; then
a0b9e27f 5114 echo "$ac_t""yes" 1>&6
3379ed37 5115 else
a0b9e27f 5116 echo "$ac_t""no" 1>&6
3379ed37 5117 fi
a0b9e27f 5118
3379ed37 5119
a0b9e27f 5120 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
3bce6687 5121echo "configure:5122: checking for --enable-constraints" >&5
10f2d63a
VZ
5122 no_cache=0
5123 # Check whether --enable-constraints or --disable-constraints was given.
5124if test "${enable_constraints+set}" = set; then
5125 enableval="$enable_constraints"
a0b9e27f 5126
10f2d63a
VZ
5127 if test "$enableval" = yes; then
5128 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5129 else
5130 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5131 fi
a0b9e27f 5132
10f2d63a 5133else
a0b9e27f 5134
10f2d63a
VZ
5135 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5136 if test "x$LINE" != x ; then
5137 eval "DEFAULT_$LINE"
5138 else
5139 no_cache=1
5140 fi
5141
5142 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
a0b9e27f
MB
5143
5144fi
10f2d63a
VZ
5145
5146
5147 eval "$ac_cv_use_constraints"
5148 if test "$no_cache" != 1; then
5149 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5150 fi
5151
5152 if test "$wxUSE_CONSTRAINTS" = yes; then
a0b9e27f 5153 echo "$ac_t""yes" 1>&6
10f2d63a 5154 else
a0b9e27f 5155 echo "$ac_t""no" 1>&6
10f2d63a 5156 fi
a0b9e27f 5157
10f2d63a 5158
a0b9e27f 5159 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
3bce6687 5160echo "configure:5161: checking for --enable-printarch" >&5
10f2d63a
VZ
5161 no_cache=0
5162 # Check whether --enable-printarch or --disable-printarch was given.
5163if test "${enable_printarch+set}" = set; then
5164 enableval="$enable_printarch"
a0b9e27f 5165
10f2d63a
VZ
5166 if test "$enableval" = yes; then
5167 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5168 else
5169 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5170 fi
a0b9e27f 5171
10f2d63a 5172else
a0b9e27f 5173
10f2d63a
VZ
5174 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
a0b9e27f
MB
5182
5183fi
10f2d63a
VZ
5184
5185
5186 eval "$ac_cv_use_printarch"
5187 if test "$no_cache" != 1; then
5188 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5189 fi
5190
5191 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
a0b9e27f 5192 echo "$ac_t""yes" 1>&6
10f2d63a 5193 else
a0b9e27f 5194 echo "$ac_t""no" 1>&6
10f2d63a 5195 fi
a0b9e27f 5196
10f2d63a 5197
a0b9e27f 5198 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
3bce6687 5199echo "configure:5200: checking for --enable-mdi" >&5
10f2d63a
VZ
5200 no_cache=0
5201 # Check whether --enable-mdi or --disable-mdi was given.
5202if test "${enable_mdi+set}" = set; then
5203 enableval="$enable_mdi"
a0b9e27f 5204
10f2d63a
VZ
5205 if test "$enableval" = yes; then
5206 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5207 else
5208 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5209 fi
a0b9e27f 5210
10f2d63a 5211else
a0b9e27f 5212
10f2d63a
VZ
5213 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5214 if test "x$LINE" != x ; then
5215 eval "DEFAULT_$LINE"
5216 else
5217 no_cache=1
5218 fi
5219
5220 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
a0b9e27f
MB
5221
5222fi
10f2d63a
VZ
5223
5224
5225 eval "$ac_cv_use_mdi"
5226 if test "$no_cache" != 1; then
5227 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5228 fi
5229
5230 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
a0b9e27f 5231 echo "$ac_t""yes" 1>&6
10f2d63a 5232 else
a0b9e27f 5233 echo "$ac_t""no" 1>&6
10f2d63a 5234 fi
a0b9e27f 5235
698dcdb6 5236
a0b9e27f 5237 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
3bce6687 5238echo "configure:5239: checking for --enable-loggui" >&5
1e6feb95
VZ
5239 no_cache=0
5240 # Check whether --enable-loggui or --disable-loggui was given.
5241if test "${enable_loggui+set}" = set; then
5242 enableval="$enable_loggui"
a0b9e27f 5243
1e6feb95
VZ
5244 if test "$enableval" = yes; then
5245 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5246 else
5247 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5248 fi
a0b9e27f 5249
1e6feb95 5250else
a0b9e27f 5251
1e6feb95
VZ
5252 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5253 if test "x$LINE" != x ; then
5254 eval "DEFAULT_$LINE"
5255 else
5256 no_cache=1
5257 fi
5258
5259 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
a0b9e27f
MB
5260
5261fi
1e6feb95
VZ
5262
5263
5264 eval "$ac_cv_use_loggui"
5265 if test "$no_cache" != 1; then
5266 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5267 fi
5268
5269 if test "$wxUSE_LOGGUI" = yes; then
a0b9e27f 5270 echo "$ac_t""yes" 1>&6
1e6feb95 5271 else
a0b9e27f 5272 echo "$ac_t""no" 1>&6
1e6feb95 5273 fi
a0b9e27f 5274
1e6feb95 5275
a0b9e27f 5276 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
3bce6687 5277echo "configure:5278: checking for --enable-logwin" >&5
1e6feb95
VZ
5278 no_cache=0
5279 # Check whether --enable-logwin or --disable-logwin was given.
5280if test "${enable_logwin+set}" = set; then
5281 enableval="$enable_logwin"
a0b9e27f 5282
1e6feb95
VZ
5283 if test "$enableval" = yes; then
5284 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5285 else
5286 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5287 fi
a0b9e27f 5288
1e6feb95 5289else
a0b9e27f 5290
1e6feb95
VZ
5291 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5292 if test "x$LINE" != x ; then
5293 eval "DEFAULT_$LINE"
5294 else
5295 no_cache=1
5296 fi
5297
5298 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
a0b9e27f
MB
5299
5300fi
1e6feb95
VZ
5301
5302
5303 eval "$ac_cv_use_logwin"
5304 if test "$no_cache" != 1; then
5305 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5306 fi
5307
5308 if test "$wxUSE_LOGWINDOW" = yes; then
a0b9e27f 5309 echo "$ac_t""yes" 1>&6
1e6feb95 5310 else
a0b9e27f 5311 echo "$ac_t""no" 1>&6
1e6feb95 5312 fi
a0b9e27f 5313
1e6feb95 5314
a0b9e27f 5315 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
3bce6687 5316echo "configure:5317: checking for --enable-logdialog" >&5
69d27ff7
MB
5317 no_cache=0
5318 # Check whether --enable-logdialog or --disable-logdialog was given.
5319if test "${enable_logdialog+set}" = set; then
5320 enableval="$enable_logdialog"
a0b9e27f 5321
69d27ff7
MB
5322 if test "$enableval" = yes; then
5323 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5324 else
5325 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5326 fi
a0b9e27f 5327
69d27ff7 5328else
a0b9e27f 5329
69d27ff7
MB
5330 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5331 if test "x$LINE" != x ; then
5332 eval "DEFAULT_$LINE"
5333 else
5334 no_cache=1
5335 fi
5336
5337 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
a0b9e27f
MB
5338
5339fi
69d27ff7
MB
5340
5341
5342 eval "$ac_cv_use_logdialog"
5343 if test "$no_cache" != 1; then
5344 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5345 fi
5346
5347 if test "$wxUSE_LOGDIALOG" = yes; then
a0b9e27f 5348 echo "$ac_t""yes" 1>&6
69d27ff7 5349 else
a0b9e27f 5350 echo "$ac_t""no" 1>&6
69d27ff7 5351 fi
a0b9e27f 5352
8284b0c5 5353
52127426 5354
a0b9e27f 5355 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
3bce6687 5356echo "configure:5357: checking for --enable-postscript" >&5
10f2d63a
VZ
5357 no_cache=0
5358 # Check whether --enable-postscript or --disable-postscript was given.
5359if test "${enable_postscript+set}" = set; then
5360 enableval="$enable_postscript"
a0b9e27f 5361
10f2d63a
VZ
5362 if test "$enableval" = yes; then
5363 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5364 else
5365 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5366 fi
a0b9e27f 5367
10f2d63a 5368else
a0b9e27f 5369
10f2d63a
VZ
5370 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5371 if test "x$LINE" != x ; then
5372 eval "DEFAULT_$LINE"
5373 else
5374 no_cache=1
5375 fi
5376
5377 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
a0b9e27f
MB
5378
5379fi
10f2d63a
VZ
5380
5381
5382 eval "$ac_cv_use_postscript"
5383 if test "$no_cache" != 1; then
5384 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5385 fi
5386
5387 if test "$wxUSE_POSTSCRIPT" = yes; then
a0b9e27f 5388 echo "$ac_t""yes" 1>&6
10f2d63a 5389 else
a0b9e27f 5390 echo "$ac_t""no" 1>&6
10f2d63a 5391 fi
a0b9e27f 5392
8284b0c5
MB
5393
5394
52127426 5395
8284b0c5 5396
a0b9e27f 5397 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
3bce6687 5398echo "configure:5399: checking for --enable-prologio" >&5
10f2d63a
VZ
5399 no_cache=0
5400 # Check whether --enable-prologio or --disable-prologio was given.
5401if test "${enable_prologio+set}" = set; then
5402 enableval="$enable_prologio"
a0b9e27f 5403
10f2d63a
VZ
5404 if test "$enableval" = yes; then
5405 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5406 else
5407 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5408 fi
a0b9e27f 5409
10f2d63a 5410else
a0b9e27f 5411
10f2d63a
VZ
5412 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5413 if test "x$LINE" != x ; then
5414 eval "DEFAULT_$LINE"
5415 else
5416 no_cache=1
5417 fi
5418
5419 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
a0b9e27f
MB
5420
5421fi
10f2d63a
VZ
5422
5423
5424 eval "$ac_cv_use_prologio"
5425 if test "$no_cache" != 1; then
5426 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5427 fi
5428
5429 if test "$wxUSE_PROLOGIO" = yes; then
a0b9e27f 5430 echo "$ac_t""yes" 1>&6
10f2d63a 5431 else
a0b9e27f 5432 echo "$ac_t""no" 1>&6
10f2d63a 5433 fi
a0b9e27f 5434
10f2d63a 5435
a0b9e27f 5436 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
3bce6687 5437echo "configure:5438: checking for --enable-resources" >&5
10f2d63a
VZ
5438 no_cache=0
5439 # Check whether --enable-resources or --disable-resources was given.
5440if test "${enable_resources+set}" = set; then
5441 enableval="$enable_resources"
a0b9e27f 5442
10f2d63a
VZ
5443 if test "$enableval" = yes; then
5444 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5445 else
5446 ac_cv_use_resources='wxUSE_RESOURCES=no'
5447 fi
a0b9e27f 5448
10f2d63a 5449else
a0b9e27f 5450
10f2d63a
VZ
5451 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5452 if test "x$LINE" != x ; then
5453 eval "DEFAULT_$LINE"
5454 else
5455 no_cache=1
5456 fi
5457
5458 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
a0b9e27f
MB
5459
5460fi
10f2d63a
VZ
5461
5462
5463 eval "$ac_cv_use_resources"
5464 if test "$no_cache" != 1; then
5465 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5466 fi
5467
5468 if test "$wxUSE_RESOURCES" = yes; then
a0b9e27f 5469 echo "$ac_t""yes" 1>&6
10f2d63a 5470 else
a0b9e27f 5471 echo "$ac_t""no" 1>&6
10f2d63a 5472 fi
a0b9e27f 5473
8284b0c5 5474
52127426 5475
a0b9e27f 5476 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
3bce6687 5477echo "configure:5478: checking for --enable-xresources" >&5
10f2d63a
VZ
5478 no_cache=0
5479 # Check whether --enable-xresources or --disable-xresources was given.
5480if test "${enable_xresources+set}" = set; then
5481 enableval="$enable_xresources"
a0b9e27f 5482
10f2d63a
VZ
5483 if test "$enableval" = yes; then
5484 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5485 else
5486 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5487 fi
a0b9e27f 5488
10f2d63a 5489else
a0b9e27f 5490
10f2d63a
VZ
5491 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
a0b9e27f
MB
5499
5500fi
10f2d63a
VZ
5501
5502
5503 eval "$ac_cv_use_xresources"
5504 if test "$no_cache" != 1; then
5505 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5506 fi
5507
5508 if test "$wxUSE_X_RESOURCES" = yes; then
a0b9e27f 5509 echo "$ac_t""yes" 1>&6
10f2d63a 5510 else
a0b9e27f 5511 echo "$ac_t""no" 1>&6
10f2d63a 5512 fi
a0b9e27f 5513
8284b0c5
MB
5514
5515
52127426 5516
a0b9e27f 5517 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
3bce6687 5518echo "configure:5519: checking for --enable-clipboard" >&5
10f2d63a
VZ
5519 no_cache=0
5520 # Check whether --enable-clipboard or --disable-clipboard was given.
5521if test "${enable_clipboard+set}" = set; then
5522 enableval="$enable_clipboard"
a0b9e27f 5523
10f2d63a
VZ
5524 if test "$enableval" = yes; then
5525 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5526 else
5527 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5528 fi
a0b9e27f 5529
10f2d63a 5530else
a0b9e27f 5531
10f2d63a
VZ
5532 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
a0b9e27f
MB
5540
5541fi
10f2d63a
VZ
5542
5543
5544 eval "$ac_cv_use_clipboard"
5545 if test "$no_cache" != 1; then
5546 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5547 fi
5548
5549 if test "$wxUSE_CLIPBOARD" = yes; then
a0b9e27f 5550 echo "$ac_t""yes" 1>&6
10f2d63a 5551 else
a0b9e27f 5552 echo "$ac_t""no" 1>&6
10f2d63a 5553 fi
a0b9e27f 5554
10f2d63a 5555
a0b9e27f 5556 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
3bce6687 5557echo "configure:5558: checking for --enable-dnd" >&5
10f2d63a
VZ
5558 no_cache=0
5559 # Check whether --enable-dnd or --disable-dnd was given.
5560if test "${enable_dnd+set}" = set; then
5561 enableval="$enable_dnd"
a0b9e27f 5562
10f2d63a
VZ
5563 if test "$enableval" = yes; then
5564 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5565 else
5566 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5567 fi
a0b9e27f 5568
10f2d63a 5569else
a0b9e27f 5570
10f2d63a
VZ
5571 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5572 if test "x$LINE" != x ; then
5573 eval "DEFAULT_$LINE"
5574 else
5575 no_cache=1
5576 fi
5577
5578 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
a0b9e27f
MB
5579
5580fi
10f2d63a
VZ
5581
5582
5583 eval "$ac_cv_use_dnd"
5584 if test "$no_cache" != 1; then
5585 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5586 fi
5587
5588 if test "$wxUSE_DRAG_AND_DROP" = yes; then
a0b9e27f 5589 echo "$ac_t""yes" 1>&6
10f2d63a 5590 else
a0b9e27f 5591 echo "$ac_t""no" 1>&6
10f2d63a 5592 fi
a0b9e27f 5593
10f2d63a 5594
a0b9e27f 5595 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
3bce6687 5596echo "configure:5597: checking for --enable-metafile" >&5
b64f0a5f
RL
5597 no_cache=0
5598 # Check whether --enable-metafile or --disable-metafile was given.
5599if test "${enable_metafile+set}" = set; then
5600 enableval="$enable_metafile"
a0b9e27f 5601
b64f0a5f
RL
5602 if test "$enableval" = yes; then
5603 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5604 else
5605 ac_cv_use_metafile='wxUSE_METAFILE=no'
5606 fi
a0b9e27f 5607
b64f0a5f 5608else
a0b9e27f 5609
b64f0a5f
RL
5610 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5611 if test "x$LINE" != x ; then
5612 eval "DEFAULT_$LINE"
5613 else
5614 no_cache=1
5615 fi
5616
5617 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
5618
5619fi
b64f0a5f
RL
5620
5621
5622 eval "$ac_cv_use_metafile"
5623 if test "$no_cache" != 1; then
5624 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5625 fi
5626
5627 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 5628 echo "$ac_t""yes" 1>&6
b64f0a5f 5629 else
a0b9e27f 5630 echo "$ac_t""no" 1>&6
b64f0a5f 5631 fi
a0b9e27f 5632
52127426 5633
8284b0c5 5634
a0b9e27f 5635 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
3bce6687 5636echo "configure:5637: checking for --enable-treelayout" >&5
10f2d63a 5637 no_cache=0
24176f2c
GD
5638 # Check whether --enable-treelayout or --disable-treelayout was given.
5639if test "${enable_treelayout+set}" = set; then
5640 enableval="$enable_treelayout"
a0b9e27f 5641
10f2d63a 5642 if test "$enableval" = yes; then
24176f2c 5643 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5644 else
24176f2c 5645 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5646 fi
a0b9e27f 5647
10f2d63a 5648else
a0b9e27f 5649
24176f2c 5650 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5651 if test "x$LINE" != x ; then
5652 eval "DEFAULT_$LINE"
5653 else
5654 no_cache=1
5655 fi
5656
24176f2c 5657 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
a0b9e27f
MB
5658
5659fi
10f2d63a
VZ
5660
5661
24176f2c 5662 eval "$ac_cv_use_treelayout"
10f2d63a 5663 if test "$no_cache" != 1; then
24176f2c 5664 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5665 fi
5666
24176f2c 5667 if test "$wxUSE_TREELAYOUT" = yes; then
a0b9e27f 5668 echo "$ac_t""yes" 1>&6
10f2d63a 5669 else
a0b9e27f 5670 echo "$ac_t""no" 1>&6
10f2d63a 5671 fi
a0b9e27f 5672
8284b0c5 5673
52127426 5674
8284b0c5 5675
a0b9e27f 5676 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
3bce6687 5677echo "configure:5678: checking for --enable-controls" >&5
10f2d63a
VZ
5678 no_cache=0
5679 # Check whether --enable-controls or --disable-controls was given.
5680if test "${enable_controls+set}" = set; then
5681 enableval="$enable_controls"
a0b9e27f 5682
10f2d63a
VZ
5683 if test "$enableval" = yes; then
5684 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5685 else
5686 ac_cv_use_controls='wxUSE_CONTROLS=no'
5687 fi
a0b9e27f 5688
10f2d63a 5689else
a0b9e27f 5690
10f2d63a
VZ
5691 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5692 if test "x$LINE" != x ; then
5693 eval "DEFAULT_$LINE"
5694 else
5695 no_cache=1
5696 fi
5697
5698 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
a0b9e27f
MB
5699
5700fi
10f2d63a
VZ
5701
5702
5703 eval "$ac_cv_use_controls"
5704 if test "$no_cache" != 1; then
5705 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5706 fi
5707
5708 if test "$wxUSE_CONTROLS" = yes; then
a0b9e27f 5709 echo "$ac_t""yes" 1>&6
10f2d63a 5710 else
a0b9e27f 5711 echo "$ac_t""no" 1>&6
10f2d63a 5712 fi
a0b9e27f 5713
10f2d63a
VZ
5714
5715if test "$wxUSE_CONTROLS" = "yes"; then
5716 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5717 DEFAULT_wxUSE_BMPBUTTON=yes
5718 DEFAULT_wxUSE_BUTTON=yes
5719 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5720 DEFAULT_wxUSE_CARET=yes
5721 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5722 DEFAULT_wxUSE_CHECKBOX=yes
5723 DEFAULT_wxUSE_CHECKLISTBOX=yes
5724 DEFAULT_wxUSE_CHOICE=yes
5725 DEFAULT_wxUSE_GAUGE=yes
5726 DEFAULT_wxUSE_GRID=yes
cc977e5f 5727 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5728 DEFAULT_wxUSE_IMAGLIST=yes
5729 DEFAULT_wxUSE_LISTBOX=yes
5730 DEFAULT_wxUSE_LISTCTRL=yes
5731 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5732 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5733 DEFAULT_wxUSE_RADIOBOX=yes
5734 DEFAULT_wxUSE_RADIOBTN=yes
5735 DEFAULT_wxUSE_SASH=yes
5736 DEFAULT_wxUSE_SCROLLBAR=yes
5737 DEFAULT_wxUSE_SLIDER=yes
5738 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5739 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5740 DEFAULT_wxUSE_SPLITTER=yes
5741 DEFAULT_wxUSE_STATBMP=yes
5742 DEFAULT_wxUSE_STATBOX=yes
5743 DEFAULT_wxUSE_STATLINE=yes
5744 DEFAULT_wxUSE_STATUSBAR=yes
5745 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5746 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5747 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5748 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5749 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5750 DEFAULT_wxUSE_TOOLTIPS=yes
5751 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5752 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5753 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5754elif test "$wxUSE_CONTROLS" = "no"; then
5755 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5756 DEFAULT_wxUSE_BMPBUTTON=no
5757 DEFAULT_wxUSE_BUTTON=no
5758 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5759 DEFAULT_wxUSE_CARET=no
5760 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5761 DEFAULT_wxUSE_CHECKBOX=no
5762 DEFAULT_wxUSE_CHECKLISTBOX=no
5763 DEFAULT_wxUSE_CHOICE=no
5764 DEFAULT_wxUSE_GAUGE=no
5765 DEFAULT_wxUSE_GRID=no
5766 DEFAULT_wxUSE_NEW_GRID=no
5767 DEFAULT_wxUSE_IMAGLIST=no
5768 DEFAULT_wxUSE_LISTBOX=no
5769 DEFAULT_wxUSE_LISTCTRL=no
5770 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5771 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5772 DEFAULT_wxUSE_RADIOBOX=no
5773 DEFAULT_wxUSE_RADIOBTN=no
5774 DEFAULT_wxUSE_SASH=no
5775 DEFAULT_wxUSE_SCROLLBAR=no
5776 DEFAULT_wxUSE_SLIDER=no
5777 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5778 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5779 DEFAULT_wxUSE_SPLITTER=no
5780 DEFAULT_wxUSE_STATBMP=no
5781 DEFAULT_wxUSE_STATBOX=no
5782 DEFAULT_wxUSE_STATLINE=no
5783 DEFAULT_wxUSE_STATUSBAR=no
5784 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5785 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5786 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5787 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5788 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5789 DEFAULT_wxUSE_TOOLTIPS=no
5790 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5791 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5792 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5793fi
5794
8284b0c5 5795
a0b9e27f 5796 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
3bce6687 5797echo "configure:5798: checking for --enable-accel" >&5
10f2d63a
VZ
5798 no_cache=0
5799 # Check whether --enable-accel or --disable-accel was given.
5800if test "${enable_accel+set}" = set; then
5801 enableval="$enable_accel"
a0b9e27f 5802
10f2d63a
VZ
5803 if test "$enableval" = yes; then
5804 ac_cv_use_accel='wxUSE_ACCEL=yes'
5805 else
5806 ac_cv_use_accel='wxUSE_ACCEL=no'
5807 fi
a0b9e27f 5808
10f2d63a 5809else
a0b9e27f 5810
10f2d63a
VZ
5811 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5812 if test "x$LINE" != x ; then
5813 eval "DEFAULT_$LINE"
5814 else
5815 no_cache=1
5816 fi
5817
5818 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
a0b9e27f
MB
5819
5820fi
10f2d63a
VZ
5821
5822
5823 eval "$ac_cv_use_accel"
5824 if test "$no_cache" != 1; then
5825 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5826 fi
5827
5828 if test "$wxUSE_ACCEL" = yes; then
a0b9e27f 5829 echo "$ac_t""yes" 1>&6
10f2d63a 5830 else
a0b9e27f 5831 echo "$ac_t""no" 1>&6
10f2d63a 5832 fi
a0b9e27f 5833
10f2d63a 5834
a0b9e27f 5835 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
3bce6687 5836echo "configure:5837: checking for --enable-button" >&5
10f2d63a 5837 no_cache=0
1e6feb95
VZ
5838 # Check whether --enable-button or --disable-button was given.
5839if test "${enable_button+set}" = set; then
5840 enableval="$enable_button"
a0b9e27f 5841
10f2d63a 5842 if test "$enableval" = yes; then
1e6feb95 5843 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5844 else
1e6feb95 5845 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5846 fi
a0b9e27f 5847
10f2d63a 5848else
a0b9e27f 5849
1e6feb95 5850 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5851 if test "x$LINE" != x ; then
5852 eval "DEFAULT_$LINE"
5853 else
5854 no_cache=1
5855 fi
5856
1e6feb95 5857 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
a0b9e27f
MB
5858
5859fi
10f2d63a
VZ
5860
5861
1e6feb95 5862 eval "$ac_cv_use_button"
10f2d63a 5863 if test "$no_cache" != 1; then
1e6feb95 5864 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5865 fi
5866
1e6feb95 5867 if test "$wxUSE_BUTTON" = yes; then
a0b9e27f 5868 echo "$ac_t""yes" 1>&6
10f2d63a 5869 else
a0b9e27f 5870 echo "$ac_t""no" 1>&6
10f2d63a 5871 fi
a0b9e27f 5872
10f2d63a 5873
a0b9e27f 5874 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
3bce6687 5875echo "configure:5876: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5876 no_cache=0
5877 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5878if test "${enable_bmpbutton+set}" = set; then
5879 enableval="$enable_bmpbutton"
a0b9e27f 5880
10f2d63a
VZ
5881 if test "$enableval" = yes; then
5882 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5883 else
5884 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5885 fi
a0b9e27f 5886
10f2d63a 5887else
a0b9e27f 5888
10f2d63a
VZ
5889 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5890 if test "x$LINE" != x ; then
5891 eval "DEFAULT_$LINE"
5892 else
5893 no_cache=1
5894 fi
5895
5896 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
a0b9e27f
MB
5897
5898fi
10f2d63a
VZ
5899
5900
5901 eval "$ac_cv_use_bmpbutton"
5902 if test "$no_cache" != 1; then
5903 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5904 fi
5905
5906 if test "$wxUSE_BMPBUTTON" = yes; then
a0b9e27f 5907 echo "$ac_t""yes" 1>&6
10f2d63a 5908 else
a0b9e27f 5909 echo "$ac_t""no" 1>&6
10f2d63a 5910 fi
a0b9e27f 5911
10f2d63a 5912
a0b9e27f 5913 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
3bce6687 5914echo "configure:5915: checking for --enable-calendar" >&5
1e6feb95
VZ
5915 no_cache=0
5916 # Check whether --enable-calendar or --disable-calendar was given.
5917if test "${enable_calendar+set}" = set; then
5918 enableval="$enable_calendar"
a0b9e27f 5919
1e6feb95
VZ
5920 if test "$enableval" = yes; then
5921 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5922 else
5923 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5924 fi
a0b9e27f 5925
1e6feb95 5926else
a0b9e27f 5927
1e6feb95
VZ
5928 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5929 if test "x$LINE" != x ; then
5930 eval "DEFAULT_$LINE"
5931 else
5932 no_cache=1
5933 fi
5934
5935 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
a0b9e27f
MB
5936
5937fi
1e6feb95
VZ
5938
5939
5940 eval "$ac_cv_use_calendar"
5941 if test "$no_cache" != 1; then
5942 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5943 fi
5944
5945 if test "$wxUSE_CALCTRL" = yes; then
a0b9e27f 5946 echo "$ac_t""yes" 1>&6
1e6feb95 5947 else
a0b9e27f 5948 echo "$ac_t""no" 1>&6
1e6feb95 5949 fi
a0b9e27f 5950
1e6feb95 5951
a0b9e27f 5952 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
3bce6687 5953echo "configure:5954: checking for --enable-caret" >&5
1e6feb95
VZ
5954 no_cache=0
5955 # Check whether --enable-caret or --disable-caret was given.
5956if test "${enable_caret+set}" = set; then
5957 enableval="$enable_caret"
a0b9e27f 5958
1e6feb95
VZ
5959 if test "$enableval" = yes; then
5960 ac_cv_use_caret='wxUSE_CARET=yes'
5961 else
5962 ac_cv_use_caret='wxUSE_CARET=no'
5963 fi
a0b9e27f 5964
1e6feb95 5965else
a0b9e27f 5966
1e6feb95
VZ
5967 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5968 if test "x$LINE" != x ; then
5969 eval "DEFAULT_$LINE"
5970 else
5971 no_cache=1
5972 fi
5973
5974 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
a0b9e27f
MB
5975
5976fi
1e6feb95
VZ
5977
5978
5979 eval "$ac_cv_use_caret"
5980 if test "$no_cache" != 1; then
5981 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5982 fi
5983
5984 if test "$wxUSE_CARET" = yes; then
a0b9e27f 5985 echo "$ac_t""yes" 1>&6
1e6feb95 5986 else
a0b9e27f 5987 echo "$ac_t""no" 1>&6
1e6feb95 5988 fi
a0b9e27f 5989
1e6feb95 5990
a0b9e27f 5991 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
3bce6687 5992echo "configure:5993: checking for --enable-checkbox" >&5
10f2d63a
VZ
5993 no_cache=0
5994 # Check whether --enable-checkbox or --disable-checkbox was given.
5995if test "${enable_checkbox+set}" = set; then
5996 enableval="$enable_checkbox"
a0b9e27f 5997
10f2d63a
VZ
5998 if test "$enableval" = yes; then
5999 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6000 else
6001 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6002 fi
a0b9e27f 6003
10f2d63a 6004else
a0b9e27f 6005
10f2d63a
VZ
6006 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6007 if test "x$LINE" != x ; then
6008 eval "DEFAULT_$LINE"
6009 else
6010 no_cache=1
6011 fi
6012
6013 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
a0b9e27f
MB
6014
6015fi
10f2d63a
VZ
6016
6017
6018 eval "$ac_cv_use_checkbox"
6019 if test "$no_cache" != 1; then
6020 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6021 fi
6022
6023 if test "$wxUSE_CHECKBOX" = yes; then
a0b9e27f 6024 echo "$ac_t""yes" 1>&6
10f2d63a 6025 else
a0b9e27f 6026 echo "$ac_t""no" 1>&6
10f2d63a 6027 fi
a0b9e27f 6028
10f2d63a 6029
a0b9e27f 6030 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
3bce6687 6031echo "configure:6032: checking for --enable-checklst" >&5
10f2d63a
VZ
6032 no_cache=0
6033 # Check whether --enable-checklst or --disable-checklst was given.
6034if test "${enable_checklst+set}" = set; then
6035 enableval="$enable_checklst"
a0b9e27f 6036
10f2d63a
VZ
6037 if test "$enableval" = yes; then
6038 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6039 else
6040 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6041 fi
a0b9e27f 6042
10f2d63a 6043else
a0b9e27f 6044
10f2d63a
VZ
6045 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6046 if test "x$LINE" != x ; then
6047 eval "DEFAULT_$LINE"
6048 else
6049 no_cache=1
6050 fi
6051
6052 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
a0b9e27f
MB
6053
6054fi
10f2d63a
VZ
6055
6056
6057 eval "$ac_cv_use_checklst"
6058 if test "$no_cache" != 1; then
6059 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6060 fi
6061
6062 if test "$wxUSE_CHECKLST" = yes; then
a0b9e27f 6063 echo "$ac_t""yes" 1>&6
10f2d63a 6064 else
a0b9e27f 6065 echo "$ac_t""no" 1>&6
10f2d63a 6066 fi
a0b9e27f 6067
10f2d63a 6068
a0b9e27f 6069 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
3bce6687 6070echo "configure:6071: checking for --enable-choice" >&5
10f2d63a
VZ
6071 no_cache=0
6072 # Check whether --enable-choice or --disable-choice was given.
6073if test "${enable_choice+set}" = set; then
6074 enableval="$enable_choice"
a0b9e27f 6075
10f2d63a
VZ
6076 if test "$enableval" = yes; then
6077 ac_cv_use_choice='wxUSE_CHOICE=yes'
6078 else
6079 ac_cv_use_choice='wxUSE_CHOICE=no'
6080 fi
a0b9e27f 6081
10f2d63a 6082else
a0b9e27f 6083
10f2d63a
VZ
6084 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6085 if test "x$LINE" != x ; then
6086 eval "DEFAULT_$LINE"
6087 else
6088 no_cache=1
6089 fi
6090
6091 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
a0b9e27f
MB
6092
6093fi
10f2d63a
VZ
6094
6095
6096 eval "$ac_cv_use_choice"
6097 if test "$no_cache" != 1; then
6098 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6099 fi
6100
6101 if test "$wxUSE_CHOICE" = yes; then
a0b9e27f 6102 echo "$ac_t""yes" 1>&6
10f2d63a 6103 else
a0b9e27f 6104 echo "$ac_t""no" 1>&6
10f2d63a 6105 fi
a0b9e27f 6106
10f2d63a 6107
a0b9e27f 6108 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
3bce6687 6109echo "configure:6110: checking for --enable-combobox" >&5
10f2d63a
VZ
6110 no_cache=0
6111 # Check whether --enable-combobox or --disable-combobox was given.
6112if test "${enable_combobox+set}" = set; then
6113 enableval="$enable_combobox"
a0b9e27f 6114
10f2d63a
VZ
6115 if test "$enableval" = yes; then
6116 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6117 else
6118 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6119 fi
a0b9e27f 6120
10f2d63a 6121else
a0b9e27f 6122
10f2d63a
VZ
6123 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6124 if test "x$LINE" != x ; then
6125 eval "DEFAULT_$LINE"
6126 else
6127 no_cache=1
6128 fi
6129
6130 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
a0b9e27f
MB
6131
6132fi
10f2d63a
VZ
6133
6134
6135 eval "$ac_cv_use_combobox"
6136 if test "$no_cache" != 1; then
6137 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6138 fi
6139
6140 if test "$wxUSE_COMBOBOX" = yes; then
a0b9e27f 6141 echo "$ac_t""yes" 1>&6
10f2d63a 6142 else
a0b9e27f 6143 echo "$ac_t""no" 1>&6
10f2d63a 6144 fi
a0b9e27f 6145
10f2d63a 6146
a0b9e27f 6147 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
3bce6687 6148echo "configure:6149: checking for --enable-gauge" >&5
10f2d63a
VZ
6149 no_cache=0
6150 # Check whether --enable-gauge or --disable-gauge was given.
6151if test "${enable_gauge+set}" = set; then
6152 enableval="$enable_gauge"
a0b9e27f 6153
10f2d63a
VZ
6154 if test "$enableval" = yes; then
6155 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6156 else
6157 ac_cv_use_gauge='wxUSE_GAUGE=no'
6158 fi
a0b9e27f 6159
10f2d63a 6160else
a0b9e27f 6161
10f2d63a
VZ
6162 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6163 if test "x$LINE" != x ; then
6164 eval "DEFAULT_$LINE"
6165 else
6166 no_cache=1
6167 fi
6168
6169 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
a0b9e27f
MB
6170
6171fi
10f2d63a
VZ
6172
6173
6174 eval "$ac_cv_use_gauge"
6175 if test "$no_cache" != 1; then
6176 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6177 fi
6178
6179 if test "$wxUSE_GAUGE" = yes; then
a0b9e27f 6180 echo "$ac_t""yes" 1>&6
10f2d63a 6181 else
a0b9e27f 6182 echo "$ac_t""no" 1>&6
10f2d63a 6183 fi
a0b9e27f 6184
10f2d63a 6185
a0b9e27f 6186 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
3bce6687 6187echo "configure:6188: checking for --enable-grid" >&5
10f2d63a
VZ
6188 no_cache=0
6189 # Check whether --enable-grid or --disable-grid was given.
6190if test "${enable_grid+set}" = set; then
6191 enableval="$enable_grid"
a0b9e27f 6192
10f2d63a
VZ
6193 if test "$enableval" = yes; then
6194 ac_cv_use_grid='wxUSE_GRID=yes'
6195 else
6196 ac_cv_use_grid='wxUSE_GRID=no'
6197 fi
a0b9e27f 6198
10f2d63a 6199else
a0b9e27f 6200
10f2d63a
VZ
6201 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6202 if test "x$LINE" != x ; then
6203 eval "DEFAULT_$LINE"
6204 else
6205 no_cache=1
6206 fi
6207
6208 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
a0b9e27f
MB
6209
6210fi
10f2d63a
VZ
6211
6212
6213 eval "$ac_cv_use_grid"
6214 if test "$no_cache" != 1; then
6215 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6216 fi
6217
6218 if test "$wxUSE_GRID" = yes; then
a0b9e27f 6219 echo "$ac_t""yes" 1>&6
10f2d63a 6220 else
a0b9e27f 6221 echo "$ac_t""no" 1>&6
10f2d63a 6222 fi
a0b9e27f 6223
10f2d63a 6224
a0b9e27f 6225 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
3bce6687 6226echo "configure:6227: checking for --enable-newgrid" >&5
10f2d63a
VZ
6227 no_cache=0
6228 # Check whether --enable-newgrid or --disable-newgrid was given.
6229if test "${enable_newgrid+set}" = set; then
6230 enableval="$enable_newgrid"
a0b9e27f 6231
10f2d63a
VZ
6232 if test "$enableval" = yes; then
6233 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6234 else
6235 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6236 fi
a0b9e27f 6237
10f2d63a 6238else
a0b9e27f 6239
10f2d63a
VZ
6240 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6241 if test "x$LINE" != x ; then
6242 eval "DEFAULT_$LINE"
6243 else
6244 no_cache=1
6245 fi
6246
6247 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
a0b9e27f
MB
6248
6249fi
10f2d63a
VZ
6250
6251
6252 eval "$ac_cv_use_newgrid"
6253 if test "$no_cache" != 1; then
6254 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6255 fi
6256
6257 if test "$wxUSE_NEW_GRID" = yes; then
a0b9e27f 6258 echo "$ac_t""yes" 1>&6
10f2d63a 6259 else
a0b9e27f 6260 echo "$ac_t""no" 1>&6
10f2d63a 6261 fi
a0b9e27f 6262
10f2d63a 6263
a0b9e27f 6264 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
3bce6687 6265echo "configure:6266: checking for --enable-imaglist" >&5
10f2d63a
VZ
6266 no_cache=0
6267 # Check whether --enable-imaglist or --disable-imaglist was given.
6268if test "${enable_imaglist+set}" = set; then
6269 enableval="$enable_imaglist"
a0b9e27f 6270
10f2d63a
VZ
6271 if test "$enableval" = yes; then
6272 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6273 else
6274 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6275 fi
a0b9e27f 6276
10f2d63a 6277else
a0b9e27f 6278
10f2d63a
VZ
6279 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6280 if test "x$LINE" != x ; then
6281 eval "DEFAULT_$LINE"
6282 else
6283 no_cache=1
6284 fi
6285
6286 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
a0b9e27f
MB
6287
6288fi
10f2d63a
VZ
6289
6290
6291 eval "$ac_cv_use_imaglist"
6292 if test "$no_cache" != 1; then
6293 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6294 fi
6295
6296 if test "$wxUSE_IMAGLIST" = yes; then
a0b9e27f 6297 echo "$ac_t""yes" 1>&6
10f2d63a 6298 else
a0b9e27f 6299 echo "$ac_t""no" 1>&6
10f2d63a 6300 fi
a0b9e27f 6301
10f2d63a 6302
a0b9e27f 6303 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
3bce6687 6304echo "configure:6305: checking for --enable-listbox" >&5
10f2d63a
VZ
6305 no_cache=0
6306 # Check whether --enable-listbox or --disable-listbox was given.
6307if test "${enable_listbox+set}" = set; then
6308 enableval="$enable_listbox"
a0b9e27f 6309
10f2d63a
VZ
6310 if test "$enableval" = yes; then
6311 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6312 else
6313 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6314 fi
a0b9e27f 6315
10f2d63a 6316else
a0b9e27f 6317
10f2d63a
VZ
6318 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6319 if test "x$LINE" != x ; then
6320 eval "DEFAULT_$LINE"
6321 else
6322 no_cache=1
6323 fi
6324
6325 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
a0b9e27f
MB
6326
6327fi
10f2d63a
VZ
6328
6329
6330 eval "$ac_cv_use_listbox"
6331 if test "$no_cache" != 1; then
6332 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6333 fi
6334
6335 if test "$wxUSE_LISTBOX" = yes; then
a0b9e27f 6336 echo "$ac_t""yes" 1>&6
10f2d63a 6337 else
a0b9e27f 6338 echo "$ac_t""no" 1>&6
10f2d63a 6339 fi
a0b9e27f 6340
10f2d63a 6341
a0b9e27f 6342 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
3bce6687 6343echo "configure:6344: checking for --enable-listctrl" >&5
10f2d63a
VZ
6344 no_cache=0
6345 # Check whether --enable-listctrl or --disable-listctrl was given.
6346if test "${enable_listctrl+set}" = set; then
6347 enableval="$enable_listctrl"
a0b9e27f 6348
10f2d63a
VZ
6349 if test "$enableval" = yes; then
6350 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6351 else
6352 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6353 fi
a0b9e27f 6354
10f2d63a 6355else
a0b9e27f 6356
10f2d63a
VZ
6357 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6358 if test "x$LINE" != x ; then
6359 eval "DEFAULT_$LINE"
6360 else
6361 no_cache=1
6362 fi
6363
6364 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
a0b9e27f
MB
6365
6366fi
10f2d63a
VZ
6367
6368
6369 eval "$ac_cv_use_listctrl"
6370 if test "$no_cache" != 1; then
6371 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6372 fi
6373
6374 if test "$wxUSE_LISTCTRL" = yes; then
a0b9e27f 6375 echo "$ac_t""yes" 1>&6
10f2d63a 6376 else
a0b9e27f 6377 echo "$ac_t""no" 1>&6
10f2d63a 6378 fi
a0b9e27f 6379
10f2d63a 6380
a0b9e27f 6381 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
3bce6687 6382echo "configure:6383: checking for --enable-notebook" >&5
10f2d63a
VZ
6383 no_cache=0
6384 # Check whether --enable-notebook or --disable-notebook was given.
6385if test "${enable_notebook+set}" = set; then
6386 enableval="$enable_notebook"
a0b9e27f 6387
10f2d63a
VZ
6388 if test "$enableval" = yes; then
6389 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6390 else
6391 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6392 fi
a0b9e27f 6393
10f2d63a 6394else
a0b9e27f 6395
10f2d63a
VZ
6396 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6397 if test "x$LINE" != x ; then
6398 eval "DEFAULT_$LINE"
6399 else
6400 no_cache=1
6401 fi
6402
6403 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
a0b9e27f
MB
6404
6405fi
10f2d63a
VZ
6406
6407
6408 eval "$ac_cv_use_notebook"
6409 if test "$no_cache" != 1; then
6410 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6411 fi
6412
6413 if test "$wxUSE_NOTEBOOK" = yes; then
a0b9e27f 6414 echo "$ac_t""yes" 1>&6
10f2d63a 6415 else
a0b9e27f 6416 echo "$ac_t""no" 1>&6
10f2d63a 6417 fi
a0b9e27f 6418
10f2d63a 6419
a0b9e27f 6420 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
3bce6687 6421echo "configure:6422: checking for --enable-propsheet" >&5
24176f2c
GD
6422 no_cache=0
6423 # Check whether --enable-propsheet or --disable-propsheet was given.
6424if test "${enable_propsheet+set}" = set; then
6425 enableval="$enable_propsheet"
a0b9e27f 6426
24176f2c
GD
6427 if test "$enableval" = yes; then
6428 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6429 else
6430 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6431 fi
a0b9e27f 6432
24176f2c 6433else
a0b9e27f 6434
24176f2c
GD
6435 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6436 if test "x$LINE" != x ; then
6437 eval "DEFAULT_$LINE"
6438 else
6439 no_cache=1
6440 fi
6441
6442 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
a0b9e27f
MB
6443
6444fi
24176f2c
GD
6445
6446
6447 eval "$ac_cv_use_propsheet"
6448 if test "$no_cache" != 1; then
6449 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6450 fi
6451
6452 if test "$wxUSE_PROPSHEET" = yes; then
a0b9e27f 6453 echo "$ac_t""yes" 1>&6
24176f2c 6454 else
a0b9e27f 6455 echo "$ac_t""no" 1>&6
24176f2c 6456 fi
a0b9e27f 6457
24176f2c 6458
a0b9e27f 6459 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
3bce6687 6460echo "configure:6461: checking for --enable-radiobox" >&5
10f2d63a
VZ
6461 no_cache=0
6462 # Check whether --enable-radiobox or --disable-radiobox was given.
6463if test "${enable_radiobox+set}" = set; then
6464 enableval="$enable_radiobox"
a0b9e27f 6465
10f2d63a
VZ
6466 if test "$enableval" = yes; then
6467 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6468 else
6469 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6470 fi
a0b9e27f 6471
10f2d63a 6472else
a0b9e27f 6473
10f2d63a
VZ
6474 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6475 if test "x$LINE" != x ; then
6476 eval "DEFAULT_$LINE"
6477 else
6478 no_cache=1
6479 fi
6480
6481 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
a0b9e27f
MB
6482
6483fi
10f2d63a
VZ
6484
6485
6486 eval "$ac_cv_use_radiobox"
6487 if test "$no_cache" != 1; then
6488 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6489 fi
6490
6491 if test "$wxUSE_RADIOBOX" = yes; then
a0b9e27f 6492 echo "$ac_t""yes" 1>&6
10f2d63a 6493 else
a0b9e27f 6494 echo "$ac_t""no" 1>&6
10f2d63a 6495 fi
a0b9e27f 6496
10f2d63a 6497
a0b9e27f 6498 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
3bce6687 6499echo "configure:6500: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6500 no_cache=0
6501 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6502if test "${enable_radiobtn+set}" = set; then
6503 enableval="$enable_radiobtn"
a0b9e27f 6504
10f2d63a
VZ
6505 if test "$enableval" = yes; then
6506 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6507 else
6508 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6509 fi
a0b9e27f 6510
10f2d63a 6511else
a0b9e27f 6512
10f2d63a
VZ
6513 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6514 if test "x$LINE" != x ; then
6515 eval "DEFAULT_$LINE"
6516 else
6517 no_cache=1
6518 fi
6519
6520 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
a0b9e27f
MB
6521
6522fi
10f2d63a
VZ
6523
6524
6525 eval "$ac_cv_use_radiobtn"
6526 if test "$no_cache" != 1; then
6527 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6528 fi
6529
6530 if test "$wxUSE_RADIOBTN" = yes; then
a0b9e27f 6531 echo "$ac_t""yes" 1>&6
10f2d63a 6532 else
a0b9e27f 6533 echo "$ac_t""no" 1>&6
10f2d63a 6534 fi
a0b9e27f 6535
10f2d63a 6536
a0b9e27f 6537 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
3bce6687 6538echo "configure:6539: checking for --enable-sash" >&5
10f2d63a
VZ
6539 no_cache=0
6540 # Check whether --enable-sash or --disable-sash was given.
6541if test "${enable_sash+set}" = set; then
6542 enableval="$enable_sash"
a0b9e27f 6543
10f2d63a
VZ
6544 if test "$enableval" = yes; then
6545 ac_cv_use_sash='wxUSE_SASH=yes'
6546 else
6547 ac_cv_use_sash='wxUSE_SASH=no'
6548 fi
a0b9e27f 6549
10f2d63a 6550else
a0b9e27f 6551
10f2d63a
VZ
6552 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6553 if test "x$LINE" != x ; then
6554 eval "DEFAULT_$LINE"
6555 else
6556 no_cache=1
6557 fi
6558
6559 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
a0b9e27f
MB
6560
6561fi
10f2d63a
VZ
6562
6563
6564 eval "$ac_cv_use_sash"
6565 if test "$no_cache" != 1; then
6566 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6567 fi
6568
6569 if test "$wxUSE_SASH" = yes; then
a0b9e27f 6570 echo "$ac_t""yes" 1>&6
10f2d63a 6571 else
a0b9e27f 6572 echo "$ac_t""no" 1>&6
10f2d63a 6573 fi
a0b9e27f 6574
10f2d63a 6575
a0b9e27f 6576 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
3bce6687 6577echo "configure:6578: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6578 no_cache=0
6579 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6580if test "${enable_scrollbar+set}" = set; then
6581 enableval="$enable_scrollbar"
a0b9e27f 6582
10f2d63a
VZ
6583 if test "$enableval" = yes; then
6584 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6585 else
6586 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6587 fi
a0b9e27f 6588
10f2d63a 6589else
a0b9e27f 6590
10f2d63a
VZ
6591 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6592 if test "x$LINE" != x ; then
6593 eval "DEFAULT_$LINE"
6594 else
6595 no_cache=1
6596 fi
6597
6598 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
a0b9e27f
MB
6599
6600fi
10f2d63a
VZ
6601
6602
6603 eval "$ac_cv_use_scrollbar"
6604 if test "$no_cache" != 1; then
6605 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6606 fi
6607
6608 if test "$wxUSE_SCROLLBAR" = yes; then
a0b9e27f 6609 echo "$ac_t""yes" 1>&6
10f2d63a 6610 else
a0b9e27f 6611 echo "$ac_t""no" 1>&6
10f2d63a 6612 fi
a0b9e27f 6613
10f2d63a 6614
a0b9e27f 6615 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
3bce6687 6616echo "configure:6617: checking for --enable-slider" >&5
10f2d63a
VZ
6617 no_cache=0
6618 # Check whether --enable-slider or --disable-slider was given.
6619if test "${enable_slider+set}" = set; then
6620 enableval="$enable_slider"
a0b9e27f 6621
10f2d63a
VZ
6622 if test "$enableval" = yes; then
6623 ac_cv_use_slider='wxUSE_SLIDER=yes'
6624 else
6625 ac_cv_use_slider='wxUSE_SLIDER=no'
6626 fi
a0b9e27f 6627
10f2d63a 6628else
a0b9e27f 6629
10f2d63a
VZ
6630 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6631 if test "x$LINE" != x ; then
6632 eval "DEFAULT_$LINE"
6633 else
6634 no_cache=1
6635 fi
6636
6637 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
a0b9e27f
MB
6638
6639fi
10f2d63a
VZ
6640
6641
6642 eval "$ac_cv_use_slider"
6643 if test "$no_cache" != 1; then
6644 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6645 fi
6646
6647 if test "$wxUSE_SLIDER" = yes; then
a0b9e27f 6648 echo "$ac_t""yes" 1>&6
10f2d63a 6649 else
a0b9e27f 6650 echo "$ac_t""no" 1>&6
10f2d63a 6651 fi
a0b9e27f 6652
10f2d63a 6653
a0b9e27f 6654 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
3bce6687 6655echo "configure:6656: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6656 no_cache=0
6657 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6658if test "${enable_spinbtn+set}" = set; then
6659 enableval="$enable_spinbtn"
a0b9e27f 6660
10f2d63a
VZ
6661 if test "$enableval" = yes; then
6662 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6663 else
6664 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6665 fi
a0b9e27f 6666
10f2d63a 6667else
a0b9e27f 6668
10f2d63a
VZ
6669 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6670 if test "x$LINE" != x ; then
6671 eval "DEFAULT_$LINE"
6672 else
6673 no_cache=1
6674 fi
6675
6676 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
a0b9e27f
MB
6677
6678fi
10f2d63a
VZ
6679
6680
6681 eval "$ac_cv_use_spinbtn"
6682 if test "$no_cache" != 1; then
6683 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6684 fi
6685
6686 if test "$wxUSE_SPINBTN" = yes; then
a0b9e27f 6687 echo "$ac_t""yes" 1>&6
10f2d63a 6688 else
a0b9e27f 6689 echo "$ac_t""no" 1>&6
10f2d63a 6690 fi
a0b9e27f 6691
10f2d63a 6692
a0b9e27f 6693 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
3bce6687 6694echo "configure:6695: checking for --enable-spinctrl" >&5
56cfaa52
RR
6695 no_cache=0
6696 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6697if test "${enable_spinctrl+set}" = set; then
6698 enableval="$enable_spinctrl"
a0b9e27f 6699
56cfaa52
RR
6700 if test "$enableval" = yes; then
6701 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6702 else
6703 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6704 fi
a0b9e27f 6705
56cfaa52 6706else
a0b9e27f 6707
56cfaa52
RR
6708 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
a0b9e27f
MB
6716
6717fi
56cfaa52
RR
6718
6719
6720 eval "$ac_cv_use_spinctrl"
6721 if test "$no_cache" != 1; then
6722 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6723 fi
6724
6725 if test "$wxUSE_SPINCTRL" = yes; then
a0b9e27f 6726 echo "$ac_t""yes" 1>&6
56cfaa52 6727 else
a0b9e27f 6728 echo "$ac_t""no" 1>&6
56cfaa52 6729 fi
a0b9e27f 6730
56cfaa52 6731
a0b9e27f 6732 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
3bce6687 6733echo "configure:6734: checking for --enable-splitter" >&5
10f2d63a
VZ
6734 no_cache=0
6735 # Check whether --enable-splitter or --disable-splitter was given.
6736if test "${enable_splitter+set}" = set; then
6737 enableval="$enable_splitter"
a0b9e27f 6738
10f2d63a
VZ
6739 if test "$enableval" = yes; then
6740 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6741 else
6742 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6743 fi
a0b9e27f 6744
10f2d63a 6745else
a0b9e27f 6746
10f2d63a
VZ
6747 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6748 if test "x$LINE" != x ; then
6749 eval "DEFAULT_$LINE"
6750 else
6751 no_cache=1
6752 fi
6753
6754 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
a0b9e27f
MB
6755
6756fi
10f2d63a
VZ
6757
6758
6759 eval "$ac_cv_use_splitter"
6760 if test "$no_cache" != 1; then
6761 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6762 fi
6763
6764 if test "$wxUSE_SPLITTER" = yes; then
a0b9e27f 6765 echo "$ac_t""yes" 1>&6
10f2d63a 6766 else
a0b9e27f 6767 echo "$ac_t""no" 1>&6
10f2d63a 6768 fi
a0b9e27f 6769
10f2d63a 6770
a0b9e27f 6771 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
3bce6687 6772echo "configure:6773: checking for --enable-statbmp" >&5
10f2d63a
VZ
6773 no_cache=0
6774 # Check whether --enable-statbmp or --disable-statbmp was given.
6775if test "${enable_statbmp+set}" = set; then
6776 enableval="$enable_statbmp"
a0b9e27f 6777
10f2d63a
VZ
6778 if test "$enableval" = yes; then
6779 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6780 else
6781 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6782 fi
a0b9e27f 6783
10f2d63a 6784else
a0b9e27f 6785
10f2d63a
VZ
6786 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6787 if test "x$LINE" != x ; then
6788 eval "DEFAULT_$LINE"
6789 else
6790 no_cache=1
6791 fi
6792
6793 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
a0b9e27f
MB
6794
6795fi
10f2d63a
VZ
6796
6797
6798 eval "$ac_cv_use_statbmp"
6799 if test "$no_cache" != 1; then
6800 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6801 fi
6802
6803 if test "$wxUSE_STATBMP" = yes; then
a0b9e27f 6804 echo "$ac_t""yes" 1>&6
10f2d63a 6805 else
a0b9e27f 6806 echo "$ac_t""no" 1>&6
10f2d63a 6807 fi
a0b9e27f 6808
10f2d63a 6809
a0b9e27f 6810 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
3bce6687 6811echo "configure:6812: checking for --enable-statbox" >&5
10f2d63a
VZ
6812 no_cache=0
6813 # Check whether --enable-statbox or --disable-statbox was given.
6814if test "${enable_statbox+set}" = set; then
6815 enableval="$enable_statbox"
a0b9e27f 6816
10f2d63a
VZ
6817 if test "$enableval" = yes; then
6818 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6819 else
6820 ac_cv_use_statbox='wxUSE_STATBOX=no'
6821 fi
a0b9e27f 6822
10f2d63a 6823else
a0b9e27f 6824
10f2d63a
VZ
6825 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6826 if test "x$LINE" != x ; then
6827 eval "DEFAULT_$LINE"
6828 else
6829 no_cache=1
6830 fi
6831
6832 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
a0b9e27f
MB
6833
6834fi
10f2d63a
VZ
6835
6836
6837 eval "$ac_cv_use_statbox"
6838 if test "$no_cache" != 1; then
6839 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6840 fi
6841
6842 if test "$wxUSE_STATBOX" = yes; then
a0b9e27f 6843 echo "$ac_t""yes" 1>&6
10f2d63a 6844 else
a0b9e27f 6845 echo "$ac_t""no" 1>&6
10f2d63a 6846 fi
a0b9e27f 6847
10f2d63a 6848
a0b9e27f 6849 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
3bce6687 6850echo "configure:6851: checking for --enable-statline" >&5
10f2d63a
VZ
6851 no_cache=0
6852 # Check whether --enable-statline or --disable-statline was given.
6853if test "${enable_statline+set}" = set; then
6854 enableval="$enable_statline"
a0b9e27f 6855
10f2d63a
VZ
6856 if test "$enableval" = yes; then
6857 ac_cv_use_statline='wxUSE_STATLINE=yes'
6858 else
6859 ac_cv_use_statline='wxUSE_STATLINE=no'
6860 fi
a0b9e27f 6861
10f2d63a 6862else
a0b9e27f 6863
10f2d63a
VZ
6864 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6865 if test "x$LINE" != x ; then
6866 eval "DEFAULT_$LINE"
6867 else
6868 no_cache=1
6869 fi
6870
6871 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
a0b9e27f
MB
6872
6873fi
10f2d63a
VZ
6874
6875
6876 eval "$ac_cv_use_statline"
6877 if test "$no_cache" != 1; then
6878 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6879 fi
6880
6881 if test "$wxUSE_STATLINE" = yes; then
a0b9e27f 6882 echo "$ac_t""yes" 1>&6
10f2d63a 6883 else
a0b9e27f 6884 echo "$ac_t""no" 1>&6
10f2d63a 6885 fi
a0b9e27f 6886
10f2d63a 6887
a0b9e27f 6888 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
3bce6687 6889echo "configure:6890: checking for --enable-stattext" >&5
1e6feb95
VZ
6890 no_cache=0
6891 # Check whether --enable-stattext or --disable-stattext was given.
6892if test "${enable_stattext+set}" = set; then
6893 enableval="$enable_stattext"
a0b9e27f 6894
1e6feb95
VZ
6895 if test "$enableval" = yes; then
6896 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6897 else
6898 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6899 fi
a0b9e27f 6900
1e6feb95 6901else
a0b9e27f 6902
1e6feb95
VZ
6903 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6904 if test "x$LINE" != x ; then
6905 eval "DEFAULT_$LINE"
6906 else
6907 no_cache=1
6908 fi
6909
6910 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
a0b9e27f
MB
6911
6912fi
1e6feb95
VZ
6913
6914
6915 eval "$ac_cv_use_stattext"
6916 if test "$no_cache" != 1; then
6917 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6918 fi
6919
6920 if test "$wxUSE_STATTEXT" = yes; then
a0b9e27f 6921 echo "$ac_t""yes" 1>&6
1e6feb95 6922 else
a0b9e27f 6923 echo "$ac_t""no" 1>&6
1e6feb95 6924 fi
a0b9e27f 6925
1e6feb95 6926
a0b9e27f 6927 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
3bce6687 6928echo "configure:6929: checking for --enable-statusbar" >&5
10f2d63a
VZ
6929 no_cache=0
6930 # Check whether --enable-statusbar or --disable-statusbar was given.
6931if test "${enable_statusbar+set}" = set; then
6932 enableval="$enable_statusbar"
a0b9e27f 6933
10f2d63a
VZ
6934 if test "$enableval" = yes; then
6935 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6936 else
6937 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6938 fi
a0b9e27f 6939
10f2d63a 6940else
a0b9e27f 6941
10f2d63a
VZ
6942 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6943 if test "x$LINE" != x ; then
6944 eval "DEFAULT_$LINE"
6945 else
6946 no_cache=1
6947 fi
6948
6949 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
a0b9e27f
MB
6950
6951fi
10f2d63a
VZ
6952
6953
6954 eval "$ac_cv_use_statusbar"
6955 if test "$no_cache" != 1; then
6956 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6957 fi
6958
6959 if test "$wxUSE_STATUSBAR" = yes; then
a0b9e27f 6960 echo "$ac_t""yes" 1>&6
10f2d63a 6961 else
a0b9e27f 6962 echo "$ac_t""no" 1>&6
10f2d63a 6963 fi
a0b9e27f 6964
10f2d63a 6965
a0b9e27f 6966 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
3bce6687 6967echo "configure:6968: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6968 no_cache=0
6969 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6970if test "${enable_tabdialog+set}" = set; then
6971 enableval="$enable_tabdialog"
a0b9e27f 6972
10f2d63a
VZ
6973 if test "$enableval" = yes; then
6974 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6975 else
6976 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6977 fi
a0b9e27f 6978
10f2d63a 6979else
a0b9e27f 6980
10f2d63a
VZ
6981 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
a0b9e27f
MB
6989
6990fi
10f2d63a
VZ
6991
6992
6993 eval "$ac_cv_use_tabdialog"
6994 if test "$no_cache" != 1; then
6995 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6996 fi
6997
6998 if test "$wxUSE_TABDIALOG" = yes; then
a0b9e27f 6999 echo "$ac_t""yes" 1>&6
10f2d63a 7000 else
a0b9e27f 7001 echo "$ac_t""no" 1>&6
10f2d63a 7002 fi
a0b9e27f 7003
10f2d63a 7004
a0b9e27f 7005 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
3bce6687 7006echo "configure:7007: checking for --enable-textctrl" >&5
1e6feb95
VZ
7007 no_cache=0
7008 # Check whether --enable-textctrl or --disable-textctrl was given.
7009if test "${enable_textctrl+set}" = set; then
7010 enableval="$enable_textctrl"
a0b9e27f 7011
1e6feb95
VZ
7012 if test "$enableval" = yes; then
7013 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7014 else
7015 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7016 fi
a0b9e27f 7017
1e6feb95 7018else
a0b9e27f 7019
1e6feb95
VZ
7020 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7021 if test "x$LINE" != x ; then
7022 eval "DEFAULT_$LINE"
7023 else
7024 no_cache=1
7025 fi
7026
7027 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
a0b9e27f
MB
7028
7029fi
1e6feb95
VZ
7030
7031
7032 eval "$ac_cv_use_textctrl"
7033 if test "$no_cache" != 1; then
7034 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7035 fi
7036
7037 if test "$wxUSE_TEXTCTRL" = yes; then
a0b9e27f 7038 echo "$ac_t""yes" 1>&6
1e6feb95 7039 else
a0b9e27f 7040 echo "$ac_t""no" 1>&6
1e6feb95 7041 fi
a0b9e27f 7042
1e6feb95 7043
a0b9e27f 7044 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
3bce6687 7045echo "configure:7046: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
7046 no_cache=0
7047 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7048if test "${enable_togglebtn+set}" = set; then
7049 enableval="$enable_togglebtn"
a0b9e27f 7050
1db8dc4a
VZ
7051 if test "$enableval" = yes; then
7052 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7053 else
7054 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7055 fi
a0b9e27f 7056
1db8dc4a 7057else
a0b9e27f 7058
1db8dc4a
VZ
7059 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7060 if test "x$LINE" != x ; then
7061 eval "DEFAULT_$LINE"
7062 else
7063 no_cache=1
7064 fi
7065
7066 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
a0b9e27f
MB
7067
7068fi
1db8dc4a
VZ
7069
7070
7071 eval "$ac_cv_use_togglebtn"
7072 if test "$no_cache" != 1; then
7073 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7074 fi
7075
7076 if test "$wxUSE_TOGGLEBTN" = yes; then
a0b9e27f 7077 echo "$ac_t""yes" 1>&6
1db8dc4a 7078 else
a0b9e27f 7079 echo "$ac_t""no" 1>&6
1db8dc4a 7080 fi
a0b9e27f 7081
1db8dc4a 7082
a0b9e27f 7083 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
3bce6687 7084echo "configure:7085: checking for --enable-toolbar" >&5
10f2d63a
VZ
7085 no_cache=0
7086 # Check whether --enable-toolbar or --disable-toolbar was given.
7087if test "${enable_toolbar+set}" = set; then
7088 enableval="$enable_toolbar"
a0b9e27f 7089
10f2d63a
VZ
7090 if test "$enableval" = yes; then
7091 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7092 else
7093 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7094 fi
a0b9e27f 7095
10f2d63a 7096else
a0b9e27f 7097
10f2d63a
VZ
7098 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7099 if test "x$LINE" != x ; then
7100 eval "DEFAULT_$LINE"
7101 else
7102 no_cache=1
7103 fi
7104
7105 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
a0b9e27f
MB
7106
7107fi
10f2d63a
VZ
7108
7109
7110 eval "$ac_cv_use_toolbar"
7111 if test "$no_cache" != 1; then
7112 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7113 fi
7114
7115 if test "$wxUSE_TOOLBAR" = yes; then
a0b9e27f 7116 echo "$ac_t""yes" 1>&6
10f2d63a 7117 else
a0b9e27f 7118 echo "$ac_t""no" 1>&6
10f2d63a 7119 fi
a0b9e27f 7120
10f2d63a 7121
a0b9e27f 7122 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
3bce6687 7123echo "configure:7124: checking for --enable-tbarnative" >&5
360d6699
VZ
7124 no_cache=0
7125 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7126if test "${enable_tbarnative+set}" = set; then
7127 enableval="$enable_tbarnative"
a0b9e27f 7128
360d6699
VZ
7129 if test "$enableval" = yes; then
7130 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7131 else
7132 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7133 fi
a0b9e27f 7134
360d6699 7135else
a0b9e27f 7136
360d6699
VZ
7137 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7138 if test "x$LINE" != x ; then
7139 eval "DEFAULT_$LINE"
7140 else
7141 no_cache=1
7142 fi
7143
7144 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
a0b9e27f
MB
7145
7146fi
360d6699
VZ
7147
7148
7149 eval "$ac_cv_use_tbarnative"
7150 if test "$no_cache" != 1; then
7151 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7152 fi
7153
7154 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
a0b9e27f 7155 echo "$ac_t""yes" 1>&6
360d6699 7156 else
a0b9e27f 7157 echo "$ac_t""no" 1>&6
360d6699 7158 fi
a0b9e27f 7159
360d6699 7160
a0b9e27f 7161 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
3bce6687 7162echo "configure:7163: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7163 no_cache=0
7164 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7165if test "${enable_tbarsmpl+set}" = set; then
7166 enableval="$enable_tbarsmpl"
a0b9e27f 7167
360d6699
VZ
7168 if test "$enableval" = yes; then
7169 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7170 else
7171 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7172 fi
a0b9e27f 7173
360d6699 7174else
a0b9e27f 7175
360d6699
VZ
7176 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${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_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
a0b9e27f
MB
7184
7185fi
360d6699
VZ
7186
7187
7188 eval "$ac_cv_use_tbarsmpl"
7189 if test "$no_cache" != 1; then
7190 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7191 fi
7192
7193 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
a0b9e27f 7194 echo "$ac_t""yes" 1>&6
360d6699 7195 else
a0b9e27f 7196 echo "$ac_t""no" 1>&6
360d6699 7197 fi
a0b9e27f 7198
360d6699 7199
a0b9e27f 7200 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
3bce6687 7201echo "configure:7202: checking for --enable-treectrl" >&5
10f2d63a
VZ
7202 no_cache=0
7203 # Check whether --enable-treectrl or --disable-treectrl was given.
7204if test "${enable_treectrl+set}" = set; then
7205 enableval="$enable_treectrl"
a0b9e27f 7206
10f2d63a
VZ
7207 if test "$enableval" = yes; then
7208 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7209 else
7210 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7211 fi
a0b9e27f 7212
10f2d63a 7213else
a0b9e27f 7214
10f2d63a
VZ
7215 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7216 if test "x$LINE" != x ; then
7217 eval "DEFAULT_$LINE"
7218 else
7219 no_cache=1
7220 fi
7221
7222 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
a0b9e27f
MB
7223
7224fi
10f2d63a
VZ
7225
7226
1e6feb95
VZ
7227 eval "$ac_cv_use_treectrl"
7228 if test "$no_cache" != 1; then
7229 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7230 fi
7231
7232 if test "$wxUSE_TREECTRL" = yes; then
a0b9e27f 7233 echo "$ac_t""yes" 1>&6
1e6feb95 7234 else
a0b9e27f 7235 echo "$ac_t""no" 1>&6
1e6feb95 7236 fi
a0b9e27f 7237
1e6feb95 7238
a0b9e27f 7239 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
3bce6687 7240echo "configure:7241: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7241 no_cache=0
7242 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7243if test "${enable_tipwindow+set}" = set; then
7244 enableval="$enable_tipwindow"
a0b9e27f 7245
9926e4a4
VZ
7246 if test "$enableval" = yes; then
7247 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7248 else
7249 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7250 fi
a0b9e27f 7251
9926e4a4 7252else
a0b9e27f 7253
9926e4a4
VZ
7254 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7255 if test "x$LINE" != x ; then
7256 eval "DEFAULT_$LINE"
7257 else
7258 no_cache=1
7259 fi
7260
7261 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
a0b9e27f
MB
7262
7263fi
9926e4a4
VZ
7264
7265
7266 eval "$ac_cv_use_tipwindow"
7267 if test "$no_cache" != 1; then
7268 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7269 fi
7270
7271 if test "$wxUSE_TIPWINDOW" = yes; then
a0b9e27f 7272 echo "$ac_t""yes" 1>&6
9926e4a4 7273 else
a0b9e27f 7274 echo "$ac_t""no" 1>&6
9926e4a4 7275 fi
a0b9e27f 7276
9926e4a4 7277
a0b9e27f 7278 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
3bce6687 7279echo "configure:7280: checking for --enable-popupwin" >&5
9f41d601
RR
7280 no_cache=0
7281 # Check whether --enable-popupwin or --disable-popupwin was given.
7282if test "${enable_popupwin+set}" = set; then
7283 enableval="$enable_popupwin"
a0b9e27f 7284
9f41d601
RR
7285 if test "$enableval" = yes; then
7286 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7287 else
7288 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7289 fi
a0b9e27f 7290
9f41d601 7291else
a0b9e27f 7292
9f41d601
RR
7293 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7294 if test "x$LINE" != x ; then
7295 eval "DEFAULT_$LINE"
7296 else
7297 no_cache=1
7298 fi
7299
7300 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
a0b9e27f
MB
7301
7302fi
9f41d601
RR
7303
7304
7305 eval "$ac_cv_use_popupwin"
7306 if test "$no_cache" != 1; then
7307 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7308 fi
7309
7310 if test "$wxUSE_POPUPWIN" = yes; then
a0b9e27f 7311 echo "$ac_t""yes" 1>&6
9f41d601 7312 else
a0b9e27f 7313 echo "$ac_t""no" 1>&6
9f41d601 7314 fi
a0b9e27f 7315
52127426 7316
8284b0c5
MB
7317
7318
a0b9e27f 7319 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
3bce6687 7320echo "configure:7321: checking for --enable-commondlg" >&5
1e6feb95
VZ
7321 no_cache=0
7322 # Check whether --enable-commondlg or --disable-commondlg was given.
7323if test "${enable_commondlg+set}" = set; then
7324 enableval="$enable_commondlg"
a0b9e27f 7325
1e6feb95
VZ
7326 if test "$enableval" = yes; then
7327 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7328 else
7329 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7330 fi
a0b9e27f 7331
1e6feb95 7332else
a0b9e27f 7333
1e6feb95
VZ
7334 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7335 if test "x$LINE" != x ; then
7336 eval "DEFAULT_$LINE"
7337 else
7338 no_cache=1
7339 fi
7340
7341 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
a0b9e27f
MB
7342
7343fi
1e6feb95
VZ
7344
7345
7346 eval "$ac_cv_use_commondlg"
7347 if test "$no_cache" != 1; then
7348 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7349 fi
7350
7351 if test "$wxUSE_COMMONDLGS" = yes; then
a0b9e27f 7352 echo "$ac_t""yes" 1>&6
1e6feb95 7353 else
a0b9e27f 7354 echo "$ac_t""no" 1>&6
1e6feb95 7355 fi
a0b9e27f 7356
1e6feb95 7357
a0b9e27f 7358 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
3bce6687 7359echo "configure:7360: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7360 no_cache=0
7361 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7362if test "${enable_choicedlg+set}" = set; then
7363 enableval="$enable_choicedlg"
a0b9e27f 7364
1e6feb95
VZ
7365 if test "$enableval" = yes; then
7366 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7367 else
7368 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7369 fi
a0b9e27f 7370
1e6feb95 7371else
a0b9e27f 7372
1e6feb95
VZ
7373 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7374 if test "x$LINE" != x ; then
7375 eval "DEFAULT_$LINE"
7376 else
7377 no_cache=1
7378 fi
7379
7380 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
a0b9e27f
MB
7381
7382fi
1e6feb95
VZ
7383
7384
7385 eval "$ac_cv_use_choicedlg"
7386 if test "$no_cache" != 1; then
7387 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7388 fi
7389
7390 if test "$wxUSE_CHOICEDLG" = yes; then
a0b9e27f 7391 echo "$ac_t""yes" 1>&6
1e6feb95 7392 else
a0b9e27f 7393 echo "$ac_t""no" 1>&6
1e6feb95 7394 fi
a0b9e27f 7395
1e6feb95 7396
a0b9e27f 7397 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
3bce6687 7398echo "configure:7399: checking for --enable-coldlg" >&5
1e6feb95
VZ
7399 no_cache=0
7400 # Check whether --enable-coldlg or --disable-coldlg was given.
7401if test "${enable_coldlg+set}" = set; then
7402 enableval="$enable_coldlg"
a0b9e27f 7403
1e6feb95
VZ
7404 if test "$enableval" = yes; then
7405 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7406 else
7407 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7408 fi
a0b9e27f 7409
1e6feb95 7410else
a0b9e27f 7411
1e6feb95
VZ
7412 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7413 if test "x$LINE" != x ; then
7414 eval "DEFAULT_$LINE"
7415 else
7416 no_cache=1
7417 fi
7418
7419 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
a0b9e27f
MB
7420
7421fi
1e6feb95
VZ
7422
7423
7424 eval "$ac_cv_use_coldlg"
7425 if test "$no_cache" != 1; then
7426 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7427 fi
7428
7429 if test "$wxUSE_COLOURDLG" = yes; then
a0b9e27f 7430 echo "$ac_t""yes" 1>&6
1e6feb95 7431 else
a0b9e27f 7432 echo "$ac_t""no" 1>&6
1e6feb95 7433 fi
a0b9e27f 7434
1e6feb95 7435
a0b9e27f 7436 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
3bce6687 7437echo "configure:7438: checking for --enable-filedlg" >&5
1e6feb95
VZ
7438 no_cache=0
7439 # Check whether --enable-filedlg or --disable-filedlg was given.
7440if test "${enable_filedlg+set}" = set; then
7441 enableval="$enable_filedlg"
a0b9e27f 7442
1e6feb95
VZ
7443 if test "$enableval" = yes; then
7444 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7445 else
7446 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7447 fi
a0b9e27f 7448
1e6feb95 7449else
a0b9e27f 7450
1e6feb95
VZ
7451 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7452 if test "x$LINE" != x ; then
7453 eval "DEFAULT_$LINE"
7454 else
7455 no_cache=1
7456 fi
7457
7458 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
a0b9e27f
MB
7459
7460fi
1e6feb95
VZ
7461
7462
7463 eval "$ac_cv_use_filedlg"
7464 if test "$no_cache" != 1; then
7465 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7466 fi
7467
7468 if test "$wxUSE_FILEDLG" = yes; then
a0b9e27f 7469 echo "$ac_t""yes" 1>&6
1e6feb95 7470 else
a0b9e27f 7471 echo "$ac_t""no" 1>&6
1e6feb95 7472 fi
a0b9e27f 7473
1e6feb95 7474
a0b9e27f 7475 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
3bce6687 7476echo "configure:7477: checking for --enable-finddlg" >&5
8db37e06 7477 no_cache=0
69d27ff7
MB
7478 # Check whether --enable-finddlg or --disable-finddlg was given.
7479if test "${enable_finddlg+set}" = set; then
7480 enableval="$enable_finddlg"
a0b9e27f 7481
8db37e06 7482 if test "$enableval" = yes; then
69d27ff7 7483 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7484 else
69d27ff7 7485 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7486 fi
a0b9e27f 7487
8db37e06 7488else
a0b9e27f 7489
8db37e06
VZ
7490 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7491 if test "x$LINE" != x ; then
7492 eval "DEFAULT_$LINE"
7493 else
7494 no_cache=1
7495 fi
7496
69d27ff7 7497 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
a0b9e27f
MB
7498
7499fi
8db37e06
VZ
7500
7501
69d27ff7 7502 eval "$ac_cv_use_finddlg"
8db37e06 7503 if test "$no_cache" != 1; then
69d27ff7 7504 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7505 fi
7506
7507 if test "$wxUSE_FINDREPLDLG" = yes; then
a0b9e27f 7508 echo "$ac_t""yes" 1>&6
8db37e06 7509 else
a0b9e27f 7510 echo "$ac_t""no" 1>&6
8db37e06 7511 fi
a0b9e27f 7512
8db37e06 7513
a0b9e27f 7514 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
3bce6687 7515echo "configure:7516: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7516 no_cache=0
7517 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7518if test "${enable_fontdlg+set}" = set; then
7519 enableval="$enable_fontdlg"
a0b9e27f 7520
1e6feb95
VZ
7521 if test "$enableval" = yes; then
7522 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7523 else
7524 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7525 fi
a0b9e27f 7526
1e6feb95 7527else
a0b9e27f 7528
1e6feb95
VZ
7529 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7530 if test "x$LINE" != x ; then
7531 eval "DEFAULT_$LINE"
7532 else
7533 no_cache=1
7534 fi
7535
7536 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
a0b9e27f
MB
7537
7538fi
1e6feb95
VZ
7539
7540
7541 eval "$ac_cv_use_fontdlg"
7542 if test "$no_cache" != 1; then
7543 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7544 fi
7545
7546 if test "$wxUSE_FONTDLG" = yes; then
a0b9e27f 7547 echo "$ac_t""yes" 1>&6
1e6feb95 7548 else
a0b9e27f 7549 echo "$ac_t""no" 1>&6
1e6feb95 7550 fi
a0b9e27f 7551
1e6feb95 7552
a0b9e27f 7553 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
3bce6687 7554echo "configure:7555: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7555 no_cache=0
7556 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7557if test "${enable_dirdlg+set}" = set; then
7558 enableval="$enable_dirdlg"
a0b9e27f 7559
1e6feb95
VZ
7560 if test "$enableval" = yes; then
7561 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7562 else
7563 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7564 fi
a0b9e27f 7565
1e6feb95 7566else
a0b9e27f 7567
1e6feb95
VZ
7568 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7569 if test "x$LINE" != x ; then
7570 eval "DEFAULT_$LINE"
7571 else
7572 no_cache=1
7573 fi
7574
7575 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
a0b9e27f
MB
7576
7577fi
1e6feb95
VZ
7578
7579
7580 eval "$ac_cv_use_dirdlg"
10f2d63a 7581 if test "$no_cache" != 1; then
1e6feb95 7582 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7583 fi
7584
1e6feb95 7585 if test "$wxUSE_DIRDLG" = yes; then
a0b9e27f 7586 echo "$ac_t""yes" 1>&6
10f2d63a 7587 else
a0b9e27f 7588 echo "$ac_t""no" 1>&6
10f2d63a 7589 fi
a0b9e27f 7590
698dcdb6 7591
a0b9e27f 7592 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
3bce6687 7593echo "configure:7594: checking for --enable-msgdlg" >&5
10f2d63a 7594 no_cache=0
1e6feb95
VZ
7595 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7596if test "${enable_msgdlg+set}" = set; then
7597 enableval="$enable_msgdlg"
a0b9e27f 7598
10f2d63a 7599 if test "$enableval" = yes; then
1e6feb95 7600 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7601 else
1e6feb95 7602 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7603 fi
a0b9e27f 7604
10f2d63a 7605else
a0b9e27f 7606
1e6feb95 7607 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7608 if test "x$LINE" != x ; then
7609 eval "DEFAULT_$LINE"
7610 else
7611 no_cache=1
7612 fi
7613
1e6feb95 7614 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
a0b9e27f
MB
7615
7616fi
10f2d63a
VZ
7617
7618
1e6feb95 7619 eval "$ac_cv_use_msgdlg"
10f2d63a 7620 if test "$no_cache" != 1; then
1e6feb95 7621 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7622 fi
7623
1e6feb95 7624 if test "$wxUSE_MSGDLG" = yes; then
a0b9e27f 7625 echo "$ac_t""yes" 1>&6
10f2d63a 7626 else
a0b9e27f 7627 echo "$ac_t""no" 1>&6
10f2d63a 7628 fi
a0b9e27f 7629
10f2d63a 7630
a0b9e27f 7631 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
3bce6687 7632echo "configure:7633: checking for --enable-numberdlg" >&5
10f2d63a 7633 no_cache=0
1e6feb95
VZ
7634 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7635if test "${enable_numberdlg+set}" = set; then
7636 enableval="$enable_numberdlg"
a0b9e27f 7637
10f2d63a 7638 if test "$enableval" = yes; then
1e6feb95 7639 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7640 else
1e6feb95 7641 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7642 fi
a0b9e27f 7643
10f2d63a 7644else
a0b9e27f 7645
1e6feb95 7646 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7647 if test "x$LINE" != x ; then
7648 eval "DEFAULT_$LINE"
7649 else
7650 no_cache=1
7651 fi
7652
1e6feb95 7653 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
a0b9e27f
MB
7654
7655fi
10f2d63a
VZ
7656
7657
1e6feb95 7658 eval "$ac_cv_use_numberdlg"
10f2d63a 7659 if test "$no_cache" != 1; then
1e6feb95 7660 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7661 fi
7662
1e6feb95 7663 if test "$wxUSE_NUMBERDLG" = yes; then
a0b9e27f 7664 echo "$ac_t""yes" 1>&6
10f2d63a 7665 else
a0b9e27f 7666 echo "$ac_t""no" 1>&6
10f2d63a 7667 fi
a0b9e27f 7668
10f2d63a 7669
a0b9e27f 7670 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
3bce6687 7671echo "configure:7672: checking for --enable-splash" >&5
cbca9943
VZ
7672 no_cache=0
7673 # Check whether --enable-splash or --disable-splash was given.
7674if test "${enable_splash+set}" = set; then
7675 enableval="$enable_splash"
a0b9e27f 7676
cbca9943
VZ
7677 if test "$enableval" = yes; then
7678 ac_cv_use_splash='wxUSE_SPLASH=yes'
7679 else
7680 ac_cv_use_splash='wxUSE_SPLASH=no'
7681 fi
a0b9e27f 7682
cbca9943 7683else
a0b9e27f 7684
cbca9943
VZ
7685 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7686 if test "x$LINE" != x ; then
7687 eval "DEFAULT_$LINE"
7688 else
7689 no_cache=1
7690 fi
7691
7692 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
a0b9e27f
MB
7693
7694fi
cbca9943
VZ
7695
7696
7697 eval "$ac_cv_use_splash"
7698 if test "$no_cache" != 1; then
7699 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7700 fi
7701
7702 if test "$wxUSE_SPLASH" = yes; then
a0b9e27f 7703 echo "$ac_t""yes" 1>&6
cbca9943 7704 else
a0b9e27f 7705 echo "$ac_t""no" 1>&6
cbca9943 7706 fi
a0b9e27f 7707
cbca9943 7708
a0b9e27f 7709 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
3bce6687 7710echo "configure:7711: checking for --enable-textdlg" >&5
10f2d63a
VZ
7711 no_cache=0
7712 # Check whether --enable-textdlg or --disable-textdlg was given.
7713if test "${enable_textdlg+set}" = set; then
7714 enableval="$enable_textdlg"
a0b9e27f 7715
10f2d63a
VZ
7716 if test "$enableval" = yes; then
7717 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7718 else
7719 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7720 fi
a0b9e27f 7721
10f2d63a 7722else
a0b9e27f 7723
10f2d63a
VZ
7724 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7725 if test "x$LINE" != x ; then
7726 eval "DEFAULT_$LINE"
7727 else
7728 no_cache=1
7729 fi
7730
7731 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
a0b9e27f
MB
7732
7733fi
10f2d63a
VZ
7734
7735
7736 eval "$ac_cv_use_textdlg"
7737 if test "$no_cache" != 1; then
7738 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7739 fi
7740
7741 if test "$wxUSE_TEXTDLG" = yes; then
a0b9e27f 7742 echo "$ac_t""yes" 1>&6
10f2d63a 7743 else
a0b9e27f 7744 echo "$ac_t""no" 1>&6
10f2d63a 7745 fi
a0b9e27f 7746
10f2d63a 7747
a0b9e27f 7748 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
3bce6687 7749echo "configure:7750: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7750 no_cache=0
7751 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7752if test "${enable_tipdlg+set}" = set; then
7753 enableval="$enable_tipdlg"
a0b9e27f 7754
10f2d63a
VZ
7755 if test "$enableval" = yes; then
7756 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7757 else
7758 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7759 fi
a0b9e27f 7760
10f2d63a 7761else
a0b9e27f 7762
10f2d63a
VZ
7763 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
a0b9e27f
MB
7771
7772fi
10f2d63a
VZ
7773
7774
7775 eval "$ac_cv_use_tipdlg"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_STARTUP_TIPS" = yes; then
a0b9e27f 7781 echo "$ac_t""yes" 1>&6
10f2d63a 7782 else
a0b9e27f 7783 echo "$ac_t""no" 1>&6
10f2d63a 7784 fi
a0b9e27f 7785
10f2d63a 7786
a0b9e27f 7787 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
3bce6687 7788echo "configure:7789: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7789 no_cache=0
7790 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7791if test "${enable_progressdlg+set}" = set; then
7792 enableval="$enable_progressdlg"
a0b9e27f 7793
10f2d63a
VZ
7794 if test "$enableval" = yes; then
7795 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7796 else
7797 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7798 fi
a0b9e27f 7799
10f2d63a 7800else
a0b9e27f 7801
10f2d63a
VZ
7802 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7803 if test "x$LINE" != x ; then
7804 eval "DEFAULT_$LINE"
7805 else
7806 no_cache=1
7807 fi
7808
7809 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
a0b9e27f
MB
7810
7811fi
10f2d63a
VZ
7812
7813
7814 eval "$ac_cv_use_progressdlg"
7815 if test "$no_cache" != 1; then
7816 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7817 fi
7818
7819 if test "$wxUSE_PROGRESSDLG" = yes; then
a0b9e27f 7820 echo "$ac_t""yes" 1>&6
10f2d63a 7821 else
a0b9e27f 7822 echo "$ac_t""no" 1>&6
10f2d63a 7823 fi
a0b9e27f 7824
10f2d63a 7825
a0b9e27f 7826 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
3bce6687 7827echo "configure:7828: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7828 no_cache=0
7829 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7830if test "${enable_wizarddlg+set}" = set; then
7831 enableval="$enable_wizarddlg"
a0b9e27f 7832
b1f5d087
VZ
7833 if test "$enableval" = yes; then
7834 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7835 else
7836 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7837 fi
a0b9e27f 7838
b1f5d087 7839else
a0b9e27f 7840
b1f5d087
VZ
7841 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7842 if test "x$LINE" != x ; then
7843 eval "DEFAULT_$LINE"
7844 else
7845 no_cache=1
7846 fi
7847
7848 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
a0b9e27f
MB
7849
7850fi
b1f5d087
VZ
7851
7852
7853 eval "$ac_cv_use_wizarddlg"
7854 if test "$no_cache" != 1; then
7855 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7856 fi
7857
7858 if test "$wxUSE_WIZARDDLG" = yes; then
a0b9e27f 7859 echo "$ac_t""yes" 1>&6
b1f5d087 7860 else
a0b9e27f 7861 echo "$ac_t""no" 1>&6
b1f5d087 7862 fi
a0b9e27f 7863
8284b0c5
MB
7864
7865
52127426 7866
a0b9e27f 7867 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
3bce6687 7868echo "configure:7869: checking for --enable-menus" >&5
1e6feb95
VZ
7869 no_cache=0
7870 # Check whether --enable-menus or --disable-menus was given.
7871if test "${enable_menus+set}" = set; then
7872 enableval="$enable_menus"
a0b9e27f 7873
1e6feb95
VZ
7874 if test "$enableval" = yes; then
7875 ac_cv_use_menus='wxUSE_MENUS=yes'
7876 else
7877 ac_cv_use_menus='wxUSE_MENUS=no'
7878 fi
a0b9e27f 7879
1e6feb95 7880else
a0b9e27f 7881
1e6feb95
VZ
7882 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7883 if test "x$LINE" != x ; then
7884 eval "DEFAULT_$LINE"
7885 else
7886 no_cache=1
7887 fi
7888
7889 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
a0b9e27f
MB
7890
7891fi
1e6feb95
VZ
7892
7893
7894 eval "$ac_cv_use_menus"
7895 if test "$no_cache" != 1; then
7896 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7897 fi
7898
7899 if test "$wxUSE_MENUS" = yes; then
a0b9e27f 7900 echo "$ac_t""yes" 1>&6
1e6feb95 7901 else
a0b9e27f 7902 echo "$ac_t""no" 1>&6
1e6feb95 7903 fi
a0b9e27f 7904
1e6feb95 7905
a0b9e27f 7906 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
3bce6687 7907echo "configure:7908: checking for --enable-miniframe" >&5
10f2d63a
VZ
7908 no_cache=0
7909 # Check whether --enable-miniframe or --disable-miniframe was given.
7910if test "${enable_miniframe+set}" = set; then
7911 enableval="$enable_miniframe"
a0b9e27f 7912
10f2d63a
VZ
7913 if test "$enableval" = yes; then
7914 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7915 else
7916 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7917 fi
a0b9e27f 7918
10f2d63a 7919else
a0b9e27f 7920
10f2d63a
VZ
7921 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7922 if test "x$LINE" != x ; then
7923 eval "DEFAULT_$LINE"
7924 else
7925 no_cache=1
7926 fi
7927
7928 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
a0b9e27f
MB
7929
7930fi
10f2d63a
VZ
7931
7932
7933 eval "$ac_cv_use_miniframe"
7934 if test "$no_cache" != 1; then
7935 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7936 fi
7937
7938 if test "$wxUSE_MINIFRAME" = yes; then
a0b9e27f 7939 echo "$ac_t""yes" 1>&6
10f2d63a 7940 else
a0b9e27f 7941 echo "$ac_t""no" 1>&6
10f2d63a 7942 fi
a0b9e27f 7943
10f2d63a 7944
a0b9e27f 7945 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
3bce6687 7946echo "configure:7947: checking for --enable-tooltips" >&5
10f2d63a
VZ
7947 no_cache=0
7948 # Check whether --enable-tooltips or --disable-tooltips was given.
7949if test "${enable_tooltips+set}" = set; then
7950 enableval="$enable_tooltips"
a0b9e27f 7951
10f2d63a
VZ
7952 if test "$enableval" = yes; then
7953 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7954 else
7955 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7956 fi
a0b9e27f 7957
10f2d63a 7958else
a0b9e27f 7959
10f2d63a
VZ
7960 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7961 if test "x$LINE" != x ; then
7962 eval "DEFAULT_$LINE"
7963 else
7964 no_cache=1
7965 fi
7966
7967 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
a0b9e27f
MB
7968
7969fi
10f2d63a
VZ
7970
7971
7972 eval "$ac_cv_use_tooltips"
7973 if test "$no_cache" != 1; then
7974 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7975 fi
7976
7977 if test "$wxUSE_TOOLTIPS" = yes; then
a0b9e27f 7978 echo "$ac_t""yes" 1>&6
10f2d63a 7979 else
a0b9e27f 7980 echo "$ac_t""no" 1>&6
10f2d63a 7981 fi
a0b9e27f 7982
10f2d63a 7983
a0b9e27f 7984 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
3bce6687 7985echo "configure:7986: checking for --enable-splines" >&5
10f2d63a
VZ
7986 no_cache=0
7987 # Check whether --enable-splines or --disable-splines was given.
7988if test "${enable_splines+set}" = set; then
7989 enableval="$enable_splines"
a0b9e27f 7990
10f2d63a
VZ
7991 if test "$enableval" = yes; then
7992 ac_cv_use_splines='wxUSE_SPLINES=yes'
7993 else
7994 ac_cv_use_splines='wxUSE_SPLINES=no'
7995 fi
a0b9e27f 7996
10f2d63a 7997else
a0b9e27f 7998
10f2d63a
VZ
7999 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8000 if test "x$LINE" != x ; then
8001 eval "DEFAULT_$LINE"
8002 else
8003 no_cache=1
8004 fi
8005
8006 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
a0b9e27f
MB
8007
8008fi
10f2d63a
VZ
8009
8010
8011 eval "$ac_cv_use_splines"
8012 if test "$no_cache" != 1; then
8013 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8014 fi
8015
8016 if test "$wxUSE_SPLINES" = yes; then
a0b9e27f 8017 echo "$ac_t""yes" 1>&6
10f2d63a 8018 else
a0b9e27f 8019 echo "$ac_t""no" 1>&6
10f2d63a 8020 fi
a0b9e27f 8021
10f2d63a 8022
a0b9e27f 8023 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
3bce6687 8024echo "configure:8025: checking for --enable-validators" >&5
10f2d63a
VZ
8025 no_cache=0
8026 # Check whether --enable-validators or --disable-validators was given.
8027if test "${enable_validators+set}" = set; then
8028 enableval="$enable_validators"
a0b9e27f 8029
10f2d63a
VZ
8030 if test "$enableval" = yes; then
8031 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8032 else
8033 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8034 fi
a0b9e27f 8035
10f2d63a 8036else
a0b9e27f 8037
10f2d63a
VZ
8038 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8039 if test "x$LINE" != x ; then
8040 eval "DEFAULT_$LINE"
8041 else
8042 no_cache=1
8043 fi
8044
8045 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
a0b9e27f
MB
8046
8047fi
10f2d63a
VZ
8048
8049
8050 eval "$ac_cv_use_validators"
8051 if test "$no_cache" != 1; then
8052 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8053 fi
8054
8055 if test "$wxUSE_VALIDATORS" = yes; then
a0b9e27f 8056 echo "$ac_t""yes" 1>&6
10f2d63a 8057 else
a0b9e27f 8058 echo "$ac_t""no" 1>&6
10f2d63a 8059 fi
a0b9e27f 8060
10f2d63a 8061
a0b9e27f 8062 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
3bce6687 8063echo "configure:8064: checking for --enable-busyinfo" >&5
10f2d63a
VZ
8064 no_cache=0
8065 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8066if test "${enable_busyinfo+set}" = set; then
8067 enableval="$enable_busyinfo"
a0b9e27f 8068
10f2d63a
VZ
8069 if test "$enableval" = yes; then
8070 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8071 else
8072 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8073 fi
a0b9e27f 8074
10f2d63a 8075else
a0b9e27f 8076
10f2d63a
VZ
8077 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8078 if test "x$LINE" != x ; then
8079 eval "DEFAULT_$LINE"
8080 else
8081 no_cache=1
8082 fi
8083
8084 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
a0b9e27f
MB
8085
8086fi
10f2d63a
VZ
8087
8088
8089 eval "$ac_cv_use_busyinfo"
8090 if test "$no_cache" != 1; then
8091 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8092 fi
8093
8094 if test "$wxUSE_BUSYINFO" = yes; then
a0b9e27f 8095 echo "$ac_t""yes" 1>&6
10f2d63a 8096 else
a0b9e27f 8097 echo "$ac_t""no" 1>&6
10f2d63a 8098 fi
a0b9e27f 8099
10f2d63a 8100
a0b9e27f 8101 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
3bce6687 8102echo "configure:8103: checking for --enable-joystick" >&5
f6bcfd97
BP
8103 no_cache=0
8104 # Check whether --enable-joystick or --disable-joystick was given.
8105if test "${enable_joystick+set}" = set; then
8106 enableval="$enable_joystick"
a0b9e27f 8107
f6bcfd97
BP
8108 if test "$enableval" = yes; then
8109 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8110 else
8111 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8112 fi
a0b9e27f 8113
f6bcfd97 8114else
a0b9e27f 8115
f6bcfd97
BP
8116 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8117 if test "x$LINE" != x ; then
8118 eval "DEFAULT_$LINE"
8119 else
8120 no_cache=1
8121 fi
8122
8123 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
a0b9e27f
MB
8124
8125fi
f6bcfd97
BP
8126
8127
8128 eval "$ac_cv_use_joystick"
8129 if test "$no_cache" != 1; then
8130 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8131 fi
8132
8133 if test "$wxUSE_JOYSTICK" = yes; then
a0b9e27f 8134 echo "$ac_t""yes" 1>&6
f6bcfd97 8135 else
a0b9e27f 8136 echo "$ac_t""no" 1>&6
f6bcfd97 8137 fi
a0b9e27f 8138
698dcdb6 8139
a0b9e27f 8140 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
3bce6687 8141echo "configure:8142: checking for --enable-metafile" >&5
1e6feb95
VZ
8142 no_cache=0
8143 # Check whether --enable-metafile or --disable-metafile was given.
8144if test "${enable_metafile+set}" = set; then
8145 enableval="$enable_metafile"
a0b9e27f 8146
1e6feb95
VZ
8147 if test "$enableval" = yes; then
8148 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8149 else
8150 ac_cv_use_metafile='wxUSE_METAFILE=no'
8151 fi
a0b9e27f 8152
1e6feb95 8153else
a0b9e27f 8154
1e6feb95
VZ
8155 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8156 if test "x$LINE" != x ; then
8157 eval "DEFAULT_$LINE"
8158 else
8159 no_cache=1
8160 fi
8161
8162 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
a0b9e27f
MB
8163
8164fi
1e6feb95
VZ
8165
8166
8167 eval "$ac_cv_use_metafile"
8168 if test "$no_cache" != 1; then
8169 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8170 fi
8171
8172 if test "$wxUSE_METAFILE" = yes; then
a0b9e27f 8173 echo "$ac_t""yes" 1>&6
1e6feb95 8174 else
a0b9e27f 8175 echo "$ac_t""no" 1>&6
1e6feb95 8176 fi
a0b9e27f 8177
1e6feb95 8178
a0b9e27f 8179 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
3bce6687 8180echo "configure:8181: checking for --enable-dragimage" >&5
24fd6d87
VZ
8181 no_cache=0
8182 # Check whether --enable-dragimage or --disable-dragimage was given.
8183if test "${enable_dragimage+set}" = set; then
8184 enableval="$enable_dragimage"
a0b9e27f 8185
24fd6d87
VZ
8186 if test "$enableval" = yes; then
8187 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8188 else
8189 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8190 fi
a0b9e27f 8191
24fd6d87 8192else
a0b9e27f 8193
24fd6d87
VZ
8194 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8195 if test "x$LINE" != x ; then
8196 eval "DEFAULT_$LINE"
8197 else
8198 no_cache=1
8199 fi
8200
8201 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
a0b9e27f
MB
8202
8203fi
24fd6d87
VZ
8204
8205
8206 eval "$ac_cv_use_dragimage"
8207 if test "$no_cache" != 1; then
8208 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8209 fi
8210
8211 if test "$wxUSE_DRAGIMAGE" = yes; then
a0b9e27f 8212 echo "$ac_t""yes" 1>&6
24fd6d87 8213 else
a0b9e27f 8214 echo "$ac_t""no" 1>&6
24fd6d87 8215 fi
a0b9e27f 8216
52127426 8217
8284b0c5
MB
8218
8219
a0b9e27f 8220 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
3bce6687 8221echo "configure:8222: checking for --enable-palette" >&5
edae8572
VZ
8222 no_cache=0
8223 # Check whether --enable-palette or --disable-palette was given.
8224if test "${enable_palette+set}" = set; then
8225 enableval="$enable_palette"
a0b9e27f 8226
edae8572
VZ
8227 if test "$enableval" = yes; then
8228 ac_cv_use_palette='wxUSE_PALETTE=yes'
8229 else
8230 ac_cv_use_palette='wxUSE_PALETTE=no'
8231 fi
a0b9e27f 8232
edae8572 8233else
a0b9e27f 8234
edae8572
VZ
8235 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8236 if test "x$LINE" != x ; then
8237 eval "DEFAULT_$LINE"
8238 else
8239 no_cache=1
8240 fi
8241
8242 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
a0b9e27f
MB
8243
8244fi
edae8572
VZ
8245
8246
8247 eval "$ac_cv_use_palette"
8248 if test "$no_cache" != 1; then
8249 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8250 fi
8251
8252 if test "$wxUSE_PALETTE" = yes; then
a0b9e27f 8253 echo "$ac_t""yes" 1>&6
edae8572 8254 else
a0b9e27f 8255 echo "$ac_t""no" 1>&6
edae8572 8256 fi
a0b9e27f 8257
edae8572 8258
a0b9e27f 8259 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
3bce6687 8260echo "configure:8261: checking for --enable-image" >&5
0046ff7c
VS
8261 no_cache=0
8262 # Check whether --enable-image or --disable-image was given.
8263if test "${enable_image+set}" = set; then
8264 enableval="$enable_image"
a0b9e27f 8265
0046ff7c
VS
8266 if test "$enableval" = yes; then
8267 ac_cv_use_image='wxUSE_IMAGE=yes'
8268 else
8269 ac_cv_use_image='wxUSE_IMAGE=no'
8270 fi
a0b9e27f 8271
0046ff7c 8272else
a0b9e27f 8273
0046ff7c
VS
8274 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8275 if test "x$LINE" != x ; then
8276 eval "DEFAULT_$LINE"
8277 else
8278 no_cache=1
8279 fi
8280
8281 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
a0b9e27f
MB
8282
8283fi
0046ff7c
VS
8284
8285
8286 eval "$ac_cv_use_image"
8287 if test "$no_cache" != 1; then
8288 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8289 fi
8290
8291 if test "$wxUSE_IMAGE" = yes; then
a0b9e27f 8292 echo "$ac_t""yes" 1>&6
0046ff7c 8293 else
a0b9e27f 8294 echo "$ac_t""no" 1>&6
0046ff7c 8295 fi
a0b9e27f 8296
0046ff7c 8297
a0b9e27f 8298 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
3bce6687 8299echo "configure:8300: checking for --enable-gif" >&5
10f2d63a
VZ
8300 no_cache=0
8301 # Check whether --enable-gif or --disable-gif was given.
8302if test "${enable_gif+set}" = set; then
8303 enableval="$enable_gif"
a0b9e27f 8304
10f2d63a
VZ
8305 if test "$enableval" = yes; then
8306 ac_cv_use_gif='wxUSE_GIF=yes'
8307 else
8308 ac_cv_use_gif='wxUSE_GIF=no'
8309 fi
a0b9e27f 8310
10f2d63a 8311else
a0b9e27f 8312
10f2d63a
VZ
8313 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8314 if test "x$LINE" != x ; then
8315 eval "DEFAULT_$LINE"
8316 else
8317 no_cache=1
8318 fi
8319
8320 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
a0b9e27f
MB
8321
8322fi
10f2d63a
VZ
8323
8324
8325 eval "$ac_cv_use_gif"
8326 if test "$no_cache" != 1; then
8327 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8328 fi
8329
8330 if test "$wxUSE_GIF" = yes; then
a0b9e27f 8331 echo "$ac_t""yes" 1>&6
10f2d63a 8332 else
a0b9e27f 8333 echo "$ac_t""no" 1>&6
10f2d63a 8334 fi
a0b9e27f 8335
10f2d63a 8336
a0b9e27f 8337 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
3bce6687 8338echo "configure:8339: checking for --enable-pcx" >&5
10f2d63a
VZ
8339 no_cache=0
8340 # Check whether --enable-pcx or --disable-pcx was given.
8341if test "${enable_pcx+set}" = set; then
8342 enableval="$enable_pcx"
a0b9e27f 8343
10f2d63a
VZ
8344 if test "$enableval" = yes; then
8345 ac_cv_use_pcx='wxUSE_PCX=yes'
8346 else
8347 ac_cv_use_pcx='wxUSE_PCX=no'
8348 fi
a0b9e27f 8349
10f2d63a 8350else
a0b9e27f 8351
10f2d63a
VZ
8352 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8353 if test "x$LINE" != x ; then
8354 eval "DEFAULT_$LINE"
8355 else
8356 no_cache=1
8357 fi
8358
8359 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
a0b9e27f
MB
8360
8361fi
10f2d63a
VZ
8362
8363
8364 eval "$ac_cv_use_pcx"
8365 if test "$no_cache" != 1; then
8366 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8367 fi
8368
8369 if test "$wxUSE_PCX" = yes; then
a0b9e27f 8370 echo "$ac_t""yes" 1>&6
10f2d63a 8371 else
a0b9e27f 8372 echo "$ac_t""no" 1>&6
10f2d63a 8373 fi
a0b9e27f 8374
10f2d63a 8375
a0b9e27f 8376 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
3bce6687 8377echo "configure:8378: checking for --enable-iff" >&5
4b6b4dfc
RR
8378 no_cache=0
8379 # Check whether --enable-iff or --disable-iff was given.
8380if test "${enable_iff+set}" = set; then
8381 enableval="$enable_iff"
a0b9e27f 8382
4b6b4dfc
RR
8383 if test "$enableval" = yes; then
8384 ac_cv_use_iff='wxUSE_IFF=yes'
8385 else
8386 ac_cv_use_iff='wxUSE_IFF=no'
8387 fi
a0b9e27f 8388
4b6b4dfc 8389else
a0b9e27f 8390
4b6b4dfc
RR
8391 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8392 if test "x$LINE" != x ; then
8393 eval "DEFAULT_$LINE"
8394 else
8395 no_cache=1
8396 fi
8397
8398 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
a0b9e27f
MB
8399
8400fi
4b6b4dfc
RR
8401
8402
8403 eval "$ac_cv_use_iff"
8404 if test "$no_cache" != 1; then
8405 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8406 fi
8407
8408 if test "$wxUSE_IFF" = yes; then
a0b9e27f 8409 echo "$ac_t""yes" 1>&6
4b6b4dfc 8410 else
a0b9e27f 8411 echo "$ac_t""no" 1>&6
4b6b4dfc 8412 fi
a0b9e27f 8413
4b6b4dfc 8414
a0b9e27f 8415 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
3bce6687 8416echo "configure:8417: checking for --enable-pnm" >&5
10f2d63a
VZ
8417 no_cache=0
8418 # Check whether --enable-pnm or --disable-pnm was given.
8419if test "${enable_pnm+set}" = set; then
8420 enableval="$enable_pnm"
a0b9e27f 8421
10f2d63a
VZ
8422 if test "$enableval" = yes; then
8423 ac_cv_use_pnm='wxUSE_PNM=yes'
8424 else
8425 ac_cv_use_pnm='wxUSE_PNM=no'
8426 fi
a0b9e27f 8427
10f2d63a 8428else
a0b9e27f 8429
10f2d63a
VZ
8430 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8431 if test "x$LINE" != x ; then
8432 eval "DEFAULT_$LINE"
8433 else
8434 no_cache=1
8435 fi
8436
8437 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
a0b9e27f
MB
8438
8439fi
10f2d63a
VZ
8440
8441
8442 eval "$ac_cv_use_pnm"
8443 if test "$no_cache" != 1; then
8444 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8445 fi
8446
8447 if test "$wxUSE_PNM" = yes; then
a0b9e27f 8448 echo "$ac_t""yes" 1>&6
10f2d63a 8449 else
a0b9e27f 8450 echo "$ac_t""no" 1>&6
10f2d63a 8451 fi
a0b9e27f 8452
10f2d63a 8453
a0b9e27f 8454 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
3bce6687 8455echo "configure:8456: checking for --enable-xpm" >&5
0046ff7c 8456 no_cache=0
69d27ff7
MB
8457 # Check whether --enable-xpm or --disable-xpm was given.
8458if test "${enable_xpm+set}" = set; then
8459 enableval="$enable_xpm"
a0b9e27f 8460
0046ff7c 8461 if test "$enableval" = yes; then
69d27ff7 8462 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8463 else
69d27ff7 8464 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8465 fi
a0b9e27f 8466
0046ff7c 8467else
a0b9e27f 8468
0046ff7c
VS
8469 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8470 if test "x$LINE" != x ; then
8471 eval "DEFAULT_$LINE"
8472 else
8473 no_cache=1
8474 fi
8475
69d27ff7 8476 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
a0b9e27f
MB
8477
8478fi
0046ff7c
VS
8479
8480
69d27ff7 8481 eval "$ac_cv_use_xpm"
0046ff7c 8482 if test "$no_cache" != 1; then
69d27ff7 8483 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8484 fi
8485
8486 if test "$wxUSE_XPM" = yes; then
a0b9e27f 8487 echo "$ac_t""yes" 1>&6
0046ff7c 8488 else
a0b9e27f 8489 echo "$ac_t""no" 1>&6
0046ff7c 8490 fi
a0b9e27f 8491
0046ff7c 8492
a0b9e27f 8493 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
3bce6687 8494echo "configure:8495: checking for --enable-ico_cur" >&5
658974ae 8495 no_cache=0
c7206e64
VS
8496 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8497if test "${enable_ico_cur+set}" = set; then
8498 enableval="$enable_ico_cur"
a0b9e27f 8499
658974ae 8500 if test "$enableval" = yes; then
c7206e64 8501 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8502 else
c7206e64 8503 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8504 fi
a0b9e27f 8505
658974ae 8506else
a0b9e27f 8507
658974ae
VS
8508 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8509 if test "x$LINE" != x ; then
8510 eval "DEFAULT_$LINE"
8511 else
8512 no_cache=1
8513 fi
8514
c7206e64 8515 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
a0b9e27f
MB
8516
8517fi
658974ae
VS
8518
8519
c7206e64 8520 eval "$ac_cv_use_ico_cur"
658974ae 8521 if test "$no_cache" != 1; then
c7206e64 8522 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8523 fi
8524
8525 if test "$wxUSE_ICO_CUR" = yes; then
a0b9e27f 8526 echo "$ac_t""yes" 1>&6
658974ae 8527 else
a0b9e27f 8528 echo "$ac_t""no" 1>&6
658974ae 8529 fi
a0b9e27f 8530
658974ae 8531
b12915c1
VZ
8532fi
8533
d558c907
VS
8534case "${host}" in
8535 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
8536 PATH_IFS=';'
8537 LEX_STEM="lexyy"
d558c907
VS
8538 ;;
8539 *)
8540 PATH_IFS=':'
8541 LEX_STEM="lex.yy"
8542 ;;
8543esac
8544
8284b0c5
MB
8545
8546
10f2d63a
VZ
8547 echo "saving argument cache $wx_arg_cache_file"
8548 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
a0b9e27f 8549
52127426 8550
8284b0c5 8551
a0b9e27f 8552echo $ac_n "checking for toolkit""... $ac_c" 1>&6
3bce6687 8553echo "configure:8554: checking for toolkit" >&5
10f2d63a
VZ
8554
8555if test "$wxUSE_GUI" = "yes"; then
8556
3a922bb4 8557 if test "$USE_BEOS" = 1; then
a0b9e27f 8558 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
3a922bb4 8559 fi
b12915c1 8560
3a922bb4
RL
8561 if test "$TOOLKIT_GIVEN" = 1; then
8562 for toolkit in `echo $ALL_TOOLKITS`; do
8563 var=wxUSE_$toolkit
8564 eval "value=\$${var}"
8565 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8566 done
10f2d63a 8567 else
3a922bb4
RL
8568 for toolkit in `echo $ALL_TOOLKITS`; do
8569 if test "$has_toolkit_in_cache" != 1; then
8570 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8571 else
8572 var=DEFAULT_wxUSE_$toolkit
8573 fi
8574 eval "wxUSE_$toolkit=\$${var}"
8575 done
10f2d63a 8576 fi
10f2d63a 8577
3a922bb4 8578 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8579 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8580
d558c907 8581 case "${host}" in
6fa882bd 8582 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8583 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8584 esac
10f2d63a 8585
3a922bb4
RL
8586 case "$NUM_TOOLKITS" in
8587 1)
8588 ;;
8589 0)
a0b9e27f 8590 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
3a922bb4
RL
8591 ;;
8592 *)
a0b9e27f 8593 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
3a922bb4 8594 esac
10f2d63a 8595
3a922bb4
RL
8596 for toolkit in `echo $ALL_TOOLKITS`; do
8597 var=wxUSE_$toolkit
8598 eval "value=\$${var}"
8599 if test "x$value" != x; then
8600 cache_var=CACHE_$toolkit
8601 eval "cache=\$${cache_var}"
8602 if test "$cache" = 1; then
8603 echo "$var=$value" >> ${wx_arg_cache_file}
8604 fi
8605 if test "$value" = 1; then
8606 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
a0b9e27f 8607 echo "$ac_t""$toolkit_echo" 1>&6
3a922bb4
RL
8608 fi
8609 fi
8610 done
10f2d63a 8611else
a0b9e27f 8612 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8613fi
8614
6969f178
MB
8615case "${host}" in
8616 *-pc-os2_emx | *-pc-os2-emx )
8617 LIBS="$LIBS -lstdcpp"
8618 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
8619 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
3bce6687 8620echo "configure:8621: checking for drand48 in -lcExt" >&5
6969f178
MB
8621ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
8622if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8623 echo $ac_n "(cached) $ac_c" 1>&6
8624else
8625 ac_save_LIBS="$LIBS"
8626LIBS="-lcExt $LIBS"
8627cat > conftest.$ac_ext <<EOF
3bce6687 8628#line 8629 "configure"
6969f178
MB
8629#include "confdefs.h"
8630/* Override any gcc2 internal prototype to avoid an error. */
8631/* We use char because int might match the return type of a gcc2
8632 builtin and then its argument prototype would still apply. */
8633char drand48();
8634
8635int main() {
8636drand48()
8637; return 0; }
8638EOF
3bce6687 8639if { (eval echo configure:8640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6969f178
MB
8640 rm -rf conftest*
8641 eval "ac_cv_lib_$ac_lib_var=yes"
8642else
8643 echo "configure: failed program was:" >&5
8644 cat conftest.$ac_ext >&5
8645 rm -rf conftest*
8646 eval "ac_cv_lib_$ac_lib_var=no"
8647fi
8648rm -f conftest*
8649LIBS="$ac_save_LIBS"
8650
8651fi
8652if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8653 echo "$ac_t""yes" 1>&6
8654 LIBS="$LIBS -lcExt"
8655else
8656 echo "$ac_t""no" 1>&6
8657fi
8658
8659 else
8660 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
8661 fi
8662 ;;
8663esac
8284b0c5 8664
43d99b6d
VS
8665wants_win32=0
8666doesnt_want_win32=0
17234b26
MB
8667case "${host}" in
8668 *-*-cygwin*)
8669 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8670 wants_win32=1
8671 else
8672 doesnt_want_win32=1
17234b26
MB
8673 fi
8674 ;;
8675 *-*-mingw*)
43d99b6d 8676 wants_win32=1
17234b26
MB
8677 ;;
8678esac
8679
43d99b6d 8680if test "$wants_win32" = 1 ; then
17234b26
MB
8681 USE_UNIX=0
8682 USE_WIN32=1
a0b9e27f 8683 cat >> confdefs.h <<\EOF
17234b26 8684#define __WIN32__ 1
a0b9e27f 8685EOF
17234b26 8686
a0b9e27f 8687 cat >> confdefs.h <<\EOF
17234b26 8688#define __WIN95__ 1
a0b9e27f 8689EOF
17234b26 8690
a0b9e27f 8691 cat >> confdefs.h <<\EOF
17234b26 8692#define __WINDOWS__ 1
a0b9e27f 8693EOF
17234b26 8694
a0b9e27f 8695 cat >> confdefs.h <<\EOF
17234b26 8696#define __GNUWIN32__ 1
a0b9e27f 8697EOF
17234b26 8698
a0b9e27f 8699 cat >> confdefs.h <<\EOF
17234b26 8700#define STRICT 1
a0b9e27f 8701EOF
17234b26 8702
a0b9e27f 8703 cat >> confdefs.h <<\EOF
17234b26 8704#define WINVER 0x0400
a0b9e27f 8705EOF
17234b26 8706
43d99b6d
VS
8707fi
8708if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8709 USE_UNIX=1
8710 USE_WIN32=0
8711fi
8712
8713if test "$USE_UNIX" = 1 ; then
8714 wxUSE_UNIX=yes
a0b9e27f 8715 cat >> confdefs.h <<\EOF
17234b26 8716#define __UNIX__ 1
a0b9e27f 8717EOF
17234b26
MB
8718
8719fi
8720
8284b0c5 8721
a0b9e27f 8722cat > confcache <<\EOF
10f2d63a
VZ
8723# This file is a shell script that caches the results of configure
8724# tests run on this system so they can be shared between configure
a0b9e27f
MB
8725# scripts and configure runs. It is not useful on other systems.
8726# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8727#
a0b9e27f
MB
8728# By default, configure uses ./config.cache as the cache file,
8729# creating it if it does not exist already. You can give configure
8730# the --cache-file=FILE option to use a different cache file; that is
8731# what configure does when it calls configure scripts in
8732# subdirectories, so they share the cache.
8733# Giving --cache-file=/dev/null disables caching, for debugging configure.
8734# config.status only pays attention to the cache file if you give it the
8735# --recheck option to rerun configure.
10f2d63a 8736#
a0b9e27f 8737EOF
10f2d63a
VZ
8738# The following way of writing the cache mishandles newlines in values,
8739# but we know of no workaround that is simple, portable, and efficient.
8740# So, don't put newlines in cache variables' values.
8741# Ultrix sh set writes to stderr and can't be redirected directly,
8742# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
8743(set) 2>&1 |
8744 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8745 *ac_space=\ *)
8746 # `set' does not quote correctly, so add quotes (double-quote substitution
8747 # turns \\\\ into \\, and sed turns \\ into \).
8748 sed -n \
8749 -e "s/'/'\\\\''/g" \
8750 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8751 ;;
8752 *)
8753 # `set' quotes correctly as required by POSIX, so do not add quotes.
8754 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8755 ;;
8756 esac >> confcache
8757if cmp -s $cache_file confcache; then
8758 :
8759else
10f2d63a 8760 if test -w $cache_file; then
a0b9e27f
MB
8761 echo "updating cache $cache_file"
8762 cat confcache > $cache_file
10f2d63a
VZ
8763 else
8764 echo "not updating unwritable cache $cache_file"
8765 fi
8766fi
8767rm -f confcache
8768
a0b9e27f 8769
e59890c3 8770if test "$build" != "$host" ; then
9d353d4a 8771 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8772 CC=$host_alias-gcc
8773 CXX=$host_alias-c++
8774 AR=$host_alias-ar
8775 RANLIB=$host_alias-ranlib
8776 DLLTOOL=$host_alias-dlltool
8777 RESCOMP=$host_alias-windres
8778 LD=$host_alias-ld
8779 NM=$host_alias-nm
8780 STRIP=$host_alias-strip
8781 else
a0b9e27f 8782 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
3a922bb4 8783 fi
10f2d63a
VZ
8784fi
8785
ec603395 8786CFLAGS=${CFLAGS:=}
a0b9e27f 8787# Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 8788set dummy gcc; ac_word=$2
a0b9e27f 8789echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 8790echo "configure:8791: checking for $ac_word" >&5
a0b9e27f
MB
8791if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8792 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8793else
8794 if test -n "$CC"; then
8795 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8796else
a0b9e27f
MB
8797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8798 ac_dummy="$PATH"
8799 for ac_dir in $ac_dummy; do
8800 test -z "$ac_dir" && ac_dir=.
8801 if test -f $ac_dir/$ac_word; then
8802 ac_cv_prog_CC="gcc"
8803 break
8804 fi
8805 done
8806 IFS="$ac_save_ifs"
10f2d63a 8807fi
6232543b 8808fi
a0b9e27f 8809CC="$ac_cv_prog_CC"
6232543b 8810if test -n "$CC"; then
a0b9e27f 8811 echo "$ac_t""$CC" 1>&6
247f5006 8812else
a0b9e27f 8813 echo "$ac_t""no" 1>&6
247f5006
VZ
8814fi
8815
5c6fa7d2
RR
8816if test -z "$CC"; then
8817 # Extract the first word of "cc", so it can be a program name with args.
8818set dummy cc; ac_word=$2
a0b9e27f 8819echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 8820echo "configure:8821: checking for $ac_word" >&5
a0b9e27f
MB
8821if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8822 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2
RR
8823else
8824 if test -n "$CC"; then
8825 ac_cv_prog_CC="$CC" # Let the user override the test.
8826else
a0b9e27f 8827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5c6fa7d2 8828 ac_prog_rejected=no
a0b9e27f
MB
8829 ac_dummy="$PATH"
8830 for ac_dir in $ac_dummy; do
8831 test -z "$ac_dir" && ac_dir=.
8832 if test -f $ac_dir/$ac_word; then
8833 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8834 ac_prog_rejected=yes
8835 continue
8836 fi
8837 ac_cv_prog_CC="cc"
8838 break
8839 fi
8840 done
8841 IFS="$ac_save_ifs"
328a083c
RR
8842if test $ac_prog_rejected = yes; then
8843 # We found a bogon in the path, so make sure we never use it.
8844 set dummy $ac_cv_prog_CC
8845 shift
a0b9e27f 8846 if test $# -gt 0; then
328a083c 8847 # We chose a different compiler from the bogus one.
1e487827
VS
8848 # However, it has the same basename, so the bogon will be chosen
8849 # first if we set CC to just the basename; use the full file name.
8850 shift
a0b9e27f 8851 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8852 shift
8853 ac_cv_prog_CC="$@"
703e0a69 8854 fi
1e487827
VS
8855fi
8856fi
8857fi
a0b9e27f 8858CC="$ac_cv_prog_CC"
1e487827 8859if test -n "$CC"; then
a0b9e27f 8860 echo "$ac_t""$CC" 1>&6
703e0a69 8861else
a0b9e27f 8862 echo "$ac_t""no" 1>&6
703e0a69 8863fi
1e487827 8864
a0b9e27f
MB
8865 if test -z "$CC"; then
8866 case "`uname -s`" in
8867 *win32* | *WIN32*)
8868 # Extract the first word of "cl", so it can be a program name with args.
8869set dummy cl; ac_word=$2
8870echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 8871echo "configure:8872: checking for $ac_word" >&5
a0b9e27f
MB
8872if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8873 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf
VS
8874else
8875 if test -n "$CC"; then
8876 ac_cv_prog_CC="$CC" # Let the user override the test.
8877else
a0b9e27f
MB
8878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8879 ac_dummy="$PATH"
8880 for ac_dir in $ac_dummy; do
8881 test -z "$ac_dir" && ac_dir=.
8882 if test -f $ac_dir/$ac_word; then
8883 ac_cv_prog_CC="cl"
8884 break
8885 fi
8886 done
8887 IFS="$ac_save_ifs"
f09359cf
VS
8888fi
8889fi
a0b9e27f 8890CC="$ac_cv_prog_CC"
f09359cf 8891if test -n "$CC"; then
a0b9e27f 8892 echo "$ac_t""$CC" 1>&6
f09359cf 8893else
a0b9e27f 8894 echo "$ac_t""no" 1>&6
247f5006 8895fi
a0b9e27f
MB
8896 ;;
8897 esac
8284b0c5 8898 fi
a0b9e27f 8899 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5c6fa7d2 8900fi
1e487827 8901
a0b9e27f 8902echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3bce6687 8903echo "configure:8904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
f09359cf 8904
a0b9e27f
MB
8905ac_ext=c
8906# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8907ac_cpp='$CPP $CPPFLAGS'
8908ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8909ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8910cross_compiling=$ac_cv_prog_cc_cross
f09359cf 8911
a0b9e27f 8912cat > conftest.$ac_ext << EOF
247f5006 8913
3bce6687 8914#line 8915 "configure"
a0b9e27f 8915#include "confdefs.h"
247f5006 8916
a0b9e27f
MB
8917main(){return(0);}
8918EOF
3bce6687 8919if { (eval echo configure:8920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
8920 ac_cv_prog_cc_works=yes
8921 # If we can't run a trivial program, we are probably using a cross compiler.
8922 if (./conftest; exit) 2>/dev/null; then
8923 ac_cv_prog_cc_cross=no
698dcdb6 8924 else
a0b9e27f 8925 ac_cv_prog_cc_cross=yes
698dcdb6 8926 fi
7b4a847f 8927else
a0b9e27f
MB
8928 echo "configure: failed program was:" >&5
8929 cat conftest.$ac_ext >&5
8930 ac_cv_prog_cc_works=no
52127426 8931fi
a0b9e27f
MB
8932rm -fr conftest*
8933ac_ext=c
8934# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8935ac_cpp='$CPP $CPPFLAGS'
8936ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8937ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8938cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 8939
a0b9e27f
MB
8940echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8941if test $ac_cv_prog_cc_works = no; then
8942 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8943fi
8944echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3bce6687 8945echo "configure:8946: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
8946echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8947cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 8948
a0b9e27f 8949echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3bce6687 8950echo "configure:8951: checking whether we are using GNU C" >&5
a0b9e27f
MB
8951if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 8953else
a0b9e27f
MB
8954 cat > conftest.c <<EOF
8955#ifdef __GNUC__
8956 yes;
8284b0c5 8957#endif
a0b9e27f 8958EOF
3bce6687 8959if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f 8960 ac_cv_prog_gcc=yes
5c6fa7d2 8961else
a0b9e27f 8962 ac_cv_prog_gcc=no
8284b0c5
MB
8963fi
8964fi
1e487827 8965
a0b9e27f 8966echo "$ac_t""$ac_cv_prog_gcc" 1>&6
f09359cf 8967
a0b9e27f
MB
8968if test $ac_cv_prog_gcc = yes; then
8969 GCC=yes
8970else
8971 GCC=
8972fi
247f5006 8973
a0b9e27f
MB
8974ac_test_CFLAGS="${CFLAGS+set}"
8975ac_save_CFLAGS="$CFLAGS"
8976CFLAGS=
8977echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3bce6687 8978echo "configure:8979: checking whether ${CC-cc} accepts -g" >&5
a0b9e27f
MB
8979if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6
8981else
8982 echo 'void f(){}' > conftest.c
8983if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8984 ac_cv_prog_cc_g=yes
8985else
a0b9e27f 8986 ac_cv_prog_cc_g=no
10f2d63a 8987fi
a0b9e27f
MB
8988rm -f conftest*
8989
10f2d63a 8990fi
a0b9e27f
MB
8991
8992echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
f09359cf 8993if test "$ac_test_CFLAGS" = set; then
a0b9e27f 8994 CFLAGS="$ac_save_CFLAGS"
f09359cf
VS
8995elif test $ac_cv_prog_cc_g = yes; then
8996 if test "$GCC" = yes; then
10f2d63a
VZ
8997 CFLAGS="-g -O2"
8998 else
f09359cf 8999 CFLAGS="-g"
10f2d63a 9000 fi
5c0a20c3 9001else
f09359cf
VS
9002 if test "$GCC" = yes; then
9003 CFLAGS="-O2"
9004 else
9005 CFLAGS=
9006 fi
10f2d63a
VZ
9007fi
9008
9009
a0b9e27f 9010echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3bce6687 9011echo "configure:9012: checking how to run the C preprocessor" >&5
10f2d63a
VZ
9012# On Suns, sometimes $CPP names a directory.
9013if test -n "$CPP" && test -d "$CPP"; then
9014 CPP=
9015fi
9016if test -z "$CPP"; then
a0b9e27f
MB
9017if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9018 echo $ac_n "(cached) $ac_c" 1>&6
9019else
9020 # This must be in double quotes, not single quotes, because CPP may get
9021 # substituted into the Makefile and "${CC-cc}" will confuse make.
9022 CPP="${CC-cc} -E"
10f2d63a 9023 # On the NeXT, cc -E runs the code through the compiler's parser,
a0b9e27f
MB
9024 # not just through cpp.
9025 cat > conftest.$ac_ext <<EOF
3bce6687 9026#line 9027 "configure"
10f2d63a
VZ
9027#include "confdefs.h"
9028#include <assert.h>
a0b9e27f
MB
9029Syntax Error
9030EOF
9031ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9032{ (eval echo configure:9033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9033ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9034if test -z "$ac_err"; then
10f2d63a
VZ
9035 :
9036else
a0b9e27f
MB
9037 echo "$ac_err" >&5
9038 echo "configure: failed program was:" >&5
10f2d63a 9039 cat conftest.$ac_ext >&5
a0b9e27f
MB
9040 rm -rf conftest*
9041 CPP="${CC-cc} -E -traditional-cpp"
9042 cat > conftest.$ac_ext <<EOF
3bce6687 9043#line 9044 "configure"
f09359cf 9044#include "confdefs.h"
a0b9e27f
MB
9045#include <assert.h>
9046Syntax Error
9047EOF
9048ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9049{ (eval echo configure:9050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9050ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9051if test -z "$ac_err"; then
9052 :
247f5006 9053else
a0b9e27f
MB
9054 echo "$ac_err" >&5
9055 echo "configure: failed program was:" >&5
f09359cf 9056 cat conftest.$ac_ext >&5
a0b9e27f
MB
9057 rm -rf conftest*
9058 CPP="${CC-cc} -nologo -E"
9059 cat > conftest.$ac_ext <<EOF
3bce6687 9060#line 9061 "configure"
10f2d63a
VZ
9061#include "confdefs.h"
9062#include <assert.h>
a0b9e27f
MB
9063Syntax Error
9064EOF
9065ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9066{ (eval echo configure:9067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9067ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9068if test -z "$ac_err"; then
10f2d63a
VZ
9069 :
9070else
a0b9e27f
MB
9071 echo "$ac_err" >&5
9072 echo "configure: failed program was:" >&5
10f2d63a 9073 cat conftest.$ac_ext >&5
a0b9e27f
MB
9074 rm -rf conftest*
9075 CPP=/lib/cpp
579d8138 9076fi
a0b9e27f 9077rm -f conftest*
52127426 9078fi
a0b9e27f 9079rm -f conftest*
8284b0c5 9080fi
a0b9e27f
MB
9081rm -f conftest*
9082 ac_cv_prog_CPP="$CPP"
9083fi
9084 CPP="$ac_cv_prog_CPP"
10f2d63a 9085else
a0b9e27f 9086 ac_cv_prog_CPP="$CPP"
10f2d63a 9087fi
a0b9e27f 9088echo "$ac_t""$CPP" 1>&6
10f2d63a 9089
a0b9e27f
MB
9090if test $ac_cv_prog_gcc = yes; then
9091 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3bce6687 9092echo "configure:9093: checking whether ${CC-cc} needs -traditional" >&5
a0b9e27f
MB
9093if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9094 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9095else
9096 ac_pattern="Autoconf.*'x'"
a0b9e27f 9097 cat > conftest.$ac_ext <<EOF
3bce6687 9098#line 9099 "configure"
10f2d63a
VZ
9099#include "confdefs.h"
9100#include <sgtty.h>
9101Autoconf TIOCGETP
a0b9e27f 9102EOF
10f2d63a
VZ
9103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9104 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9105 rm -rf conftest*
10f2d63a
VZ
9106 ac_cv_prog_gcc_traditional=yes
9107else
a0b9e27f 9108 rm -rf conftest*
10f2d63a
VZ
9109 ac_cv_prog_gcc_traditional=no
9110fi
9111rm -f conftest*
9112
8284b0c5 9113
10f2d63a 9114 if test $ac_cv_prog_gcc_traditional = no; then
a0b9e27f 9115 cat > conftest.$ac_ext <<EOF
3bce6687 9116#line 9117 "configure"
10f2d63a
VZ
9117#include "confdefs.h"
9118#include <termio.h>
9119Autoconf TCGETA
a0b9e27f 9120EOF
10f2d63a
VZ
9121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9122 egrep "$ac_pattern" >/dev/null 2>&1; then
a0b9e27f 9123 rm -rf conftest*
10f2d63a
VZ
9124 ac_cv_prog_gcc_traditional=yes
9125fi
9126rm -f conftest*
9127
9128 fi
9129fi
a0b9e27f
MB
9130
9131echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
9132 if test $ac_cv_prog_gcc_traditional = yes; then
9133 CC="$CC -traditional"
9134 fi
9135fi
9136
8284b0c5
MB
9137
9138
a0b9e27f
MB
9139ac_ext=C
9140# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 9141ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
9142ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9143ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9144cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9145
698dcdb6 9146
ec603395 9147CXXFLAGS=${CXXFLAGS:=}
a0b9e27f
MB
9148for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9149do
9150# Extract the first word of "$ac_prog", so it can be a program name with args.
9151set dummy $ac_prog; ac_word=$2
9152echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 9153echo "configure:9154: checking for $ac_word" >&5
a0b9e27f
MB
9154if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9155 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9156else
9157 if test -n "$CXX"; then
9158 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9159else
a0b9e27f
MB
9160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9161 ac_dummy="$PATH"
9162 for ac_dir in $ac_dummy; do
9163 test -z "$ac_dir" && ac_dir=.
9164 if test -f $ac_dir/$ac_word; then
9165 ac_cv_prog_CXX="$ac_prog"
9166 break
9167 fi
9168 done
9169 IFS="$ac_save_ifs"
10f2d63a
VZ
9170fi
9171fi
a0b9e27f 9172CXX="$ac_cv_prog_CXX"
10f2d63a 9173if test -n "$CXX"; then
a0b9e27f 9174 echo "$ac_t""$CXX" 1>&6
10f2d63a 9175else
a0b9e27f 9176 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9177fi
9178
a0b9e27f 9179test -n "$CXX" && break
10f2d63a 9180done
a0b9e27f 9181test -n "$CXX" || CXX="gcc"
f09359cf 9182
a0b9e27f
MB
9183
9184echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3bce6687 9185echo "configure:9186: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a0b9e27f
MB
9186
9187ac_ext=C
9188# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9189ac_cpp='$CXXCPP $CPPFLAGS'
9190ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9191ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9192cross_compiling=$ac_cv_prog_cxx_cross
9193
9194cat > conftest.$ac_ext << EOF
9195
3bce6687 9196#line 9197 "configure"
a0b9e27f
MB
9197#include "confdefs.h"
9198
9199int main(){return(0);}
9200EOF
3bce6687 9201if { (eval echo configure:9202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9202 ac_cv_prog_cxx_works=yes
9203 # If we can't run a trivial program, we are probably using a cross compiler.
9204 if (./conftest; exit) 2>/dev/null; then
9205 ac_cv_prog_cxx_cross=no
9206 else
9207 ac_cv_prog_cxx_cross=yes
9208 fi
8284b0c5 9209else
a0b9e27f
MB
9210 echo "configure: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9212 ac_cv_prog_cxx_works=no
8284b0c5 9213fi
a0b9e27f
MB
9214rm -fr conftest*
9215ac_ext=C
9216# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9217ac_cpp='$CXXCPP $CPPFLAGS'
9218ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9219ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9220cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9221
a0b9e27f
MB
9222echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9223if test $ac_cv_prog_cxx_works = no; then
9224 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9225fi
9226echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3bce6687 9227echo "configure:9228: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a0b9e27f
MB
9228echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9229cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 9230
a0b9e27f 9231echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
3bce6687 9232echo "configure:9233: checking whether we are using GNU C++" >&5
a0b9e27f
MB
9233if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9234 echo $ac_n "(cached) $ac_c" 1>&6
9235else
9236 cat > conftest.C <<EOF
9237#ifdef __GNUC__
9238 yes;
10f2d63a 9239#endif
a0b9e27f 9240EOF
3bce6687 9241if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a0b9e27f
MB
9242 ac_cv_prog_gxx=yes
9243else
9244 ac_cv_prog_gxx=no
9245fi
9246fi
10f2d63a 9247
a0b9e27f 9248echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9249
a0b9e27f
MB
9250if test $ac_cv_prog_gxx = yes; then
9251 GXX=yes
9252else
9253 GXX=
9254fi
f09359cf 9255
a0b9e27f
MB
9256ac_test_CXXFLAGS="${CXXFLAGS+set}"
9257ac_save_CXXFLAGS="$CXXFLAGS"
9258CXXFLAGS=
9259echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
3bce6687 9260echo "configure:9261: checking whether ${CXX-g++} accepts -g" >&5
a0b9e27f
MB
9261if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9262 echo $ac_n "(cached) $ac_c" 1>&6
9263else
9264 echo 'void f(){}' > conftest.cc
9265if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9266 ac_cv_prog_cxx_g=yes
9267else
a0b9e27f 9268 ac_cv_prog_cxx_g=no
10f2d63a 9269fi
a0b9e27f
MB
9270rm -f conftest*
9271
10f2d63a 9272fi
a0b9e27f
MB
9273
9274echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
f09359cf 9275if test "$ac_test_CXXFLAGS" = set; then
a0b9e27f 9276 CXXFLAGS="$ac_save_CXXFLAGS"
f09359cf
VS
9277elif test $ac_cv_prog_cxx_g = yes; then
9278 if test "$GXX" = yes; then
10f2d63a
VZ
9279 CXXFLAGS="-g -O2"
9280 else
f09359cf 9281 CXXFLAGS="-g"
10f2d63a 9282 fi
5c0a20c3 9283else
f09359cf
VS
9284 if test "$GXX" = yes; then
9285 CXXFLAGS="-O2"
9286 else
9287 CXXFLAGS=
9288 fi
10f2d63a
VZ
9289fi
9290
9291
10f2d63a 9292ac_ext=c
a0b9e27f 9293# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9294ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
9295ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9296ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9297cross_compiling=$ac_cv_prog_cc_cross
8284b0c5
MB
9298
9299
a0b9e27f
MB
9300# Extract the first word of "ranlib", so it can be a program name with args.
9301set dummy ranlib; ac_word=$2
9302echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 9303echo "configure:9304: checking for $ac_word" >&5
a0b9e27f
MB
9304if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9305 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9306else
9307 if test -n "$RANLIB"; then
9308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9309else
a0b9e27f
MB
9310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9311 ac_dummy="$PATH"
9312 for ac_dir in $ac_dummy; do
9313 test -z "$ac_dir" && ac_dir=.
9314 if test -f $ac_dir/$ac_word; then
9315 ac_cv_prog_RANLIB="ranlib"
9316 break
9317 fi
9318 done
9319 IFS="$ac_save_ifs"
9320 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9321fi
9322fi
a0b9e27f 9323RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9324if test -n "$RANLIB"; then
a0b9e27f 9325 echo "$ac_t""$RANLIB" 1>&6
328a083c 9326else
a0b9e27f 9327 echo "$ac_t""no" 1>&6
328a083c
RR
9328fi
9329
10f2d63a
VZ
9330
9331# Extract the first word of "ar", so it can be a program name with args.
9332set dummy ar; ac_word=$2
a0b9e27f 9333echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 9334echo "configure:9335: checking for $ac_word" >&5
a0b9e27f
MB
9335if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9336 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9337else
9338 if test -n "$AR"; then
9339 ac_cv_prog_AR="$AR" # Let the user override the test.
9340else
a0b9e27f
MB
9341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9342 ac_dummy="$PATH"
9343 for ac_dir in $ac_dummy; do
9344 test -z "$ac_dir" && ac_dir=.
9345 if test -f $ac_dir/$ac_word; then
9346 ac_cv_prog_AR="ar"
9347 break
9348 fi
9349 done
9350 IFS="$ac_save_ifs"
10f2d63a
VZ
9351 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9352fi
9353fi
a0b9e27f 9354AR="$ac_cv_prog_AR"
10f2d63a 9355if test -n "$AR"; then
a0b9e27f 9356 echo "$ac_t""$AR" 1>&6
10f2d63a 9357else
a0b9e27f 9358 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9359fi
9360
8284b0c5 9361
6054113a 9362# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9363# so one script is as good as another. But avoid the broken or
9364# incompatible versions:
9365# SysV /etc/install, /usr/sbin/install
9366# SunOS /usr/etc/install
9367# IRIX /sbin/install
9368# AIX /bin/install
f09359cf 9369# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
9370# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9371# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9372# ./install, which can be erroneously created by make from ./install.sh.
a0b9e27f 9373echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3bce6687 9374echo "configure:9375: checking for a BSD compatible install" >&5
10f2d63a 9375if test -z "$INSTALL"; then
a0b9e27f
MB
9376if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9377 echo $ac_n "(cached) $ac_c" 1>&6
9378else
9379 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9380 for ac_dir in $PATH; do
9381 # Account for people who put trailing slashes in PATH elements.
9382 case "$ac_dir/" in
9383 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9384 *)
9385 # OSF1 and SCO ODT 3.0 have their own names for install.
9386 # Don't use installbsd from OSF since it installs stuff as root
9387 # by default.
9388 for ac_prog in ginstall scoinst install; do
9389 if test -f $ac_dir/$ac_prog; then
9390 if test $ac_prog = install &&
9391 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9392 # AIX install. It has an incompatible calling convention.
9393 :
9394 else
9395 ac_cv_path_install="$ac_dir/$ac_prog -c"
9396 break 2
9397 fi
9398 fi
10f2d63a 9399 done
a0b9e27f
MB
9400 ;;
9401 esac
9402 done
9403 IFS="$ac_save_IFS"
10f2d63a
VZ
9404
9405fi
9406 if test "${ac_cv_path_install+set}" = set; then
a0b9e27f 9407 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9408 else
9409 # As a last resort, use the slow shell script. We don't cache a
9410 # path for INSTALL within a source directory, because that will
9411 # break other packages using the cache if that directory is
9412 # removed, or if the path is relative.
a0b9e27f 9413 INSTALL="$ac_install_sh"
10f2d63a
VZ
9414 fi
9415fi
a0b9e27f 9416echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9417
9418# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9419# It thinks the first close brace ends the variable substitution.
9420test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9421
a0b9e27f 9422test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
f09359cf 9423
10f2d63a
VZ
9424test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9425
8284b0c5 9426
1d1b75ac
VZ
9427case ${INSTALL} in
9428 /* ) # Absolute
9429 ;;
3bd8fb5f 9430 *)
1d1b75ac
VZ
9431 INSTALL=`pwd`/${INSTALL} ;;
9432esac
9433
8284b0c5 9434
6054113a
GD
9435case "${host}" in
9436
b5853384 9437 powerpc-*-darwin* )
eb99ae0b
GD
9438 INSTALL_PROGRAM="cp -fp"
9439 INSTALL_DATA="cp -fp"
6054113a
GD
9440 ;;
9441 *)
9442 ;;
d6853540 9443esac
698dcdb6 9444
10f2d63a
VZ
9445# Extract the first word of "strip", so it can be a program name with args.
9446set dummy strip; ac_word=$2
a0b9e27f 9447echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 9448echo "configure:9449: checking for $ac_word" >&5
a0b9e27f
MB
9449if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9450 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9451else
9452 if test -n "$STRIP"; then
9453 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9454else
a0b9e27f
MB
9455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9456 ac_dummy="$PATH"
9457 for ac_dir in $ac_dummy; do
9458 test -z "$ac_dir" && ac_dir=.
9459 if test -f $ac_dir/$ac_word; then
9460 ac_cv_prog_STRIP="strip"
9461 break
9462 fi
9463 done
9464 IFS="$ac_save_ifs"
10f2d63a
VZ
9465 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9466fi
9467fi
a0b9e27f 9468STRIP="$ac_cv_prog_STRIP"
10f2d63a 9469if test -n "$STRIP"; then
a0b9e27f 9470 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9471else
a0b9e27f 9472 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9473fi
9474
5c6fa7d2 9475
a0b9e27f 9476echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
3bce6687 9477echo "configure:9478: checking if make is GNU make" >&5
a0b9e27f
MB
9478if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9479 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 9480else
a0b9e27f 9481
414eab6d 9482 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9483 egrep -s GNU > /dev/null); then
414eab6d
VZ
9484 wx_cv_prog_makeisgnu="yes"
9485 else
9486 wx_cv_prog_makeisgnu="no"
9487 fi
9488
9489fi
a0b9e27f
MB
9490
9491echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
414eab6d
VZ
9492
9493if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9494 IF_GNU_MAKE=""
9495else
9496 IF_GNU_MAKE="#"
9497fi
9498
8284b0c5
MB
9499
9500
414eab6d 9501if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
a0b9e27f 9502echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
3bce6687 9503echo "configure:9504: checking if make supports VPATH" >&5
a0b9e27f
MB
9504if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9505 echo $ac_n "(cached) $ac_c" 1>&6
04e7a216 9506else
a0b9e27f 9507
10f2d63a
VZ
9508cat - << EOF > confMake
9509check : file
9510 cp \$? \$@
9511 cp \$? final_file
9512EOF
9513
9514if test ! -d sub ; then
9515 mkdir sub
9516fi
9517echo dummy > sub/file
f6bcfd97 9518${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9519RESULT=$?
9520rm -f sub/file check final_file confMake
9521rmdir sub
9522if test "$RESULT" = 0; then
04e7a216 9523 wx_cv_prog_makevpath="yes"
10f2d63a 9524else
04e7a216
VZ
9525 wx_cv_prog_makevpath="no"
9526fi
9527
9528fi
a0b9e27f
MB
9529
9530echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
04e7a216
VZ
9531
9532if test "x$wx_cv_prog_makevpath" != "xyes"; then
a0b9e27f 9533{ echo "configure: error:
5c6fa7d2
RR
9534You need a make-utility that is able to use the variable
9535VPATH correctly.
9536If your version of make does not support VPATH correctly,
9537please install GNU-make (possibly as gmake), and start
9538configure with the following command:
9539export MAKE=gmake; ./configure for sh-type shells
9540setenv MAKE gmake; ./configure for csh-type shells
9541Also please do remember to use gmake in this case every time
9542you are trying to compile.
a0b9e27f
MB
9543" 1>&2; exit 1; }
9544fi fi
10f2d63a
VZ
9545for ac_prog in 'bison -y' byacc
9546do
a0b9e27f 9547# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9548set dummy $ac_prog; ac_word=$2
a0b9e27f 9549echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 9550echo "configure:9551: checking for $ac_word" >&5
a0b9e27f
MB
9551if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9553else
9554 if test -n "$YACC"; then
9555 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9556else
a0b9e27f
MB
9557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9558 ac_dummy="$PATH"
9559 for ac_dir in $ac_dummy; do
9560 test -z "$ac_dir" && ac_dir=.
9561 if test -f $ac_dir/$ac_word; then
9562 ac_cv_prog_YACC="$ac_prog"
9563 break
9564 fi
9565 done
9566 IFS="$ac_save_ifs"
10f2d63a
VZ
9567fi
9568fi
a0b9e27f 9569YACC="$ac_cv_prog_YACC"
10f2d63a 9570if test -n "$YACC"; then
a0b9e27f 9571 echo "$ac_t""$YACC" 1>&6
10f2d63a 9572else
a0b9e27f 9573 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9574fi
9575
a0b9e27f 9576test -n "$YACC" && break
10f2d63a
VZ
9577done
9578test -n "$YACC" || YACC="yacc"
9579
8284b0c5 9580
a0b9e27f
MB
9581# Extract the first word of "flex", so it can be a program name with args.
9582set dummy flex; ac_word=$2
9583echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3bce6687 9584echo "configure:9585: checking for $ac_word" >&5
a0b9e27f
MB
9585if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9587else
9588 if test -n "$LEX"; then
9589 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9590else
a0b9e27f
MB
9591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9592 ac_dummy="$PATH"
9593 for ac_dir in $ac_dummy; do
9594 test -z "$ac_dir" && ac_dir=.
9595 if test -f $ac_dir/$ac_word; then
9596 ac_cv_prog_LEX="flex"
9597 break
9598 fi
9599 done
9600 IFS="$ac_save_ifs"
9601 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9602fi
9603fi
a0b9e27f 9604LEX="$ac_cv_prog_LEX"
10f2d63a 9605if test -n "$LEX"; then
a0b9e27f 9606 echo "$ac_t""$LEX" 1>&6
10f2d63a 9607else
a0b9e27f 9608 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9609fi
9610
9611if test -z "$LEXLIB"
9612then
a0b9e27f
MB
9613 case "$LEX" in
9614 flex*) ac_lib=fl ;;
9615 *) ac_lib=l ;;
9616 esac
9617 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3bce6687 9618echo "configure:9619: checking for yywrap in -l$ac_lib" >&5
a0b9e27f
MB
9619ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9620if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9621 echo $ac_n "(cached) $ac_c" 1>&6
9622else
9623 ac_save_LIBS="$LIBS"
9624LIBS="-l$ac_lib $LIBS"
9625cat > conftest.$ac_ext <<EOF
3bce6687 9626#line 9627 "configure"
247f5006 9627#include "confdefs.h"
247f5006 9628/* Override any gcc2 internal prototype to avoid an error. */
247f5006 9629/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
9630 builtin and then its argument prototype would still apply. */
9631char yywrap();
10f2d63a 9632
a0b9e27f
MB
9633int main() {
9634yywrap()
9635; return 0; }
9636EOF
3bce6687 9637if { (eval echo configure:9638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
9638 rm -rf conftest*
9639 eval "ac_cv_lib_$ac_lib_var=yes"
9640else
9641 echo "configure: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9643 rm -rf conftest*
9644 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9645fi
a0b9e27f
MB
9646rm -f conftest*
9647LIBS="$ac_save_LIBS"
8284b0c5 9648
10f2d63a 9649fi
a0b9e27f
MB
9650if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9651 echo "$ac_t""yes" 1>&6
9652 LEXLIB="-l$ac_lib"
8284b0c5 9653else
a0b9e27f 9654 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9655fi
9656
a0b9e27f 9657fi
10f2d63a
VZ
9658
9659
a0b9e27f 9660echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3bce6687 9661echo "configure:9662: checking whether ln -s works" >&5
a0b9e27f
MB
9662if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9663 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9664else
a0b9e27f
MB
9665 rm -f conftestdata
9666if ln -s X conftestdata 2>/dev/null
9667then
9668 rm -f conftestdata
9669 ac_cv_prog_LN_S="ln -s"
10f2d63a 9670else
a0b9e27f 9671 ac_cv_prog_LN_S=ln
10f2d63a 9672fi
a0b9e27f
MB
9673fi
9674LN_S="$ac_cv_prog_LN_S"
9675if test "$ac_cv_prog_LN_S" = "ln -s"; then
9676 echo "$ac_t""yes" 1>&6
10f2d63a 9677else
a0b9e27f 9678 echo "$ac_t""no" 1>&6
5c6fa7d2 9679fi
5c6fa7d2 9680
247f5006 9681
a0b9e27f
MB
9682
9683if test "$wxUSE_MAC" != 1; then
9684 for ac_hdr in strings.h
9685do
9686ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9687echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 9688echo "configure:9689: checking for $ac_hdr" >&5
a0b9e27f
MB
9689if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9690 echo $ac_n "(cached) $ac_c" 1>&6
9691else
9692 cat > conftest.$ac_ext <<EOF
3bce6687 9693#line 9694 "configure"
a0b9e27f
MB
9694#include "confdefs.h"
9695#include <$ac_hdr>
9696EOF
9697ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9698{ (eval echo configure:9699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9699ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9700if test -z "$ac_err"; then
9701 rm -rf conftest*
9702 eval "ac_cv_header_$ac_safe=yes"
9703else
9704 echo "$ac_err" >&5
9705 echo "configure: failed program was:" >&5
9706 cat conftest.$ac_ext >&5
9707 rm -rf conftest*
9708 eval "ac_cv_header_$ac_safe=no"
21d1c967 9709fi
247f5006 9710rm -f conftest*
19bc6aad 9711fi
a0b9e27f
MB
9712if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9713 echo "$ac_t""yes" 1>&6
9714 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9715 cat >> confdefs.h <<EOF
9716#define $ac_tr_hdr 1
9717EOF
9718
247f5006 9719else
a0b9e27f 9720 echo "$ac_t""no" 1>&6
18dbb1f6 9721fi
a0b9e27f 9722done
247f5006 9723
90dd450c 9724fi
90dd450c 9725
a0b9e27f
MB
9726for ac_hdr in stdlib.h
9727do
9728ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9729echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 9730echo "configure:9731: checking for $ac_hdr" >&5
a0b9e27f
MB
9731if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9732 echo $ac_n "(cached) $ac_c" 1>&6
9733else
9734 cat > conftest.$ac_ext <<EOF
3bce6687 9735#line 9736 "configure"
90dd450c 9736#include "confdefs.h"
a0b9e27f
MB
9737#include <$ac_hdr>
9738EOF
9739ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9740{ (eval echo configure:9741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9741ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9742if test -z "$ac_err"; then
9743 rm -rf conftest*
9744 eval "ac_cv_header_$ac_safe=yes"
9745else
9746 echo "$ac_err" >&5
9747 echo "configure: failed program was:" >&5
9748 cat conftest.$ac_ext >&5
9749 rm -rf conftest*
9750 eval "ac_cv_header_$ac_safe=no"
9751fi
9752rm -f conftest*
9753fi
9754if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9755 echo "$ac_t""yes" 1>&6
9756 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9757 cat >> confdefs.h <<EOF
9758#define $ac_tr_hdr 1
9759EOF
9760
8284b0c5 9761else
a0b9e27f 9762 echo "$ac_t""no" 1>&6
21d1c967 9763fi
a0b9e27f
MB
9764done
9765
9766for ac_hdr in malloc.h
9767do
9768ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9769echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 9770echo "configure:9771: checking for $ac_hdr" >&5
a0b9e27f
MB
9771if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9772 echo $ac_n "(cached) $ac_c" 1>&6
9773else
9774 cat > conftest.$ac_ext <<EOF
3bce6687 9775#line 9776 "configure"
a0b9e27f
MB
9776#include "confdefs.h"
9777#include <$ac_hdr>
9778EOF
9779ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9780{ (eval echo configure:9781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9781ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9782if test -z "$ac_err"; then
9783 rm -rf conftest*
9784 eval "ac_cv_header_$ac_safe=yes"
9785else
9786 echo "$ac_err" >&5
9787 echo "configure: failed program was:" >&5
9788 cat conftest.$ac_ext >&5
9789 rm -rf conftest*
9790 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9791fi
a0b9e27f 9792rm -f conftest*
90dd450c 9793fi
a0b9e27f
MB
9794if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9795 echo "$ac_t""yes" 1>&6
9796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9797 cat >> confdefs.h <<EOF
9798#define $ac_tr_hdr 1
9799EOF
9800
9801else
9802 echo "$ac_t""no" 1>&6
21d1c967 9803fi
a0b9e27f 9804done
247f5006 9805
a0b9e27f
MB
9806for ac_hdr in unistd.h
9807do
9808ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9809echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 9810echo "configure:9811: checking for $ac_hdr" >&5
a0b9e27f
MB
9811if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9812 echo $ac_n "(cached) $ac_c" 1>&6
9813else
9814 cat > conftest.$ac_ext <<EOF
3bce6687 9815#line 9816 "configure"
a0b9e27f
MB
9816#include "confdefs.h"
9817#include <$ac_hdr>
9818EOF
9819ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9820{ (eval echo configure:9821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9821ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9822if test -z "$ac_err"; then
9823 rm -rf conftest*
9824 eval "ac_cv_header_$ac_safe=yes"
9825else
9826 echo "$ac_err" >&5
9827 echo "configure: failed program was:" >&5
9828 cat conftest.$ac_ext >&5
9829 rm -rf conftest*
9830 eval "ac_cv_header_$ac_safe=no"
247f5006 9831fi
a0b9e27f
MB
9832rm -f conftest*
9833fi
9834if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9835 echo "$ac_t""yes" 1>&6
9836 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9837 cat >> confdefs.h <<EOF
9838#define $ac_tr_hdr 1
9839EOF
9840
9841else
9842 echo "$ac_t""no" 1>&6
9843fi
9844done
90dd450c 9845
a0b9e27f 9846for ac_hdr in wchar.h
21d1c967 9847do
a0b9e27f
MB
9848ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9849echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 9850echo "configure:9851: checking for $ac_hdr" >&5
a0b9e27f
MB
9851if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9852 echo $ac_n "(cached) $ac_c" 1>&6
9853else
9854 cat > conftest.$ac_ext <<EOF
3bce6687 9855#line 9856 "configure"
4f14bcd8 9856#include "confdefs.h"
a0b9e27f
MB
9857#include <$ac_hdr>
9858EOF
9859ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9860{ (eval echo configure:9861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9861ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9862if test -z "$ac_err"; then
9863 rm -rf conftest*
9864 eval "ac_cv_header_$ac_safe=yes"
9865else
9866 echo "$ac_err" >&5
9867 echo "configure: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9869 rm -rf conftest*
9870 eval "ac_cv_header_$ac_safe=no"
9871fi
9872rm -f conftest*
9873fi
9874if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9875 echo "$ac_t""yes" 1>&6
9876 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9877 cat >> confdefs.h <<EOF
9878#define $ac_tr_hdr 1
9879EOF
9880
9881else
9882 echo "$ac_t""no" 1>&6
21d1c967
GD
9883fi
9884done
4f14bcd8 9885
5c6fa7d2 9886
a0b9e27f
MB
9887if test "$ac_cv_header_wchar_h" != "yes"; then
9888 for ac_hdr in wcstr.h
21d1c967 9889do
a0b9e27f
MB
9890ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9891echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 9892echo "configure:9893: checking for $ac_hdr" >&5
a0b9e27f
MB
9893if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9894 echo $ac_n "(cached) $ac_c" 1>&6
9895else
9896 cat > conftest.$ac_ext <<EOF
3bce6687 9897#line 9898 "configure"
d4158b5d 9898#include "confdefs.h"
a0b9e27f
MB
9899#include <$ac_hdr>
9900EOF
9901ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9902{ (eval echo configure:9903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9903ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9904if test -z "$ac_err"; then
9905 rm -rf conftest*
9906 eval "ac_cv_header_$ac_safe=yes"
9907else
9908 echo "$ac_err" >&5
9909 echo "configure: failed program was:" >&5
d4158b5d 9910 cat conftest.$ac_ext >&5
a0b9e27f
MB
9911 rm -rf conftest*
9912 eval "ac_cv_header_$ac_safe=no"
d4158b5d 9913fi
a0b9e27f 9914rm -f conftest*
21d1c967 9915fi
a0b9e27f
MB
9916if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9917 echo "$ac_t""yes" 1>&6
9918 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9919 cat >> confdefs.h <<EOF
9920#define $ac_tr_hdr 1
9921EOF
9922
9923else
9924 echo "$ac_t""no" 1>&6
d4158b5d 9925fi
21d1c967 9926done
f6bcfd97 9927
90dd450c 9928fi
90dd450c 9929
a0b9e27f 9930for ac_hdr in fnmatch.h
21d1c967 9931do
a0b9e27f
MB
9932ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9933echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 9934echo "configure:9935: checking for $ac_hdr" >&5
a0b9e27f
MB
9935if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9936 echo $ac_n "(cached) $ac_c" 1>&6
9937else
9938 cat > conftest.$ac_ext <<EOF
3bce6687 9939#line 9940 "configure"
90dd450c 9940#include "confdefs.h"
a0b9e27f
MB
9941#include <$ac_hdr>
9942EOF
9943ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 9944{ (eval echo configure:9945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
9945ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9946if test -z "$ac_err"; then
9947 rm -rf conftest*
9948 eval "ac_cv_header_$ac_safe=yes"
9949else
9950 echo "$ac_err" >&5
9951 echo "configure: failed program was:" >&5
3a922bb4 9952 cat conftest.$ac_ext >&5
a0b9e27f
MB
9953 rm -rf conftest*
9954 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9955fi
a0b9e27f 9956rm -f conftest*
4f14bcd8 9957fi
a0b9e27f
MB
9958if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9959 echo "$ac_t""yes" 1>&6
9960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9961 cat >> confdefs.h <<EOF
9962#define $ac_tr_hdr 1
9963EOF
9964
9965else
9966 echo "$ac_t""no" 1>&6
21d1c967
GD
9967fi
9968done
90dd450c 9969
5c6fa7d2 9970
a0b9e27f
MB
9971if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9972 for ac_func in fnmatch
21d1c967 9973do
a0b9e27f 9974echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3bce6687 9975echo "configure:9976: checking for $ac_func" >&5
a0b9e27f
MB
9976if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9977 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 9978else
a0b9e27f 9979 cat > conftest.$ac_ext <<EOF
3bce6687 9980#line 9981 "configure"
a0b9e27f
MB
9981#include "confdefs.h"
9982/* System header to define __stub macros and hopefully few prototypes,
9983 which can conflict with char $ac_func(); below. */
9984#include <assert.h>
9985/* Override any gcc2 internal prototype to avoid an error. */
9986/* We use char because int might match the return type of a gcc2
9987 builtin and then its argument prototype would still apply. */
9988char $ac_func();
9989
9990int main() {
9991
9992/* The GNU C library defines this for functions which it implements
9993 to always fail with ENOSYS. Some functions are actually named
9994 something starting with __ and the normal name is an alias. */
9995#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9996choke me
9997#else
9998$ac_func();
9999#endif
10000
10001; return 0; }
10002EOF
3bce6687 10003if { (eval echo configure:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
10004 rm -rf conftest*
10005 eval "ac_cv_func_$ac_func=yes"
8284b0c5 10006else
a0b9e27f 10007 echo "configure: failed program was:" >&5
8284b0c5 10008 cat conftest.$ac_ext >&5
a0b9e27f
MB
10009 rm -rf conftest*
10010 eval "ac_cv_func_$ac_func=no"
8284b0c5 10011fi
a0b9e27f 10012rm -f conftest*
8284b0c5 10013fi
32832908 10014
a0b9e27f
MB
10015if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10016 echo "$ac_t""yes" 1>&6
10017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10018 cat >> confdefs.h <<EOF
10019#define $ac_tr_func 1
10020EOF
10021
10022else
10023 echo "$ac_t""no" 1>&6
21d1c967
GD
10024fi
10025done
90dd450c 10026
a0b9e27f 10027fi
90dd450c 10028
a0b9e27f 10029for ac_hdr in langinfo.h
21d1c967 10030do
a0b9e27f
MB
10031ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10032echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 10033echo "configure:10034: checking for $ac_hdr" >&5
a0b9e27f
MB
10034if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10035 echo $ac_n "(cached) $ac_c" 1>&6
10036else
10037 cat > conftest.$ac_ext <<EOF
3bce6687 10038#line 10039 "configure"
247f5006 10039#include "confdefs.h"
a0b9e27f
MB
10040#include <$ac_hdr>
10041EOF
10042ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 10043{ (eval echo configure:10044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10044ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10045if test -z "$ac_err"; then
10046 rm -rf conftest*
10047 eval "ac_cv_header_$ac_safe=yes"
10048else
10049 echo "$ac_err" >&5
10050 echo "configure: failed program was:" >&5
90dd450c 10051 cat conftest.$ac_ext >&5
a0b9e27f
MB
10052 rm -rf conftest*
10053 eval "ac_cv_header_$ac_safe=no"
90dd450c 10054fi
a0b9e27f 10055rm -f conftest*
4f14bcd8 10056fi
a0b9e27f
MB
10057if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10058 echo "$ac_t""yes" 1>&6
10059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10060 cat >> confdefs.h <<EOF
10061#define $ac_tr_hdr 1
10062EOF
10063
10064else
10065 echo "$ac_t""no" 1>&6
21d1c967
GD
10066fi
10067done
3a922bb4 10068
8284b0c5 10069
a0b9e27f
MB
10070if test "$wxUSE_GUI" = "yes"; then
10071 if test "$wxUSE_UNIX" = "yes"; then
10072 for ac_hdr in X11/XKBlib.h
21d1c967 10073do
a0b9e27f
MB
10074ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10075echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3bce6687 10076echo "configure:10077: checking for $ac_hdr" >&5
a0b9e27f
MB
10077if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10078 echo $ac_n "(cached) $ac_c" 1>&6
10079else
10080 cat > conftest.$ac_ext <<EOF
3bce6687 10081#line 10082 "configure"
90dd450c 10082#include "confdefs.h"
a0b9e27f
MB
10083#include <$ac_hdr>
10084EOF
10085ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3bce6687 10086{ (eval echo configure:10087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10087ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10088if test -z "$ac_err"; then
10089 rm -rf conftest*
10090 eval "ac_cv_header_$ac_safe=yes"
10091else
10092 echo "$ac_err" >&5
10093 echo "configure: failed program was:" >&5
90dd450c 10094 cat conftest.$ac_ext >&5
a0b9e27f
MB
10095 rm -rf conftest*
10096 eval "ac_cv_header_$ac_safe=no"
3a922bb4 10097fi
a0b9e27f 10098rm -f conftest*
90dd450c 10099fi
a0b9e27f
MB
10100if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10101 echo "$ac_t""yes" 1>&6
10102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10103 cat >> confdefs.h <<EOF
10104#define $ac_tr_hdr 1
10105EOF
10106
10107else
10108 echo "$ac_t""no" 1>&6
247f5006 10109fi
247f5006
VZ
10110done
10111
a0b9e27f
MB
10112 fi
10113fi
247f5006 10114
247f5006 10115
a0b9e27f 10116echo $ac_n "checking for working const""... $ac_c" 1>&6
3bce6687 10117echo "configure:10118: checking for working const" >&5
a0b9e27f
MB
10118if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10119 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10120else
a0b9e27f 10121 cat > conftest.$ac_ext <<EOF
3bce6687 10122#line 10123 "configure"
a0b9e27f
MB
10123#include "confdefs.h"
10124
10125int main() {
10126
10127/* Ultrix mips cc rejects this. */
10128typedef int charset[2]; const charset x;
10129/* SunOS 4.1.1 cc rejects this. */
10130char const *const *ccp;
10131char **p;
10132/* NEC SVR4.0.2 mips cc rejects this. */
10133struct point {int x, y;};
10134static struct point const zero = {0,0};
10135/* AIX XL C 1.02.0.0 rejects this.
10136 It does not let you subtract one const X* pointer from another in an arm
10137 of an if-expression whose if-part is not a constant expression */
10138const char *g = "string";
10139ccp = &g + (g ? g-g : 0);
10140/* HPUX 7.0 cc rejects these. */
10141++ccp;
10142p = (char**) ccp;
10143ccp = (char const *const *) p;
10144{ /* SCO 3.2v4 cc rejects this. */
10145 char *t;
10146 char const *s = 0 ? (char *) 0 : (char const *) 0;
10147
10148 *t++ = 0;
10149}
10150{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10151 int x[] = {25, 17};
10152 const int *foo = &x[0];
10153 ++foo;
10154}
10155{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10156 typedef const int *iptr;
10157 iptr p = 0;
10158 ++p;
10159}
10160{ /* AIX XL C 1.02.0.0 rejects this saying
10161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10162 struct s { int j; const int *ap[3]; };
10163 struct s *b; b->j = 5;
10164}
10165{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10166 const int foo = 10;
10167}
10168
10169; return 0; }
10170EOF
3bce6687 10171if { (eval echo configure:10172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10172 rm -rf conftest*
10173 ac_cv_c_const=yes
247f5006 10174else
a0b9e27f 10175 echo "configure: failed program was:" >&5
247f5006 10176 cat conftest.$ac_ext >&5
a0b9e27f
MB
10177 rm -rf conftest*
10178 ac_cv_c_const=no
247f5006 10179fi
a0b9e27f 10180rm -f conftest*
21d1c967 10181fi
247f5006 10182
a0b9e27f
MB
10183echo "$ac_t""$ac_cv_c_const" 1>&6
10184if test $ac_cv_c_const = no; then
10185 cat >> confdefs.h <<\EOF
10186#define const
10187EOF
10f2d63a 10188
90dd450c 10189fi
81809c07 10190
a0b9e27f 10191echo $ac_n "checking for inline""... $ac_c" 1>&6
3bce6687 10192echo "configure:10193: checking for inline" >&5
a0b9e27f
MB
10193if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10194 echo $ac_n "(cached) $ac_c" 1>&6
8168de4c 10195else
a0b9e27f
MB
10196 ac_cv_c_inline=no
10197for ac_kw in inline __inline__ __inline; do
10198 cat > conftest.$ac_ext <<EOF
3bce6687 10199#line 10200 "configure"
a0b9e27f
MB
10200#include "confdefs.h"
10201
10202int main() {
10203} $ac_kw foo() {
10204; return 0; }
10205EOF
3bce6687 10206if { (eval echo configure:10207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10207 rm -rf conftest*
10208 ac_cv_c_inline=$ac_kw; break
247f5006 10209else
a0b9e27f 10210 echo "configure: failed program was:" >&5
247f5006 10211 cat conftest.$ac_ext >&5
247f5006 10212fi
a0b9e27f
MB
10213rm -f conftest*
10214done
247f5006
VZ
10215
10216fi
10217
a0b9e27f
MB
10218echo "$ac_t""$ac_cv_c_inline" 1>&6
10219case "$ac_cv_c_inline" in
10220 inline | yes) ;;
10221 no) cat >> confdefs.h <<\EOF
10222#define inline
10223EOF
10224 ;;
10225 *) cat >> confdefs.h <<EOF
10226#define inline $ac_cv_c_inline
10227EOF
10228 ;;
10229esac
247f5006 10230
247f5006 10231
a0b9e27f 10232echo $ac_n "checking size of char""... $ac_c" 1>&6
3bce6687 10233echo "configure:10234: checking size of char" >&5
a0b9e27f
MB
10234if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10235 echo $ac_n "(cached) $ac_c" 1>&6
10236else
10237 if test "$cross_compiling" = yes; then
10238 ac_cv_sizeof_char=1
10239else
10240 cat > conftest.$ac_ext <<EOF
3bce6687 10241#line 10242 "configure"
4f14bcd8 10242#include "confdefs.h"
a0b9e27f 10243#include <stdio.h>
a85030bd 10244#include <sys/types.h>
a0b9e27f 10245main()
247f5006 10246{
a0b9e27f
MB
10247 FILE *f=fopen("conftestval", "w");
10248 if (!f) exit(1);
10249 fprintf(f, "%d\n", sizeof(char));
10250 exit(0);
52127426 10251}
a0b9e27f 10252EOF
a85030bd 10253if { (eval echo configure:10254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10254then
10255 ac_cv_sizeof_char=`cat conftestval`
247f5006 10256else
a0b9e27f 10257 echo "configure: failed program was:" >&5
247f5006 10258 cat conftest.$ac_ext >&5
a0b9e27f
MB
10259 rm -fr conftest*
10260 ac_cv_sizeof_char=0
247f5006 10261fi
a0b9e27f 10262rm -fr conftest*
247f5006 10263fi
247f5006
VZ
10264
10265fi
a0b9e27f
MB
10266echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10267cat >> confdefs.h <<EOF
10268#define SIZEOF_CHAR $ac_cv_sizeof_char
10269EOF
247f5006 10270
247f5006 10271
a0b9e27f 10272echo $ac_n "checking size of short""... $ac_c" 1>&6
a85030bd 10273echo "configure:10274: checking size of short" >&5
a0b9e27f
MB
10274if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10275 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10276else
a0b9e27f
MB
10277 if test "$cross_compiling" = yes; then
10278 ac_cv_sizeof_short=2
247f5006 10279else
a0b9e27f 10280 cat > conftest.$ac_ext <<EOF
a85030bd 10281#line 10282 "configure"
a0b9e27f
MB
10282#include "confdefs.h"
10283#include <stdio.h>
a85030bd 10284#include <sys/types.h>
a0b9e27f
MB
10285main()
10286{
10287 FILE *f=fopen("conftestval", "w");
10288 if (!f) exit(1);
10289 fprintf(f, "%d\n", sizeof(short));
10290 exit(0);
10291}
10292EOF
a85030bd 10293if { (eval echo configure:10294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10294then
10295 ac_cv_sizeof_short=`cat conftestval`
247f5006 10296else
a0b9e27f
MB
10297 echo "configure: failed program was:" >&5
10298 cat conftest.$ac_ext >&5
10299 rm -fr conftest*
10300 ac_cv_sizeof_short=0
247f5006 10301fi
a0b9e27f 10302rm -fr conftest*
247f5006
VZ
10303fi
10304
247f5006 10305fi
a0b9e27f
MB
10306echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10307cat >> confdefs.h <<EOF
10308#define SIZEOF_SHORT $ac_cv_sizeof_short
10309EOF
247f5006
VZ
10310
10311
a0b9e27f 10312echo $ac_n "checking size of void *""... $ac_c" 1>&6
a85030bd 10313echo "configure:10314: checking size of void *" >&5
a0b9e27f
MB
10314if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10315 echo $ac_n "(cached) $ac_c" 1>&6
10316else
10317 if test "$cross_compiling" = yes; then
10318 ac_cv_sizeof_void_p=4
247f5006 10319else
a0b9e27f 10320 cat > conftest.$ac_ext <<EOF
a85030bd 10321#line 10322 "configure"
247f5006 10322#include "confdefs.h"
247f5006 10323#include <stdio.h>
a85030bd 10324#include <sys/types.h>
a0b9e27f 10325main()
247f5006 10326{
a0b9e27f
MB
10327 FILE *f=fopen("conftestval", "w");
10328 if (!f) exit(1);
10329 fprintf(f, "%d\n", sizeof(void *));
10330 exit(0);
5c6fa7d2 10331}
a0b9e27f 10332EOF
a85030bd 10333if { (eval echo configure:10334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10334then
10335 ac_cv_sizeof_void_p=`cat conftestval`
10336else
10337 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10339 rm -fr conftest*
10340 ac_cv_sizeof_void_p=0
10341fi
10342rm -fr conftest*
10343fi
8284b0c5 10344
247f5006 10345fi
a0b9e27f
MB
10346echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10347cat >> confdefs.h <<EOF
10348#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10349EOF
247f5006 10350
247f5006 10351
a0b9e27f 10352echo $ac_n "checking size of int""... $ac_c" 1>&6
a85030bd 10353echo "configure:10354: checking size of int" >&5
a0b9e27f
MB
10354if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10356else
a0b9e27f
MB
10357 if test "$cross_compiling" = yes; then
10358 ac_cv_sizeof_int=4
10359else
10360 cat > conftest.$ac_ext <<EOF
a85030bd 10361#line 10362 "configure"
247f5006 10362#include "confdefs.h"
a0b9e27f 10363#include <stdio.h>
a85030bd 10364#include <sys/types.h>
a0b9e27f 10365main()
247f5006 10366{
a0b9e27f
MB
10367 FILE *f=fopen("conftestval", "w");
10368 if (!f) exit(1);
10369 fprintf(f, "%d\n", sizeof(int));
10370 exit(0);
247f5006 10371}
a0b9e27f 10372EOF
a85030bd 10373if { (eval echo configure:10374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10374then
10375 ac_cv_sizeof_int=`cat conftestval`
6f72b082 10376else
a0b9e27f
MB
10377 echo "configure: failed program was:" >&5
10378 cat conftest.$ac_ext >&5
10379 rm -fr conftest*
10380 ac_cv_sizeof_int=0
21d1c967 10381fi
a0b9e27f 10382rm -fr conftest*
698dcdb6 10383fi
4f14bcd8 10384
21d1c967 10385fi
a0b9e27f
MB
10386echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10387cat >> confdefs.h <<EOF
10388#define SIZEOF_INT $ac_cv_sizeof_int
10389EOF
4f14bcd8 10390
5c6fa7d2 10391
a0b9e27f 10392echo $ac_n "checking size of long""... $ac_c" 1>&6
a85030bd 10393echo "configure:10394: checking size of long" >&5
a0b9e27f
MB
10394if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10395 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10396else
247f5006 10397 if test "$cross_compiling" = yes; then
a0b9e27f 10398 ac_cv_sizeof_long=4
247f5006 10399else
a0b9e27f 10400 cat > conftest.$ac_ext <<EOF
a85030bd 10401#line 10402 "configure"
247f5006 10402#include "confdefs.h"
a0b9e27f 10403#include <stdio.h>
a85030bd 10404#include <sys/types.h>
a0b9e27f 10405main()
247f5006 10406{
a0b9e27f
MB
10407 FILE *f=fopen("conftestval", "w");
10408 if (!f) exit(1);
10409 fprintf(f, "%d\n", sizeof(long));
10410 exit(0);
247f5006 10411}
a0b9e27f 10412EOF
a85030bd 10413if { (eval echo configure:10414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10414then
10415 ac_cv_sizeof_long=`cat conftestval`
247f5006 10416else
a0b9e27f
MB
10417 echo "configure: failed program was:" >&5
10418 cat conftest.$ac_ext >&5
10419 rm -fr conftest*
10420 ac_cv_sizeof_long=0
247f5006 10421fi
a0b9e27f 10422rm -fr conftest*
247f5006 10423fi
247f5006 10424
5c6fa7d2 10425fi
a0b9e27f
MB
10426echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10427cat >> confdefs.h <<EOF
10428#define SIZEOF_LONG $ac_cv_sizeof_long
10429EOF
247f5006 10430
a0b9e27f
MB
10431
10432
10433case "${host}" in
10434 arm-*-linux* )
10435 echo $ac_n "checking size of long long""... $ac_c" 1>&6
a85030bd 10436echo "configure:10437: checking size of long long" >&5
a0b9e27f
MB
10437if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10438 echo $ac_n "(cached) $ac_c" 1>&6
10439else
10440 if test "$cross_compiling" = yes; then
10441 ac_cv_sizeof_long_long=8
10442else
10443 cat > conftest.$ac_ext <<EOF
a85030bd 10444#line 10445 "configure"
247f5006 10445#include "confdefs.h"
a0b9e27f 10446#include <stdio.h>
a85030bd 10447#include <sys/types.h>
a0b9e27f 10448main()
247f5006 10449{
a0b9e27f
MB
10450 FILE *f=fopen("conftestval", "w");
10451 if (!f) exit(1);
10452 fprintf(f, "%d\n", sizeof(long long));
10453 exit(0);
247f5006 10454}
a0b9e27f 10455EOF
a85030bd 10456if { (eval echo configure:10457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10457then
10458 ac_cv_sizeof_long_long=`cat conftestval`
7b4a847f 10459else
a0b9e27f
MB
10460 echo "configure: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10462 rm -fr conftest*
10463 ac_cv_sizeof_long_long=0
5c6fa7d2 10464fi
a0b9e27f 10465rm -fr conftest*
5c6fa7d2 10466fi
8284b0c5 10467
a0b9e27f
MB
10468fi
10469echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10470cat >> confdefs.h <<EOF
10471#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10472EOF
10473
10474
10475 ;;
10476 * )
10477 echo $ac_n "checking size of long long""... $ac_c" 1>&6
a85030bd 10478echo "configure:10479: checking size of long long" >&5
a0b9e27f
MB
10479if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10480 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5
MB
10481else
10482 if test "$cross_compiling" = yes; then
a0b9e27f 10483 ac_cv_sizeof_long_long=0
8284b0c5 10484else
a0b9e27f 10485 cat > conftest.$ac_ext <<EOF
a85030bd 10486#line 10487 "configure"
8284b0c5
MB
10487#include "confdefs.h"
10488#include <stdio.h>
a85030bd 10489#include <sys/types.h>
a0b9e27f 10490main()
8284b0c5 10491{
a0b9e27f
MB
10492 FILE *f=fopen("conftestval", "w");
10493 if (!f) exit(1);
10494 fprintf(f, "%d\n", sizeof(long long));
10495 exit(0);
8284b0c5 10496}
a0b9e27f 10497EOF
a85030bd 10498if { (eval echo configure:10499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
10499then
10500 ac_cv_sizeof_long_long=`cat conftestval`
5c6fa7d2 10501else
a0b9e27f
MB
10502 echo "configure: failed program was:" >&5
10503 cat conftest.$ac_ext >&5
10504 rm -fr conftest*
5c6fa7d2 10505 ac_cv_sizeof_long_long=0
52127426 10506fi
a0b9e27f
MB
10507rm -fr conftest*
10508fi
10509
7b4a847f 10510fi
a0b9e27f
MB
10511echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10512cat >> confdefs.h <<EOF
21d1c967 10513#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
a0b9e27f 10514EOF
9e691f46 10515
8284b0c5 10516
21d1c967
GD
10517esac
10518
a0b9e27f 10519echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
a85030bd 10520echo "configure:10521: checking size of wchar_t" >&5
a0b9e27f
MB
10521if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10522 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 10523else
a0b9e27f 10524
21d1c967
GD
10525 if test "$cross_compiling" = yes; then
10526 wx_cv_sizeof_wchar_t=4
a0b9e27f 10527
6f72b082 10528else
a0b9e27f 10529 cat > conftest.$ac_ext <<EOF
a85030bd 10530#line 10531 "configure"
6f72b082 10531#include "confdefs.h"
21d1c967
GD
10532
10533 #ifdef HAVE_WCHAR_H
10534 # ifdef __CYGWIN__
10535 # include <stddef.h>
10536 # endif
10537 # include <wchar.h>
10538 #endif
10539 #ifdef HAVE_STDLIB_H
10540 # include <stdlib.h>
10541 #endif
10542 #include <stdio.h>
10543 int main()
10544 {
10545 FILE *f=fopen("conftestval", "w");
10546 if (!f) exit(1);
10547 fprintf(f, "%i", sizeof(wchar_t));
10548 exit(0);
10549 }
a0b9e27f
MB
10550
10551EOF
a85030bd 10552if { (eval echo configure:10553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10553then
21d1c967 10554 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10555else
a0b9e27f
MB
10556 echo "configure: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10558 rm -fr conftest*
10559 wx_cv_sizeof_wchar_t=0
6f72b082 10560fi
a0b9e27f 10561rm -fr conftest*
6f72b082 10562fi
6f72b082 10563
a0b9e27f 10564
3f345b47
VZ
10565fi
10566
a0b9e27f
MB
10567echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10568
10569cat >> confdefs.h <<EOF
21d1c967 10570#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
a0b9e27f 10571EOF
90dd450c 10572
8284b0c5 10573
21d1c967
GD
10574# Check whether --enable-largefile or --disable-largefile was given.
10575if test "${enable_largefile+set}" = set; then
10576 enableval="$enable_largefile"
a0b9e27f
MB
10577 :
10578fi
3f345b47 10579
21d1c967
GD
10580if test "$enable_largefile" != no; then
10581 wx_largefile=no
a0b9e27f
MB
10582
10583 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
a85030bd 10584echo "configure:10585: checking for _FILE_OFFSET_BITS value needed for large files" >&5
a0b9e27f
MB
10585if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10586 echo $ac_n "(cached) $ac_c" 1>&6
10587else
10588
10589 cat > conftest.$ac_ext <<EOF
a85030bd 10590#line 10591 "configure"
90dd450c 10591#include "confdefs.h"
21d1c967
GD
10592#define _FILE_OFFSET_BITS 64
10593 #include <sys/types.h>
a0b9e27f 10594int main() {
21d1c967
GD
10595typedef struct {
10596 unsigned int field: sizeof(off_t) == 8;
10597} wxlf;
10598
a0b9e27f
MB
10599; return 0; }
10600EOF
a85030bd 10601if { (eval echo configure:10602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10602 rm -rf conftest*
21d1c967 10603 ac_cv_sys_file_offset_bits=64
f6bcfd97 10604else
a0b9e27f
MB
10605 echo "configure: failed program was:" >&5
10606 cat conftest.$ac_ext >&5
10607 rm -rf conftest*
10608 ac_cv_sys_file_offset_bits=no
5c6fa7d2 10609fi
a0b9e27f
MB
10610rm -f conftest*
10611
10612
247f5006 10613fi
a0b9e27f
MB
10614
10615echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
21d1c967
GD
10616
10617 if test "$ac_cv_sys_file_offset_bits" != no; then
10618 wx_largefile=yes
a0b9e27f 10619 cat >> confdefs.h <<EOF
21d1c967 10620#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
a0b9e27f 10621EOF
21d1c967
GD
10622
10623 fi
10624
10625 if test "x$wx_largefile" != "xyes"; then
a0b9e27f
MB
10626
10627 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
a85030bd 10628echo "configure:10629: checking for _LARGE_FILES value needed for large files" >&5
a0b9e27f
MB
10629if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10630 echo $ac_n "(cached) $ac_c" 1>&6
10631else
10632
10633 cat > conftest.$ac_ext <<EOF
a85030bd 10634#line 10635 "configure"
f6bcfd97 10635#include "confdefs.h"
21d1c967
GD
10636#define _LARGE_FILES 1
10637 #include <sys/types.h>
a0b9e27f 10638int main() {
21d1c967
GD
10639typedef struct {
10640 unsigned int field: sizeof(off_t) == 8;
10641} wxlf;
10642
a0b9e27f
MB
10643; return 0; }
10644EOF
a85030bd 10645if { (eval echo configure:10646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10646 rm -rf conftest*
21d1c967 10647 ac_cv_sys_large_files=1
f6bcfd97 10648else
a0b9e27f
MB
10649 echo "configure: failed program was:" >&5
10650 cat conftest.$ac_ext >&5
10651 rm -rf conftest*
10652 ac_cv_sys_large_files=no
5c6fa7d2 10653fi
a0b9e27f
MB
10654rm -f conftest*
10655
10656
247f5006 10657fi
a0b9e27f
MB
10658
10659echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10660
21d1c967
GD
10661 if test "$ac_cv_sys_large_files" != no; then
10662 wx_largefile=yes
a0b9e27f 10663 cat >> confdefs.h <<EOF
21d1c967 10664#define _LARGE_FILES $ac_cv_sys_large_files
a0b9e27f 10665EOF
90dd450c 10666
90dd450c
VZ
10667 fi
10668
90dd450c 10669 fi
90dd450c 10670
a0b9e27f 10671 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
a85030bd 10672echo "configure:10673: checking if large file support is available" >&5
21d1c967 10673 if test "x$wx_largefile" = "xyes"; then
a0b9e27f 10674 cat >> confdefs.h <<\EOF
21d1c967 10675#define HAVE_LARGEFILE_SUPPORT 1
a0b9e27f 10676EOF
90dd450c 10677
90dd450c 10678 fi
a0b9e27f 10679 echo "$ac_t""$wx_largefile" 1>&6
21d1c967 10680fi
90dd450c 10681
8284b0c5 10682
f02444d0
VZ
10683if test "x$wx_largefile" = "xyes"; then
10684 if test "x$ac_cv_sys_file_offset_bits" = "xyes"; then
10685 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
10686 else
10687 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
10688 fi
10689fi
10690
a0b9e27f 10691echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
a85030bd 10692echo "configure:10693: checking whether byte ordering is bigendian" >&5
a0b9e27f
MB
10693if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10694 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 10695else
21d1c967
GD
10696 ac_cv_c_bigendian=unknown
10697# See if sys/param.h defines the BYTE_ORDER macro.
a0b9e27f 10698cat > conftest.$ac_ext <<EOF
a85030bd 10699#line 10700 "configure"
90dd450c 10700#include "confdefs.h"
21d1c967
GD
10701#include <sys/types.h>
10702#include <sys/param.h>
a0b9e27f 10703int main() {
21d1c967
GD
10704
10705#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10706 bogus endian macros
10707#endif
a0b9e27f
MB
10708; return 0; }
10709EOF
a85030bd 10710if { (eval echo configure:10711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10711 rm -rf conftest*
21d1c967 10712 # It does; now see whether it defined to BIG_ENDIAN or not.
a0b9e27f 10713cat > conftest.$ac_ext <<EOF
a85030bd 10714#line 10715 "configure"
90dd450c 10715#include "confdefs.h"
21d1c967
GD
10716#include <sys/types.h>
10717#include <sys/param.h>
a0b9e27f 10718int main() {
21d1c967
GD
10719
10720#if BYTE_ORDER != BIG_ENDIAN
10721 not big endian
10722#endif
a0b9e27f
MB
10723; return 0; }
10724EOF
a85030bd 10725if { (eval echo configure:10726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 10726 rm -rf conftest*
21d1c967 10727 ac_cv_c_bigendian=yes
3f345b47 10728else
a0b9e27f
MB
10729 echo "configure: failed program was:" >&5
10730 cat conftest.$ac_ext >&5
10731 rm -rf conftest*
10732 ac_cv_c_bigendian=no
3f345b47 10733fi
a0b9e27f 10734rm -f conftest*
3f345b47 10735else
a0b9e27f
MB
10736 echo "configure: failed program was:" >&5
10737 cat conftest.$ac_ext >&5
3f345b47 10738fi
a0b9e27f 10739rm -f conftest*
21d1c967
GD
10740if test $ac_cv_c_bigendian = unknown; then
10741if test "$cross_compiling" = yes; then
10742 ac_cv_c_bigendian=unknown
10f2d63a 10743else
a0b9e27f 10744 cat > conftest.$ac_ext <<EOF
a85030bd 10745#line 10746 "configure"
90dd450c 10746#include "confdefs.h"
21d1c967
GD
10747main () {
10748 /* Are we little or big endian? From Harbison&Steele. */
10749 union
10750 {
10751 long l;
10752 char c[sizeof (long)];
10753 } u;
10754 u.l = 1;
10755 exit (u.c[sizeof (long) - 1] == 1);
10756}
a0b9e27f 10757EOF
a85030bd 10758if { (eval echo configure:10759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 10759then
21d1c967 10760 ac_cv_c_bigendian=no
3f345b47 10761else
a0b9e27f
MB
10762 echo "configure: failed program was:" >&5
10763 cat conftest.$ac_ext >&5
10764 rm -fr conftest*
10765 ac_cv_c_bigendian=yes
247f5006 10766fi
a0b9e27f 10767rm -fr conftest*
247f5006 10768fi
a0b9e27f 10769
3f345b47 10770fi
8168de4c 10771fi
a0b9e27f
MB
10772
10773echo "$ac_t""$ac_cv_c_bigendian" 1>&6
247f5006 10774if test $ac_cv_c_bigendian = unknown; then
a0b9e27f 10775 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
247f5006
VZ
10776fi
10777if test $ac_cv_c_bigendian = yes; then
a0b9e27f 10778 cat >> confdefs.h <<\EOF
247f5006 10779#define WORDS_BIGENDIAN 1
a0b9e27f 10780EOF
247f5006
VZ
10781
10782fi
10783
10784
a0b9e27f 10785echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
a85030bd 10786echo "configure:10787: checking how to run the C++ preprocessor" >&5
247f5006 10787if test -z "$CXXCPP"; then
a0b9e27f
MB
10788if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10789 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 10790else
a0b9e27f
MB
10791 ac_ext=C
10792# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10793ac_cpp='$CXXCPP $CPPFLAGS'
10794ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10795ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10796cross_compiling=$ac_cv_prog_cxx_cross
10797 CXXCPP="${CXX-g++} -E"
10798 cat > conftest.$ac_ext <<EOF
a85030bd 10799#line 10800 "configure"
5c6fa7d2 10800#include "confdefs.h"
a0b9e27f
MB
10801#include <stdlib.h>
10802EOF
10803ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 10804{ (eval echo configure:10805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10805ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10806if test -z "$ac_err"; then
21d1c967 10807 :
698dcdb6 10808else
a0b9e27f
MB
10809 echo "$ac_err" >&5
10810 echo "configure: failed program was:" >&5
698dcdb6 10811 cat conftest.$ac_ext >&5
a0b9e27f
MB
10812 rm -rf conftest*
10813 CXXCPP=/lib/cpp
247f5006 10814fi
a0b9e27f
MB
10815rm -f conftest*
10816 ac_cv_prog_CXXCPP="$CXXCPP"
10817ac_ext=C
10818# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10819ac_cpp='$CXXCPP $CPPFLAGS'
10820ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10821ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10822cross_compiling=$ac_cv_prog_cxx_cross
328a083c 10823fi
90dd450c 10824fi
a0b9e27f
MB
10825CXXCPP="$ac_cv_prog_CXXCPP"
10826echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 10827
1725144d 10828
21d1c967 10829 if test "$cross_compiling" = "yes"; then
a0b9e27f 10830 cat >> confdefs.h <<\EOF
21d1c967 10831#define wxUSE_IOSTREAMH 1
a0b9e27f 10832EOF
ab9b9eab 10833
21d1c967 10834 else
a0b9e27f
MB
10835
10836 ac_ext=C
10837# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 10838ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
10839ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10840ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10841cross_compiling=$ac_cv_prog_cxx_cross
52127426 10842
247f5006 10843
a0b9e27f 10844 for ac_hdr in iostream
21d1c967 10845do
a0b9e27f
MB
10846ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10847echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a85030bd 10848echo "configure:10849: checking for $ac_hdr" >&5
a0b9e27f
MB
10849if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10850 echo $ac_n "(cached) $ac_c" 1>&6
10851else
10852 cat > conftest.$ac_ext <<EOF
a85030bd 10853#line 10854 "configure"
ab9b9eab 10854#include "confdefs.h"
a0b9e27f
MB
10855#include <$ac_hdr>
10856EOF
10857ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 10858{ (eval echo configure:10859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
10859ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10860if test -z "$ac_err"; then
10861 rm -rf conftest*
10862 eval "ac_cv_header_$ac_safe=yes"
10863else
10864 echo "$ac_err" >&5
10865 echo "configure: failed program was:" >&5
ab9b9eab 10866 cat conftest.$ac_ext >&5
a0b9e27f
MB
10867 rm -rf conftest*
10868 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 10869fi
a0b9e27f 10870rm -f conftest*
90dd450c 10871fi
a0b9e27f
MB
10872if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10873 echo "$ac_t""yes" 1>&6
10874 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10875 cat >> confdefs.h <<EOF
10876#define $ac_tr_hdr 1
10877EOF
10878
10879else
10880 echo "$ac_t""no" 1>&6
90dd450c 10881fi
21d1c967 10882done
10f2d63a 10883
8284b0c5 10884
21d1c967
GD
10885 if test "$ac_cv_header_iostream" = "yes" ; then
10886 :
10887 else
a0b9e27f 10888 cat >> confdefs.h <<\EOF
21d1c967 10889#define wxUSE_IOSTREAMH 1
a0b9e27f 10890EOF
788deba1 10891
90dd450c 10892 fi
ab9b9eab 10893
21d1c967 10894 ac_ext=c
a0b9e27f 10895# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 10896ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
10897ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10898ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10899cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 10900
21d1c967 10901 fi
ab9b9eab 10902
52127426 10903
8284b0c5 10904
a0b9e27f 10905 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
a85030bd 10906echo "configure:10907: checking if C++ compiler supports bool" >&5
a0b9e27f
MB
10907if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10908 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 10909else
a0b9e27f
MB
10910
10911
10912 ac_ext=C
10913# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 10914ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
10915ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10916ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10917cross_compiling=$ac_cv_prog_cxx_cross
21d1c967 10918
8284b0c5 10919
a0b9e27f 10920 cat > conftest.$ac_ext <<EOF
a85030bd 10921#line 10922 "configure"
ab9b9eab 10922#include "confdefs.h"
21d1c967 10923
a0b9e27f
MB
10924
10925int main() {
21d1c967
GD
10926
10927 bool b = true;
10928
10929 return 0;
a0b9e27f
MB
10930
10931; return 0; }
10932EOF
a85030bd 10933if { (eval echo configure:10934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10934 rm -rf conftest*
10935
21d1c967 10936 wx_cv_cpp_bool=yes
a0b9e27f 10937
698dcdb6 10938else
a0b9e27f
MB
10939 echo "configure: failed program was:" >&5
10940 cat conftest.$ac_ext >&5
10941 rm -rf conftest*
10942
21d1c967 10943 wx_cv_cpp_bool=no
a0b9e27f
MB
10944
10945
698dcdb6 10946fi
a0b9e27f 10947rm -f conftest*
21d1c967
GD
10948
10949 ac_ext=c
a0b9e27f 10950# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21d1c967 10951ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
10952ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10953ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10954cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 10955
a0b9e27f 10956
247f5006 10957fi
a0b9e27f
MB
10958
10959echo "$ac_t""$wx_cv_cpp_bool" 1>&6
21d1c967
GD
10960
10961 if test "$wx_cv_cpp_bool" = "yes"; then
a0b9e27f 10962 cat >> confdefs.h <<\EOF
21d1c967 10963#define HAVE_BOOL 1
a0b9e27f 10964EOF
ab9b9eab 10965
21d1c967
GD
10966 fi
10967
52127426 10968
8284b0c5 10969
a0b9e27f 10970 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
a85030bd 10971echo "configure:10972: checking if C++ compiler supports the explicit keyword" >&5
a0b9e27f
MB
10972if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10973 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 10974else
a0b9e27f
MB
10975
10976
10977 ac_ext=C
10978# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 10979ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
10980ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10981ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10982cross_compiling=$ac_cv_prog_cxx_cross
986ecc86 10983
8284b0c5 10984
a0b9e27f 10985 cat > conftest.$ac_ext <<EOF
a85030bd 10986#line 10987 "configure"
986ecc86
VZ
10987#include "confdefs.h"
10988
10989 class Foo { public: explicit Foo(int) {} };
a0b9e27f
MB
10990
10991int main() {
986ecc86
VZ
10992
10993 return 0;
a0b9e27f
MB
10994
10995; return 0; }
10996EOF
a85030bd 10997if { (eval echo configure:10998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
10998 rm -rf conftest*
10999
11000 cat > conftest.$ac_ext <<EOF
a85030bd 11001#line 11002 "configure"
986ecc86
VZ
11002#include "confdefs.h"
11003
11004 class Foo { public: explicit Foo(int) {} };
11005 static void TakeFoo(const Foo& foo) { }
a0b9e27f
MB
11006
11007int main() {
986ecc86
VZ
11008
11009 TakeFoo(17);
11010 return 0;
a0b9e27f
MB
11011
11012; return 0; }
11013EOF
a85030bd 11014if { (eval echo configure:11015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11015 rm -rf conftest*
986ecc86
VZ
11016 wx_cv_explicit=no
11017else
a0b9e27f
MB
11018 echo "configure: failed program was:" >&5
11019 cat conftest.$ac_ext >&5
11020 rm -rf conftest*
11021 wx_cv_explicit=yes
11022
986ecc86 11023fi
a0b9e27f
MB
11024rm -f conftest*
11025
986ecc86 11026else
a0b9e27f
MB
11027 echo "configure: failed program was:" >&5
11028 cat conftest.$ac_ext >&5
11029 rm -rf conftest*
11030 wx_cv_explicit=no
11031
986ecc86 11032fi
a0b9e27f 11033rm -f conftest*
986ecc86
VZ
11034
11035 ac_ext=c
a0b9e27f 11036# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986ecc86 11037ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
11038ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11039ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11040cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 11041
a0b9e27f 11042
247f5006 11043fi
a0b9e27f
MB
11044
11045echo "$ac_t""$wx_cv_explicit" 1>&6
986ecc86
VZ
11046
11047 if test "$wx_cv_explicit" = "yes"; then
a0b9e27f 11048 cat >> confdefs.h <<\EOF
986ecc86 11049#define HAVE_EXPLICIT 1
a0b9e27f 11050EOF
986ecc86
VZ
11051
11052 fi
11053
8284b0c5
MB
11054
11055
21d1c967
GD
11056SEARCH_INCLUDE="\
11057 /usr/local/include \
11058 \
11059 /usr/Motif-1.2/include \
11060 /usr/Motif-2.1/include \
11061 \
11062 /usr/include/Motif1.2 \
11063 /opt/xpm/include/X11 \
11064 /opt/GBxpm/include/ \
11065 /opt/GBxpm/X11/include/ \
11066 \
11067 /usr/Motif1.2/include \
11068 /usr/dt/include \
11069 /usr/openwin/include \
11070 \
11071 /usr/include/Xm \
11072 \
11073 /usr/X11R6/include \
11074 /usr/X11R6.4/include \
11075 /usr/X11R5/include \
11076 /usr/X11R4/include \
11077 \
11078 /usr/include/X11R6 \
11079 /usr/include/X11R5 \
11080 /usr/include/X11R4 \
11081 \
11082 /usr/local/X11R6/include \
11083 /usr/local/X11R5/include \
11084 /usr/local/X11R4/include \
11085 \
11086 /usr/local/include/X11R6 \
11087 /usr/local/include/X11R5 \
11088 /usr/local/include/X11R4 \
11089 \
11090 /usr/X11/include \
11091 /usr/include/X11 \
11092 /usr/local/X11/include \
11093 /usr/local/include/X11 \
11094 \
11095 /usr/X386/include \
11096 /usr/x386/include \
11097 /usr/XFree86/include/X11 \
11098 \
11099 X:/XFree86/include \
11100 X:/XFree86/include/X11 \
11101 \
11102 /usr/include/gtk \
11103 /usr/local/include/gtk \
11104 /usr/include/glib \
11105 /usr/local/include/glib \
11106 \
11107 /usr/include/qt \
11108 /usr/local/include/qt \
11109 \
11110 /usr/include/windows \
11111 /usr/include/wine \
11112 /usr/local/include/wine \
11113 \
11114 /usr/unsupported/include \
11115 /usr/athena/include \
11116 /usr/local/x11r5/include \
11117 /usr/lpp/Xamples/include \
11118 \
a85030bd
RL
11119 /usr/openwin/share/include \
11120 /usr/include"
21d1c967
GD
11121
11122SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11123
8284b0c5 11124
a0b9e27f 11125cat > confcache <<\EOF
21d1c967
GD
11126# This file is a shell script that caches the results of configure
11127# tests run on this system so they can be shared between configure
a0b9e27f
MB
11128# scripts and configure runs. It is not useful on other systems.
11129# If it contains results you don't want to keep, you may remove or edit it.
21d1c967 11130#
a0b9e27f
MB
11131# By default, configure uses ./config.cache as the cache file,
11132# creating it if it does not exist already. You can give configure
11133# the --cache-file=FILE option to use a different cache file; that is
11134# what configure does when it calls configure scripts in
11135# subdirectories, so they share the cache.
11136# Giving --cache-file=/dev/null disables caching, for debugging configure.
11137# config.status only pays attention to the cache file if you give it the
11138# --recheck option to rerun configure.
21d1c967 11139#
a0b9e27f 11140EOF
21d1c967
GD
11141# The following way of writing the cache mishandles newlines in values,
11142# but we know of no workaround that is simple, portable, and efficient.
11143# So, don't put newlines in cache variables' values.
11144# Ultrix sh set writes to stderr and can't be redirected directly,
11145# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
11146(set) 2>&1 |
11147 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11148 *ac_space=\ *)
11149 # `set' does not quote correctly, so add quotes (double-quote substitution
11150 # turns \\\\ into \\, and sed turns \\ into \).
11151 sed -n \
11152 -e "s/'/'\\\\''/g" \
11153 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11154 ;;
11155 *)
11156 # `set' quotes correctly as required by POSIX, so do not add quotes.
11157 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11158 ;;
11159 esac >> confcache
11160if cmp -s $cache_file confcache; then
11161 :
11162else
21d1c967 11163 if test -w $cache_file; then
a0b9e27f
MB
11164 echo "updating cache $cache_file"
11165 cat confcache > $cache_file
21d1c967
GD
11166 else
11167 echo "not updating unwritable cache $cache_file"
11168 fi
ab9b9eab 11169fi
21d1c967 11170rm -f confcache
ab9b9eab 11171
247f5006 11172
a0b9e27f
MB
11173if test "$USE_LINUX" = 1; then
11174 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
a85030bd 11175echo "configure:11176: checking for glibc 2.1 or later" >&5
a0b9e27f
MB
11176if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11177 echo $ac_n "(cached) $ac_c" 1>&6
11178else
11179
11180 cat > conftest.$ac_ext <<EOF
a85030bd 11181#line 11182 "configure"
ab9b9eab 11182#include "confdefs.h"
21d1c967 11183#include <features.h>
a0b9e27f 11184int main() {
ab9b9eab 11185
21d1c967
GD
11186 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11187 #error not glibc2.1
11188 #endif
a0b9e27f
MB
11189
11190; return 0; }
11191EOF
a85030bd 11192if { (eval echo configure:11193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11193 rm -rf conftest*
11194
21d1c967 11195 wx_cv_lib_glibc21=yes
a0b9e27f 11196
698dcdb6 11197else
a0b9e27f
MB
11198 echo "configure: failed program was:" >&5
11199 cat conftest.$ac_ext >&5
11200 rm -rf conftest*
11201
21d1c967 11202 wx_cv_lib_glibc21=no
a0b9e27f
MB
11203
11204
5c6fa7d2 11205fi
a0b9e27f
MB
11206rm -f conftest*
11207
247f5006 11208fi
a0b9e27f
MB
11209
11210echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
21d1c967 11211 if test "$wx_cv_lib_glibc21" = "yes"; then
a0b9e27f 11212 cat >> confdefs.h <<\EOF
21d1c967 11213#define wxHAVE_GLIBC2 1
a0b9e27f 11214EOF
1e487827 11215
90dd450c 11216 fi
ab9b9eab
VZ
11217fi
11218
5c0a20c3
VZ
11219if test "x$wx_cv_lib_glibc21" = "xyes"; then
11220 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
a0b9e27f 11221 cat >> confdefs.h <<\EOF
5c0a20c3 11222#define _GNU_SOURCE 1
a0b9e27f 11223EOF
5c0a20c3
VZ
11224
11225 fi
11226fi
11227
8284b0c5
MB
11228
11229
21d1c967
GD
11230REGEX_INCLUDE=
11231if test "$wxUSE_REGEX" != "no"; then
a0b9e27f 11232 cat >> confdefs.h <<\EOF
21d1c967 11233#define wxUSE_REGEX 1
a0b9e27f 11234EOF
698dcdb6 11235
8284b0c5 11236
21d1c967 11237 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
a0b9e27f
MB
11238 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11239echo $ac_n "checking for regex.h""... $ac_c" 1>&6
a85030bd 11240echo "configure:11241: checking for regex.h" >&5
a0b9e27f
MB
11241if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11242 echo $ac_n "(cached) $ac_c" 1>&6
11243else
11244 cat > conftest.$ac_ext <<EOF
a85030bd 11245#line 11246 "configure"
247f5006
VZ
11246#include "confdefs.h"
11247#include <regex.h>
a0b9e27f
MB
11248EOF
11249ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 11250{ (eval echo configure:11251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11251ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11252if test -z "$ac_err"; then
11253 rm -rf conftest*
11254 eval "ac_cv_header_$ac_safe=yes"
11255else
11256 echo "$ac_err" >&5
11257 echo "configure: failed program was:" >&5
21d1c967 11258 cat conftest.$ac_ext >&5
a0b9e27f
MB
11259 rm -rf conftest*
11260 eval "ac_cv_header_$ac_safe=no"
21d1c967 11261fi
a0b9e27f 11262rm -f conftest*
698dcdb6 11263fi
a0b9e27f
MB
11264if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11265 echo "$ac_t""yes" 1>&6
11266 for ac_func in regcomp
21d1c967 11267do
a0b9e27f 11268echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 11269echo "configure:11270: checking for $ac_func" >&5
a0b9e27f
MB
11270if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11271 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 11272else
a0b9e27f 11273 cat > conftest.$ac_ext <<EOF
a85030bd 11274#line 11275 "configure"
a0b9e27f
MB
11275#include "confdefs.h"
11276/* System header to define __stub macros and hopefully few prototypes,
11277 which can conflict with char $ac_func(); below. */
21d1c967
GD
11278#include <assert.h>
11279/* Override any gcc2 internal prototype to avoid an error. */
11280/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11281 builtin and then its argument prototype would still apply. */
11282char $ac_func();
11283
11284int main() {
11285
21d1c967
GD
11286/* The GNU C library defines this for functions which it implements
11287 to always fail with ENOSYS. Some functions are actually named
11288 something starting with __ and the normal name is an alias. */
11289#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11290choke me
11291#else
a0b9e27f 11292$ac_func();
21d1c967 11293#endif
90dd450c 11294
a0b9e27f
MB
11295; return 0; }
11296EOF
a85030bd 11297if { (eval echo configure:11298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11298 rm -rf conftest*
11299 eval "ac_cv_func_$ac_func=yes"
11300else
11301 echo "configure: failed program was:" >&5
11302 cat conftest.$ac_ext >&5
11303 rm -rf conftest*
11304 eval "ac_cv_func_$ac_func=no"
11305fi
11306rm -f conftest*
11307fi
5c6fa7d2 11308
a0b9e27f
MB
11309if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11310 echo "$ac_t""yes" 1>&6
11311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11312 cat >> confdefs.h <<EOF
11313#define $ac_tr_func 1
11314EOF
11315
11316else
11317 echo "$ac_t""no" 1>&6
698dcdb6 11318fi
21d1c967
GD
11319done
11320
a0b9e27f
MB
11321else
11322 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11323fi
11324
8284b0c5 11325
21d1c967
GD
11326 if test "x$ac_cv_func_regcomp" != "xyes"; then
11327 if test "$wxUSE_REGEX" = "sys" ; then
a0b9e27f 11328 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
21d1c967 11329 else
a0b9e27f 11330 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
21d1c967
GD
11331 wxUSE_REGEX=builtin
11332 fi
11333 else
11334 wxUSE_REGEX=sys
11335 fi
ab9b9eab 11336 fi
90dd450c 11337
21d1c967
GD
11338 if test "$wxUSE_REGEX" = "builtin" ; then
11339 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11340 fi
21d1c967 11341fi
90dd450c 11342
8284b0c5 11343
21d1c967
GD
11344ZLIB_INCLUDE=
11345ZLIB_LINK=
11346if test "$wxUSE_ZLIB" != "no" ; then
a0b9e27f 11347 cat >> confdefs.h <<\EOF
21d1c967 11348#define wxUSE_ZLIB 1
a0b9e27f 11349EOF
21d1c967 11350
8284b0c5 11351
21d1c967 11352 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
a0b9e27f
MB
11353 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11354echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
a85030bd 11355echo "configure:11356: checking for zlib.h" >&5
a0b9e27f
MB
11356if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11357 echo $ac_n "(cached) $ac_c" 1>&6
11358else
11359 cat > conftest.$ac_ext <<EOF
a85030bd 11360#line 11361 "configure"
ab9b9eab 11361#include "confdefs.h"
21d1c967 11362#include <zlib.h>
a0b9e27f
MB
11363EOF
11364ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 11365{ (eval echo configure:11366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11366ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11367if test -z "$ac_err"; then
11368 rm -rf conftest*
11369 eval "ac_cv_header_$ac_safe=yes"
11370else
11371 echo "$ac_err" >&5
11372 echo "configure: failed program was:" >&5
698dcdb6 11373 cat conftest.$ac_ext >&5
a0b9e27f
MB
11374 rm -rf conftest*
11375 eval "ac_cv_header_$ac_safe=no"
698dcdb6 11376fi
a0b9e27f 11377rm -f conftest*
ab9b9eab 11378fi
a0b9e27f
MB
11379if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11380 echo "$ac_t""yes" 1>&6
11381 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
a85030bd 11382echo "configure:11383: checking for deflate in -lz" >&5
a0b9e27f
MB
11383ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11384if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11385 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11386else
a0b9e27f 11387 ac_save_LIBS="$LIBS"
21d1c967 11388LIBS="-lz $LIBS"
a0b9e27f 11389cat > conftest.$ac_ext <<EOF
a85030bd 11390#line 11391 "configure"
ab9b9eab 11391#include "confdefs.h"
21d1c967
GD
11392/* Override any gcc2 internal prototype to avoid an error. */
11393/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11394 builtin and then its argument prototype would still apply. */
11395char deflate();
11396
11397int main() {
11398deflate()
11399; return 0; }
11400EOF
a85030bd 11401if { (eval echo configure:11402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11402 rm -rf conftest*
11403 eval "ac_cv_lib_$ac_lib_var=yes"
11404else
11405 echo "configure: failed program was:" >&5
11406 cat conftest.$ac_ext >&5
11407 rm -rf conftest*
11408 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 11409fi
a0b9e27f
MB
11410rm -f conftest*
11411LIBS="$ac_save_LIBS"
698dcdb6 11412
698dcdb6 11413fi
a0b9e27f
MB
11414if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11415 echo "$ac_t""yes" 1>&6
11416 ZLIB_LINK=" -lz"
11417else
11418 echo "$ac_t""no" 1>&6
11419fi
698dcdb6 11420
a0b9e27f
MB
11421else
11422 echo "$ac_t""no" 1>&6
11423fi
8284b0c5 11424
247f5006 11425
21d1c967
GD
11426 if test "x$ZLIB_LINK" = "x" ; then
11427 if test "$wxUSE_ZLIB" = "sys" ; then
a0b9e27f 11428 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11429 else
a0b9e27f 11430 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
21d1c967
GD
11431 wxUSE_ZLIB=builtin
11432 fi
11433 else
11434 wxUSE_ZLIB=sys
11435 fi
11436 fi
11437
11438 if test "$wxUSE_ZLIB" = "builtin" ; then
11439 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11440 fi
ab9b9eab
VZ
11441fi
11442
8284b0c5 11443
21d1c967
GD
11444PNG_INCLUDE=
11445PNG_LINK=
11446if test "$wxUSE_LIBPNG" != "no" ; then
a0b9e27f 11447 cat >> confdefs.h <<\EOF
21d1c967 11448#define wxUSE_LIBPNG 1
a0b9e27f 11449EOF
90dd450c 11450
8284b0c5 11451
21d1c967 11452 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
a0b9e27f 11453 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
21d1c967
GD
11454 wxUSE_LIBPNG=sys
11455 fi
90dd450c 11456
21d1c967 11457 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a0b9e27f 11458 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
21d1c967
GD
11459 wxUSE_LIBPNG=builtin
11460 fi
11461
11462 if test "$wxUSE_MGL" != 1 ; then
11463 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
a0b9e27f
MB
11464 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11465echo $ac_n "checking for png.h""... $ac_c" 1>&6
a85030bd 11466echo "configure:11467: checking for png.h" >&5
a0b9e27f
MB
11467if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11468 echo $ac_n "(cached) $ac_c" 1>&6
11469else
11470 cat > conftest.$ac_ext <<EOF
a85030bd 11471#line 11472 "configure"
21d1c967
GD
11472#include "confdefs.h"
11473#include <png.h>
a0b9e27f
MB
11474EOF
11475ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 11476{ (eval echo configure:11477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11477ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11478if test -z "$ac_err"; then
11479 rm -rf conftest*
11480 eval "ac_cv_header_$ac_safe=yes"
11481else
11482 echo "$ac_err" >&5
11483 echo "configure: failed program was:" >&5
90dd450c 11484 cat conftest.$ac_ext >&5
a0b9e27f
MB
11485 rm -rf conftest*
11486 eval "ac_cv_header_$ac_safe=no"
90dd450c 11487fi
a0b9e27f 11488rm -f conftest*
90dd450c 11489fi
a0b9e27f
MB
11490if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11491 echo "$ac_t""yes" 1>&6
11492 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
a85030bd 11493echo "configure:11494: checking for png_check_sig in -lpng" >&5
a0b9e27f
MB
11494ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11495if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11496 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11497else
a0b9e27f 11498 ac_save_LIBS="$LIBS"
21d1c967 11499LIBS="-lpng -lz -lm $LIBS"
a0b9e27f 11500cat > conftest.$ac_ext <<EOF
a85030bd 11501#line 11502 "configure"
90dd450c 11502#include "confdefs.h"
21d1c967
GD
11503/* Override any gcc2 internal prototype to avoid an error. */
11504/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11505 builtin and then its argument prototype would still apply. */
11506char png_check_sig();
90dd450c 11507
a0b9e27f
MB
11508int main() {
11509png_check_sig()
11510; return 0; }
11511EOF
a85030bd 11512if { (eval echo configure:11513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11513 rm -rf conftest*
11514 eval "ac_cv_lib_$ac_lib_var=yes"
11515else
11516 echo "configure: failed program was:" >&5
11517 cat conftest.$ac_ext >&5
11518 rm -rf conftest*
11519 eval "ac_cv_lib_$ac_lib_var=no"
11520fi
11521rm -f conftest*
11522LIBS="$ac_save_LIBS"
247f5006 11523
90dd450c 11524fi
a0b9e27f
MB
11525if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11526 echo "$ac_t""yes" 1>&6
11527 PNG_LINK=" -lpng"
11528else
11529 echo "$ac_t""no" 1>&6
11530fi
90dd450c 11531
a0b9e27f
MB
11532
11533else
11534 echo "$ac_t""no" 1>&6
11535fi
8284b0c5 11536
247f5006 11537
21d1c967
GD
11538 if test "x$PNG_LINK" = "x" ; then
11539 if test "$wxUSE_LIBPNG" = "sys" ; then
a0b9e27f 11540 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11541 else
a0b9e27f 11542 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
21d1c967
GD
11543 wxUSE_LIBPNG=builtin
11544 fi
11545 else
11546 wxUSE_LIBPNG=yes
11547 fi
11548 fi
11549 fi
90dd450c 11550
21d1c967
GD
11551 if test "$wxUSE_LIBPNG" = "builtin" ; then
11552 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11553 fi
90dd450c 11554
21d1c967 11555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11556fi
11557
8284b0c5 11558
21d1c967
GD
11559JPEG_INCLUDE=
11560JPEG_LINK=
11561if test "$wxUSE_LIBJPEG" != "no" ; then
a0b9e27f 11562 cat >> confdefs.h <<\EOF
21d1c967 11563#define wxUSE_LIBJPEG 1
a0b9e27f 11564EOF
90dd450c 11565
8284b0c5 11566
21d1c967 11567 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
a0b9e27f 11568 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
21d1c967
GD
11569 wxUSE_LIBJPEG=sys
11570 fi
90dd450c 11571
21d1c967
GD
11572 if test "$wxUSE_MGL" != 1 ; then
11573 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
a0b9e27f 11574 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
a85030bd 11575echo "configure:11576: checking for jpeglib.h" >&5
a0b9e27f
MB
11576 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11577 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11578else
a0b9e27f 11579 cat > conftest.$ac_ext <<EOF
a85030bd 11580#line 11581 "configure"
21d1c967 11581#include "confdefs.h"
90dd450c 11582
21d1c967
GD
11583 #undef HAVE_STDLIB_H
11584 #include <stdio.h>
11585 #include <jpeglib.h>
a0b9e27f
MB
11586
11587int main() {
90dd450c 11588
a0b9e27f
MB
11589
11590; return 0; }
11591EOF
a85030bd 11592if { (eval echo configure:11593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 11593 rm -rf conftest*
21d1c967 11594 ac_cv_header_jpeglib_h=yes
90dd450c 11595else
a0b9e27f
MB
11596 echo "configure: failed program was:" >&5
11597 cat conftest.$ac_ext >&5
11598 rm -rf conftest*
11599 ac_cv_header_jpeglib_h=no
11600
90dd450c 11601fi
a0b9e27f
MB
11602rm -f conftest*
11603
90dd450c
VZ
11604fi
11605
a0b9e27f 11606 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11607
21d1c967 11608 if test "$ac_cv_header_jpeglib_h" = "yes"; then
a0b9e27f 11609 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
a85030bd 11610echo "configure:11611: checking for jpeg_read_header in -ljpeg" >&5
a0b9e27f
MB
11611ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11612if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11613 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11614else
a0b9e27f 11615 ac_save_LIBS="$LIBS"
21d1c967 11616LIBS="-ljpeg $LIBS"
a0b9e27f 11617cat > conftest.$ac_ext <<EOF
a85030bd 11618#line 11619 "configure"
21d1c967
GD
11619#include "confdefs.h"
11620/* Override any gcc2 internal prototype to avoid an error. */
11621/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11622 builtin and then its argument prototype would still apply. */
11623char jpeg_read_header();
11624
11625int main() {
11626jpeg_read_header()
11627; return 0; }
11628EOF
a85030bd 11629if { (eval echo configure:11630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11630 rm -rf conftest*
11631 eval "ac_cv_lib_$ac_lib_var=yes"
11632else
11633 echo "configure: failed program was:" >&5
11634 cat conftest.$ac_ext >&5
11635 rm -rf conftest*
11636 eval "ac_cv_lib_$ac_lib_var=no"
11637fi
11638rm -f conftest*
11639LIBS="$ac_save_LIBS"
11640
11641fi
11642if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11643 echo "$ac_t""yes" 1>&6
21d1c967 11644 JPEG_LINK=" -ljpeg"
a0b9e27f
MB
11645else
11646 echo "$ac_t""no" 1>&6
90dd450c
VZ
11647fi
11648
21d1c967 11649 fi
90dd450c 11650
21d1c967
GD
11651 if test "x$JPEG_LINK" = "x" ; then
11652 if test "$wxUSE_LIBJPEG" = "sys" ; then
a0b9e27f 11653 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
21d1c967 11654 else
a0b9e27f 11655 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
21d1c967
GD
11656 wxUSE_LIBJPEG=builtin
11657 fi
11658 else
11659 wxUSE_LIBJPEG=sys
11660 fi
11661 fi
11662 fi
90dd450c 11663
21d1c967
GD
11664 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11665 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11666 fi
11667fi
90dd450c 11668
8284b0c5 11669
21d1c967
GD
11670TIFF_INCLUDE=
11671TIFF_LINK=
11672if test "$wxUSE_LIBTIFF" != "no" ; then
a0b9e27f 11673 cat >> confdefs.h <<\EOF
21d1c967 11674#define wxUSE_LIBTIFF 1
a0b9e27f 11675EOF
21d1c967 11676
8284b0c5 11677
21d1c967 11678 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
a0b9e27f
MB
11679 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11680echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
a85030bd 11681echo "configure:11682: checking for tiffio.h" >&5
a0b9e27f
MB
11682if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11683 echo $ac_n "(cached) $ac_c" 1>&6
11684else
11685 cat > conftest.$ac_ext <<EOF
a85030bd 11686#line 11687 "configure"
247f5006
VZ
11687#include "confdefs.h"
11688#include <tiffio.h>
a0b9e27f
MB
11689EOF
11690ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 11691{ (eval echo configure:11692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11692ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11693if test -z "$ac_err"; then
11694 rm -rf conftest*
11695 eval "ac_cv_header_$ac_safe=yes"
11696else
11697 echo "$ac_err" >&5
11698 echo "configure: failed program was:" >&5
21d1c967 11699 cat conftest.$ac_ext >&5
a0b9e27f
MB
11700 rm -rf conftest*
11701 eval "ac_cv_header_$ac_safe=no"
21d1c967 11702fi
a0b9e27f 11703rm -f conftest*
21d1c967 11704fi
a0b9e27f
MB
11705if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11706 echo "$ac_t""yes" 1>&6
11707 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
a85030bd 11708echo "configure:11709: checking for TIFFError in -ltiff" >&5
a0b9e27f
MB
11709ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11710if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11711 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 11712else
a0b9e27f 11713 ac_save_LIBS="$LIBS"
21d1c967 11714LIBS="-ltiff -lm $LIBS"
a0b9e27f 11715cat > conftest.$ac_ext <<EOF
a85030bd 11716#line 11717 "configure"
ab9b9eab
VZ
11717#include "confdefs.h"
11718/* Override any gcc2 internal prototype to avoid an error. */
11719/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
11720 builtin and then its argument prototype would still apply. */
11721char TIFFError();
ab9b9eab 11722
a0b9e27f
MB
11723int main() {
11724TIFFError()
11725; return 0; }
11726EOF
a85030bd 11727if { (eval echo configure:11728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
11728 rm -rf conftest*
11729 eval "ac_cv_lib_$ac_lib_var=yes"
11730else
11731 echo "configure: failed program was:" >&5
11732 cat conftest.$ac_ext >&5
11733 rm -rf conftest*
11734 eval "ac_cv_lib_$ac_lib_var=no"
11735fi
11736rm -f conftest*
11737LIBS="$ac_save_LIBS"
247f5006 11738
21d1c967 11739fi
a0b9e27f
MB
11740if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11741 echo "$ac_t""yes" 1>&6
11742 TIFF_LINK=" -ltiff"
11743else
11744 echo "$ac_t""no" 1>&6
11745fi
cd6d6d5b 11746
a0b9e27f
MB
11747
11748else
11749 echo "$ac_t""no" 1>&6
11750fi
8284b0c5 11751
247f5006 11752
21d1c967
GD
11753 if test "x$TIFF_LINK" = "x" ; then
11754 if test "$wxUSE_LIBTIFF" = "sys" ; then
a0b9e27f 11755 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 11756 else
a0b9e27f 11757 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
21d1c967 11758 wxUSE_LIBTIFF=builtin
d8356fa3 11759 fi
d8356fa3 11760 else
21d1c967 11761 wxUSE_LIBTIFF=sys
d8356fa3 11762 fi
21d1c967 11763 fi
d8356fa3 11764
21d1c967
GD
11765 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11766 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 11767 fi
21d1c967 11768fi
10f2d63a 11769
8284b0c5 11770
21d1c967 11771AFMINSTALL=
90dd450c 11772
21d1c967
GD
11773TOOLKIT=
11774TOOLKIT_INCLUDE=
11775WIDGET_SET=
11776
11777if test "$USE_WIN32" = 1 ; then
a0b9e27f 11778 for ac_hdr in w32api.h
21d1c967 11779do
a0b9e27f
MB
11780ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11781echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a85030bd 11782echo "configure:11783: checking for $ac_hdr" >&5
a0b9e27f
MB
11783if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11784 echo $ac_n "(cached) $ac_c" 1>&6
11785else
11786 cat > conftest.$ac_ext <<EOF
a85030bd 11787#line 11788 "configure"
247f5006 11788#include "confdefs.h"
a0b9e27f
MB
11789#include <$ac_hdr>
11790EOF
11791ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 11792{ (eval echo configure:11793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11793ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11794if test -z "$ac_err"; then
11795 rm -rf conftest*
11796 eval "ac_cv_header_$ac_safe=yes"
11797else
11798 echo "$ac_err" >&5
11799 echo "configure: failed program was:" >&5
f79bd02d 11800 cat conftest.$ac_ext >&5
a0b9e27f
MB
11801 rm -rf conftest*
11802 eval "ac_cv_header_$ac_safe=no"
f79bd02d 11803fi
a0b9e27f 11804rm -f conftest*
21d1c967 11805fi
a0b9e27f
MB
11806if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11807 echo "$ac_t""yes" 1>&6
11808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11809 cat >> confdefs.h <<EOF
11810#define $ac_tr_hdr 1
11811EOF
11812
11813else
11814 echo "$ac_t""no" 1>&6
21d1c967
GD
11815fi
11816done
f79bd02d 11817
a0b9e27f
MB
11818 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11819echo $ac_n "checking for windows.h""... $ac_c" 1>&6
a85030bd 11820echo "configure:11821: checking for windows.h" >&5
a0b9e27f
MB
11821if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11822 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11823else
a0b9e27f 11824 cat > conftest.$ac_ext <<EOF
a85030bd 11825#line 11826 "configure"
247f5006
VZ
11826#include "confdefs.h"
11827#include <windows.h>
a0b9e27f
MB
11828EOF
11829ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 11830{ (eval echo configure:11831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
11831ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11832if test -z "$ac_err"; then
11833 rm -rf conftest*
11834 eval "ac_cv_header_$ac_safe=yes"
11835else
11836 echo "$ac_err" >&5
11837 echo "configure: failed program was:" >&5
90dd450c 11838 cat conftest.$ac_ext >&5
a0b9e27f
MB
11839 rm -rf conftest*
11840 eval "ac_cv_header_$ac_safe=no"
90dd450c 11841fi
a0b9e27f 11842rm -f conftest*
90dd450c 11843fi
a0b9e27f
MB
11844if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11845 echo "$ac_t""yes" 1>&6
21d1c967 11846 :
90dd450c 11847else
a0b9e27f 11848 echo "$ac_t""no" 1>&6
21d1c967 11849
a0b9e27f
MB
11850 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11851
5c6fa7d2 11852fi
7b4a847f 11853
5c6fa7d2 11854
a0b9e27f 11855 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
a85030bd 11856echo "configure:11857: checking if w32api has good enough MSIE support" >&5
a0b9e27f
MB
11857if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11858 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 11859else
a0b9e27f
MB
11860
11861 cat > conftest.$ac_ext <<EOF
a85030bd 11862#line 11863 "configure"
f79bd02d 11863#include "confdefs.h"
21d1c967 11864#include <w32api.h>
a0b9e27f 11865int main() {
f79bd02d 11866
21d1c967
GD
11867 #define wxCHECK_W32API_VERSION( major, minor ) \
11868 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11869 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11870 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11871
11872 #if !wxCHECK_W32API_VERSION(1,1)
11873 #error You need w32api 1.1 or newer
11874 #endif
a0b9e27f
MB
11875
11876; return 0; }
11877EOF
a85030bd 11878if { (eval echo configure:11879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
11879 rm -rf conftest*
11880
21d1c967 11881 wx_cv_w32api_win32_ie=yes
a0b9e27f 11882
f79bd02d 11883else
a0b9e27f
MB
11884 echo "configure: failed program was:" >&5
11885 cat conftest.$ac_ext >&5
11886 rm -rf conftest*
11887
21d1c967 11888 wx_cv_w32api_win32_ie=no
a0b9e27f 11889
5c6fa7d2 11890fi
a0b9e27f
MB
11891rm -f conftest*
11892
247f5006 11893fi
a0b9e27f
MB
11894
11895echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
21d1c967
GD
11896 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11897 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11898 fi
f79bd02d 11899
21d1c967
GD
11900 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11901
11902 case "${host}" in
11903 *-*-cygwin* )
11904 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11905 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 11906 esac
f79bd02d 11907
21d1c967
GD
11908 if test "$wxUSE_ODBC" = "yes" ; then
11909 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11910 fi
f79bd02d 11911
21d1c967
GD
11912 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11913 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
f79bd02d 11914fi
f79bd02d 11915
21d1c967
GD
11916if test "$wxUSE_GUI" = "yes"; then
11917 USE_GUI=1
f79bd02d 11918
21d1c967 11919 GUI_TK_LIBRARY=
f79bd02d 11920
21d1c967
GD
11921 WXGTK12=
11922 WXGTK127=
11923 WXGTK20=
f79bd02d 11924
21d1c967
GD
11925 if test "$wxUSE_MSW" = 1 ; then
11926 TOOLKIT=MSW
11927 GUIDIST=MSW_DIST
f79bd02d 11928
21d1c967
GD
11929 case "${host}" in
11930 *-*-mingw32* )
11931 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11932 esac
f79bd02d
JS
11933 fi
11934
21d1c967 11935 if test "$wxUSE_GTK" = 1; then
a0b9e27f 11936 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
a85030bd 11937echo "configure:11938: checking for GTK+ version" >&5
21d1c967
GD
11938
11939 gtk_version_cached=1
a0b9e27f
MB
11940 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
11941 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 11942else
a0b9e27f 11943
21d1c967 11944 gtk_version_cached=0
a0b9e27f 11945 echo "$ac_t""" 1>&6
f79bd02d 11946
21d1c967
GD
11947 GTK_MODULES=
11948 if test "$wxUSE_THREADS" = "yes"; then
11949 GTK_MODULES=gthread
11950 fi
f79bd02d 11951
21d1c967
GD
11952 wx_cv_lib_gtk=
11953 if test "x$wxUSE_GTK2" = "xyes"; then
11954 # Check whether --enable-gtktest or --disable-gtktest was given.
11955if test "${enable_gtktest+set}" = set; then
11956 enableval="$enable_gtktest"
a0b9e27f 11957 :
f79bd02d 11958else
21d1c967 11959 enable_gtktest=yes
a0b9e27f
MB
11960fi
11961
f79bd02d 11962
21d1c967
GD
11963 pkg_config_args=gtk+-2.0
11964 for module in . $GTK_MODULES
11965 do
11966 case "$module" in
a0b9e27f 11967 gthread)
21d1c967
GD
11968 pkg_config_args="$pkg_config_args gthread-2.0"
11969 ;;
11970 esac
11971 done
11972
11973 no_gtk=""
f79bd02d 11974
21d1c967
GD
11975 # Extract the first word of "pkg-config", so it can be a program name with args.
11976set dummy pkg-config; ac_word=$2
a0b9e27f 11977echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a85030bd 11978echo "configure:11979: checking for $ac_word" >&5
a0b9e27f
MB
11979if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11980 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 11981else
a0b9e27f
MB
11982 case "$PKG_CONFIG" in
11983 /*)
21d1c967
GD
11984 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11985 ;;
a0b9e27f
MB
11986 ?:/*)
11987 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11988 ;;
21d1c967 11989 *)
a0b9e27f
MB
11990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11991 ac_dummy="$PATH"
11992 for ac_dir in $ac_dummy; do
11993 test -z "$ac_dir" && ac_dir=.
11994 if test -f $ac_dir/$ac_word; then
11995 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11996 break
11997 fi
11998 done
11999 IFS="$ac_save_ifs"
21d1c967
GD
12000 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12001 ;;
12002esac
f79bd02d 12003fi
a0b9e27f 12004PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21d1c967 12005if test -n "$PKG_CONFIG"; then
a0b9e27f 12006 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d 12007else
a0b9e27f 12008 echo "$ac_t""no" 1>&6
f79bd02d
JS
12009fi
12010
8284b0c5 12011
21d1c967
GD
12012 if test x$PKG_CONFIG != xno ; then
12013 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12014 :
12015 else
12016 echo *** pkg-config too old; version 0.7 or better required.
12017 no_gtk=yes
12018 PKG_CONFIG=no
12019 fi
12020 else
12021 no_gtk=yes
12022 fi
f79bd02d 12023
21d1c967 12024 min_gtk_version=2.0.0
a0b9e27f 12025 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
a85030bd 12026echo "configure:12027: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 12027
21d1c967
GD
12028 if test x$PKG_CONFIG != xno ; then
12029 ## don't try to run the test against uninstalled libtool libs
12030 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12031 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12032 enable_gtktest=no
12033 fi
f79bd02d 12034
21d1c967
GD
12035 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12036 :
12037 else
12038 no_gtk=yes
12039 fi
12040 fi
f79bd02d 12041
21d1c967
GD
12042 if test x"$no_gtk" = x ; then
12043 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12044 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12045 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12046 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12047 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12048 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12049 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12050 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12051 if test "x$enable_gtktest" = "xyes" ; then
12052 ac_save_CFLAGS="$CFLAGS"
12053 ac_save_LIBS="$LIBS"
12054 CFLAGS="$CFLAGS $GTK_CFLAGS"
12055 LIBS="$GTK_LIBS $LIBS"
12056 rm -f conf.gtktest
12057 if test "$cross_compiling" = yes; then
12058 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12059else
a0b9e27f 12060 cat > conftest.$ac_ext <<EOF
a85030bd 12061#line 12062 "configure"
f79bd02d 12062#include "confdefs.h"
f79bd02d 12063
21d1c967
GD
12064#include <gtk/gtk.h>
12065#include <stdio.h>
12066#include <stdlib.h>
f79bd02d 12067
a0b9e27f 12068int
21d1c967
GD
12069main ()
12070{
12071 int major, minor, micro;
12072 char *tmp_version;
f79bd02d 12073
21d1c967 12074 system ("touch conf.gtktest");
f79bd02d 12075
21d1c967
GD
12076 /* HP/UX 9 (%@#!) writes to sscanf strings */
12077 tmp_version = g_strdup("$min_gtk_version");
12078 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12079 printf("%s, bad version string\n", "$min_gtk_version");
12080 exit(1);
12081 }
f79bd02d 12082
21d1c967
GD
12083 if ((gtk_major_version != $gtk_config_major_version) ||
12084 (gtk_minor_version != $gtk_config_minor_version) ||
12085 (gtk_micro_version != $gtk_config_micro_version))
12086 {
a0b9e27f 12087 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12088 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12089 gtk_major_version, gtk_minor_version, gtk_micro_version);
12090 printf ("*** was found! If pkg-config was correct, then it is best\n");
12091 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12092 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12093 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12094 printf("*** required on your system.\n");
12095 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12096 printf("*** to point to the correct configuration files\n");
a0b9e27f 12097 }
21d1c967
GD
12098 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12099 (gtk_minor_version != GTK_MINOR_VERSION) ||
12100 (gtk_micro_version != GTK_MICRO_VERSION))
12101 {
12102 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12103 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12104 printf("*** library (version %d.%d.%d)\n",
12105 gtk_major_version, gtk_minor_version, gtk_micro_version);
12106 }
12107 else
12108 {
12109 if ((gtk_major_version > major) ||
12110 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12111 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12112 {
12113 return 0;
12114 }
12115 else
12116 {
12117 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12118 gtk_major_version, gtk_minor_version, gtk_micro_version);
12119 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12120 major, minor, micro);
12121 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12122 printf("***\n");
12123 printf("*** If you have already installed a sufficiently new version, this error\n");
12124 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12125 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12126 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12127 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12128 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12129 printf("*** so that the correct libraries are found at run-time))\n");
12130 }
12131 }
12132 return 1;
12133}
f79bd02d 12134
a0b9e27f 12135EOF
a85030bd 12136if { (eval echo configure:12137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12137then
21d1c967 12138 :
f79bd02d 12139else
a0b9e27f
MB
12140 echo "configure: failed program was:" >&5
12141 cat conftest.$ac_ext >&5
12142 rm -fr conftest*
12143 no_gtk=yes
f79bd02d 12144fi
a0b9e27f 12145rm -fr conftest*
f79bd02d 12146fi
a0b9e27f 12147
21d1c967
GD
12148 CFLAGS="$ac_save_CFLAGS"
12149 LIBS="$ac_save_LIBS"
12150 fi
12151 fi
12152 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12153 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12154 wx_cv_lib_gtk=2.0
21d1c967 12155 else
a0b9e27f 12156 echo "$ac_t""no" 1>&6
21d1c967
GD
12157 if test "$PKG_CONFIG" = "no" ; then
12158 echo "*** A new enough version of pkg-config was not found."
12159 echo "*** See http://pkgconfig.sourceforge.net"
12160 else
12161 if test -f conf.gtktest ; then
12162 :
12163 else
12164 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
12165 ac_save_CFLAGS="$CFLAGS"
12166 ac_save_LIBS="$LIBS"
21d1c967
GD
12167 CFLAGS="$CFLAGS $GTK_CFLAGS"
12168 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12169 cat > conftest.$ac_ext <<EOF
a85030bd 12170#line 12171 "configure"
f79bd02d 12171#include "confdefs.h"
21d1c967
GD
12172
12173#include <gtk/gtk.h>
12174#include <stdio.h>
f79bd02d 12175
a0b9e27f
MB
12176int main() {
12177 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12178; return 0; }
12179EOF
a85030bd 12180if { (eval echo configure:12181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12181 rm -rf conftest*
21d1c967
GD
12182 echo "*** The test program compiled, but did not run. This usually means"
12183 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12184 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12185 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12186 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12187 echo "*** is required on your system"
12188 echo "***"
12189 echo "*** If you have an old version installed, it is best to remove it, although"
a0b9e27f 12190 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 12191else
a0b9e27f
MB
12192 echo "configure: failed program was:" >&5
12193 cat conftest.$ac_ext >&5
12194 rm -rf conftest*
12195 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 12196 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 12197fi
a0b9e27f 12198rm -f conftest*
21d1c967
GD
12199 CFLAGS="$ac_save_CFLAGS"
12200 LIBS="$ac_save_LIBS"
12201 fi
12202 fi
12203 GTK_CFLAGS=""
12204 GTK_LIBS=""
12205 :
12206 fi
a0b9e27f
MB
12207
12208
21d1c967 12209 rm -f conf.gtktest
f79bd02d 12210
21d1c967 12211 fi
f79bd02d 12212
21d1c967 12213 if test -z "$wx_cv_lib_gtk"; then
a0b9e27f 12214 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12215if test "${with_gtk_prefix+set}" = set; then
12216 withval="$with_gtk_prefix"
12217 gtk_config_prefix="$withval"
12218else
12219 gtk_config_prefix=""
a0b9e27f 12220fi
f79bd02d 12221
21d1c967
GD
12222# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12223if test "${with_gtk_exec_prefix+set}" = set; then
12224 withval="$with_gtk_exec_prefix"
12225 gtk_config_exec_prefix="$withval"
12226else
12227 gtk_config_exec_prefix=""
a0b9e27f
MB
12228fi
12229
21d1c967
GD
12230# Check whether --enable-gtktest or --disable-gtktest was given.
12231if test "${enable_gtktest+set}" = set; then
12232 enableval="$enable_gtktest"
a0b9e27f 12233 :
21d1c967
GD
12234else
12235 enable_gtktest=yes
a0b9e27f
MB
12236fi
12237
21d1c967
GD
12238
12239 for module in . $GTK_MODULES
12240 do
12241 case "$module" in
a0b9e27f 12242 gthread)
21d1c967
GD
12243 gtk_config_args="$gtk_config_args gthread"
12244 ;;
12245 esac
12246 done
12247
12248 if test x$gtk_config_exec_prefix != x ; then
12249 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12250 if test x${GTK_CONFIG+set} != xset ; then
12251 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12252 fi
12253 fi
12254 if test x$gtk_config_prefix != x ; then
12255 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12256 if test x${GTK_CONFIG+set} != xset ; then
12257 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12258 fi
12259 fi
12260
12261 # Extract the first word of "gtk-config", so it can be a program name with args.
12262set dummy gtk-config; ac_word=$2
a0b9e27f 12263echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a85030bd 12264echo "configure:12265: checking for $ac_word" >&5
a0b9e27f
MB
12265if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12266 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 12267else
a0b9e27f
MB
12268 case "$GTK_CONFIG" in
12269 /*)
21d1c967
GD
12270 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12271 ;;
a0b9e27f
MB
12272 ?:/*)
12273 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12274 ;;
21d1c967 12275 *)
a0b9e27f
MB
12276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12277 ac_dummy="$PATH"
12278 for ac_dir in $ac_dummy; do
12279 test -z "$ac_dir" && ac_dir=.
12280 if test -f $ac_dir/$ac_word; then
12281 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12282 break
12283 fi
12284 done
12285 IFS="$ac_save_ifs"
21d1c967
GD
12286 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12287 ;;
12288esac
12289fi
a0b9e27f 12290GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12291if test -n "$GTK_CONFIG"; then
a0b9e27f 12292 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12293else
a0b9e27f 12294 echo "$ac_t""no" 1>&6
21d1c967
GD
12295fi
12296
12297 min_gtk_version=1.2.7
a0b9e27f 12298 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
a85030bd 12299echo "configure:12300: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12300 no_gtk=""
12301 if test "$GTK_CONFIG" = "no" ; then
12302 no_gtk=yes
12303 else
12304 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12305 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12306 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12307 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12308 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12309 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12310 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12311 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12312 if test "x$enable_gtktest" = "xyes" ; then
12313 ac_save_CFLAGS="$CFLAGS"
12314 ac_save_LIBS="$LIBS"
12315 CFLAGS="$CFLAGS $GTK_CFLAGS"
12316 LIBS="$GTK_LIBS $LIBS"
12317 rm -f conf.gtktest
12318 if test "$cross_compiling" = yes; then
12319 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 12320else
a0b9e27f 12321 cat > conftest.$ac_ext <<EOF
a85030bd 12322#line 12323 "configure"
f79bd02d
JS
12323#include "confdefs.h"
12324
21d1c967
GD
12325#include <gtk/gtk.h>
12326#include <stdio.h>
12327#include <stdlib.h>
f79bd02d 12328
a0b9e27f 12329int
21d1c967
GD
12330main ()
12331{
12332 int major, minor, micro;
12333 char *tmp_version;
12334
12335 system ("touch conf.gtktest");
12336
12337 /* HP/UX 9 (%@#!) writes to sscanf strings */
12338 tmp_version = g_strdup("$min_gtk_version");
12339 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12340 printf("%s, bad version string\n", "$min_gtk_version");
12341 exit(1);
12342 }
90dd450c 12343
21d1c967
GD
12344 if ((gtk_major_version != $gtk_config_major_version) ||
12345 (gtk_minor_version != $gtk_config_minor_version) ||
12346 (gtk_micro_version != $gtk_config_micro_version))
12347 {
a0b9e27f 12348 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12349 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12350 gtk_major_version, gtk_minor_version, gtk_micro_version);
12351 printf ("*** was found! If gtk-config was correct, then it is best\n");
12352 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12353 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12354 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12355 printf("*** required on your system.\n");
12356 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12357 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12358 printf("*** before re-running configure\n");
a0b9e27f 12359 }
21d1c967
GD
12360#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12361 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12362 (gtk_minor_version != GTK_MINOR_VERSION) ||
12363 (gtk_micro_version != GTK_MICRO_VERSION))
12364 {
12365 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12366 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12367 printf("*** library (version %d.%d.%d)\n",
12368 gtk_major_version, gtk_minor_version, gtk_micro_version);
12369 }
12370#endif /* defined (GTK_MAJOR_VERSION) ... */
12371 else
12372 {
12373 if ((gtk_major_version > major) ||
12374 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12375 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12376 {
12377 return 0;
12378 }
12379 else
12380 {
12381 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12382 gtk_major_version, gtk_minor_version, gtk_micro_version);
12383 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12384 major, minor, micro);
12385 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12386 printf("***\n");
12387 printf("*** If you have already installed a sufficiently new version, this error\n");
12388 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12389 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12390 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12391 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12392 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12393 printf("*** so that the correct libraries are found at run-time))\n");
12394 }
12395 }
12396 return 1;
12397}
12398
a0b9e27f 12399EOF
a85030bd 12400if { (eval echo configure:12401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12401then
21d1c967
GD
12402 :
12403else
a0b9e27f
MB
12404 echo "configure: failed program was:" >&5
12405 cat conftest.$ac_ext >&5
12406 rm -fr conftest*
12407 no_gtk=yes
21d1c967 12408fi
a0b9e27f 12409rm -fr conftest*
21d1c967 12410fi
a0b9e27f 12411
21d1c967
GD
12412 CFLAGS="$ac_save_CFLAGS"
12413 LIBS="$ac_save_LIBS"
12414 fi
12415 fi
12416 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12417 echo "$ac_t""yes" 1>&6
12418 wx_cv_lib_gtk=1.2.7
21d1c967 12419 else
a0b9e27f 12420 echo "$ac_t""no" 1>&6
21d1c967
GD
12421 if test "$GTK_CONFIG" = "no" ; then
12422 echo "*** The gtk-config script installed by GTK could not be found"
12423 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12424 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12425 echo "*** full path to gtk-config."
12426 else
12427 if test -f conf.gtktest ; then
12428 :
12429 else
12430 echo "*** Could not run GTK test program, checking why..."
12431 CFLAGS="$CFLAGS $GTK_CFLAGS"
12432 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12433 cat > conftest.$ac_ext <<EOF
a85030bd 12434#line 12435 "configure"
21d1c967
GD
12435#include "confdefs.h"
12436
12437#include <gtk/gtk.h>
12438#include <stdio.h>
12439
a0b9e27f
MB
12440int main() {
12441 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12442; return 0; }
12443EOF
a85030bd 12444if { (eval echo configure:12445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12445 rm -rf conftest*
21d1c967
GD
12446 echo "*** The test program compiled, but did not run. This usually means"
12447 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12448 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12449 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12450 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12451 echo "*** is required on your system"
12452 echo "***"
12453 echo "*** If you have an old version installed, it is best to remove it, although"
12454 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12455 echo "***"
12456 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12457 echo "*** came with the system with the command"
12458 echo "***"
a0b9e27f 12459 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12460else
a0b9e27f
MB
12461 echo "configure: failed program was:" >&5
12462 cat conftest.$ac_ext >&5
12463 rm -rf conftest*
12464 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12465 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12466 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 12467 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12468fi
a0b9e27f 12469rm -f conftest*
21d1c967
GD
12470 CFLAGS="$ac_save_CFLAGS"
12471 LIBS="$ac_save_LIBS"
12472 fi
12473 fi
12474 GTK_CFLAGS=""
12475 GTK_LIBS=""
12476 :
12477 fi
a0b9e27f
MB
12478
12479
21d1c967
GD
12480 rm -f conf.gtktest
12481
12482 fi
12483
12484 if test -z "$wx_cv_lib_gtk"; then
a0b9e27f 12485 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
12486if test "${with_gtk_prefix+set}" = set; then
12487 withval="$with_gtk_prefix"
12488 gtk_config_prefix="$withval"
12489else
12490 gtk_config_prefix=""
a0b9e27f 12491fi
f79bd02d 12492
21d1c967
GD
12493# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12494if test "${with_gtk_exec_prefix+set}" = set; then
12495 withval="$with_gtk_exec_prefix"
12496 gtk_config_exec_prefix="$withval"
12497else
12498 gtk_config_exec_prefix=""
a0b9e27f
MB
12499fi
12500
21d1c967
GD
12501# Check whether --enable-gtktest or --disable-gtktest was given.
12502if test "${enable_gtktest+set}" = set; then
12503 enableval="$enable_gtktest"
a0b9e27f 12504 :
90dd450c 12505else
21d1c967 12506 enable_gtktest=yes
a0b9e27f
MB
12507fi
12508
21d1c967
GD
12509
12510 for module in . $GTK_MODULES
12511 do
12512 case "$module" in
a0b9e27f 12513 gthread)
21d1c967
GD
12514 gtk_config_args="$gtk_config_args gthread"
12515 ;;
12516 esac
12517 done
12518
12519 if test x$gtk_config_exec_prefix != x ; then
12520 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12521 if test x${GTK_CONFIG+set} != xset ; then
12522 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12523 fi
12524 fi
12525 if test x$gtk_config_prefix != x ; then
12526 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12527 if test x${GTK_CONFIG+set} != xset ; then
12528 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12529 fi
12530 fi
12531
12532 # Extract the first word of "gtk-config", so it can be a program name with args.
12533set dummy gtk-config; ac_word=$2
a0b9e27f 12534echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a85030bd 12535echo "configure:12536: checking for $ac_word" >&5
a0b9e27f
MB
12536if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12537 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12538else
a0b9e27f
MB
12539 case "$GTK_CONFIG" in
12540 /*)
21d1c967
GD
12541 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12542 ;;
a0b9e27f
MB
12543 ?:/*)
12544 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12545 ;;
21d1c967 12546 *)
a0b9e27f
MB
12547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12548 ac_dummy="$PATH"
12549 for ac_dir in $ac_dummy; do
12550 test -z "$ac_dir" && ac_dir=.
12551 if test -f $ac_dir/$ac_word; then
12552 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12553 break
12554 fi
12555 done
12556 IFS="$ac_save_ifs"
21d1c967
GD
12557 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12558 ;;
12559esac
12560fi
a0b9e27f 12561GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
21d1c967 12562if test -n "$GTK_CONFIG"; then
a0b9e27f 12563 echo "$ac_t""$GTK_CONFIG" 1>&6
21d1c967 12564else
a0b9e27f 12565 echo "$ac_t""no" 1>&6
21d1c967
GD
12566fi
12567
12568 min_gtk_version=1.2.3
a0b9e27f 12569 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
a85030bd 12570echo "configure:12571: checking for GTK - version >= $min_gtk_version" >&5
21d1c967
GD
12571 no_gtk=""
12572 if test "$GTK_CONFIG" = "no" ; then
12573 no_gtk=yes
12574 else
12575 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12576 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12577 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12578 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12579 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12580 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12581 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12582 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12583 if test "x$enable_gtktest" = "xyes" ; then
12584 ac_save_CFLAGS="$CFLAGS"
12585 ac_save_LIBS="$LIBS"
12586 CFLAGS="$CFLAGS $GTK_CFLAGS"
12587 LIBS="$GTK_LIBS $LIBS"
12588 rm -f conf.gtktest
12589 if test "$cross_compiling" = yes; then
12590 echo $ac_n "cross compiling; assumed OK... $ac_c"
12591else
a0b9e27f 12592 cat > conftest.$ac_ext <<EOF
a85030bd 12593#line 12594 "configure"
f79bd02d 12594#include "confdefs.h"
21d1c967
GD
12595
12596#include <gtk/gtk.h>
12597#include <stdio.h>
12598#include <stdlib.h>
12599
a0b9e27f 12600int
21d1c967
GD
12601main ()
12602{
12603 int major, minor, micro;
12604 char *tmp_version;
12605
12606 system ("touch conf.gtktest");
12607
12608 /* HP/UX 9 (%@#!) writes to sscanf strings */
12609 tmp_version = g_strdup("$min_gtk_version");
12610 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12611 printf("%s, bad version string\n", "$min_gtk_version");
12612 exit(1);
12613 }
12614
12615 if ((gtk_major_version != $gtk_config_major_version) ||
12616 (gtk_minor_version != $gtk_config_minor_version) ||
12617 (gtk_micro_version != $gtk_config_micro_version))
12618 {
a0b9e27f 12619 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
12620 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12621 gtk_major_version, gtk_minor_version, gtk_micro_version);
12622 printf ("*** was found! If gtk-config was correct, then it is best\n");
12623 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12624 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12625 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12626 printf("*** required on your system.\n");
12627 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12628 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12629 printf("*** before re-running configure\n");
a0b9e27f 12630 }
21d1c967
GD
12631#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12632 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12633 (gtk_minor_version != GTK_MINOR_VERSION) ||
12634 (gtk_micro_version != GTK_MICRO_VERSION))
12635 {
12636 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12637 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12638 printf("*** library (version %d.%d.%d)\n",
12639 gtk_major_version, gtk_minor_version, gtk_micro_version);
12640 }
12641#endif /* defined (GTK_MAJOR_VERSION) ... */
12642 else
12643 {
12644 if ((gtk_major_version > major) ||
12645 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12646 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12647 {
12648 return 0;
12649 }
12650 else
12651 {
12652 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12653 gtk_major_version, gtk_minor_version, gtk_micro_version);
12654 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12655 major, minor, micro);
12656 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12657 printf("***\n");
12658 printf("*** If you have already installed a sufficiently new version, this error\n");
12659 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12660 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12661 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12662 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12663 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12664 printf("*** so that the correct libraries are found at run-time))\n");
12665 }
12666 }
12667 return 1;
12668}
12669
a0b9e27f 12670EOF
a85030bd 12671if { (eval echo configure:12672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f 12672then
21d1c967
GD
12673 :
12674else
a0b9e27f
MB
12675 echo "configure: failed program was:" >&5
12676 cat conftest.$ac_ext >&5
12677 rm -fr conftest*
12678 no_gtk=yes
21d1c967 12679fi
a0b9e27f 12680rm -fr conftest*
21d1c967 12681fi
a0b9e27f 12682
21d1c967
GD
12683 CFLAGS="$ac_save_CFLAGS"
12684 LIBS="$ac_save_LIBS"
12685 fi
12686 fi
12687 if test "x$no_gtk" = x ; then
a0b9e27f
MB
12688 echo "$ac_t""yes" 1>&6
12689 wx_cv_lib_gtk=1.2.3
21d1c967 12690 else
a0b9e27f 12691 echo "$ac_t""no" 1>&6
21d1c967
GD
12692 if test "$GTK_CONFIG" = "no" ; then
12693 echo "*** The gtk-config script installed by GTK could not be found"
12694 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12695 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12696 echo "*** full path to gtk-config."
12697 else
12698 if test -f conf.gtktest ; then
12699 :
12700 else
12701 echo "*** Could not run GTK test program, checking why..."
12702 CFLAGS="$CFLAGS $GTK_CFLAGS"
12703 LIBS="$LIBS $GTK_LIBS"
a0b9e27f 12704 cat > conftest.$ac_ext <<EOF
a85030bd 12705#line 12706 "configure"
21d1c967
GD
12706#include "confdefs.h"
12707
12708#include <gtk/gtk.h>
12709#include <stdio.h>
f79bd02d 12710
a0b9e27f
MB
12711int main() {
12712 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12713; return 0; }
12714EOF
a85030bd 12715if { (eval echo configure:12716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 12716 rm -rf conftest*
21d1c967
GD
12717 echo "*** The test program compiled, but did not run. This usually means"
12718 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12719 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12720 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12721 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12722 echo "*** is required on your system"
12723 echo "***"
12724 echo "*** If you have an old version installed, it is best to remove it, although"
12725 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12726 echo "***"
12727 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12728 echo "*** came with the system with the command"
12729 echo "***"
a0b9e27f 12730 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 12731else
a0b9e27f
MB
12732 echo "configure: failed program was:" >&5
12733 cat conftest.$ac_ext >&5
12734 rm -rf conftest*
12735 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
12736 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12737 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
a0b9e27f 12738 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 12739fi
a0b9e27f 12740rm -f conftest*
21d1c967
GD
12741 CFLAGS="$ac_save_CFLAGS"
12742 LIBS="$ac_save_LIBS"
12743 fi
12744 fi
12745 GTK_CFLAGS=""
12746 GTK_LIBS=""
12747 :
12748 fi
a0b9e27f
MB
12749
12750
21d1c967 12751 rm -f conf.gtktest
f79bd02d 12752
21d1c967
GD
12753 fi
12754
12755 if test -z "$wx_cv_lib_gtk"; then
12756 wx_cv_lib_gtk=none
12757 else
12758 wx_cv_cflags_gtk=$GTK_CFLAGS
12759 wx_cv_libs_gtk=$GTK_LIBS
12760 fi
a0b9e27f
MB
12761
12762
5c6fa7d2 12763fi
52127426 12764
8284b0c5 12765
21d1c967 12766 if test "$gtk_version_cached" = 1; then
a0b9e27f 12767 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
21d1c967
GD
12768 fi
12769
12770 case "$wx_cv_lib_gtk" in
12771 2.0) WXGTK20=1
12772 ;;
12773 1.2.7) WXGTK127=1
12774 WXGTK12=1
12775 ;;
12776 1.2.3) WXGTK12=1
12777 ;;
a0b9e27f 12778 *) { echo "configure: error:
247f5006
VZ
12779Please check that gtk-config is in path, the directory
12780where GTK+ libraries are installed (returned by
12781'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12782equivalent variable and GTK+ is version 1.2.3 or above.
a0b9e27f 12783 " 1>&2; exit 1; }
21d1c967
GD
12784 ;;
12785 esac
12786
b13cd66e
VZ
12787 if test "$WXGTK20" = 1; then
12788 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
a0b9e27f 12789
f09359cf
VS
12790 succeeded=no
12791
12792 if test -z "$PKG_CONFIG"; then
12793 # Extract the first word of "pkg-config", so it can be a program name with args.
12794set dummy pkg-config; ac_word=$2
a0b9e27f 12795echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a85030bd 12796echo "configure:12797: checking for $ac_word" >&5
a0b9e27f
MB
12797if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12798 echo $ac_n "(cached) $ac_c" 1>&6
f09359cf 12799else
a0b9e27f
MB
12800 case "$PKG_CONFIG" in
12801 /*)
f09359cf
VS
12802 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12803 ;;
a0b9e27f
MB
12804 ?:/*)
12805 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12806 ;;
f09359cf 12807 *)
a0b9e27f
MB
12808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12809 ac_dummy="$PATH"
12810 for ac_dir in $ac_dummy; do
12811 test -z "$ac_dir" && ac_dir=.
12812 if test -f $ac_dir/$ac_word; then
12813 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12814 break
12815 fi
12816 done
12817 IFS="$ac_save_ifs"
f09359cf
VS
12818 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12819 ;;
12820esac
12821fi
a0b9e27f 12822PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
f09359cf 12823if test -n "$PKG_CONFIG"; then
a0b9e27f 12824 echo "$ac_t""$PKG_CONFIG" 1>&6
f09359cf 12825else
a0b9e27f 12826 echo "$ac_t""no" 1>&6
f09359cf
VS
12827fi
12828
12829 fi
12830
12831 if test "$PKG_CONFIG" = "no" ; then
12832 echo "*** The pkg-config script could not be found. Make sure it is"
12833 echo "*** in your path, or set the PKG_CONFIG environment variable"
12834 echo "*** to the full path to pkg-config."
12835 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12836 else
12837 PKG_CONFIG_MIN_VERSION=0.9.0
12838 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
a0b9e27f 12839 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
a85030bd 12840echo "configure:12841: checking for pangoft2" >&5
f09359cf
VS
12841
12842 if $PKG_CONFIG --exists "pangoft2" ; then
a0b9e27f 12843 echo "$ac_t""yes" 1>&6
f09359cf
VS
12844 succeeded=yes
12845
a0b9e27f 12846 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
a85030bd 12847echo "configure:12848: checking PANGOFT2_CFLAGS" >&5
f09359cf 12848 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
a0b9e27f 12849 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
f09359cf 12850
a0b9e27f 12851 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
a85030bd 12852echo "configure:12853: checking PANGOFT2_LIBS" >&5
f09359cf 12853 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
a0b9e27f 12854 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
f09359cf
VS
12855 else
12856 PANGOFT2_CFLAGS=""
12857 PANGOFT2_LIBS=""
a0b9e27f 12858 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
12859 ## do set a variable so people can do so.
12860 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
a0b9e27f 12861
f09359cf
VS
12862 fi
12863
a0b9e27f
MB
12864
12865
f09359cf
VS
12866 else
12867 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12868 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12869 fi
12870 fi
12871
12872 if test $succeeded = yes; then
a0b9e27f 12873
b13cd66e
VZ
12874 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
12875 LIBS="$LIBS $PANGOFT2_LIBS"
a0b9e27f 12876
f09359cf 12877 else
a0b9e27f
MB
12878
12879 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
b13cd66e 12880 wxUSE_PRINTING_ARCHITECTURE="no"
a0b9e27f
MB
12881
12882
f09359cf
VS
12883 fi
12884
b13cd66e 12885 fi
f09359cf
VS
12886 fi
12887
21d1c967
GD
12888 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12889 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12890
12891 AFMINSTALL=afminstall
12892 TOOLKIT=GTK
12893 GUIDIST=GTK_DIST
12894
a0b9e27f 12895 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
a85030bd 12896echo "configure:12897: checking for gdk_im_open in -lgdk" >&5
a0b9e27f
MB
12897ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
12898if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12899 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 12900else
a0b9e27f 12901 ac_save_LIBS="$LIBS"
21d1c967 12902LIBS="-lgdk $LIBS"
a0b9e27f 12903cat > conftest.$ac_ext <<EOF
a85030bd 12904#line 12905 "configure"
90dd450c 12905#include "confdefs.h"
5c6fa7d2 12906/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 12907/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
12908 builtin and then its argument prototype would still apply. */
12909char gdk_im_open();
12910
12911int main() {
12912gdk_im_open()
12913; return 0; }
12914EOF
a85030bd 12915if { (eval echo configure:12916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
12916 rm -rf conftest*
12917 eval "ac_cv_lib_$ac_lib_var=yes"
12918else
12919 echo "configure: failed program was:" >&5
12920 cat conftest.$ac_ext >&5
12921 rm -rf conftest*
12922 eval "ac_cv_lib_$ac_lib_var=no"
12923fi
12924rm -f conftest*
12925LIBS="$ac_save_LIBS"
12926
12927fi
12928if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12929 echo "$ac_t""yes" 1>&6
12930 cat >> confdefs.h <<\EOF
21d1c967 12931#define HAVE_XIM 1
a0b9e27f 12932EOF
21d1c967 12933
a0b9e27f
MB
12934else
12935 echo "$ac_t""no" 1>&6
90dd450c 12936fi
1e6feb95 12937
21d1c967 12938 fi
1e6feb95 12939
21d1c967 12940 if test "$wxUSE_MGL" = 1; then
a0b9e27f 12941 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
a85030bd 12942echo "configure:12943: checking for SciTech MGL library" >&5
21d1c967 12943 if test "x$MGL_ROOT" = x ; then
a0b9e27f
MB
12944 echo "$ac_t""not found" 1>&6
12945 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
21d1c967 12946 else
a0b9e27f 12947 echo "$ac_t""$MGL_ROOT" 1>&6
21d1c967
GD
12948 fi
12949
12950 case "${host}" in
12951 *-*-linux* )
12952 mgl_os=linux/gcc/glibc
12953 ;;
12954 *-pc-msdosdjgpp )
12955 mgl_os=dos32/dj2
12956 ;;
12957 *)
a0b9e27f 12958 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
21d1c967 12959 esac
1e6feb95 12960
21d1c967 12961 mgl_lib_type=""
3fcdd07b 12962
21d1c967
GD
12963 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12964 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12965 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12966 mgl_lib_type=debug
12967 fi
12968 fi
12969 if test "x$mgl_lib_type" = x ; then
12970 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12971 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12972 mgl_lib_type=release
12973 else
a0b9e27f 12974 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
21d1c967 12975 fi
90dd450c 12976 fi
2224580a 12977
1d1b75ac
VZ
12978 wxUSE_UNIVERSAL="yes"
12979
21d1c967
GD
12980 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12981 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12982
90dd450c 12983 AFMINSTALL=afminstall
21d1c967
GD
12984 TOOLKIT=MGL
12985 GUIDIST=MGL_DIST
12986 fi
dad6c0ea 12987
21d1c967 12988 if test "$wxUSE_MICROWIN" = 1; then
a0b9e27f 12989 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
a85030bd 12990echo "configure:12991: checking for MicroWindows" >&5
21d1c967 12991 if test "x$MICROWINDOWS" = x ; then
a0b9e27f
MB
12992 echo "$ac_t""not found" 1>&6
12993 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
21d1c967 12994 else
a0b9e27f 12995 echo "$ac_t""$MICROWINDOWS" 1>&6
21d1c967 12996 fi
f6bcfd97 12997
21d1c967 12998 if test -f $MICROWINDOWS/lib/libmwin.a; then
a0b9e27f 12999 echo "$ac_t""MicroWindows' libraries found." 1>&6
21d1c967 13000 else
a0b9e27f 13001 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 13002 fi
0b2effe9 13003
21d1c967
GD
13004 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13005 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13006
1d1b75ac
VZ
13007 wxUSE_UNIVERSAL="yes"
13008
21d1c967
GD
13009 AFMINSTALL=afminstall
13010 TOOLKIT=MICROWIN
13011 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
13012
13013 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 13014 fi
f6bcfd97 13015
21d1c967 13016 if test "$wxUSE_X11" = 1; then
a0b9e27f
MB
13017 # If we find X, set shell vars x_includes and x_libraries to the
13018# paths, otherwise set no_x=yes.
13019# Uses ac_ vars as temps to allow command line to override cache and checks.
13020# --without-x overrides everything else, but does not touch the cache.
13021echo $ac_n "checking for X""... $ac_c" 1>&6
a85030bd 13022echo "configure:13023: checking for X" >&5
d8356fa3 13023
21d1c967
GD
13024# Check whether --with-x or --without-x was given.
13025if test "${with_x+set}" = set; then
13026 withval="$with_x"
a0b9e27f
MB
13027 :
13028fi
2224580a 13029
21d1c967
GD
13030# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13031if test "x$with_x" = xno; then
13032 # The user explicitly disabled X.
13033 have_x=disabled
13034else
13035 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13036 # Both variables are already set.
13037 have_x=yes
13038 else
a0b9e27f
MB
13039if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13040 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
13041else
13042 # One or both of the vars are not set, and there is no cached value.
a0b9e27f
MB
13043ac_x_includes=NO ac_x_libraries=NO
13044rm -fr conftestdir
13045if mkdir conftestdir; then
13046 cd conftestdir
21d1c967 13047 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
a0b9e27f 13048 cat > Imakefile <<'EOF'
21d1c967
GD
13049acfindx:
13050 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
a0b9e27f 13051EOF
21d1c967
GD
13052 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13053 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13054 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13055 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13056 for ac_extension in a so sl; do
13057 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
a0b9e27f 13058 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
13059 ac_im_usrlibdir=$ac_im_libdir; break
13060 fi
13061 done
13062 # Screen out bogus values from the imake configuration. They are
13063 # bogus both because they are the default anyway, and because
13064 # using them would break gcc on systems where it needs fixed includes.
a0b9e27f 13065 case "$ac_im_incroot" in
21d1c967 13066 /usr/include) ;;
a0b9e27f 13067 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
21d1c967 13068 esac
a0b9e27f 13069 case "$ac_im_usrlibdir" in
21d1c967 13070 /usr/lib | /lib) ;;
a0b9e27f 13071 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
21d1c967
GD
13072 esac
13073 fi
13074 cd ..
a0b9e27f 13075 rm -fr conftestdir
21d1c967 13076fi
10f2d63a 13077
a0b9e27f
MB
13078if test "$ac_x_includes" = NO; then
13079 # Guess where to find include files, by looking for this one X11 .h file.
13080 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13081
21d1c967 13082 # First, try using that file with no special directory specified.
a0b9e27f 13083cat > conftest.$ac_ext <<EOF
a85030bd 13084#line 13085 "configure"
21d1c967 13085#include "confdefs.h"
a0b9e27f
MB
13086#include <$x_direct_test_include>
13087EOF
13088ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 13089{ (eval echo configure:13090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
13090ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13091if test -z "$ac_err"; then
13092 rm -rf conftest*
21d1c967
GD
13093 # We can compile using X headers with no special include directory.
13094ac_x_includes=
90dd450c 13095else
a0b9e27f
MB
13096 echo "$ac_err" >&5
13097 echo "configure: failed program was:" >&5
90dd450c 13098 cat conftest.$ac_ext >&5
a0b9e27f
MB
13099 rm -rf conftest*
13100 # Look for the header file in a standard set of common directories.
13101# Check X11 before X11Rn because it is often a symlink to the current release.
13102 for ac_dir in \
13103 /usr/X11/include \
13104 /usr/X11R6/include \
13105 /usr/X11R5/include \
13106 /usr/X11R4/include \
13107 \
13108 /usr/include/X11 \
13109 /usr/include/X11R6 \
13110 /usr/include/X11R5 \
13111 /usr/include/X11R4 \
13112 \
13113 /usr/local/X11/include \
13114 /usr/local/X11R6/include \
13115 /usr/local/X11R5/include \
13116 /usr/local/X11R4/include \
13117 \
13118 /usr/local/include/X11 \
13119 /usr/local/include/X11R6 \
13120 /usr/local/include/X11R5 \
13121 /usr/local/include/X11R4 \
13122 \
13123 /usr/X386/include \
13124 /usr/x386/include \
13125 /usr/XFree86/include/X11 \
13126 \
13127 /usr/include \
13128 /usr/local/include \
13129 /usr/unsupported/include \
13130 /usr/athena/include \
13131 /usr/local/x11r5/include \
13132 /usr/lpp/Xamples/include \
13133 \
13134 /usr/openwin/include \
13135 /usr/openwin/share/include \
13136 ; \
13137 do
13138 if test -r "$ac_dir/$x_direct_test_include"; then
13139 ac_x_includes=$ac_dir
13140 break
13141 fi
13142 done
3a922bb4 13143fi
a0b9e27f
MB
13144rm -f conftest*
13145fi # $ac_x_includes = NO
10f2d63a 13146
a0b9e27f 13147if test "$ac_x_libraries" = NO; then
21d1c967 13148 # Check for the libraries.
a0b9e27f
MB
13149
13150 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13151 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13152
21d1c967
GD
13153 # See if we find them without any special options.
13154 # Don't add to $LIBS permanently.
a0b9e27f
MB
13155 ac_save_LIBS="$LIBS"
13156 LIBS="-l$x_direct_test_library $LIBS"
13157cat > conftest.$ac_ext <<EOF
a85030bd 13158#line 13159 "configure"
3a922bb4 13159#include "confdefs.h"
a0b9e27f
MB
13160
13161int main() {
13162${x_direct_test_function}()
13163; return 0; }
13164EOF
a85030bd 13165if { (eval echo configure:13166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13166 rm -rf conftest*
13167 LIBS="$ac_save_LIBS"
21d1c967
GD
13168# We can link X programs with no special library path.
13169ac_x_libraries=
3a922bb4 13170else
a0b9e27f
MB
13171 echo "configure: failed program was:" >&5
13172 cat conftest.$ac_ext >&5
13173 rm -rf conftest*
13174 LIBS="$ac_save_LIBS"
13175# First see if replacing the include by lib works.
13176# Check X11 before X11Rn because it is often a symlink to the current release.
13177for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13178 /usr/X11/lib \
13179 /usr/X11R6/lib \
13180 /usr/X11R5/lib \
13181 /usr/X11R4/lib \
13182 \
13183 /usr/lib/X11 \
13184 /usr/lib/X11R6 \
13185 /usr/lib/X11R5 \
13186 /usr/lib/X11R4 \
13187 \
13188 /usr/local/X11/lib \
13189 /usr/local/X11R6/lib \
13190 /usr/local/X11R5/lib \
13191 /usr/local/X11R4/lib \
13192 \
13193 /usr/local/lib/X11 \
13194 /usr/local/lib/X11R6 \
13195 /usr/local/lib/X11R5 \
13196 /usr/local/lib/X11R4 \
13197 \
13198 /usr/X386/lib \
13199 /usr/x386/lib \
13200 /usr/XFree86/lib/X11 \
13201 \
13202 /usr/lib \
13203 /usr/local/lib \
13204 /usr/unsupported/lib \
13205 /usr/athena/lib \
13206 /usr/local/x11r5/lib \
13207 /usr/lpp/Xamples/lib \
13208 /lib/usr/lib/X11 \
13209 \
13210 /usr/openwin/lib \
13211 /usr/openwin/share/lib \
13212 ; \
21d1c967
GD
13213do
13214 for ac_extension in a so sl; do
a0b9e27f 13215 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
21d1c967
GD
13216 ac_x_libraries=$ac_dir
13217 break 2
13218 fi
13219 done
13220done
3a922bb4 13221fi
a0b9e27f
MB
13222rm -f conftest*
13223fi # $ac_x_libraries = NO
90dd450c 13224
a0b9e27f 13225if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
21d1c967
GD
13226 # Didn't find X anywhere. Cache the known absence of X.
13227 ac_cv_have_x="have_x=no"
13228else
13229 # Record where we found X for the cache.
13230 ac_cv_have_x="have_x=yes \
13231 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 13232fi
21d1c967
GD
13233fi
13234 fi
13235 eval "$ac_cv_have_x"
13236fi # $with_x != no
90dd450c 13237
21d1c967 13238if test "$have_x" != yes; then
a0b9e27f 13239 echo "$ac_t""$have_x" 1>&6
21d1c967
GD
13240 no_x=yes
13241else
13242 # If each of the values was on the command line, it overrides each guess.
13243 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13244 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13245 # Update the cache value to reflect the command line values.
13246 ac_cv_have_x="have_x=yes \
13247 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
a0b9e27f 13248 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
21d1c967 13249fi
90dd450c 13250
21d1c967 13251if test "$no_x" = yes; then
90dd450c 13252 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 13253 cat >> confdefs.h <<\EOF
90dd450c 13254#define X_DISPLAY_MISSING 1
a0b9e27f 13255EOF
90dd450c
VZ
13256
13257 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13258else
13259 if test -n "$x_includes"; then
13260 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 13261 fi
3a922bb4 13262
90dd450c
VZ
13263 # It would also be nice to do this for all -L options, not just this one.
13264 if test -n "$x_libraries"; then
13265 X_LIBS="$X_LIBS -L$x_libraries"
13266 # For Solaris; some versions of Sun CC require a space after -R and
13267 # others require no space. Words are not sufficient . . . .
a0b9e27f 13268 case "`(uname -sr) 2>/dev/null`" in
90dd450c 13269 "SunOS 5"*)
a0b9e27f 13270 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
a85030bd 13271echo "configure:13272: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
13272 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13273 cat > conftest.$ac_ext <<EOF
a85030bd 13274#line 13275 "configure"
90dd450c
VZ
13275#include "confdefs.h"
13276
a0b9e27f 13277int main() {
90dd450c 13278
a0b9e27f
MB
13279; return 0; }
13280EOF
a85030bd 13281if { (eval echo configure:13282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13282 rm -rf conftest*
90dd450c 13283 ac_R_nospace=yes
3a922bb4 13284else
a0b9e27f
MB
13285 echo "configure: failed program was:" >&5
13286 cat conftest.$ac_ext >&5
13287 rm -rf conftest*
13288 ac_R_nospace=no
3a922bb4 13289fi
a0b9e27f 13290rm -f conftest*
90dd450c 13291 if test $ac_R_nospace = yes; then
a0b9e27f 13292 echo "$ac_t""no" 1>&6
90dd450c
VZ
13293 X_LIBS="$X_LIBS -R$x_libraries"
13294 else
13295 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 13296 cat > conftest.$ac_ext <<EOF
a85030bd 13297#line 13298 "configure"
90dd450c 13298#include "confdefs.h"
3a922bb4 13299
a0b9e27f 13300int main() {
6f754473 13301
a0b9e27f
MB
13302; return 0; }
13303EOF
a85030bd 13304if { (eval echo configure:13305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 13305 rm -rf conftest*
90dd450c
VZ
13306 ac_R_space=yes
13307else
a0b9e27f
MB
13308 echo "configure: failed program was:" >&5
13309 cat conftest.$ac_ext >&5
13310 rm -rf conftest*
13311 ac_R_space=no
90dd450c 13312fi
a0b9e27f 13313rm -f conftest*
90dd450c 13314 if test $ac_R_space = yes; then
a0b9e27f 13315 echo "$ac_t""yes" 1>&6
90dd450c
VZ
13316 X_LIBS="$X_LIBS -R $x_libraries"
13317 else
a0b9e27f 13318 echo "$ac_t""neither works" 1>&6
90dd450c
VZ
13319 fi
13320 fi
a0b9e27f 13321 LIBS="$ac_xsave_LIBS"
90dd450c
VZ
13322 esac
13323 fi
13324
13325 # Check for system-dependent libraries X programs must link with.
13326 # Do this before checking for the system-independent R6 libraries
13327 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 13328
90dd450c
VZ
13329 if test "$ISC" = yes; then
13330 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13331 else
a0b9e27f
MB
13332 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13333 # libraries were built with DECnet support. And karl@cs.umb.edu says
90dd450c 13334 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 13335 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
a85030bd 13336echo "configure:13337: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
13337ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13338if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13339 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 13340else
a0b9e27f 13341 ac_save_LIBS="$LIBS"
247f5006 13342LIBS="-ldnet $LIBS"
a0b9e27f 13343cat > conftest.$ac_ext <<EOF
a85030bd 13344#line 13345 "configure"
247f5006 13345#include "confdefs.h"
247f5006 13346/* Override any gcc2 internal prototype to avoid an error. */
247f5006 13347/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13348 builtin and then its argument prototype would still apply. */
13349char dnet_ntoa();
13350
13351int main() {
13352dnet_ntoa()
13353; return 0; }
13354EOF
a85030bd 13355if { (eval echo configure:13356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13356 rm -rf conftest*
13357 eval "ac_cv_lib_$ac_lib_var=yes"
13358else
13359 echo "configure: failed program was:" >&5
13360 cat conftest.$ac_ext >&5
13361 rm -rf conftest*
13362 eval "ac_cv_lib_$ac_lib_var=no"
13363fi
13364rm -f conftest*
13365LIBS="$ac_save_LIBS"
13366
13367fi
13368if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13369 echo "$ac_t""yes" 1>&6
90dd450c 13370 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
13371else
13372 echo "$ac_t""no" 1>&6
3a922bb4
RL
13373fi
13374
90dd450c 13375 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 13376 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
a85030bd 13377echo "configure:13378: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
13378ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13379if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13380 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13381else
a0b9e27f 13382 ac_save_LIBS="$LIBS"
90dd450c 13383LIBS="-ldnet_stub $LIBS"
a0b9e27f 13384cat > conftest.$ac_ext <<EOF
a85030bd 13385#line 13386 "configure"
90dd450c
VZ
13386#include "confdefs.h"
13387/* Override any gcc2 internal prototype to avoid an error. */
13388/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13389 builtin and then its argument prototype would still apply. */
13390char dnet_ntoa();
13391
13392int main() {
13393dnet_ntoa()
13394; return 0; }
13395EOF
a85030bd 13396if { (eval echo configure:13397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13397 rm -rf conftest*
13398 eval "ac_cv_lib_$ac_lib_var=yes"
13399else
13400 echo "configure: failed program was:" >&5
13401 cat conftest.$ac_ext >&5
13402 rm -rf conftest*
13403 eval "ac_cv_lib_$ac_lib_var=no"
13404fi
13405rm -f conftest*
13406LIBS="$ac_save_LIBS"
13407
13408fi
13409if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13410 echo "$ac_t""yes" 1>&6
90dd450c 13411 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
13412else
13413 echo "$ac_t""no" 1>&6
3a922bb4
RL
13414fi
13415
90dd450c 13416 fi
978f1259 13417
90dd450c
VZ
13418 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13419 # to get the SysV transport functions.
a0b9e27f 13420 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
13421 # needs -lnsl.
13422 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
13423 # on Irix 5.2, according to dickey@clark.net.
13424 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
a85030bd 13425echo "configure:13426: checking for gethostbyname" >&5
a0b9e27f
MB
13426if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13427 echo $ac_n "(cached) $ac_c" 1>&6
13428else
13429 cat > conftest.$ac_ext <<EOF
a85030bd 13430#line 13431 "configure"
90dd450c
VZ
13431#include "confdefs.h"
13432/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13433 which can conflict with char gethostbyname(); below. */
90dd450c
VZ
13434#include <assert.h>
13435/* Override any gcc2 internal prototype to avoid an error. */
13436/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13437 builtin and then its argument prototype would still apply. */
13438char gethostbyname();
13439
13440int main() {
13441
90dd450c
VZ
13442/* The GNU C library defines this for functions which it implements
13443 to always fail with ENOSYS. Some functions are actually named
13444 something starting with __ and the normal name is an alias. */
13445#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13446choke me
13447#else
a0b9e27f 13448gethostbyname();
90dd450c 13449#endif
978f1259 13450
a0b9e27f
MB
13451; return 0; }
13452EOF
a85030bd 13453if { (eval echo configure:13454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13454 rm -rf conftest*
13455 eval "ac_cv_func_gethostbyname=yes"
13456else
13457 echo "configure: failed program was:" >&5
13458 cat conftest.$ac_ext >&5
13459 rm -rf conftest*
13460 eval "ac_cv_func_gethostbyname=no"
13461fi
13462rm -f conftest*
13463fi
13464
13465if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13466 echo "$ac_t""yes" 1>&6
13467 :
13468else
13469 echo "$ac_t""no" 1>&6
13470fi
698dcdb6 13471
90dd450c 13472 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 13473 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
a85030bd 13474echo "configure:13475: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
13475ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13476if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13477 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13478else
a0b9e27f 13479 ac_save_LIBS="$LIBS"
90dd450c 13480LIBS="-lnsl $LIBS"
a0b9e27f 13481cat > conftest.$ac_ext <<EOF
a85030bd 13482#line 13483 "configure"
90dd450c
VZ
13483#include "confdefs.h"
13484/* Override any gcc2 internal prototype to avoid an error. */
13485/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13486 builtin and then its argument prototype would still apply. */
13487char gethostbyname();
5c6fa7d2 13488
a0b9e27f
MB
13489int main() {
13490gethostbyname()
13491; return 0; }
13492EOF
a85030bd 13493if { (eval echo configure:13494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13494 rm -rf conftest*
13495 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 13496else
a0b9e27f
MB
13497 echo "configure: failed program was:" >&5
13498 cat conftest.$ac_ext >&5
13499 rm -rf conftest*
13500 eval "ac_cv_lib_$ac_lib_var=no"
13501fi
13502rm -f conftest*
13503LIBS="$ac_save_LIBS"
247f5006 13504
a0b9e27f
MB
13505fi
13506if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13507 echo "$ac_t""yes" 1>&6
13508 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13509else
13510 echo "$ac_t""no" 1>&6
90dd450c 13511fi
b12915c1 13512
90dd450c
VZ
13513 fi
13514
13515 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13516 # socket/setsockopt and other routines are undefined under SCO ODT
13517 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
13518 # on later versions), says simon@lia.di.epfl.ch: it contains
13519 # gethostby* variants that don't use the nameserver (or something).
13520 # -lsocket must be given before -lnsl if both are needed.
13521 # We assume that if connect needs -lnsl, so does gethostbyname.
13522 echo $ac_n "checking for connect""... $ac_c" 1>&6
a85030bd 13523echo "configure:13524: checking for connect" >&5
a0b9e27f
MB
13524if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13525 echo $ac_n "(cached) $ac_c" 1>&6
13526else
13527 cat > conftest.$ac_ext <<EOF
a85030bd 13528#line 13529 "configure"
55e80573 13529#include "confdefs.h"
90dd450c 13530/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13531 which can conflict with char connect(); below. */
90dd450c
VZ
13532#include <assert.h>
13533/* Override any gcc2 internal prototype to avoid an error. */
13534/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13535 builtin and then its argument prototype would still apply. */
13536char connect();
13537
13538int main() {
13539
90dd450c
VZ
13540/* The GNU C library defines this for functions which it implements
13541 to always fail with ENOSYS. Some functions are actually named
13542 something starting with __ and the normal name is an alias. */
13543#if defined (__stub_connect) || defined (__stub___connect)
13544choke me
13545#else
a0b9e27f 13546connect();
90dd450c
VZ
13547#endif
13548
a0b9e27f
MB
13549; return 0; }
13550EOF
a85030bd 13551if { (eval echo configure:13552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13552 rm -rf conftest*
13553 eval "ac_cv_func_connect=yes"
13554else
13555 echo "configure: failed program was:" >&5
13556 cat conftest.$ac_ext >&5
13557 rm -rf conftest*
13558 eval "ac_cv_func_connect=no"
13559fi
13560rm -f conftest*
13561fi
13562
13563if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13564 echo "$ac_t""yes" 1>&6
13565 :
13566else
13567 echo "$ac_t""no" 1>&6
13568fi
55e80573 13569
90dd450c 13570 if test $ac_cv_func_connect = no; then
a0b9e27f 13571 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
a85030bd 13572echo "configure:13573: checking for connect in -lsocket" >&5
a0b9e27f
MB
13573ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13574if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13575 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13576else
a0b9e27f 13577 ac_save_LIBS="$LIBS"
90dd450c 13578LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 13579cat > conftest.$ac_ext <<EOF
a85030bd 13580#line 13581 "configure"
90dd450c
VZ
13581#include "confdefs.h"
13582/* Override any gcc2 internal prototype to avoid an error. */
13583/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13584 builtin and then its argument prototype would still apply. */
13585char connect();
13586
13587int main() {
13588connect()
13589; return 0; }
13590EOF
a85030bd 13591if { (eval echo configure:13592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13592 rm -rf conftest*
13593 eval "ac_cv_lib_$ac_lib_var=yes"
13594else
13595 echo "configure: failed program was:" >&5
13596 cat conftest.$ac_ext >&5
13597 rm -rf conftest*
13598 eval "ac_cv_lib_$ac_lib_var=no"
13599fi
13600rm -f conftest*
13601LIBS="$ac_save_LIBS"
13602
13603fi
13604if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13605 echo "$ac_t""yes" 1>&6
90dd450c 13606 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
13607else
13608 echo "$ac_t""no" 1>&6
90dd450c 13609fi
77e13408 13610
90dd450c 13611 fi
25d0687a 13612
a0b9e27f
MB
13613 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13614 echo $ac_n "checking for remove""... $ac_c" 1>&6
a85030bd 13615echo "configure:13616: checking for remove" >&5
a0b9e27f
MB
13616if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13617 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13618else
a0b9e27f 13619 cat > conftest.$ac_ext <<EOF
a85030bd 13620#line 13621 "configure"
90dd450c
VZ
13621#include "confdefs.h"
13622/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13623 which can conflict with char remove(); below. */
90dd450c
VZ
13624#include <assert.h>
13625/* Override any gcc2 internal prototype to avoid an error. */
13626/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13627 builtin and then its argument prototype would still apply. */
13628char remove();
13629
13630int main() {
13631
90dd450c
VZ
13632/* The GNU C library defines this for functions which it implements
13633 to always fail with ENOSYS. Some functions are actually named
13634 something starting with __ and the normal name is an alias. */
13635#if defined (__stub_remove) || defined (__stub___remove)
13636choke me
13637#else
a0b9e27f 13638remove();
90dd450c 13639#endif
55e80573 13640
a0b9e27f
MB
13641; return 0; }
13642EOF
a85030bd 13643if { (eval echo configure:13644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13644 rm -rf conftest*
13645 eval "ac_cv_func_remove=yes"
13646else
13647 echo "configure: failed program was:" >&5
13648 cat conftest.$ac_ext >&5
13649 rm -rf conftest*
13650 eval "ac_cv_func_remove=no"
13651fi
13652rm -f conftest*
13653fi
13654
13655if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13656 echo "$ac_t""yes" 1>&6
13657 :
13658else
13659 echo "$ac_t""no" 1>&6
13660fi
10f2d63a 13661
90dd450c 13662 if test $ac_cv_func_remove = no; then
a0b9e27f 13663 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
a85030bd 13664echo "configure:13665: checking for remove in -lposix" >&5
a0b9e27f
MB
13665ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13666if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13667 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13668else
a0b9e27f 13669 ac_save_LIBS="$LIBS"
90dd450c 13670LIBS="-lposix $LIBS"
a0b9e27f 13671cat > conftest.$ac_ext <<EOF
a85030bd 13672#line 13673 "configure"
90dd450c
VZ
13673#include "confdefs.h"
13674/* Override any gcc2 internal prototype to avoid an error. */
13675/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13676 builtin and then its argument prototype would still apply. */
13677char remove();
13678
13679int main() {
13680remove()
13681; return 0; }
13682EOF
a85030bd 13683if { (eval echo configure:13684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13684 rm -rf conftest*
13685 eval "ac_cv_lib_$ac_lib_var=yes"
13686else
13687 echo "configure: failed program was:" >&5
13688 cat conftest.$ac_ext >&5
13689 rm -rf conftest*
13690 eval "ac_cv_lib_$ac_lib_var=no"
13691fi
13692rm -f conftest*
13693LIBS="$ac_save_LIBS"
13694
13695fi
13696if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13697 echo "$ac_t""yes" 1>&6
90dd450c 13698 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
13699else
13700 echo "$ac_t""no" 1>&6
90dd450c 13701fi
f6bcfd97 13702
6fa882bd
RR
13703 fi
13704
90dd450c 13705 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 13706 echo $ac_n "checking for shmat""... $ac_c" 1>&6
a85030bd 13707echo "configure:13708: checking for shmat" >&5
a0b9e27f
MB
13708if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13709 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 13710else
a0b9e27f 13711 cat > conftest.$ac_ext <<EOF
a85030bd 13712#line 13713 "configure"
90dd450c
VZ
13713#include "confdefs.h"
13714/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 13715 which can conflict with char shmat(); below. */
90dd450c
VZ
13716#include <assert.h>
13717/* Override any gcc2 internal prototype to avoid an error. */
13718/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13719 builtin and then its argument prototype would still apply. */
13720char shmat();
13721
13722int main() {
13723
90dd450c
VZ
13724/* The GNU C library defines this for functions which it implements
13725 to always fail with ENOSYS. Some functions are actually named
13726 something starting with __ and the normal name is an alias. */
13727#if defined (__stub_shmat) || defined (__stub___shmat)
13728choke me
13729#else
a0b9e27f 13730shmat();
90dd450c 13731#endif
10f2d63a 13732
a0b9e27f
MB
13733; return 0; }
13734EOF
a85030bd 13735if { (eval echo configure:13736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13736 rm -rf conftest*
13737 eval "ac_cv_func_shmat=yes"
13738else
13739 echo "configure: failed program was:" >&5
13740 cat conftest.$ac_ext >&5
13741 rm -rf conftest*
13742 eval "ac_cv_func_shmat=no"
13743fi
13744rm -f conftest*
13745fi
13746
13747if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13748 echo "$ac_t""yes" 1>&6
13749 :
13750else
13751 echo "$ac_t""no" 1>&6
13752fi
d08b457b 13753
90dd450c 13754 if test $ac_cv_func_shmat = no; then
a0b9e27f 13755 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
a85030bd 13756echo "configure:13757: checking for shmat in -lipc" >&5
a0b9e27f
MB
13757ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13758if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13759 echo $ac_n "(cached) $ac_c" 1>&6
d08b457b 13760else
a0b9e27f 13761 ac_save_LIBS="$LIBS"
90dd450c 13762LIBS="-lipc $LIBS"
a0b9e27f 13763cat > conftest.$ac_ext <<EOF
a85030bd 13764#line 13765 "configure"
90dd450c 13765#include "confdefs.h"
8284b0c5 13766/* Override any gcc2 internal prototype to avoid an error. */
90dd450c 13767/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13768 builtin and then its argument prototype would still apply. */
13769char shmat();
13770
13771int main() {
13772shmat()
13773; return 0; }
13774EOF
a85030bd 13775if { (eval echo configure:13776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13776 rm -rf conftest*
13777 eval "ac_cv_lib_$ac_lib_var=yes"
13778else
13779 echo "configure: failed program was:" >&5
13780 cat conftest.$ac_ext >&5
13781 rm -rf conftest*
13782 eval "ac_cv_lib_$ac_lib_var=no"
13783fi
13784rm -f conftest*
13785LIBS="$ac_save_LIBS"
13786
13787fi
13788if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13789 echo "$ac_t""yes" 1>&6
90dd450c 13790 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
13791else
13792 echo "$ac_t""no" 1>&6
d08b457b
GD
13793fi
13794
d558c907 13795 fi
90dd450c 13796 fi
3a922bb4 13797
90dd450c 13798 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 13799 ac_save_LDFLAGS="$LDFLAGS"
90dd450c
VZ
13800 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13801 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13802 # check for ICE first), but we must link in the order -lSM -lICE or
13803 # we get undefined symbols. So assume we have SM if we have ICE.
13804 # These have to be linked with before -lX11, unlike the other
13805 # libraries we check for below, so use a different variable.
a0b9e27f
MB
13806 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13807 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
a85030bd 13808echo "configure:13809: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
13809ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13810if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13811 echo $ac_n "(cached) $ac_c" 1>&6
13812else
13813 ac_save_LIBS="$LIBS"
f09359cf 13814LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 13815cat > conftest.$ac_ext <<EOF
a85030bd 13816#line 13817 "configure"
9cfadba2 13817#include "confdefs.h"
90dd450c
VZ
13818/* Override any gcc2 internal prototype to avoid an error. */
13819/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
13820 builtin and then its argument prototype would still apply. */
13821char IceConnectionNumber();
13822
13823int main() {
13824IceConnectionNumber()
13825; return 0; }
13826EOF
a85030bd 13827if { (eval echo configure:13828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
13828 rm -rf conftest*
13829 eval "ac_cv_lib_$ac_lib_var=yes"
13830else
13831 echo "configure: failed program was:" >&5
13832 cat conftest.$ac_ext >&5
13833 rm -rf conftest*
13834 eval "ac_cv_lib_$ac_lib_var=no"
13835fi
13836rm -f conftest*
13837LIBS="$ac_save_LIBS"
13838
13839fi
13840if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13841 echo "$ac_t""yes" 1>&6
90dd450c 13842 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
13843else
13844 echo "$ac_t""no" 1>&6
9cfadba2 13845fi
10f2d63a 13846
a0b9e27f 13847 LDFLAGS="$ac_save_LDFLAGS"
90dd450c
VZ
13848
13849fi
13850
8284b0c5 13851
90dd450c 13852 if test "$no_x" = "yes"; then
a0b9e27f 13853 { echo "configure: error: X11 not found" 1>&2; exit 1; }
90dd450c
VZ
13854 fi
13855
13856 GUI_TK_LIBRARY="$X_LIBS"
13857 TOOLKIT_INCLUDE="$X_CFLAGS"
13858 AFMINSTALL=afminstall
13859 COMPILED_X_PROGRAM=0
13860
21d1c967 13861 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 13862 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
a85030bd 13863echo "configure:13864: checking for MicroWindows/NanoX distribution" >&5
21d1c967 13864 if test "x$MICROWIN" = x ; then
a0b9e27f
MB
13865 echo "$ac_t""not found" 1>&6
13866 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 13867 else
a0b9e27f
MB
13868 echo "$ac_t""$MICROWIN" 1>&6
13869 cat >> confdefs.h <<\EOF
21d1c967 13870#define wxUSE_NANOX 1
a0b9e27f 13871EOF
21d1c967 13872
90dd450c
VZ
13873 fi
13874 fi
13875
13876 xpm_link=
a0b9e27f 13877 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
a85030bd 13878echo "configure:13879: checking for Xpm library" >&5
a0b9e27f 13879
90dd450c
VZ
13880ac_find_libraries=
13881for ac_dir in $SEARCH_LIB;
13882 do
13883 for ac_extension in a so sl dylib; do
13884 if test -f "$ac_dir/libXpm.$ac_extension"; then
13885 ac_find_libraries=$ac_dir
13886 break 2
13887 fi
13888 done
13889 done
13890
13891 if test "$ac_find_libraries" != "" ; then
a0b9e27f 13892
90dd450c
VZ
13893 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13894 result=$?
13895 if test $result = 0; then
13896 ac_path_to_link=""
13897 else
13898 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 13899 fi
90dd450c 13900
21d1c967
GD
13901 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13902 xpm_link=" -lXpm"
a0b9e27f 13903 cat >> confdefs.h <<\EOF
21d1c967 13904#define wxHAVE_LIB_XPM 1
a0b9e27f 13905EOF
90dd450c 13906
a0b9e27f 13907 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 13908 else
a0b9e27f 13909 cat > conftest.$ac_ext <<EOF
a85030bd 13910#line 13911 "configure"
21d1c967 13911#include "confdefs.h"
90dd450c 13912
21d1c967 13913 #include <X11/xpm.h>
a0b9e27f
MB
13914
13915int main() {
6f72b082 13916
21d1c967
GD
13917 int version;
13918 version = XpmLibraryVersion();
a0b9e27f
MB
13919
13920; return 0; }
13921EOF
a85030bd 13922if { (eval echo configure:13923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
13923 rm -rf conftest*
13924
21d1c967 13925 xpm_link=" -lXpm"
a0b9e27f 13926 cat >> confdefs.h <<\EOF
21d1c967 13927#define wxHAVE_LIB_XPM 1
a0b9e27f 13928EOF
90dd450c 13929
a0b9e27f 13930 echo "$ac_t""found in default search path" 1>&6
21d1c967 13931 COMPILED_X_PROGRAM=0
a0b9e27f 13932
21d1c967 13933else
a0b9e27f
MB
13934 echo "configure: failed program was:" >&5
13935 cat conftest.$ac_ext >&5
13936 rm -rf conftest*
13937
13938 echo "$ac_t""no" 1>&6
13939 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13940
13941
6f72b082 13942fi
a0b9e27f 13943rm -f conftest*
21d1c967 13944 fi
90dd450c 13945
1d1b75ac
VZ
13946 wxUSE_UNIVERSAL="yes"
13947
21d1c967
GD
13948 if test "$wxUSE_NANOX" = "yes"; then
13949 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13950 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"
13951 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13952 else
13953 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13954 fi
6f72b082 13955
21d1c967
GD
13956 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13957 TOOLKIT=X11
13958 GUIDIST=X11_DIST
13959 fi
90dd450c 13960
21d1c967 13961 if test "$wxUSE_WINE" = 1; then
a0b9e27f
MB
13962 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13963echo $ac_n "checking for windows.h""... $ac_c" 1>&6
a85030bd 13964echo "configure:13965: checking for windows.h" >&5
a0b9e27f
MB
13965if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13966 echo $ac_n "(cached) $ac_c" 1>&6
13967else
13968 cat > conftest.$ac_ext <<EOF
a85030bd 13969#line 13970 "configure"
247f5006
VZ
13970#include "confdefs.h"
13971#include <windows.h>
a0b9e27f
MB
13972EOF
13973ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 13974{ (eval echo configure:13975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
13975ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13976if test -z "$ac_err"; then
13977 rm -rf conftest*
13978 eval "ac_cv_header_$ac_safe=yes"
13979else
13980 echo "$ac_err" >&5
13981 echo "configure: failed program was:" >&5
10f2d63a 13982 cat conftest.$ac_ext >&5
a0b9e27f
MB
13983 rm -rf conftest*
13984 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13985fi
a0b9e27f 13986rm -f conftest*
10f2d63a 13987fi
a0b9e27f
MB
13988if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13989 echo "$ac_t""yes" 1>&6
21d1c967
GD
13990 :
13991else
a0b9e27f 13992 echo "$ac_t""no" 1>&6
21d1c967 13993
a0b9e27f
MB
13994 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13995
5c6fa7d2 13996fi
7b4a847f 13997
5c6fa7d2 13998
8284b0c5 13999 xpm_link=
a0b9e27f 14000 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
a85030bd 14001echo "configure:14002: checking for Xpm library" >&5
a0b9e27f 14002
90dd450c
VZ
14003ac_find_libraries=
14004for ac_dir in $SEARCH_LIB;
14005 do
14006 for ac_extension in a so sl dylib; do
21d1c967 14007 if test -f "$ac_dir/libXpm.$ac_extension"; then
90dd450c
VZ
14008 ac_find_libraries=$ac_dir
14009 break 2
14010 fi
14011 done
14012 done
14013
21d1c967
GD
14014 if test "$ac_find_libraries" != "" ; then
14015 GUI_TK_LIBRARY="-L$ac_find_libraries"
14016 xpm_link=" -lXpm"
a0b9e27f 14017 cat >> confdefs.h <<\EOF
21d1c967 14018#define wxHAVE_LIB_XPM 1
a0b9e27f 14019EOF
90dd450c 14020
a0b9e27f 14021 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14022 else
a0b9e27f
MB
14023 echo "$ac_t""no" 1>&6
14024 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
21d1c967
GD
14025 fi
14026
14027 mesa_link=
a0b9e27f 14028 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
a85030bd 14029echo "configure:14030: checking for Mesa library" >&5
a0b9e27f 14030
90dd450c
VZ
14031ac_find_libraries=
14032for ac_dir in $SEARCH_LIB;
14033 do
14034 for ac_extension in a so sl dylib; do
14035 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14036 ac_find_libraries=$ac_dir
14037 break 2
14038 fi
14039 done
14040 done
14041
21d1c967
GD
14042 if test "$ac_find_libraries" != "" ; then
14043 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
14044 mesa_link=" -lMesaGL"
a0b9e27f 14045 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14046 else
3bce6687
JS
14047 mesa_link=""
14048 echo "$ac_t""no" 1>&6
14049 echo "configure: warning: library will be compiled without Mesa support" 1>&2
21d1c967
GD
14050 fi
14051
14052 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
14053 TOOLKIT=MSW
14054 GUIDIST=MSW_DIST
14055 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
14056 fi
14057
14058 if test "$wxUSE_MOTIF" = 1; then
14059 if test "$no_x" = yes; then
14060 # Not all programs may use this symbol, but it does not hurt to define it.
a0b9e27f 14061 cat >> confdefs.h <<\EOF
21d1c967 14062#define X_DISPLAY_MISSING 1
a0b9e27f 14063EOF
21d1c967
GD
14064
14065 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14066else
14067 if test -n "$x_includes"; then
14068 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
14069 fi
14070
21d1c967
GD
14071 # It would also be nice to do this for all -L options, not just this one.
14072 if test -n "$x_libraries"; then
14073 X_LIBS="$X_LIBS -L$x_libraries"
14074 # For Solaris; some versions of Sun CC require a space after -R and
14075 # others require no space. Words are not sufficient . . . .
a0b9e27f 14076 case "`(uname -sr) 2>/dev/null`" in
21d1c967 14077 "SunOS 5"*)
a0b9e27f 14078 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
a85030bd 14079echo "configure:14080: checking whether -R must be followed by a space" >&5
a0b9e27f
MB
14080 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14081 cat > conftest.$ac_ext <<EOF
a85030bd 14082#line 14083 "configure"
21d1c967
GD
14083#include "confdefs.h"
14084
a0b9e27f 14085int main() {
21d1c967 14086
a0b9e27f
MB
14087; return 0; }
14088EOF
a85030bd 14089if { (eval echo configure:14090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14090 rm -rf conftest*
21d1c967 14091 ac_R_nospace=yes
698dcdb6 14092else
a0b9e27f
MB
14093 echo "configure: failed program was:" >&5
14094 cat conftest.$ac_ext >&5
14095 rm -rf conftest*
14096 ac_R_nospace=no
10f2d63a 14097fi
a0b9e27f 14098rm -f conftest*
21d1c967 14099 if test $ac_R_nospace = yes; then
a0b9e27f 14100 echo "$ac_t""no" 1>&6
21d1c967
GD
14101 X_LIBS="$X_LIBS -R$x_libraries"
14102 else
14103 LIBS="$ac_xsave_LIBS -R $x_libraries"
a0b9e27f 14104 cat > conftest.$ac_ext <<EOF
a85030bd 14105#line 14106 "configure"
21d1c967 14106#include "confdefs.h"
10f2d63a 14107
a0b9e27f 14108int main() {
f0c87536 14109
a0b9e27f
MB
14110; return 0; }
14111EOF
a85030bd 14112if { (eval echo configure:14113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 14113 rm -rf conftest*
21d1c967
GD
14114 ac_R_space=yes
14115else
a0b9e27f
MB
14116 echo "configure: failed program was:" >&5
14117 cat conftest.$ac_ext >&5
14118 rm -rf conftest*
14119 ac_R_space=no
21d1c967 14120fi
a0b9e27f 14121rm -f conftest*
21d1c967 14122 if test $ac_R_space = yes; then
a0b9e27f 14123 echo "$ac_t""yes" 1>&6
21d1c967
GD
14124 X_LIBS="$X_LIBS -R $x_libraries"
14125 else
a0b9e27f 14126 echo "$ac_t""neither works" 1>&6
21d1c967
GD
14127 fi
14128 fi
a0b9e27f 14129 LIBS="$ac_xsave_LIBS"
21d1c967
GD
14130 esac
14131 fi
90dd450c 14132
21d1c967
GD
14133 # Check for system-dependent libraries X programs must link with.
14134 # Do this before checking for the system-independent R6 libraries
14135 # (-lICE), since we may need -lsocket or whatever for X linking.
14136
14137 if test "$ISC" = yes; then
14138 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14139 else
a0b9e27f
MB
14140 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14141 # libraries were built with DECnet support. And karl@cs.umb.edu says
21d1c967 14142 # the Alpha needs dnet_stub (dnet does not exist).
a0b9e27f 14143 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
a85030bd 14144echo "configure:14145: checking for dnet_ntoa in -ldnet" >&5
a0b9e27f
MB
14145ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14146if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14147 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 14148else
a0b9e27f 14149 ac_save_LIBS="$LIBS"
247f5006 14150LIBS="-ldnet $LIBS"
a0b9e27f 14151cat > conftest.$ac_ext <<EOF
a85030bd 14152#line 14153 "configure"
247f5006 14153#include "confdefs.h"
247f5006 14154/* Override any gcc2 internal prototype to avoid an error. */
247f5006 14155/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14156 builtin and then its argument prototype would still apply. */
14157char dnet_ntoa();
14158
14159int main() {
14160dnet_ntoa()
14161; return 0; }
14162EOF
a85030bd 14163if { (eval echo configure:14164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14164 rm -rf conftest*
14165 eval "ac_cv_lib_$ac_lib_var=yes"
14166else
14167 echo "configure: failed program was:" >&5
14168 cat conftest.$ac_ext >&5
14169 rm -rf conftest*
14170 eval "ac_cv_lib_$ac_lib_var=no"
14171fi
14172rm -f conftest*
14173LIBS="$ac_save_LIBS"
14174
14175fi
14176if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14177 echo "$ac_t""yes" 1>&6
21d1c967 14178 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
a0b9e27f
MB
14179else
14180 echo "$ac_t""no" 1>&6
0fb0dd83 14181fi
0fb0dd83 14182
21d1c967 14183 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
a0b9e27f 14184 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
a85030bd 14185echo "configure:14186: checking for dnet_ntoa in -ldnet_stub" >&5
a0b9e27f
MB
14186ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14187if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14188 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14189else
a0b9e27f 14190 ac_save_LIBS="$LIBS"
21d1c967 14191LIBS="-ldnet_stub $LIBS"
a0b9e27f 14192cat > conftest.$ac_ext <<EOF
a85030bd 14193#line 14194 "configure"
21d1c967
GD
14194#include "confdefs.h"
14195/* Override any gcc2 internal prototype to avoid an error. */
14196/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14197 builtin and then its argument prototype would still apply. */
14198char dnet_ntoa();
14199
14200int main() {
14201dnet_ntoa()
14202; return 0; }
14203EOF
a85030bd 14204if { (eval echo configure:14205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14205 rm -rf conftest*
14206 eval "ac_cv_lib_$ac_lib_var=yes"
14207else
14208 echo "configure: failed program was:" >&5
14209 cat conftest.$ac_ext >&5
14210 rm -rf conftest*
14211 eval "ac_cv_lib_$ac_lib_var=no"
14212fi
14213rm -f conftest*
14214LIBS="$ac_save_LIBS"
14215
14216fi
14217if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14218 echo "$ac_t""yes" 1>&6
21d1c967 14219 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
a0b9e27f
MB
14220else
14221 echo "$ac_t""no" 1>&6
90dd450c
VZ
14222fi
14223
21d1c967 14224 fi
90dd450c 14225
21d1c967
GD
14226 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14227 # to get the SysV transport functions.
a0b9e27f 14228 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
14229 # needs -lnsl.
14230 # The nsl library prevents programs from opening the X display
a0b9e27f
MB
14231 # on Irix 5.2, according to dickey@clark.net.
14232 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
a85030bd 14233echo "configure:14234: checking for gethostbyname" >&5
a0b9e27f
MB
14234if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14235 echo $ac_n "(cached) $ac_c" 1>&6
14236else
14237 cat > conftest.$ac_ext <<EOF
a85030bd 14238#line 14239 "configure"
21d1c967
GD
14239#include "confdefs.h"
14240/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14241 which can conflict with char gethostbyname(); below. */
21d1c967
GD
14242#include <assert.h>
14243/* Override any gcc2 internal prototype to avoid an error. */
14244/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14245 builtin and then its argument prototype would still apply. */
14246char gethostbyname();
14247
14248int main() {
14249
21d1c967
GD
14250/* The GNU C library defines this for functions which it implements
14251 to always fail with ENOSYS. Some functions are actually named
14252 something starting with __ and the normal name is an alias. */
14253#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14254choke me
14255#else
a0b9e27f 14256gethostbyname();
21d1c967 14257#endif
90dd450c 14258
a0b9e27f
MB
14259; return 0; }
14260EOF
a85030bd 14261if { (eval echo configure:14262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14262 rm -rf conftest*
14263 eval "ac_cv_func_gethostbyname=yes"
14264else
14265 echo "configure: failed program was:" >&5
14266 cat conftest.$ac_ext >&5
14267 rm -rf conftest*
14268 eval "ac_cv_func_gethostbyname=no"
14269fi
14270rm -f conftest*
14271fi
14272
14273if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14274 echo "$ac_t""yes" 1>&6
14275 :
14276else
14277 echo "$ac_t""no" 1>&6
14278fi
90dd450c 14279
21d1c967 14280 if test $ac_cv_func_gethostbyname = no; then
a0b9e27f 14281 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
a85030bd 14282echo "configure:14283: checking for gethostbyname in -lnsl" >&5
a0b9e27f
MB
14283ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14284if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14285 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14286else
a0b9e27f 14287 ac_save_LIBS="$LIBS"
21d1c967 14288LIBS="-lnsl $LIBS"
a0b9e27f 14289cat > conftest.$ac_ext <<EOF
a85030bd 14290#line 14291 "configure"
21d1c967
GD
14291#include "confdefs.h"
14292/* Override any gcc2 internal prototype to avoid an error. */
14293/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14294 builtin and then its argument prototype would still apply. */
14295char gethostbyname();
5c6fa7d2 14296
a0b9e27f
MB
14297int main() {
14298gethostbyname()
14299; return 0; }
14300EOF
a85030bd 14301if { (eval echo configure:14302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14302 rm -rf conftest*
14303 eval "ac_cv_lib_$ac_lib_var=yes"
8284b0c5 14304else
a0b9e27f
MB
14305 echo "configure: failed program was:" >&5
14306 cat conftest.$ac_ext >&5
14307 rm -rf conftest*
14308 eval "ac_cv_lib_$ac_lib_var=no"
14309fi
14310rm -f conftest*
14311LIBS="$ac_save_LIBS"
247f5006 14312
a0b9e27f
MB
14313fi
14314if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14315 echo "$ac_t""yes" 1>&6
14316 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14317else
14318 echo "$ac_t""no" 1>&6
21d1c967 14319fi
90dd450c 14320
90dd450c
VZ
14321 fi
14322
21d1c967
GD
14323 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14324 # socket/setsockopt and other routines are undefined under SCO ODT
14325 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
a0b9e27f
MB
14326 # on later versions), says simon@lia.di.epfl.ch: it contains
14327 # gethostby* variants that don't use the nameserver (or something).
14328 # -lsocket must be given before -lnsl if both are needed.
14329 # We assume that if connect needs -lnsl, so does gethostbyname.
14330 echo $ac_n "checking for connect""... $ac_c" 1>&6
a85030bd 14331echo "configure:14332: checking for connect" >&5
a0b9e27f
MB
14332if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14333 echo $ac_n "(cached) $ac_c" 1>&6
14334else
14335 cat > conftest.$ac_ext <<EOF
a85030bd 14336#line 14337 "configure"
21d1c967
GD
14337#include "confdefs.h"
14338/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14339 which can conflict with char connect(); below. */
21d1c967
GD
14340#include <assert.h>
14341/* Override any gcc2 internal prototype to avoid an error. */
14342/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14343 builtin and then its argument prototype would still apply. */
14344char connect();
14345
14346int main() {
14347
21d1c967
GD
14348/* The GNU C library defines this for functions which it implements
14349 to always fail with ENOSYS. Some functions are actually named
14350 something starting with __ and the normal name is an alias. */
14351#if defined (__stub_connect) || defined (__stub___connect)
14352choke me
14353#else
a0b9e27f 14354connect();
21d1c967 14355#endif
90dd450c 14356
a0b9e27f
MB
14357; return 0; }
14358EOF
a85030bd 14359if { (eval echo configure:14360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14360 rm -rf conftest*
14361 eval "ac_cv_func_connect=yes"
14362else
14363 echo "configure: failed program was:" >&5
14364 cat conftest.$ac_ext >&5
14365 rm -rf conftest*
14366 eval "ac_cv_func_connect=no"
14367fi
14368rm -f conftest*
14369fi
14370
14371if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14372 echo "$ac_t""yes" 1>&6
14373 :
14374else
14375 echo "$ac_t""no" 1>&6
14376fi
1f8ae82f 14377
21d1c967 14378 if test $ac_cv_func_connect = no; then
a0b9e27f 14379 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
a85030bd 14380echo "configure:14381: checking for connect in -lsocket" >&5
a0b9e27f
MB
14381ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14382if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14383 echo $ac_n "(cached) $ac_c" 1>&6
0fbb762e 14384else
a0b9e27f 14385 ac_save_LIBS="$LIBS"
21d1c967 14386LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
a0b9e27f 14387cat > conftest.$ac_ext <<EOF
a85030bd 14388#line 14389 "configure"
0fbb762e 14389#include "confdefs.h"
21d1c967
GD
14390/* Override any gcc2 internal prototype to avoid an error. */
14391/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14392 builtin and then its argument prototype would still apply. */
14393char connect();
14394
14395int main() {
14396connect()
14397; return 0; }
14398EOF
a85030bd 14399if { (eval echo configure:14400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14400 rm -rf conftest*
14401 eval "ac_cv_lib_$ac_lib_var=yes"
14402else
14403 echo "configure: failed program was:" >&5
14404 cat conftest.$ac_ext >&5
14405 rm -rf conftest*
14406 eval "ac_cv_lib_$ac_lib_var=no"
14407fi
14408rm -f conftest*
14409LIBS="$ac_save_LIBS"
14410
14411fi
14412if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14413 echo "$ac_t""yes" 1>&6
21d1c967 14414 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
a0b9e27f
MB
14415else
14416 echo "$ac_t""no" 1>&6
21d1c967 14417fi
90dd450c 14418
21d1c967 14419 fi
90dd450c 14420
a0b9e27f
MB
14421 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14422 echo $ac_n "checking for remove""... $ac_c" 1>&6
a85030bd 14423echo "configure:14424: checking for remove" >&5
a0b9e27f
MB
14424if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14425 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14426else
a0b9e27f 14427 cat > conftest.$ac_ext <<EOF
a85030bd 14428#line 14429 "configure"
21d1c967
GD
14429#include "confdefs.h"
14430/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14431 which can conflict with char remove(); below. */
21d1c967
GD
14432#include <assert.h>
14433/* Override any gcc2 internal prototype to avoid an error. */
14434/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14435 builtin and then its argument prototype would still apply. */
14436char remove();
14437
14438int main() {
14439
21d1c967
GD
14440/* The GNU C library defines this for functions which it implements
14441 to always fail with ENOSYS. Some functions are actually named
14442 something starting with __ and the normal name is an alias. */
14443#if defined (__stub_remove) || defined (__stub___remove)
14444choke me
14445#else
a0b9e27f 14446remove();
21d1c967 14447#endif
90dd450c 14448
a0b9e27f
MB
14449; return 0; }
14450EOF
a85030bd 14451if { (eval echo configure:14452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14452 rm -rf conftest*
14453 eval "ac_cv_func_remove=yes"
14454else
14455 echo "configure: failed program was:" >&5
14456 cat conftest.$ac_ext >&5
14457 rm -rf conftest*
14458 eval "ac_cv_func_remove=no"
14459fi
14460rm -f conftest*
14461fi
14462
14463if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14464 echo "$ac_t""yes" 1>&6
14465 :
14466else
14467 echo "$ac_t""no" 1>&6
14468fi
90dd450c 14469
21d1c967 14470 if test $ac_cv_func_remove = no; then
a0b9e27f 14471 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
a85030bd 14472echo "configure:14473: checking for remove in -lposix" >&5
a0b9e27f
MB
14473ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14474if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14475 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14476else
a0b9e27f 14477 ac_save_LIBS="$LIBS"
21d1c967 14478LIBS="-lposix $LIBS"
a0b9e27f 14479cat > conftest.$ac_ext <<EOF
a85030bd 14480#line 14481 "configure"
21d1c967
GD
14481#include "confdefs.h"
14482/* Override any gcc2 internal prototype to avoid an error. */
14483/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14484 builtin and then its argument prototype would still apply. */
14485char remove();
14486
14487int main() {
14488remove()
14489; return 0; }
14490EOF
a85030bd 14491if { (eval echo configure:14492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14492 rm -rf conftest*
14493 eval "ac_cv_lib_$ac_lib_var=yes"
14494else
14495 echo "configure: failed program was:" >&5
14496 cat conftest.$ac_ext >&5
14497 rm -rf conftest*
14498 eval "ac_cv_lib_$ac_lib_var=no"
14499fi
14500rm -f conftest*
14501LIBS="$ac_save_LIBS"
14502
14503fi
14504if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14505 echo "$ac_t""yes" 1>&6
21d1c967 14506 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
a0b9e27f
MB
14507else
14508 echo "$ac_t""no" 1>&6
21d1c967 14509fi
19bc6aad 14510
90dd450c 14511 fi
19bc6aad 14512
21d1c967 14513 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
a0b9e27f 14514 echo $ac_n "checking for shmat""... $ac_c" 1>&6
a85030bd 14515echo "configure:14516: checking for shmat" >&5
a0b9e27f
MB
14516if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14517 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967 14518else
a0b9e27f 14519 cat > conftest.$ac_ext <<EOF
a85030bd 14520#line 14521 "configure"
21d1c967
GD
14521#include "confdefs.h"
14522/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 14523 which can conflict with char shmat(); below. */
21d1c967
GD
14524#include <assert.h>
14525/* Override any gcc2 internal prototype to avoid an error. */
14526/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14527 builtin and then its argument prototype would still apply. */
14528char shmat();
14529
14530int main() {
14531
21d1c967
GD
14532/* The GNU C library defines this for functions which it implements
14533 to always fail with ENOSYS. Some functions are actually named
14534 something starting with __ and the normal name is an alias. */
14535#if defined (__stub_shmat) || defined (__stub___shmat)
14536choke me
14537#else
a0b9e27f 14538shmat();
21d1c967 14539#endif
90dd450c 14540
a0b9e27f
MB
14541; return 0; }
14542EOF
a85030bd 14543if { (eval echo configure:14544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14544 rm -rf conftest*
14545 eval "ac_cv_func_shmat=yes"
14546else
14547 echo "configure: failed program was:" >&5
14548 cat conftest.$ac_ext >&5
14549 rm -rf conftest*
14550 eval "ac_cv_func_shmat=no"
14551fi
14552rm -f conftest*
14553fi
14554
14555if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14556 echo "$ac_t""yes" 1>&6
14557 :
14558else
14559 echo "$ac_t""no" 1>&6
14560fi
19bc6aad 14561
21d1c967 14562 if test $ac_cv_func_shmat = no; then
a0b9e27f 14563 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
a85030bd 14564echo "configure:14565: checking for shmat in -lipc" >&5
a0b9e27f
MB
14565ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14566if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14567 echo $ac_n "(cached) $ac_c" 1>&6
5c6fa7d2 14568else
a0b9e27f 14569 ac_save_LIBS="$LIBS"
5c6fa7d2 14570LIBS="-lipc $LIBS"
a0b9e27f 14571cat > conftest.$ac_ext <<EOF
a85030bd 14572#line 14573 "configure"
5c6fa7d2 14573#include "confdefs.h"
5c6fa7d2 14574/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 14575/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14576 builtin and then its argument prototype would still apply. */
14577char shmat();
14578
14579int main() {
14580shmat()
14581; return 0; }
14582EOF
a85030bd 14583if { (eval echo configure:14584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14584 rm -rf conftest*
14585 eval "ac_cv_lib_$ac_lib_var=yes"
14586else
14587 echo "configure: failed program was:" >&5
14588 cat conftest.$ac_ext >&5
14589 rm -rf conftest*
14590 eval "ac_cv_lib_$ac_lib_var=no"
14591fi
14592rm -f conftest*
14593LIBS="$ac_save_LIBS"
14594
14595fi
14596if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14597 echo "$ac_t""yes" 1>&6
21d1c967 14598 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
a0b9e27f
MB
14599else
14600 echo "$ac_t""no" 1>&6
9f8148b1 14601fi
90dd450c 14602
90dd450c 14603 fi
21d1c967 14604 fi
10f2d63a 14605
21d1c967 14606 # Check for libraries that X11R6 Xt/Xaw programs need.
a0b9e27f 14607 ac_save_LDFLAGS="$LDFLAGS"
21d1c967
GD
14608 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14609 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14610 # check for ICE first), but we must link in the order -lSM -lICE or
14611 # we get undefined symbols. So assume we have SM if we have ICE.
14612 # These have to be linked with before -lX11, unlike the other
14613 # libraries we check for below, so use a different variable.
a0b9e27f
MB
14614 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14615 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
a85030bd 14616echo "configure:14617: checking for IceConnectionNumber in -lICE" >&5
a0b9e27f
MB
14617ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14618if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14619 echo $ac_n "(cached) $ac_c" 1>&6
14620else
14621 ac_save_LIBS="$LIBS"
f09359cf 14622LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a0b9e27f 14623cat > conftest.$ac_ext <<EOF
a85030bd 14624#line 14625 "configure"
29fd3c0c 14625#include "confdefs.h"
21d1c967
GD
14626/* Override any gcc2 internal prototype to avoid an error. */
14627/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
14628 builtin and then its argument prototype would still apply. */
14629char IceConnectionNumber();
14630
14631int main() {
14632IceConnectionNumber()
14633; return 0; }
14634EOF
a85030bd 14635if { (eval echo configure:14636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14636 rm -rf conftest*
14637 eval "ac_cv_lib_$ac_lib_var=yes"
14638else
14639 echo "configure: failed program was:" >&5
14640 cat conftest.$ac_ext >&5
14641 rm -rf conftest*
14642 eval "ac_cv_lib_$ac_lib_var=no"
14643fi
14644rm -f conftest*
14645LIBS="$ac_save_LIBS"
14646
14647fi
14648if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14649 echo "$ac_t""yes" 1>&6
21d1c967 14650 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
a0b9e27f
MB
14651else
14652 echo "$ac_t""no" 1>&6
29fd3c0c 14653fi
21d1c967 14654
a0b9e27f 14655 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 14656
10f2d63a
VZ
14657fi
14658
8284b0c5 14659
21d1c967 14660 if test "$no_x" = "yes"; then
a0b9e27f 14661 { echo "configure: error: X11 not found" 1>&2; exit 1; }
21d1c967
GD
14662 fi
14663
14664 GUI_TK_LIBRARY="$X_LIBS"
14665 TOOLKIT_INCLUDE="$X_CFLAGS"
14666 AFMINSTALL=afminstall
14667 COMPILED_X_PROGRAM=0
14668
a0b9e27f 14669 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
a85030bd 14670echo "configure:14671: checking for Motif/Lesstif headers" >&5
a0b9e27f 14671
21d1c967
GD
14672ac_find_includes=
14673for ac_dir in $SEARCH_INCLUDE;
14674 do
14675 if test -f "$ac_dir/Xm/Xm.h"; then
14676 ac_find_includes=$ac_dir
14677 break
14678 fi
14679 done
14680
14681 if test "$ac_find_includes" != "" ; then
a0b9e27f
MB
14682 echo "$ac_t""found in $ac_find_includes" 1>&6
14683
dd0e4a90
VZ
14684 ac_path_to_include=$ac_find_includes
14685 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14686 result=$?
14687 if test $result = 0; then
14688 ac_path_to_include=""
14689 else
14690 ac_path_to_include=" -I$ac_find_includes"
14691 fi
14692
14693 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 14694 else
a0b9e27f 14695 cat > conftest.$ac_ext <<EOF
a85030bd 14696#line 14697 "configure"
10f2d63a 14697#include "confdefs.h"
21d1c967
GD
14698
14699 #include <Xm/Xm.h>
a0b9e27f
MB
14700
14701int main() {
21d1c967
GD
14702
14703 int version;
14704 version = xmUseVersion;
a0b9e27f
MB
14705
14706; return 0; }
14707EOF
a85030bd 14708if { (eval echo configure:14709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14709 rm -rf conftest*
14710
14711 echo "$ac_t""found in default search path" 1>&6
21d1c967 14712 COMPILED_X_PROGRAM=1
a0b9e27f 14713
10f2d63a 14714else
a0b9e27f
MB
14715 echo "configure: failed program was:" >&5
14716 cat conftest.$ac_ext >&5
14717 rm -rf conftest*
14718
14719 echo "$ac_t""no" 1>&6
14720 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14721
14722
10f2d63a 14723fi
a0b9e27f 14724rm -f conftest*
21d1c967 14725 fi
10f2d63a 14726
21d1c967 14727 if test "$COMPILED_X_PROGRAM" = 0; then
a0b9e27f 14728 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
a85030bd 14729echo "configure:14730: checking for Motif/Lesstif library" >&5
a0b9e27f 14730
21d1c967
GD
14731ac_find_libraries=
14732for ac_dir in $SEARCH_LIB;
14733 do
14734 for ac_extension in a so sl dylib; do
14735 if test -f "$ac_dir/libXm.$ac_extension"; then
14736 ac_find_libraries=$ac_dir
14737 break 2
14738 fi
14739 done
14740 done
14741
14742 if test "$ac_find_libraries" != "" ; then
a0b9e27f 14743 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14744
a0b9e27f 14745
21d1c967
GD
14746 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14747 result=$?
14748 if test $result = 0; then
14749 ac_path_to_link=""
14750 else
14751 ac_path_to_link=" -L$ac_find_libraries"
14752 fi
14753
21d1c967 14754 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 14755 else
dd0e4a90
VZ
14756 save_CFLAGS=$CFLAGS
14757 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14758
a0b9e27f 14759 cat > conftest.$ac_ext <<EOF
a85030bd 14760#line 14761 "configure"
d836ee96 14761#include "confdefs.h"
21d1c967
GD
14762
14763 #include <Xm/Xm.h>
a0b9e27f
MB
14764
14765int main() {
21d1c967
GD
14766
14767 int version;
14768 version = xmUseVersion;
a0b9e27f
MB
14769
14770; return 0; }
14771EOF
a85030bd 14772if { (eval echo configure:14773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14773 rm -rf conftest*
14774
14775 echo "$ac_t""found in default search path" 1>&6
21d1c967 14776 COMPILED_X_PROGRAM=1
a0b9e27f 14777
d836ee96 14778else
a0b9e27f
MB
14779 echo "configure: failed program was:" >&5
14780 cat conftest.$ac_ext >&5
14781 rm -rf conftest*
14782
14783 echo "$ac_t""no" 1>&6
14784 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14785
14786
d836ee96 14787fi
a0b9e27f 14788rm -f conftest*
dd0e4a90
VZ
14789
14790 CFLAGS=$save_CFLAGS
21d1c967
GD
14791 fi
14792 fi
14793
14794 xpm_link=
a0b9e27f 14795 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
a85030bd 14796echo "configure:14797: checking for Xpm library" >&5
a0b9e27f 14797
21d1c967
GD
14798ac_find_libraries=
14799for ac_dir in $SEARCH_LIB;
14800 do
14801 for ac_extension in a so sl dylib; do
14802 if test -f "$ac_dir/libXpm.$ac_extension"; then
14803 ac_find_libraries=$ac_dir
14804 break 2
14805 fi
14806 done
14807 done
14808
14809 if test "$ac_find_libraries" != "" ; then
a0b9e27f 14810
21d1c967
GD
14811 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14812 result=$?
14813 if test $result = 0; then
14814 ac_path_to_link=""
14815 else
14816 ac_path_to_link=" -L$ac_find_libraries"
14817 fi
14818
14819 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 14820
21d1c967 14821 xpm_link=" -lXpm"
a0b9e27f 14822 cat >> confdefs.h <<\EOF
21d1c967 14823#define wxHAVE_LIB_XPM 1
a0b9e27f 14824EOF
90dd450c 14825
a0b9e27f 14826 echo "$ac_t""found at $ac_find_libraries" 1>&6
21d1c967 14827 else
dd0e4a90
VZ
14828 save_CFLAGS=$CFLAGS
14829 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14830
a0b9e27f 14831 cat > conftest.$ac_ext <<EOF
a85030bd 14832#line 14833 "configure"
d836ee96 14833#include "confdefs.h"
21d1c967
GD
14834
14835 #include <X11/xpm.h>
a0b9e27f
MB
14836
14837int main() {
21d1c967
GD
14838
14839 int version;
14840 version = XpmLibraryVersion();
a0b9e27f
MB
14841
14842; return 0; }
14843EOF
a85030bd 14844if { (eval echo configure:14845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
14845 rm -rf conftest*
14846
21d1c967 14847 xpm_link=" -lXpm"
a0b9e27f 14848 cat >> confdefs.h <<\EOF
21d1c967 14849#define wxHAVE_LIB_XPM 1
a0b9e27f 14850EOF
21d1c967 14851
a0b9e27f 14852 echo "$ac_t""found in default search path" 1>&6
21d1c967 14853 COMPILED_X_PROGRAM=0
a0b9e27f 14854
d836ee96 14855else
a0b9e27f
MB
14856 echo "configure: failed program was:" >&5
14857 cat conftest.$ac_ext >&5
14858 rm -rf conftest*
14859
14860 echo "$ac_t""no" 1>&6
14861 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14862
14863
d836ee96 14864fi
a0b9e27f 14865rm -f conftest*
dd0e4a90
VZ
14866
14867 CFLAGS=$save_CFLAGS
21d1c967
GD
14868 fi
14869
a0b9e27f 14870 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
a85030bd 14871echo "configure:14872: checking if we need -lXp and/or -lSM -lICE" >&5
6a30f1c8
MB
14872 libp_link=""
14873 libsm_ice_link=""
14874 libs_found=0
14875 for libp in "" " -lXp"; do
14876 if test "$libs_found" = "0"; then
14877 for libsm_ice in " -lSM -lICE"; do
a0b9e27f 14878 if test "$libs_found" = "0"; then
6a30f1c8
MB
14879 save_LIBS="$LIBS"
14880 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
14881 save_CFLAGS=$CFLAGS
14882 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14883
a0b9e27f 14884 cat > conftest.$ac_ext <<EOF
a85030bd 14885#line 14886 "configure"
6a30f1c8 14886#include "confdefs.h"
17234b26 14887
6a30f1c8
MB
14888 #include <Xm/Xm.h>
14889 #include <Xm/List.h>
a0b9e27f
MB
14890
14891int main() {
6a30f1c8
MB
14892
14893 XmString string = NULL;
14894 Widget w = NULL;
14895 int position = 0;
14896 XmListAddItem(w, string, position);
a0b9e27f
MB
14897
14898; return 0; }
14899EOF
a85030bd 14900if { (eval echo configure:14901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
14901 rm -rf conftest*
14902
6a30f1c8
MB
14903 libp_link="$libp"
14904 libsm_ice_link="$libsm_ice"
a0b9e27f 14905 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
6a30f1c8 14906 libs_found=1
a0b9e27f 14907
6a30f1c8 14908else
a0b9e27f
MB
14909 echo "configure: failed program was:" >&5
14910 cat conftest.$ac_ext >&5
14911 rm -rf conftest*
14912
14913
6a30f1c8 14914fi
a0b9e27f 14915rm -f conftest*
dd0e4a90 14916
6a30f1c8 14917 LIBS="$save_LIBS"
dd0e4a90 14918 CFLAGS=$save_CFLAGS
6a30f1c8
MB
14919 fi
14920 done
14921 fi
14922 done
14923
14924 if test "$libs_found" = "0"; then
a0b9e27f
MB
14925 echo "$ac_t""can't find the right libraries" 1>&6
14926 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
6a30f1c8
MB
14927 fi
14928
14929 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
21d1c967
GD
14930 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14931 TOOLKIT=MOTIF
14932 GUIDIST=MOTIF_DIST
14933 fi
14934
14935 if test "$wxUSE_MAC" = 1; then
14936 if test "$wxUSE_PRECOMP" = "yes"; then
14937 CPPFLAGS="$CPPFLAGS -cpp-precomp"
14938 else
14939 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14940 fi
14941 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14942 CFLAGS="$CFLAGS -fpascal-strings"
14943 CXXFLAGS="$CXXFLAGS -fpascal-strings"
14944
14945 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14946 TOOLKIT=MAC
14947 GUIDIST=MACX_DIST
14948 fi
14949
14950 if test "$wxUSE_PM" = 1; then
14951 TOOLKIT=PM
14952 GUIDIST=GTK_DIST
14953 fi
14954
14955 if test "$TOOLKIT" = "PM" ; then
14956 TOOLKIT_DIR="os2"
14957 else
14958 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14959 fi
14960
14961 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14962
14963 if test "$wxUSE_UNIVERSAL" = "yes"; then
14964 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14965
14966 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14967 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14968
14969 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14970 if test "$wxUSE_X11" = 1; then
14971 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14972 else
14973 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14974 fi
14975 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14976 WIDGET_SET=univ
14977 else
14978 ALL_OBJECTS="\$(GUIOBJS)"
14979 ALL_SOURCES="\$(ALL_SOURCES)"
14980 ALL_HEADERS="\$(ALL_HEADERS)"
14981 fi
14982
14983 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14984
14985 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14986 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14987 fi
14988
14989 if test "$wxUSE_HTML" = "yes"; then
14990 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14991 fi
14992
14993 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14994 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14995 fi
14996 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14997 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14998 fi
14999 if test "$wxUSE_LIBPNG" = "builtin" ; then
15000 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15001 fi
15002
15003 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15004 DISTDIR="wx\$(TOOLKIT)"
90dd450c 15005else
21d1c967
GD
15006 USE_GUI=0
15007
15008 TOOLKIT_DIR="base"
15009
15010 if test "$USE_WIN32" = 1 ; then
15011 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15012 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15013
15014 TOOLKIT="MSW"
15015 else
15016 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15017 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15018 fi
15019
15020 ALL_SOURCES="\$(ALL_SOURCES)"
15021 ALL_HEADERS="\$(ALL_HEADERS)"
15022
15023 PORT_FILES="\${top_srcdir}/src/files.lst"
15024
15025 GUIDIST="BASE_DIST"
15026 DISTDIR="wxBase"
d836ee96
VZ
15027fi
15028
8284b0c5 15029
21d1c967
GD
15030if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15031 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 15032fi
21d1c967
GD
15033
15034if test "$wxUSE_REGEX" = "builtin" ; then
15035 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 15036fi
21d1c967
GD
15037if test "$wxUSE_ZLIB" = "builtin" ; then
15038 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
15039fi
15040
8284b0c5 15041
21d1c967
GD
15042if test "$wxUSE_OPENGL" = "yes"; then
15043 if test "$wxUSE_MAC" = 1; then
15044 OPENGL_LIBS="-framework OpenGL -framework AGL"
15045 elif test "$wxUSE_MSW" = 1; then
15046 OPENGL_LIBS="-lopengl32 -lglu32"
15047 else
a0b9e27f
MB
15048 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15049echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
a85030bd 15050echo "configure:15051: checking for GL/gl.h" >&5
a0b9e27f
MB
15051if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15052 echo $ac_n "(cached) $ac_c" 1>&6
15053else
15054 cat > conftest.$ac_ext <<EOF
a85030bd 15055#line 15056 "configure"
10f2d63a 15056#include "confdefs.h"
21d1c967 15057#include <GL/gl.h>
a0b9e27f
MB
15058EOF
15059ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 15060{ (eval echo configure:15061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
15061ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15062if test -z "$ac_err"; then
15063 rm -rf conftest*
15064 eval "ac_cv_header_$ac_safe=yes"
15065else
15066 echo "$ac_err" >&5
15067 echo "configure: failed program was:" >&5
698dcdb6 15068 cat conftest.$ac_ext >&5
a0b9e27f
MB
15069 rm -rf conftest*
15070 eval "ac_cv_header_$ac_safe=no"
703e0a69 15071fi
a0b9e27f 15072rm -f conftest*
698dcdb6 15073fi
a0b9e27f
MB
15074if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15075 echo "$ac_t""yes" 1>&6
15076
15077 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
a85030bd 15078echo "configure:15079: checking for -lGL" >&5
a0b9e27f 15079
21d1c967
GD
15080ac_find_libraries=
15081for ac_dir in $SEARCH_LIB;
15082 do
15083 for ac_extension in a so sl dylib; do
15084 if test -f "$ac_dir/libGL.$ac_extension"; then
15085 ac_find_libraries=$ac_dir
15086 break 2
15087 fi
15088 done
15089 done
15090
15091 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15092
21d1c967
GD
15093 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15094 result=$?
15095 if test $result = 0; then
15096 ac_path_to_link=""
15097 else
15098 ac_path_to_link=" -L$ac_find_libraries"
15099 fi
15100
15101 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15102 LDFLAGS_GL="$LDFLAGS"
15103 else
15104 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15105 fi
15106 OPENGL_LIBS="-lGL -lGLU"
a0b9e27f 15107 echo "$ac_t""yes" 1>&6
21d1c967 15108 else
a0b9e27f
MB
15109 echo "$ac_t""no" 1>&6
15110 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
a85030bd 15111echo "configure:15112: checking for -lMesaGL" >&5
a0b9e27f 15112
21d1c967
GD
15113ac_find_libraries=
15114for ac_dir in $SEARCH_LIB;
15115 do
15116 for ac_extension in a so sl dylib; do
15117 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15118 ac_find_libraries=$ac_dir
15119 break 2
15120 fi
15121 done
15122 done
15123
15124 if test "$ac_find_libraries" != "" ; then
a0b9e27f 15125
21d1c967
GD
15126 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15127 result=$?
15128 if test $result = 0; then
15129 ac_path_to_link=""
15130 else
15131 ac_path_to_link=" -L$ac_find_libraries"
15132 fi
15133
15134 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15135 OPENGL_LIBS="-lMesaGL -lMesaGLU"
a0b9e27f 15136 echo "$ac_t""yes" 1>&6
21d1c967 15137 else
a0b9e27f 15138 echo "$ac_t""no" 1>&6
21d1c967
GD
15139 fi
15140 fi
a0b9e27f
MB
15141
15142else
15143 echo "$ac_t""no" 1>&6
5c6fa7d2 15144fi
52127426 15145
8284b0c5 15146
21d1c967 15147 if test "x$OPENGL_LIBS" = "x"; then
a0b9e27f 15148 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
21d1c967
GD
15149 fi
15150 fi
90dd450c 15151
21d1c967 15152 if test "$wxUSE_OPENGL" = "yes"; then
a0b9e27f 15153 cat >> confdefs.h <<\EOF
21d1c967 15154#define wxUSE_OPENGL 1
a0b9e27f 15155EOF
21d1c967 15156
a0b9e27f 15157 cat >> confdefs.h <<\EOF
21d1c967 15158#define wxUSE_GLCANVAS 1
a0b9e27f 15159EOF
21d1c967
GD
15160
15161 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15162 fi
10f2d63a 15163fi
21d1c967
GD
15164
15165if test -z "$TOOLKIT_VPATH" ; then
15166 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 15167fi
21d1c967
GD
15168
15169if test -n "$TOOLKIT" ; then
15170 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15171fi
15172
15173lib_unicode_suffix=
15174if test "$wxUSE_UNICODE" = "yes"; then
15175 lib_unicode_suffix=u
90dd450c 15176fi
698dcdb6 15177
21d1c967
GD
15178lib_debug_suffix=
15179if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15180 lib_debug_suffix=d
15181fi
698dcdb6 15182
21d1c967
GD
15183TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15184TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15185
15186if test "$cross_compiling" = "yes"; then
15187 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15188 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15189fi
15190
15191WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15192WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15193
15194WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15195WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15196
15197WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15198WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15199WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15200WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15201
15202case "${host}" in
15203 *-*-cygwin* | *-*-mingw32* )
15204
a0b9e27f
MB
15205
15206
17234b26 15207 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
15208 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15209 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15210 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15211 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15212 else
15213 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15214 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15215 fi
15216 ;;
15217
15218 *-*-darwin* )
15219 if test "$wxUSE_MAC" = 1; then
3bd8fb5f 15220 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
21d1c967
GD
15221 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
15222 fi
15223 ;;
15224esac
15225
15226WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15227WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15228
15229WXCONFIG_LIBS="-l${WX_LIBRARY}"
15230WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15231
15232if test "$wxUSE_OPENGL" = "yes"; then
15233 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15234 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15235fi
15236
8284b0c5
MB
15237
15238
21d1c967
GD
15239if test "$wxUSE_SHARED" = "yes"; then
15240 case "${host}" in
15241 *-pc-os2_emx | *-pc-os2-emx | \
15242 *-pc-msdosdjgpp )
15243 wxUSE_SHARED=no
a0b9e27f 15244 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
21d1c967
GD
15245 ;;
15246 esac
15247fi
15248
15249if test "$wxUSE_SHARED" = "yes"; then
15250
15251 if test "$wxUSE_OPENGL" = "yes"; then
15252 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15253 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15254 else
15255 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15256 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15257 fi
15258
15259 if test "$GCC" = "yes"; then
15260 PIC_FLAG="-fPIC"
15261 fi
15262
15263 SHARED_LD="${CXX} -shared -o"
15264
15265 case "${host}" in
15266 *-hp-hpux* )
15267 if test "$GCC" == "yes"; then
15268 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
15269 else
15270 LDFLAGS="$LDFLAGS -L/usr/lib"
15271
15272 SHARED_LD="${CXX} -b -o"
15273 PIC_FLAG="+Z"
15274 fi
15275
15276 if test "$wxUSE_OPENGL" = "yes"; then
15277 WX_ALL_INSTALLED="preinstall_gl"
15278 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15279 else
15280 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15281 fi
15282 ;;
15283
15284 *-*-linux* )
15285 if test "$GCC" != "yes"; then
a0b9e27f 15286 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
a85030bd 15287echo "configure:15288: checking for Intel compiler" >&5
a0b9e27f
MB
15288if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15289 echo $ac_n "(cached) $ac_c" 1>&6
15290else
15291
15292 cat > conftest.$ac_ext <<EOF
a85030bd 15293#line 15294 "configure"
698dcdb6 15294#include "confdefs.h"
90dd450c 15295
a0b9e27f 15296int main() {
90dd450c 15297
21d1c967
GD
15298 #ifndef __INTEL_COMPILER
15299 #error Not icc
15300 #endif
a0b9e27f
MB
15301
15302; return 0; }
15303EOF
a85030bd 15304if { (eval echo configure:15305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 15305 rm -rf conftest*
21d1c967 15306 wx_cv_prog_icc=yes
6232543b 15307else
a0b9e27f
MB
15308 echo "configure: failed program was:" >&5
15309 cat conftest.$ac_ext >&5
15310 rm -rf conftest*
15311 wx_cv_prog_icc=no
15312
5c6fa7d2 15313fi
a0b9e27f
MB
15314rm -f conftest*
15315
247f5006 15316fi
a0b9e27f
MB
15317
15318echo "$ac_t""$wx_cv_prog_icc" 1>&6
21d1c967
GD
15319 if test "$wx_cv_prog_icc" = "yes"; then
15320 PIC_FLAG="-KPIC"
15321 fi
15322 fi
15323
15324 if test "$wxUSE_SONAME" = "yes" ; then
15325 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
15326 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
15327 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
15328 fi
15329 ;;
15330
15331 *-*-solaris2* )
15332 if test "$GCC" = yes ; then
15333 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
15334 else
15335 SHARED_LD="${CXX} -G -o"
15336 PIC_FLAG="-KPIC"
15337 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
15338 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
15339 fi
15340 ;;
15341
15342 *-*-darwin* )
15343 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
15344 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
15345 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
15346 PIC_FLAG="-dynamic -fPIC"
15347 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
15348 SONAME_FLAGS_GL=${SONAME_FLAGS}
15349 ;;
15350
15351 *-*-aix* )
321d2b14
VZ
15352 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
15353set dummy makeC++SharedLib; ac_word=$2
a0b9e27f 15354echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a85030bd 15355echo "configure:15356: checking for $ac_word" >&5
a0b9e27f
MB
15356if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
15357 echo $ac_n "(cached) $ac_c" 1>&6
321d2b14
VZ
15358else
15359 if test -n "$AIX_CXX_LD"; then
15360 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
15361else
a0b9e27f
MB
15362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15363 ac_dummy="$PATH"
15364 for ac_dir in $ac_dummy; do
15365 test -z "$ac_dir" && ac_dir=.
15366 if test -f $ac_dir/$ac_word; then
15367 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
15368 break
15369 fi
15370 done
15371 IFS="$ac_save_ifs"
321d2b14
VZ
15372 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15373fi
15374fi
a0b9e27f 15375AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
321d2b14 15376if test -n "$AIX_CXX_LD"; then
a0b9e27f 15377 echo "$ac_t""$AIX_CXX_LD" 1>&6
321d2b14 15378else
a0b9e27f 15379 echo "$ac_t""no" 1>&6
321d2b14
VZ
15380fi
15381
8284b0c5 15382
321d2b14 15383 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
21d1c967
GD
15384 ;;
15385
15386 *-*-cygwin* | *-*-mingw32* )
15387
15388 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15389
15390 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15391 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15392
15393 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15394
15395 if test "$wxUSE_OPENGL" = "yes"; then
15396 WX_ALL_INSTALLED="preinstall_gl"
15397 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15398 else
15399 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15400 fi
15401 ;;
15402
15403 *-*-beos* )
15404 SHARED_LD="${LD} -shared -o"
15405 ;;
15406
15407 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15408 *-*-sunos4* | \
15409 *-*-irix5* | *-*-irix6* | \
15410 *-*-osf* | \
15411 *-*-dgux5* | \
15412 *-*-sysv5* )
15413 ;;
15414
15415 *)
a0b9e27f 15416 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
21d1c967
GD
15417 esac
15418
15419 if test "x$WX_TARGET_LIBRARY" = "x"; then
15420 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15421 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15422 fi
15423
15424 WX_TARGET_LIBRARY_TYPE="so"
15425 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 15426fi
10f2d63a 15427
21d1c967
GD
15428if test "$wxUSE_SHARED" = "no"; then
15429
15430 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15431 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15432 fi
15433
15434 if test "$wxUSE_MAC" = 1; then
15435 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15436 fi
15437
15438 if test "$wxUSE_OPENGL" = "yes"; then
15439 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15440 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15441 else
15442 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15443 fi
15444
15445 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15446 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15447
15448 WX_TARGET_LIBRARY_TYPE="a"
15449 INSTALL_LIBRARY='$(INSTALL_DATA)'
90dd450c 15450fi
1e487827 15451
21d1c967
GD
15452if test "$wxUSE_MAC" = 1; then
15453 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15454 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15455 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15456 # Extract the first word of "Rez", so it can be a program name with args.
15457set dummy Rez; ac_word=$2
a0b9e27f 15458echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a85030bd 15459echo "configure:15460: checking for $ac_word" >&5
a0b9e27f
MB
15460if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
15461 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 15462else
21d1c967
GD
15463 if test -n "$RESCOMP"; then
15464 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 15465else
a0b9e27f
MB
15466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15467 ac_dummy="$PATH"
15468 for ac_dir in $ac_dummy; do
15469 test -z "$ac_dir" && ac_dir=.
15470 if test -f $ac_dir/$ac_word; then
15471 ac_cv_prog_RESCOMP="Rez"
15472 break
15473 fi
15474 done
15475 IFS="$ac_save_ifs"
21d1c967 15476 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 15477fi
b93d0d08 15478fi
a0b9e27f 15479RESCOMP="$ac_cv_prog_RESCOMP"
21d1c967 15480if test -n "$RESCOMP"; then
a0b9e27f 15481 echo "$ac_t""$RESCOMP" 1>&6
90dd450c 15482else
a0b9e27f 15483 echo "$ac_t""no" 1>&6
90dd450c 15484fi
b93d0d08 15485
21d1c967
GD
15486 # Extract the first word of "DeRez", so it can be a program name with args.
15487set dummy DeRez; ac_word=$2
a0b9e27f 15488echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
a85030bd 15489echo "configure:15490: checking for $ac_word" >&5
a0b9e27f
MB
15490if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15491 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 15492else
21d1c967
GD
15493 if test -n "$DEREZ"; then
15494 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 15495else
a0b9e27f
MB
15496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15497 ac_dummy="$PATH"
15498 for ac_dir in $ac_dummy; do
15499 test -z "$ac_dir" && ac_dir=.
15500 if test -f $ac_dir/$ac_word; then
15501 ac_cv_prog_DEREZ="DeRez"
15502 break
15503 fi
15504 done
15505 IFS="$ac_save_ifs"
21d1c967 15506 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 15507fi
90dd450c 15508fi
a0b9e27f 15509DEREZ="$ac_cv_prog_DEREZ"
21d1c967 15510if test -n "$DEREZ"; then
a0b9e27f 15511 echo "$ac_t""$DEREZ" 1>&6
90dd450c 15512else
a0b9e27f 15513 echo "$ac_t""no" 1>&6
3a922bb4 15514fi
698dcdb6 15515
21d1c967
GD
15516 MACOSX_BUNDLE="bundle"
15517 if test "$wxUSE_SHARED" = "yes"; then
15518 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15519 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15520 else
15521 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15522 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15523 fi
15524else
15525 if test "$wxUSE_PM" = 1; then
15526 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
90dd450c 15527 fi
4f14bcd8 15528fi
10f2d63a 15529
8284b0c5 15530
a0b9e27f 15531echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
a85030bd 15532echo "configure:15533: checking for ANSI C header files" >&5
a0b9e27f
MB
15533if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
15534 echo $ac_n "(cached) $ac_c" 1>&6
52127426 15535else
a0b9e27f 15536 cat > conftest.$ac_ext <<EOF
a85030bd 15537#line 15538 "configure"
52127426 15538#include "confdefs.h"
a0b9e27f
MB
15539#include <stdlib.h>
15540#include <stdarg.h>
15541#include <string.h>
15542#include <float.h>
15543EOF
15544ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 15545{ (eval echo configure:15546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
15546ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15547if test -z "$ac_err"; then
15548 rm -rf conftest*
15549 ac_cv_header_stdc=yes
15550else
15551 echo "$ac_err" >&5
15552 echo "configure: failed program was:" >&5
15553 cat conftest.$ac_ext >&5
15554 rm -rf conftest*
15555 ac_cv_header_stdc=no
15556fi
15557rm -f conftest*
15558
15559if test $ac_cv_header_stdc = yes; then
15560 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15561cat > conftest.$ac_ext <<EOF
a85030bd 15562#line 15563 "configure"
a0b9e27f
MB
15563#include "confdefs.h"
15564#include <string.h>
15565EOF
15566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15567 egrep "memchr" >/dev/null 2>&1; then
15568 :
15569else
15570 rm -rf conftest*
15571 ac_cv_header_stdc=no
15572fi
15573rm -f conftest*
15574
15575fi
15576
15577if test $ac_cv_header_stdc = yes; then
15578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15579cat > conftest.$ac_ext <<EOF
a85030bd 15580#line 15581 "configure"
a0b9e27f
MB
15581#include "confdefs.h"
15582#include <stdlib.h>
15583EOF
15584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15585 egrep "free" >/dev/null 2>&1; then
15586 :
7b4a847f 15587else
a0b9e27f
MB
15588 rm -rf conftest*
15589 ac_cv_header_stdc=no
52127426 15590fi
a0b9e27f
MB
15591rm -f conftest*
15592
52127426 15593fi
a0b9e27f
MB
15594
15595if test $ac_cv_header_stdc = yes; then
15596 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15597if test "$cross_compiling" = yes; then
247f5006
VZ
15598 :
15599else
a0b9e27f 15600 cat > conftest.$ac_ext <<EOF
a85030bd 15601#line 15602 "configure"
a0b9e27f
MB
15602#include "confdefs.h"
15603#include <ctype.h>
15604#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15605#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15606#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15607int main () { int i; for (i = 0; i < 256; i++)
15608if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15609exit (0); }
247f5006 15610
a0b9e27f 15611EOF
a85030bd 15612if { (eval echo configure:15613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a0b9e27f
MB
15613then
15614 :
15615else
15616 echo "configure: failed program was:" >&5
15617 cat conftest.$ac_ext >&5
15618 rm -fr conftest*
15619 ac_cv_header_stdc=no
15620fi
15621rm -fr conftest*
15622fi
15623
15624fi
15625fi
15626
15627echo "$ac_t""$ac_cv_header_stdc" 1>&6
15628if test $ac_cv_header_stdc = yes; then
15629 cat >> confdefs.h <<\EOF
15630#define STDC_HEADERS 1
15631EOF
8284b0c5
MB
15632
15633fi
15634
a0b9e27f 15635echo $ac_n "checking for mode_t""... $ac_c" 1>&6
a85030bd 15636echo "configure:15637: checking for mode_t" >&5
a0b9e27f
MB
15637if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15638 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 15639else
a0b9e27f 15640 cat > conftest.$ac_ext <<EOF
a85030bd 15641#line 15642 "configure"
8284b0c5 15642#include "confdefs.h"
a0b9e27f
MB
15643#include <sys/types.h>
15644#if STDC_HEADERS
15645#include <stdlib.h>
15646#include <stddef.h>
8284b0c5 15647#endif
a0b9e27f
MB
15648EOF
15649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15650 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15651 rm -rf conftest*
15652 ac_cv_type_mode_t=yes
5c6fa7d2 15653else
a0b9e27f
MB
15654 rm -rf conftest*
15655 ac_cv_type_mode_t=no
15656fi
15657rm -f conftest*
15658
8284b0c5 15659fi
a0b9e27f
MB
15660echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15661if test $ac_cv_type_mode_t = no; then
15662 cat >> confdefs.h <<\EOF
15663#define mode_t int
15664EOF
15665
8284b0c5 15666fi
a0b9e27f
MB
15667
15668echo $ac_n "checking for off_t""... $ac_c" 1>&6
a85030bd 15669echo "configure:15670: checking for off_t" >&5
a0b9e27f
MB
15670if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15671 echo $ac_n "(cached) $ac_c" 1>&6
15672else
15673 cat > conftest.$ac_ext <<EOF
a85030bd 15674#line 15675 "configure"
a0b9e27f
MB
15675#include "confdefs.h"
15676#include <sys/types.h>
15677#if STDC_HEADERS
15678#include <stdlib.h>
15679#include <stddef.h>
15680#endif
15681EOF
15682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15683 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15684 rm -rf conftest*
15685 ac_cv_type_off_t=yes
247f5006 15686else
a0b9e27f
MB
15687 rm -rf conftest*
15688 ac_cv_type_off_t=no
15689fi
15690rm -f conftest*
247f5006 15691
a0b9e27f
MB
15692fi
15693echo "$ac_t""$ac_cv_type_off_t" 1>&6
15694if test $ac_cv_type_off_t = no; then
15695 cat >> confdefs.h <<\EOF
90dd450c 15696#define off_t long
a0b9e27f 15697EOF
10f2d63a 15698
90dd450c 15699fi
10f2d63a 15700
a0b9e27f 15701echo $ac_n "checking for pid_t""... $ac_c" 1>&6
a85030bd 15702echo "configure:15703: checking for pid_t" >&5
a0b9e27f
MB
15703if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15704 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 15705else
a0b9e27f 15706 cat > conftest.$ac_ext <<EOF
a85030bd 15707#line 15708 "configure"
10f2d63a 15708#include "confdefs.h"
a0b9e27f
MB
15709#include <sys/types.h>
15710#if STDC_HEADERS
15711#include <stdlib.h>
15712#include <stddef.h>
8284b0c5 15713#endif
a0b9e27f
MB
15714EOF
15715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15716 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15717 rm -rf conftest*
90dd450c 15718 ac_cv_type_pid_t=yes
698dcdb6 15719else
a0b9e27f
MB
15720 rm -rf conftest*
15721 ac_cv_type_pid_t=no
8284b0c5 15722fi
a0b9e27f 15723rm -f conftest*
247f5006 15724
a0b9e27f
MB
15725fi
15726echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15727if test $ac_cv_type_pid_t = no; then
15728 cat >> confdefs.h <<\EOF
90dd450c 15729#define pid_t int
a0b9e27f 15730EOF
10f2d63a 15731
7b4a847f
RR
15732fi
15733
a0b9e27f 15734echo $ac_n "checking for size_t""... $ac_c" 1>&6
a85030bd 15735echo "configure:15736: checking for size_t" >&5
a0b9e27f
MB
15736if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15737 echo $ac_n "(cached) $ac_c" 1>&6
7b4a847f 15738else
a0b9e27f 15739 cat > conftest.$ac_ext <<EOF
a85030bd 15740#line 15741 "configure"
7b4a847f 15741#include "confdefs.h"
a0b9e27f
MB
15742#include <sys/types.h>
15743#if STDC_HEADERS
15744#include <stdlib.h>
15745#include <stddef.h>
8284b0c5 15746#endif
a0b9e27f
MB
15747EOF
15748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15749 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15750 rm -rf conftest*
90dd450c 15751 ac_cv_type_size_t=yes
18dbb1f6 15752else
a0b9e27f
MB
15753 rm -rf conftest*
15754 ac_cv_type_size_t=no
52127426 15755fi
a0b9e27f 15756rm -f conftest*
247f5006 15757
a0b9e27f
MB
15758fi
15759echo "$ac_t""$ac_cv_type_size_t" 1>&6
15760if test $ac_cv_type_size_t = no; then
15761 cat >> confdefs.h <<\EOF
90dd450c 15762#define size_t unsigned
a0b9e27f 15763EOF
90dd450c
VZ
15764
15765fi
15766
a0b9e27f 15767echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
a85030bd 15768echo "configure:15769: checking for uid_t in sys/types.h" >&5
a0b9e27f
MB
15769if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15770 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a 15771else
a0b9e27f 15772 cat > conftest.$ac_ext <<EOF
a85030bd 15773#line 15774 "configure"
b3e8d00a 15774#include "confdefs.h"
90dd450c 15775#include <sys/types.h>
a0b9e27f 15776EOF
90dd450c
VZ
15777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15778 egrep "uid_t" >/dev/null 2>&1; then
a0b9e27f 15779 rm -rf conftest*
90dd450c 15780 ac_cv_type_uid_t=yes
b3e8d00a 15781else
a0b9e27f 15782 rm -rf conftest*
90dd450c 15783 ac_cv_type_uid_t=no
b3e8d00a 15784fi
90dd450c 15785rm -f conftest*
b3e8d00a 15786
4f14bcd8 15787fi
247f5006 15788
a0b9e27f
MB
15789echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15790if test $ac_cv_type_uid_t = no; then
15791 cat >> confdefs.h <<\EOF
90dd450c 15792#define uid_t int
a0b9e27f 15793EOF
247f5006 15794
a0b9e27f 15795 cat >> confdefs.h <<\EOF
90dd450c 15796#define gid_t int
a0b9e27f 15797EOF
4f14bcd8 15798
b3e8d00a 15799fi
b3e8d00a 15800
8284b0c5
MB
15801
15802
a0b9e27f
MB
15803ac_ext=C
15804# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 15805ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
15806ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15807ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15808cross_compiling=$ac_cv_prog_cxx_cross
90dd450c 15809
a0b9e27f 15810echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
a85030bd 15811echo "configure:15812: checking if size_t is unsigned int" >&5
a0b9e27f
MB
15812if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15813 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c 15814else
a0b9e27f 15815 cat > conftest.$ac_ext <<EOF
a85030bd 15816#line 15817 "configure"
10f2d63a 15817#include "confdefs.h"
90dd450c 15818#include <stddef.h>
a0b9e27f 15819int main() {
90dd450c
VZ
15820
15821 return 0; }
15822
15823 struct Foo { void foo(size_t); void foo(unsigned int); };
15824
15825 int bar() {
a0b9e27f
MB
15826
15827; return 0; }
15828EOF
a85030bd 15829if { (eval echo configure:15830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 15830 rm -rf conftest*
90dd450c 15831 wx_cv_size_t_is_uint=no
698dcdb6 15832else
a0b9e27f
MB
15833 echo "configure: failed program was:" >&5
15834 cat conftest.$ac_ext >&5
15835 rm -rf conftest*
15836 wx_cv_size_t_is_uint=yes
15837
5c6fa7d2 15838fi
a0b9e27f 15839rm -f conftest*
8284b0c5 15840
247f5006 15841fi
a0b9e27f
MB
15842
15843echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 15844
90dd450c 15845if test "$wx_cv_size_t_is_uint" = "yes"; then
a0b9e27f 15846 cat >> confdefs.h <<\EOF
90dd450c 15847#define wxSIZE_T_IS_UINT 1
a0b9e27f 15848EOF
698dcdb6 15849
90dd450c 15850else
a0b9e27f 15851 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
a85030bd 15852echo "configure:15853: checking if size_t is unsigned long" >&5
a0b9e27f
MB
15853if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
15854 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 15855else
a0b9e27f 15856 cat > conftest.$ac_ext <<EOF
a85030bd 15857#line 15858 "configure"
10f2d63a 15858#include "confdefs.h"
90dd450c 15859#include <stddef.h>
a0b9e27f 15860int main() {
90dd450c
VZ
15861
15862 return 0; }
15863
15864 struct Foo { void foo(size_t); void foo(unsigned long); };
15865
15866 int bar() {
a0b9e27f
MB
15867
15868; return 0; }
15869EOF
a85030bd 15870if { (eval echo configure:15871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 15871 rm -rf conftest*
90dd450c 15872 wx_cv_size_t_is_ulong=no
698dcdb6 15873else
a0b9e27f
MB
15874 echo "configure: failed program was:" >&5
15875 cat conftest.$ac_ext >&5
15876 rm -rf conftest*
15877 wx_cv_size_t_is_ulong=yes
15878
5c6fa7d2 15879fi
a0b9e27f
MB
15880rm -f conftest*
15881
247f5006 15882fi
a0b9e27f
MB
15883
15884echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 15885
90dd450c 15886 if test "$wx_cv_size_t_is_ulong" = "yes"; then
a0b9e27f 15887 cat >> confdefs.h <<\EOF
90dd450c 15888#define wxSIZE_T_IS_ULONG 1
a0b9e27f 15889EOF
4f14bcd8
GD
15890
15891 fi
90dd450c 15892fi
1e487827 15893
90dd450c 15894ac_ext=c
a0b9e27f 15895# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 15896ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
15897ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15898ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15899cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 15900
5c6fa7d2 15901
8284b0c5 15902
a0b9e27f 15903echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
a85030bd 15904echo "configure:15905: checking for pw_gecos in struct passwd" >&5
a0b9e27f
MB
15905if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
15906 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 15907else
a0b9e27f
MB
15908
15909 cat > conftest.$ac_ext <<EOF
a85030bd 15910#line 15911 "configure"
4f14bcd8 15911#include "confdefs.h"
90dd450c 15912#include <pwd.h>
a0b9e27f 15913int main() {
f6bcfd97 15914
90dd450c
VZ
15915 char *p;
15916 struct passwd *pw;
15917 p = pw->pw_gecos;
a0b9e27f
MB
15918
15919; return 0; }
15920EOF
a85030bd 15921if { (eval echo configure:15922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
15922 rm -rf conftest*
15923
90dd450c 15924 wx_cv_struct_pw_gecos=yes
a0b9e27f 15925
10f2d63a 15926else
a0b9e27f
MB
15927 echo "configure: failed program was:" >&5
15928 cat conftest.$ac_ext >&5
15929 rm -rf conftest*
15930
90dd450c 15931 wx_cv_struct_pw_gecos=no
a0b9e27f
MB
15932
15933
5c6fa7d2 15934fi
a0b9e27f
MB
15935rm -f conftest*
15936
247f5006
VZ
15937
15938fi
a0b9e27f
MB
15939
15940echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 15941
90dd450c 15942if test "$wx_cv_struct_pw_gecos" = "yes"; then
a0b9e27f 15943 cat >> confdefs.h <<\EOF
90dd450c 15944#define HAVE_PW_GECOS 1
a0b9e27f 15945EOF
c521c494 15946
90dd450c 15947fi
4f14bcd8 15948
8284b0c5 15949
d29b553b 15950if test "$wx_cv_sizeof_wchar_t" != "0"; then
a0b9e27f 15951 cat >> confdefs.h <<\EOF
d74f4b5a 15952#define wxUSE_WCHAR_T 1
a0b9e27f 15953EOF
d74f4b5a 15954
8284b0c5 15955
d74f4b5a
VZ
15956 WCSLEN_FOUND=0
15957 WCHAR_LINK=
a0b9e27f 15958 for ac_func in wcslen
7a30264c 15959do
a0b9e27f 15960echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 15961echo "configure:15962: checking for $ac_func" >&5
a0b9e27f
MB
15962if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15963 echo $ac_n "(cached) $ac_c" 1>&6
15964else
15965 cat > conftest.$ac_ext <<EOF
a85030bd 15966#line 15967 "configure"
4f14bcd8 15967#include "confdefs.h"
7a30264c 15968/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 15969 which can conflict with char $ac_func(); below. */
7a30264c 15970#include <assert.h>
4f14bcd8
GD
15971/* Override any gcc2 internal prototype to avoid an error. */
15972/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
15973 builtin and then its argument prototype would still apply. */
15974char $ac_func();
15975
15976int main() {
15977
7a30264c
VZ
15978/* The GNU C library defines this for functions which it implements
15979 to always fail with ENOSYS. Some functions are actually named
15980 something starting with __ and the normal name is an alias. */
15981#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15982choke me
15983#else
a0b9e27f 15984$ac_func();
7a30264c
VZ
15985#endif
15986
a0b9e27f
MB
15987; return 0; }
15988EOF
a85030bd 15989if { (eval echo configure:15990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
15990 rm -rf conftest*
15991 eval "ac_cv_func_$ac_func=yes"
15992else
15993 echo "configure: failed program was:" >&5
15994 cat conftest.$ac_ext >&5
15995 rm -rf conftest*
15996 eval "ac_cv_func_$ac_func=no"
15997fi
15998rm -f conftest*
15999fi
16000
16001if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16002 echo "$ac_t""yes" 1>&6
16003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16004 cat >> confdefs.h <<EOF
16005#define $ac_tr_func 1
16006EOF
d74f4b5a 16007 WCSLEN_FOUND=1
a0b9e27f
MB
16008else
16009 echo "$ac_t""no" 1>&6
7a30264c
VZ
16010fi
16011done
9d8deca0 16012
8284b0c5 16013
d74f4b5a 16014 if test "$WCSLEN_FOUND" = 0; then
7a30264c 16015 if test "$TOOLKIT" = "MSW"; then
a0b9e27f 16016 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
a85030bd 16017echo "configure:16018: checking for wcslen in -lmsvcrt" >&5
a0b9e27f
MB
16018ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16019if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16020 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16021else
a0b9e27f 16022 ac_save_LIBS="$LIBS"
7a30264c 16023LIBS="-lmsvcrt $LIBS"
a0b9e27f 16024cat > conftest.$ac_ext <<EOF
a85030bd 16025#line 16026 "configure"
10f2d63a 16026#include "confdefs.h"
4f14bcd8
GD
16027/* Override any gcc2 internal prototype to avoid an error. */
16028/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16029 builtin and then its argument prototype would still apply. */
16030char wcslen();
16031
16032int main() {
16033wcslen()
16034; return 0; }
16035EOF
a85030bd 16036if { (eval echo configure:16037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16037 rm -rf conftest*
16038 eval "ac_cv_lib_$ac_lib_var=yes"
16039else
16040 echo "configure: failed program was:" >&5
16041 cat conftest.$ac_ext >&5
16042 rm -rf conftest*
16043 eval "ac_cv_lib_$ac_lib_var=no"
16044fi
16045rm -f conftest*
16046LIBS="$ac_save_LIBS"
16047
16048fi
16049if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16050 echo "$ac_t""yes" 1>&6
d74f4b5a 16051 WCHAR_OK=1
a0b9e27f
MB
16052else
16053 echo "$ac_t""no" 1>&6
d29b553b 16054fi
698dcdb6 16055
7a30264c 16056 else
a0b9e27f 16057 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
a85030bd 16058echo "configure:16059: checking for wcslen in -lw" >&5
a0b9e27f
MB
16059ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16060if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16061 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 16062else
a0b9e27f 16063 ac_save_LIBS="$LIBS"
7a30264c 16064LIBS="-lw $LIBS"
a0b9e27f 16065cat > conftest.$ac_ext <<EOF
a85030bd 16066#line 16067 "configure"
95c8801c 16067#include "confdefs.h"
4f14bcd8
GD
16068/* Override any gcc2 internal prototype to avoid an error. */
16069/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16070 builtin and then its argument prototype would still apply. */
16071char wcslen();
52127426 16072
a0b9e27f
MB
16073int main() {
16074wcslen()
16075; return 0; }
16076EOF
a85030bd 16077if { (eval echo configure:16078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16078 rm -rf conftest*
16079 eval "ac_cv_lib_$ac_lib_var=yes"
16080else
16081 echo "configure: failed program was:" >&5
16082 cat conftest.$ac_ext >&5
16083 rm -rf conftest*
16084 eval "ac_cv_lib_$ac_lib_var=no"
16085fi
16086rm -f conftest*
16087LIBS="$ac_save_LIBS"
16088
16089fi
16090if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16091 echo "$ac_t""yes" 1>&6
16092
7a30264c 16093 WCHAR_LINK=" -lw"
d74f4b5a 16094 WCSLEN_FOUND=1
a0b9e27f
MB
16095
16096else
16097 echo "$ac_t""no" 1>&6
4f14bcd8 16098fi
10f2d63a 16099
7a30264c 16100 fi
d29b553b 16101 fi
95c8801c 16102
d74f4b5a 16103 if test "$WCSLEN_FOUND" = 1; then
a0b9e27f 16104 cat >> confdefs.h <<\EOF
d74f4b5a 16105#define HAVE_WCSLEN 1
a0b9e27f 16106EOF
10f2d63a 16107
d74f4b5a 16108 fi
52127426 16109
a0b9e27f 16110 for ac_func in wcsrtombs
eb4efbdc 16111do
a0b9e27f 16112echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 16113echo "configure:16114: checking for $ac_func" >&5
a0b9e27f
MB
16114if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16115 echo $ac_n "(cached) $ac_c" 1>&6
16116else
16117 cat > conftest.$ac_ext <<EOF
a85030bd 16118#line 16119 "configure"
eb4efbdc
VZ
16119#include "confdefs.h"
16120/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16121 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
16122#include <assert.h>
16123/* Override any gcc2 internal prototype to avoid an error. */
4f14bcd8 16124/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16125 builtin and then its argument prototype would still apply. */
16126char $ac_func();
16127
16128int main() {
16129
10f2d63a
VZ
16130/* The GNU C library defines this for functions which it implements
16131 to always fail with ENOSYS. Some functions are actually named
16132 something starting with __ and the normal name is an alias. */
247f5006 16133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
16134choke me
16135#else
a0b9e27f 16136$ac_func();
10f2d63a
VZ
16137#endif
16138
a0b9e27f
MB
16139; return 0; }
16140EOF
a85030bd 16141if { (eval echo configure:16142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16142 rm -rf conftest*
16143 eval "ac_cv_func_$ac_func=yes"
16144else
16145 echo "configure: failed program was:" >&5
16146 cat conftest.$ac_ext >&5
16147 rm -rf conftest*
16148 eval "ac_cv_func_$ac_func=no"
16149fi
16150rm -f conftest*
16151fi
270a909e 16152
a0b9e27f
MB
16153if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16154 echo "$ac_t""yes" 1>&6
16155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16156 cat >> confdefs.h <<EOF
16157#define $ac_tr_func 1
16158EOF
16159
16160else
16161 echo "$ac_t""no" 1>&6
4f14bcd8 16162fi
247f5006 16163done
1e487827 16164
af15babd 16165else
a0b9e27f 16166 echo "configure: warning: Wide character support is unavailable" 1>&2
7b4a847f 16167fi
52127426 16168
8284b0c5 16169
a0b9e27f
MB
16170ac_ext=C
16171# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 16172ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16173ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16174ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16175cross_compiling=$ac_cv_prog_cxx_cross
af15babd 16176
247f5006
VZ
16177
16178for ac_func in vsnprintf
16179do
a0b9e27f 16180echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 16181echo "configure:16182: checking for $ac_func" >&5
a0b9e27f
MB
16182if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16183 echo $ac_n "(cached) $ac_c" 1>&6
16184else
16185 cat > conftest.$ac_ext <<EOF
a85030bd 16186#line 16187 "configure"
af15babd 16187#include "confdefs.h"
247f5006 16188/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16189 which can conflict with char $ac_func(); below. */
247f5006
VZ
16190#include <assert.h>
16191/* Override any gcc2 internal prototype to avoid an error. */
16192#ifdef __cplusplus
16193extern "C"
16194#endif
16195/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16196 builtin and then its argument prototype would still apply. */
16197char $ac_func();
16198
16199int main() {
16200
247f5006
VZ
16201/* The GNU C library defines this for functions which it implements
16202 to always fail with ENOSYS. Some functions are actually named
16203 something starting with __ and the normal name is an alias. */
16204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16205choke me
16206#else
a0b9e27f 16207$ac_func();
247f5006 16208#endif
af15babd 16209
a0b9e27f
MB
16210; return 0; }
16211EOF
a85030bd 16212if { (eval echo configure:16213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16213 rm -rf conftest*
16214 eval "ac_cv_func_$ac_func=yes"
16215else
16216 echo "configure: failed program was:" >&5
16217 cat conftest.$ac_ext >&5
16218 rm -rf conftest*
16219 eval "ac_cv_func_$ac_func=no"
16220fi
16221rm -f conftest*
16222fi
52127426 16223
a0b9e27f
MB
16224if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16225 echo "$ac_t""yes" 1>&6
16226 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16227 cat >> confdefs.h <<EOF
16228#define $ac_tr_func 1
16229EOF
16230
16231else
16232 echo "$ac_t""no" 1>&6
5c6fa7d2 16233fi
247f5006 16234done
8284b0c5 16235
4f14bcd8 16236
247f5006 16237if test "$wxUSE_UNICODE" = yes; then
a0b9e27f 16238 for ac_func in fputwc wprintf vswprintf
d74f4b5a 16239do
a0b9e27f 16240echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 16241echo "configure:16242: checking for $ac_func" >&5
a0b9e27f
MB
16242if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16243 echo $ac_n "(cached) $ac_c" 1>&6
16244else
16245 cat > conftest.$ac_ext <<EOF
a85030bd 16246#line 16247 "configure"
d74f4b5a
VZ
16247#include "confdefs.h"
16248/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16249 which can conflict with char $ac_func(); below. */
d74f4b5a
VZ
16250#include <assert.h>
16251/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
16252#ifdef __cplusplus
16253extern "C"
16254#endif
d74f4b5a 16255/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16256 builtin and then its argument prototype would still apply. */
16257char $ac_func();
16258
16259int main() {
16260
d74f4b5a
VZ
16261/* The GNU C library defines this for functions which it implements
16262 to always fail with ENOSYS. Some functions are actually named
16263 something starting with __ and the normal name is an alias. */
16264#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16265choke me
16266#else
a0b9e27f 16267$ac_func();
d74f4b5a
VZ
16268#endif
16269
a0b9e27f
MB
16270; return 0; }
16271EOF
a85030bd 16272if { (eval echo configure:16273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16273 rm -rf conftest*
16274 eval "ac_cv_func_$ac_func=yes"
16275else
16276 echo "configure: failed program was:" >&5
16277 cat conftest.$ac_ext >&5
16278 rm -rf conftest*
16279 eval "ac_cv_func_$ac_func=no"
16280fi
16281rm -f conftest*
16282fi
d74f4b5a 16283
a0b9e27f
MB
16284if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16285 echo "$ac_t""yes" 1>&6
16286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16287 cat >> confdefs.h <<EOF
16288#define $ac_tr_func 1
16289EOF
16290
16291else
16292 echo "$ac_t""no" 1>&6
d74f4b5a
VZ
16293fi
16294done
16295
16296fi
16297
247f5006 16298ac_ext=c
a0b9e27f 16299# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
247f5006 16300ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
16301ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16302ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16303cross_compiling=$ac_cv_prog_cc_cross
247f5006
VZ
16304
16305
16306
16307
4f14bcd8 16308if test "$TOOLKIT" != "MSW"; then
af15babd 16309
8284b0c5
MB
16310
16311
a0b9e27f
MB
16312ac_ext=C
16313# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16314ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16315ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16316ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16317cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 16318
52127426 16319
a0b9e27f
MB
16320
16321 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
16322if test "${with_libiconv_prefix+set}" = set; then
16323 withval="$with_libiconv_prefix"
a0b9e27f 16324
b040e242
VS
16325 for dir in `echo "$withval" | tr : ' '`; do
16326 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16327 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16328 done
a0b9e27f
MB
16329
16330fi
b040e242
VS
16331
16332
a0b9e27f 16333 echo $ac_n "checking for iconv""... $ac_c" 1>&6
a85030bd 16334echo "configure:16335: checking for iconv" >&5
a0b9e27f
MB
16335if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
16336 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 16337else
a0b9e27f 16338
b040e242
VS
16339 am_cv_func_iconv="no, consider installing GNU libiconv"
16340 am_cv_lib_iconv=no
a0b9e27f 16341 cat > conftest.$ac_ext <<EOF
a85030bd 16342#line 16343 "configure"
af15babd 16343#include "confdefs.h"
b040e242 16344#include <stdlib.h>
4f14bcd8 16345#include <iconv.h>
a0b9e27f 16346int main() {
b040e242
VS
16347iconv_t cd = iconv_open("","");
16348 iconv(cd,NULL,NULL,NULL,NULL);
16349 iconv_close(cd);
a0b9e27f
MB
16350; return 0; }
16351EOF
a85030bd 16352if { (eval echo configure:16353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 16353 rm -rf conftest*
b040e242 16354 am_cv_func_iconv=yes
af15babd 16355else
a0b9e27f
MB
16356 echo "configure: failed program was:" >&5
16357 cat conftest.$ac_ext >&5
b040e242 16358fi
a0b9e27f 16359rm -f conftest*
b040e242
VS
16360 if test "$am_cv_func_iconv" != yes; then
16361 am_save_LIBS="$LIBS"
16362 LIBS="$LIBS -liconv"
a0b9e27f 16363 cat > conftest.$ac_ext <<EOF
a85030bd 16364#line 16365 "configure"
b040e242
VS
16365#include "confdefs.h"
16366#include <stdlib.h>
16367#include <iconv.h>
a0b9e27f 16368int main() {
b040e242
VS
16369iconv_t cd = iconv_open("","");
16370 iconv(cd,NULL,NULL,NULL,NULL);
16371 iconv_close(cd);
a0b9e27f
MB
16372; return 0; }
16373EOF
a85030bd 16374if { (eval echo configure:16375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 16375 rm -rf conftest*
b040e242
VS
16376 am_cv_lib_iconv=yes
16377 am_cv_func_iconv=yes
16378else
a0b9e27f
MB
16379 echo "configure: failed program was:" >&5
16380 cat conftest.$ac_ext >&5
af15babd 16381fi
a0b9e27f 16382rm -f conftest*
b040e242
VS
16383 LIBS="$am_save_LIBS"
16384 fi
a0b9e27f 16385
247f5006 16386fi
247f5006 16387
a0b9e27f
MB
16388echo "$ac_t""$am_cv_func_iconv" 1>&6
16389 if test "$am_cv_func_iconv" = yes; then
16390 cat >> confdefs.h <<\EOF
b040e242 16391#define HAVE_ICONV 1
a0b9e27f 16392EOF
b040e242 16393
a0b9e27f 16394 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
a85030bd 16395echo "configure:16396: checking if iconv needs const" >&5
a0b9e27f
MB
16396if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
16397 echo $ac_n "(cached) $ac_c" 1>&6
b040e242 16398else
a0b9e27f 16399 cat > conftest.$ac_ext <<EOF
a85030bd 16400#line 16401 "configure"
b040e242
VS
16401#include "confdefs.h"
16402
16403#include <stdlib.h>
16404#include <iconv.h>
16405extern
16406#ifdef __cplusplus
16407"C"
16408#endif
16409#if defined(__STDC__) || defined(__cplusplus)
16410size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16411#else
16412size_t iconv();
16413#endif
a0b9e27f
MB
16414
16415int main() {
af15babd 16416
a0b9e27f
MB
16417; return 0; }
16418EOF
a85030bd 16419if { (eval echo configure:16420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 16420 rm -rf conftest*
b7043674 16421 wx_cv_func_iconv_const="no"
b040e242 16422else
a0b9e27f
MB
16423 echo "configure: failed program was:" >&5
16424 cat conftest.$ac_ext >&5
16425 rm -rf conftest*
16426 wx_cv_func_iconv_const="yes"
16427
5c6fa7d2 16428fi
a0b9e27f
MB
16429rm -f conftest*
16430
247f5006 16431fi
a0b9e27f
MB
16432
16433echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
b7043674
VZ
16434
16435 iconv_const=
1c405bb5 16436 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
16437 iconv_const="const"
16438 fi
16439
a0b9e27f 16440 cat >> confdefs.h <<EOF
f09359cf 16441#define ICONV_CONST $iconv_const
a0b9e27f 16442EOF
b040e242
VS
16443
16444 fi
16445 LIBICONV=
16446 if test "$am_cv_lib_iconv" = yes; then
16447 LIBICONV="-liconv"
16448 fi
a0b9e27f 16449
b040e242
VS
16450
16451LIBS="$LIBICONV $LIBS"
4f14bcd8 16452ac_ext=c
a0b9e27f 16453# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16454ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
16455ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16456ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16457cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 16458
5c6fa7d2 16459
8284b0c5 16460if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
a0b9e27f 16461 for ac_func in sigaction
af15babd 16462do
a0b9e27f 16463echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 16464echo "configure:16465: checking for $ac_func" >&5
a0b9e27f
MB
16465if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16466 echo $ac_n "(cached) $ac_c" 1>&6
16467else
16468 cat > conftest.$ac_ext <<EOF
a85030bd 16469#line 16470 "configure"
af15babd
VZ
16470#include "confdefs.h"
16471/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16472 which can conflict with char $ac_func(); below. */
af15babd
VZ
16473#include <assert.h>
16474/* Override any gcc2 internal prototype to avoid an error. */
16475/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16476 builtin and then its argument prototype would still apply. */
16477char $ac_func();
16478
16479int main() {
16480
af15babd
VZ
16481/* The GNU C library defines this for functions which it implements
16482 to always fail with ENOSYS. Some functions are actually named
16483 something starting with __ and the normal name is an alias. */
16484#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16485choke me
16486#else
a0b9e27f 16487$ac_func();
af15babd
VZ
16488#endif
16489
a0b9e27f
MB
16490; return 0; }
16491EOF
a85030bd 16492if { (eval echo configure:16493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16493 rm -rf conftest*
16494 eval "ac_cv_func_$ac_func=yes"
16495else
16496 echo "configure: failed program was:" >&5
16497 cat conftest.$ac_ext >&5
16498 rm -rf conftest*
16499 eval "ac_cv_func_$ac_func=no"
16500fi
16501rm -f conftest*
16502fi
7b4a847f 16503
a0b9e27f
MB
16504if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16505 echo "$ac_t""yes" 1>&6
16506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16507 cat >> confdefs.h <<EOF
16508#define $ac_tr_func 1
16509EOF
16510
16511else
16512 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16513fi
16514done
16515
8284b0c5 16516
4f14bcd8 16517 if test "$ac_cv_func_sigaction" = "no"; then
a0b9e27f 16518 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
4f14bcd8
GD
16519 wxUSE_ON_FATAL_EXCEPTION=no
16520 fi
16521
16522 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f
MB
16523
16524 ac_ext=C
16525# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 16526ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
16527ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16528ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16529cross_compiling=$ac_cv_prog_cxx_cross
7b4a847f 16530
5c6fa7d2 16531
a0b9e27f 16532 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
a85030bd 16533echo "configure:16534: checking for sa_handler type" >&5
a0b9e27f
MB
16534if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16535 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 16536else
a0b9e27f
MB
16537
16538 cat > conftest.$ac_ext <<EOF
a85030bd 16539#line 16540 "configure"
af15babd 16540#include "confdefs.h"
4f14bcd8 16541#include <signal.h>
a0b9e27f 16542int main() {
4f14bcd8
GD
16543
16544 extern void testSigHandler(int);
16545
16546 struct sigaction sa;
16547 sa.sa_handler = testSigHandler;
a0b9e27f
MB
16548
16549; return 0; }
16550EOF
a85030bd 16551if { (eval echo configure:16552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
16552 rm -rf conftest*
16553
4f14bcd8 16554 wx_cv_type_sa_handler=int
a0b9e27f 16555
af15babd 16556else
a0b9e27f
MB
16557 echo "configure: failed program was:" >&5
16558 cat conftest.$ac_ext >&5
16559 rm -rf conftest*
16560
4f14bcd8 16561 wx_cv_type_sa_handler=void
a0b9e27f 16562
5c6fa7d2 16563fi
a0b9e27f
MB
16564rm -f conftest*
16565
247f5006 16566fi
a0b9e27f
MB
16567
16568echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
4f14bcd8
GD
16569
16570 ac_ext=c
a0b9e27f 16571# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 16572ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
16573ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16574ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16575cross_compiling=$ac_cv_prog_cc_cross
579d8138 16576
8284b0c5 16577
a0b9e27f 16578 cat >> confdefs.h <<EOF
4f14bcd8 16579#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
a0b9e27f 16580EOF
af15babd 16581
4f14bcd8
GD
16582 fi
16583fi
af15babd 16584
a1d22ad7 16585for ac_func in mkstemp mktemp
af15babd 16586do
a0b9e27f 16587echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 16588echo "configure:16589: checking for $ac_func" >&5
a0b9e27f
MB
16589if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16590 echo $ac_n "(cached) $ac_c" 1>&6
16591else
16592 cat > conftest.$ac_ext <<EOF
a85030bd 16593#line 16594 "configure"
af15babd
VZ
16594#include "confdefs.h"
16595/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16596 which can conflict with char $ac_func(); below. */
af15babd
VZ
16597#include <assert.h>
16598/* Override any gcc2 internal prototype to avoid an error. */
16599/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16600 builtin and then its argument prototype would still apply. */
16601char $ac_func();
16602
16603int main() {
16604
af15babd
VZ
16605/* The GNU C library defines this for functions which it implements
16606 to always fail with ENOSYS. Some functions are actually named
16607 something starting with __ and the normal name is an alias. */
16608#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16609choke me
16610#else
a0b9e27f 16611$ac_func();
af15babd
VZ
16612#endif
16613
a0b9e27f
MB
16614; return 0; }
16615EOF
a85030bd 16616if { (eval echo configure:16617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16617 rm -rf conftest*
16618 eval "ac_cv_func_$ac_func=yes"
16619else
16620 echo "configure: failed program was:" >&5
16621 cat conftest.$ac_ext >&5
16622 rm -rf conftest*
16623 eval "ac_cv_func_$ac_func=no"
16624fi
16625rm -f conftest*
16626fi
af15babd 16627
a0b9e27f
MB
16628if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16629 echo "$ac_t""yes" 1>&6
16630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16631 cat >> confdefs.h <<EOF
16632#define $ac_tr_func 1
16633EOF
ade35f11 16634 break
a0b9e27f
MB
16635else
16636 echo "$ac_t""no" 1>&6
ade35f11
VZ
16637fi
16638done
16639
8284b0c5 16640
a0b9e27f 16641echo $ac_n "checking for statfs""... $ac_c" 1>&6
a85030bd 16642echo "configure:16643: checking for statfs" >&5
a0b9e27f
MB
16643if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16644 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 16645else
a0b9e27f 16646 cat > conftest.$ac_ext <<EOF
a85030bd 16647#line 16648 "configure"
4f14bcd8
GD
16648#include "confdefs.h"
16649
16650 #if defined(__BSD__)
16651 #include <sys/param.h>
16652 #include <sys/mount.h>
16653 #else
16654 #include <sys/vfs.h>
16655 #endif
a0b9e27f
MB
16656
16657int main() {
4f14bcd8
GD
16658
16659 long l;
16660 struct statfs fs;
16661 statfs("/", &fs);
16662 l = fs.f_bsize;
16663 l += fs.f_blocks;
16664 l += fs.f_bavail;
a0b9e27f
MB
16665
16666; return 0; }
16667EOF
a85030bd 16668if { (eval echo configure:16669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
16669 rm -rf conftest*
16670
4f14bcd8 16671 wx_cv_func_statfs=yes
a0b9e27f 16672
4f14bcd8 16673else
a0b9e27f
MB
16674 echo "configure: failed program was:" >&5
16675 cat conftest.$ac_ext >&5
16676 rm -rf conftest*
16677
4f14bcd8 16678 wx_cv_func_statfs=no
a0b9e27f
MB
16679
16680
5c6fa7d2 16681fi
a0b9e27f 16682rm -f conftest*
8284b0c5 16683
247f5006 16684fi
a0b9e27f
MB
16685
16686echo "$ac_t""$wx_cv_func_statfs" 1>&6
4f14bcd8
GD
16687
16688if test "$wx_cv_func_statfs" = "yes"; then
a0b9e27f 16689 cat >> confdefs.h <<\EOF
4f14bcd8 16690#define HAVE_STATFS 1
a0b9e27f 16691EOF
4f14bcd8
GD
16692
16693else
a0b9e27f 16694 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
a85030bd 16695echo "configure:16696: checking for statvfs" >&5
a0b9e27f
MB
16696if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16697 echo $ac_n "(cached) $ac_c" 1>&6
af15babd 16698else
a0b9e27f 16699 cat > conftest.$ac_ext <<EOF
a85030bd 16700#line 16701 "configure"
af15babd 16701#include "confdefs.h"
af15babd 16702
4f14bcd8 16703 #include <sys/statvfs.h>
a0b9e27f
MB
16704
16705int main() {
af15babd 16706
4f14bcd8
GD
16707 long l;
16708 struct statvfs fs;
16709 statvfs("/", &fs);
16710 l = fs.f_bsize;
16711 l += fs.f_blocks;
16712 l += fs.f_bavail;
a0b9e27f
MB
16713
16714; return 0; }
16715EOF
a85030bd 16716if { (eval echo configure:16717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
16717 rm -rf conftest*
16718
4f14bcd8 16719 wx_cv_func_statvfs=yes
a0b9e27f 16720
af15babd 16721else
a0b9e27f
MB
16722 echo "configure: failed program was:" >&5
16723 cat conftest.$ac_ext >&5
16724 rm -rf conftest*
16725
4f14bcd8 16726 wx_cv_func_statvfs=no
a0b9e27f
MB
16727
16728
5c6fa7d2 16729fi
a0b9e27f
MB
16730rm -f conftest*
16731
247f5006 16732fi
a0b9e27f
MB
16733
16734echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 16735
4f14bcd8 16736 if test "$wx_cv_func_statvfs" = "yes"; then
a0b9e27f 16737 cat >> confdefs.h <<\EOF
4f14bcd8 16738#define HAVE_STATVFS 1
a0b9e27f 16739EOF
af15babd 16740
4f14bcd8 16741 else
a0b9e27f 16742 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
4f14bcd8
GD
16743 fi
16744fi
af15babd 16745
4f14bcd8 16746if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 16747 for ac_func in fcntl flock
af15babd 16748do
a0b9e27f 16749echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 16750echo "configure:16751: checking for $ac_func" >&5
a0b9e27f
MB
16751if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16752 echo $ac_n "(cached) $ac_c" 1>&6
16753else
16754 cat > conftest.$ac_ext <<EOF
a85030bd 16755#line 16756 "configure"
af15babd
VZ
16756#include "confdefs.h"
16757/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16758 which can conflict with char $ac_func(); below. */
af15babd
VZ
16759#include <assert.h>
16760/* Override any gcc2 internal prototype to avoid an error. */
af15babd 16761/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16762 builtin and then its argument prototype would still apply. */
16763char $ac_func();
16764
16765int main() {
16766
af15babd
VZ
16767/* The GNU C library defines this for functions which it implements
16768 to always fail with ENOSYS. Some functions are actually named
16769 something starting with __ and the normal name is an alias. */
16770#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16771choke me
16772#else
a0b9e27f 16773$ac_func();
af15babd
VZ
16774#endif
16775
a0b9e27f
MB
16776; return 0; }
16777EOF
a85030bd 16778if { (eval echo configure:16779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16779 rm -rf conftest*
16780 eval "ac_cv_func_$ac_func=yes"
16781else
16782 echo "configure: failed program was:" >&5
16783 cat conftest.$ac_ext >&5
16784 rm -rf conftest*
16785 eval "ac_cv_func_$ac_func=no"
16786fi
16787rm -f conftest*
16788fi
16789
16790if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16791 echo "$ac_t""yes" 1>&6
16792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16793 cat >> confdefs.h <<EOF
16794#define $ac_tr_func 1
16795EOF
4f14bcd8 16796 break
a0b9e27f
MB
16797else
16798 echo "$ac_t""no" 1>&6
af15babd
VZ
16799fi
16800done
16801
8284b0c5 16802
4f14bcd8 16803 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
a0b9e27f 16804 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f14bcd8
GD
16805 wxUSE_SNGLINST_CHECKER=no
16806 fi
16807fi
af15babd 16808
4f14bcd8 16809for ac_func in timegm
af15babd 16810do
a0b9e27f 16811echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 16812echo "configure:16813: checking for $ac_func" >&5
a0b9e27f
MB
16813if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16814 echo $ac_n "(cached) $ac_c" 1>&6
16815else
16816 cat > conftest.$ac_ext <<EOF
a85030bd 16817#line 16818 "configure"
af15babd
VZ
16818#include "confdefs.h"
16819/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16820 which can conflict with char $ac_func(); below. */
af15babd
VZ
16821#include <assert.h>
16822/* Override any gcc2 internal prototype to avoid an error. */
16823/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16824 builtin and then its argument prototype would still apply. */
16825char $ac_func();
16826
16827int main() {
16828
af15babd
VZ
16829/* The GNU C library defines this for functions which it implements
16830 to always fail with ENOSYS. Some functions are actually named
16831 something starting with __ and the normal name is an alias. */
247f5006
VZ
16832#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16833choke me
16834#else
a0b9e27f 16835$ac_func();
247f5006
VZ
16836#endif
16837
a0b9e27f
MB
16838; return 0; }
16839EOF
a85030bd 16840if { (eval echo configure:16841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16841 rm -rf conftest*
16842 eval "ac_cv_func_$ac_func=yes"
16843else
16844 echo "configure: failed program was:" >&5
16845 cat conftest.$ac_ext >&5
16846 rm -rf conftest*
16847 eval "ac_cv_func_$ac_func=no"
16848fi
16849rm -f conftest*
16850fi
703e0a69 16851
a0b9e27f
MB
16852if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16853 echo "$ac_t""yes" 1>&6
16854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16855 cat >> confdefs.h <<EOF
16856#define $ac_tr_func 1
16857EOF
16858
16859else
16860 echo "$ac_t""no" 1>&6
af15babd
VZ
16861fi
16862done
16863
8284b0c5 16864
4f14bcd8 16865for ac_func in putenv setenv
10f2d63a 16866do
a0b9e27f 16867echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 16868echo "configure:16869: checking for $ac_func" >&5
a0b9e27f
MB
16869if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16870 echo $ac_n "(cached) $ac_c" 1>&6
16871else
16872 cat > conftest.$ac_ext <<EOF
a85030bd 16873#line 16874 "configure"
af15babd
VZ
16874#include "confdefs.h"
16875/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16876 which can conflict with char $ac_func(); below. */
af15babd
VZ
16877#include <assert.h>
16878/* Override any gcc2 internal prototype to avoid an error. */
16879/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16880 builtin and then its argument prototype would still apply. */
16881char $ac_func();
16882
16883int main() {
16884
af15babd
VZ
16885/* The GNU C library defines this for functions which it implements
16886 to always fail with ENOSYS. Some functions are actually named
16887 something starting with __ and the normal name is an alias. */
16888#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16889choke me
16890#else
a0b9e27f 16891$ac_func();
af15babd
VZ
16892#endif
16893
a0b9e27f
MB
16894; return 0; }
16895EOF
a85030bd 16896if { (eval echo configure:16897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16897 rm -rf conftest*
16898 eval "ac_cv_func_$ac_func=yes"
16899else
16900 echo "configure: failed program was:" >&5
16901 cat conftest.$ac_ext >&5
16902 rm -rf conftest*
16903 eval "ac_cv_func_$ac_func=no"
16904fi
16905rm -f conftest*
16906fi
16907
16908if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16909 echo "$ac_t""yes" 1>&6
16910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16911 cat >> confdefs.h <<EOF
16912#define $ac_tr_func 1
16913EOF
4f14bcd8 16914 break
a0b9e27f
MB
16915else
16916 echo "$ac_t""no" 1>&6
af15babd 16917fi
af15babd
VZ
16918done
16919
8284b0c5 16920
4f14bcd8
GD
16921HAVE_SOME_SLEEP_FUNC=0
16922if test "$USE_BEOS" = 1; then
a0b9e27f 16923 cat >> confdefs.h <<\EOF
4f14bcd8 16924#define HAVE_SLEEP 1
a0b9e27f 16925EOF
af15babd 16926
4f14bcd8 16927 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16928fi
16929
4f14bcd8 16930if test "$USE_DARWIN" = 1; then
a0b9e27f 16931 cat >> confdefs.h <<\EOF
4f14bcd8 16932#define HAVE_USLEEP 1
a0b9e27f 16933EOF
10f2d63a 16934
4f14bcd8 16935 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16936fi
16937
4f14bcd8
GD
16938if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16939 POSIX4_LINK=
a0b9e27f 16940 for ac_func in nanosleep
4f14bcd8 16941do
a0b9e27f 16942echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 16943echo "configure:16944: checking for $ac_func" >&5
a0b9e27f
MB
16944if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16945 echo $ac_n "(cached) $ac_c" 1>&6
16946else
16947 cat > conftest.$ac_ext <<EOF
a85030bd 16948#line 16949 "configure"
10f2d63a 16949#include "confdefs.h"
4f14bcd8 16950/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 16951 which can conflict with char $ac_func(); below. */
4f14bcd8 16952#include <assert.h>
10f2d63a
VZ
16953/* Override any gcc2 internal prototype to avoid an error. */
16954/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
16955 builtin and then its argument prototype would still apply. */
16956char $ac_func();
16957
16958int main() {
16959
4f14bcd8
GD
16960/* The GNU C library defines this for functions which it implements
16961 to always fail with ENOSYS. Some functions are actually named
16962 something starting with __ and the normal name is an alias. */
16963#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16964choke me
16965#else
a0b9e27f 16966$ac_func();
4f14bcd8
GD
16967#endif
16968
a0b9e27f
MB
16969; return 0; }
16970EOF
a85030bd 16971if { (eval echo configure:16972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
16972 rm -rf conftest*
16973 eval "ac_cv_func_$ac_func=yes"
16974else
16975 echo "configure: failed program was:" >&5
16976 cat conftest.$ac_ext >&5
16977 rm -rf conftest*
16978 eval "ac_cv_func_$ac_func=no"
16979fi
16980rm -f conftest*
16981fi
16982
16983if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16984 echo "$ac_t""yes" 1>&6
16985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16986 cat >> confdefs.h <<EOF
16987#define $ac_tr_func 1
16988EOF
16989 cat >> confdefs.h <<\EOF
4f14bcd8 16990#define HAVE_NANOSLEEP 1
a0b9e27f 16991EOF
4f14bcd8 16992
10f2d63a 16993else
a0b9e27f
MB
16994 echo "$ac_t""no" 1>&6
16995echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
a85030bd 16996echo "configure:16997: checking for nanosleep in -lposix4" >&5
a0b9e27f
MB
16997ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16998if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16999 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17000else
a0b9e27f 17001 ac_save_LIBS="$LIBS"
4f14bcd8 17002LIBS="-lposix4 $LIBS"
a0b9e27f 17003cat > conftest.$ac_ext <<EOF
a85030bd 17004#line 17005 "configure"
10f2d63a
VZ
17005#include "confdefs.h"
17006/* Override any gcc2 internal prototype to avoid an error. */
17007/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17008 builtin and then its argument prototype would still apply. */
17009char nanosleep();
17010
17011int main() {
17012nanosleep()
17013; return 0; }
17014EOF
a85030bd 17015if { (eval echo configure:17016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17016 rm -rf conftest*
17017 eval "ac_cv_lib_$ac_lib_var=yes"
17018else
17019 echo "configure: failed program was:" >&5
17020 cat conftest.$ac_ext >&5
17021 rm -rf conftest*
17022 eval "ac_cv_lib_$ac_lib_var=no"
17023fi
17024rm -f conftest*
17025LIBS="$ac_save_LIBS"
17026
17027fi
17028if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17029 echo "$ac_t""yes" 1>&6
17030
17031 cat >> confdefs.h <<\EOF
4f14bcd8 17032#define HAVE_NANOSLEEP 1
a0b9e27f 17033EOF
4f14bcd8 17034
3d63bc3a 17035 POSIX4_LINK=" -lposix4"
a0b9e27f 17036
10f2d63a 17037else
a0b9e27f 17038 echo "$ac_t""no" 1>&6
10f2d63a 17039
a0b9e27f 17040 for ac_func in usleep
4f14bcd8 17041do
a0b9e27f 17042echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 17043echo "configure:17044: checking for $ac_func" >&5
a0b9e27f
MB
17044if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17045 echo $ac_n "(cached) $ac_c" 1>&6
17046else
17047 cat > conftest.$ac_ext <<EOF
a85030bd 17048#line 17049 "configure"
10f2d63a 17049#include "confdefs.h"
4f14bcd8 17050/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17051 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
17052#include <assert.h>
17053/* Override any gcc2 internal prototype to avoid an error. */
17054/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17055 builtin and then its argument prototype would still apply. */
17056char $ac_func();
17057
17058int main() {
17059
4f14bcd8
GD
17060/* The GNU C library defines this for functions which it implements
17061 to always fail with ENOSYS. Some functions are actually named
17062 something starting with __ and the normal name is an alias. */
17063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17064choke me
17065#else
a0b9e27f 17066$ac_func();
4f14bcd8
GD
17067#endif
17068
a0b9e27f
MB
17069; return 0; }
17070EOF
a85030bd 17071if { (eval echo configure:17072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17072 rm -rf conftest*
17073 eval "ac_cv_func_$ac_func=yes"
17074else
17075 echo "configure: failed program was:" >&5
17076 cat conftest.$ac_ext >&5
17077 rm -rf conftest*
17078 eval "ac_cv_func_$ac_func=no"
17079fi
17080rm -f conftest*
17081fi
17082
17083if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17084 echo "$ac_t""yes" 1>&6
17085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17086 cat >> confdefs.h <<EOF
17087#define $ac_tr_func 1
17088EOF
17089 cat >> confdefs.h <<\EOF
4f14bcd8 17090#define HAVE_USLEEP 1
a0b9e27f 17091EOF
4f14bcd8 17092
698dcdb6 17093else
a0b9e27f
MB
17094 echo "$ac_t""no" 1>&6
17095echo "configure: warning: wxSleep() function will not work" 1>&2
17096
10f2d63a 17097fi
4f14bcd8 17098done
10f2d63a 17099
a0b9e27f
MB
17100
17101
6232543b 17102fi
10f2d63a 17103
a0b9e27f
MB
17104
17105
1e487827 17106fi
4f14bcd8 17107done
703e0a69 17108
10f2d63a
VZ
17109fi
17110
4f14bcd8 17111for ac_func in uname gethostname
70846f0a 17112do
a0b9e27f 17113echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 17114echo "configure:17115: checking for $ac_func" >&5
a0b9e27f
MB
17115if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17116 echo $ac_n "(cached) $ac_c" 1>&6
17117else
17118 cat > conftest.$ac_ext <<EOF
a85030bd 17119#line 17120 "configure"
70846f0a
VZ
17120#include "confdefs.h"
17121/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17122 which can conflict with char $ac_func(); below. */
70846f0a
VZ
17123#include <assert.h>
17124/* Override any gcc2 internal prototype to avoid an error. */
17125/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17126 builtin and then its argument prototype would still apply. */
17127char $ac_func();
17128
17129int main() {
17130
70846f0a
VZ
17131/* The GNU C library defines this for functions which it implements
17132 to always fail with ENOSYS. Some functions are actually named
17133 something starting with __ and the normal name is an alias. */
17134#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17135choke me
17136#else
a0b9e27f 17137$ac_func();
70846f0a
VZ
17138#endif
17139
a0b9e27f
MB
17140; return 0; }
17141EOF
a85030bd 17142if { (eval echo configure:17143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17143 rm -rf conftest*
17144 eval "ac_cv_func_$ac_func=yes"
17145else
17146 echo "configure: failed program was:" >&5
17147 cat conftest.$ac_ext >&5
17148 rm -rf conftest*
17149 eval "ac_cv_func_$ac_func=no"
17150fi
17151rm -f conftest*
17152fi
17153
17154if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17155 echo "$ac_t""yes" 1>&6
17156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17157 cat >> confdefs.h <<EOF
17158#define $ac_tr_func 1
17159EOF
4f14bcd8 17160 break
a0b9e27f
MB
17161else
17162 echo "$ac_t""no" 1>&6
70846f0a
VZ
17163fi
17164done
17165
8284b0c5
MB
17166
17167
a0b9e27f
MB
17168ac_ext=C
17169# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17170ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
17171ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17172ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17173cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5 17174
4f14bcd8
GD
17175
17176for ac_func in strtok_r
10f2d63a 17177do
a0b9e27f 17178echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 17179echo "configure:17180: checking for $ac_func" >&5
a0b9e27f
MB
17180if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17181 echo $ac_n "(cached) $ac_c" 1>&6
17182else
17183 cat > conftest.$ac_ext <<EOF
a85030bd 17184#line 17185 "configure"
10f2d63a 17185#include "confdefs.h"
4f14bcd8 17186/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17187 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
17188#include <assert.h>
17189/* Override any gcc2 internal prototype to avoid an error. */
17190#ifdef __cplusplus
17191extern "C"
17192#endif
17193/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17194 builtin and then its argument prototype would still apply. */
17195char $ac_func();
17196
17197int main() {
17198
4f14bcd8
GD
17199/* The GNU C library defines this for functions which it implements
17200 to always fail with ENOSYS. Some functions are actually named
17201 something starting with __ and the normal name is an alias. */
17202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17203choke me
17204#else
a0b9e27f 17205$ac_func();
4f14bcd8
GD
17206#endif
17207
a0b9e27f
MB
17208; return 0; }
17209EOF
a85030bd 17210if { (eval echo configure:17211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17211 rm -rf conftest*
17212 eval "ac_cv_func_$ac_func=yes"
17213else
17214 echo "configure: failed program was:" >&5
17215 cat conftest.$ac_ext >&5
17216 rm -rf conftest*
17217 eval "ac_cv_func_$ac_func=no"
17218fi
17219rm -f conftest*
17220fi
4f14bcd8 17221
a0b9e27f
MB
17222if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17223 echo "$ac_t""yes" 1>&6
17224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17225 cat >> confdefs.h <<EOF
17226#define $ac_tr_func 1
17227EOF
17228
17229else
17230 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17231fi
17232done
17233
8284b0c5 17234
4f14bcd8 17235ac_ext=c
a0b9e27f 17236# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4f14bcd8 17237ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
17238ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17239ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17240cross_compiling=$ac_cv_prog_cc_cross
7b4a847f 17241
5c6fa7d2 17242
8284b0c5 17243INET_LINK=
4f14bcd8
GD
17244for ac_func in inet_addr
17245do
a0b9e27f 17246echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 17247echo "configure:17248: checking for $ac_func" >&5
a0b9e27f
MB
17248if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17249 echo $ac_n "(cached) $ac_c" 1>&6
17250else
17251 cat > conftest.$ac_ext <<EOF
a85030bd 17252#line 17253 "configure"
10f2d63a 17253#include "confdefs.h"
4f14bcd8 17254/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17255 which can conflict with char $ac_func(); below. */
4f14bcd8 17256#include <assert.h>
10f2d63a
VZ
17257/* Override any gcc2 internal prototype to avoid an error. */
17258/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17259 builtin and then its argument prototype would still apply. */
17260char $ac_func();
17261
17262int main() {
17263
4f14bcd8
GD
17264/* The GNU C library defines this for functions which it implements
17265 to always fail with ENOSYS. Some functions are actually named
17266 something starting with __ and the normal name is an alias. */
17267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17268choke me
17269#else
a0b9e27f 17270$ac_func();
4f14bcd8
GD
17271#endif
17272
a0b9e27f
MB
17273; return 0; }
17274EOF
a85030bd 17275if { (eval echo configure:17276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17276 rm -rf conftest*
17277 eval "ac_cv_func_$ac_func=yes"
17278else
17279 echo "configure: failed program was:" >&5
17280 cat conftest.$ac_ext >&5
17281 rm -rf conftest*
17282 eval "ac_cv_func_$ac_func=no"
17283fi
17284rm -f conftest*
17285fi
17286
17287if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17288 echo "$ac_t""yes" 1>&6
17289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17290 cat >> confdefs.h <<EOF
17291#define $ac_tr_func 1
17292EOF
17293 cat >> confdefs.h <<\EOF
4f14bcd8 17294#define HAVE_INET_ADDR 1
a0b9e27f 17295EOF
10f2d63a
VZ
17296
17297else
a0b9e27f
MB
17298 echo "$ac_t""no" 1>&6
17299echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
a85030bd 17300echo "configure:17301: checking for inet_addr in -lnsl" >&5
a0b9e27f
MB
17301ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17302if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17303 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17304else
a0b9e27f 17305 ac_save_LIBS="$LIBS"
4f14bcd8 17306LIBS="-lnsl $LIBS"
a0b9e27f 17307cat > conftest.$ac_ext <<EOF
a85030bd 17308#line 17309 "configure"
10f2d63a
VZ
17309#include "confdefs.h"
17310/* Override any gcc2 internal prototype to avoid an error. */
17311/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17312 builtin and then its argument prototype would still apply. */
17313char inet_addr();
17314
17315int main() {
17316inet_addr()
17317; return 0; }
17318EOF
a85030bd 17319if { (eval echo configure:17320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17320 rm -rf conftest*
17321 eval "ac_cv_lib_$ac_lib_var=yes"
17322else
17323 echo "configure: failed program was:" >&5
17324 cat conftest.$ac_ext >&5
17325 rm -rf conftest*
17326 eval "ac_cv_lib_$ac_lib_var=no"
17327fi
17328rm -f conftest*
17329LIBS="$ac_save_LIBS"
17330
17331fi
17332if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17333 echo "$ac_t""yes" 1>&6
4f14bcd8 17334 INET_LINK="nsl"
10f2d63a 17335else
a0b9e27f
MB
17336 echo "$ac_t""no" 1>&6
17337echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
a85030bd 17338echo "configure:17339: checking for inet_addr in -lresolv" >&5
a0b9e27f
MB
17339ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
17340if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17341 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17342else
a0b9e27f 17343 ac_save_LIBS="$LIBS"
4f14bcd8 17344LIBS="-lresolv $LIBS"
a0b9e27f 17345cat > conftest.$ac_ext <<EOF
a85030bd 17346#line 17347 "configure"
7b4a847f 17347#include "confdefs.h"
5c6fa7d2 17348/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2 17349/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17350 builtin and then its argument prototype would still apply. */
17351char inet_addr();
17352
17353int main() {
17354inet_addr()
17355; return 0; }
17356EOF
a85030bd 17357if { (eval echo configure:17358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17358 rm -rf conftest*
17359 eval "ac_cv_lib_$ac_lib_var=yes"
17360else
17361 echo "configure: failed program was:" >&5
17362 cat conftest.$ac_ext >&5
17363 rm -rf conftest*
17364 eval "ac_cv_lib_$ac_lib_var=no"
17365fi
17366rm -f conftest*
17367LIBS="$ac_save_LIBS"
17368
17369fi
17370if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17371 echo "$ac_t""yes" 1>&6
4f14bcd8 17372 INET_LINK="resolv"
698dcdb6 17373else
a0b9e27f
MB
17374 echo "$ac_t""no" 1>&6
17375echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
a85030bd 17376echo "configure:17377: checking for inet_addr in -lsocket" >&5
a0b9e27f
MB
17377ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17378if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17379 echo $ac_n "(cached) $ac_c" 1>&6
3c011993 17380else
a0b9e27f 17381 ac_save_LIBS="$LIBS"
3c011993 17382LIBS="-lsocket $LIBS"
a0b9e27f 17383cat > conftest.$ac_ext <<EOF
a85030bd 17384#line 17385 "configure"
3c011993
VZ
17385#include "confdefs.h"
17386/* Override any gcc2 internal prototype to avoid an error. */
17387/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17388 builtin and then its argument prototype would still apply. */
17389char inet_addr();
4f14bcd8 17390
a0b9e27f
MB
17391int main() {
17392inet_addr()
17393; return 0; }
17394EOF
a85030bd 17395if { (eval echo configure:17396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17396 rm -rf conftest*
17397 eval "ac_cv_lib_$ac_lib_var=yes"
17398else
17399 echo "configure: failed program was:" >&5
17400 cat conftest.$ac_ext >&5
17401 rm -rf conftest*
17402 eval "ac_cv_lib_$ac_lib_var=no"
8284b0c5 17403fi
a0b9e27f
MB
17404rm -f conftest*
17405LIBS="$ac_save_LIBS"
698dcdb6 17406
7b4a847f 17407fi
a0b9e27f
MB
17408if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17409 echo "$ac_t""yes" 1>&6
17410 INET_LINK="socket"
17411
17412else
17413 echo "$ac_t""no" 1>&6
17414fi
579d8138 17415
a0b9e27f 17416
5c6fa7d2 17417fi
52127426 17418
a0b9e27f
MB
17419
17420fi
247f5006 17421
a0b9e27f 17422
8284b0c5 17423
698dcdb6 17424fi
4f14bcd8
GD
17425done
17426
8284b0c5 17427
4f14bcd8
GD
17428for ac_func in inet_aton
17429do
a0b9e27f 17430echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 17431echo "configure:17432: checking for $ac_func" >&5
a0b9e27f
MB
17432if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17433 echo $ac_n "(cached) $ac_c" 1>&6
17434else
17435 cat > conftest.$ac_ext <<EOF
a85030bd 17436#line 17437 "configure"
f6bcfd97 17437#include "confdefs.h"
4f14bcd8 17438/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17439 which can conflict with char $ac_func(); below. */
4f14bcd8 17440#include <assert.h>
f6bcfd97
BP
17441/* Override any gcc2 internal prototype to avoid an error. */
17442/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17443 builtin and then its argument prototype would still apply. */
17444char $ac_func();
17445
17446int main() {
17447
4f14bcd8
GD
17448/* The GNU C library defines this for functions which it implements
17449 to always fail with ENOSYS. Some functions are actually named
17450 something starting with __ and the normal name is an alias. */
17451#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17452choke me
17453#else
a0b9e27f 17454$ac_func();
4f14bcd8
GD
17455#endif
17456
a0b9e27f
MB
17457; return 0; }
17458EOF
a85030bd 17459if { (eval echo configure:17460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17460 rm -rf conftest*
17461 eval "ac_cv_func_$ac_func=yes"
17462else
17463 echo "configure: failed program was:" >&5
17464 cat conftest.$ac_ext >&5
17465 rm -rf conftest*
17466 eval "ac_cv_func_$ac_func=no"
17467fi
17468rm -f conftest*
17469fi
17470
17471if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17472 echo "$ac_t""yes" 1>&6
17473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17474 cat >> confdefs.h <<EOF
17475#define $ac_tr_func 1
17476EOF
17477 cat >> confdefs.h <<\EOF
4f14bcd8 17478#define HAVE_INET_ATON 1
a0b9e27f 17479EOF
4f14bcd8 17480
10f2d63a 17481else
a0b9e27f
MB
17482 echo "$ac_t""no" 1>&6
17483 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
a85030bd 17484echo "configure:17485: checking for inet_aton in -l$INET_LINK" >&5
a0b9e27f
MB
17485ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17486if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17487 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 17488else
a0b9e27f 17489 ac_save_LIBS="$LIBS"
4f14bcd8 17490LIBS="-l$INET_LINK $LIBS"
a0b9e27f 17491cat > conftest.$ac_ext <<EOF
a85030bd 17492#line 17493 "configure"
10f2d63a 17493#include "confdefs.h"
6232543b 17494/* Override any gcc2 internal prototype to avoid an error. */
6232543b 17495/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17496 builtin and then its argument prototype would still apply. */
17497char inet_aton();
17498
17499int main() {
17500inet_aton()
17501; return 0; }
17502EOF
a85030bd 17503if { (eval echo configure:17504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17504 rm -rf conftest*
17505 eval "ac_cv_lib_$ac_lib_var=yes"
17506else
17507 echo "configure: failed program was:" >&5
17508 cat conftest.$ac_ext >&5
17509 rm -rf conftest*
17510 eval "ac_cv_lib_$ac_lib_var=no"
17511fi
17512rm -f conftest*
17513LIBS="$ac_save_LIBS"
4f14bcd8 17514
10f2d63a 17515fi
a0b9e27f
MB
17516if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17517 echo "$ac_t""yes" 1>&6
17518 cat >> confdefs.h <<\EOF
17519#define HAVE_INET_ATON 1
17520EOF
10f2d63a 17521
a0b9e27f
MB
17522else
17523 echo "$ac_t""no" 1>&6
17524fi
247f5006 17525
a0b9e27f 17526
10f2d63a 17527fi
4f14bcd8 17528done
10f2d63a 17529
8284b0c5 17530
4f14bcd8 17531if test "x$INET_LINK" != "x"; then
a0b9e27f 17532 cat >> confdefs.h <<\EOF
4f14bcd8 17533#define HAVE_INET_ADDR 1
a0b9e27f 17534EOF
4f14bcd8 17535
3d63bc3a 17536 INET_LINK=" -l$INET_LINK"
6232543b 17537fi
10f2d63a 17538
1e487827 17539fi
703e0a69 17540
8284b0c5 17541
a0b9e27f 17542cat > confcache <<\EOF
4f14bcd8
GD
17543# This file is a shell script that caches the results of configure
17544# tests run on this system so they can be shared between configure
a0b9e27f
MB
17545# scripts and configure runs. It is not useful on other systems.
17546# If it contains results you don't want to keep, you may remove or edit it.
4f14bcd8 17547#
a0b9e27f
MB
17548# By default, configure uses ./config.cache as the cache file,
17549# creating it if it does not exist already. You can give configure
17550# the --cache-file=FILE option to use a different cache file; that is
17551# what configure does when it calls configure scripts in
17552# subdirectories, so they share the cache.
17553# Giving --cache-file=/dev/null disables caching, for debugging configure.
17554# config.status only pays attention to the cache file if you give it the
17555# --recheck option to rerun configure.
4f14bcd8 17556#
a0b9e27f 17557EOF
4f14bcd8
GD
17558# The following way of writing the cache mishandles newlines in values,
17559# but we know of no workaround that is simple, portable, and efficient.
17560# So, don't put newlines in cache variables' values.
17561# Ultrix sh set writes to stderr and can't be redirected directly,
17562# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
17563(set) 2>&1 |
17564 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17565 *ac_space=\ *)
17566 # `set' does not quote correctly, so add quotes (double-quote substitution
17567 # turns \\\\ into \\, and sed turns \\ into \).
17568 sed -n \
17569 -e "s/'/'\\\\''/g" \
17570 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17571 ;;
17572 *)
17573 # `set' quotes correctly as required by POSIX, so do not add quotes.
17574 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17575 ;;
17576 esac >> confcache
17577if cmp -s $cache_file confcache; then
17578 :
17579else
4f14bcd8 17580 if test -w $cache_file; then
a0b9e27f
MB
17581 echo "updating cache $cache_file"
17582 cat confcache > $cache_file
f6bcfd97 17583 else
4f14bcd8 17584 echo "not updating unwritable cache $cache_file"
f6bcfd97 17585 fi
4f14bcd8
GD
17586fi
17587rm -f confcache
f6bcfd97 17588
8284b0c5 17589
a0b9e27f 17590
009fead0 17591CPP_MT_FLAG=
4f14bcd8
GD
17592if test "$TOOLKIT" != "MSW"; then
17593
a0b9e27f 17594
7274f1c7 17595 THREADS_LINK=
009fead0 17596 THREADS_CFLAGS=
7274f1c7
RL
17597
17598 if test "$wxUSE_THREADS" = "yes" ; then
17599 if test "$wxUSE_WINE" = 1 ; then
a0b9e27f 17600 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
17601 wxUSE_THREADS="no"
17602 elif test "$USE_BEOS" = 1; then
a0b9e27f 17603 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
17604 wxUSE_THREADS="no"
17605 fi
4f14bcd8 17606 fi
4f14bcd8 17607
7274f1c7 17608 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f
MB
17609
17610
009fead0
VZ
17611 THREAD_OPTS="-pthread"
17612 case "${host}" in
17613 *-*-solaris2* | *-*-sunos4* )
17614 if test "x$GCC" = "xyes"; then
126be6b4 17615 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
17616 else
17617 THREAD_OPTS="-mt $THREAD_OPTS"
17618 fi
17619 ;;
17620 *-*-freebsd*)
17621 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17622 ;;
17234b26
MB
17623 *-*-darwin* | *-*-cygwin* )
17624 THREAD_OPTS=""
4101db81 17625 ;;
8f4a9a10 17626 *-*-aix*)
009fead0
VZ
17627 THREAD_OPTS="pthreads"
17628 ;;
009fead0 17629 esac
4f14bcd8 17630
02a1dfba 17631 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 17632
009fead0
VZ
17633 THREADS_OK=no
17634 for flag in $THREAD_OPTS; do
17635 case $flag in
17636 none)
a0b9e27f 17637 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
a85030bd 17638echo "configure:17639: checking whether pthreads work without any flags" >&5
009fead0 17639 ;;
698dcdb6 17640
009fead0 17641 -*)
a0b9e27f 17642 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
a85030bd 17643echo "configure:17644: checking whether pthreads work with $flag" >&5
009fead0
VZ
17644 THREADS_CFLAGS="$flag"
17645 ;;
698dcdb6 17646
009fead0 17647 *)
a0b9e27f 17648 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
a85030bd 17649echo "configure:17650: checking for the pthreads library -l$flag" >&5
009fead0
VZ
17650 THREADS_LINK="-l$flag"
17651 ;;
17652 esac
10f2d63a 17653
009fead0
VZ
17654 save_LIBS="$LIBS"
17655 save_CFLAGS="$CFLAGS"
17656 LIBS="$THREADS_LINK $LIBS"
04727afd 17657 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 17658
a0b9e27f 17659 cat > conftest.$ac_ext <<EOF
a85030bd 17660#line 17661 "configure"
009fead0
VZ
17661#include "confdefs.h"
17662#include <pthread.h>
a0b9e27f 17663int main() {
009fead0 17664pthread_create(0,0,0,0);
a0b9e27f
MB
17665; return 0; }
17666EOF
a85030bd 17667if { (eval echo configure:17668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f 17668 rm -rf conftest*
009fead0 17669 THREADS_OK=yes
10f2d63a 17670else
a0b9e27f
MB
17671 echo "configure: failed program was:" >&5
17672 cat conftest.$ac_ext >&5
6232543b 17673fi
a0b9e27f 17674rm -f conftest*
698dcdb6 17675
009fead0
VZ
17676 LIBS="$save_LIBS"
17677 CFLAGS="$save_CFLAGS"
d9b9876f 17678
a0b9e27f 17679 echo "$ac_t""$THREADS_OK" 1>&6
009fead0
VZ
17680 if test "x$THREADS_OK" = "xyes"; then
17681 break;
17682 fi
d9b9876f 17683
009fead0
VZ
17684 THREADS_LINK=""
17685 THREADS_CFLAGS=""
17686 done
4f14bcd8 17687
009fead0
VZ
17688 if test "x$THREADS_OK" != "xyes"; then
17689 wxUSE_THREADS=no
a0b9e27f 17690 echo "configure: warning: No thread support on this system... disabled" 1>&2
009fead0 17691 else
fe5a9cab
VZ
17692 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17693
a0b9e27f 17694 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
a85030bd 17695echo "configure:17696: checking if more special flags are required for pthreads" >&5
009fead0
VZ
17696 flag=no
17697 case "${host}" in
17698 *-aix* | *-freebsd*)
17699 flag="-D_THREAD_SAFE"
17700 ;;
17701 *solaris* | alpha*-osf*)
17702 flag="-D_REENTRANT"
17703 ;;
17704 esac
a0b9e27f 17705 echo "$ac_t""${flag}" 1>&6
009fead0 17706 if test "x$flag" != xno; then
04727afd 17707 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
17708 fi
17709
009fead0 17710 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 17711 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
17712 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17713 fi
17714 fi
4f14bcd8 17715 fi
4f14bcd8 17716
7274f1c7 17717 if test "$wxUSE_THREADS" = "yes" ; then
a0b9e27f 17718 for ac_func in thr_setconcurrency
4f14bcd8 17719do
a0b9e27f 17720echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 17721echo "configure:17722: checking for $ac_func" >&5
a0b9e27f
MB
17722if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17723 echo $ac_n "(cached) $ac_c" 1>&6
17724else
17725 cat > conftest.$ac_ext <<EOF
a85030bd 17726#line 17727 "configure"
d9b9876f 17727#include "confdefs.h"
4f14bcd8 17728/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17729 which can conflict with char $ac_func(); below. */
4f14bcd8
GD
17730#include <assert.h>
17731/* Override any gcc2 internal prototype to avoid an error. */
17732/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17733 builtin and then its argument prototype would still apply. */
17734char $ac_func();
17735
17736int main() {
17737
4f14bcd8
GD
17738/* The GNU C library defines this for functions which it implements
17739 to always fail with ENOSYS. Some functions are actually named
17740 something starting with __ and the normal name is an alias. */
17741#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17742choke me
17743#else
a0b9e27f 17744$ac_func();
4f14bcd8
GD
17745#endif
17746
a0b9e27f
MB
17747; return 0; }
17748EOF
a85030bd 17749if { (eval echo configure:17750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17750 rm -rf conftest*
17751 eval "ac_cv_func_$ac_func=yes"
17752else
17753 echo "configure: failed program was:" >&5
17754 cat conftest.$ac_ext >&5
17755 rm -rf conftest*
17756 eval "ac_cv_func_$ac_func=no"
17757fi
17758rm -f conftest*
17759fi
698dcdb6 17760
a0b9e27f
MB
17761if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17762 echo "$ac_t""yes" 1>&6
17763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17764 cat >> confdefs.h <<EOF
17765#define $ac_tr_func 1
17766EOF
17767
17768else
17769 echo "$ac_t""no" 1>&6
10f2d63a 17770fi
4f14bcd8 17771done
10f2d63a 17772
8284b0c5 17773
a0b9e27f 17774 for ac_hdr in sched.h
4f14bcd8 17775do
a0b9e27f
MB
17776ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17777echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a85030bd 17778echo "configure:17779: checking for $ac_hdr" >&5
a0b9e27f
MB
17779if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17780 echo $ac_n "(cached) $ac_c" 1>&6
17781else
17782 cat > conftest.$ac_ext <<EOF
a85030bd 17783#line 17784 "configure"
247f5006 17784#include "confdefs.h"
a0b9e27f
MB
17785#include <$ac_hdr>
17786EOF
17787ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 17788{ (eval echo configure:17789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
17789ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17790if test -z "$ac_err"; then
17791 rm -rf conftest*
17792 eval "ac_cv_header_$ac_safe=yes"
17793else
17794 echo "$ac_err" >&5
17795 echo "configure: failed program was:" >&5
4f14bcd8 17796 cat conftest.$ac_ext >&5
a0b9e27f
MB
17797 rm -rf conftest*
17798 eval "ac_cv_header_$ac_safe=no"
13111b2a 17799fi
a0b9e27f 17800rm -f conftest*
10f2d63a 17801fi
a0b9e27f
MB
17802if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17803 echo "$ac_t""yes" 1>&6
17804 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17805 cat >> confdefs.h <<EOF
17806#define $ac_tr_hdr 1
17807EOF
17808
17809else
17810 echo "$ac_t""no" 1>&6
f6bcfd97 17811fi
4f14bcd8 17812done
f6bcfd97 17813
009fead0 17814 if test "$ac_cv_header_sched_h" = "yes"; then
a0b9e27f 17815 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
a85030bd 17816echo "configure:17817: checking for sched_yield" >&5
a0b9e27f
MB
17817if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
17818 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17819else
a0b9e27f 17820 cat > conftest.$ac_ext <<EOF
a85030bd 17821#line 17822 "configure"
4f14bcd8 17822#include "confdefs.h"
009fead0 17823/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17824 which can conflict with char sched_yield(); below. */
009fead0 17825#include <assert.h>
4f14bcd8
GD
17826/* Override any gcc2 internal prototype to avoid an error. */
17827/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17828 builtin and then its argument prototype would still apply. */
17829char sched_yield();
17830
17831int main() {
17832
009fead0
VZ
17833/* The GNU C library defines this for functions which it implements
17834 to always fail with ENOSYS. Some functions are actually named
17835 something starting with __ and the normal name is an alias. */
17836#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17837choke me
17838#else
a0b9e27f 17839sched_yield();
009fead0
VZ
17840#endif
17841
a0b9e27f
MB
17842; return 0; }
17843EOF
a85030bd 17844if { (eval echo configure:17845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17845 rm -rf conftest*
17846 eval "ac_cv_func_sched_yield=yes"
17847else
17848 echo "configure: failed program was:" >&5
17849 cat conftest.$ac_ext >&5
17850 rm -rf conftest*
17851 eval "ac_cv_func_sched_yield=no"
17852fi
17853rm -f conftest*
17854fi
17855
17856if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
17857 echo "$ac_t""yes" 1>&6
17858 cat >> confdefs.h <<\EOF
4f14bcd8 17859#define HAVE_SCHED_YIELD 1
a0b9e27f 17860EOF
10f2d63a 17861
4f14bcd8 17862else
a0b9e27f 17863 echo "$ac_t""no" 1>&6
009fead0 17864
a0b9e27f 17865 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
a85030bd 17866echo "configure:17867: checking for sched_yield in -lposix4" >&5
a0b9e27f
MB
17867ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17868if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17869 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8 17870else
a0b9e27f 17871 ac_save_LIBS="$LIBS"
4f14bcd8 17872LIBS="-lposix4 $LIBS"
a0b9e27f 17873cat > conftest.$ac_ext <<EOF
a85030bd 17874#line 17875 "configure"
4f14bcd8
GD
17875#include "confdefs.h"
17876/* Override any gcc2 internal prototype to avoid an error. */
17877/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17878 builtin and then its argument prototype would still apply. */
17879char sched_yield();
17880
17881int main() {
17882sched_yield()
17883; return 0; }
17884EOF
a85030bd 17885if { (eval echo configure:17886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17886 rm -rf conftest*
17887 eval "ac_cv_lib_$ac_lib_var=yes"
17888else
17889 echo "configure: failed program was:" >&5
17890 cat conftest.$ac_ext >&5
17891 rm -rf conftest*
17892 eval "ac_cv_lib_$ac_lib_var=no"
17893fi
17894rm -f conftest*
17895LIBS="$ac_save_LIBS"
17896
17897fi
17898if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17899 echo "$ac_t""yes" 1>&6
17900 cat >> confdefs.h <<\EOF
4f14bcd8 17901#define HAVE_SCHED_YIELD 1
a0b9e27f 17902EOF
3d63bc3a 17903 POSIX4_LINK=" -lposix4"
4f14bcd8 17904else
a0b9e27f
MB
17905 echo "$ac_t""no" 1>&6
17906echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17907
54276ccf
VZ
17908fi
17909
a0b9e27f
MB
17910
17911
4f14bcd8 17912fi
698dcdb6 17913
009fead0 17914 fi
10f2d63a 17915
7274f1c7 17916 HAVE_PRIOR_FUNCS=0
a0b9e27f 17917 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
a85030bd 17918echo "configure:17919: checking for pthread_attr_getschedpolicy" >&5
a0b9e27f
MB
17919if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
17920 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 17921else
a0b9e27f 17922 cat > conftest.$ac_ext <<EOF
a85030bd 17923#line 17924 "configure"
422107f9 17924#include "confdefs.h"
009fead0 17925/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 17926 which can conflict with char pthread_attr_getschedpolicy(); below. */
009fead0 17927#include <assert.h>
4f14bcd8
GD
17928/* Override any gcc2 internal prototype to avoid an error. */
17929/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17930 builtin and then its argument prototype would still apply. */
17931char pthread_attr_getschedpolicy();
17932
17933int main() {
17934
009fead0
VZ
17935/* The GNU C library defines this for functions which it implements
17936 to always fail with ENOSYS. Some functions are actually named
17937 something starting with __ and the normal name is an alias. */
17938#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17939choke me
17940#else
a0b9e27f 17941pthread_attr_getschedpolicy();
009fead0
VZ
17942#endif
17943
a0b9e27f
MB
17944; return 0; }
17945EOF
a85030bd 17946if { (eval echo configure:17947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17947 rm -rf conftest*
17948 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
17949else
17950 echo "configure: failed program was:" >&5
17951 cat conftest.$ac_ext >&5
17952 rm -rf conftest*
17953 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
17954fi
17955rm -f conftest*
17956fi
17957
17958if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
17959 echo "$ac_t""yes" 1>&6
17960 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
a85030bd 17961echo "configure:17962: checking for pthread_attr_setschedparam" >&5
a0b9e27f
MB
17962if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
17963 echo $ac_n "(cached) $ac_c" 1>&6
247f5006 17964else
a0b9e27f 17965 cat > conftest.$ac_ext <<EOF
a85030bd 17966#line 17967 "configure"
a0b9e27f
MB
17967#include "confdefs.h"
17968/* System header to define __stub macros and hopefully few prototypes,
17969 which can conflict with char pthread_attr_setschedparam(); below. */
009fead0 17970#include <assert.h>
422107f9
VZ
17971/* Override any gcc2 internal prototype to avoid an error. */
17972/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
17973 builtin and then its argument prototype would still apply. */
17974char pthread_attr_setschedparam();
17975
17976int main() {
17977
009fead0
VZ
17978/* The GNU C library defines this for functions which it implements
17979 to always fail with ENOSYS. Some functions are actually named
17980 something starting with __ and the normal name is an alias. */
17981#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17982choke me
17983#else
a0b9e27f 17984pthread_attr_setschedparam();
009fead0
VZ
17985#endif
17986
a0b9e27f
MB
17987; return 0; }
17988EOF
a85030bd 17989if { (eval echo configure:17990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
17990 rm -rf conftest*
17991 eval "ac_cv_func_pthread_attr_setschedparam=yes"
17992else
17993 echo "configure: failed program was:" >&5
17994 cat conftest.$ac_ext >&5
17995 rm -rf conftest*
17996 eval "ac_cv_func_pthread_attr_setschedparam=no"
17997fi
17998rm -f conftest*
17999fi
18000
18001if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18002 echo "$ac_t""yes" 1>&6
18003 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
a85030bd 18004echo "configure:18005: checking for sched_get_priority_max" >&5
a0b9e27f
MB
18005if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18006 echo $ac_n "(cached) $ac_c" 1>&6
18007else
18008 cat > conftest.$ac_ext <<EOF
a85030bd 18009#line 18010 "configure"
422107f9 18010#include "confdefs.h"
009fead0
VZ
18011/* System header to define __stub macros and hopefully few prototypes
18012else
a0b9e27f
MB
18013 echo "$ac_t""no" 1>&6
18014which can conflict with char sched_get_priority_max(); below. */
009fead0 18015#include <assert.h>
4f14bcd8
GD
18016/* Override any gcc2 internal prototype to avoid an error. */
18017/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18018 builtin and then its argument prototype would still apply. */
18019char sched_get_priority_max();
18020
18021int main() {
18022
009fead0
VZ
18023/* The GNU C library defines this for functions which it implements
18024 to always fail with ENOSYS. Some functions are actually named
18025 something starting with __ and the normal name is an alias. */
18026#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18027choke me
18028#else
a0b9e27f 18029sched_get_priority_max();
009fead0
VZ
18030#endif
18031
a0b9e27f
MB
18032; return 0; }
18033EOF
a85030bd 18034if { (eval echo configure:18035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18035 rm -rf conftest*
18036 eval "ac_cv_func_sched_get_priority_max=yes"
18037else
18038 echo "configure: failed program was:" >&5
18039 cat conftest.$ac_ext >&5
18040 rm -rf conftest*
18041 eval "ac_cv_func_sched_get_priority_max=no"
18042fi
18043rm -f conftest*
18044fi
18045
18046if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18047 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
18048 HAVE_PRIOR_FUNCS=1
18049else
a0b9e27f
MB
18050 echo "$ac_t""no" 1>&6
18051echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
a85030bd 18052echo "configure:18053: checking for sched_get_priority_max in -lposix4" >&5
a0b9e27f
MB
18053ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18054if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18055 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 18056else
a0b9e27f 18057 ac_save_LIBS="$LIBS"
4f14bcd8 18058LIBS="-lposix4 $LIBS"
a0b9e27f 18059cat > conftest.$ac_ext <<EOF
a85030bd 18060#line 18061 "configure"
422107f9
VZ
18061#include "confdefs.h"
18062/* Override any gcc2 internal prototype to avoid an error. */
18063/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18064 builtin and then its argument prototype would still apply. */
18065char sched_get_priority_max();
18066
18067int main() {
18068sched_get_priority_max()
18069; return 0; }
18070EOF
a85030bd 18071if { (eval echo configure:18072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18072 rm -rf conftest*
18073 eval "ac_cv_lib_$ac_lib_var=yes"
18074else
18075 echo "configure: failed program was:" >&5
18076 cat conftest.$ac_ext >&5
18077 rm -rf conftest*
18078 eval "ac_cv_lib_$ac_lib_var=no"
18079fi
18080rm -f conftest*
18081LIBS="$ac_save_LIBS"
698dcdb6 18082
a0b9e27f
MB
18083fi
18084if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18085 echo "$ac_t""yes" 1>&6
18086
7274f1c7
RL
18087 HAVE_PRIOR_FUNCS=1
18088 POSIX4_LINK=" -lposix4"
a0b9e27f
MB
18089
18090else
18091 echo "$ac_t""no" 1>&6
4f14bcd8 18092fi
463abc64 18093
a0b9e27f 18094
328a083c 18095fi
463abc64 18096
a0b9e27f
MB
18097
18098else
18099 echo "$ac_t""no" 1>&6
7b4a847f 18100fi
579d8138 18101
a0b9e27f 18102
5c6fa7d2 18103fi
52127426 18104
8284b0c5 18105
7274f1c7 18106 if test "$HAVE_PRIOR_FUNCS" = 1; then
a0b9e27f 18107 cat >> confdefs.h <<\EOF
4f14bcd8 18108#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
a0b9e27f 18109EOF
463abc64 18110
7274f1c7 18111 else
a0b9e27f 18112 echo "configure: warning: Setting thread priority will not work" 1>&2
7274f1c7 18113 fi
463abc64 18114
a0b9e27f 18115 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
a85030bd 18116echo "configure:18117: checking for pthread_cancel" >&5
a0b9e27f
MB
18117if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
18118 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 18119else
a0b9e27f 18120 cat > conftest.$ac_ext <<EOF
a85030bd 18121#line 18122 "configure"
422107f9 18122#include "confdefs.h"
009fead0 18123/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18124 which can conflict with char pthread_cancel(); below. */
009fead0 18125#include <assert.h>
422107f9
VZ
18126/* Override any gcc2 internal prototype to avoid an error. */
18127/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18128 builtin and then its argument prototype would still apply. */
18129char pthread_cancel();
18130
18131int main() {
18132
009fead0
VZ
18133/* The GNU C library defines this for functions which it implements
18134 to always fail with ENOSYS. Some functions are actually named
18135 something starting with __ and the normal name is an alias. */
18136#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18137choke me
18138#else
a0b9e27f 18139pthread_cancel();
009fead0
VZ
18140#endif
18141
a0b9e27f
MB
18142; return 0; }
18143EOF
a85030bd 18144if { (eval echo configure:18145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18145 rm -rf conftest*
18146 eval "ac_cv_func_pthread_cancel=yes"
18147else
18148 echo "configure: failed program was:" >&5
18149 cat conftest.$ac_ext >&5
18150 rm -rf conftest*
18151 eval "ac_cv_func_pthread_cancel=no"
18152fi
18153rm -f conftest*
18154fi
18155
18156if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
18157 echo "$ac_t""yes" 1>&6
18158 cat >> confdefs.h <<\EOF
4f14bcd8 18159#define HAVE_PTHREAD_CANCEL 1
a0b9e27f 18160EOF
4f14bcd8 18161
698dcdb6 18162else
a0b9e27f
MB
18163 echo "$ac_t""no" 1>&6
18164echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
18165fi
18166
5c6fa7d2 18167
a0b9e27f 18168 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
a85030bd 18169echo "configure:18170: checking for pthread_cleanup_push/pop" >&5
a0b9e27f
MB
18170if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18171 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 18172else
a0b9e27f
MB
18173
18174 cat > conftest.$ac_ext <<EOF
a85030bd 18175#line 18176 "configure"
4f14bcd8
GD
18176#include "confdefs.h"
18177#include <pthread.h>
a0b9e27f 18178int main() {
4f14bcd8 18179
7274f1c7
RL
18180 pthread_cleanup_push(NULL, NULL);
18181 pthread_cleanup_pop(0);
a0b9e27f
MB
18182
18183; return 0; }
18184EOF
a85030bd 18185if { (eval echo configure:18186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
18186 rm -rf conftest*
18187
7274f1c7 18188 wx_cv_func_pthread_cleanup_push=yes
a0b9e27f 18189
4f14bcd8 18190else
a0b9e27f
MB
18191 echo "configure: failed program was:" >&5
18192 cat conftest.$ac_ext >&5
18193 rm -rf conftest*
18194
7274f1c7 18195 wx_cv_func_pthread_cleanup_push=no
a0b9e27f 18196
5c6fa7d2 18197fi
a0b9e27f
MB
18198rm -f conftest*
18199
247f5006 18200fi
a0b9e27f
MB
18201
18202echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
4f14bcd8 18203
7274f1c7 18204 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
a0b9e27f 18205 cat >> confdefs.h <<\EOF
4f14bcd8 18206#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
a0b9e27f 18207EOF
c7a2bf27 18208
7274f1c7 18209 fi
4f14bcd8 18210
a0b9e27f
MB
18211
18212 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
a85030bd 18213echo "configure:18214: checking for pthread_mutexattr_t" >&5
a0b9e27f
MB
18214if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18215 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 18216else
a0b9e27f
MB
18217
18218 cat > conftest.$ac_ext <<EOF
a85030bd 18219#line 18220 "configure"
0dcf9893 18220#include "confdefs.h"
4f14bcd8 18221#include <pthread.h>
a0b9e27f 18222int main() {
4f14bcd8 18223
7274f1c7
RL
18224 pthread_mutexattr_t attr;
18225 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
a0b9e27f
MB
18226
18227; return 0; }
18228EOF
a85030bd 18229if { (eval echo configure:18230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
18230 rm -rf conftest*
18231
7274f1c7 18232 wx_cv_type_pthread_mutexattr_t=yes
a0b9e27f 18233
3fed1840 18234else
a0b9e27f
MB
18235 echo "configure: failed program was:" >&5
18236 cat conftest.$ac_ext >&5
18237 rm -rf conftest*
18238
7274f1c7 18239 wx_cv_type_pthread_mutexattr_t=no
a0b9e27f
MB
18240
18241
5c6fa7d2 18242fi
a0b9e27f
MB
18243rm -f conftest*
18244
247f5006 18245fi
a0b9e27f
MB
18246
18247echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
4f14bcd8 18248
7274f1c7 18249 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
a0b9e27f 18250 cat >> confdefs.h <<\EOF
4f14bcd8 18251#define HAVE_PTHREAD_MUTEXATTR_T 1
a0b9e27f 18252EOF
4f14bcd8 18253
7274f1c7 18254 else
a0b9e27f 18255 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
a85030bd 18256echo "configure:18257: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
a0b9e27f
MB
18257if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18258 echo $ac_n "(cached) $ac_c" 1>&6
18259else
18260
18261 cat > conftest.$ac_ext <<EOF
a85030bd 18262#line 18263 "configure"
3fed1840 18263#include "confdefs.h"
4f14bcd8 18264#include <pthread.h>
a0b9e27f 18265int main() {
4f14bcd8 18266
7274f1c7 18267 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
a0b9e27f
MB
18268
18269; return 0; }
18270EOF
a85030bd 18271if { (eval echo configure:18272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
18272 rm -rf conftest*
18273
7274f1c7 18274 wx_cv_type_pthread_rec_mutex_init=yes
a0b9e27f 18275
698dcdb6 18276else
a0b9e27f
MB
18277 echo "configure: failed program was:" >&5
18278 cat conftest.$ac_ext >&5
18279 rm -rf conftest*
18280
7274f1c7 18281 wx_cv_type_pthread_rec_mutex_init=no
a0b9e27f
MB
18282
18283
5c6fa7d2 18284fi
a0b9e27f
MB
18285rm -f conftest*
18286
247f5006 18287fi
a0b9e27f
MB
18288
18289echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7 18290 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
a0b9e27f 18291 cat >> confdefs.h <<\EOF
4f14bcd8 18292#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
a0b9e27f 18293EOF
3fed1840 18294
7274f1c7 18295 else
a0b9e27f 18296 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
7274f1c7
RL
18297 fi
18298 fi
7274f1c7 18299 fi
3fed1840 18300
a0b9e27f
MB
18301else
18302 if test "$wxUSE_THREADS" = "yes" ; then
18303 case "${host}" in
18304 *-*-mingw32* )
18305 CFLAGS="$CFLAGS -mthreads"
18306 CXXFLAGS="$CXXFLAGS -mthreads"
a1d22ad7 18307 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
a0b9e27f
MB
18308 LDFLAGS="$LDFLAGS -mthreads"
18309 ;;
18310 esac
18311 fi
4f14bcd8
GD
18312fi
18313
18314if test "$wxUSE_THREADS" = "yes"; then
a0b9e27f 18315 cat >> confdefs.h <<\EOF
4f14bcd8 18316#define wxUSE_THREADS 1
a0b9e27f 18317EOF
7b6058cd 18318
8284b0c5 18319
4f14bcd8 18320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 18321else
4f14bcd8 18322 if test "$ac_cv_func_strtok_r" = "yes"; then
a0b9e27f 18323 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
a85030bd 18324echo "configure:18325: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
18325 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18326 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
a0b9e27f 18327 echo "$ac_t""yes" 1>&6
4f14bcd8 18328 else
a0b9e27f 18329 echo "$ac_t""no" 1>&6
4f14bcd8
GD
18330 fi
18331 fi
18332fi
18333
18334if test "$WXGTK20" = 1 ; then
a0b9e27f 18335 cat >> confdefs.h <<EOF
4f14bcd8 18336#define __WXGTK20__ $WXGTK20
a0b9e27f 18337EOF
4f14bcd8
GD
18338
18339 WXGTK12=1
10f2d63a 18340fi
4f14bcd8
GD
18341
18342if test "$WXGTK12" = 1 ; then
a0b9e27f 18343 cat >> confdefs.h <<EOF
4f14bcd8 18344#define __WXGTK12__ $WXGTK12
a0b9e27f 18345EOF
4f14bcd8 18346
10f2d63a 18347fi
698dcdb6 18348
4f14bcd8 18349if test "$WXGTK127" = 1 ; then
a0b9e27f 18350 cat >> confdefs.h <<EOF
4f14bcd8 18351#define __WXGTK127__ $WXGTK127
a0b9e27f 18352EOF
4f14bcd8 18353
698dcdb6 18354fi
10f2d63a 18355
4f14bcd8
GD
18356WXDEBUG=
18357
18358if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18359 WXDEBUG="-g"
18360 wxUSE_OPTIMISE=no
698dcdb6 18361fi
4f14bcd8
GD
18362
18363if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18364 wxUSE_DEBUG_INFO=yes
18365 WXDEBUG="-ggdb"
10f2d63a
VZ
18366fi
18367
4f14bcd8 18368if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
a0b9e27f 18369 cat >> confdefs.h <<\EOF
4f14bcd8 18370#define WXDEBUG 1
a0b9e27f 18371EOF
4f14bcd8
GD
18372
18373 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 18374else
4f14bcd8
GD
18375 if test "$wxUSE_GTK" = 1 ; then
18376 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18377 fi
18378fi
18379
18380if test "$wxUSE_MEM_TRACING" = "yes" ; then
a0b9e27f 18381 cat >> confdefs.h <<\EOF
4f14bcd8 18382#define wxUSE_MEMORY_TRACING 1
a0b9e27f 18383EOF
4f14bcd8 18384
a0b9e27f 18385 cat >> confdefs.h <<\EOF
4f14bcd8 18386#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
a0b9e27f 18387EOF
4f14bcd8 18388
a0b9e27f 18389 cat >> confdefs.h <<\EOF
4f14bcd8 18390#define wxUSE_DEBUG_NEW_ALWAYS 1
a0b9e27f 18391EOF
4f14bcd8
GD
18392
18393 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18394fi
18395
18396if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 18397 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
18398fi
18399
18400PROFILE=
18401if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 18402 PROFILE=" -pg"
10f2d63a
VZ
18403fi
18404
009fead0
VZ
18405CODE_GEN_FLAGS=
18406CODE_GEN_FLAGS_CXX=
88e30f2b 18407if test "$GCC" = "yes" ; then
4f14bcd8
GD
18408 if test "$wxUSE_NO_RTTI" = "yes" ; then
18409 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 18410 fi
4f14bcd8
GD
18411 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18412 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18413 fi
18414 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18415 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18416 fi
4f14bcd8
GD
18417 if test "$USE_WIN32" = 1 ; then
18418 # I'm not even really sure what this was ever added to solve,
18419 # but someone added it for mingw native builds, so I guess
18420 # they had a reason, right??
18421 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18422 fi
1d1b75ac
VZ
18423
18424 case "${host}" in
18425 powerpc*-*-aix* )
18426 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18427 ;;
18428 esac
4f14bcd8
GD
18429fi
18430
4f14bcd8
GD
18431if test "$wxUSE_OPTIMISE" = "no" ; then
18432 OPTIMISE=
18433else
18434 if test "$GCC" = yes ; then
18435 OPTIMISE="-O2"
18436 case "${host}" in
18437 i586-*-*|i686-*-* )
18438 OPTIMISE="${OPTIMISE} "
18439 ;;
18440 esac
18441 else
18442 OPTIMISE="-O"
18443 fi
18444fi
18445
18446if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
a0b9e27f 18447 cat >> confdefs.h <<\EOF
4f14bcd8 18448#define WXWIN_COMPATIBILITY_2 1
a0b9e27f 18449EOF
4f14bcd8 18450
8284b0c5 18451
4f14bcd8
GD
18452 WXWIN_COMPATIBILITY_2_2="yes"
18453fi
18454
0c9a1c32 18455if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
a0b9e27f 18456 cat >> confdefs.h <<\EOF
4f14bcd8 18457#define WXWIN_COMPATIBILITY_2_2 1
a0b9e27f 18458EOF
4f14bcd8 18459
10f2d63a
VZ
18460fi
18461
8284b0c5 18462
10f2d63a 18463if test "$wxUSE_GUI" = "yes"; then
a0b9e27f 18464 cat >> confdefs.h <<\EOF
10f2d63a 18465#define wxUSE_GUI 1
a0b9e27f 18466EOF
10f2d63a 18467
8284b0c5 18468
10f2d63a 18469 else
a0b9e27f 18470 cat >> confdefs.h <<\EOF
10f2d63a 18471#define wxUSE_NOGUI 1
a0b9e27f 18472EOF
10f2d63a
VZ
18473
18474fi
18475
8284b0c5 18476
10f2d63a 18477if test "$wxUSE_UNIX" = "yes"; then
a0b9e27f 18478 cat >> confdefs.h <<\EOF
10f2d63a 18479#define wxUSE_UNIX 1
a0b9e27f 18480EOF
10f2d63a
VZ
18481
18482fi
18483
8284b0c5 18484
10f2d63a 18485if test "$wxUSE_APPLE_IEEE" = "yes"; then
a0b9e27f 18486 cat >> confdefs.h <<\EOF
10f2d63a 18487#define wxUSE_APPLE_IEEE 1
a0b9e27f 18488EOF
10f2d63a
VZ
18489
18490fi
18491
1e6feb95 18492if test "$wxUSE_TIMER" = "yes"; then
a0b9e27f 18493 cat >> confdefs.h <<\EOF
1e6feb95 18494#define wxUSE_TIMER 1
a0b9e27f 18495EOF
1e6feb95
VZ
18496
18497fi
18498
10f2d63a 18499if test "$wxUSE_WAVE" = "yes"; then
a0b9e27f 18500 cat >> confdefs.h <<\EOF
10f2d63a 18501#define wxUSE_WAVE 1
a0b9e27f 18502EOF
10f2d63a
VZ
18503
18504fi
18505
1e6feb95 18506if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
a0b9e27f 18507 cat >> confdefs.h <<\EOF
1e6feb95 18508#define wxUSE_CMDLINE_PARSER 1
a0b9e27f 18509EOF
1e6feb95
VZ
18510
18511fi
18512
18513if test "$wxUSE_STOPWATCH" = "yes"; then
a0b9e27f 18514 cat >> confdefs.h <<\EOF
1e6feb95 18515#define wxUSE_STOPWATCH 1
a0b9e27f 18516EOF
1e6feb95
VZ
18517
18518fi
18519
18520if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 18521 cat >> confdefs.h <<\EOF
1e6feb95 18522#define wxUSE_DATETIME 1
a0b9e27f 18523EOF
1e6feb95
VZ
18524
18525fi
18526
18527if test "$wxUSE_TIMEDATE" = "yes"; then
a0b9e27f 18528 cat >> confdefs.h <<\EOF
1e6feb95 18529#define wxUSE_TIMEDATE 1
a0b9e27f 18530EOF
1e6feb95
VZ
18531
18532fi
18533
10f2d63a 18534if test "$wxUSE_FILE" = "yes"; then
a0b9e27f 18535 cat >> confdefs.h <<\EOF
10f2d63a 18536#define wxUSE_FILE 1
a0b9e27f 18537EOF
10f2d63a
VZ
18538
18539fi
18540
1e6feb95 18541if test "$wxUSE_FFILE" = "yes"; then
a0b9e27f 18542 cat >> confdefs.h <<\EOF
1e6feb95 18543#define wxUSE_FFILE 1
a0b9e27f 18544EOF
1e6feb95
VZ
18545
18546fi
18547
24528b0c 18548if test "$wxUSE_FILESYSTEM" = "yes"; then
a0b9e27f 18549 cat >> confdefs.h <<\EOF
24528b0c 18550#define wxUSE_FILESYSTEM 1
a0b9e27f 18551EOF
24528b0c
VS
18552
18553fi
18554
10f2d63a 18555if test "$wxUSE_FS_INET" = "yes"; then
a0b9e27f 18556 cat >> confdefs.h <<\EOF
10f2d63a 18557#define wxUSE_FS_INET 1
a0b9e27f 18558EOF
10f2d63a
VZ
18559
18560fi
18561
18562if test "$wxUSE_FS_ZIP" = "yes"; then
a0b9e27f 18563 cat >> confdefs.h <<\EOF
10f2d63a 18564#define wxUSE_FS_ZIP 1
a0b9e27f 18565EOF
10f2d63a
VZ
18566
18567fi
18568
18569if test "$wxUSE_ZIPSTREAM" = "yes"; then
a0b9e27f 18570 cat >> confdefs.h <<\EOF
10f2d63a 18571#define wxUSE_ZIPSTREAM 1
a0b9e27f 18572EOF
10f2d63a
VZ
18573
18574fi
18575
eb4efbdc 18576if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a0b9e27f 18577 cat >> confdefs.h <<\EOF
eb4efbdc 18578#define wxUSE_ON_FATAL_EXCEPTION 1
a0b9e27f 18579EOF
eb4efbdc
VZ
18580
18581fi
18582
4f3c5f06 18583if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
a0b9e27f 18584 cat >> confdefs.h <<\EOF
4f3c5f06 18585#define wxUSE_SNGLINST_CHECKER 1
a0b9e27f 18586EOF
4f3c5f06
VZ
18587
18588fi
18589
10f2d63a 18590if test "$wxUSE_BUSYINFO" = "yes"; then
a0b9e27f 18591 cat >> confdefs.h <<\EOF
10f2d63a 18592#define wxUSE_BUSYINFO 1
a0b9e27f 18593EOF
10f2d63a
VZ
18594
18595fi
18596
18597if test "$wxUSE_STD_IOSTREAM" = "yes"; then
a0b9e27f 18598 cat >> confdefs.h <<\EOF
10f2d63a 18599#define wxUSE_STD_IOSTREAM 1
a0b9e27f 18600EOF
10f2d63a
VZ
18601
18602fi
18603
a3a584a7 18604if test "$wxUSE_TEXTBUFFER" = "yes"; then
a0b9e27f 18605 cat >> confdefs.h <<\EOF
a3a584a7 18606#define wxUSE_TEXTBUFFER 1
a0b9e27f 18607EOF
a3a584a7
VZ
18608
18609fi
18610
10f2d63a 18611if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 18612 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
a0b9e27f 18613 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 18614 else
a0b9e27f 18615 cat >> confdefs.h <<\EOF
10f2d63a 18616#define wxUSE_TEXTFILE 1
a0b9e27f 18617EOF
10f2d63a
VZ
18618
18619 fi
18620fi
18621
18622if test "$wxUSE_CONFIG" = "yes" ; then
18623 if test "$wxUSE_TEXTFILE" != "yes"; then
a0b9e27f 18624 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 18625 else
a0b9e27f 18626 cat >> confdefs.h <<\EOF
10f2d63a 18627#define wxUSE_CONFIG 1
a0b9e27f 18628EOF
10f2d63a
VZ
18629
18630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18631 fi
18632fi
18633
18634if test "$wxUSE_INTL" = "yes" ; then
18635 if test "$wxUSE_FILE" != "yes"; then
a0b9e27f 18636 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 18637 else
a0b9e27f 18638 cat >> confdefs.h <<\EOF
10f2d63a 18639#define wxUSE_INTL 1
a0b9e27f 18640EOF
10f2d63a
VZ
18641
18642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 18643 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
18644 fi
18645fi
18646
18647if test "$wxUSE_LOG" = "yes"; then
a0b9e27f 18648 cat >> confdefs.h <<\EOF
10f2d63a 18649#define wxUSE_LOG 1
a0b9e27f 18650EOF
10f2d63a 18651
8284b0c5 18652
d73be714 18653 if test "$wxUSE_LOGGUI" = "yes"; then
a0b9e27f 18654 cat >> confdefs.h <<\EOF
d73be714 18655#define wxUSE_LOGGUI 1
a0b9e27f 18656EOF
d73be714
VZ
18657
18658 fi
18659
18660 if test "$wxUSE_LOGWINDOW" = "yes"; then
a0b9e27f 18661 cat >> confdefs.h <<\EOF
d73be714 18662#define wxUSE_LOGWINDOW 1
a0b9e27f 18663EOF
69d27ff7
MB
18664
18665 fi
18666
18667 if test "$wxUSE_LOGDIALOG" = "yes"; then
a0b9e27f 18668 cat >> confdefs.h <<\EOF
69d27ff7 18669#define wxUSE_LOG_DIALOG 1
a0b9e27f 18670EOF
d73be714
VZ
18671
18672 fi
10f2d63a
VZ
18673fi
18674
18675if test "$wxUSE_LONGLONG" = "yes"; then
a0b9e27f 18676 cat >> confdefs.h <<\EOF
10f2d63a 18677#define wxUSE_LONGLONG 1
a0b9e27f 18678EOF
10f2d63a
VZ
18679
18680fi
18681
e8f65ba6 18682if test "$wxUSE_GEOMETRY" = "yes"; then
a0b9e27f 18683 cat >> confdefs.h <<\EOF
e8f65ba6 18684#define wxUSE_GEOMETRY 1
a0b9e27f 18685EOF
e8f65ba6
RR
18686
18687fi
18688
10f2d63a 18689if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
a0b9e27f 18690 cat >> confdefs.h <<\EOF
10f2d63a 18691#define wxUSE_DIALUP_MANAGER 1
a0b9e27f 18692EOF
10f2d63a 18693
70f7a477 18694 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
18695fi
18696
18697if test "$wxUSE_STREAMS" = "yes" ; then
a0b9e27f 18698 cat >> confdefs.h <<\EOF
10f2d63a 18699#define wxUSE_STREAMS 1
a0b9e27f 18700EOF
10f2d63a
VZ
18701
18702fi
18703
5c6fa7d2 18704
8284b0c5 18705if test "$wxUSE_DATETIME" = "yes"; then
a0b9e27f 18706 for ac_func in strptime
83307f33 18707do
a0b9e27f 18708echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 18709echo "configure:18710: checking for $ac_func" >&5
a0b9e27f
MB
18710if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18711 echo $ac_n "(cached) $ac_c" 1>&6
18712else
18713 cat > conftest.$ac_ext <<EOF
a85030bd 18714#line 18715 "configure"
83307f33
VZ
18715#include "confdefs.h"
18716/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18717 which can conflict with char $ac_func(); below. */
83307f33
VZ
18718#include <assert.h>
18719/* Override any gcc2 internal prototype to avoid an error. */
18720/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18721 builtin and then its argument prototype would still apply. */
18722char $ac_func();
18723
18724int main() {
18725
83307f33
VZ
18726/* The GNU C library defines this for functions which it implements
18727 to always fail with ENOSYS. Some functions are actually named
18728 something starting with __ and the normal name is an alias. */
18729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18730choke me
18731#else
a0b9e27f 18732$ac_func();
83307f33
VZ
18733#endif
18734
a0b9e27f
MB
18735; return 0; }
18736EOF
a85030bd 18737if { (eval echo configure:18738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18738 rm -rf conftest*
18739 eval "ac_cv_func_$ac_func=yes"
18740else
18741 echo "configure: failed program was:" >&5
18742 cat conftest.$ac_ext >&5
18743 rm -rf conftest*
18744 eval "ac_cv_func_$ac_func=no"
18745fi
18746rm -f conftest*
18747fi
83307f33 18748
a0b9e27f
MB
18749if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18750 echo "$ac_t""yes" 1>&6
18751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18752 cat >> confdefs.h <<EOF
18753#define $ac_tr_func 1
18754EOF
18755
18756else
18757 echo "$ac_t""no" 1>&6
83307f33
VZ
18758fi
18759done
18760
5c6fa7d2 18761
a0b9e27f 18762 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
a85030bd 18763echo "configure:18764: checking for timezone variable in <time.h>" >&5
a0b9e27f
MB
18764if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18765 echo $ac_n "(cached) $ac_c" 1>&6
8284b0c5 18766else
a0b9e27f
MB
18767
18768 cat > conftest.$ac_ext <<EOF
a85030bd 18769#line 18770 "configure"
360d6699
VZ
18770#include "confdefs.h"
18771
b4085ce6 18772 #include <time.h>
a0b9e27f
MB
18773
18774int main() {
360d6699
VZ
18775
18776 int tz;
4f11a343 18777 tz = timezone;
a0b9e27f
MB
18778
18779; return 0; }
18780EOF
a85030bd 18781if { (eval echo configure:18782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
18782 rm -rf conftest*
18783
4f11a343 18784 wx_cv_var_timezone=timezone
a0b9e27f 18785
360d6699 18786else
a0b9e27f
MB
18787 echo "configure: failed program was:" >&5
18788 cat conftest.$ac_ext >&5
18789 rm -rf conftest*
18790
18791 cat > conftest.$ac_ext <<EOF
a85030bd 18792#line 18793 "configure"
360d6699
VZ
18793#include "confdefs.h"
18794
b4085ce6 18795 #include <time.h>
a0b9e27f
MB
18796
18797int main() {
360d6699
VZ
18798
18799 int tz;
18800 tz = _timezone;
a0b9e27f
MB
18801
18802; return 0; }
18803EOF
a85030bd 18804if { (eval echo configure:18805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
18805 rm -rf conftest*
18806
360d6699 18807 wx_cv_var_timezone=_timezone
a0b9e27f 18808
5357c8e8 18809else
a0b9e27f
MB
18810 echo "configure: failed program was:" >&5
18811 cat conftest.$ac_ext >&5
18812 rm -rf conftest*
18813
18814 cat > conftest.$ac_ext <<EOF
a85030bd 18815#line 18816 "configure"
5357c8e8
VZ
18816#include "confdefs.h"
18817
b4085ce6 18818 #include <time.h>
a0b9e27f
MB
18819
18820int main() {
5357c8e8
VZ
18821
18822 int tz;
4f11a343 18823 tz = __timezone;
a0b9e27f
MB
18824
18825; return 0; }
18826EOF
a85030bd 18827if { (eval echo configure:18828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
18828 rm -rf conftest*
18829
4f11a343 18830 wx_cv_var_timezone=__timezone
a0b9e27f 18831
360d6699 18832else
a0b9e27f
MB
18833 echo "configure: failed program was:" >&5
18834 cat conftest.$ac_ext >&5
18835 rm -rf conftest*
18836
f9bc1684 18837 if test "$USE_DOS" = 0 ; then
a0b9e27f 18838 echo "configure: warning: no timezone variable" 1>&2
f9bc1684 18839 fi
a0b9e27f
MB
18840
18841
328a083c 18842fi
a0b9e27f
MB
18843rm -f conftest*
18844
18845
7b4a847f 18846fi
a0b9e27f
MB
18847rm -f conftest*
18848
18849
5c6fa7d2 18850fi
a0b9e27f
MB
18851rm -f conftest*
18852
18853
247f5006 18854fi
a0b9e27f
MB
18855
18856echo "$ac_t""$wx_cv_var_timezone" 1>&6
698dcdb6 18857
f9bc1684 18858 if test "x$wx_cv_var_timezone" != x ; then
a0b9e27f 18859 cat >> confdefs.h <<EOF
360d6699 18860#define WX_TIMEZONE $wx_cv_var_timezone
a0b9e27f 18861EOF
360d6699 18862
f9bc1684 18863 fi
698dcdb6 18864
a0b9e27f 18865 for ac_func in localtime
afc31813 18866do
a0b9e27f 18867echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 18868echo "configure:18869: checking for $ac_func" >&5
a0b9e27f
MB
18869if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18870 echo $ac_n "(cached) $ac_c" 1>&6
18871else
18872 cat > conftest.$ac_ext <<EOF
a85030bd 18873#line 18874 "configure"
10f2d63a 18874#include "confdefs.h"
afc31813 18875/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18876 which can conflict with char $ac_func(); below. */
afc31813
VZ
18877#include <assert.h>
18878/* Override any gcc2 internal prototype to avoid an error. */
18879/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18880 builtin and then its argument prototype would still apply. */
18881char $ac_func();
18882
18883int main() {
18884
afc31813
VZ
18885/* The GNU C library defines this for functions which it implements
18886 to always fail with ENOSYS. Some functions are actually named
18887 something starting with __ and the normal name is an alias. */
18888#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18889choke me
18890#else
a0b9e27f 18891$ac_func();
afc31813
VZ
18892#endif
18893
a0b9e27f
MB
18894; return 0; }
18895EOF
a85030bd 18896if { (eval echo configure:18897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18897 rm -rf conftest*
18898 eval "ac_cv_func_$ac_func=yes"
18899else
18900 echo "configure: failed program was:" >&5
18901 cat conftest.$ac_ext >&5
18902 rm -rf conftest*
18903 eval "ac_cv_func_$ac_func=no"
18904fi
18905rm -f conftest*
18906fi
afc31813 18907
a0b9e27f
MB
18908if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18909 echo "$ac_t""yes" 1>&6
18910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18911 cat >> confdefs.h <<EOF
18912#define $ac_tr_func 1
18913EOF
18914
18915else
18916 echo "$ac_t""no" 1>&6
afc31813
VZ
18917fi
18918done
18919
5c6fa7d2 18920
8284b0c5 18921 if test "$ac_cv_func_localtime" = "yes"; then
a0b9e27f 18922 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
a85030bd 18923echo "configure:18924: checking for tm_gmtoff in struct tm" >&5
a0b9e27f
MB
18924if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18925 echo $ac_n "(cached) $ac_c" 1>&6
18926else
18927
18928 cat > conftest.$ac_ext <<EOF
a85030bd 18929#line 18930 "configure"
0470b1e6
VZ
18930#include "confdefs.h"
18931
b4085ce6 18932 #include <time.h>
a0b9e27f
MB
18933
18934int main() {
0470b1e6
VZ
18935
18936 struct tm tm;
18937 tm.tm_gmtoff++;
a0b9e27f
MB
18938
18939; return 0; }
18940EOF
a85030bd 18941if { (eval echo configure:18942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
18942 rm -rf conftest*
18943
f03a98d8 18944 wx_cv_struct_tm_has_gmtoff=yes
a0b9e27f 18945
0470b1e6 18946else
a0b9e27f
MB
18947 echo "configure: failed program was:" >&5
18948 cat conftest.$ac_ext >&5
18949 rm -rf conftest*
18950 wx_cv_struct_tm_has_gmtoff=no
18951
5c6fa7d2 18952fi
a0b9e27f
MB
18953rm -f conftest*
18954
247f5006 18955fi
a0b9e27f
MB
18956
18957echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
18958 fi
18959
18960 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
a0b9e27f 18961 cat >> confdefs.h <<\EOF
6232543b 18962#define WX_GMTOFF_IN_TM 1
a0b9e27f 18963EOF
0470b1e6 18964
3fcdd07b
VZ
18965 fi
18966
a0b9e27f 18967 for ac_func in gettimeofday ftime
3fcdd07b 18968do
a0b9e27f 18969echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 18970echo "configure:18971: checking for $ac_func" >&5
a0b9e27f
MB
18971if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18972 echo $ac_n "(cached) $ac_c" 1>&6
18973else
18974 cat > conftest.$ac_ext <<EOF
a85030bd 18975#line 18976 "configure"
3fcdd07b
VZ
18976#include "confdefs.h"
18977/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 18978 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
18979#include <assert.h>
18980/* Override any gcc2 internal prototype to avoid an error. */
18981/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
18982 builtin and then its argument prototype would still apply. */
18983char $ac_func();
18984
18985int main() {
18986
3fcdd07b
VZ
18987/* The GNU C library defines this for functions which it implements
18988 to always fail with ENOSYS. Some functions are actually named
18989 something starting with __ and the normal name is an alias. */
18990#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18991choke me
18992#else
a0b9e27f 18993$ac_func();
3fcdd07b
VZ
18994#endif
18995
a0b9e27f
MB
18996; return 0; }
18997EOF
a85030bd 18998if { (eval echo configure:18999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
18999 rm -rf conftest*
19000 eval "ac_cv_func_$ac_func=yes"
19001else
19002 echo "configure: failed program was:" >&5
19003 cat conftest.$ac_ext >&5
19004 rm -rf conftest*
19005 eval "ac_cv_func_$ac_func=no"
19006fi
19007rm -f conftest*
19008fi
19009
19010if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19011 echo "$ac_t""yes" 1>&6
19012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19013 cat >> confdefs.h <<EOF
19014#define $ac_tr_func 1
19015EOF
3fcdd07b 19016 break
a0b9e27f
MB
19017else
19018 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
19019fi
19020done
19021
698dcdb6 19022
8284b0c5 19023 if test "$ac_cv_func_gettimeofday" = "yes"; then
a0b9e27f 19024 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
a85030bd 19025echo "configure:19026: checking whether gettimeofday takes two arguments" >&5
a0b9e27f
MB
19026if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19027 echo $ac_n "(cached) $ac_c" 1>&6
19028else
19029
19030
19031 ac_ext=C
19032# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 19033ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
19034ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19035ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19036cross_compiling=$ac_cv_prog_cxx_cross
52127426 19037
8284b0c5 19038
a0b9e27f 19039 cat > conftest.$ac_ext <<EOF
a85030bd 19040#line 19041 "configure"
10f2d63a 19041#include "confdefs.h"
afc31813
VZ
19042
19043 #include <sys/time.h>
19044 #include <unistd.h>
a0b9e27f
MB
19045
19046int main() {
afc31813
VZ
19047
19048 struct timeval tv;
776862b4 19049 gettimeofday(&tv, NULL);
a0b9e27f
MB
19050
19051; return 0; }
19052EOF
a85030bd 19053if { (eval echo configure:19054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 19054 rm -rf conftest*
afc31813 19055 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 19056else
a0b9e27f
MB
19057 echo "configure: failed program was:" >&5
19058 cat conftest.$ac_ext >&5
19059 rm -rf conftest*
19060 cat > conftest.$ac_ext <<EOF
a85030bd 19061#line 19062 "configure"
10f2d63a 19062#include "confdefs.h"
afc31813
VZ
19063
19064 #include <sys/time.h>
19065 #include <unistd.h>
a0b9e27f
MB
19066
19067int main() {
afc31813
VZ
19068
19069 struct timeval tv;
19070 gettimeofday(&tv);
a0b9e27f
MB
19071
19072; return 0; }
19073EOF
a85030bd 19074if { (eval echo configure:19075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 19075 rm -rf conftest*
afc31813 19076 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 19077else
a0b9e27f
MB
19078 echo "configure: failed program was:" >&5
19079 cat conftest.$ac_ext >&5
19080 rm -rf conftest*
19081
19082 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
776862b4 19083 wx_cv_func_gettimeofday_has_2_args=unknown
a0b9e27f
MB
19084
19085
10f2d63a 19086fi
a0b9e27f
MB
19087rm -f conftest*
19088
10f2d63a 19089fi
a0b9e27f 19090rm -f conftest*
afc31813 19091 ac_ext=c
a0b9e27f 19092# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 19093ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
19094ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19095ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19096cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 19097
a0b9e27f 19098
247f5006 19099fi
a0b9e27f
MB
19100
19101echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 19102
afc31813 19103 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
a0b9e27f 19104 cat >> confdefs.h <<\EOF
afc31813 19105#define WX_GETTIMEOFDAY_NO_TZ 1
a0b9e27f 19106EOF
afc31813
VZ
19107
19108 fi
19109 fi
19110
a0b9e27f 19111 cat >> confdefs.h <<\EOF
afc31813 19112#define wxUSE_TIMEDATE 1
a0b9e27f 19113EOF
afc31813
VZ
19114
19115 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
19116fi
19117
8284b0c5 19118
52127426 19119if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 19120 if test "$wxUSE_MGL" = "1"; then
a0b9e27f 19121 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
6c657b52
VS
19122 wxUSE_SOCKETS="no"
19123 fi
0feee163 19124fi
b089607b 19125
0feee163
VZ
19126if test "$wxUSE_SOCKETS" = "yes"; then
19127 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 19128 echo $ac_n "checking for socket""... $ac_c" 1>&6
a85030bd 19129echo "configure:19130: checking for socket" >&5
a0b9e27f
MB
19130if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19131 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 19132else
a0b9e27f 19133 cat > conftest.$ac_ext <<EOF
a85030bd 19134#line 19135 "configure"
c63c7106
VZ
19135#include "confdefs.h"
19136/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19137 which can conflict with char socket(); below. */
c63c7106
VZ
19138#include <assert.h>
19139/* Override any gcc2 internal prototype to avoid an error. */
19140/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19141 builtin and then its argument prototype would still apply. */
19142char socket();
19143
19144int main() {
19145
c63c7106
VZ
19146/* The GNU C library defines this for functions which it implements
19147 to always fail with ENOSYS. Some functions are actually named
19148 something starting with __ and the normal name is an alias. */
19149#if defined (__stub_socket) || defined (__stub___socket)
19150choke me
19151#else
a0b9e27f 19152socket();
c63c7106
VZ
19153#endif
19154
a0b9e27f
MB
19155; return 0; }
19156EOF
a85030bd 19157if { (eval echo configure:19158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19158 rm -rf conftest*
19159 eval "ac_cv_func_socket=yes"
19160else
19161 echo "configure: failed program was:" >&5
19162 cat conftest.$ac_ext >&5
19163 rm -rf conftest*
19164 eval "ac_cv_func_socket=no"
19165fi
19166rm -f conftest*
19167fi
19168
19169if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19170 echo "$ac_t""yes" 1>&6
c63c7106
VZ
19171 :
19172else
a0b9e27f
MB
19173 echo "$ac_t""no" 1>&6
19174echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
a85030bd 19175echo "configure:19176: checking for socket in -lsocket" >&5
a0b9e27f
MB
19176ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19177if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19178 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 19179else
a0b9e27f 19180 ac_save_LIBS="$LIBS"
c63c7106 19181LIBS="-lsocket $LIBS"
a0b9e27f 19182cat > conftest.$ac_ext <<EOF
a85030bd 19183#line 19184 "configure"
c63c7106
VZ
19184#include "confdefs.h"
19185/* Override any gcc2 internal prototype to avoid an error. */
19186/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19187 builtin and then its argument prototype would still apply. */
19188char socket();
19189
19190int main() {
19191socket()
19192; return 0; }
19193EOF
a85030bd 19194if { (eval echo configure:19195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19195 rm -rf conftest*
19196 eval "ac_cv_lib_$ac_lib_var=yes"
19197else
19198 echo "configure: failed program was:" >&5
19199 cat conftest.$ac_ext >&5
19200 rm -rf conftest*
19201 eval "ac_cv_lib_$ac_lib_var=no"
19202fi
19203rm -f conftest*
19204LIBS="$ac_save_LIBS"
19205
19206fi
19207if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19208 echo "$ac_t""yes" 1>&6
d558c907
VS
19209 if test "$INET_LINK" != " -lsocket"; then
19210 INET_LINK="$INET_LINK -lsocket"
19211 fi
c63c7106 19212else
a0b9e27f 19213 echo "$ac_t""no" 1>&6
afc31813 19214
a0b9e27f 19215 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
3a922bb4 19216 wxUSE_SOCKETS=no
a0b9e27f
MB
19217
19218
6232543b 19219fi
b089607b 19220
a0b9e27f 19221
1e487827 19222fi
afc31813 19223
3a922bb4 19224 fi
0feee163 19225fi
51a9faba 19226
0feee163
VZ
19227if test "$wxUSE_SOCKETS" = "yes" ; then
19228 if test "$TOOLKIT" != "MSW"; then
a0b9e27f 19229 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
a85030bd 19230echo "configure:19231: checking what is the type of the third argument of getsockname" >&5
a0b9e27f
MB
19231if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19232 echo $ac_n "(cached) $ac_c" 1>&6
19233else
19234
19235
19236 ac_ext=C
19237# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5c6fa7d2 19238ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
19239ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19240ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19241cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 19242
8284b0c5 19243
a0b9e27f 19244 cat > conftest.$ac_ext <<EOF
a85030bd 19245#line 19246 "configure"
afc31813 19246#include "confdefs.h"
51a9faba 19247
3a922bb4
RL
19248 #include <sys/types.h>
19249 #include <sys/socket.h>
a0b9e27f
MB
19250
19251int main() {
51a9faba 19252
3a922bb4
RL
19253 socklen_t len;
19254 getsockname(0, 0, &len);
a0b9e27f
MB
19255
19256; return 0; }
19257EOF
a85030bd 19258if { (eval echo configure:19259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 19259 rm -rf conftest*
51a9faba 19260 wx_cv_type_getsockname3=socklen_t
afc31813 19261else
a0b9e27f
MB
19262 echo "configure: failed program was:" >&5
19263 cat conftest.$ac_ext >&5
19264 rm -rf conftest*
19265 cat > conftest.$ac_ext <<EOF
a85030bd 19266#line 19267 "configure"
afc31813 19267#include "confdefs.h"
51a9faba 19268
3a922bb4
RL
19269 #include <sys/types.h>
19270 #include <sys/socket.h>
a0b9e27f
MB
19271
19272int main() {
51a9faba 19273
3a922bb4
RL
19274 size_t len;
19275 getsockname(0, 0, &len);
a0b9e27f
MB
19276
19277; return 0; }
19278EOF
a85030bd 19279if { (eval echo configure:19280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 19280 rm -rf conftest*
51a9faba 19281 wx_cv_type_getsockname3=size_t
afc31813 19282else
a0b9e27f
MB
19283 echo "configure: failed program was:" >&5
19284 cat conftest.$ac_ext >&5
19285 rm -rf conftest*
19286 cat > conftest.$ac_ext <<EOF
a85030bd 19287#line 19288 "configure"
afc31813 19288#include "confdefs.h"
51a9faba 19289
3a922bb4
RL
19290 #include <sys/types.h>
19291 #include <sys/socket.h>
a0b9e27f
MB
19292
19293int main() {
51a9faba 19294
3a922bb4
RL
19295 int len;
19296 getsockname(0, 0, &len);
a0b9e27f
MB
19297
19298; return 0; }
19299EOF
a85030bd 19300if { (eval echo configure:19301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f 19301 rm -rf conftest*
51a9faba 19302 wx_cv_type_getsockname3=int
afc31813 19303else
a0b9e27f
MB
19304 echo "configure: failed program was:" >&5
19305 cat conftest.$ac_ext >&5
19306 rm -rf conftest*
19307 wx_cv_type_getsockname3=unknown
19308
afc31813 19309fi
a0b9e27f
MB
19310rm -f conftest*
19311
afc31813 19312fi
a0b9e27f
MB
19313rm -f conftest*
19314
afc31813 19315fi
a0b9e27f 19316rm -f conftest*
51a9faba 19317
3a922bb4 19318 ac_ext=c
a0b9e27f 19319# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 19320ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
19321ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19322ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19323cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 19324
a0b9e27f 19325
247f5006 19326fi
a0b9e27f
MB
19327
19328echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 19329
3a922bb4
RL
19330 if test "$wx_cv_type_getsockname3" = "unknown"; then
19331 wxUSE_SOCKETS=no
a0b9e27f 19332 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
3a922bb4 19333 else
a0b9e27f 19334 cat >> confdefs.h <<EOF
51a9faba 19335#define SOCKLEN_T $wx_cv_type_getsockname3
a0b9e27f 19336EOF
51a9faba 19337
3a922bb4 19338 fi
51a9faba
VZ
19339 fi
19340fi
afc31813 19341
51a9faba 19342if test "$wxUSE_SOCKETS" = "yes" ; then
a0b9e27f 19343 cat >> confdefs.h <<\EOF
afc31813 19344#define wxUSE_SOCKETS 1
a0b9e27f 19345EOF
afc31813 19346
70f7a477 19347 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
19348fi
19349
8284b0c5 19350
dc3d889d
VZ
19351if test "$wxUSE_GUI" = "yes"; then
19352
156b2523 19353 if test "$TOOLKIT" = "MAC"; then
a0b9e27f 19354 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
19355 wxUSE_JOYSTICK=no
19356 fi
19357 if test "$TOOLKIT" = "MOTIF"; then
a0b9e27f 19358 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
156b2523 19359 wxUSE_JOYSTICK=no
f79bd02d
JS
19360 fi
19361 if test "$TOOLKIT" = "X11"; then
a0b9e27f 19362 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
f79bd02d 19363 wxUSE_JOYSTICK=no
156b2523
GD
19364 fi
19365
3a922bb4
RL
19366 if test "$TOOLKIT" != "MSW"; then
19367 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 19368 for ac_hdr in linux/joystick.h
10f2d63a 19369do
a0b9e27f
MB
19370ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19371echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a85030bd 19372echo "configure:19373: checking for $ac_hdr" >&5
a0b9e27f
MB
19373if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19374 echo $ac_n "(cached) $ac_c" 1>&6
19375else
19376 cat > conftest.$ac_ext <<EOF
a85030bd 19377#line 19378 "configure"
247f5006 19378#include "confdefs.h"
a0b9e27f
MB
19379#include <$ac_hdr>
19380EOF
19381ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 19382{ (eval echo configure:19383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
19383ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19384if test -z "$ac_err"; then
19385 rm -rf conftest*
19386 eval "ac_cv_header_$ac_safe=yes"
19387else
19388 echo "$ac_err" >&5
19389 echo "configure: failed program was:" >&5
247f5006 19390 cat conftest.$ac_ext >&5
a0b9e27f
MB
19391 rm -rf conftest*
19392 eval "ac_cv_header_$ac_safe=no"
247f5006 19393fi
a0b9e27f 19394rm -f conftest*
10f2d63a 19395fi
a0b9e27f
MB
19396if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19397 echo "$ac_t""yes" 1>&6
19398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19399 cat >> confdefs.h <<EOF
19400#define $ac_tr_hdr 1
19401EOF
19402
19403else
19404 echo "$ac_t""no" 1>&6
247f5006 19405fi
10f2d63a
VZ
19406done
19407
3a922bb4
RL
19408 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19409 wxUSE_JOYSTICK=no
a0b9e27f 19410 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
19411 fi
19412 fi
19413 fi
b089607b 19414
3a922bb4 19415 if test "$wxUSE_JOYSTICK" = "yes"; then
a0b9e27f 19416 cat >> confdefs.h <<\EOF
10f2d63a 19417#define wxUSE_JOYSTICK 1
a0b9e27f 19418EOF
10f2d63a 19419
3a922bb4
RL
19420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19421 fi
dc3d889d
VZ
19422fi
19423
8284b0c5 19424
b089607b
VZ
19425if test "$TOOLKIT" != "MSW"; then
19426
3a922bb4
RL
19427 HAVE_DL_FUNCS=0
19428 HAVE_SHL_FUNCS=0
0b9ab0bd 19429 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
19430 if test "$USE_DARWIN" = 1; then
19431 HAVE_DL_FUNCS=1
19432 else
a0b9e27f 19433 for ac_func in dlopen
10f2d63a 19434do
a0b9e27f 19435echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 19436echo "configure:19437: checking for $ac_func" >&5
a0b9e27f
MB
19437if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19438 echo $ac_n "(cached) $ac_c" 1>&6
19439else
19440 cat > conftest.$ac_ext <<EOF
a85030bd 19441#line 19442 "configure"
10f2d63a
VZ
19442#include "confdefs.h"
19443/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19444 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19445#include <assert.h>
19446/* Override any gcc2 internal prototype to avoid an error. */
19447/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19448 builtin and then its argument prototype would still apply. */
19449char $ac_func();
19450
19451int main() {
19452
10f2d63a
VZ
19453/* The GNU C library defines this for functions which it implements
19454 to always fail with ENOSYS. Some functions are actually named
19455 something starting with __ and the normal name is an alias. */
19456#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19457choke me
19458#else
a0b9e27f 19459$ac_func();
10f2d63a
VZ
19460#endif
19461
a0b9e27f
MB
19462; return 0; }
19463EOF
a85030bd 19464if { (eval echo configure:19465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19465 rm -rf conftest*
19466 eval "ac_cv_func_$ac_func=yes"
19467else
19468 echo "configure: failed program was:" >&5
19469 cat conftest.$ac_ext >&5
19470 rm -rf conftest*
19471 eval "ac_cv_func_$ac_func=no"
19472fi
19473rm -f conftest*
19474fi
19475
19476if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19477 echo "$ac_t""yes" 1>&6
19478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19479 cat >> confdefs.h <<EOF
19480#define $ac_tr_func 1
19481EOF
19482
19483 cat >> confdefs.h <<\EOF
10f2d63a 19484#define HAVE_DLOPEN 1
a0b9e27f 19485EOF
10f2d63a 19486
3a922bb4 19487 HAVE_DL_FUNCS=1
a0b9e27f 19488
10f2d63a 19489else
a0b9e27f
MB
19490 echo "$ac_t""no" 1>&6
19491echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
a85030bd 19492echo "configure:19493: checking for dlopen in -ldl" >&5
a0b9e27f
MB
19493ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19494if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19495 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19496else
a0b9e27f 19497 ac_save_LIBS="$LIBS"
10f2d63a 19498LIBS="-ldl $LIBS"
a0b9e27f 19499cat > conftest.$ac_ext <<EOF
a85030bd 19500#line 19501 "configure"
10f2d63a
VZ
19501#include "confdefs.h"
19502/* Override any gcc2 internal prototype to avoid an error. */
19503/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19504 builtin and then its argument prototype would still apply. */
19505char dlopen();
19506
19507int main() {
19508dlopen()
19509; return 0; }
19510EOF
a85030bd 19511if { (eval echo configure:19512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19512 rm -rf conftest*
19513 eval "ac_cv_lib_$ac_lib_var=yes"
19514else
19515 echo "configure: failed program was:" >&5
19516 cat conftest.$ac_ext >&5
19517 rm -rf conftest*
19518 eval "ac_cv_lib_$ac_lib_var=no"
19519fi
19520rm -f conftest*
19521LIBS="$ac_save_LIBS"
19522
19523fi
19524if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19525 echo "$ac_t""yes" 1>&6
19526
19527 cat >> confdefs.h <<\EOF
10f2d63a 19528#define HAVE_DLOPEN 1
a0b9e27f 19529EOF
10f2d63a 19530
3a922bb4 19531 HAVE_DL_FUNCS=1
3d63bc3a 19532 DL_LINK=" -ldl$DL_LINK"
a0b9e27f 19533
10f2d63a 19534else
a0b9e27f 19535 echo "$ac_t""no" 1>&6
10f2d63a 19536
a0b9e27f 19537 for ac_func in shl_load
10f2d63a 19538do
a0b9e27f 19539echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 19540echo "configure:19541: checking for $ac_func" >&5
a0b9e27f
MB
19541if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19542 echo $ac_n "(cached) $ac_c" 1>&6
19543else
19544 cat > conftest.$ac_ext <<EOF
a85030bd 19545#line 19546 "configure"
10f2d63a
VZ
19546#include "confdefs.h"
19547/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19548 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19549#include <assert.h>
19550/* Override any gcc2 internal prototype to avoid an error. */
19551/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19552 builtin and then its argument prototype would still apply. */
19553char $ac_func();
19554
19555int main() {
19556
10f2d63a
VZ
19557/* The GNU C library defines this for functions which it implements
19558 to always fail with ENOSYS. Some functions are actually named
19559 something starting with __ and the normal name is an alias. */
19560#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19561choke me
19562#else
a0b9e27f 19563$ac_func();
10f2d63a
VZ
19564#endif
19565
a0b9e27f
MB
19566; return 0; }
19567EOF
a85030bd 19568if { (eval echo configure:19569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19569 rm -rf conftest*
19570 eval "ac_cv_func_$ac_func=yes"
19571else
19572 echo "configure: failed program was:" >&5
19573 cat conftest.$ac_ext >&5
19574 rm -rf conftest*
19575 eval "ac_cv_func_$ac_func=no"
19576fi
19577rm -f conftest*
19578fi
19579
19580if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19581 echo "$ac_t""yes" 1>&6
19582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19583 cat >> confdefs.h <<EOF
19584#define $ac_tr_func 1
19585EOF
19586
19587 cat >> confdefs.h <<\EOF
10f2d63a 19588#define HAVE_SHL_LOAD 1
a0b9e27f 19589EOF
10f2d63a 19590
3a922bb4 19591 HAVE_SHL_FUNCS=1
a0b9e27f 19592
10f2d63a 19593else
a0b9e27f
MB
19594 echo "$ac_t""no" 1>&6
19595echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
a85030bd 19596echo "configure:19597: checking for dld in -lshl_load" >&5
a0b9e27f
MB
19597ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19598if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19599 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19600else
a0b9e27f 19601 ac_save_LIBS="$LIBS"
f6bcfd97 19602LIBS="-lshl_load $LIBS"
a0b9e27f 19603cat > conftest.$ac_ext <<EOF
a85030bd 19604#line 19605 "configure"
f6bcfd97 19605#include "confdefs.h"
8284b0c5 19606/* Override any gcc2 internal prototype to avoid an error. */
f6bcfd97 19607/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19608 builtin and then its argument prototype would still apply. */
19609char dld();
19610
19611int main() {
19612dld()
19613; return 0; }
19614EOF
a85030bd 19615if { (eval echo configure:19616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19616 rm -rf conftest*
19617 eval "ac_cv_lib_$ac_lib_var=yes"
19618else
19619 echo "configure: failed program was:" >&5
19620 cat conftest.$ac_ext >&5
19621 rm -rf conftest*
19622 eval "ac_cv_lib_$ac_lib_var=no"
19623fi
19624rm -f conftest*
19625LIBS="$ac_save_LIBS"
f6bcfd97 19626
a0b9e27f
MB
19627fi
19628if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19629 echo "$ac_t""yes" 1>&6
19630
3a922bb4 19631 HAVE_SHL_FUNCS=1
3d63bc3a 19632 DL_LINK=" -ldld$DL_LINK"
a0b9e27f
MB
19633
19634else
19635 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19636fi
19637
a0b9e27f 19638
10f2d63a
VZ
19639fi
19640done
19641
a0b9e27f 19642
10f2d63a
VZ
19643fi
19644
a0b9e27f 19645
10f2d63a
VZ
19646fi
19647done
19648
5c6fa7d2 19649
8284b0c5 19650 if test "$HAVE_DL_FUNCS" = 1; then
a0b9e27f 19651 for ac_func in dlerror
f6bcfd97 19652do
a0b9e27f 19653echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
a85030bd 19654echo "configure:19655: checking for $ac_func" >&5
a0b9e27f
MB
19655if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19656 echo $ac_n "(cached) $ac_c" 1>&6
19657else
19658 cat > conftest.$ac_ext <<EOF
a85030bd 19659#line 19660 "configure"
f6bcfd97
BP
19660#include "confdefs.h"
19661/* System header to define __stub macros and hopefully few prototypes,
a0b9e27f 19662 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
19663#include <assert.h>
19664/* Override any gcc2 internal prototype to avoid an error. */
19665/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19666 builtin and then its argument prototype would still apply. */
19667char $ac_func();
19668
19669int main() {
19670
f6bcfd97
BP
19671/* The GNU C library defines this for functions which it implements
19672 to always fail with ENOSYS. Some functions are actually named
19673 something starting with __ and the normal name is an alias. */
19674#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19675choke me
19676#else
a0b9e27f 19677$ac_func();
f6bcfd97
BP
19678#endif
19679
a0b9e27f
MB
19680; return 0; }
19681EOF
a85030bd 19682if { (eval echo configure:19683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19683 rm -rf conftest*
19684 eval "ac_cv_func_$ac_func=yes"
19685else
19686 echo "configure: failed program was:" >&5
19687 cat conftest.$ac_ext >&5
19688 rm -rf conftest*
19689 eval "ac_cv_func_$ac_func=no"
19690fi
19691rm -f conftest*
19692fi
19693
19694if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19695 echo "$ac_t""yes" 1>&6
19696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19697 cat >> confdefs.h <<EOF
19698#define $ac_tr_func 1
19699EOF
19700 cat >> confdefs.h <<\EOF
f6bcfd97 19701#define HAVE_DLERROR 1
a0b9e27f 19702EOF
f6bcfd97
BP
19703
19704else
a0b9e27f
MB
19705 echo "$ac_t""no" 1>&6
19706echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
a85030bd 19707echo "configure:19708: checking for dlerror in -ldl" >&5
a0b9e27f
MB
19708ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19709if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19710 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19711else
a0b9e27f 19712 ac_save_LIBS="$LIBS"
f6bcfd97 19713LIBS="-ldl $LIBS"
a0b9e27f 19714cat > conftest.$ac_ext <<EOF
a85030bd 19715#line 19716 "configure"
f6bcfd97
BP
19716#include "confdefs.h"
19717/* Override any gcc2 internal prototype to avoid an error. */
19718/* We use char because int might match the return type of a gcc2
a0b9e27f
MB
19719 builtin and then its argument prototype would still apply. */
19720char dlerror();
19721
19722int main() {
19723dlerror()
19724; return 0; }
19725EOF
a85030bd 19726if { (eval echo configure:19727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19727 rm -rf conftest*
19728 eval "ac_cv_lib_$ac_lib_var=yes"
19729else
19730 echo "configure: failed program was:" >&5
19731 cat conftest.$ac_ext >&5
19732 rm -rf conftest*
19733 eval "ac_cv_lib_$ac_lib_var=no"
19734fi
19735rm -f conftest*
19736LIBS="$ac_save_LIBS"
19737
19738fi
19739if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19740 echo "$ac_t""yes" 1>&6
19741 cat >> confdefs.h <<\EOF
f6bcfd97 19742#define HAVE_DLERROR 1
a0b9e27f 19743EOF
f6bcfd97 19744
a0b9e27f
MB
19745else
19746 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19747fi
19748
19749fi
19750done
19751
3a922bb4
RL
19752 fi
19753 fi
f6bcfd97 19754
3a922bb4
RL
19755 if test "$HAVE_DL_FUNCS" = 0; then
19756 if test "$HAVE_SHL_FUNCS" = 0; then
19757 if test "$USE_UNIX" = 1; then
a0b9e27f 19758 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 19759 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
19760 wxUSE_DYNLIB_CLASS=no
19761 else
a0b9e27f 19762 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
3a922bb4
RL
19763 fi
19764 fi
10f2d63a
VZ
19765 fi
19766 fi
19767fi
19768
0b9ab0bd 19769if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
a0b9e27f 19770 cat >> confdefs.h <<\EOF
0b9ab0bd 19771#define wxUSE_DYNAMIC_LOADER 1
a0b9e27f 19772EOF
0b9ab0bd
RL
19773
19774elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
a0b9e27f 19775 cat >> confdefs.h <<\EOF
10f2d63a 19776#define wxUSE_DYNLIB_CLASS 1
a0b9e27f 19777EOF
10f2d63a
VZ
19778
19779fi
19780
8284b0c5 19781
1e6feb95 19782if test "$wxUSE_FONTMAP" = "yes" ; then
a0b9e27f 19783 cat >> confdefs.h <<\EOF
1e6feb95 19784#define wxUSE_FONTMAP 1
a0b9e27f 19785EOF
1e6feb95
VZ
19786
19787fi
19788
10f2d63a 19789if test "$wxUSE_UNICODE" = "yes" ; then
a0b9e27f 19790 cat >> confdefs.h <<\EOF
10f2d63a 19791#define wxUSE_UNICODE 1
a0b9e27f 19792EOF
10f2d63a 19793
8284b0c5 19794
bbc3925a
VS
19795 if test "$wxUSE_MSW" != 1; then
19796 wxUSE_UNICODE_MSLU=no
19797 fi
a72a4bfa
VS
19798
19799 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
a0b9e27f 19800 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
a85030bd 19801echo "configure:19802: checking for main in -lunicows" >&5
a0b9e27f
MB
19802ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19803if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19804 echo $ac_n "(cached) $ac_c" 1>&6
a72a4bfa 19805else
a0b9e27f 19806 ac_save_LIBS="$LIBS"
a72a4bfa 19807LIBS="-lunicows $LIBS"
a0b9e27f 19808cat > conftest.$ac_ext <<EOF
a85030bd 19809#line 19810 "configure"
a72a4bfa
VS
19810#include "confdefs.h"
19811
a0b9e27f
MB
19812int main() {
19813main()
19814; return 0; }
19815EOF
a85030bd 19816if { (eval echo configure:19817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a0b9e27f
MB
19817 rm -rf conftest*
19818 eval "ac_cv_lib_$ac_lib_var=yes"
19819else
19820 echo "configure: failed program was:" >&5
19821 cat conftest.$ac_ext >&5
19822 rm -rf conftest*
19823 eval "ac_cv_lib_$ac_lib_var=no"
19824fi
19825rm -f conftest*
19826LIBS="$ac_save_LIBS"
8284b0c5 19827
a0b9e27f
MB
19828fi
19829if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19830 echo "$ac_t""yes" 1>&6
19831
19832 cat >> confdefs.h <<\EOF
a72a4bfa 19833#define wxUSE_UNICODE_MSLU 1
a0b9e27f 19834EOF
a72a4bfa 19835
a0b9e27f 19836
a72a4bfa 19837else
a0b9e27f 19838 echo "$ac_t""no" 1>&6
a72a4bfa 19839
a0b9e27f
MB
19840 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19841 Applications will only run on Windows NT/2000/XP!" 1>&2
a72a4bfa 19842 wxUSE_UNICODE_MSLU=no
a0b9e27f 19843
a72a4bfa
VS
19844fi
19845
19846 fi
10f2d63a
VZ
19847fi
19848
10f2d63a 19849if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
a0b9e27f 19850 cat >> confdefs.h <<\EOF
10f2d63a 19851#define wxUSE_EXPERIMENTAL_PRINTF 1
a0b9e27f 19852EOF
10f2d63a
VZ
19853
19854fi
19855
8284b0c5
MB
19856
19857
10f2d63a
VZ
19858IODBC_C_SRC=""
19859if test "$wxUSE_ODBC" = "yes" ; then
a0b9e27f 19860 cat >> confdefs.h <<\EOF
10f2d63a 19861#define wxUSE_ODBC 1
a0b9e27f 19862EOF
10f2d63a
VZ
19863
19864 WXODBCFLAG="-D_IODBC_"
19865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
19866fi
19867
8284b0c5 19868
10f2d63a 19869if test "$wxUSE_POSTSCRIPT" = "yes" ; then
a0b9e27f 19870 cat >> confdefs.h <<\EOF
10f2d63a 19871#define wxUSE_POSTSCRIPT 1
a0b9e27f 19872EOF
10f2d63a
VZ
19873
19874fi
19875
a0b9e27f 19876cat >> confdefs.h <<\EOF
10f2d63a 19877#define wxUSE_AFM_FOR_POSTSCRIPT 1
a0b9e27f 19878EOF
10f2d63a 19879
8284b0c5 19880
a0b9e27f 19881cat >> confdefs.h <<\EOF
10f2d63a 19882#define wxUSE_NORMALIZED_PS_FONTS 1
a0b9e27f 19883EOF
10f2d63a 19884
8284b0c5
MB
19885
19886
10f2d63a 19887if test "$wxUSE_CONSTRAINTS" = "yes"; then
a0b9e27f 19888 cat >> confdefs.h <<\EOF
10f2d63a 19889#define wxUSE_CONSTRAINTS 1
a0b9e27f 19890EOF
10f2d63a
VZ
19891
19892 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19893fi
19894
19895if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 19896
8284b0c5 19897
bb811f17 19898 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
a0b9e27f 19899 cat >> confdefs.h <<\EOF
10f2d63a 19900#define wxUSE_MDI_ARCHITECTURE 1
a0b9e27f 19901EOF
10f2d63a 19902
bb811f17
JS
19903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19904 fi
10f2d63a
VZ
19905fi
19906
19907if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
a0b9e27f 19908 cat >> confdefs.h <<\EOF
10f2d63a 19909#define wxUSE_DOC_VIEW_ARCHITECTURE 1
a0b9e27f 19910EOF
10f2d63a
VZ
19911
19912 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19913 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19915 fi
19916fi
19917
19918if test "$wxUSE_HELP" = "yes"; then
a0b9e27f 19919 cat >> confdefs.h <<\EOF
10f2d63a 19920#define wxUSE_HELP 1
a0b9e27f 19921EOF
10f2d63a
VZ
19922
19923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 19924
77e13408 19925 if test "$wxUSE_MSW" = 1; then
031d8228 19926 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
a0b9e27f 19927 cat >> confdefs.h <<\EOF
29fd3c0c 19928#define wxUSE_MS_HTML_HELP 1
a0b9e27f 19929EOF
29fd3c0c 19930
3e44f09d 19931 fi
3379ed37 19932 fi
031d8228
VS
19933
19934 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19935 if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 19936 cat >> confdefs.h <<\EOF
031d8228 19937#define wxUSE_WXHTML_HELP 1
a0b9e27f 19938EOF
031d8228
VS
19939
19940 else
a0b9e27f 19941 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
031d8228
VS
19942 wxUSE_WXHTML_HELP=no
19943 fi
19944 fi
10f2d63a
VZ
19945fi
19946
19947if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19948 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 19949 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 19950 else
a0b9e27f 19951 cat >> confdefs.h <<\EOF
10f2d63a 19952#define wxUSE_PRINTING_ARCHITECTURE 1
a0b9e27f 19953EOF
10f2d63a
VZ
19954
19955 fi
19956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19957fi
19958
19959if test "$wxUSE_PROLOGIO" = "yes" ; then
a0b9e27f 19960 cat >> confdefs.h <<\EOF
10f2d63a 19961#define wxUSE_PROLOGIO 1
a0b9e27f 19962EOF
10f2d63a
VZ
19963
19964fi
19965
19966if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea 19967 if test "$wxUSE_NANOX" = "yes"; then
a0b9e27f 19968 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
e334d0ea 19969 else
a0b9e27f 19970 cat >> confdefs.h <<\EOF
10f2d63a 19971#define wxUSE_RESOURCES 1
a0b9e27f 19972EOF
10f2d63a 19973
e334d0ea
JS
19974 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19975 fi
10f2d63a
VZ
19976fi
19977
19978if test "$wxUSE_X_RESOURCES" = "yes"; then
a0b9e27f 19979 cat >> confdefs.h <<\EOF
10f2d63a 19980#define wxUSE_X_RESOURCES 1
a0b9e27f 19981EOF
10f2d63a
VZ
19982
19983fi
19984
8284b0c5 19985
77e13408
RL
19986if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19987 -o "$wxUSE_CLIPBOARD" = "yes" \
3bce6687 19988 -o "$wxUSE_OLE" = "yes" \
77e13408 19989 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
a0b9e27f 19990 for ac_hdr in ole2.h
10f2d63a 19991do
a0b9e27f
MB
19992ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19993echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a85030bd 19994echo "configure:19995: checking for $ac_hdr" >&5
a0b9e27f
MB
19995if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19996 echo $ac_n "(cached) $ac_c" 1>&6
19997else
19998 cat > conftest.$ac_ext <<EOF
a85030bd 19999#line 20000 "configure"
10f2d63a 20000#include "confdefs.h"
a0b9e27f
MB
20001#include <$ac_hdr>
20002EOF
20003ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 20004{ (eval echo configure:20005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a0b9e27f
MB
20005ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20006if test -z "$ac_err"; then
20007 rm -rf conftest*
20008 eval "ac_cv_header_$ac_safe=yes"
20009else
20010 echo "$ac_err" >&5
20011 echo "configure: failed program was:" >&5
10f2d63a 20012 cat conftest.$ac_ext >&5
a0b9e27f
MB
20013 rm -rf conftest*
20014 eval "ac_cv_header_$ac_safe=no"
10f2d63a 20015fi
a0b9e27f 20016rm -f conftest*
10f2d63a 20017fi
a0b9e27f
MB
20018if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20019 echo "$ac_t""yes" 1>&6
20020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20021 cat >> confdefs.h <<EOF
20022#define $ac_tr_hdr 1
20023EOF
20024
20025else
20026 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20027fi
20028done
20029
8284b0c5 20030
2b9bdf71
VZ
20031 if test "$ac_cv_header_ole2_h" = "yes" ; then
20032 if test "$GCC" = yes ; then
a0b9e27f
MB
20033
20034 ac_ext=C
20035# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 20036ac_cpp='$CXXCPP $CPPFLAGS'
a0b9e27f
MB
20037ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20038ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20039cross_compiling=$ac_cv_prog_cxx_cross
8284b0c5
MB
20040
20041
a0b9e27f 20042 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
a85030bd 20043echo "configure:20044: checking if g++ requires -fvtable-thunks" >&5
a0b9e27f 20044 cat > conftest.$ac_ext <<EOF
a85030bd 20045#line 20046 "configure"
8284b0c5
MB
20046#include "confdefs.h"
20047#include <windows.h>
20048 #include <ole2.h>
a0b9e27f 20049int main() {
8284b0c5 20050
a0b9e27f
MB
20051; return 0; }
20052EOF
a85030bd 20053if { (eval echo configure:20054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a0b9e27f
MB
20054 rm -rf conftest*
20055 echo "$ac_t""no" 1>&6
20056else
20057 echo "configure: failed program was:" >&5
20058 cat conftest.$ac_ext >&5
20059 rm -rf conftest*
20060 echo "$ac_t""yes" 1>&6
8284b0c5
MB
20061 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20062fi
a0b9e27f 20063rm -f conftest*
8284b0c5 20064 ac_ext=c
a0b9e27f 20065# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284b0c5 20066ac_cpp='$CPP $CPPFLAGS'
a0b9e27f
MB
20067ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20068ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20069cross_compiling=$ac_cv_prog_cc_cross
8284b0c5 20070
2b9bdf71 20071 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 20072 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
a0b9e27f 20073 cat >> confdefs.h <<\EOF
4f11a343 20074#define wxUSE_OLE 1
a0b9e27f 20075EOF
4f11a343 20076
8284b0c5 20077
2b9bdf71
VZ
20078 fi
20079
a0b9e27f 20080 cat >> confdefs.h <<\EOF
2b9bdf71 20081#define wxUSE_DATAOBJ 1
a0b9e27f 20082EOF
2b9bdf71
VZ
20083
20084 else
a0b9e27f 20085 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
2b9bdf71
VZ
20086
20087 wxUSE_CLIPBOARD=no
20088 wxUSE_DRAG_AND_DROP=no
20089 wxUSE_DATAOBJ=no
3bce6687
JS
20090 wxUSE_OLE=no
20091 fi
20092
20093 if test "$wxUSE_METAFILE" = "yes"; then
20094 cat >> confdefs.h <<\EOF
20095#define wxUSE_METAFILE 1
20096EOF
20097
20098
20099 cat >> confdefs.h <<\EOF
20100#define wxUSE_ENH_METAFILE 1
20101EOF
20102
20103 fi
20104fi
20105
20106if test "$wxUSE_WINE" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20107 -o "$wxUSE_CLIPBOARD" = "yes" \
20108 -o "$wxUSE_OLE" = "yes" \
20109 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20110 for ac_hdr in ole2.h
20111do
20112ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20113echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
a85030bd 20114echo "configure:20115: checking for $ac_hdr" >&5
3bce6687
JS
20115if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20116 echo $ac_n "(cached) $ac_c" 1>&6
20117else
20118 cat > conftest.$ac_ext <<EOF
a85030bd 20119#line 20120 "configure"
3bce6687
JS
20120#include "confdefs.h"
20121#include <$ac_hdr>
20122EOF
20123ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
a85030bd 20124{ (eval echo configure:20125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3bce6687
JS
20125ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20126if test -z "$ac_err"; then
20127 rm -rf conftest*
20128 eval "ac_cv_header_$ac_safe=yes"
20129else
20130 echo "$ac_err" >&5
20131 echo "configure: failed program was:" >&5
20132 cat conftest.$ac_ext >&5
20133 rm -rf conftest*
20134 eval "ac_cv_header_$ac_safe=no"
20135fi
20136rm -f conftest*
20137fi
20138if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20139 echo "$ac_t""yes" 1>&6
20140 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20141 cat >> confdefs.h <<EOF
20142#define $ac_tr_hdr 1
20143EOF
20144
20145else
20146 echo "$ac_t""no" 1>&6
20147fi
20148done
20149
20150
20151 if test "$ac_cv_header_ole2_h" = "yes" ; then
20152 if test "$GCC" = yes ; then
20153
20154 ac_ext=C
20155# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20156ac_cpp='$CXXCPP $CPPFLAGS'
20157ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20158ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20159cross_compiling=$ac_cv_prog_cxx_cross
20160
20161
20162 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
a85030bd 20163echo "configure:20164: checking if g++ requires -fvtable-thunks" >&5
3bce6687 20164 cat > conftest.$ac_ext <<EOF
a85030bd 20165#line 20166 "configure"
3bce6687
JS
20166#include "confdefs.h"
20167#include <windows.h>
20168 #include <ole2.h>
20169int main() {
20170
20171; return 0; }
20172EOF
a85030bd 20173if { (eval echo configure:20174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3bce6687
JS
20174 rm -rf conftest*
20175 echo "$ac_t""no" 1>&6
20176else
20177 echo "configure: failed program was:" >&5
20178 cat conftest.$ac_ext >&5
20179 rm -rf conftest*
20180 echo "$ac_t""yes" 1>&6
20181 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20182fi
20183rm -f conftest*
20184 ac_ext=c
20185# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20186ac_cpp='$CPP $CPPFLAGS'
20187ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20188ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20189cross_compiling=$ac_cv_prog_cc_cross
20190
20191 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20192 LIBS=" -lwine_uuid$LIBS"
20193 cat >> confdefs.h <<\EOF
20194#define wxUSE_OLE 1
20195EOF
20196
20197
20198 fi
20199
20200 cat >> confdefs.h <<\EOF
20201#define wxUSE_DATAOBJ 1
20202EOF
20203
20204 else
20205 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
20206
20207 wxUSE_CLIPBOARD=no
20208 wxUSE_DRAG_AND_DROP=no
20209 wxUSE_DATAOBJ=no
20210 wxUSE_OLE=no
2b9bdf71
VZ
20211 fi
20212
77e13408 20213 if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 20214 cat >> confdefs.h <<\EOF
b64f0a5f 20215#define wxUSE_METAFILE 1
a0b9e27f 20216EOF
b64f0a5f 20217
8284b0c5 20218
a0b9e27f 20219 cat >> confdefs.h <<\EOF
b64f0a5f 20220#define wxUSE_ENH_METAFILE 1
a0b9e27f 20221EOF
b64f0a5f 20222
2b9bdf71
VZ
20223 fi
20224fi
20225
20226if test "$wxUSE_IPC" = "yes"; then
20227 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 20228 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
20229 fi
20230
a0b9e27f 20231 cat >> confdefs.h <<\EOF
2b9bdf71 20232#define wxUSE_IPC 1
a0b9e27f 20233EOF
2b9bdf71
VZ
20234
20235fi
20236
20237if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 20238 if test "$wxUSE_MGL" = 1; then
a0b9e27f 20239 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20240 wxUSE_CLIPBOARD=no
20241 fi
20242
20243 if test "$wxUSE_CLIPBOARD" = "yes"; then
a0b9e27f 20244 cat >> confdefs.h <<\EOF
2b9bdf71 20245#define wxUSE_CLIPBOARD 1
a0b9e27f 20246EOF
2b9bdf71 20247
8284b0c5 20248
a0b9e27f 20249 cat >> confdefs.h <<\EOF
673f4220 20250#define wxUSE_DATAOBJ 1
a0b9e27f 20251EOF
673f4220 20252
6c657b52 20253 fi
2b9bdf71
VZ
20254fi
20255
20256if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
20257 if test "$wxUSE_GTK" = 1; then
20258 if test "$WXGTK12" != 1; then
a0b9e27f 20259 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
20260 wxUSE_DRAG_AND_DROP=no
20261 fi
20262 fi
20263
2b9bdf71 20264 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 20265 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
20266 wxUSE_DRAG_AND_DROP=no
20267 fi
20268
f79bd02d 20269 if test "$wxUSE_X11" = 1; then
a0b9e27f 20270 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
f79bd02d
JS
20271 wxUSE_DRAG_AND_DROP=no
20272 fi
20273
6c657b52 20274 if test "$wxUSE_MGL" = 1; then
a0b9e27f 20275 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
6c657b52
VS
20276 wxUSE_DRAG_AND_DROP=no
20277 fi
20278
10f2d63a 20279 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
a0b9e27f 20280 cat >> confdefs.h <<\EOF
10f2d63a 20281#define wxUSE_DRAG_AND_DROP 1
a0b9e27f 20282EOF
10f2d63a
VZ
20283
20284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
20285 fi
20286
20287fi
20288
20289if test "$wxUSE_SPLINES" = "yes" ; then
a0b9e27f 20290 cat >> confdefs.h <<\EOF
10f2d63a 20291#define wxUSE_SPLINES 1
a0b9e27f 20292EOF
10f2d63a
VZ
20293
20294fi
20295
8284b0c5 20296
1e6feb95
VZ
20297USES_CONTROLS=0
20298if test "$wxUSE_CONTROLS" = "yes"; then
20299 USES_CONTROLS=1
20300fi
20301
10f2d63a 20302if test "$wxUSE_ACCEL" = "yes"; then
a0b9e27f 20303 cat >> confdefs.h <<\EOF
10f2d63a 20304#define wxUSE_ACCEL 1
a0b9e27f 20305EOF
10f2d63a 20306
1e6feb95
VZ
20307 USES_CONTROLS=1
20308fi
20309
20310if test "$wxUSE_BUTTON" = "yes"; then
a0b9e27f 20311 cat >> confdefs.h <<\EOF
1e6feb95 20312#define wxUSE_BUTTON 1
a0b9e27f 20313EOF
1e6feb95
VZ
20314
20315 USES_CONTROLS=1
20316fi
20317
20318if test "$wxUSE_BMPBUTTON" = "yes"; then
a0b9e27f 20319 cat >> confdefs.h <<\EOF
1e6feb95 20320#define wxUSE_BMPBUTTON 1
a0b9e27f 20321EOF
1e6feb95
VZ
20322
20323 USES_CONTROLS=1
20324fi
20325
20326if test "$wxUSE_CALCTRL" = "yes"; then
a0b9e27f 20327 cat >> confdefs.h <<\EOF
1e6feb95 20328#define wxUSE_CALENDARCTRL 1
a0b9e27f 20329EOF
1e6feb95
VZ
20330
20331 USES_CONTROLS=1
20332 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
20333fi
20334
20335if test "$wxUSE_CARET" = "yes"; then
a0b9e27f 20336 cat >> confdefs.h <<\EOF
10f2d63a 20337#define wxUSE_CARET 1
a0b9e27f 20338EOF
10f2d63a 20339
1e6feb95 20340 USES_CONTROLS=1
10f2d63a
VZ
20341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20342fi
20343
20344if test "$wxUSE_COMBOBOX" = "yes"; then
a0b9e27f 20345 cat >> confdefs.h <<\EOF
10f2d63a 20346#define wxUSE_COMBOBOX 1
a0b9e27f 20347EOF
10f2d63a 20348
1e6feb95 20349 USES_CONTROLS=1
10f2d63a
VZ
20350fi
20351
20352if test "$wxUSE_CHOICE" = "yes"; then
a0b9e27f 20353 cat >> confdefs.h <<\EOF
10f2d63a 20354#define wxUSE_CHOICE 1
a0b9e27f 20355EOF
10f2d63a 20356
1e6feb95 20357 USES_CONTROLS=1
10f2d63a
VZ
20358fi
20359
20360if test "$wxUSE_CHECKBOX" = "yes"; then
a0b9e27f 20361 cat >> confdefs.h <<\EOF
10f2d63a 20362#define wxUSE_CHECKBOX 1
a0b9e27f 20363EOF
10f2d63a 20364
1e6feb95 20365 USES_CONTROLS=1
10f2d63a
VZ
20366fi
20367
20368if test "$wxUSE_CHECKLST" = "yes"; then
a0b9e27f 20369 cat >> confdefs.h <<\EOF
10f2d63a 20370#define wxUSE_CHECKLISTBOX 1
a0b9e27f 20371EOF
10f2d63a 20372
1e6feb95 20373 USES_CONTROLS=1
10f2d63a
VZ
20374 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20375fi
20376
20377if test "$wxUSE_GAUGE" = "yes"; then
a0b9e27f 20378 cat >> confdefs.h <<\EOF
10f2d63a 20379#define wxUSE_GAUGE 1
a0b9e27f 20380EOF
10f2d63a 20381
1e6feb95 20382 USES_CONTROLS=1
10f2d63a
VZ
20383fi
20384
d6a55c4b
VZ
20385if test "$wxUSE_NEW_GRID" = "yes"; then
20386 wxUSE_GRID="yes"
a0b9e27f 20387 cat >> confdefs.h <<\EOF
d6a55c4b 20388#define wxUSE_NEW_GRID 1
a0b9e27f 20389EOF
10f2d63a 20390
1e6feb95 20391 USES_CONTROLS=1
d6a55c4b 20392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
20393fi
20394
d6a55c4b 20395if test "$wxUSE_GRID" = "yes"; then
a0b9e27f 20396 cat >> confdefs.h <<\EOF
d6a55c4b 20397#define wxUSE_GRID 1
a0b9e27f 20398EOF
10f2d63a 20399
1e6feb95 20400 USES_CONTROLS=1
d6a55c4b 20401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
20402fi
20403
20404if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 20405 cat >> confdefs.h <<\EOF
10f2d63a 20406#define wxUSE_IMAGLIST 1
a0b9e27f 20407EOF
10f2d63a
VZ
20408
20409fi
20410
20411if test "$wxUSE_LISTBOX" = "yes"; then
a0b9e27f 20412 cat >> confdefs.h <<\EOF
10f2d63a 20413#define wxUSE_LISTBOX 1
a0b9e27f 20414EOF
10f2d63a 20415
1e6feb95 20416 USES_CONTROLS=1
10f2d63a
VZ
20417fi
20418
20419if test "$wxUSE_LISTCTRL" = "yes"; then
20420 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 20421 cat >> confdefs.h <<\EOF
10f2d63a 20422#define wxUSE_LISTCTRL 1
a0b9e27f 20423EOF
10f2d63a 20424
1e6feb95 20425 USES_CONTROLS=1
10f2d63a
VZ
20426 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20427 else
a0b9e27f 20428 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20429 fi
20430fi
20431
20432if test "$wxUSE_NOTEBOOK" = "yes"; then
a0b9e27f 20433 cat >> confdefs.h <<\EOF
10f2d63a 20434#define wxUSE_NOTEBOOK 1
a0b9e27f 20435EOF
10f2d63a 20436
1e6feb95 20437 USES_CONTROLS=1
10f2d63a
VZ
20438 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20439fi
20440
24176f2c 20441if test "$wxUSE_PROPSHEET" = "yes"; then
a0b9e27f 20442 cat >> confdefs.h <<\EOF
24176f2c 20443#define wxUSE_PROPSHEET 1
a0b9e27f 20444EOF
24176f2c
GD
20445
20446 USES_CONTROLS=1
20447 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20448fi
20449
10f2d63a 20450if test "$wxUSE_RADIOBOX" = "yes"; then
a0b9e27f 20451 cat >> confdefs.h <<\EOF
10f2d63a 20452#define wxUSE_RADIOBOX 1
a0b9e27f 20453EOF
10f2d63a 20454
1e6feb95 20455 USES_CONTROLS=1
10f2d63a
VZ
20456fi
20457
20458if test "$wxUSE_RADIOBTN" = "yes"; then
a0b9e27f 20459 cat >> confdefs.h <<\EOF
10f2d63a 20460#define wxUSE_RADIOBTN 1
a0b9e27f 20461EOF
10f2d63a 20462
1e6feb95 20463 USES_CONTROLS=1
10f2d63a
VZ
20464fi
20465
20466if test "$wxUSE_SASH" = "yes"; then
a0b9e27f 20467 cat >> confdefs.h <<\EOF
10f2d63a 20468#define wxUSE_SASH 1
a0b9e27f 20469EOF
10f2d63a
VZ
20470
20471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20472fi
20473
20474if test "$wxUSE_SCROLLBAR" = "yes"; then
a0b9e27f 20475 cat >> confdefs.h <<\EOF
10f2d63a 20476#define wxUSE_SCROLLBAR 1
a0b9e27f 20477EOF
10f2d63a 20478
1e6feb95 20479 USES_CONTROLS=1
741a9306 20480 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
20481fi
20482
20483if test "$wxUSE_SLIDER" = "yes"; then
a0b9e27f 20484 cat >> confdefs.h <<\EOF
10f2d63a 20485#define wxUSE_SLIDER 1
a0b9e27f 20486EOF
10f2d63a 20487
1e6feb95 20488 USES_CONTROLS=1
10f2d63a
VZ
20489fi
20490
20491if test "$wxUSE_SPINBTN" = "yes"; then
a0b9e27f 20492 cat >> confdefs.h <<\EOF
10f2d63a 20493#define wxUSE_SPINBTN 1
a0b9e27f 20494EOF
10f2d63a 20495
1e6feb95 20496 USES_CONTROLS=1
10f2d63a
VZ
20497fi
20498
56cfaa52 20499if test "$wxUSE_SPINCTRL" = "yes"; then
a0b9e27f 20500 cat >> confdefs.h <<\EOF
56cfaa52 20501#define wxUSE_SPINCTRL 1
a0b9e27f 20502EOF
56cfaa52 20503
1e6feb95 20504 USES_CONTROLS=1
56cfaa52
RR
20505fi
20506
10f2d63a 20507if test "$wxUSE_SPLITTER" = "yes"; then
a0b9e27f 20508 cat >> confdefs.h <<\EOF
10f2d63a 20509#define wxUSE_SPLITTER 1
a0b9e27f 20510EOF
10f2d63a
VZ
20511
20512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20513fi
20514
20515if test "$wxUSE_STATBMP" = "yes"; then
a0b9e27f 20516 cat >> confdefs.h <<\EOF
10f2d63a 20517#define wxUSE_STATBMP 1
a0b9e27f 20518EOF
10f2d63a 20519
1e6feb95 20520 USES_CONTROLS=1
10f2d63a
VZ
20521fi
20522
20523if test "$wxUSE_STATBOX" = "yes"; then
a0b9e27f 20524 cat >> confdefs.h <<\EOF
10f2d63a 20525#define wxUSE_STATBOX 1
a0b9e27f 20526EOF
10f2d63a 20527
1e6feb95
VZ
20528 USES_CONTROLS=1
20529fi
20530
20531if test "$wxUSE_STATTEXT" = "yes"; then
a0b9e27f 20532 cat >> confdefs.h <<\EOF
1e6feb95 20533#define wxUSE_STATTEXT 1
a0b9e27f 20534EOF
1e6feb95
VZ
20535
20536 USES_CONTROLS=1
10f2d63a
VZ
20537fi
20538
20539if test "$wxUSE_STATLINE" = "yes"; then
20540 if test "$wxUSE_WINE" = 1 ; then
a0b9e27f 20541 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 20542 else
a0b9e27f 20543 cat >> confdefs.h <<\EOF
10f2d63a 20544#define wxUSE_STATLINE 1
a0b9e27f 20545EOF
10f2d63a 20546
1e6feb95 20547 USES_CONTROLS=1
10f2d63a
VZ
20548 fi
20549fi
20550
20551if test "$wxUSE_STATUSBAR" = "yes"; then
a0b9e27f 20552 cat >> confdefs.h <<\EOF
10f2d63a 20553#define wxUSE_STATUSBAR 1
a0b9e27f 20554EOF
10f2d63a 20555
1e6feb95 20556 USES_CONTROLS=1
698dcdb6 20557
2286341c 20558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
20559fi
20560
20561if test "$wxUSE_TABDIALOG" = "yes"; then
a0b9e27f 20562 cat >> confdefs.h <<\EOF
10f2d63a 20563#define wxUSE_TAB_DIALOG 1
a0b9e27f 20564EOF
10f2d63a
VZ
20565
20566 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20567fi
20568
1e6feb95 20569if test "$wxUSE_TEXTCTRL" = "yes"; then
a0b9e27f 20570 cat >> confdefs.h <<\EOF
1e6feb95 20571#define wxUSE_TEXTCTRL 1
a0b9e27f 20572EOF
1e6feb95
VZ
20573
20574 USES_CONTROLS=1
20575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20576fi
20577
1db8dc4a 20578if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523 20579 if test "$wxUSE_MAC" = 1; then
a0b9e27f 20580 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
156b2523
GD
20581 wxUSE_TOGGLEBTN=no
20582 fi
20583 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 20584 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
20585 wxUSE_TOGGLEBTN=no
20586 fi
20587
20588 if test "$wxUSE_TOGGLEBTN" = "yes"; then
a0b9e27f 20589 cat >> confdefs.h <<\EOF
1db8dc4a 20590#define wxUSE_TOGGLEBTN 1
a0b9e27f 20591EOF
1db8dc4a 20592
1e6feb95 20593 USES_CONTROLS=1
a45d7ab7 20594 fi
1db8dc4a
VZ
20595fi
20596
360d6699 20597if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
a0b9e27f 20598 cat >> confdefs.h <<\EOF
360d6699 20599#define wxUSE_TOOLBAR_SIMPLE 1
a0b9e27f 20600EOF
360d6699
VZ
20601
20602 wxUSE_TOOLBAR="yes"
1e6feb95 20603 USES_CONTROLS=1
360d6699
VZ
20604fi
20605
10f2d63a 20606if test "$wxUSE_TOOLBAR" = "yes"; then
a0b9e27f 20607 cat >> confdefs.h <<\EOF
10f2d63a 20608#define wxUSE_TOOLBAR 1
a0b9e27f 20609EOF
10f2d63a 20610
1e6feb95 20611 USES_CONTROLS=1
698dcdb6 20612
360d6699
VZ
20613 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20614 wxUSE_TOOLBAR_NATIVE="yes"
20615 fi
20616
1e6feb95 20617 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
a0b9e27f 20618 cat >> confdefs.h <<\EOF
360d6699 20619#define wxUSE_TOOLBAR_NATIVE 1
a0b9e27f 20620EOF
360d6699 20621
1e6feb95
VZ
20622 USES_CONTROLS=1
20623 fi
20624
20625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
20626fi
20627
10f2d63a
VZ
20628if test "$wxUSE_TOOLTIPS" = "yes"; then
20629 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 20630 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
20631 else
20632 if test "$wxUSE_WINE" = 1; then
a0b9e27f 20633 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 20634 else
69d27ff7 20635 if test "$wxUSE_UNIVERSAL" = "yes"; then
a0b9e27f 20636 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
69d27ff7 20637 else
a0b9e27f 20638 cat >> confdefs.h <<\EOF
10f2d63a 20639#define wxUSE_TOOLTIPS 1
a0b9e27f 20640EOF
10f2d63a 20641
69d27ff7 20642 fi
10f2d63a
VZ
20643 fi
20644 fi
20645fi
20646
20647if test "$wxUSE_TREECTRL" = "yes"; then
20648 if test "$wxUSE_IMAGLIST" = "yes"; then
a0b9e27f 20649 cat >> confdefs.h <<\EOF
10f2d63a 20650#define wxUSE_TREECTRL 1
a0b9e27f 20651EOF
10f2d63a 20652
1e6feb95 20653 USES_CONTROLS=1
10f2d63a
VZ
20654 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20655 else
a0b9e27f 20656 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20657 fi
20658fi
20659
9f41d601 20660if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 20661 if test "$wxUSE_MAC" = 1; then
a0b9e27f 20662 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 20663 else
485cf710 20664 if test "$wxUSE_MOTIF" = 1; then
a0b9e27f 20665 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
485cf710 20666 else
3c011993 20667 if test "$wxUSE_PM" = 1; then
a0b9e27f 20668 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 20669 else
a0b9e27f 20670 cat >> confdefs.h <<\EOF
9f41d601 20671#define wxUSE_POPUPWIN 1
a0b9e27f 20672EOF
9f41d601 20673
8284b0c5 20674
3c011993
VZ
20675 USES_CONTROLS=1
20676 fi
485cf710 20677 fi
6abe4b65 20678 fi
9f41d601
RR
20679fi
20680
dd964dcc 20681if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 20682 if test "$wxUSE_PM" = 1; then
a0b9e27f 20683 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
3bd8fb5f 20684 else
a0b9e27f 20685 cat >> confdefs.h <<\EOF
dd964dcc 20686#define wxUSE_TIPWINDOW 1
a0b9e27f 20687EOF
dd964dcc 20688
3c011993 20689 fi
dd964dcc
VZ
20690fi
20691
1e6feb95 20692if test "$USES_CONTROLS" = 1; then
a0b9e27f 20693 cat >> confdefs.h <<\EOF
1e6feb95 20694#define wxUSE_CONTROLS 1
a0b9e27f 20695EOF
10f2d63a 20696
10f2d63a
VZ
20697fi
20698
8284b0c5 20699
24176f2c 20700if test "$wxUSE_TREELAYOUT" = "yes"; then
a0b9e27f 20701 cat >> confdefs.h <<\EOF
24176f2c 20702#define wxUSE_TREELAYOUT 1
a0b9e27f 20703EOF
24176f2c
GD
20704
20705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20706fi
1e6feb95 20707
24fd6d87 20708if test "$wxUSE_DRAGIMAGE" = "yes"; then
a0b9e27f 20709 cat >> confdefs.h <<\EOF
24fd6d87 20710#define wxUSE_DRAGIMAGE 1
a0b9e27f 20711EOF
24fd6d87
VZ
20712
20713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20714fi
20715
1e6feb95 20716if test "$wxUSE_MENUS" = "yes"; then
a0b9e27f 20717 cat >> confdefs.h <<\EOF
1e6feb95 20718#define wxUSE_MENUS 1
a0b9e27f 20719EOF
10f2d63a 20720
1e6feb95 20721 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
20722fi
20723
1e6feb95 20724if test "$wxUSE_METAFILE" = "yes"; then
a0b9e27f 20725 cat >> confdefs.h <<\EOF
1e6feb95 20726#define wxUSE_METAFILE 1
a0b9e27f 20727EOF
10f2d63a 20728
10f2d63a
VZ
20729fi
20730
1e6feb95 20731if test "$wxUSE_MIMETYPE" = "yes"; then
a0b9e27f 20732 cat >> confdefs.h <<\EOF
1e6feb95 20733#define wxUSE_MIMETYPE 1
a0b9e27f 20734EOF
10f2d63a 20735
10f2d63a
VZ
20736fi
20737
3e44f09d 20738if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
a0b9e27f 20739 cat >> confdefs.h <<\EOF
3e44f09d 20740#define wxUSE_SYSTEM_OPTIONS 1
a0b9e27f 20741EOF
3e44f09d 20742
321d2b14
VZ
20743if test "$TOOLKIT" = "MSW"; then
20744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20745fi
20746
3e44f09d
VZ
20747fi
20748
4cdb0ab0 20749if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 20750 if test "$wxUSE_SOCKETS" != "yes"; then
a0b9e27f 20751 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
3954f9ca
VS
20752 wxUSE_PROTOCOL=no
20753 fi
20754
20755 if test "$wxUSE_PROTOCOL" = "yes"; then
a0b9e27f 20756 cat >> confdefs.h <<\EOF
4cdb0ab0 20757#define wxUSE_PROTOCOL 1
a0b9e27f 20758EOF
4cdb0ab0 20759
8284b0c5 20760
3954f9ca 20761 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
a0b9e27f 20762 cat >> confdefs.h <<\EOF
4cdb0ab0 20763#define wxUSE_PROTOCOL_HTTP 1
a0b9e27f 20764EOF
4cdb0ab0 20765
3954f9ca
VS
20766 fi
20767 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
a0b9e27f 20768 cat >> confdefs.h <<\EOF
4cdb0ab0 20769#define wxUSE_PROTOCOL_FTP 1
a0b9e27f 20770EOF
4cdb0ab0 20771
3954f9ca
VS
20772 fi
20773 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
a0b9e27f 20774 cat >> confdefs.h <<\EOF
3954f9ca 20775#define wxUSE_PROTOCOL_FILE 1
a0b9e27f 20776EOF
3954f9ca
VS
20777
20778 fi
4cdb0ab0 20779 fi
3954f9ca
VS
20780fi
20781
20782if test "$wxUSE_URL" = "yes"; then
20783 if test "$wxUSE_PROTOCOL" != "yes"; then
a0b9e27f 20784 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
3954f9ca
VS
20785 wxUSE_URL=no
20786 fi
20787 if test "$wxUSE_URL" = "yes"; then
a0b9e27f 20788 cat >> confdefs.h <<\EOF
3954f9ca 20789#define wxUSE_URL 1
a0b9e27f 20790EOF
4cdb0ab0
VS
20791
20792 fi
20793fi
20794
10f2d63a 20795if test "$wxUSE_MINIFRAME" = "yes"; then
a0b9e27f 20796 cat >> confdefs.h <<\EOF
10f2d63a 20797#define wxUSE_MINIFRAME 1
a0b9e27f 20798EOF
10f2d63a
VZ
20799
20800 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20801fi
20802
20803if test "$wxUSE_HTML" = "yes"; then
a0b9e27f 20804 cat >> confdefs.h <<\EOF
10f2d63a 20805#define wxUSE_HTML 1
a0b9e27f 20806EOF
10f2d63a
VZ
20807
20808 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
20809fi
20810
20811if test "$wxUSE_VALIDATORS" = "yes"; then
a0b9e27f 20812 cat >> confdefs.h <<\EOF
1e487827 20813#define wxUSE_VALIDATORS 1
a0b9e27f 20814EOF
703e0a69 20815
698dcdb6
VZ
20816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20817fi
20818
edae8572 20819if test "$wxUSE_PALETTE" = "yes" ; then
a0b9e27f 20820 cat >> confdefs.h <<\EOF
edae8572 20821#define wxUSE_PALETTE 1
a0b9e27f 20822EOF
edae8572
VZ
20823
20824fi
20825
698dcdb6 20826if test "$wxUSE_IMAGE" = "yes" ; then
a0b9e27f 20827 cat >> confdefs.h <<\EOF
698dcdb6 20828#define wxUSE_IMAGE 1
a0b9e27f 20829EOF
698dcdb6
VZ
20830
20831fi
20832
20833if test "$wxUSE_GIF" = "yes" ; then
a0b9e27f 20834 cat >> confdefs.h <<\EOF
698dcdb6 20835#define wxUSE_GIF 1
a0b9e27f 20836EOF
698dcdb6
VZ
20837
20838fi
20839
20840if test "$wxUSE_PCX" = "yes" ; then
a0b9e27f 20841 cat >> confdefs.h <<\EOF
698dcdb6 20842#define wxUSE_PCX 1
a0b9e27f 20843EOF
698dcdb6
VZ
20844
20845fi
20846
4b6b4dfc 20847if test "$wxUSE_IFF" = "yes" ; then
a0b9e27f 20848 cat >> confdefs.h <<\EOF
4b6b4dfc 20849#define wxUSE_IFF 1
a0b9e27f 20850EOF
4b6b4dfc
RR
20851
20852fi
20853
698dcdb6 20854if test "$wxUSE_PNM" = "yes" ; then
a0b9e27f 20855 cat >> confdefs.h <<\EOF
698dcdb6 20856#define wxUSE_PNM 1
a0b9e27f 20857EOF
698dcdb6
VZ
20858
20859fi
20860
20861if test "$wxUSE_XPM" = "yes" ; then
a0b9e27f 20862 cat >> confdefs.h <<\EOF
698dcdb6 20863#define wxUSE_XPM 1
a0b9e27f 20864EOF
698dcdb6
VZ
20865
20866fi
20867
658974ae 20868if test "$wxUSE_ICO_CUR" = "yes" ; then
a0b9e27f 20869 cat >> confdefs.h <<\EOF
658974ae 20870#define wxUSE_ICO_CUR 1
a0b9e27f 20871EOF
658974ae
VS
20872
20873fi
20874
a72a4bfa
VS
20875if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20876 LIBS=" -lunicows $LIBS"
20877fi
20878
8284b0c5 20879
1e6feb95 20880if test "$wxUSE_CHOICEDLG" = "yes"; then
a0b9e27f 20881 cat >> confdefs.h <<\EOF
1e6feb95 20882#define wxUSE_CHOICEDLG 1
a0b9e27f 20883EOF
1e6feb95
VZ
20884
20885fi
20886
20887if test "$wxUSE_COLOURDLG" = "yes"; then
a0b9e27f 20888 cat >> confdefs.h <<\EOF
1e6feb95 20889#define wxUSE_COLOURDLG 1
a0b9e27f 20890EOF
1e6feb95
VZ
20891
20892fi
20893
20894if test "$wxUSE_FILEDLG" = "yes"; then
a0b9e27f 20895 cat >> confdefs.h <<\EOF
1e6feb95 20896#define wxUSE_FILEDLG 1
a0b9e27f 20897EOF
1e6feb95
VZ
20898
20899fi
20900
8db37e06 20901if test "$wxUSE_FINDREPLDLG" = "yes"; then
a0b9e27f 20902 cat >> confdefs.h <<\EOF
8db37e06 20903#define wxUSE_FINDREPLDLG 1
a0b9e27f 20904EOF
8db37e06
VZ
20905
20906fi
20907
1e6feb95 20908if test "$wxUSE_FONTDLG" = "yes"; then
a0b9e27f 20909 cat >> confdefs.h <<\EOF
1e6feb95 20910#define wxUSE_FONTDLG 1
a0b9e27f 20911EOF
1e6feb95
VZ
20912
20913fi
20914
20915if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 20916 if test "$wxUSE_TREECTRL" != "yes"; then
a0b9e27f 20917 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 20918 else
a0b9e27f 20919 cat >> confdefs.h <<\EOF
1e6feb95 20920#define wxUSE_DIRDLG 1
a0b9e27f 20921EOF
1e6feb95 20922
1e6feb95
VZ
20923 fi
20924fi
20925
20926if test "$wxUSE_MSGDLG" = "yes"; then
a0b9e27f 20927 cat >> confdefs.h <<\EOF
1e6feb95 20928#define wxUSE_MSGDLG 1
a0b9e27f 20929EOF
1e6feb95
VZ
20930
20931fi
20932
20933if test "$wxUSE_NUMBERDLG" = "yes"; then
a0b9e27f 20934 cat >> confdefs.h <<\EOF
1e6feb95 20935#define wxUSE_NUMBERDLG 1
a0b9e27f 20936EOF
1e6feb95
VZ
20937
20938fi
20939
20940if test "$wxUSE_PROGRESSDLG" = "yes"; then
20941 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 20942 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
1e6feb95 20943 else
a0b9e27f 20944 cat >> confdefs.h <<\EOF
1e6feb95 20945#define wxUSE_PROGRESSDLG 1
a0b9e27f 20946EOF
1e6feb95
VZ
20947
20948 fi
20949fi
20950
cbca9943 20951if test "$wxUSE_SPLASH" = "yes"; then
a0b9e27f 20952 cat >> confdefs.h <<\EOF
cbca9943 20953#define wxUSE_SPLASH 1
a0b9e27f 20954EOF
cbca9943
VZ
20955
20956fi
20957
1e6feb95
VZ
20958if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20959 if test "$wxUSE_CONSTRAINTS" != "yes"; then
a0b9e27f 20960 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
1e6feb95 20961 else
a0b9e27f 20962 cat >> confdefs.h <<\EOF
1e6feb95 20963#define wxUSE_STARTUP_TIPS 1
a0b9e27f 20964EOF
1e6feb95 20965
7b4a847f
RR
20966 fi
20967fi
579d8138 20968
8284b0c5 20969if test "$wxUSE_TEXTDLG" = "yes"; then
a0b9e27f 20970 cat >> confdefs.h <<\EOF
8284b0c5 20971#define wxUSE_TEXTDLG 1
a0b9e27f 20972EOF
8284b0c5
MB
20973
20974fi
20975
20976if test "$wxUSE_WIZARDDLG" = "yes"; then
a0b9e27f 20977 cat >> confdefs.h <<\EOF
8284b0c5 20978#define wxUSE_WIZARDDLG 1
a0b9e27f 20979EOF
8284b0c5
MB
20980
20981 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20982fi
20983
20984
20985if test "$cross_compiling" = "yes"; then
20986 OSINFO="\"$host\""
20987else
20988 OSINFO=`uname -s -r -m`
20989 OSINFO="\"$OSINFO\""
20990fi
20991
a0b9e27f 20992cat >> confdefs.h <<EOF
8284b0c5 20993#define WXWIN_OS_DESCRIPTION $OSINFO
a0b9e27f 20994EOF
8284b0c5
MB
20995
20996
20997
20998if test "x$prefix" != "xNONE"; then
20999 wxPREFIX=$prefix
21000else
21001 wxPREFIX=$ac_default_prefix
21002fi
21003
a0b9e27f 21004cat >> confdefs.h <<EOF
8284b0c5 21005#define wxINSTALL_PREFIX "$wxPREFIX"
a0b9e27f 21006EOF
8284b0c5
MB
21007
21008
21009
21010
21011
21012if test "$wxUSE_MAC" = 1 ; then
21013 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21014fi
21015
21016
21017LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
21018
21019if test "$wxUSE_GUI" = "yes"; then
21020
21021 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
21022
a0b9e27f 21023
8284b0c5
MB
21024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
21025 drawing dynamic erase event exec font image \
21026 minimal propsize rotate widgets"
21027
21028 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
21029else
21030 SAMPLES_SUBDIRS="console"
21031fi
21032
21033
21034INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
21035-I\${top_srcdir}/include \
21036$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
21037$TOOLKIT_INCLUDE"
21038
21039if test "$wxUSE_GTK" = 1; then
21040 WXCONFIG_INCLUDE=
21041else
21042 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
21043fi
21044
21045if test "$GXX" = yes ; then
21046 CXXWARNINGS="-Wall"
a0b9e27f 21047
8284b0c5
MB
21048 if test "$wxUSE_NO_DEPS" = "no" ; then
21049 CFLAGS="-MMD $CFLAGS"
21050 CXXFLAGS="-MMD $CXXFLAGS"
21051 fi
21052fi
21053
21054EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
21055
21056CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
21057CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
21058LIBS=`echo $LIBS | sed 's/ \+/ /g'`
21059
21060LDFLAGS="$LDFLAGS $PROFILE"
21061
21062SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
2f51a9ec
GD
21131
21132
21133
21134
f6bcfd97 21135
dad6c0ea 21136
caa2c79b 21137
3711412e 21138
1e6feb95
VZ
21139
21140
885d4bf5
VS
21141
21142
21143
21144
9b695262
VZ
21145
21146
62d0491b 21147
ef7f2189 21148
40f7145c 21149
3bd8fb5f 21150
10f2d63a 21151
a0b9e27f
MB
21152
21153echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
a85030bd 21154echo "configure:21155: checking whether ${MAKE-make} sets \${MAKE}" >&5
a0b9e27f
MB
21155set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
21156if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
21157 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 21158else
a0b9e27f 21159 cat > conftestmake <<\EOF
10f2d63a
VZ
21160all:
21161 @echo 'ac_maketemp="${MAKE}"'
a0b9e27f 21162EOF
10f2d63a 21163# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a0b9e27f 21164eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
21165if test -n "$ac_maketemp"; then
21166 eval ac_cv_prog_make_${ac_make}_set=yes
21167else
21168 eval ac_cv_prog_make_${ac_make}_set=no
21169fi
a0b9e27f 21170rm -f conftestmake
10f2d63a
VZ
21171fi
21172if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a0b9e27f 21173 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
21174 SET_MAKE=
21175else
a0b9e27f 21176 echo "$ac_t""no" 1>&6
10f2d63a
VZ
21177 SET_MAKE="MAKE=${MAKE-make}"
21178fi
21179
8284b0c5 21180
3a922bb4
RL
21181if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
21182 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 21183fi
665bbe97 21184
8284b0c5 21185
10f2d63a 21186
57973b9c
VZ
21187wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
21188wx_cv_if_gnu_make=$IF_GNU_MAKE
21189wx_cv_path_ifs=$PATH_IFS
21190wx_cv_program_ext=$PROGRAM_EXT
21191wx_cv_target_library=$WX_TARGET_LIBRARY
21192wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
21193wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
21194export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
21195 wx_cv_path_ifs wx_cv_program_ext \
21196 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
21197
a0b9e27f 21198subdirs="demos samples utils contrib"
8284b0c5 21199
10f2d63a 21200
a0b9e27f
MB
21201trap '' 1 2 15
21202cat > confcache <<\EOF
10f2d63a
VZ
21203# This file is a shell script that caches the results of configure
21204# tests run on this system so they can be shared between configure
a0b9e27f
MB
21205# scripts and configure runs. It is not useful on other systems.
21206# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 21207#
a0b9e27f
MB
21208# By default, configure uses ./config.cache as the cache file,
21209# creating it if it does not exist already. You can give configure
21210# the --cache-file=FILE option to use a different cache file; that is
21211# what configure does when it calls configure scripts in
21212# subdirectories, so they share the cache.
21213# Giving --cache-file=/dev/null disables caching, for debugging configure.
21214# config.status only pays attention to the cache file if you give it the
21215# --recheck option to rerun configure.
10f2d63a 21216#
a0b9e27f 21217EOF
10f2d63a
VZ
21218# The following way of writing the cache mishandles newlines in values,
21219# but we know of no workaround that is simple, portable, and efficient.
21220# So, don't put newlines in cache variables' values.
21221# Ultrix sh set writes to stderr and can't be redirected directly,
21222# and sets the high bit in the cache file unless we assign to the vars.
a0b9e27f
MB
21223(set) 2>&1 |
21224 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21225 *ac_space=\ *)
21226 # `set' does not quote correctly, so add quotes (double-quote substitution
21227 # turns \\\\ into \\, and sed turns \\ into \).
21228 sed -n \
21229 -e "s/'/'\\\\''/g" \
21230 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21231 ;;
21232 *)
21233 # `set' quotes correctly as required by POSIX, so do not add quotes.
21234 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21235 ;;
21236 esac >> confcache
21237if cmp -s $cache_file confcache; then
21238 :
21239else
10f2d63a 21240 if test -w $cache_file; then
a0b9e27f
MB
21241 echo "updating cache $cache_file"
21242 cat confcache > $cache_file
10f2d63a
VZ
21243 else
21244 echo "not updating unwritable cache $cache_file"
21245 fi
21246fi
21247rm -f confcache
21248
a0b9e27f
MB
21249trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
21250
10f2d63a
VZ
21251test "x$prefix" = xNONE && prefix=$ac_default_prefix
21252# Let make expand exec_prefix.
21253test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21254
a0b9e27f
MB
21255# Any assignment to VPATH causes Sun make to only execute
21256# the first set of double-colon rules, so remove it if not needed.
21257# If there is a colon in the path, we need to keep it.
10f2d63a 21258if test "x$srcdir" = x.; then
a0b9e27f 21259 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
21260fi
21261
a0b9e27f 21262trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10f2d63a 21263
a0b9e27f 21264DEFS=-DHAVE_CONFIG_H
8284b0c5 21265
a0b9e27f 21266# Without the "./", some shells look in PATH for config.status.
247f5006 21267: ${CONFIG_STATUS=./config.status}
52127426 21268
a0b9e27f
MB
21269echo creating $CONFIG_STATUS
21270rm -f $CONFIG_STATUS
21271cat > $CONFIG_STATUS <<EOF
21272#! /bin/sh
21273# Generated automatically by configure.
21274# Run this file to recreate the current configuration.
21275# This directory was configured as follows,
21276# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
247f5006 21277#
a0b9e27f 21278# $0 $ac_configure_args
247f5006 21279#
a0b9e27f
MB
21280# Compiler output produced by configure, useful for debugging
21281# configure, is in ./config.log if it exists.
247f5006 21282
a0b9e27f
MB
21283ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
21284for ac_option
247f5006 21285do
a0b9e27f
MB
21286 case "\$ac_option" in
21287 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21288 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21289 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21290 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21291 echo "$CONFIG_STATUS generated by autoconf version 2.13"
21292 exit 0 ;;
21293 -help | --help | --hel | --he | --h)
21294 echo "\$ac_cs_usage"; exit 0 ;;
21295 *) echo "\$ac_cs_usage"; exit 1 ;;
247f5006
VZ
21296 esac
21297done
21298
a0b9e27f
MB
21299ac_given_srcdir=$srcdir
21300ac_given_INSTALL="$INSTALL"
247f5006 21301
a0b9e27f
MB
21302trap 'rm -fr `echo "
21303 wx-config
21304 src/make.env
21305 src/makeprog.env
21306 src/makelib.env
21307 Makefile
21308 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21309EOF
21310cat >> $CONFIG_STATUS <<EOF
247f5006 21311
a0b9e27f
MB
21312# Protect against being on the right side of a sed subst in config.status.
21313sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21314 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21315$ac_vpsub
21316$extrasub
21317s%@SHELL@%$SHELL%g
21318s%@CFLAGS@%$CFLAGS%g
21319s%@CPPFLAGS@%$CPPFLAGS%g
21320s%@CXXFLAGS@%$CXXFLAGS%g
21321s%@FFLAGS@%$FFLAGS%g
21322s%@DEFS@%$DEFS%g
21323s%@LDFLAGS@%$LDFLAGS%g
21324s%@LIBS@%$LIBS%g
21325s%@exec_prefix@%$exec_prefix%g
21326s%@prefix@%$prefix%g
21327s%@program_transform_name@%$program_transform_name%g
21328s%@bindir@%$bindir%g
21329s%@sbindir@%$sbindir%g
21330s%@libexecdir@%$libexecdir%g
21331s%@datadir@%$datadir%g
21332s%@sysconfdir@%$sysconfdir%g
21333s%@sharedstatedir@%$sharedstatedir%g
21334s%@localstatedir@%$localstatedir%g
21335s%@libdir@%$libdir%g
21336s%@includedir@%$includedir%g
21337s%@oldincludedir@%$oldincludedir%g
21338s%@infodir@%$infodir%g
21339s%@mandir@%$mandir%g
21340s%@host@%$host%g
21341s%@host_alias@%$host_alias%g
21342s%@host_cpu@%$host_cpu%g
21343s%@host_vendor@%$host_vendor%g
21344s%@host_os@%$host_os%g
21345s%@target@%$target%g
21346s%@target_alias@%$target_alias%g
21347s%@target_cpu@%$target_cpu%g
21348s%@target_vendor@%$target_vendor%g
21349s%@target_os@%$target_os%g
21350s%@build@%$build%g
21351s%@build_alias@%$build_alias%g
21352s%@build_cpu@%$build_cpu%g
21353s%@build_vendor@%$build_vendor%g
21354s%@build_os@%$build_os%g
21355s%@CC@%$CC%g
21356s%@CPP@%$CPP%g
21357s%@CXX@%$CXX%g
21358s%@RANLIB@%$RANLIB%g
21359s%@AR@%$AR%g
21360s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21361s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21362s%@INSTALL_DATA@%$INSTALL_DATA%g
21363s%@STRIP@%$STRIP%g
21364s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
21365s%@YACC@%$YACC%g
21366s%@LEX@%$LEX%g
21367s%@LEXLIB@%$LEXLIB%g
21368s%@LN_S@%$LN_S%g
21369s%@CXXCPP@%$CXXCPP%g
21370s%@PKG_CONFIG@%$PKG_CONFIG%g
21371s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21372s%@GTK_LIBS@%$GTK_LIBS%g
21373s%@GTK_CONFIG@%$GTK_CONFIG%g
21374s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
21375s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
21376s%@X_CFLAGS@%$X_CFLAGS%g
21377s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21378s%@X_LIBS@%$X_LIBS%g
21379s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
21380s%@AIX_CXX_LD@%$AIX_CXX_LD%g
21381s%@RESCOMP@%$RESCOMP%g
21382s%@DEREZ@%$DEREZ%g
21383s%@LIBICONV@%$LIBICONV%g
21384s%@LEX_STEM@%$LEX_STEM%g
21385s%@PATH_IFS@%$PATH_IFS%g
21386s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21387s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21388s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
21389s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21390s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
21391s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
21392s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21393s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21394s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
21395s%@PROGRAM_EXT@%$PROGRAM_EXT%g
21396s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21397s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
21398s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21399s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21400s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
21401s%@WX_ALL@%$WX_ALL%g
21402s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21403s%@SHARED_LD@%$SHARED_LD%g
21404s%@PIC_FLAG@%$PIC_FLAG%g
21405s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21406s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
21407s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21408s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
21409s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21410s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21411s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21412s%@USE_GUI@%$USE_GUI%g
21413s%@AFMINSTALL@%$AFMINSTALL%g
21414s%@TOOLKIT@%$TOOLKIT%g
21415s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
21416s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
21417s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21418s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
21419s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
21420s%@cross_compiling@%$cross_compiling%g
21421s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21422s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
21423s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21424s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
21425s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21426s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
21427s%@ALL_OBJECTS@%$ALL_OBJECTS%g
21428s%@ALL_HEADERS@%$ALL_HEADERS%g
21429s%@ALL_SOURCES@%$ALL_SOURCES%g
21430s%@GUIDIST@%$GUIDIST%g
21431s%@PORT_FILES@%$PORT_FILES%g
21432s%@DISTDIR@%$DISTDIR%g
a0b9e27f
MB
21433s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
21434s%@LDFLAGS_GL@%$LDFLAGS_GL%g
21435s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
21436s%@OPENGL_LIBS@%$OPENGL_LIBS%g
21437s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
21438s%@EXTRADEFS@%$EXTRADEFS%g
21439s%@RESFLAGS@%$RESFLAGS%g
21440s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
21441s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21442s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
21443s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
21444s%@LIBWXMACRES@%$LIBWXMACRES%g
21445s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
21446s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
21447s%@DLLTOOL@%$DLLTOOL%g
21448s%@AS@%$AS%g
21449s%@NM@%$NM%g
21450s%@LD@%$LD%g
21451s%@MAKEINFO@%$MAKEINFO%g
21452s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
21453s%@SET_MAKE@%$SET_MAKE%g
21454s%@subdirs@%$subdirs%g
247f5006 21455
247f5006 21456CEOF
a0b9e27f 21457EOF
247f5006 21458
a0b9e27f
MB
21459cat >> $CONFIG_STATUS <<\EOF
21460
21461# Split the substitutions into bite-sized pieces for seds with
21462# small command number limits, like on Digital OSF/1 and HP-UX.
21463ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21464ac_file=1 # Number of current file.
21465ac_beg=1 # First line for current file.
21466ac_end=$ac_max_sed_cmds # Line after last line for current file.
21467ac_more_lines=:
21468ac_sed_cmds=""
21469while $ac_more_lines; do
21470 if test $ac_beg -gt 1; then
21471 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21472 else
21473 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21474 fi
21475 if test ! -s conftest.s$ac_file; then
21476 ac_more_lines=false
21477 rm -f conftest.s$ac_file
21478 else
21479 if test -z "$ac_sed_cmds"; then
21480 ac_sed_cmds="sed -f conftest.s$ac_file"
247f5006 21481 else
a0b9e27f 21482 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
247f5006 21483 fi
a0b9e27f
MB
21484 ac_file=`expr $ac_file + 1`
21485 ac_beg=$ac_end
21486 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 21487 fi
a0b9e27f
MB
21488done
21489if test -z "$ac_sed_cmds"; then
21490 ac_sed_cmds=cat
21491fi
21492EOF
10f2d63a 21493
a0b9e27f 21494cat >> $CONFIG_STATUS <<EOF
10f2d63a 21495
a0b9e27f
MB
21496CONFIG_FILES=\${CONFIG_FILES-"wx-config
21497 src/make.env
21498 src/makeprog.env
21499 src/makelib.env
21500 Makefile
21501 "}
21502EOF
21503cat >> $CONFIG_STATUS <<\EOF
21504for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21505 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21506 case "$ac_file" in
21507 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21508 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21509 *) ac_file_in="${ac_file}.in" ;;
10f2d63a 21510 esac
247f5006 21511
a0b9e27f 21512 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
247f5006 21513
a0b9e27f
MB
21514 # Remove last slash and all that follows it. Not all systems have dirname.
21515 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21516 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21517 # The file is in a subdirectory.
21518 test ! -d "$ac_dir" && mkdir "$ac_dir"
21519 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21520 # A "../" for each directory in $ac_dir_suffix.
21521 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21522 else
21523 ac_dir_suffix= ac_dots=
21524 fi
247f5006 21525
a0b9e27f
MB
21526 case "$ac_given_srcdir" in
21527 .) srcdir=.
21528 if test -z "$ac_dots"; then top_srcdir=.
21529 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21530 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
247f5006 21531 *) # Relative path.
a0b9e27f
MB
21532 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21533 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8284b0c5 21534 esac
10f2d63a 21535
a0b9e27f
MB
21536 case "$ac_given_INSTALL" in
21537 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21538 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21539 esac
247f5006 21540
a0b9e27f
MB
21541 echo creating "$ac_file"
21542 rm -f "$ac_file"
21543 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21544 case "$ac_file" in
21545 *Makefile*) ac_comsub="1i\\
21546# $configure_input" ;;
21547 *) ac_comsub= ;;
21548 esac
247f5006 21549
a0b9e27f
MB
21550 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21551 sed -e "$ac_comsub
21552s%@configure_input@%$configure_input%g
21553s%@srcdir@%$srcdir%g
21554s%@top_srcdir@%$top_srcdir%g
21555s%@INSTALL@%$INSTALL%g
21556" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21557fi; done
21558rm -f conftest.s*
10f2d63a
VZ
21559
21560# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21561# NAME is the cpp macro being defined and VALUE is the value it is being given.
21562#
21563# ac_d sets the value in "#define NAME VALUE" lines.
a0b9e27f
MB
21564ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21565ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21566ac_dC='\3'
21567ac_dD='%g'
21568# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21569ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21570ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 21571ac_uC=' '
a0b9e27f
MB
21572ac_uD='\4%g'
21573# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21574ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21575ac_eB='$%\1#\2define\3'
21576ac_eC=' '
21577ac_eD='%g'
21578
21579if test "${CONFIG_HEADERS+set}" != set; then
21580EOF
21581cat >> $CONFIG_STATUS <<EOF
21582 CONFIG_HEADERS="setup.h:setup.h.in"
21583EOF
21584cat >> $CONFIG_STATUS <<\EOF
21585fi
21586for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 21587 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
a0b9e27f
MB
21588 case "$ac_file" in
21589 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21590 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21591 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21592 esac
21593
a0b9e27f
MB
21594 echo creating $ac_file
21595
21596 rm -f conftest.frag conftest.in conftest.out
21597 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21598 cat $ac_file_inputs > conftest.in
21599
21600EOF
21601
21602# Transform confdefs.h into a sed script conftest.vals that substitutes
21603# the proper values into config.h.in to produce config.h. And first:
21604# Protect against being on the right side of a sed subst in config.status.
21605# Protect against being in an unquoted here document in config.status.
21606rm -f conftest.vals
21607cat > conftest.hdr <<\EOF
21608s/[\\&%]/\\&/g
21609s%[\\$`]%\\&%g
21610s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21611s%ac_d%ac_u%gp
21612s%ac_u%ac_e%gp
21613EOF
21614sed -n -f conftest.hdr confdefs.h > conftest.vals
21615rm -f conftest.hdr
10f2d63a
VZ
21616
21617# This sed command replaces #undef with comments. This is necessary, for
21618# example, in the case of _POSIX_SOURCE, which is predefined and required
21619# on some systems where configure will not decide to define it.
a0b9e27f
MB
21620cat >> conftest.vals <<\EOF
21621s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21622EOF
21623
21624# Break up conftest.vals because some shells have a limit on
21625# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
21626
21627rm -f conftest.tail
a0b9e27f 21628while :
10f2d63a 21629do
a0b9e27f
MB
21630 ac_lines=`grep -c . conftest.vals`
21631 # grep -c gives empty output for an empty file on some AIX systems.
21632 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21633 # Write a limited-size here document to conftest.frag.
21634 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21635 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 21636 echo 'CEOF
a0b9e27f
MB
21637 sed -f conftest.frag conftest.in > conftest.out
21638 rm -f conftest.in
21639 mv conftest.out conftest.in
21640' >> $CONFIG_STATUS
21641 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21642 rm -f conftest.vals
21643 mv conftest.tail conftest.vals
10f2d63a 21644done
a0b9e27f
MB
21645rm -f conftest.vals
21646
21647cat >> $CONFIG_STATUS <<\EOF
21648 rm -f conftest.frag conftest.h
21649 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21650 cat conftest.in >> conftest.h
21651 rm -f conftest.in
21652 if cmp -s $ac_file conftest.h 2>/dev/null; then
21653 echo "$ac_file is unchanged"
21654 rm -f conftest.h
10f2d63a 21655 else
a0b9e27f
MB
21656 # Remove last slash and all that follows it. Not all systems have dirname.
21657 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21658 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21659 # The file is in a subdirectory.
21660 test ! -d "$ac_dir" && mkdir "$ac_dir"
247f5006 21661 fi
a0b9e27f
MB
21662 rm -f $ac_file
21663 mv conftest.h $ac_file
247f5006 21664 fi
a0b9e27f
MB
21665fi; done
21666
21667EOF
21668cat >> $CONFIG_STATUS <<EOF
21669
21670 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21671 LN_S="${LN_S}"
21672
21673
21674EOF
21675cat >> $CONFIG_STATUS <<\EOF
10f2d63a 21676
652d930d 21677 if test ! -h wx-config; then
991a5759 21678 chmod +x wx-config
3a922bb4
RL
21679 mv wx-config wx${TOOLCHAIN_NAME}-config
21680 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 21681 fi
665bbe97 21682
00cf1208
RR
21683 if test ! -d lib; then
21684 mkdir lib
21685 fi
21686 if test ! -d lib/wx; then
21687 mkdir lib/wx
21688 fi
21689 if test ! -d lib/wx/include; then
21690 mkdir lib/wx/include
21691 fi
3a922bb4
RL
21692 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21693 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 21694 fi
3a922bb4
RL
21695 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21696 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
21697 fi
21698 if test -f setup.h; then
3a922bb4 21699 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 21700 fi
a0b9e27f
MB
21701
21702exit 0
21703EOF
10f2d63a 21704chmod +x $CONFIG_STATUS
a0b9e27f
MB
21705rm -fr confdefs* $ac_clean_files
21706test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 21707
2224580a
VZ
21708if test "$no_recursion" != yes; then
21709
21710 # Remove --cache-file and --srcdir arguments so they do not pile up.
21711 ac_sub_configure_args=
21712 ac_prev=
21713 for ac_arg in $ac_configure_args; do
21714 if test -n "$ac_prev"; then
21715 ac_prev=
21716 continue
21717 fi
a0b9e27f 21718 case "$ac_arg" in
2224580a
VZ
21719 -cache-file | --cache-file | --cache-fil | --cache-fi \
21720 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21721 ac_prev=cache_file ;;
21722 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
a0b9e27f 21723 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
21724 ;;
21725 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21726 ac_prev=srcdir ;;
21727 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21728 ;;
21729 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21730 esac
21731 done
21732
a0b9e27f 21733 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
21734
21735 # Do not complain, so a configure script can configure whichever
21736 # parts of a large source tree are present.
a0b9e27f
MB
21737 if test ! -d $srcdir/$ac_config_dir; then
21738 continue
21739 fi
2224580a 21740
a0b9e27f 21741 echo configuring in $ac_config_dir
2224580a 21742
a0b9e27f
MB
21743 case "$srcdir" in
21744 .) ;;
21745 *)
21746 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21747 else
21748 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21749 fi
21750 ;;
21751 esac
2224580a 21752
a0b9e27f
MB
21753 ac_popdir=`pwd`
21754 cd $ac_config_dir
247f5006 21755
a0b9e27f
MB
21756 # A "../" for each directory in /$ac_config_dir.
21757 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
247f5006 21758
a0b9e27f
MB
21759 case "$srcdir" in
21760 .) # No --srcdir option. We are building in place.
21761 ac_sub_srcdir=$srcdir ;;
21762 /*) # Absolute path.
21763 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21764 *) # Relative path.
21765 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21766 esac
2224580a
VZ
21767
21768 # Check for guested configure; otherwise get Cygnus style configure.
a0b9e27f
MB
21769 if test -f $ac_sub_srcdir/configure; then
21770 ac_sub_configure=$ac_sub_srcdir/configure
21771 elif test -f $ac_sub_srcdir/configure.in; then
2224580a
VZ
21772 ac_sub_configure=$ac_configure
21773 else
a0b9e27f 21774 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
21775 ac_sub_configure=
21776 fi
21777
21778 # The recursion is here.
21779 if test -n "$ac_sub_configure"; then
a0b9e27f 21780
2224580a 21781 # Make the cache file name correct relative to the subdirectory.
a0b9e27f
MB
21782 case "$cache_file" in
21783 /*) ac_sub_cache_file=$cache_file ;;
2224580a 21784 *) # Relative path.
a0b9e27f 21785 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 21786 esac
a0b9e27f
MB
21787 case "$ac_given_INSTALL" in
21788 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21789 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21790 esac
2224580a 21791
a0b9e27f 21792 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 21793 # The eval makes quoting arguments work.
a0b9e27f
MB
21794 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21795 then :
21796 else
21797 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21798 fi
2224580a
VZ
21799 fi
21800
21801 cd $ac_popdir
21802 done
21803fi
21804
8284b0c5 21805