]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
698dcdb6 | 3 | # From configure.in Id: configure.in |
703e0a69 VZ |
4 | |
5 | ||
6 | ||
7 | ||
90dd450c VZ |
8 | |
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
703e0a69 | 16 | |
703e0a69 VZ |
17 | |
18 | ||
1e487827 | 19 | |
1e487827 | 20 | |
698dcdb6 VZ |
21 | |
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 | ||
48 | ||
b040e242 VS |
49 | |
50 | ||
51 | ||
986ecc86 VZ |
52 | |
53 | ||
54 | ||
b040e242 VS |
55 | |
56 | ||
57 | ||
58 | ||
9e691f46 VZ |
59 | # Configure paths for GTK+ |
60 | # Owen Taylor 1997-2001 | |
b040e242 VS |
61 | |
62 | ||
63 | ||
64 | # Configure paths for GTK+ | |
65 | # Owen Taylor 97-11-3 | |
698dcdb6 | 66 | |
698dcdb6 VZ |
67 | |
68 | ||
69 | # Guess values for system-dependent variables and create Makefiles. | |
70 | # Generated automatically using autoconf version 2.13 | |
71 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
72 | # | |
73 | # This configure script is free software; the Free Software Foundation | |
74 | # gives unlimited permission to copy, distribute and modify it. | |
75 | ||
76 | # Defaults: | |
77 | ac_help= | |
78 | ac_default_prefix=/usr/local | |
79 | # Any additions from configure.in: | |
80 | ac_help="$ac_help | |
8168de4c | 81 | --enable-gui use GUI classes" |
1e6feb95 | 82 | ac_help="$ac_help |
8168de4c | 83 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
84 | ac_help="$ac_help |
85 | --with-gtk use GTK+" | |
86 | ac_help="$ac_help | |
87 | --with-motif use Motif/Lesstif" | |
88 | ac_help="$ac_help | |
89 | --with-mac use Mac OS X" | |
90 | ac_help="$ac_help | |
91 | --with-wine use WINE" | |
92 | ac_help="$ac_help | |
77e13408 | 93 | --with-msw use MS-Windows" |
698dcdb6 VZ |
94 | ac_help="$ac_help |
95 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 96 | ac_help="$ac_help |
b3e8d00a | 97 | --with-mgl use SciTech MGL" |
1725144d RR |
98 | ac_help="$ac_help |
99 | --with-microwin use MicroWindows" | |
f79bd02d JS |
100 | ac_help="$ac_help |
101 | --with-x11 use X11" | |
d8356fa3 VZ |
102 | ac_help="$ac_help |
103 | --enable-nanox use NanoX" | |
698dcdb6 | 104 | ac_help="$ac_help |
8168de4c | 105 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 110 | ac_help="$ac_help |
8168de4c | 111 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 114 | ac_help="$ac_help |
d0e9b150 | 115 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" |
3e44f09d VZ |
116 | ac_help="$ac_help |
117 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 120 | ac_help="$ac_help |
8168de4c | 121 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 122 | ac_help="$ac_help |
8168de4c | 123 | --enable-shared create shared library code" |
698dcdb6 | 124 | ac_help="$ac_help |
3a922bb4 | 125 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 126 | ac_help="$ac_help |
8168de4c | 127 | --enable-optimise create optimised code" |
698dcdb6 | 128 | ac_help="$ac_help |
8168de4c | 129 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
130 | ac_help="$ac_help |
131 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
698dcdb6 | 132 | ac_help="$ac_help |
8168de4c | 133 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 134 | ac_help="$ac_help |
8168de4c | 135 | --enable-debug_info create code with debugging information" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 138 | ac_help="$ac_help |
8168de4c | 139 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 140 | ac_help="$ac_help |
8168de4c | 141 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 142 | ac_help="$ac_help |
8168de4c | 143 | --enable-profile create code with profiling information" |
698dcdb6 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 146 | ac_help="$ac_help |
b3e8d00a | 147 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 148 | ac_help="$ac_help |
8168de4c | 149 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 150 | ac_help="$ac_help |
8168de4c | 151 | --enable-no_deps create code without dependency information" |
54276ccf | 152 | ac_help="$ac_help |
b3e8d00a | 153 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 154 | ac_help="$ac_help |
0c9a1c32 | 155 | --disable-compat22 disable wxWindows 2.2 compatibility" |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-intl use internationalization system" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-config use wxConfig (and derived) classes" |
a1622950 VZ |
160 | ac_help="$ac_help |
161 | --enable-protocols use wxProtocol and derived classes" | |
162 | ac_help="$ac_help | |
163 | --enable-ftp use wxFTP (requires wxProtocol" | |
164 | ac_help="$ac_help | |
165 | --enable-http use wxHTTP (requires wxProtocol" | |
166 | ac_help="$ac_help | |
167 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
698dcdb6 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-sockets use socket/network classes" |
698dcdb6 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-datetime use wxDateTime class" |
1e6feb95 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 178 | ac_help="$ac_help |
8168de4c | 179 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-dialupman use dialup network classes" |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-timer use wxTimer class" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-wave use wxWave class" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-fraction use wxFraction class" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-dynlib use wxLibrary class for DLL loading" |
0b9ab0bd RL |
192 | ac_help="$ac_help |
193 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
698dcdb6 | 194 | ac_help="$ac_help |
8168de4c | 195 | --enable-longlong use wxLongLong class" |
698dcdb6 | 196 | ac_help="$ac_help |
8168de4c | 197 | --enable-geometry use geometry class" |
698dcdb6 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-log use logging system" |
698dcdb6 | 200 | ac_help="$ac_help |
8168de4c | 201 | --enable-streams use wxStream etc classes" |
698dcdb6 | 202 | ac_help="$ac_help |
8168de4c | 203 | --enable-file use wxFile classes" |
698dcdb6 | 204 | ac_help="$ac_help |
8168de4c | 205 | --enable-ffile use wxFFile classes" |
1e6feb95 | 206 | ac_help="$ac_help |
a3a584a7 VZ |
207 | --enable-textbuf use wxTextBuffer class" |
208 | ac_help="$ac_help | |
209 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-unicode compile wxString with Unicode support" |
a72a4bfa VS |
214 | ac_help="$ac_help |
215 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 232 | ac_help="$ac_help |
69d27ff7 | 233 | --enable-mimetype use wxMimeTypesManager" |
3e44f09d | 234 | ac_help="$ac_help |
b3e8d00a | 235 | --enable-sysoptions use wxSystemOptions" |
4cdb0ab0 VS |
236 | ac_help="$ac_help |
237 | --enable-url use wxURL class" | |
238 | ac_help="$ac_help | |
239 | --enable-protocol use wxProtocol class" | |
240 | ac_help="$ac_help | |
241 | --enable-protocol-http HTTP support in wxProtocol" | |
242 | ac_help="$ac_help | |
243 | --enable-protocol-ftp FTP support in wxProtocol" | |
244 | ac_help="$ac_help | |
245 | --enable-protocol-file FILE support in wxProtocol" | |
1e6feb95 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-threads use threads" |
698dcdb6 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-docview use document view architecture" |
698dcdb6 | 250 | ac_help="$ac_help |
3379ed37 | 251 | --enable-help use help subsystem" |
29fd3c0c VS |
252 | ac_help="$ac_help |
253 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
254 | ac_help="$ac_help |
255 | --enable-html use wxHTML sub-library" | |
256 | ac_help="$ac_help | |
257 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-constraints use layout-constraints system" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-printarch use printing architecture" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-loggui use standard GUI logger" |
1e6feb95 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-logwin use wxLogWindow" |
69d27ff7 MB |
268 | ac_help="$ac_help |
269 | --enable-logdialog use wxLogDialog" | |
1e6feb95 | 270 | ac_help="$ac_help |
8168de4c | 271 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-prologio use Prolog IO library" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-resources use wxWindows resources" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-metafile use win32 metafiles" |
698dcdb6 | 284 | ac_help="$ac_help |
24176f2c | 285 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-controls use all usual controls" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-accel use accelerators" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-button use wxButton class" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-caret use wxCaret class" |
1e6feb95 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-choice use wxChoice class" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-gauge use wxGauge class" |
698dcdb6 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-grid use wxGrid class" |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-imaglist use wxImageList class" |
698dcdb6 | 314 | ac_help="$ac_help |
8168de4c | 315 | --enable-listbox use wxListBox class" |
698dcdb6 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-notebook use wxNotebook class" |
24176f2c GD |
320 | ac_help="$ac_help |
321 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-sash use wxSashWindow class" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-slider use wxSlider class" |
698dcdb6 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-statline use wxStaticLine class" |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-stattext use wxStaticText class" |
1e6feb95 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 354 | ac_help="$ac_help |
8168de4c | 355 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 358 | ac_help="$ac_help |
8168de4c | 359 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 360 | ac_help="$ac_help |
8168de4c | 361 | --enable-treectrl use wxTreeCtrl class" |
9926e4a4 VZ |
362 | ac_help="$ac_help |
363 | --enable-tipwindow use wxTipWindow class" | |
9f41d601 RR |
364 | ac_help="$ac_help |
365 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 366 | ac_help="$ac_help |
b3e8d00a | 367 | --enable-commondlg use all common dialogs" |
698dcdb6 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 370 | ac_help="$ac_help |
8168de4c | 371 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 372 | ac_help="$ac_help |
8168de4c | 373 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
374 | ac_help="$ac_help |
375 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 376 | ac_help="$ac_help |
8168de4c | 377 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 378 | ac_help="$ac_help |
8168de4c | 379 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 380 | ac_help="$ac_help |
8168de4c | 381 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 382 | ac_help="$ac_help |
8168de4c | 383 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
384 | ac_help="$ac_help |
385 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 386 | ac_help="$ac_help |
8168de4c | 387 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 388 | ac_help="$ac_help |
8168de4c | 389 | --enable-tipdlg use startup tips" |
698dcdb6 | 390 | ac_help="$ac_help |
8168de4c | 391 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
392 | ac_help="$ac_help |
393 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 394 | ac_help="$ac_help |
8168de4c | 395 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 396 | ac_help="$ac_help |
8168de4c | 397 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 398 | ac_help="$ac_help |
8168de4c | 399 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 400 | ac_help="$ac_help |
8168de4c | 401 | --enable-splines use spline drawing code" |
698dcdb6 | 402 | ac_help="$ac_help |
8168de4c | 403 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 404 | ac_help="$ac_help |
8168de4c | 405 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 406 | ac_help="$ac_help |
b3e8d00a | 407 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 408 | ac_help="$ac_help |
8168de4c | 409 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
410 | ac_help="$ac_help |
411 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
412 | ac_help="$ac_help |
413 | --enable-palette use wxPalette class" | |
1e6feb95 | 414 | ac_help="$ac_help |
8168de4c | 415 | --enable-image use wxImage class" |
698dcdb6 | 416 | ac_help="$ac_help |
8168de4c | 417 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 418 | ac_help="$ac_help |
8168de4c | 419 | --enable-pcx use pcx images (PCX file format)" |
4b6b4dfc RR |
420 | ac_help="$ac_help |
421 | --enable-iff use iff images (IFF file format)" | |
698dcdb6 | 422 | ac_help="$ac_help |
8168de4c | 423 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 424 | ac_help="$ac_help |
8168de4c | 425 | --enable-xpm use xpm images (XPM file format)" |
658974ae VS |
426 | ac_help="$ac_help |
427 | --enable-icocur use Windows ICO and CUR formats" | |
90dd450c VZ |
428 | ac_help="$ac_help |
429 | --disable-largefile omit support for large files" | |
698dcdb6 | 430 | ac_help="$ac_help |
9e691f46 | 431 | --disable-gtktest do not try to compile and run a test GTK+ program" |
3f345b47 VZ |
432 | ac_help="$ac_help |
433 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
434 | ac_help="$ac_help | |
435 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
436 | ac_help="$ac_help | |
437 | --disable-gtktest Do not try to compile and run a test GTK program" | |
438 | ac_help="$ac_help | |
439 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
440 | ac_help="$ac_help | |
441 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
442 | ac_help="$ac_help | |
443 | --disable-gtktest Do not try to compile and run a test GTK program" | |
698dcdb6 VZ |
444 | ac_help="$ac_help |
445 | --with-x use the X Window System" | |
b040e242 VS |
446 | ac_help="$ac_help |
447 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
448 | |
449 | # Initialize some variables set by options. | |
450 | # The variables have the same names as the options, with | |
451 | # dashes changed to underlines. | |
698dcdb6 VZ |
452 | build=NONE |
453 | cache_file=./config.cache | |
10f2d63a | 454 | exec_prefix=NONE |
698dcdb6 | 455 | host=NONE |
10f2d63a | 456 | no_create= |
698dcdb6 | 457 | nonopt=NONE |
10f2d63a VZ |
458 | no_recursion= |
459 | prefix=NONE | |
460 | program_prefix=NONE | |
461 | program_suffix=NONE | |
462 | program_transform_name=s,x,x, | |
463 | silent= | |
464 | site= | |
465 | srcdir= | |
698dcdb6 | 466 | target=NONE |
10f2d63a VZ |
467 | verbose= |
468 | x_includes=NONE | |
469 | x_libraries=NONE | |
470 | bindir='${exec_prefix}/bin' | |
471 | sbindir='${exec_prefix}/sbin' | |
472 | libexecdir='${exec_prefix}/libexec' | |
473 | datadir='${prefix}/share' | |
474 | sysconfdir='${prefix}/etc' | |
475 | sharedstatedir='${prefix}/com' | |
476 | localstatedir='${prefix}/var' | |
477 | libdir='${exec_prefix}/lib' | |
478 | includedir='${prefix}/include' | |
479 | oldincludedir='/usr/include' | |
480 | infodir='${prefix}/info' | |
481 | mandir='${prefix}/man' | |
482 | ||
698dcdb6 VZ |
483 | # Initialize some other variables. |
484 | subdirs= | |
485 | MFLAGS= MAKEFLAGS= | |
486 | SHELL=${CONFIG_SHELL-/bin/sh} | |
487 | # Maximum number of lines to put in a shell here document. | |
488 | ac_max_here_lines=12 | |
10f2d63a VZ |
489 | |
490 | ac_prev= | |
491 | for ac_option | |
492 | do | |
698dcdb6 | 493 | |
10f2d63a VZ |
494 | # If the previous option needs an argument, assign it. |
495 | if test -n "$ac_prev"; then | |
496 | eval "$ac_prev=\$ac_option" | |
497 | ac_prev= | |
498 | continue | |
499 | fi | |
500 | ||
698dcdb6 VZ |
501 | case "$ac_option" in |
502 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
503 | *) ac_optarg= ;; | |
504 | esac | |
10f2d63a VZ |
505 | |
506 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
507 | ||
698dcdb6 | 508 | case "$ac_option" in |
10f2d63a VZ |
509 | |
510 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
511 | ac_prev=bindir ;; | |
512 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 513 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
514 | |
515 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 516 | ac_prev=build ;; |
10f2d63a | 517 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 518 | build="$ac_optarg" ;; |
10f2d63a VZ |
519 | |
520 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
521 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
522 | ac_prev=cache_file ;; | |
523 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
524 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 525 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
526 | |
527 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
528 | ac_prev=datadir ;; | |
529 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
530 | | --da=*) | |
698dcdb6 | 531 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
532 | |
533 | -disable-* | --disable-*) | |
698dcdb6 | 534 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 535 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
536 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
537 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
538 | fi | |
539 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
540 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
541 | |
542 | -enable-* | --enable-*) | |
698dcdb6 | 543 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 544 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
545 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
546 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
547 | fi | |
548 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
549 | case "$ac_option" in | |
550 | *=*) ;; | |
10f2d63a VZ |
551 | *) ac_optarg=yes ;; |
552 | esac | |
698dcdb6 | 553 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
554 | |
555 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
556 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
557 | | --exec | --exe | --ex) | |
558 | ac_prev=exec_prefix ;; | |
559 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
560 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
561 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 562 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
563 | |
564 | -gas | --gas | --ga | --g) | |
565 | # Obsolete; use --with-gas. | |
566 | with_gas=yes ;; | |
567 | ||
698dcdb6 VZ |
568 | -help | --help | --hel | --he) |
569 | # Omit some internal or obsolete options to make the list less imposing. | |
570 | # This message is too long to be a string in the A/UX 3.1 sh. | |
571 | cat << EOF | |
572 | Usage: configure [options] [host] | |
573 | Options: [defaults in brackets after descriptions] | |
574 | Configuration: | |
575 | --cache-file=FILE cache test results in FILE | |
576 | --help print this message | |
577 | --no-create do not create output files | |
578 | --quiet, --silent do not print \`checking...' messages | |
579 | --version print the version of autoconf that created configure | |
580 | Directory and file names: | |
581 | --prefix=PREFIX install architecture-independent files in PREFIX | |
582 | [$ac_default_prefix] | |
583 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
584 | [same as prefix] | |
585 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
586 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
587 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
588 | --datadir=DIR read-only architecture-independent data in DIR | |
589 | [PREFIX/share] | |
590 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
591 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
592 | [PREFIX/com] | |
593 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
594 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
595 | --includedir=DIR C header files in DIR [PREFIX/include] | |
596 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
597 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
598 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
599 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
600 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
601 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
602 | --program-transform-name=PROGRAM | |
603 | run sed PROGRAM on installed program names | |
604 | EOF | |
605 | cat << EOF | |
606 | Host type: | |
607 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
608 | --host=HOST configure for HOST [guessed] | |
609 | --target=TARGET configure for TARGET [TARGET=HOST] | |
610 | Features and packages: | |
611 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
612 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
613 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
614 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
615 | --x-includes=DIR X include files are in DIR | |
616 | --x-libraries=DIR X library files are in DIR | |
617 | EOF | |
618 | if test -n "$ac_help"; then | |
619 | echo "--enable and --with options recognized:$ac_help" | |
620 | fi | |
621 | exit 0 ;; | |
10f2d63a VZ |
622 | |
623 | -host | --host | --hos | --ho) | |
698dcdb6 | 624 | ac_prev=host ;; |
10f2d63a | 625 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 626 | host="$ac_optarg" ;; |
10f2d63a VZ |
627 | |
628 | -includedir | --includedir | --includedi | --included | --include \ | |
629 | | --includ | --inclu | --incl | --inc) | |
630 | ac_prev=includedir ;; | |
631 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
632 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 633 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
634 | |
635 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
636 | ac_prev=infodir ;; | |
637 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 638 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
639 | |
640 | -libdir | --libdir | --libdi | --libd) | |
641 | ac_prev=libdir ;; | |
642 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 643 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
644 | |
645 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
646 | | --libexe | --libex | --libe) | |
647 | ac_prev=libexecdir ;; | |
648 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
649 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 650 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
651 | |
652 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
653 | | --localstate | --localstat | --localsta | --localst \ | |
654 | | --locals | --local | --loca | --loc | --lo) | |
655 | ac_prev=localstatedir ;; | |
656 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
657 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
658 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 659 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
660 | |
661 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
662 | ac_prev=mandir ;; | |
663 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 664 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
665 | |
666 | -nfp | --nfp | --nf) | |
667 | # Obsolete; use --without-fp. | |
668 | with_fp=no ;; | |
669 | ||
670 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
671 | | --no-cr | --no-c) | |
672 | no_create=yes ;; | |
673 | ||
674 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
675 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
676 | no_recursion=yes ;; | |
677 | ||
678 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
679 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
680 | | --oldin | --oldi | --old | --ol | --o) | |
681 | ac_prev=oldincludedir ;; | |
682 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
683 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
684 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 685 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
686 | |
687 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
688 | ac_prev=prefix ;; | |
689 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 690 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
691 | |
692 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
693 | | --program-pre | --program-pr | --program-p) | |
694 | ac_prev=program_prefix ;; | |
695 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
696 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 697 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
698 | |
699 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
700 | | --program-suf | --program-su | --program-s) | |
701 | ac_prev=program_suffix ;; | |
702 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
703 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 704 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
705 | |
706 | -program-transform-name | --program-transform-name \ | |
707 | | --program-transform-nam | --program-transform-na \ | |
708 | | --program-transform-n | --program-transform- \ | |
709 | | --program-transform | --program-transfor \ | |
710 | | --program-transfo | --program-transf \ | |
711 | | --program-trans | --program-tran \ | |
712 | | --progr-tra | --program-tr | --program-t) | |
713 | ac_prev=program_transform_name ;; | |
714 | -program-transform-name=* | --program-transform-name=* \ | |
715 | | --program-transform-nam=* | --program-transform-na=* \ | |
716 | | --program-transform-n=* | --program-transform-=* \ | |
717 | | --program-transform=* | --program-transfor=* \ | |
718 | | --program-transfo=* | --program-transf=* \ | |
719 | | --program-trans=* | --program-tran=* \ | |
720 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 721 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
722 | |
723 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
724 | | -silent | --silent | --silen | --sile | --sil) | |
725 | silent=yes ;; | |
726 | ||
727 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
728 | ac_prev=sbindir ;; | |
729 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
730 | | --sbi=* | --sb=*) | |
698dcdb6 | 731 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
732 | |
733 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
734 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
735 | | --sharedst | --shareds | --shared | --share | --shar \ | |
736 | | --sha | --sh) | |
737 | ac_prev=sharedstatedir ;; | |
738 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
739 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
740 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
741 | | --sha=* | --sh=*) | |
698dcdb6 | 742 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
743 | |
744 | -site | --site | --sit) | |
745 | ac_prev=site ;; | |
746 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 747 | site="$ac_optarg" ;; |
10f2d63a VZ |
748 | |
749 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
750 | ac_prev=srcdir ;; | |
751 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 752 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
753 | |
754 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
755 | | --syscon | --sysco | --sysc | --sys | --sy) | |
756 | ac_prev=sysconfdir ;; | |
757 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
758 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 759 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
760 | |
761 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 762 | ac_prev=target ;; |
10f2d63a | 763 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 764 | target="$ac_optarg" ;; |
10f2d63a VZ |
765 | |
766 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
767 | verbose=yes ;; | |
768 | ||
698dcdb6 VZ |
769 | -version | --version | --versio | --versi | --vers) |
770 | echo "configure generated by autoconf version 2.13" | |
771 | exit 0 ;; | |
10f2d63a VZ |
772 | |
773 | -with-* | --with-*) | |
698dcdb6 | 774 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 775 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
776 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
777 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
778 | fi | |
10f2d63a | 779 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
780 | case "$ac_option" in |
781 | *=*) ;; | |
10f2d63a VZ |
782 | *) ac_optarg=yes ;; |
783 | esac | |
698dcdb6 | 784 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
785 | |
786 | -without-* | --without-*) | |
698dcdb6 | 787 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 788 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
789 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
790 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
791 | fi | |
792 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
793 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
794 | |
795 | --x) | |
796 | # Obsolete; use --with-x. | |
797 | with_x=yes ;; | |
798 | ||
799 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
800 | | --x-incl | --x-inc | --x-in | --x-i) | |
801 | ac_prev=x_includes ;; | |
802 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
803 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 804 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
805 | |
806 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
807 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
808 | ac_prev=x_libraries ;; | |
809 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
810 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 811 | x_libraries="$ac_optarg" ;; |
10f2d63a | 812 | |
698dcdb6 | 813 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
814 | ;; |
815 | ||
816 | *) | |
698dcdb6 VZ |
817 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
818 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
819 | fi | |
820 | if test "x$nonopt" != xNONE; then | |
821 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
822 | fi | |
823 | nonopt="$ac_option" | |
10f2d63a VZ |
824 | ;; |
825 | ||
826 | esac | |
827 | done | |
828 | ||
829 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
830 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
831 | fi | |
832 | ||
833 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
834 | ||
835 | # File descriptor usage: | |
836 | # 0 standard input | |
837 | # 1 file creation | |
838 | # 2 errors and warnings | |
839 | # 3 some systems may open it to /dev/tty | |
840 | # 4 used on the Kubota Titan | |
841 | # 6 checking for... messages and results | |
842 | # 5 compiler messages saved in config.log | |
843 | if test "$silent" = yes; then | |
844 | exec 6>/dev/null | |
845 | else | |
846 | exec 6>&1 | |
10f2d63a | 847 | fi |
698dcdb6 VZ |
848 | exec 5>./config.log |
849 | ||
850 | echo "\ | |
851 | This file contains any messages produced by compilers while | |
852 | running configure, to aid debugging if configure makes a mistake. | |
853 | " 1>&5 | |
10f2d63a | 854 | |
698dcdb6 VZ |
855 | # Strip out --no-create and --no-recursion so they do not pile up. |
856 | # Also quote any args containing shell metacharacters. | |
857 | ac_configure_args= | |
858 | for ac_arg | |
10f2d63a | 859 | do |
698dcdb6 VZ |
860 | case "$ac_arg" in |
861 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
862 | | --no-cr | --no-c) ;; | |
863 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
864 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
865 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
866 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
867 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
868 | esac |
869 | done | |
870 | ||
698dcdb6 VZ |
871 | # NLS nuisances. |
872 | # Only set these to C if already set. These must not be set unconditionally | |
873 | # because not all systems understand e.g. LANG=C (notably SCO). | |
874 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
875 | # Non-C LC_CTYPE values break the ctype check. | |
876 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
877 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
878 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
879 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 880 | |
698dcdb6 VZ |
881 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
882 | rm -rf conftest* confdefs.h | |
883 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
884 | echo > confdefs.h | |
10f2d63a | 885 | |
698dcdb6 VZ |
886 | # A filename unique to this package, relative to the directory that |
887 | # configure is in, which we can look for to find out if srcdir is correct. | |
888 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
889 | |
890 | # Find the source files, if location was not specified. | |
891 | if test -z "$srcdir"; then | |
892 | ac_srcdir_defaulted=yes | |
893 | # Try the directory containing this script, then its parent. | |
894 | ac_prog=$0 | |
698dcdb6 | 895 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
896 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
897 | srcdir=$ac_confdir | |
898 | if test ! -r $srcdir/$ac_unique_file; then | |
899 | srcdir=.. | |
900 | fi | |
901 | else | |
902 | ac_srcdir_defaulted=no | |
903 | fi | |
904 | if test ! -r $srcdir/$ac_unique_file; then | |
905 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 906 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 907 | else |
698dcdb6 | 908 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
909 | fi |
910 | fi | |
698dcdb6 | 911 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
912 | |
913 | # Prefer explicitly selected file to automatically selected ones. | |
914 | if test -z "$CONFIG_SITE"; then | |
915 | if test "x$prefix" != xNONE; then | |
916 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
917 | else | |
918 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
919 | fi | |
920 | fi | |
921 | for ac_site_file in $CONFIG_SITE; do | |
922 | if test -r "$ac_site_file"; then | |
698dcdb6 | 923 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
924 | . "$ac_site_file" |
925 | fi | |
926 | done | |
927 | ||
928 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
929 | echo "loading cache $cache_file" |
930 | . $cache_file | |
10f2d63a | 931 | else |
698dcdb6 VZ |
932 | echo "creating cache $cache_file" |
933 | > $cache_file | |
10f2d63a VZ |
934 | fi |
935 | ||
936 | ac_ext=c | |
698dcdb6 | 937 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 938 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
939 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
940 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
941 | cross_compiling=$ac_cv_prog_cc_cross | |
942 | ||
943 | ac_exeext= | |
944 | ac_objext=o | |
945 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
946 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
947 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
948 | ac_n= ac_c=' | |
949 | ' ac_t=' ' | |
950 | else | |
951 | ac_n=-n ac_c= ac_t= | |
952 | fi | |
10f2d63a | 953 | else |
698dcdb6 | 954 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 955 | fi |
698dcdb6 VZ |
956 | |
957 | ||
10f2d63a | 958 | |
7c66a493 VZ |
959 | ac_aux_dir= |
960 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
961 | if test -f $ac_dir/install-sh; then | |
962 | ac_aux_dir=$ac_dir | |
963 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
964 | break | |
965 | elif test -f $ac_dir/install.sh; then | |
966 | ac_aux_dir=$ac_dir | |
967 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
968 | break | |
969 | fi | |
970 | done | |
971 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 972 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 973 | fi |
698dcdb6 VZ |
974 | ac_config_guess=$ac_aux_dir/config.guess |
975 | ac_config_sub=$ac_aux_dir/config.sub | |
976 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 977 | |
698dcdb6 VZ |
978 | |
979 | # Do some error checking and defaulting for the host and target type. | |
980 | # The inputs are: | |
981 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
982 | # | |
983 | # The rules are: | |
984 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
985 | # same time. | |
986 | # 2. Host defaults to nonopt. | |
987 | # 3. If nonopt is not specified, then host defaults to the current host, | |
988 | # as determined by config.guess. | |
989 | # 4. Target and build default to nonopt. | |
990 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
991 | |
992 | # The aliases save the names the user supplied, while $host etc. | |
993 | # will get canonicalized. | |
698dcdb6 VZ |
994 | case $host---$target---$nonopt in |
995 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
996 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
997 | esac | |
998 | ||
999 | ||
1000 | # Make sure we can run config.sub. | |
1001 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1002 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1003 | fi | |
1004 | ||
1005 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
986ecc86 | 1006 | echo "configure:1007: checking host system type" >&5 |
698dcdb6 VZ |
1007 | |
1008 | host_alias=$host | |
1009 | case "$host_alias" in | |
1010 | NONE) | |
1011 | case $nonopt in | |
1012 | NONE) | |
1013 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1014 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1015 | fi ;; | |
1016 | *) host_alias=$nonopt ;; | |
1017 | esac ;; | |
1018 | esac | |
1019 | ||
1020 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1021 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1022 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1023 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1024 | echo "$ac_t""$host" 1>&6 | |
1025 | ||
1026 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
986ecc86 | 1027 | echo "configure:1028: checking target system type" >&5 |
698dcdb6 VZ |
1028 | |
1029 | target_alias=$target | |
1030 | case "$target_alias" in | |
1031 | NONE) | |
1032 | case $nonopt in | |
1033 | NONE) target_alias=$host_alias ;; | |
1034 | *) target_alias=$nonopt ;; | |
1035 | esac ;; | |
1036 | esac | |
1037 | ||
1038 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1039 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1040 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1041 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1042 | echo "$ac_t""$target" 1>&6 | |
1043 | ||
1044 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
986ecc86 | 1045 | echo "configure:1046: checking build system type" >&5 |
698dcdb6 VZ |
1046 | |
1047 | build_alias=$build | |
1048 | case "$build_alias" in | |
1049 | NONE) | |
1050 | case $nonopt in | |
1051 | NONE) build_alias=$host_alias ;; | |
1052 | *) build_alias=$nonopt ;; | |
1053 | esac ;; | |
1054 | esac | |
1055 | ||
1056 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1057 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1058 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1059 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1060 | echo "$ac_t""$build" 1>&6 | |
1061 | ||
1062 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1063 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1064 | NONENONEs,x,x, && | |
1065 | program_prefix=${target_alias}- | |
1066 | ||
698dcdb6 VZ |
1067 | |
1068 | ||
10f2d63a | 1069 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1070 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1071 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1072 | |
10f2d63a | 1073 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1074 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1075 | |
978f1259 RL |
1076 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1077 | ||
a0d927d1 | 1078 | WX_CURRENT=2 |
6426998c RL |
1079 | WX_REVISION=0 |
1080 | WX_AGE=0 | |
1081 | ||
698dcdb6 VZ |
1082 | |
1083 | ||
10f2d63a VZ |
1084 | USE_UNIX=1 |
1085 | USE_WIN32=0 | |
f9bc1684 | 1086 | USE_DOS=0 |
b12915c1 | 1087 | USE_BEOS=0 |
1216f52d | 1088 | USE_MAC=0 |
b12915c1 | 1089 | |
10f2d63a VZ |
1090 | USE_LINUX= |
1091 | USE_SGI= | |
1092 | USE_HPUX= | |
1093 | USE_SYSV= | |
1094 | USE_SVR4= | |
1095 | USE_AIX= | |
1096 | USE_SUN= | |
1097 | USE_SOLARIS= | |
1098 | USE_SUNOS= | |
1099 | USE_ALPHA= | |
1100 | USE_OSF= | |
1101 | USE_BSD= | |
f11bdd03 | 1102 | USE_DARWIN= |
10f2d63a | 1103 | USE_FREEBSD= |
95c8801c | 1104 | USE_OPENBSD= |
f6bcfd97 | 1105 | USE_NETBSD= |
10f2d63a VZ |
1106 | USE_VMS= |
1107 | USE_ULTRIX= | |
10f2d63a VZ |
1108 | USE_DATA_GENERAL= |
1109 | ||
ab9b9eab VZ |
1110 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1111 | ||
f79bd02d | 1112 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1113 | |
1114 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1115 | DEFAULT_wxUSE_MAC=0 |
1116 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1117 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1118 | DEFAULT_wxUSE_MOTIF=0 |
1119 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1120 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1121 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1122 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1123 | |
1124 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1125 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1126 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1127 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1128 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1129 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1130 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1131 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1132 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1133 | |
d6a55c4b | 1134 | PROGRAM_EXT= |
3a922bb4 | 1135 | SO_SUFFIX=so |
d6a55c4b | 1136 | |
10f2d63a VZ |
1137 | case "${host}" in |
1138 | *-hp-hpux* ) | |
1139 | USE_HPUX=1 | |
1140 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1141 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1142 | SO_SUFFIX=sl |
698dcdb6 | 1143 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1144 | #define __HPUX__ 1 |
1145 | EOF | |
1146 | ||
1147 | ;; | |
1148 | *-*-linux* ) | |
1149 | USE_LINUX=1 | |
698dcdb6 | 1150 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1151 | #define __LINUX__ 1 |
1152 | EOF | |
1153 | ||
1154 | TMP=`uname -m` | |
1155 | if test "x$TMP" = "xalpha"; then | |
1156 | USE_ALPHA=1 | |
698dcdb6 | 1157 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1158 | #define __ALPHA__ 1 |
1159 | EOF | |
1160 | ||
1161 | fi | |
1162 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1163 | ;; | |
1164 | *-*-irix5* | *-*-irix6* ) | |
1165 | USE_SGI=1 | |
1166 | USE_SVR4=1 | |
698dcdb6 | 1167 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1168 | #define __SGI__ 1 |
1169 | EOF | |
1170 | ||
698dcdb6 | 1171 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1172 | #define __SVR4__ 1 |
1173 | EOF | |
1174 | ||
1175 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1176 | ;; | |
1177 | *-*-solaris2* ) | |
1178 | USE_SUN=1 | |
1179 | USE_SOLARIS=1 | |
1180 | USE_SVR4=1 | |
698dcdb6 | 1181 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1182 | #define __SUN__ 1 |
1183 | EOF | |
1184 | ||
698dcdb6 | 1185 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1186 | #define __SOLARIS__ 1 |
1187 | EOF | |
1188 | ||
698dcdb6 | 1189 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1190 | #define __SVR4__ 1 |
1191 | EOF | |
1192 | ||
1193 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1194 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1195 | ;; |
1196 | *-*-sunos4* ) | |
1197 | USE_SUN=1 | |
1198 | USE_SUNOS=1 | |
1199 | USE_BSD=1 | |
698dcdb6 | 1200 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1201 | #define __SUN__ 1 |
1202 | EOF | |
1203 | ||
698dcdb6 | 1204 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1205 | #define __SUNOS__ 1 |
1206 | EOF | |
1207 | ||
698dcdb6 | 1208 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1209 | #define __BSD__ 1 |
1210 | EOF | |
1211 | ||
1212 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1213 | ;; | |
f6bcfd97 | 1214 | *-*-freebsd*) |
10f2d63a VZ |
1215 | USE_BSD=1 |
1216 | USE_FREEBSD=1 | |
698dcdb6 | 1217 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1218 | #define __FREEBSD__ 1 |
1219 | EOF | |
1220 | ||
698dcdb6 | 1221 | cat >> confdefs.h <<\EOF |
10f2d63a | 1222 | #define __BSD__ 1 |
95c8801c VS |
1223 | EOF |
1224 | ||
1225 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1226 | ;; | |
1227 | *-*-openbsd*) | |
1228 | USE_BSD=1 | |
1229 | USE_OPENBSD=1 | |
698dcdb6 | 1230 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1231 | #define __FREEBSD__ 1 |
1232 | EOF | |
1233 | ||
698dcdb6 | 1234 | cat >> confdefs.h <<\EOF |
95c8801c | 1235 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1236 | EOF |
1237 | ||
1238 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1239 | ;; | |
1240 | *-*-netbsd*) | |
1241 | USE_BSD=1 | |
1242 | USE_NETBSD=1 | |
698dcdb6 | 1243 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1244 | #define __FREEBSD__ 1 |
1245 | EOF | |
1246 | ||
698dcdb6 | 1247 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1248 | #define __NETBSD__ 1 |
10f2d63a VZ |
1249 | EOF |
1250 | ||
1251 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1252 | ;; | |
1253 | *-*-osf* ) | |
1254 | USE_ALPHA=1 | |
1255 | USE_OSF=1 | |
698dcdb6 | 1256 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1257 | #define __ALPHA__ 1 |
1258 | EOF | |
1259 | ||
698dcdb6 | 1260 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1261 | #define __OSF__ 1 |
1262 | EOF | |
1263 | ||
1264 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1265 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1266 | ;; |
1267 | *-*-dgux5* ) | |
1268 | USE_ALPHA=1 | |
1269 | USE_SVR4=1 | |
698dcdb6 | 1270 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1271 | #define __ALPHA__ 1 |
1272 | EOF | |
1273 | ||
698dcdb6 | 1274 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1275 | #define __SVR4__ 1 |
1276 | EOF | |
1277 | ||
1278 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1279 | ;; | |
1280 | *-*-sysv5* ) | |
1281 | USE_SYSV=1 | |
1282 | USE_SVR4=1 | |
698dcdb6 | 1283 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1284 | #define __SYSV__ 1 |
1285 | EOF | |
1286 | ||
698dcdb6 | 1287 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1288 | #define __SVR4__ 1 |
1289 | EOF | |
1290 | ||
1291 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1292 | ;; | |
1293 | *-*-aix* ) | |
1294 | USE_AIX=1 | |
1295 | USE_SYSV=1 | |
1296 | USE_SVR4=1 | |
321d2b14 | 1297 | SO_SUFFIX=a |
698dcdb6 | 1298 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1299 | #define __AIX__ 1 |
1300 | EOF | |
1301 | ||
698dcdb6 | 1302 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1303 | #define __SYSV__ 1 |
1304 | EOF | |
1305 | ||
698dcdb6 | 1306 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1307 | #define __SVR4__ 1 |
1308 | EOF | |
1309 | ||
1310 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1311 | ;; | |
1312 | ||
1c8183e2 | 1313 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1314 | SO_SUFFIX=dll |
cf27ef00 | 1315 | PROGRAM_EXT=".exe" |
7b7a7637 | 1316 | RESCOMP=windres |
10f2d63a VZ |
1317 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1318 | ;; | |
1319 | ||
f9bc1684 VS |
1320 | *-pc-msdosdjgpp ) |
1321 | USE_UNIX=0 | |
1322 | USE_DOS=1 | |
1323 | cat >> confdefs.h <<\EOF | |
1324 | #define __DOS__ 1 | |
1325 | EOF | |
1326 | ||
1327 | PROGRAM_EXT=".exe" | |
1328 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1329 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1330 | ;; |
1331 | ||
6fa882bd | 1332 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1333 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1334 | #define __EMX__ 1 |
1335 | EOF | |
1336 | ||
cf27ef00 | 1337 | PROGRAM_EXT=".exe" |
e07802fc | 1338 | DEFAULT_DEFAULT_wxUSE_PM=1 |
d558c907 | 1339 | LIBS="$LIBS -lstdcpp" |
10f2d63a VZ |
1340 | ;; |
1341 | ||
d08b457b GD |
1342 | powerpc-*-darwin* ) |
1343 | USE_BSD=1 | |
f11bdd03 | 1344 | USE_DARWIN=1 |
3a922bb4 | 1345 | SO_SUFFIX=dylib |
698dcdb6 | 1346 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1347 | #define __BSD__ 1 |
b4085ce6 GD |
1348 | EOF |
1349 | ||
698dcdb6 | 1350 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1351 | #define __DARWIN__ 1 |
d08b457b GD |
1352 | EOF |
1353 | ||
1354 | cat >> confdefs.h <<\EOF | |
1355 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1356 | EOF |
1357 | ||
1358 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1359 | ;; | |
1360 | ||
b12915c1 VZ |
1361 | *-*-beos* ) |
1362 | USE_BEOS=1 | |
698dcdb6 | 1363 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1364 | #define __BEOS__ 1 |
1365 | EOF | |
1366 | ||
1367 | ;; | |
1368 | ||
10f2d63a | 1369 | *) |
698dcdb6 | 1370 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1371 | esac |
1372 | ||
1e487827 | 1373 | |
1e487827 | 1374 | |
6232543b | 1375 | |
10f2d63a VZ |
1376 | wx_arg_cache_file="configarg.cache" |
1377 | echo "loading argument cache $wx_arg_cache_file" | |
1378 | rm -f ${wx_arg_cache_file}.tmp | |
1379 | touch ${wx_arg_cache_file}.tmp | |
1380 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1381 | |
10f2d63a VZ |
1382 | |
1383 | DEBUG_CONFIGURE=0 | |
1384 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1385 | DEFAULT_wxUSE_UNIVERSAL=no |
1386 | ||
d8356fa3 VZ |
1387 | DEFAULT_wxUSE_NANOX=no |
1388 | ||
10f2d63a VZ |
1389 | DEFAULT_wxUSE_THREADS=yes |
1390 | ||
1391 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1392 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1393 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1394 | DEFAULT_wxUSE_PROFILE=no |
1395 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1396 | DEFAULT_wxUSE_NO_RTTI=no |
1397 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1398 | DEFAULT_wxUSE_PERMISSIVE=no |
1399 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1400 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1401 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1402 | DEFAULT_wxUSE_MEM_TRACING=no | |
1403 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1404 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1405 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1406 | DEFAULT_wxUSE_APPLE_IEEE=no |
1407 | ||
1408 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1409 | DEFAULT_wxUSE_LOGWINDOW=no |
1410 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1411 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1412 | |
1413 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1414 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1415 | |
3e44f09d | 1416 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1417 | DEFAULT_wxUSE_ZLIB=no |
1418 | DEFAULT_wxUSE_LIBPNG=no | |
1419 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1420 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1421 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1422 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1423 | |
eb4efbdc | 1424 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1425 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1426 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1427 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1428 | DEFAULT_wxUSE_DATETIME=no | |
1429 | DEFAULT_wxUSE_TIMEDATE=no | |
1430 | DEFAULT_wxUSE_TIMER=no | |
1431 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1432 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1433 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1434 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1435 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1436 | DEFAULT_wxUSE_WAVE=no |
1437 | DEFAULT_wxUSE_INTL=no | |
1438 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1439 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1440 | DEFAULT_wxUSE_STREAMS=no |
1441 | DEFAULT_wxUSE_SOCKETS=no | |
1442 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1443 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1444 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1445 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1446 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1447 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1448 | |
1449 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1450 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1451 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1452 | ||
1453 | DEFAULT_wxUSE_X_RESOURCES=no | |
1454 | DEFAULT_wxUSE_CLIPBOARD=no | |
1455 | DEFAULT_wxUSE_TOOLTIPS=no | |
1456 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1457 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1458 | DEFAULT_wxUSE_SPLINES=no |
1459 | ||
1460 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1461 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1462 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1463 | ||
1464 | DEFAULT_wxUSE_PROLOGIO=no | |
1465 | DEFAULT_wxUSE_RESOURCES=no | |
1466 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1467 | DEFAULT_wxUSE_IPC=no | |
1468 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1469 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1470 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1471 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1472 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1473 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1474 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1475 | DEFAULT_wxUSE_PROTOCOL=no | |
1476 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1477 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1478 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1479 | DEFAULT_wxUSE_URL=no | |
1480 | ||
10f2d63a | 1481 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1482 | DEFAULT_wxUSE_CHOICEDLG=no |
1483 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1484 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1485 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1486 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1487 | DEFAULT_wxUSE_FONTDLG=no |
1488 | DEFAULT_wxUSE_MSGDLG=no | |
1489 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1490 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1491 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1492 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1493 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1494 | DEFAULT_wxUSE_WIZARDDLG=no |
1495 | ||
1e6feb95 | 1496 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1497 | DEFAULT_wxUSE_MINIFRAME=no |
1498 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1499 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1500 | DEFAULT_wxUSE_FS_INET=no |
1501 | DEFAULT_wxUSE_FS_ZIP=no | |
1502 | DEFAULT_wxUSE_BUSYINFO=no | |
1503 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1504 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1505 | |
1506 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1507 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1508 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1509 | DEFAULT_wxUSE_CALCTRL=no |
1510 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1511 | DEFAULT_wxUSE_CHECKBOX=no |
1512 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1513 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1514 | DEFAULT_wxUSE_COMBOBOX=no |
1515 | DEFAULT_wxUSE_GAUGE=no | |
1516 | DEFAULT_wxUSE_GRID=no | |
1517 | DEFAULT_wxUSE_NEW_GRID=no | |
1518 | DEFAULT_wxUSE_IMAGLIST=no | |
1519 | DEFAULT_wxUSE_LISTBOX=no | |
1520 | DEFAULT_wxUSE_LISTCTRL=no | |
1521 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1522 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1523 | DEFAULT_wxUSE_RADIOBOX=no |
1524 | DEFAULT_wxUSE_RADIOBTN=no | |
1525 | DEFAULT_wxUSE_SASH=no | |
1526 | DEFAULT_wxUSE_SCROLLBAR=no | |
1527 | DEFAULT_wxUSE_SLIDER=no | |
1528 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1529 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1530 | DEFAULT_wxUSE_SPLITTER=no |
1531 | DEFAULT_wxUSE_STATBMP=no | |
1532 | DEFAULT_wxUSE_STATBOX=no | |
1533 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1534 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1535 | DEFAULT_wxUSE_STATUSBAR=yes |
1536 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1537 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1538 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1539 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1540 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1541 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1542 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1543 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1544 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1545 | |
1546 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1547 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1548 | DEFAULT_wxUSE_WCSRTOMBS=no |
1549 | ||
edae8572 | 1550 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1551 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1552 | DEFAULT_wxUSE_GIF=no |
1553 | DEFAULT_wxUSE_PCX=no | |
1554 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1555 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1556 | DEFAULT_wxUSE_XPM=no |
658974ae | 1557 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1558 | else |
1e6feb95 VZ |
1559 | DEFAULT_wxUSE_UNIVERSAL=no |
1560 | ||
d8356fa3 VZ |
1561 | DEFAULT_wxUSE_NANOX=no |
1562 | ||
10f2d63a VZ |
1563 | DEFAULT_wxUSE_THREADS=yes |
1564 | ||
1565 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1566 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1567 | DEFAULT_wxUSE_OPTIMISE=yes |
1568 | DEFAULT_wxUSE_PROFILE=no | |
1569 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1570 | DEFAULT_wxUSE_NO_RTTI=no |
1571 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1572 | DEFAULT_wxUSE_PERMISSIVE=no |
1573 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1574 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1575 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1576 | DEFAULT_wxUSE_MEM_TRACING=no | |
1577 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1578 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1579 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1580 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1581 | ||
1582 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1583 | DEFAULT_wxUSE_LOGWINDOW=yes |
1584 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1585 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1586 | |
1587 | DEFAULT_wxUSE_GUI=yes | |
1588 | ||
831b3152 | 1589 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1590 | DEFAULT_wxUSE_ZLIB=yes |
1591 | DEFAULT_wxUSE_LIBPNG=yes | |
1592 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1593 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1594 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1595 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1596 | |
eb4efbdc | 1597 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1598 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1599 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1600 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1601 | DEFAULT_wxUSE_DATETIME=yes | |
1602 | DEFAULT_wxUSE_TIMEDATE=no | |
1603 | DEFAULT_wxUSE_TIMER=yes | |
1604 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1605 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1606 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1607 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1608 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1609 | DEFAULT_wxUSE_WAVE=no |
1610 | DEFAULT_wxUSE_INTL=yes | |
1611 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1612 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1613 | DEFAULT_wxUSE_STREAMS=yes |
1614 | DEFAULT_wxUSE_SOCKETS=yes | |
1615 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1616 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1617 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1618 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1619 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1620 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1621 | |
1622 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1623 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1624 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1625 | ||
1626 | DEFAULT_wxUSE_X_RESOURCES=no | |
1627 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1628 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1629 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1630 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1631 | DEFAULT_wxUSE_SPLINES=yes |
1632 | ||
1633 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1634 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1635 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1636 | ||
1637 | DEFAULT_wxUSE_PROLOGIO=yes | |
1638 | DEFAULT_wxUSE_RESOURCES=yes | |
1639 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1640 | DEFAULT_wxUSE_IPC=yes | |
1641 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1642 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1643 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1644 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1645 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1646 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1647 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1648 | DEFAULT_wxUSE_PROTOCOL=yes |
1649 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1650 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1651 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1652 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1653 | |
1654 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1655 | DEFAULT_wxUSE_CHOICEDLG=yes |
1656 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1657 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1658 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1659 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1660 | DEFAULT_wxUSE_FONTDLG=yes |
1661 | DEFAULT_wxUSE_MSGDLG=yes | |
1662 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1663 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1664 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1665 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1666 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1667 | DEFAULT_wxUSE_WIZARDDLG=yes |
1668 | ||
1e6feb95 | 1669 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1670 | DEFAULT_wxUSE_MINIFRAME=yes |
1671 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1672 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1673 | DEFAULT_wxUSE_FS_INET=yes |
1674 | DEFAULT_wxUSE_FS_ZIP=yes | |
1675 | DEFAULT_wxUSE_BUSYINFO=yes | |
1676 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1677 | DEFAULT_wxUSE_VALIDATORS=yes | |
1678 | ||
1679 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1680 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1681 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1682 | DEFAULT_wxUSE_CALCTRL=yes |
1683 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1684 | DEFAULT_wxUSE_CHECKBOX=yes |
1685 | DEFAULT_wxUSE_CHECKLST=yes | |
1686 | DEFAULT_wxUSE_CHOICE=yes | |
1687 | DEFAULT_wxUSE_COMBOBOX=yes | |
1688 | DEFAULT_wxUSE_GAUGE=yes | |
1689 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1690 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1691 | DEFAULT_wxUSE_IMAGLIST=yes |
1692 | DEFAULT_wxUSE_LISTBOX=yes | |
1693 | DEFAULT_wxUSE_LISTCTRL=yes | |
1694 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1695 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1696 | DEFAULT_wxUSE_RADIOBOX=yes |
1697 | DEFAULT_wxUSE_RADIOBTN=yes | |
1698 | DEFAULT_wxUSE_SASH=yes | |
1699 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1700 | DEFAULT_wxUSE_SLIDER=yes | |
1701 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1702 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1703 | DEFAULT_wxUSE_SPLITTER=yes |
1704 | DEFAULT_wxUSE_STATBMP=yes | |
1705 | DEFAULT_wxUSE_STATBOX=yes | |
1706 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1707 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1708 | DEFAULT_wxUSE_STATUSBAR=yes |
1709 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1710 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1711 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1712 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1713 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1714 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1715 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1716 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1717 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1718 | |
1719 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1720 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1721 | DEFAULT_wxUSE_WCSRTOMBS=no |
1722 | ||
edae8572 | 1723 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1724 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1725 | DEFAULT_wxUSE_GIF=yes |
1726 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1727 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1728 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1729 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1730 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1731 | fi |
1732 | ||
698dcdb6 VZ |
1733 | |
1734 | ||
10f2d63a VZ |
1735 | for toolkit in `echo $ALL_TOOLKITS`; do |
1736 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1737 | if test "x$LINE" != x ; then | |
1738 | has_toolkit_in_cache=1 | |
1739 | eval "DEFAULT_$LINE" | |
1740 | eval "CACHE_$toolkit=1" | |
1741 | fi | |
1742 | done | |
1743 | ||
698dcdb6 VZ |
1744 | |
1745 | ||
1746 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
24f5e003 | 1747 | echo "configure:1748: checking for --enable-gui" >&5 |
10f2d63a VZ |
1748 | no_cache=0 |
1749 | # Check whether --enable-gui or --disable-gui was given. | |
1750 | if test "${enable_gui+set}" = set; then | |
1751 | enableval="$enable_gui" | |
698dcdb6 | 1752 | |
10f2d63a VZ |
1753 | if test "$enableval" = yes; then |
1754 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1755 | else | |
1756 | ac_cv_use_gui='wxUSE_GUI=no' | |
1757 | fi | |
698dcdb6 | 1758 | |
10f2d63a | 1759 | else |
698dcdb6 | 1760 | |
10f2d63a VZ |
1761 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1762 | if test "x$LINE" != x ; then | |
1763 | eval "DEFAULT_$LINE" | |
1764 | else | |
1765 | no_cache=1 | |
1766 | fi | |
1767 | ||
1768 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1769 | |
1770 | fi | |
10f2d63a VZ |
1771 | |
1772 | ||
1773 | eval "$ac_cv_use_gui" | |
1774 | if test "$no_cache" != 1; then | |
1775 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1776 | fi | |
1777 | ||
1778 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1779 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1780 | else |
698dcdb6 | 1781 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1782 | fi |
698dcdb6 | 1783 | |
10f2d63a | 1784 | |
b12915c1 | 1785 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1786 | |
1e6feb95 VZ |
1787 | |
1788 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
24f5e003 | 1789 | echo "configure:1790: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1790 | no_cache=0 |
1791 | # Check whether --enable-universal or --disable-universal was given. | |
1792 | if test "${enable_universal+set}" = set; then | |
1793 | enableval="$enable_universal" | |
1794 | ||
1795 | if test "$enableval" = yes; then | |
1796 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1797 | else | |
1798 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1799 | fi | |
1800 | ||
1801 | else | |
1802 | ||
1803 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1804 | if test "x$LINE" != x ; then | |
1805 | eval "DEFAULT_$LINE" | |
1806 | else | |
1807 | no_cache=1 | |
1808 | fi | |
1809 | ||
1810 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1811 | ||
1812 | fi | |
1813 | ||
1814 | ||
1815 | eval "$ac_cv_use_universal" | |
1816 | if test "$no_cache" != 1; then | |
1817 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1818 | fi | |
1819 | ||
1820 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1821 | echo "$ac_t""yes" 1>&6 | |
1822 | else | |
1823 | echo "$ac_t""no" 1>&6 | |
1824 | fi | |
1825 | ||
10f2d63a VZ |
1826 | # Check whether --with-gtk or --without-gtk was given. |
1827 | if test "${with_gtk+set}" = set; then | |
1828 | withval="$with_gtk" | |
1829 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1830 | fi |
10f2d63a VZ |
1831 | |
1832 | # Check whether --with-motif or --without-motif was given. | |
1833 | if test "${with_motif+set}" = set; then | |
1834 | withval="$with_motif" | |
1835 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1836 | fi |
10f2d63a | 1837 | |
b4085ce6 GD |
1838 | # Check whether --with-mac or --without-mac was given. |
1839 | if test "${with_mac+set}" = set; then | |
1840 | withval="$with_mac" | |
1841 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1842 | fi |
b4085ce6 | 1843 | |
10f2d63a VZ |
1844 | # Check whether --with-wine or --without-wine was given. |
1845 | if test "${with_wine+set}" = set; then | |
1846 | withval="$with_wine" | |
1847 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1848 | fi |
10f2d63a | 1849 | |
77e13408 RL |
1850 | # Check whether --with-msw or --without-msw was given. |
1851 | if test "${with_msw+set}" = set; then | |
1852 | withval="$with_msw" | |
b4efce5e | 1853 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
698dcdb6 | 1854 | fi |
10f2d63a | 1855 | |
e07802fc VZ |
1856 | # Check whether --with-pm or --without-pm was given. |
1857 | if test "${with_pm+set}" = set; then | |
1858 | withval="$with_pm" | |
1859 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1860 | fi |
1861 | ||
1e6feb95 VZ |
1862 | # Check whether --with-mgl or --without-mgl was given. |
1863 | if test "${with_mgl+set}" = set; then | |
1864 | withval="$with_mgl" | |
6c657b52 | 1865 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
1e6feb95 VZ |
1866 | fi |
1867 | ||
1725144d RR |
1868 | # Check whether --with-microwin or --without-microwin was given. |
1869 | if test "${with_microwin+set}" = set; then | |
1870 | withval="$with_microwin" | |
1871 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1872 | fi | |
1873 | ||
f79bd02d JS |
1874 | # Check whether --with-x11 or --without-x11 was given. |
1875 | if test "${with_x11+set}" = set; then | |
1876 | withval="$with_x11" | |
3c011993 | 1877 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
f79bd02d JS |
1878 | fi |
1879 | ||
10f2d63a | 1880 | |
ba875e66 | 1881 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 |
24f5e003 | 1882 | echo "configure:1883: checking for --enable-nanox" >&5 |
d8356fa3 | 1883 | no_cache=0 |
ba875e66 VZ |
1884 | # Check whether --enable-nanox or --disable-nanox was given. |
1885 | if test "${enable_nanox+set}" = set; then | |
1886 | enableval="$enable_nanox" | |
d8356fa3 VZ |
1887 | |
1888 | if test "$enableval" = yes; then | |
ba875e66 | 1889 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1890 | else |
ba875e66 | 1891 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 VZ |
1892 | fi |
1893 | ||
1894 | else | |
1895 | ||
1896 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
1897 | if test "x$LINE" != x ; then | |
1898 | eval "DEFAULT_$LINE" | |
1899 | else | |
1900 | no_cache=1 | |
1901 | fi | |
1902 | ||
ba875e66 | 1903 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 VZ |
1904 | |
1905 | fi | |
1906 | ||
1907 | ||
ba875e66 | 1908 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1909 | if test "$no_cache" != 1; then |
ba875e66 | 1910 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1911 | fi |
1912 | ||
1913 | if test "$wxUSE_NANOX" = yes; then | |
1914 | echo "$ac_t""yes" 1>&6 | |
1915 | else | |
1916 | echo "$ac_t""no" 1>&6 | |
1917 | fi | |
1918 | ||
1919 | ||
8168de4c VZ |
1920 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1921 | if test "${enable_gtk2+set}" = set; then | |
1922 | enableval="$enable_gtk2" | |
9e691f46 | 1923 | wxUSE_GTK2="yes" |
10f2d63a | 1924 | else |
9e691f46 | 1925 | wxUSE_GTK2="no" |
698dcdb6 VZ |
1926 | fi |
1927 | ||
703e0a69 | 1928 | |
1e487827 | 1929 | |
698dcdb6 | 1930 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
24f5e003 | 1931 | echo "configure:1932: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1932 | no_cache=0 |
1933 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1934 | if test "${with_libpng+set}" = set; then |
1935 | withval="$with_libpng" | |
698dcdb6 | 1936 | |
10f2d63a | 1937 | if test "$withval" = yes; then |
b12915c1 | 1938 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1939 | elif test "$withval" = no; then |
b12915c1 | 1940 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1941 | elif test "$withval" = sys; then |
1942 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1943 | elif test "$withval" = builtin; then |
1944 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1945 | else |
4f14bcd8 | 1946 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1947 | fi |
698dcdb6 | 1948 | |
10f2d63a | 1949 | else |
698dcdb6 | 1950 | |
b12915c1 | 1951 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1952 | if test "x$LINE" != x ; then |
1953 | eval "DEFAULT_$LINE" | |
1954 | else | |
1955 | no_cache=1 | |
1956 | fi | |
1957 | ||
b12915c1 | 1958 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1959 | |
1960 | fi | |
10f2d63a VZ |
1961 | |
1962 | ||
b12915c1 | 1963 | eval "$ac_cv_use_libpng" |
10f2d63a | 1964 | if test "$no_cache" != 1; then |
b12915c1 | 1965 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1966 | fi |
1967 | ||
b12915c1 | 1968 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1969 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1970 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1971 | echo "$ac_t""no" 1>&6 |
422107f9 | 1972 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1973 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1974 | elif test "$wxUSE_LIBPNG" = builtin; then |
1975 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1976 | else |
4f14bcd8 | 1977 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1978 | fi |
698dcdb6 | 1979 | |
10f2d63a | 1980 | |
698dcdb6 | 1981 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
24f5e003 | 1982 | echo "configure:1983: checking for --with-libjpeg" >&5 |
10f2d63a | 1983 | no_cache=0 |
698dcdb6 | 1984 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1985 | if test "${with_libjpeg+set}" = set; then |
1986 | withval="$with_libjpeg" | |
698dcdb6 | 1987 | |
10f2d63a | 1988 | if test "$withval" = yes; then |
b12915c1 | 1989 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1990 | elif test "$withval" = no; then |
b12915c1 | 1991 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1992 | elif test "$withval" = sys; then |
1993 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
1994 | elif test "$withval" = builtin; then |
1995 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 1996 | else |
4f14bcd8 | 1997 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1998 | fi |
698dcdb6 | 1999 | |
10f2d63a | 2000 | else |
698dcdb6 | 2001 | |
b12915c1 | 2002 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2003 | if test "x$LINE" != x ; then |
2004 | eval "DEFAULT_$LINE" | |
2005 | else | |
2006 | no_cache=1 | |
2007 | fi | |
2008 | ||
b12915c1 | 2009 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
2010 | |
2011 | fi | |
10f2d63a VZ |
2012 | |
2013 | ||
b12915c1 | 2014 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2015 | if test "$no_cache" != 1; then |
b12915c1 | 2016 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2017 | fi |
2018 | ||
b12915c1 | 2019 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 2020 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2021 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 2022 | echo "$ac_t""no" 1>&6 |
422107f9 | 2023 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 2024 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2025 | elif test "$wxUSE_LIBJPEG" = builtin; then |
2026 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2027 | else |
4f14bcd8 | 2028 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2029 | fi |
698dcdb6 | 2030 | |
10f2d63a | 2031 | |
698dcdb6 | 2032 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
24f5e003 | 2033 | echo "configure:2034: checking for --with-libtiff" >&5 |
10f2d63a | 2034 | no_cache=0 |
698dcdb6 | 2035 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2036 | if test "${with_libtiff+set}" = set; then |
2037 | withval="$with_libtiff" | |
698dcdb6 | 2038 | |
10f2d63a | 2039 | if test "$withval" = yes; then |
b12915c1 | 2040 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2041 | elif test "$withval" = no; then |
b12915c1 | 2042 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2043 | elif test "$withval" = sys; then |
2044 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2045 | elif test "$withval" = builtin; then |
2046 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2047 | else |
4f14bcd8 | 2048 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2049 | fi |
698dcdb6 | 2050 | |
10f2d63a | 2051 | else |
698dcdb6 | 2052 | |
b12915c1 | 2053 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2054 | if test "x$LINE" != x ; then |
2055 | eval "DEFAULT_$LINE" | |
2056 | else | |
2057 | no_cache=1 | |
2058 | fi | |
2059 | ||
b12915c1 | 2060 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2061 | |
2062 | fi | |
10f2d63a VZ |
2063 | |
2064 | ||
b12915c1 | 2065 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2066 | if test "$no_cache" != 1; then |
b12915c1 | 2067 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2068 | fi |
2069 | ||
b12915c1 | 2070 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2071 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2072 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2073 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2074 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2075 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2076 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2077 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2078 | else |
4f14bcd8 | 2079 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2080 | fi |
698dcdb6 | 2081 | |
10f2d63a | 2082 | |
698dcdb6 | 2083 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
24f5e003 | 2084 | echo "configure:2085: checking for --with-opengl" >&5 |
10f2d63a | 2085 | no_cache=0 |
698dcdb6 | 2086 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2087 | if test "${with_opengl+set}" = set; then |
2088 | withval="$with_opengl" | |
698dcdb6 | 2089 | |
10f2d63a | 2090 | if test "$withval" = yes; then |
b12915c1 | 2091 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2092 | else |
b12915c1 | 2093 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2094 | fi |
698dcdb6 | 2095 | |
10f2d63a | 2096 | else |
698dcdb6 | 2097 | |
b12915c1 | 2098 | LINE=`grep "wxUSE_OPENGL" ${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_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2106 | |
2107 | fi | |
10f2d63a VZ |
2108 | |
2109 | ||
b12915c1 | 2110 | eval "$ac_cv_use_opengl" |
10f2d63a | 2111 | if test "$no_cache" != 1; then |
b12915c1 | 2112 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2113 | fi |
2114 | ||
b12915c1 | 2115 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2116 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2117 | else |
698dcdb6 | 2118 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2119 | fi |
698dcdb6 | 2120 | |
10f2d63a | 2121 | |
b12915c1 VZ |
2122 | fi |
2123 | ||
1e487827 | 2124 | |
698dcdb6 | 2125 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
24f5e003 | 2126 | echo "configure:2127: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2127 | no_cache=0 |
2128 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2129 | if test "${with_dmalloc+set}" = set; then |
2130 | withval="$with_dmalloc" | |
698dcdb6 | 2131 | |
c7a2bf27 | 2132 | if test "$withval" = yes; then |
b12915c1 | 2133 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2134 | else |
b12915c1 | 2135 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2136 | fi |
698dcdb6 | 2137 | |
c7a2bf27 | 2138 | else |
698dcdb6 | 2139 | |
b12915c1 | 2140 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2141 | if test "x$LINE" != x ; then |
2142 | eval "DEFAULT_$LINE" | |
2143 | else | |
2144 | no_cache=1 | |
2145 | fi | |
2146 | ||
b12915c1 | 2147 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2148 | |
2149 | fi | |
c7a2bf27 RR |
2150 | |
2151 | ||
b12915c1 | 2152 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2153 | if test "$no_cache" != 1; then |
b12915c1 | 2154 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2155 | fi |
2156 | ||
b12915c1 | 2157 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2158 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2159 | else |
698dcdb6 | 2160 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2161 | fi |
698dcdb6 | 2162 | |
c7a2bf27 | 2163 | |
3e44f09d | 2164 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
24f5e003 | 2165 | echo "configure:2166: checking for --with-regex" >&5 |
3e44f09d VZ |
2166 | no_cache=0 |
2167 | # Check whether --with-regex or --without-regex was given. | |
2168 | if test "${with_regex+set}" = set; then | |
2169 | withval="$with_regex" | |
2170 | ||
2171 | if test "$withval" = yes; then | |
2172 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2173 | elif test "$withval" = no; then | |
2174 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2175 | elif test "$withval" = sys; then | |
2176 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2177 | elif test "$withval" = builtin; then |
2178 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2179 | else |
4f14bcd8 | 2180 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2181 | fi |
2182 | ||
2183 | else | |
2184 | ||
2185 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2186 | if test "x$LINE" != x ; then | |
2187 | eval "DEFAULT_$LINE" | |
2188 | else | |
2189 | no_cache=1 | |
2190 | fi | |
2191 | ||
2192 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2193 | ||
2194 | fi | |
2195 | ||
2196 | ||
2197 | eval "$ac_cv_use_regex" | |
2198 | if test "$no_cache" != 1; then | |
2199 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2200 | fi | |
2201 | ||
2202 | if test "$wxUSE_REGEX" = yes; then | |
2203 | echo "$ac_t""yes" 1>&6 | |
2204 | elif test "$wxUSE_REGEX" = no; then | |
2205 | echo "$ac_t""no" 1>&6 | |
2206 | elif test "$wxUSE_REGEX" = sys; then | |
2207 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2208 | elif test "$wxUSE_REGEX" = builtin; then |
2209 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2210 | else |
4f14bcd8 | 2211 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2212 | fi |
2213 | ||
2214 | ||
698dcdb6 | 2215 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
24f5e003 | 2216 | echo "configure:2217: checking for --with-zlib" >&5 |
10f2d63a | 2217 | no_cache=0 |
698dcdb6 | 2218 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2219 | if test "${with_zlib+set}" = set; then |
2220 | withval="$with_zlib" | |
698dcdb6 | 2221 | |
10f2d63a | 2222 | if test "$withval" = yes; then |
b12915c1 | 2223 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2224 | elif test "$withval" = no; then |
b12915c1 | 2225 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2226 | elif test "$withval" = sys; then |
2227 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2228 | elif test "$withval" = builtin; then |
2229 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2230 | else |
4f14bcd8 | 2231 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2232 | fi |
698dcdb6 | 2233 | |
10f2d63a | 2234 | else |
698dcdb6 | 2235 | |
b12915c1 | 2236 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2237 | if test "x$LINE" != x ; then |
2238 | eval "DEFAULT_$LINE" | |
2239 | else | |
2240 | no_cache=1 | |
2241 | fi | |
2242 | ||
b12915c1 | 2243 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2244 | |
2245 | fi | |
10f2d63a VZ |
2246 | |
2247 | ||
b12915c1 | 2248 | eval "$ac_cv_use_zlib" |
10f2d63a | 2249 | if test "$no_cache" != 1; then |
b12915c1 | 2250 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2251 | fi |
2252 | ||
b12915c1 | 2253 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2254 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2255 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2256 | echo "$ac_t""no" 1>&6 |
422107f9 | 2257 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2258 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2259 | elif test "$wxUSE_ZLIB" = builtin; then |
2260 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2261 | else |
4f14bcd8 | 2262 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2263 | fi |
698dcdb6 | 2264 | |
10f2d63a | 2265 | |
698dcdb6 | 2266 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
24f5e003 | 2267 | echo "configure:2268: checking for --with-odbc" >&5 |
10f2d63a | 2268 | no_cache=0 |
698dcdb6 | 2269 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2270 | if test "${with_odbc+set}" = set; then |
2271 | withval="$with_odbc" | |
698dcdb6 | 2272 | |
10f2d63a VZ |
2273 | if test "$withval" = yes; then |
2274 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2275 | else | |
2276 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2277 | fi | |
698dcdb6 | 2278 | |
10f2d63a | 2279 | else |
698dcdb6 | 2280 | |
10f2d63a VZ |
2281 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2282 | if test "x$LINE" != x ; then | |
2283 | eval "DEFAULT_$LINE" | |
2284 | else | |
2285 | no_cache=1 | |
2286 | fi | |
2287 | ||
2288 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2289 | |
2290 | fi | |
10f2d63a VZ |
2291 | |
2292 | ||
2293 | eval "$ac_cv_use_odbc" | |
2294 | if test "$no_cache" != 1; then | |
2295 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2296 | fi | |
2297 | ||
2298 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2299 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2300 | else |
698dcdb6 | 2301 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2302 | fi |
698dcdb6 VZ |
2303 | |
2304 | ||
10f2d63a | 2305 | |
698dcdb6 | 2306 | |
698dcdb6 | 2307 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
24f5e003 | 2308 | echo "configure:2309: checking for --enable-shared" >&5 |
10f2d63a VZ |
2309 | no_cache=0 |
2310 | # Check whether --enable-shared or --disable-shared was given. | |
2311 | if test "${enable_shared+set}" = set; then | |
2312 | enableval="$enable_shared" | |
698dcdb6 | 2313 | |
10f2d63a VZ |
2314 | if test "$enableval" = yes; then |
2315 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2316 | else | |
2317 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2318 | fi | |
698dcdb6 | 2319 | |
10f2d63a | 2320 | else |
698dcdb6 | 2321 | |
10f2d63a VZ |
2322 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2323 | if test "x$LINE" != x ; then | |
2324 | eval "DEFAULT_$LINE" | |
2325 | else | |
2326 | no_cache=1 | |
2327 | fi | |
2328 | ||
2329 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2330 | |
2331 | fi | |
10f2d63a VZ |
2332 | |
2333 | ||
2334 | eval "$ac_cv_use_shared" | |
2335 | if test "$no_cache" != 1; then | |
2336 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2337 | fi | |
2338 | ||
2339 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2340 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2341 | else |
698dcdb6 | 2342 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2343 | fi |
698dcdb6 | 2344 | |
10f2d63a | 2345 | |
3a922bb4 | 2346 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
24f5e003 | 2347 | echo "configure:2348: checking for --enable-soname" >&5 |
00cf1208 | 2348 | no_cache=0 |
3a922bb4 RL |
2349 | # Check whether --enable-soname or --disable-soname was given. |
2350 | if test "${enable_soname+set}" = set; then | |
2351 | enableval="$enable_soname" | |
698dcdb6 | 2352 | |
00cf1208 | 2353 | if test "$enableval" = yes; then |
3a922bb4 | 2354 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2355 | else |
3a922bb4 | 2356 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2357 | fi |
698dcdb6 | 2358 | |
00cf1208 | 2359 | else |
698dcdb6 | 2360 | |
3a922bb4 | 2361 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2362 | if test "x$LINE" != x ; then |
2363 | eval "DEFAULT_$LINE" | |
2364 | else | |
2365 | no_cache=1 | |
2366 | fi | |
2367 | ||
3a922bb4 | 2368 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2369 | |
2370 | fi | |
00cf1208 RR |
2371 | |
2372 | ||
3a922bb4 | 2373 | eval "$ac_cv_use_soname" |
00cf1208 | 2374 | if test "$no_cache" != 1; then |
3a922bb4 | 2375 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2376 | fi |
2377 | ||
3a922bb4 | 2378 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2379 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2380 | else |
698dcdb6 | 2381 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2382 | fi |
698dcdb6 | 2383 | |
00cf1208 | 2384 | |
698dcdb6 | 2385 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
24f5e003 | 2386 | echo "configure:2387: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2387 | no_cache=0 |
2388 | # Check whether --enable-optimise or --disable-optimise was given. | |
2389 | if test "${enable_optimise+set}" = set; then | |
2390 | enableval="$enable_optimise" | |
698dcdb6 | 2391 | |
10f2d63a VZ |
2392 | if test "$enableval" = yes; then |
2393 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2394 | else | |
2395 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2396 | fi | |
698dcdb6 | 2397 | |
10f2d63a | 2398 | else |
698dcdb6 | 2399 | |
10f2d63a VZ |
2400 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2401 | if test "x$LINE" != x ; then | |
2402 | eval "DEFAULT_$LINE" | |
2403 | else | |
2404 | no_cache=1 | |
2405 | fi | |
2406 | ||
2407 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2408 | |
2409 | fi | |
10f2d63a VZ |
2410 | |
2411 | ||
2412 | eval "$ac_cv_use_optimise" | |
2413 | if test "$no_cache" != 1; then | |
2414 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2415 | fi | |
2416 | ||
2417 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2418 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2419 | else |
698dcdb6 | 2420 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2421 | fi |
698dcdb6 | 2422 | |
10f2d63a | 2423 | |
698dcdb6 | 2424 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
24f5e003 | 2425 | echo "configure:2426: checking for --enable-debug" >&5 |
10f2d63a VZ |
2426 | no_cache=0 |
2427 | # Check whether --enable-debug or --disable-debug was given. | |
2428 | if test "${enable_debug+set}" = set; then | |
2429 | enableval="$enable_debug" | |
698dcdb6 | 2430 | |
10f2d63a VZ |
2431 | if test "$enableval" = yes; then |
2432 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2433 | else | |
2434 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2435 | fi | |
698dcdb6 | 2436 | |
10f2d63a | 2437 | else |
698dcdb6 | 2438 | |
10f2d63a VZ |
2439 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2440 | if test "x$LINE" != x ; then | |
2441 | eval "DEFAULT_$LINE" | |
2442 | else | |
2443 | no_cache=1 | |
2444 | fi | |
2445 | ||
2446 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2447 | |
2448 | fi | |
10f2d63a VZ |
2449 | |
2450 | ||
2451 | eval "$ac_cv_use_debug" | |
2452 | if test "$no_cache" != 1; then | |
2453 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2454 | fi | |
2455 | ||
2456 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2457 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2458 | else |
698dcdb6 | 2459 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2460 | fi |
698dcdb6 | 2461 | |
10f2d63a | 2462 | |
683dccda GD |
2463 | |
2464 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
24f5e003 | 2465 | echo "configure:2466: checking for --enable-precomp" >&5 |
683dccda GD |
2466 | no_cache=0 |
2467 | # Check whether --enable-precomp or --disable-precomp was given. | |
2468 | if test "${enable_precomp+set}" = set; then | |
2469 | enableval="$enable_precomp" | |
2470 | ||
2471 | if test "$enableval" = yes; then | |
2472 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2473 | else | |
2474 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2475 | fi | |
2476 | ||
2477 | else | |
2478 | ||
2479 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2480 | if test "x$LINE" != x ; then | |
2481 | eval "DEFAULT_$LINE" | |
2482 | else | |
2483 | no_cache=1 | |
2484 | fi | |
2485 | ||
2486 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2487 | ||
2488 | fi | |
2489 | ||
2490 | ||
2491 | eval "$ac_cv_use_precomp" | |
2492 | if test "$no_cache" != 1; then | |
2493 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2494 | fi | |
2495 | ||
2496 | if test "$wxUSE_PRECOMP" = yes; then | |
2497 | echo "$ac_t""yes" 1>&6 | |
2498 | else | |
2499 | echo "$ac_t""no" 1>&6 | |
2500 | fi | |
2501 | ||
2502 | ||
10f2d63a VZ |
2503 | if test "$wxUSE_DEBUG" = "yes"; then |
2504 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2505 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2506 | elif test "$wxUSE_DEBUG" = "no"; then | |
2507 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2508 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2509 | fi | |
2510 | ||
698dcdb6 VZ |
2511 | |
2512 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
24f5e003 | 2513 | echo "configure:2514: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2514 | no_cache=0 |
2515 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2516 | if test "${enable_debug_flag+set}" = set; then | |
2517 | enableval="$enable_debug_flag" | |
698dcdb6 | 2518 | |
10f2d63a VZ |
2519 | if test "$enableval" = yes; then |
2520 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2521 | else | |
2522 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2523 | fi | |
698dcdb6 | 2524 | |
10f2d63a | 2525 | else |
698dcdb6 | 2526 | |
10f2d63a VZ |
2527 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2528 | if test "x$LINE" != x ; then | |
2529 | eval "DEFAULT_$LINE" | |
2530 | else | |
2531 | no_cache=1 | |
2532 | fi | |
2533 | ||
2534 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2535 | |
2536 | fi | |
10f2d63a VZ |
2537 | |
2538 | ||
2539 | eval "$ac_cv_use_debug_flag" | |
2540 | if test "$no_cache" != 1; then | |
2541 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2542 | fi | |
2543 | ||
2544 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2545 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2546 | else |
698dcdb6 | 2547 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2548 | fi |
698dcdb6 | 2549 | |
10f2d63a | 2550 | |
698dcdb6 | 2551 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
24f5e003 | 2552 | echo "configure:2553: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2553 | no_cache=0 |
2554 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2555 | if test "${enable_debug_info+set}" = set; then | |
2556 | enableval="$enable_debug_info" | |
698dcdb6 | 2557 | |
10f2d63a VZ |
2558 | if test "$enableval" = yes; then |
2559 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2560 | else | |
2561 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2562 | fi | |
698dcdb6 | 2563 | |
10f2d63a | 2564 | else |
698dcdb6 | 2565 | |
10f2d63a VZ |
2566 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2567 | if test "x$LINE" != x ; then | |
2568 | eval "DEFAULT_$LINE" | |
2569 | else | |
2570 | no_cache=1 | |
2571 | fi | |
2572 | ||
2573 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2574 | |
2575 | fi | |
10f2d63a VZ |
2576 | |
2577 | ||
2578 | eval "$ac_cv_use_debug_info" | |
2579 | if test "$no_cache" != 1; then | |
2580 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2581 | fi | |
2582 | ||
2583 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2584 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2585 | else |
698dcdb6 | 2586 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2587 | fi |
698dcdb6 | 2588 | |
10f2d63a | 2589 | |
698dcdb6 | 2590 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
24f5e003 | 2591 | echo "configure:2592: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2592 | no_cache=0 |
2593 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2594 | if test "${enable_debug_gdb+set}" = set; then | |
2595 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2596 | |
10f2d63a VZ |
2597 | if test "$enableval" = yes; then |
2598 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2599 | else | |
2600 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2601 | fi | |
698dcdb6 | 2602 | |
10f2d63a | 2603 | else |
698dcdb6 | 2604 | |
10f2d63a VZ |
2605 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2606 | if test "x$LINE" != x ; then | |
2607 | eval "DEFAULT_$LINE" | |
2608 | else | |
2609 | no_cache=1 | |
2610 | fi | |
2611 | ||
2612 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2613 | |
2614 | fi | |
10f2d63a VZ |
2615 | |
2616 | ||
2617 | eval "$ac_cv_use_debug_gdb" | |
2618 | if test "$no_cache" != 1; then | |
2619 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2620 | fi | |
2621 | ||
2622 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2623 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2624 | else |
698dcdb6 | 2625 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2626 | fi |
698dcdb6 | 2627 | |
10f2d63a | 2628 | |
698dcdb6 | 2629 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
24f5e003 | 2630 | echo "configure:2631: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2631 | no_cache=0 |
2632 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2633 | if test "${enable_debug_cntxt+set}" = set; then | |
2634 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2635 | |
10f2d63a VZ |
2636 | if test "$enableval" = yes; then |
2637 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2638 | else | |
2639 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2640 | fi | |
698dcdb6 | 2641 | |
10f2d63a | 2642 | else |
698dcdb6 | 2643 | |
10f2d63a VZ |
2644 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2645 | if test "x$LINE" != x ; then | |
2646 | eval "DEFAULT_$LINE" | |
2647 | else | |
2648 | no_cache=1 | |
2649 | fi | |
2650 | ||
2651 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2652 | |
2653 | fi | |
10f2d63a VZ |
2654 | |
2655 | ||
2656 | eval "$ac_cv_use_debug_cntxt" | |
2657 | if test "$no_cache" != 1; then | |
2658 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2659 | fi | |
2660 | ||
2661 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2662 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2663 | else |
698dcdb6 | 2664 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2665 | fi |
698dcdb6 | 2666 | |
10f2d63a | 2667 | |
698dcdb6 | 2668 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
24f5e003 | 2669 | echo "configure:2670: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2670 | no_cache=0 |
2671 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2672 | if test "${enable_mem_tracing+set}" = set; then | |
2673 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2674 | |
10f2d63a VZ |
2675 | if test "$enableval" = yes; then |
2676 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2677 | else | |
2678 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2679 | fi | |
698dcdb6 | 2680 | |
10f2d63a | 2681 | else |
698dcdb6 | 2682 | |
10f2d63a VZ |
2683 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2684 | if test "x$LINE" != x ; then | |
2685 | eval "DEFAULT_$LINE" | |
2686 | else | |
2687 | no_cache=1 | |
2688 | fi | |
2689 | ||
2690 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2691 | |
2692 | fi | |
10f2d63a VZ |
2693 | |
2694 | ||
2695 | eval "$ac_cv_use_mem_tracing" | |
2696 | if test "$no_cache" != 1; then | |
2697 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2698 | fi | |
2699 | ||
2700 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2701 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2702 | else |
698dcdb6 | 2703 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2704 | fi |
698dcdb6 | 2705 | |
10f2d63a | 2706 | |
698dcdb6 | 2707 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
24f5e003 | 2708 | echo "configure:2709: checking for --enable-profile" >&5 |
10f2d63a VZ |
2709 | no_cache=0 |
2710 | # Check whether --enable-profile or --disable-profile was given. | |
2711 | if test "${enable_profile+set}" = set; then | |
2712 | enableval="$enable_profile" | |
698dcdb6 | 2713 | |
10f2d63a VZ |
2714 | if test "$enableval" = yes; then |
2715 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2716 | else | |
2717 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2718 | fi | |
698dcdb6 | 2719 | |
10f2d63a | 2720 | else |
698dcdb6 | 2721 | |
10f2d63a VZ |
2722 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2723 | if test "x$LINE" != x ; then | |
2724 | eval "DEFAULT_$LINE" | |
2725 | else | |
2726 | no_cache=1 | |
2727 | fi | |
2728 | ||
2729 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2730 | |
2731 | fi | |
10f2d63a VZ |
2732 | |
2733 | ||
2734 | eval "$ac_cv_use_profile" | |
2735 | if test "$no_cache" != 1; then | |
2736 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2737 | fi | |
2738 | ||
2739 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2740 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2741 | else |
698dcdb6 | 2742 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2743 | fi |
698dcdb6 | 2744 | |
10f2d63a | 2745 | |
698dcdb6 | 2746 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
24f5e003 | 2747 | echo "configure:2748: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2748 | no_cache=0 |
2749 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2750 | if test "${enable_no_rtti+set}" = set; then | |
2751 | enableval="$enable_no_rtti" | |
698dcdb6 | 2752 | |
10f2d63a VZ |
2753 | if test "$enableval" = yes; then |
2754 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2755 | else | |
2756 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2757 | fi | |
698dcdb6 | 2758 | |
10f2d63a | 2759 | else |
698dcdb6 | 2760 | |
10f2d63a VZ |
2761 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2762 | if test "x$LINE" != x ; then | |
2763 | eval "DEFAULT_$LINE" | |
2764 | else | |
2765 | no_cache=1 | |
2766 | fi | |
2767 | ||
2768 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2769 | |
2770 | fi | |
10f2d63a VZ |
2771 | |
2772 | ||
2773 | eval "$ac_cv_use_no_rtti" | |
2774 | if test "$no_cache" != 1; then | |
2775 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2776 | fi | |
2777 | ||
2778 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2779 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2780 | else |
698dcdb6 | 2781 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2782 | fi |
698dcdb6 | 2783 | |
10f2d63a | 2784 | |
698dcdb6 | 2785 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
24f5e003 | 2786 | echo "configure:2787: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2787 | no_cache=0 |
2788 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2789 | if test "${enable_no_exceptions+set}" = set; then | |
2790 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2791 | |
10f2d63a VZ |
2792 | if test "$enableval" = yes; then |
2793 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2794 | else | |
2795 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2796 | fi | |
698dcdb6 | 2797 | |
10f2d63a | 2798 | else |
698dcdb6 | 2799 | |
10f2d63a VZ |
2800 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2801 | if test "x$LINE" != x ; then | |
2802 | eval "DEFAULT_$LINE" | |
2803 | else | |
2804 | no_cache=1 | |
2805 | fi | |
2806 | ||
2807 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2808 | |
2809 | fi | |
10f2d63a VZ |
2810 | |
2811 | ||
2812 | eval "$ac_cv_use_no_exceptions" | |
2813 | if test "$no_cache" != 1; then | |
2814 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2815 | fi | |
2816 | ||
2817 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2818 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2819 | else |
698dcdb6 | 2820 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2821 | fi |
698dcdb6 | 2822 | |
10f2d63a | 2823 | |
698dcdb6 | 2824 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
24f5e003 | 2825 | echo "configure:2826: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2826 | no_cache=0 |
2827 | # Check whether --enable-permissive or --disable-permissive was given. | |
2828 | if test "${enable_permissive+set}" = set; then | |
2829 | enableval="$enable_permissive" | |
698dcdb6 | 2830 | |
10f2d63a VZ |
2831 | if test "$enableval" = yes; then |
2832 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2833 | else | |
2834 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2835 | fi | |
698dcdb6 | 2836 | |
10f2d63a | 2837 | else |
698dcdb6 | 2838 | |
10f2d63a VZ |
2839 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2840 | if test "x$LINE" != x ; then | |
2841 | eval "DEFAULT_$LINE" | |
2842 | else | |
2843 | no_cache=1 | |
2844 | fi | |
2845 | ||
2846 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2847 | |
2848 | fi | |
10f2d63a VZ |
2849 | |
2850 | ||
2851 | eval "$ac_cv_use_permissive" | |
2852 | if test "$no_cache" != 1; then | |
2853 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2854 | fi | |
2855 | ||
2856 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2857 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2858 | else |
698dcdb6 | 2859 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2860 | fi |
698dcdb6 | 2861 | |
10f2d63a | 2862 | |
698dcdb6 | 2863 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
24f5e003 | 2864 | echo "configure:2865: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2865 | no_cache=0 |
2866 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2867 | if test "${enable_no_deps+set}" = set; then | |
2868 | enableval="$enable_no_deps" | |
698dcdb6 | 2869 | |
10f2d63a VZ |
2870 | if test "$enableval" = yes; then |
2871 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2872 | else | |
2873 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2874 | fi | |
698dcdb6 | 2875 | |
10f2d63a | 2876 | else |
698dcdb6 | 2877 | |
10f2d63a VZ |
2878 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2879 | if test "x$LINE" != x ; then | |
2880 | eval "DEFAULT_$LINE" | |
2881 | else | |
2882 | no_cache=1 | |
2883 | fi | |
2884 | ||
2885 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2886 | |
2887 | fi | |
10f2d63a VZ |
2888 | |
2889 | ||
2890 | eval "$ac_cv_use_no_deps" | |
2891 | if test "$no_cache" != 1; then | |
2892 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2893 | fi | |
2894 | ||
2895 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2896 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2897 | else |
698dcdb6 | 2898 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2899 | fi |
698dcdb6 VZ |
2900 | |
2901 | ||
10f2d63a | 2902 | |
54276ccf | 2903 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
24f5e003 | 2904 | echo "configure:2905: checking for --enable-compat20" >&5 |
54276ccf VZ |
2905 | no_cache=0 |
2906 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2907 | if test "${enable_compat20+set}" = set; then | |
2908 | enableval="$enable_compat20" | |
2909 | ||
2910 | if test "$enableval" = yes; then | |
2911 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2912 | else | |
2913 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2914 | fi | |
2915 | ||
2916 | else | |
2917 | ||
2918 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2919 | if test "x$LINE" != x ; then | |
2920 | eval "DEFAULT_$LINE" | |
2921 | else | |
2922 | no_cache=1 | |
2923 | fi | |
2924 | ||
2925 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2926 | ||
2927 | fi | |
2928 | ||
2929 | ||
2930 | eval "$ac_cv_use_compat20" | |
2931 | if test "$no_cache" != 1; then | |
2932 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2933 | fi | |
2934 | ||
2935 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2936 | echo "$ac_t""yes" 1>&6 | |
2937 | else | |
2938 | echo "$ac_t""no" 1>&6 | |
2939 | fi | |
2940 | ||
2941 | ||
2942 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
24f5e003 | 2943 | echo "configure:2944: checking for --enable-compat22" >&5 |
54276ccf VZ |
2944 | no_cache=0 |
2945 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2946 | if test "${enable_compat22+set}" = set; then | |
2947 | enableval="$enable_compat22" | |
2948 | ||
2949 | if test "$enableval" = yes; then | |
2950 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2951 | else | |
2952 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2953 | fi | |
2954 | ||
2955 | else | |
2956 | ||
2957 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2958 | if test "x$LINE" != x ; then | |
2959 | eval "DEFAULT_$LINE" | |
2960 | else | |
2961 | no_cache=1 | |
2962 | fi | |
2963 | ||
2964 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2965 | ||
2966 | fi | |
2967 | ||
2968 | ||
2969 | eval "$ac_cv_use_compat22" | |
2970 | if test "$no_cache" != 1; then | |
2971 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2972 | fi | |
2973 | ||
2974 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2975 | echo "$ac_t""yes" 1>&6 | |
2976 | else | |
2977 | echo "$ac_t""no" 1>&6 | |
2978 | fi | |
2979 | ||
2980 | ||
2981 | ||
698dcdb6 VZ |
2982 | |
2983 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
24f5e003 | 2984 | echo "configure:2985: checking for --enable-intl" >&5 |
10f2d63a VZ |
2985 | no_cache=0 |
2986 | # Check whether --enable-intl or --disable-intl was given. | |
2987 | if test "${enable_intl+set}" = set; then | |
2988 | enableval="$enable_intl" | |
698dcdb6 | 2989 | |
10f2d63a VZ |
2990 | if test "$enableval" = yes; then |
2991 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2992 | else | |
2993 | ac_cv_use_intl='wxUSE_INTL=no' | |
2994 | fi | |
698dcdb6 | 2995 | |
10f2d63a | 2996 | else |
698dcdb6 | 2997 | |
10f2d63a VZ |
2998 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2999 | if test "x$LINE" != x ; then | |
3000 | eval "DEFAULT_$LINE" | |
3001 | else | |
3002 | no_cache=1 | |
3003 | fi | |
3004 | ||
3005 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3006 | |
3007 | fi | |
10f2d63a VZ |
3008 | |
3009 | ||
3010 | eval "$ac_cv_use_intl" | |
3011 | if test "$no_cache" != 1; then | |
3012 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3013 | fi | |
3014 | ||
3015 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3016 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3017 | else |
698dcdb6 | 3018 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3019 | fi |
698dcdb6 | 3020 | |
10f2d63a | 3021 | |
698dcdb6 | 3022 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
24f5e003 | 3023 | echo "configure:3024: checking for --enable-config" >&5 |
10f2d63a VZ |
3024 | no_cache=0 |
3025 | # Check whether --enable-config or --disable-config was given. | |
3026 | if test "${enable_config+set}" = set; then | |
3027 | enableval="$enable_config" | |
698dcdb6 | 3028 | |
10f2d63a VZ |
3029 | if test "$enableval" = yes; then |
3030 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3031 | else | |
3032 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3033 | fi | |
698dcdb6 | 3034 | |
10f2d63a | 3035 | else |
698dcdb6 | 3036 | |
10f2d63a VZ |
3037 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3038 | if test "x$LINE" != x ; then | |
3039 | eval "DEFAULT_$LINE" | |
3040 | else | |
3041 | no_cache=1 | |
3042 | fi | |
3043 | ||
3044 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3045 | |
3046 | fi | |
10f2d63a VZ |
3047 | |
3048 | ||
3049 | eval "$ac_cv_use_config" | |
3050 | if test "$no_cache" != 1; then | |
3051 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3052 | fi | |
3053 | ||
3054 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3055 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3056 | else |
698dcdb6 | 3057 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3058 | fi |
698dcdb6 VZ |
3059 | |
3060 | ||
b12915c1 | 3061 | |
a1622950 | 3062 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
24f5e003 | 3063 | echo "configure:3064: checking for --enable-protocols" >&5 |
a1622950 VZ |
3064 | no_cache=0 |
3065 | # Check whether --enable-protocols or --disable-protocols was given. | |
3066 | if test "${enable_protocols+set}" = set; then | |
3067 | enableval="$enable_protocols" | |
3068 | ||
3069 | if test "$enableval" = yes; then | |
3070 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3071 | else | |
3072 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3073 | fi | |
3074 | ||
3075 | else | |
3076 | ||
3077 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3078 | if test "x$LINE" != x ; then | |
3079 | eval "DEFAULT_$LINE" | |
3080 | else | |
3081 | no_cache=1 | |
3082 | fi | |
3083 | ||
3084 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3085 | ||
3086 | fi | |
3087 | ||
3088 | ||
3089 | eval "$ac_cv_use_protocols" | |
3090 | if test "$no_cache" != 1; then | |
3091 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3092 | fi | |
3093 | ||
3094 | if test "$wxUSE_PROTOCOL" = yes; then | |
3095 | echo "$ac_t""yes" 1>&6 | |
3096 | else | |
3097 | echo "$ac_t""no" 1>&6 | |
3098 | fi | |
3099 | ||
3100 | ||
3101 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
24f5e003 | 3102 | echo "configure:3103: checking for --enable-ftp" >&5 |
a1622950 VZ |
3103 | no_cache=0 |
3104 | # Check whether --enable-ftp or --disable-ftp was given. | |
3105 | if test "${enable_ftp+set}" = set; then | |
3106 | enableval="$enable_ftp" | |
3107 | ||
3108 | if test "$enableval" = yes; then | |
3109 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3110 | else | |
3111 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3112 | fi | |
3113 | ||
3114 | else | |
3115 | ||
3116 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3117 | if test "x$LINE" != x ; then | |
3118 | eval "DEFAULT_$LINE" | |
3119 | else | |
3120 | no_cache=1 | |
3121 | fi | |
3122 | ||
3123 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3124 | ||
3125 | fi | |
3126 | ||
3127 | ||
3128 | eval "$ac_cv_use_ftp" | |
3129 | if test "$no_cache" != 1; then | |
3130 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3131 | fi | |
3132 | ||
3133 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3134 | echo "$ac_t""yes" 1>&6 | |
3135 | else | |
3136 | echo "$ac_t""no" 1>&6 | |
3137 | fi | |
3138 | ||
3139 | ||
3140 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
24f5e003 | 3141 | echo "configure:3142: checking for --enable-http" >&5 |
a1622950 VZ |
3142 | no_cache=0 |
3143 | # Check whether --enable-http or --disable-http was given. | |
3144 | if test "${enable_http+set}" = set; then | |
3145 | enableval="$enable_http" | |
3146 | ||
3147 | if test "$enableval" = yes; then | |
3148 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3149 | else | |
3150 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3151 | fi | |
3152 | ||
3153 | else | |
3154 | ||
3155 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3156 | if test "x$LINE" != x ; then | |
3157 | eval "DEFAULT_$LINE" | |
3158 | else | |
3159 | no_cache=1 | |
3160 | fi | |
3161 | ||
3162 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3163 | ||
3164 | fi | |
3165 | ||
3166 | ||
3167 | eval "$ac_cv_use_http" | |
3168 | if test "$no_cache" != 1; then | |
3169 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3170 | fi | |
3171 | ||
3172 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3173 | echo "$ac_t""yes" 1>&6 | |
3174 | else | |
3175 | echo "$ac_t""no" 1>&6 | |
3176 | fi | |
3177 | ||
3178 | ||
3179 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
24f5e003 | 3180 | echo "configure:3181: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3181 | no_cache=0 |
3182 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3183 | if test "${enable_fileproto+set}" = set; then | |
3184 | enableval="$enable_fileproto" | |
3185 | ||
3186 | if test "$enableval" = yes; then | |
3187 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3188 | else | |
3189 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3190 | fi | |
3191 | ||
3192 | else | |
3193 | ||
3194 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3195 | if test "x$LINE" != x ; then | |
3196 | eval "DEFAULT_$LINE" | |
3197 | else | |
3198 | no_cache=1 | |
3199 | fi | |
3200 | ||
3201 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3202 | ||
3203 | fi | |
3204 | ||
3205 | ||
3206 | eval "$ac_cv_use_fileproto" | |
3207 | if test "$no_cache" != 1; then | |
3208 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3209 | fi | |
3210 | ||
3211 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3212 | echo "$ac_t""yes" 1>&6 | |
3213 | else | |
3214 | echo "$ac_t""no" 1>&6 | |
3215 | fi | |
3216 | ||
3217 | ||
698dcdb6 | 3218 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
24f5e003 | 3219 | echo "configure:3220: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3220 | no_cache=0 |
3221 | # Check whether --enable-sockets or --disable-sockets was given. | |
3222 | if test "${enable_sockets+set}" = set; then | |
3223 | enableval="$enable_sockets" | |
698dcdb6 | 3224 | |
10f2d63a VZ |
3225 | if test "$enableval" = yes; then |
3226 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3227 | else | |
3228 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3229 | fi | |
698dcdb6 | 3230 | |
10f2d63a | 3231 | else |
698dcdb6 | 3232 | |
10f2d63a VZ |
3233 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3234 | if test "x$LINE" != x ; then | |
3235 | eval "DEFAULT_$LINE" | |
3236 | else | |
3237 | no_cache=1 | |
3238 | fi | |
3239 | ||
3240 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3241 | |
3242 | fi | |
10f2d63a VZ |
3243 | |
3244 | ||
3245 | eval "$ac_cv_use_sockets" | |
3246 | if test "$no_cache" != 1; then | |
3247 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3248 | fi | |
3249 | ||
3250 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3251 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3252 | else |
698dcdb6 | 3253 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3254 | fi |
698dcdb6 | 3255 | |
b12915c1 | 3256 | |
698dcdb6 VZ |
3257 | |
3258 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
24f5e003 | 3259 | echo "configure:3260: checking for --enable-ipc" >&5 |
10f2d63a | 3260 | no_cache=0 |
eb4efbdc VZ |
3261 | # Check whether --enable-ipc or --disable-ipc was given. |
3262 | if test "${enable_ipc+set}" = set; then | |
3263 | enableval="$enable_ipc" | |
698dcdb6 | 3264 | |
10f2d63a | 3265 | if test "$enableval" = yes; then |
eb4efbdc | 3266 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3267 | else |
eb4efbdc | 3268 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3269 | fi |
698dcdb6 | 3270 | |
10f2d63a | 3271 | else |
698dcdb6 | 3272 | |
eb4efbdc | 3273 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3274 | if test "x$LINE" != x ; then |
3275 | eval "DEFAULT_$LINE" | |
3276 | else | |
3277 | no_cache=1 | |
3278 | fi | |
3279 | ||
eb4efbdc | 3280 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3281 | |
3282 | fi | |
10f2d63a VZ |
3283 | |
3284 | ||
eb4efbdc | 3285 | eval "$ac_cv_use_ipc" |
10f2d63a | 3286 | if test "$no_cache" != 1; then |
eb4efbdc | 3287 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3288 | fi |
3289 | ||
eb4efbdc | 3290 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3291 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3292 | else |
698dcdb6 | 3293 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3294 | fi |
698dcdb6 VZ |
3295 | |
3296 | ||
eb4efbdc | 3297 | |
1e6feb95 | 3298 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
24f5e003 | 3299 | echo "configure:3300: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3300 | no_cache=0 |
3301 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3302 | if test "${enable_cmdline+set}" = set; then | |
3303 | enableval="$enable_cmdline" | |
3304 | ||
3305 | if test "$enableval" = yes; then | |
3306 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3307 | else | |
3308 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3309 | fi | |
3310 | ||
3311 | else | |
3312 | ||
3313 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3314 | if test "x$LINE" != x ; then | |
3315 | eval "DEFAULT_$LINE" | |
3316 | else | |
3317 | no_cache=1 | |
3318 | fi | |
3319 | ||
3320 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3321 | ||
3322 | fi | |
3323 | ||
3324 | ||
3325 | eval "$ac_cv_use_cmdline" | |
3326 | if test "$no_cache" != 1; then | |
3327 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3328 | fi | |
3329 | ||
3330 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3331 | echo "$ac_t""yes" 1>&6 | |
3332 | else | |
3333 | echo "$ac_t""no" 1>&6 | |
3334 | fi | |
3335 | ||
3336 | ||
3337 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
24f5e003 | 3338 | echo "configure:3339: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3339 | no_cache=0 |
3340 | # Check whether --enable-datetime or --disable-datetime was given. | |
3341 | if test "${enable_datetime+set}" = set; then | |
3342 | enableval="$enable_datetime" | |
3343 | ||
3344 | if test "$enableval" = yes; then | |
3345 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3346 | else | |
3347 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3348 | fi | |
3349 | ||
3350 | else | |
3351 | ||
3352 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3353 | if test "x$LINE" != x ; then | |
3354 | eval "DEFAULT_$LINE" | |
3355 | else | |
3356 | no_cache=1 | |
3357 | fi | |
3358 | ||
3359 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3360 | ||
3361 | fi | |
3362 | ||
3363 | ||
3364 | eval "$ac_cv_use_datetime" | |
3365 | if test "$no_cache" != 1; then | |
3366 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3367 | fi | |
3368 | ||
3369 | if test "$wxUSE_DATETIME" = yes; then | |
3370 | echo "$ac_t""yes" 1>&6 | |
3371 | else | |
3372 | echo "$ac_t""no" 1>&6 | |
3373 | fi | |
3374 | ||
3375 | ||
3376 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
24f5e003 | 3377 | echo "configure:3378: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3378 | no_cache=0 |
3379 | # Check whether --enable-timedate or --disable-timedate was given. | |
3380 | if test "${enable_timedate+set}" = set; then | |
3381 | enableval="$enable_timedate" | |
3382 | ||
3383 | if test "$enableval" = yes; then | |
3384 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3385 | else | |
3386 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3387 | fi | |
3388 | ||
3389 | else | |
3390 | ||
3391 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3392 | if test "x$LINE" != x ; then | |
3393 | eval "DEFAULT_$LINE" | |
3394 | else | |
3395 | no_cache=1 | |
3396 | fi | |
3397 | ||
3398 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3399 | ||
3400 | fi | |
3401 | ||
3402 | ||
3403 | eval "$ac_cv_use_timedate" | |
3404 | if test "$no_cache" != 1; then | |
3405 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3406 | fi | |
3407 | ||
3408 | if test "$wxUSE_TIMEDATE" = yes; then | |
3409 | echo "$ac_t""yes" 1>&6 | |
3410 | else | |
3411 | echo "$ac_t""no" 1>&6 | |
3412 | fi | |
3413 | ||
3414 | ||
3415 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
24f5e003 | 3416 | echo "configure:3417: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3417 | no_cache=0 |
3418 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3419 | if test "${enable_stopwatch+set}" = set; then | |
3420 | enableval="$enable_stopwatch" | |
3421 | ||
3422 | if test "$enableval" = yes; then | |
3423 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3424 | else | |
3425 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3426 | fi | |
3427 | ||
3428 | else | |
3429 | ||
3430 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3431 | if test "x$LINE" != x ; then | |
3432 | eval "DEFAULT_$LINE" | |
3433 | else | |
3434 | no_cache=1 | |
3435 | fi | |
3436 | ||
3437 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3438 | ||
3439 | fi | |
3440 | ||
3441 | ||
3442 | eval "$ac_cv_use_stopwatch" | |
3443 | if test "$no_cache" != 1; then | |
3444 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3445 | fi | |
3446 | ||
3447 | if test "$wxUSE_STOPWATCH" = yes; then | |
3448 | echo "$ac_t""yes" 1>&6 | |
3449 | else | |
3450 | echo "$ac_t""no" 1>&6 | |
3451 | fi | |
3452 | ||
3453 | ||
698dcdb6 | 3454 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
24f5e003 | 3455 | echo "configure:3456: checking for --enable-dialupman" >&5 |
10f2d63a | 3456 | no_cache=0 |
eb4efbdc VZ |
3457 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3458 | if test "${enable_dialupman+set}" = set; then | |
3459 | enableval="$enable_dialupman" | |
698dcdb6 | 3460 | |
10f2d63a | 3461 | if test "$enableval" = yes; then |
eb4efbdc | 3462 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3463 | else |
eb4efbdc | 3464 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3465 | fi |
698dcdb6 | 3466 | |
10f2d63a | 3467 | else |
698dcdb6 | 3468 | |
eb4efbdc | 3469 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3470 | if test "x$LINE" != x ; then |
3471 | eval "DEFAULT_$LINE" | |
3472 | else | |
3473 | no_cache=1 | |
3474 | fi | |
3475 | ||
eb4efbdc | 3476 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3477 | |
3478 | fi | |
10f2d63a VZ |
3479 | |
3480 | ||
eb4efbdc | 3481 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3482 | if test "$no_cache" != 1; then |
eb4efbdc | 3483 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3484 | fi |
3485 | ||
eb4efbdc | 3486 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3487 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3488 | else |
698dcdb6 | 3489 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3490 | fi |
698dcdb6 | 3491 | |
10f2d63a | 3492 | |
698dcdb6 | 3493 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
24f5e003 | 3494 | echo "configure:3495: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3495 | no_cache=0 |
3496 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3497 | if test "${enable_apple_ieee+set}" = set; then | |
3498 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3499 | |
10f2d63a VZ |
3500 | if test "$enableval" = yes; then |
3501 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3502 | else | |
3503 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3504 | fi | |
698dcdb6 | 3505 | |
10f2d63a | 3506 | else |
698dcdb6 | 3507 | |
10f2d63a VZ |
3508 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3509 | if test "x$LINE" != x ; then | |
3510 | eval "DEFAULT_$LINE" | |
3511 | else | |
3512 | no_cache=1 | |
3513 | fi | |
3514 | ||
3515 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3516 | |
3517 | fi | |
10f2d63a VZ |
3518 | |
3519 | ||
3520 | eval "$ac_cv_use_apple_ieee" | |
3521 | if test "$no_cache" != 1; then | |
3522 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3523 | fi | |
3524 | ||
3525 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3526 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3527 | else |
698dcdb6 | 3528 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3529 | fi |
698dcdb6 | 3530 | |
10f2d63a | 3531 | |
1e6feb95 | 3532 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
24f5e003 | 3533 | echo "configure:3534: checking for --enable-timer" >&5 |
10f2d63a | 3534 | no_cache=0 |
1e6feb95 VZ |
3535 | # Check whether --enable-timer or --disable-timer was given. |
3536 | if test "${enable_timer+set}" = set; then | |
3537 | enableval="$enable_timer" | |
698dcdb6 | 3538 | |
10f2d63a | 3539 | if test "$enableval" = yes; then |
1e6feb95 | 3540 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3541 | else |
1e6feb95 | 3542 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3543 | fi |
698dcdb6 | 3544 | |
10f2d63a | 3545 | else |
698dcdb6 | 3546 | |
1e6feb95 | 3547 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3548 | if test "x$LINE" != x ; then |
3549 | eval "DEFAULT_$LINE" | |
3550 | else | |
3551 | no_cache=1 | |
3552 | fi | |
3553 | ||
1e6feb95 | 3554 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3555 | |
3556 | fi | |
10f2d63a VZ |
3557 | |
3558 | ||
1e6feb95 | 3559 | eval "$ac_cv_use_timer" |
10f2d63a | 3560 | if test "$no_cache" != 1; then |
1e6feb95 | 3561 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3562 | fi |
3563 | ||
1e6feb95 | 3564 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3565 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3566 | else |
698dcdb6 | 3567 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3568 | fi |
698dcdb6 | 3569 | |
10f2d63a | 3570 | |
698dcdb6 | 3571 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
24f5e003 | 3572 | echo "configure:3573: checking for --enable-wave" >&5 |
10f2d63a VZ |
3573 | no_cache=0 |
3574 | # Check whether --enable-wave or --disable-wave was given. | |
3575 | if test "${enable_wave+set}" = set; then | |
3576 | enableval="$enable_wave" | |
698dcdb6 | 3577 | |
10f2d63a VZ |
3578 | if test "$enableval" = yes; then |
3579 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3580 | else | |
3581 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3582 | fi | |
698dcdb6 | 3583 | |
10f2d63a | 3584 | else |
698dcdb6 | 3585 | |
10f2d63a VZ |
3586 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3587 | if test "x$LINE" != x ; then | |
3588 | eval "DEFAULT_$LINE" | |
3589 | else | |
3590 | no_cache=1 | |
3591 | fi | |
3592 | ||
3593 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3594 | |
3595 | fi | |
10f2d63a VZ |
3596 | |
3597 | ||
3598 | eval "$ac_cv_use_wave" | |
3599 | if test "$no_cache" != 1; then | |
3600 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3601 | fi | |
3602 | ||
3603 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3604 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3605 | else |
698dcdb6 | 3606 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3607 | fi |
698dcdb6 | 3608 | |
10f2d63a | 3609 | |
698dcdb6 | 3610 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
24f5e003 | 3611 | echo "configure:3612: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3612 | no_cache=0 |
3613 | # Check whether --enable-fraction or --disable-fraction was given. | |
3614 | if test "${enable_fraction+set}" = set; then | |
3615 | enableval="$enable_fraction" | |
698dcdb6 | 3616 | |
10f2d63a VZ |
3617 | if test "$enableval" = yes; then |
3618 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3619 | else | |
3620 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3621 | fi | |
698dcdb6 | 3622 | |
10f2d63a | 3623 | else |
698dcdb6 | 3624 | |
10f2d63a VZ |
3625 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3626 | if test "x$LINE" != x ; then | |
3627 | eval "DEFAULT_$LINE" | |
3628 | else | |
3629 | no_cache=1 | |
3630 | fi | |
3631 | ||
3632 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3633 | |
3634 | fi | |
10f2d63a VZ |
3635 | |
3636 | ||
3637 | eval "$ac_cv_use_fraction" | |
3638 | if test "$no_cache" != 1; then | |
3639 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3640 | fi | |
3641 | ||
3642 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3643 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3644 | else |
698dcdb6 | 3645 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3646 | fi |
698dcdb6 | 3647 | |
10f2d63a | 3648 | |
698dcdb6 | 3649 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
24f5e003 | 3650 | echo "configure:3651: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3651 | no_cache=0 |
3652 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3653 | if test "${enable_dynlib+set}" = set; then | |
3654 | enableval="$enable_dynlib" | |
698dcdb6 | 3655 | |
10f2d63a VZ |
3656 | if test "$enableval" = yes; then |
3657 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3658 | else | |
3659 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3660 | fi | |
698dcdb6 | 3661 | |
10f2d63a | 3662 | else |
698dcdb6 | 3663 | |
10f2d63a VZ |
3664 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3665 | if test "x$LINE" != x ; then | |
3666 | eval "DEFAULT_$LINE" | |
3667 | else | |
3668 | no_cache=1 | |
3669 | fi | |
3670 | ||
3671 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3672 | |
3673 | fi | |
10f2d63a VZ |
3674 | |
3675 | ||
3676 | eval "$ac_cv_use_dynlib" | |
3677 | if test "$no_cache" != 1; then | |
3678 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3679 | fi | |
3680 | ||
3681 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3682 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3683 | else |
698dcdb6 | 3684 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3685 | fi |
698dcdb6 | 3686 | |
10f2d63a | 3687 | |
0b9ab0bd | 3688 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
24f5e003 | 3689 | echo "configure:3690: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3690 | no_cache=0 |
3691 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3692 | if test "${enable_dynamicloader+set}" = set; then | |
3693 | enableval="$enable_dynamicloader" | |
3694 | ||
3695 | if test "$enableval" = yes; then | |
3696 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3697 | else | |
3698 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3699 | fi | |
3700 | ||
3701 | else | |
3702 | ||
3703 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3704 | if test "x$LINE" != x ; then | |
3705 | eval "DEFAULT_$LINE" | |
3706 | else | |
3707 | no_cache=1 | |
3708 | fi | |
3709 | ||
3710 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3711 | ||
3712 | fi | |
3713 | ||
3714 | ||
3715 | eval "$ac_cv_use_dynamicloader" | |
3716 | if test "$no_cache" != 1; then | |
3717 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3718 | fi | |
3719 | ||
3720 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3721 | echo "$ac_t""yes" 1>&6 | |
3722 | else | |
3723 | echo "$ac_t""no" 1>&6 | |
3724 | fi | |
3725 | ||
3726 | ||
698dcdb6 | 3727 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
24f5e003 | 3728 | echo "configure:3729: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3729 | no_cache=0 |
3730 | # Check whether --enable-longlong or --disable-longlong was given. | |
3731 | if test "${enable_longlong+set}" = set; then | |
3732 | enableval="$enable_longlong" | |
698dcdb6 | 3733 | |
10f2d63a VZ |
3734 | if test "$enableval" = yes; then |
3735 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3736 | else | |
3737 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3738 | fi | |
698dcdb6 | 3739 | |
10f2d63a | 3740 | else |
698dcdb6 | 3741 | |
10f2d63a VZ |
3742 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3743 | if test "x$LINE" != x ; then | |
3744 | eval "DEFAULT_$LINE" | |
3745 | else | |
3746 | no_cache=1 | |
3747 | fi | |
3748 | ||
3749 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3750 | |
3751 | fi | |
10f2d63a VZ |
3752 | |
3753 | ||
3754 | eval "$ac_cv_use_longlong" | |
3755 | if test "$no_cache" != 1; then | |
3756 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3757 | fi | |
3758 | ||
3759 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3760 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3761 | else |
698dcdb6 | 3762 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3763 | fi |
698dcdb6 | 3764 | |
10f2d63a | 3765 | |
698dcdb6 | 3766 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
24f5e003 | 3767 | echo "configure:3768: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3768 | no_cache=0 |
3769 | # Check whether --enable-geometry or --disable-geometry was given. | |
3770 | if test "${enable_geometry+set}" = set; then | |
3771 | enableval="$enable_geometry" | |
698dcdb6 | 3772 | |
e8f65ba6 RR |
3773 | if test "$enableval" = yes; then |
3774 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3775 | else | |
3776 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3777 | fi | |
698dcdb6 | 3778 | |
e8f65ba6 | 3779 | else |
698dcdb6 | 3780 | |
e8f65ba6 RR |
3781 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3782 | if test "x$LINE" != x ; then | |
3783 | eval "DEFAULT_$LINE" | |
3784 | else | |
3785 | no_cache=1 | |
3786 | fi | |
3787 | ||
3788 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3789 | |
3790 | fi | |
e8f65ba6 RR |
3791 | |
3792 | ||
3793 | eval "$ac_cv_use_geometry" | |
3794 | if test "$no_cache" != 1; then | |
3795 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3796 | fi | |
3797 | ||
3798 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3799 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3800 | else |
698dcdb6 | 3801 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3802 | fi |
698dcdb6 | 3803 | |
e8f65ba6 | 3804 | |
698dcdb6 | 3805 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
24f5e003 | 3806 | echo "configure:3807: checking for --enable-log" >&5 |
10f2d63a VZ |
3807 | no_cache=0 |
3808 | # Check whether --enable-log or --disable-log was given. | |
3809 | if test "${enable_log+set}" = set; then | |
3810 | enableval="$enable_log" | |
698dcdb6 | 3811 | |
10f2d63a VZ |
3812 | if test "$enableval" = yes; then |
3813 | ac_cv_use_log='wxUSE_LOG=yes' | |
3814 | else | |
3815 | ac_cv_use_log='wxUSE_LOG=no' | |
3816 | fi | |
698dcdb6 | 3817 | |
10f2d63a | 3818 | else |
698dcdb6 | 3819 | |
10f2d63a VZ |
3820 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3821 | if test "x$LINE" != x ; then | |
3822 | eval "DEFAULT_$LINE" | |
3823 | else | |
3824 | no_cache=1 | |
3825 | fi | |
3826 | ||
3827 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3828 | |
3829 | fi | |
10f2d63a VZ |
3830 | |
3831 | ||
3832 | eval "$ac_cv_use_log" | |
3833 | if test "$no_cache" != 1; then | |
3834 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3835 | fi | |
3836 | ||
3837 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3838 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3839 | else |
698dcdb6 | 3840 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3841 | fi |
698dcdb6 | 3842 | |
10f2d63a | 3843 | |
698dcdb6 | 3844 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
24f5e003 | 3845 | echo "configure:3846: checking for --enable-streams" >&5 |
10f2d63a VZ |
3846 | no_cache=0 |
3847 | # Check whether --enable-streams or --disable-streams was given. | |
3848 | if test "${enable_streams+set}" = set; then | |
3849 | enableval="$enable_streams" | |
698dcdb6 | 3850 | |
10f2d63a VZ |
3851 | if test "$enableval" = yes; then |
3852 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3853 | else | |
3854 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3855 | fi | |
698dcdb6 | 3856 | |
10f2d63a | 3857 | else |
698dcdb6 | 3858 | |
10f2d63a VZ |
3859 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3860 | if test "x$LINE" != x ; then | |
3861 | eval "DEFAULT_$LINE" | |
3862 | else | |
3863 | no_cache=1 | |
3864 | fi | |
3865 | ||
3866 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3867 | |
3868 | fi | |
10f2d63a VZ |
3869 | |
3870 | ||
3871 | eval "$ac_cv_use_streams" | |
3872 | if test "$no_cache" != 1; then | |
3873 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3874 | fi | |
3875 | ||
3876 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3877 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3878 | else |
698dcdb6 | 3879 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3880 | fi |
698dcdb6 | 3881 | |
10f2d63a | 3882 | |
698dcdb6 | 3883 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
24f5e003 | 3884 | echo "configure:3885: checking for --enable-file" >&5 |
10f2d63a VZ |
3885 | no_cache=0 |
3886 | # Check whether --enable-file or --disable-file was given. | |
3887 | if test "${enable_file+set}" = set; then | |
3888 | enableval="$enable_file" | |
698dcdb6 | 3889 | |
10f2d63a VZ |
3890 | if test "$enableval" = yes; then |
3891 | ac_cv_use_file='wxUSE_FILE=yes' | |
3892 | else | |
3893 | ac_cv_use_file='wxUSE_FILE=no' | |
3894 | fi | |
698dcdb6 | 3895 | |
10f2d63a | 3896 | else |
698dcdb6 | 3897 | |
10f2d63a VZ |
3898 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3899 | if test "x$LINE" != x ; then | |
3900 | eval "DEFAULT_$LINE" | |
3901 | else | |
3902 | no_cache=1 | |
3903 | fi | |
3904 | ||
3905 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3906 | |
3907 | fi | |
10f2d63a VZ |
3908 | |
3909 | ||
3910 | eval "$ac_cv_use_file" | |
3911 | if test "$no_cache" != 1; then | |
3912 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3913 | fi | |
3914 | ||
3915 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3916 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3917 | else |
698dcdb6 | 3918 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3919 | fi |
698dcdb6 | 3920 | |
10f2d63a | 3921 | |
1e6feb95 | 3922 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
24f5e003 | 3923 | echo "configure:3924: checking for --enable-ffile" >&5 |
10f2d63a | 3924 | no_cache=0 |
1e6feb95 VZ |
3925 | # Check whether --enable-ffile or --disable-ffile was given. |
3926 | if test "${enable_ffile+set}" = set; then | |
3927 | enableval="$enable_ffile" | |
698dcdb6 | 3928 | |
10f2d63a | 3929 | if test "$enableval" = yes; then |
1e6feb95 | 3930 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3931 | else |
1e6feb95 | 3932 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3933 | fi |
698dcdb6 | 3934 | |
10f2d63a | 3935 | else |
698dcdb6 | 3936 | |
1e6feb95 | 3937 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3938 | if test "x$LINE" != x ; then |
3939 | eval "DEFAULT_$LINE" | |
3940 | else | |
3941 | no_cache=1 | |
3942 | fi | |
3943 | ||
1e6feb95 | 3944 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3945 | |
3946 | fi | |
10f2d63a VZ |
3947 | |
3948 | ||
1e6feb95 | 3949 | eval "$ac_cv_use_ffile" |
10f2d63a | 3950 | if test "$no_cache" != 1; then |
1e6feb95 | 3951 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3952 | fi |
3953 | ||
1e6feb95 | 3954 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3955 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3956 | else |
698dcdb6 | 3957 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3958 | fi |
698dcdb6 | 3959 | |
10f2d63a | 3960 | |
a3a584a7 | 3961 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
24f5e003 | 3962 | echo "configure:3963: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
3963 | no_cache=0 |
3964 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3965 | if test "${enable_textbuf+set}" = set; then | |
3966 | enableval="$enable_textbuf" | |
3967 | ||
3968 | if test "$enableval" = yes; then | |
3969 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
3970 | else | |
3971 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
3972 | fi | |
3973 | ||
3974 | else | |
3975 | ||
3976 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
3977 | if test "x$LINE" != x ; then | |
3978 | eval "DEFAULT_$LINE" | |
3979 | else | |
3980 | no_cache=1 | |
3981 | fi | |
3982 | ||
3983 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
3984 | ||
3985 | fi | |
3986 | ||
3987 | ||
3988 | eval "$ac_cv_use_textbuf" | |
3989 | if test "$no_cache" != 1; then | |
3990 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
3991 | fi | |
3992 | ||
3993 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
3994 | echo "$ac_t""yes" 1>&6 | |
3995 | else | |
3996 | echo "$ac_t""no" 1>&6 | |
3997 | fi | |
3998 | ||
3999 | ||
1e6feb95 | 4000 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
24f5e003 | 4001 | echo "configure:4002: checking for --enable-textfile" >&5 |
10f2d63a | 4002 | no_cache=0 |
1e6feb95 VZ |
4003 | # Check whether --enable-textfile or --disable-textfile was given. |
4004 | if test "${enable_textfile+set}" = set; then | |
4005 | enableval="$enable_textfile" | |
698dcdb6 | 4006 | |
10f2d63a | 4007 | if test "$enableval" = yes; then |
1e6feb95 | 4008 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4009 | else |
1e6feb95 | 4010 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4011 | fi |
698dcdb6 | 4012 | |
10f2d63a | 4013 | else |
698dcdb6 | 4014 | |
1e6feb95 | 4015 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4016 | if test "x$LINE" != x ; then |
4017 | eval "DEFAULT_$LINE" | |
4018 | else | |
4019 | no_cache=1 | |
4020 | fi | |
4021 | ||
1e6feb95 | 4022 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
4023 | |
4024 | fi | |
10f2d63a VZ |
4025 | |
4026 | ||
1e6feb95 | 4027 | eval "$ac_cv_use_textfile" |
10f2d63a | 4028 | if test "$no_cache" != 1; then |
1e6feb95 | 4029 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4030 | fi |
4031 | ||
1e6feb95 | 4032 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 4033 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4034 | else |
698dcdb6 | 4035 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4036 | fi |
698dcdb6 | 4037 | |
10f2d63a | 4038 | |
1e6feb95 | 4039 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
24f5e003 | 4040 | echo "configure:4041: checking for --enable-fontmap" >&5 |
10f2d63a | 4041 | no_cache=0 |
1e6feb95 VZ |
4042 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4043 | if test "${enable_fontmap+set}" = set; then | |
4044 | enableval="$enable_fontmap" | |
698dcdb6 | 4045 | |
10f2d63a | 4046 | if test "$enableval" = yes; then |
1e6feb95 | 4047 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4048 | else |
1e6feb95 | 4049 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4050 | fi |
698dcdb6 | 4051 | |
10f2d63a | 4052 | else |
698dcdb6 | 4053 | |
1e6feb95 | 4054 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4055 | if test "x$LINE" != x ; then |
4056 | eval "DEFAULT_$LINE" | |
4057 | else | |
4058 | no_cache=1 | |
4059 | fi | |
4060 | ||
1e6feb95 | 4061 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
4062 | |
4063 | fi | |
10f2d63a VZ |
4064 | |
4065 | ||
1e6feb95 | 4066 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4067 | if test "$no_cache" != 1; then |
1e6feb95 | 4068 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4069 | fi |
4070 | ||
1e6feb95 | 4071 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 4072 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4073 | else |
698dcdb6 | 4074 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4075 | fi |
698dcdb6 | 4076 | |
10f2d63a | 4077 | |
1e6feb95 | 4078 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
24f5e003 | 4079 | echo "configure:4080: checking for --enable-unicode" >&5 |
10f2d63a | 4080 | no_cache=0 |
1e6feb95 VZ |
4081 | # Check whether --enable-unicode or --disable-unicode was given. |
4082 | if test "${enable_unicode+set}" = set; then | |
4083 | enableval="$enable_unicode" | |
4084 | ||
4085 | if test "$enableval" = yes; then | |
4086 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4087 | else | |
4088 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4089 | fi | |
4090 | ||
4091 | else | |
4092 | ||
4093 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4094 | if test "x$LINE" != x ; then | |
4095 | eval "DEFAULT_$LINE" | |
4096 | else | |
4097 | no_cache=1 | |
4098 | fi | |
4099 | ||
4100 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4101 | ||
4102 | fi | |
4103 | ||
4104 | ||
4105 | eval "$ac_cv_use_unicode" | |
4106 | if test "$no_cache" != 1; then | |
4107 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4108 | fi | |
4109 | ||
4110 | if test "$wxUSE_UNICODE" = yes; then | |
4111 | echo "$ac_t""yes" 1>&6 | |
4112 | else | |
4113 | echo "$ac_t""no" 1>&6 | |
4114 | fi | |
4115 | ||
4116 | ||
a72a4bfa | 4117 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
24f5e003 | 4118 | echo "configure:4119: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4119 | no_cache=0 |
4120 | # Check whether --enable-mslu or --disable-mslu was given. | |
4121 | if test "${enable_mslu+set}" = set; then | |
4122 | enableval="$enable_mslu" | |
4123 | ||
4124 | if test "$enableval" = yes; then | |
4125 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4126 | else | |
4127 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4128 | fi | |
4129 | ||
4130 | else | |
4131 | ||
4132 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4133 | if test "x$LINE" != x ; then | |
4134 | eval "DEFAULT_$LINE" | |
4135 | else | |
4136 | no_cache=1 | |
4137 | fi | |
4138 | ||
4139 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4140 | ||
4141 | fi | |
4142 | ||
4143 | ||
4144 | eval "$ac_cv_use_mslu" | |
4145 | if test "$no_cache" != 1; then | |
4146 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4147 | fi | |
4148 | ||
4149 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4150 | echo "$ac_t""yes" 1>&6 | |
4151 | else | |
4152 | echo "$ac_t""no" 1>&6 | |
4153 | fi | |
4154 | ||
4155 | ||
1e6feb95 | 4156 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
24f5e003 | 4157 | echo "configure:4158: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4158 | no_cache=0 |
4159 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4160 | if test "${enable_wxprintfv+set}" = set; then | |
4161 | enableval="$enable_wxprintfv" | |
4162 | ||
4163 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4164 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4165 | else | |
4166 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4167 | fi | |
698dcdb6 | 4168 | |
10f2d63a | 4169 | else |
698dcdb6 | 4170 | |
10f2d63a VZ |
4171 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4172 | if test "x$LINE" != x ; then | |
4173 | eval "DEFAULT_$LINE" | |
4174 | else | |
4175 | no_cache=1 | |
4176 | fi | |
4177 | ||
4178 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4179 | |
4180 | fi | |
10f2d63a VZ |
4181 | |
4182 | ||
4183 | eval "$ac_cv_use_wxprintfv" | |
4184 | if test "$no_cache" != 1; then | |
4185 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4186 | fi | |
4187 | ||
4188 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4189 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4190 | else |
698dcdb6 | 4191 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4192 | fi |
698dcdb6 | 4193 | |
10f2d63a | 4194 | |
698dcdb6 | 4195 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
24f5e003 | 4196 | echo "configure:4197: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4197 | no_cache=0 |
4198 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4199 | if test "${enable_std_iostreams+set}" = set; then | |
4200 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4201 | |
10f2d63a VZ |
4202 | if test "$enableval" = yes; then |
4203 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4204 | else | |
4205 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4206 | fi | |
698dcdb6 | 4207 | |
10f2d63a | 4208 | else |
698dcdb6 | 4209 | |
10f2d63a VZ |
4210 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4211 | if test "x$LINE" != x ; then | |
4212 | eval "DEFAULT_$LINE" | |
4213 | else | |
4214 | no_cache=1 | |
4215 | fi | |
4216 | ||
4217 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4218 | |
4219 | fi | |
10f2d63a VZ |
4220 | |
4221 | ||
4222 | eval "$ac_cv_use_std_iostreams" | |
4223 | if test "$no_cache" != 1; then | |
4224 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4225 | fi | |
4226 | ||
4227 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 4228 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4229 | else |
698dcdb6 | 4230 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4231 | fi |
698dcdb6 | 4232 | |
10f2d63a | 4233 | |
698dcdb6 | 4234 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
24f5e003 | 4235 | echo "configure:4236: checking for --enable-filesystem" >&5 |
24528b0c VS |
4236 | no_cache=0 |
4237 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4238 | if test "${enable_filesystem+set}" = set; then | |
4239 | enableval="$enable_filesystem" | |
698dcdb6 | 4240 | |
24528b0c VS |
4241 | if test "$enableval" = yes; then |
4242 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4243 | else | |
4244 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4245 | fi | |
698dcdb6 | 4246 | |
24528b0c | 4247 | else |
698dcdb6 | 4248 | |
24528b0c VS |
4249 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4250 | if test "x$LINE" != x ; then | |
4251 | eval "DEFAULT_$LINE" | |
4252 | else | |
4253 | no_cache=1 | |
4254 | fi | |
4255 | ||
4256 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4257 | |
4258 | fi | |
24528b0c VS |
4259 | |
4260 | ||
4261 | eval "$ac_cv_use_filesystem" | |
4262 | if test "$no_cache" != 1; then | |
4263 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4264 | fi | |
4265 | ||
4266 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4267 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4268 | else |
698dcdb6 | 4269 | echo "$ac_t""no" 1>&6 |
24528b0c | 4270 | fi |
698dcdb6 | 4271 | |
24528b0c | 4272 | |
698dcdb6 | 4273 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
24f5e003 | 4274 | echo "configure:4275: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4275 | no_cache=0 |
4276 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4277 | if test "${enable_fs_inet+set}" = set; then | |
4278 | enableval="$enable_fs_inet" | |
698dcdb6 | 4279 | |
10f2d63a VZ |
4280 | if test "$enableval" = yes; then |
4281 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4282 | else | |
4283 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4284 | fi | |
698dcdb6 | 4285 | |
10f2d63a | 4286 | else |
698dcdb6 | 4287 | |
10f2d63a VZ |
4288 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4289 | if test "x$LINE" != x ; then | |
4290 | eval "DEFAULT_$LINE" | |
4291 | else | |
4292 | no_cache=1 | |
4293 | fi | |
4294 | ||
4295 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4296 | |
4297 | fi | |
10f2d63a VZ |
4298 | |
4299 | ||
4300 | eval "$ac_cv_use_fs_inet" | |
4301 | if test "$no_cache" != 1; then | |
4302 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4303 | fi | |
4304 | ||
4305 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4306 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4307 | else |
698dcdb6 | 4308 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4309 | fi |
698dcdb6 | 4310 | |
10f2d63a | 4311 | |
698dcdb6 | 4312 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
24f5e003 | 4313 | echo "configure:4314: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4314 | no_cache=0 |
4315 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4316 | if test "${enable_fs_zip+set}" = set; then | |
4317 | enableval="$enable_fs_zip" | |
698dcdb6 | 4318 | |
10f2d63a VZ |
4319 | if test "$enableval" = yes; then |
4320 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4321 | else | |
4322 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4323 | fi | |
698dcdb6 | 4324 | |
10f2d63a | 4325 | else |
698dcdb6 | 4326 | |
10f2d63a VZ |
4327 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4328 | if test "x$LINE" != x ; then | |
4329 | eval "DEFAULT_$LINE" | |
4330 | else | |
4331 | no_cache=1 | |
4332 | fi | |
4333 | ||
4334 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4335 | |
4336 | fi | |
10f2d63a VZ |
4337 | |
4338 | ||
4339 | eval "$ac_cv_use_fs_zip" | |
4340 | if test "$no_cache" != 1; then | |
4341 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4342 | fi | |
4343 | ||
4344 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4345 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4346 | else |
698dcdb6 | 4347 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4348 | fi |
698dcdb6 | 4349 | |
10f2d63a | 4350 | |
698dcdb6 | 4351 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
24f5e003 | 4352 | echo "configure:4353: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4353 | no_cache=0 |
4354 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4355 | if test "${enable_zipstream+set}" = set; then | |
4356 | enableval="$enable_zipstream" | |
698dcdb6 | 4357 | |
10f2d63a VZ |
4358 | if test "$enableval" = yes; then |
4359 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4360 | else | |
4361 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4362 | fi | |
698dcdb6 | 4363 | |
10f2d63a | 4364 | else |
698dcdb6 | 4365 | |
10f2d63a VZ |
4366 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4367 | if test "x$LINE" != x ; then | |
4368 | eval "DEFAULT_$LINE" | |
4369 | else | |
4370 | no_cache=1 | |
4371 | fi | |
4372 | ||
4373 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4374 | |
4375 | fi | |
10f2d63a VZ |
4376 | |
4377 | ||
4378 | eval "$ac_cv_use_zipstream" | |
4379 | if test "$no_cache" != 1; then | |
4380 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4381 | fi | |
4382 | ||
4383 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4384 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4385 | else |
698dcdb6 | 4386 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4387 | fi |
698dcdb6 | 4388 | |
10f2d63a | 4389 | |
698dcdb6 VZ |
4390 | |
4391 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
24f5e003 | 4392 | echo "configure:4393: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4393 | no_cache=0 |
4394 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4395 | if test "${enable_catch_segvs+set}" = set; then | |
4396 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4397 | |
eb4efbdc VZ |
4398 | if test "$enableval" = yes; then |
4399 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4400 | else | |
4401 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4402 | fi | |
698dcdb6 | 4403 | |
eb4efbdc | 4404 | else |
698dcdb6 | 4405 | |
eb4efbdc VZ |
4406 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4407 | if test "x$LINE" != x ; then | |
4408 | eval "DEFAULT_$LINE" | |
4409 | else | |
4410 | no_cache=1 | |
4411 | fi | |
4412 | ||
4413 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4414 | |
4415 | fi | |
eb4efbdc VZ |
4416 | |
4417 | ||
4418 | eval "$ac_cv_use_catch_segvs" | |
4419 | if test "$no_cache" != 1; then | |
4420 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4421 | fi | |
4422 | ||
4423 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4424 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4425 | else |
698dcdb6 | 4426 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4427 | fi |
698dcdb6 | 4428 | |
eb4efbdc | 4429 | |
698dcdb6 | 4430 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
24f5e003 | 4431 | echo "configure:4432: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4432 | no_cache=0 |
4433 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4434 | if test "${enable_snglinst+set}" = set; then | |
4435 | enableval="$enable_snglinst" | |
698dcdb6 | 4436 | |
4f3c5f06 VZ |
4437 | if test "$enableval" = yes; then |
4438 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4439 | else | |
4440 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4441 | fi | |
698dcdb6 | 4442 | |
4f3c5f06 | 4443 | else |
698dcdb6 | 4444 | |
4f3c5f06 VZ |
4445 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4446 | if test "x$LINE" != x ; then | |
4447 | eval "DEFAULT_$LINE" | |
4448 | else | |
4449 | no_cache=1 | |
4450 | fi | |
4451 | ||
4452 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4453 | |
4454 | fi | |
4f3c5f06 VZ |
4455 | |
4456 | ||
4457 | eval "$ac_cv_use_snglinst" | |
4458 | if test "$no_cache" != 1; then | |
4459 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4460 | fi | |
4461 | ||
4462 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4463 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4464 | else |
698dcdb6 | 4465 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4466 | fi |
698dcdb6 VZ |
4467 | |
4468 | ||
eb4efbdc | 4469 | |
1e6feb95 | 4470 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
24f5e003 | 4471 | echo "configure:4472: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4472 | no_cache=0 |
4473 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4474 | if test "${enable_mimetype+set}" = set; then | |
4475 | enableval="$enable_mimetype" | |
4476 | ||
4477 | if test "$enableval" = yes; then | |
4478 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4479 | else | |
4480 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4481 | fi | |
4482 | ||
4483 | else | |
4484 | ||
4485 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4486 | if test "x$LINE" != x ; then | |
4487 | eval "DEFAULT_$LINE" | |
4488 | else | |
4489 | no_cache=1 | |
4490 | fi | |
4491 | ||
4492 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4493 | ||
4494 | fi | |
4495 | ||
4496 | ||
4497 | eval "$ac_cv_use_mimetype" | |
4498 | if test "$no_cache" != 1; then | |
4499 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4500 | fi | |
4501 | ||
4502 | if test "$wxUSE_MIMETYPE" = yes; then | |
4503 | echo "$ac_t""yes" 1>&6 | |
4504 | else | |
4505 | echo "$ac_t""no" 1>&6 | |
4506 | fi | |
4507 | ||
4508 | ||
3e44f09d | 4509 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
24f5e003 | 4510 | echo "configure:4511: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4511 | no_cache=0 |
4512 | # Check whether --enable-system_options or --disable-system_options was given. | |
4513 | if test "${enable_system_options+set}" = set; then | |
4514 | enableval="$enable_system_options" | |
4515 | ||
4516 | if test "$enableval" = yes; then | |
4517 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4518 | else | |
4519 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4520 | fi | |
4521 | ||
4522 | else | |
4523 | ||
4524 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4525 | if test "x$LINE" != x ; then | |
4526 | eval "DEFAULT_$LINE" | |
4527 | else | |
4528 | no_cache=1 | |
4529 | fi | |
4530 | ||
4531 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4532 | ||
4533 | fi | |
4534 | ||
4535 | ||
4536 | eval "$ac_cv_use_system_options" | |
4537 | if test "$no_cache" != 1; then | |
4538 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4539 | fi | |
4540 | ||
4541 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4542 | echo "$ac_t""yes" 1>&6 | |
4543 | else | |
4544 | echo "$ac_t""no" 1>&6 | |
4545 | fi | |
4546 | ||
4547 | ||
1e6feb95 | 4548 | |
4cdb0ab0 | 4549 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
24f5e003 | 4550 | echo "configure:4551: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4551 | no_cache=0 |
4552 | # Check whether --enable-url or --disable-url was given. | |
4553 | if test "${enable_url+set}" = set; then | |
4554 | enableval="$enable_url" | |
4555 | ||
4556 | if test "$enableval" = yes; then | |
4557 | ac_cv_use_url='wxUSE_URL=yes' | |
4558 | else | |
4559 | ac_cv_use_url='wxUSE_URL=no' | |
4560 | fi | |
4561 | ||
4562 | else | |
4563 | ||
4564 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4565 | if test "x$LINE" != x ; then | |
4566 | eval "DEFAULT_$LINE" | |
4567 | else | |
4568 | no_cache=1 | |
4569 | fi | |
4570 | ||
4571 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4572 | ||
4573 | fi | |
4574 | ||
4575 | ||
4576 | eval "$ac_cv_use_url" | |
4577 | if test "$no_cache" != 1; then | |
4578 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4579 | fi | |
4580 | ||
4581 | if test "$wxUSE_URL" = yes; then | |
4582 | echo "$ac_t""yes" 1>&6 | |
4583 | else | |
4584 | echo "$ac_t""no" 1>&6 | |
4585 | fi | |
4586 | ||
4587 | ||
4588 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
24f5e003 | 4589 | echo "configure:4590: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4590 | no_cache=0 |
4591 | # Check whether --enable-protocol or --disable-protocol was given. | |
4592 | if test "${enable_protocol+set}" = set; then | |
4593 | enableval="$enable_protocol" | |
4594 | ||
4595 | if test "$enableval" = yes; then | |
4596 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4597 | else | |
4598 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4599 | fi | |
4600 | ||
4601 | else | |
4602 | ||
4603 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4604 | if test "x$LINE" != x ; then | |
4605 | eval "DEFAULT_$LINE" | |
4606 | else | |
4607 | no_cache=1 | |
4608 | fi | |
4609 | ||
4610 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4611 | ||
4612 | fi | |
4613 | ||
4614 | ||
4615 | eval "$ac_cv_use_protocol" | |
4616 | if test "$no_cache" != 1; then | |
4617 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4618 | fi | |
4619 | ||
4620 | if test "$wxUSE_PROTOCOL" = yes; then | |
4621 | echo "$ac_t""yes" 1>&6 | |
4622 | else | |
4623 | echo "$ac_t""no" 1>&6 | |
4624 | fi | |
4625 | ||
4626 | ||
4627 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 | |
24f5e003 | 4628 | echo "configure:4629: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4629 | no_cache=0 |
4630 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4631 | if test "${enable_protocol_http+set}" = set; then | |
4632 | enableval="$enable_protocol_http" | |
4633 | ||
4634 | if test "$enableval" = yes; then | |
4635 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4636 | else | |
4637 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4638 | fi | |
4639 | ||
4640 | else | |
4641 | ||
4642 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4643 | if test "x$LINE" != x ; then | |
4644 | eval "DEFAULT_$LINE" | |
4645 | else | |
4646 | no_cache=1 | |
4647 | fi | |
4648 | ||
4649 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4650 | ||
4651 | fi | |
4652 | ||
4653 | ||
4654 | eval "$ac_cv_use_protocol_http" | |
4655 | if test "$no_cache" != 1; then | |
4656 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4657 | fi | |
4658 | ||
4659 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4660 | echo "$ac_t""yes" 1>&6 | |
4661 | else | |
4662 | echo "$ac_t""no" 1>&6 | |
4663 | fi | |
4664 | ||
4665 | ||
4666 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 | |
24f5e003 | 4667 | echo "configure:4668: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4668 | no_cache=0 |
4669 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4670 | if test "${enable_protocol_ftp+set}" = set; then | |
4671 | enableval="$enable_protocol_ftp" | |
4672 | ||
4673 | if test "$enableval" = yes; then | |
4674 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4675 | else | |
4676 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4677 | fi | |
4678 | ||
4679 | else | |
4680 | ||
4681 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4682 | if test "x$LINE" != x ; then | |
4683 | eval "DEFAULT_$LINE" | |
4684 | else | |
4685 | no_cache=1 | |
4686 | fi | |
4687 | ||
4688 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4689 | ||
4690 | fi | |
4691 | ||
4692 | ||
4693 | eval "$ac_cv_use_protocol_ftp" | |
4694 | if test "$no_cache" != 1; then | |
4695 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4696 | fi | |
4697 | ||
4698 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4699 | echo "$ac_t""yes" 1>&6 | |
4700 | else | |
4701 | echo "$ac_t""no" 1>&6 | |
4702 | fi | |
4703 | ||
4704 | ||
4705 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 | |
24f5e003 | 4706 | echo "configure:4707: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4707 | no_cache=0 |
4708 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4709 | if test "${enable_protocol_file+set}" = set; then | |
4710 | enableval="$enable_protocol_file" | |
4711 | ||
4712 | if test "$enableval" = yes; then | |
4713 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4714 | else | |
4715 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4716 | fi | |
4717 | ||
4718 | else | |
4719 | ||
4720 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4721 | if test "x$LINE" != x ; then | |
4722 | eval "DEFAULT_$LINE" | |
4723 | else | |
4724 | no_cache=1 | |
4725 | fi | |
4726 | ||
4727 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4728 | ||
4729 | fi | |
4730 | ||
4731 | ||
4732 | eval "$ac_cv_use_protocol_file" | |
4733 | if test "$no_cache" != 1; then | |
4734 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4735 | fi | |
4736 | ||
4737 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4738 | echo "$ac_t""yes" 1>&6 | |
4739 | else | |
4740 | echo "$ac_t""no" 1>&6 | |
4741 | fi | |
4742 | ||
4743 | ||
4744 | ||
4745 | ||
698dcdb6 VZ |
4746 | |
4747 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
24f5e003 | 4748 | echo "configure:4749: checking for --enable-threads" >&5 |
10f2d63a VZ |
4749 | no_cache=0 |
4750 | # Check whether --enable-threads or --disable-threads was given. | |
4751 | if test "${enable_threads+set}" = set; then | |
4752 | enableval="$enable_threads" | |
698dcdb6 | 4753 | |
10f2d63a VZ |
4754 | if test "$enableval" = yes; then |
4755 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4756 | else | |
4757 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4758 | fi | |
698dcdb6 | 4759 | |
10f2d63a | 4760 | else |
698dcdb6 | 4761 | |
10f2d63a VZ |
4762 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4763 | if test "x$LINE" != x ; then | |
4764 | eval "DEFAULT_$LINE" | |
4765 | else | |
4766 | no_cache=1 | |
4767 | fi | |
4768 | ||
4769 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4770 | |
4771 | fi | |
10f2d63a VZ |
4772 | |
4773 | ||
4774 | eval "$ac_cv_use_threads" | |
4775 | if test "$no_cache" != 1; then | |
4776 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4777 | fi | |
4778 | ||
4779 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4780 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4781 | else |
698dcdb6 | 4782 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4783 | fi |
698dcdb6 | 4784 | |
10f2d63a | 4785 | |
b12915c1 VZ |
4786 | if test "$wxUSE_GUI" = "yes"; then |
4787 | ||
698dcdb6 VZ |
4788 | |
4789 | ||
4790 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
24f5e003 | 4791 | echo "configure:4792: checking for --enable-docview" >&5 |
10f2d63a VZ |
4792 | no_cache=0 |
4793 | # Check whether --enable-docview or --disable-docview was given. | |
4794 | if test "${enable_docview+set}" = set; then | |
4795 | enableval="$enable_docview" | |
698dcdb6 | 4796 | |
10f2d63a VZ |
4797 | if test "$enableval" = yes; then |
4798 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4799 | else | |
4800 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4801 | fi | |
698dcdb6 | 4802 | |
10f2d63a | 4803 | else |
698dcdb6 | 4804 | |
10f2d63a VZ |
4805 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4806 | if test "x$LINE" != x ; then | |
4807 | eval "DEFAULT_$LINE" | |
4808 | else | |
4809 | no_cache=1 | |
4810 | fi | |
4811 | ||
4812 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4813 | |
4814 | fi | |
10f2d63a VZ |
4815 | |
4816 | ||
4817 | eval "$ac_cv_use_docview" | |
4818 | if test "$no_cache" != 1; then | |
4819 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4820 | fi | |
4821 | ||
4822 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4823 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4824 | else |
698dcdb6 | 4825 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4826 | fi |
698dcdb6 | 4827 | |
10f2d63a | 4828 | |
698dcdb6 | 4829 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
24f5e003 | 4830 | echo "configure:4831: checking for --enable-help" >&5 |
10f2d63a VZ |
4831 | no_cache=0 |
4832 | # Check whether --enable-help or --disable-help was given. | |
4833 | if test "${enable_help+set}" = set; then | |
4834 | enableval="$enable_help" | |
698dcdb6 | 4835 | |
10f2d63a VZ |
4836 | if test "$enableval" = yes; then |
4837 | ac_cv_use_help='wxUSE_HELP=yes' | |
4838 | else | |
4839 | ac_cv_use_help='wxUSE_HELP=no' | |
4840 | fi | |
698dcdb6 | 4841 | |
10f2d63a | 4842 | else |
698dcdb6 | 4843 | |
10f2d63a VZ |
4844 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4845 | if test "x$LINE" != x ; then | |
4846 | eval "DEFAULT_$LINE" | |
4847 | else | |
4848 | no_cache=1 | |
4849 | fi | |
4850 | ||
4851 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4852 | |
4853 | fi | |
10f2d63a VZ |
4854 | |
4855 | ||
4856 | eval "$ac_cv_use_help" | |
4857 | if test "$no_cache" != 1; then | |
4858 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4859 | fi | |
4860 | ||
4861 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4862 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4863 | else |
698dcdb6 | 4864 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4865 | fi |
698dcdb6 | 4866 | |
10f2d63a | 4867 | |
29fd3c0c | 4868 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
24f5e003 | 4869 | echo "configure:4870: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4870 | no_cache=0 |
4871 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4872 | if test "${enable_mshtmlhelp+set}" = set; then | |
4873 | enableval="$enable_mshtmlhelp" | |
4874 | ||
4875 | if test "$enableval" = yes; then | |
4876 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4877 | else | |
4878 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4879 | fi | |
4880 | ||
4881 | else | |
4882 | ||
4883 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4884 | if test "x$LINE" != x ; then | |
4885 | eval "DEFAULT_$LINE" | |
4886 | else | |
4887 | no_cache=1 | |
4888 | fi | |
4889 | ||
4890 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4891 | ||
4892 | fi | |
4893 | ||
4894 | ||
4895 | eval "$ac_cv_use_mshtmlhelp" | |
4896 | if test "$no_cache" != 1; then | |
4897 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4898 | fi | |
4899 | ||
4900 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4901 | echo "$ac_t""yes" 1>&6 | |
4902 | else | |
4903 | echo "$ac_t""no" 1>&6 | |
4904 | fi | |
4905 | ||
4906 | ||
3379ed37 | 4907 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
24f5e003 | 4908 | echo "configure:4909: checking for --enable-html" >&5 |
3379ed37 VZ |
4909 | no_cache=0 |
4910 | # Check whether --enable-html or --disable-html was given. | |
4911 | if test "${enable_html+set}" = set; then | |
4912 | enableval="$enable_html" | |
4913 | ||
4914 | if test "$enableval" = yes; then | |
4915 | ac_cv_use_html='wxUSE_HTML=yes' | |
4916 | else | |
4917 | ac_cv_use_html='wxUSE_HTML=no' | |
4918 | fi | |
4919 | ||
4920 | else | |
4921 | ||
4922 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4923 | if test "x$LINE" != x ; then | |
4924 | eval "DEFAULT_$LINE" | |
4925 | else | |
4926 | no_cache=1 | |
4927 | fi | |
4928 | ||
4929 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4930 | ||
4931 | fi | |
4932 | ||
4933 | ||
4934 | eval "$ac_cv_use_html" | |
4935 | if test "$no_cache" != 1; then | |
4936 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4937 | fi | |
4938 | ||
4939 | if test "$wxUSE_HTML" = yes; then | |
4940 | echo "$ac_t""yes" 1>&6 | |
4941 | else | |
4942 | echo "$ac_t""no" 1>&6 | |
4943 | fi | |
4944 | ||
4945 | ||
4946 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
24f5e003 | 4947 | echo "configure:4948: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4948 | no_cache=0 |
4949 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4950 | if test "${enable_htmlhelp+set}" = set; then | |
4951 | enableval="$enable_htmlhelp" | |
4952 | ||
4953 | if test "$enableval" = yes; then | |
4954 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4955 | else | |
4956 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4957 | fi | |
4958 | ||
4959 | else | |
4960 | ||
4961 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4962 | if test "x$LINE" != x ; then | |
4963 | eval "DEFAULT_$LINE" | |
4964 | else | |
4965 | no_cache=1 | |
4966 | fi | |
4967 | ||
4968 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4969 | ||
4970 | fi | |
4971 | ||
4972 | ||
4973 | eval "$ac_cv_use_htmlhelp" | |
4974 | if test "$no_cache" != 1; then | |
4975 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4976 | fi | |
4977 | ||
4978 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4979 | echo "$ac_t""yes" 1>&6 | |
4980 | else | |
4981 | echo "$ac_t""no" 1>&6 | |
4982 | fi | |
4983 | ||
4984 | ||
698dcdb6 | 4985 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
24f5e003 | 4986 | echo "configure:4987: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4987 | no_cache=0 |
4988 | # Check whether --enable-constraints or --disable-constraints was given. | |
4989 | if test "${enable_constraints+set}" = set; then | |
4990 | enableval="$enable_constraints" | |
698dcdb6 | 4991 | |
10f2d63a VZ |
4992 | if test "$enableval" = yes; then |
4993 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4994 | else | |
4995 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4996 | fi | |
698dcdb6 | 4997 | |
10f2d63a | 4998 | else |
698dcdb6 | 4999 | |
10f2d63a VZ |
5000 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5001 | if test "x$LINE" != x ; then | |
5002 | eval "DEFAULT_$LINE" | |
5003 | else | |
5004 | no_cache=1 | |
5005 | fi | |
5006 | ||
5007 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
5008 | |
5009 | fi | |
10f2d63a VZ |
5010 | |
5011 | ||
5012 | eval "$ac_cv_use_constraints" | |
5013 | if test "$no_cache" != 1; then | |
5014 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5015 | fi | |
5016 | ||
5017 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 5018 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5019 | else |
698dcdb6 | 5020 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5021 | fi |
698dcdb6 | 5022 | |
10f2d63a | 5023 | |
698dcdb6 | 5024 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
24f5e003 | 5025 | echo "configure:5026: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5026 | no_cache=0 |
5027 | # Check whether --enable-printarch or --disable-printarch was given. | |
5028 | if test "${enable_printarch+set}" = set; then | |
5029 | enableval="$enable_printarch" | |
698dcdb6 | 5030 | |
10f2d63a VZ |
5031 | if test "$enableval" = yes; then |
5032 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5033 | else | |
5034 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5035 | fi | |
698dcdb6 | 5036 | |
10f2d63a | 5037 | else |
698dcdb6 | 5038 | |
10f2d63a VZ |
5039 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5040 | if test "x$LINE" != x ; then | |
5041 | eval "DEFAULT_$LINE" | |
5042 | else | |
5043 | no_cache=1 | |
5044 | fi | |
5045 | ||
5046 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
5047 | |
5048 | fi | |
10f2d63a VZ |
5049 | |
5050 | ||
5051 | eval "$ac_cv_use_printarch" | |
5052 | if test "$no_cache" != 1; then | |
5053 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5054 | fi | |
5055 | ||
5056 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 5057 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5058 | else |
698dcdb6 | 5059 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5060 | fi |
698dcdb6 | 5061 | |
10f2d63a | 5062 | |
698dcdb6 | 5063 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
24f5e003 | 5064 | echo "configure:5065: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5065 | no_cache=0 |
5066 | # Check whether --enable-mdi or --disable-mdi was given. | |
5067 | if test "${enable_mdi+set}" = set; then | |
5068 | enableval="$enable_mdi" | |
698dcdb6 | 5069 | |
10f2d63a VZ |
5070 | if test "$enableval" = yes; then |
5071 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5072 | else | |
5073 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5074 | fi | |
698dcdb6 | 5075 | |
10f2d63a | 5076 | else |
698dcdb6 | 5077 | |
10f2d63a VZ |
5078 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5079 | if test "x$LINE" != x ; then | |
5080 | eval "DEFAULT_$LINE" | |
5081 | else | |
5082 | no_cache=1 | |
5083 | fi | |
5084 | ||
5085 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
5086 | |
5087 | fi | |
10f2d63a VZ |
5088 | |
5089 | ||
5090 | eval "$ac_cv_use_mdi" | |
5091 | if test "$no_cache" != 1; then | |
5092 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5093 | fi | |
5094 | ||
5095 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 5096 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5097 | else |
698dcdb6 | 5098 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5099 | fi |
698dcdb6 VZ |
5100 | |
5101 | ||
1e6feb95 | 5102 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
24f5e003 | 5103 | echo "configure:5104: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5104 | no_cache=0 |
5105 | # Check whether --enable-loggui or --disable-loggui was given. | |
5106 | if test "${enable_loggui+set}" = set; then | |
5107 | enableval="$enable_loggui" | |
5108 | ||
5109 | if test "$enableval" = yes; then | |
5110 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5111 | else | |
5112 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5113 | fi | |
5114 | ||
5115 | else | |
5116 | ||
5117 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5118 | if test "x$LINE" != x ; then | |
5119 | eval "DEFAULT_$LINE" | |
5120 | else | |
5121 | no_cache=1 | |
5122 | fi | |
5123 | ||
5124 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5125 | ||
5126 | fi | |
5127 | ||
5128 | ||
5129 | eval "$ac_cv_use_loggui" | |
5130 | if test "$no_cache" != 1; then | |
5131 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5132 | fi | |
5133 | ||
5134 | if test "$wxUSE_LOGGUI" = yes; then | |
5135 | echo "$ac_t""yes" 1>&6 | |
5136 | else | |
5137 | echo "$ac_t""no" 1>&6 | |
5138 | fi | |
5139 | ||
5140 | ||
5141 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
24f5e003 | 5142 | echo "configure:5143: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5143 | no_cache=0 |
5144 | # Check whether --enable-logwin or --disable-logwin was given. | |
5145 | if test "${enable_logwin+set}" = set; then | |
5146 | enableval="$enable_logwin" | |
5147 | ||
5148 | if test "$enableval" = yes; then | |
5149 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5150 | else | |
5151 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5152 | fi | |
5153 | ||
5154 | else | |
5155 | ||
5156 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5157 | if test "x$LINE" != x ; then | |
5158 | eval "DEFAULT_$LINE" | |
5159 | else | |
5160 | no_cache=1 | |
5161 | fi | |
5162 | ||
5163 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5164 | ||
5165 | fi | |
5166 | ||
5167 | ||
5168 | eval "$ac_cv_use_logwin" | |
5169 | if test "$no_cache" != 1; then | |
5170 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5171 | fi | |
5172 | ||
5173 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5174 | echo "$ac_t""yes" 1>&6 | |
5175 | else | |
5176 | echo "$ac_t""no" 1>&6 | |
5177 | fi | |
5178 | ||
5179 | ||
69d27ff7 | 5180 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
24f5e003 | 5181 | echo "configure:5182: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5182 | no_cache=0 |
5183 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5184 | if test "${enable_logdialog+set}" = set; then | |
5185 | enableval="$enable_logdialog" | |
5186 | ||
5187 | if test "$enableval" = yes; then | |
5188 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5189 | else | |
5190 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5191 | fi | |
5192 | ||
5193 | else | |
5194 | ||
5195 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5196 | if test "x$LINE" != x ; then | |
5197 | eval "DEFAULT_$LINE" | |
5198 | else | |
5199 | no_cache=1 | |
5200 | fi | |
5201 | ||
5202 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5203 | ||
5204 | fi | |
5205 | ||
5206 | ||
5207 | eval "$ac_cv_use_logdialog" | |
5208 | if test "$no_cache" != 1; then | |
5209 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5210 | fi | |
5211 | ||
5212 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5213 | echo "$ac_t""yes" 1>&6 | |
5214 | else | |
5215 | echo "$ac_t""no" 1>&6 | |
5216 | fi | |
5217 | ||
5218 | ||
10f2d63a | 5219 | |
698dcdb6 | 5220 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
24f5e003 | 5221 | echo "configure:5222: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5222 | no_cache=0 |
5223 | # Check whether --enable-postscript or --disable-postscript was given. | |
5224 | if test "${enable_postscript+set}" = set; then | |
5225 | enableval="$enable_postscript" | |
698dcdb6 | 5226 | |
10f2d63a VZ |
5227 | if test "$enableval" = yes; then |
5228 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5229 | else | |
5230 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5231 | fi | |
698dcdb6 | 5232 | |
10f2d63a | 5233 | else |
698dcdb6 | 5234 | |
10f2d63a VZ |
5235 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5236 | if test "x$LINE" != x ; then | |
5237 | eval "DEFAULT_$LINE" | |
5238 | else | |
5239 | no_cache=1 | |
5240 | fi | |
5241 | ||
5242 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
5243 | |
5244 | fi | |
10f2d63a VZ |
5245 | |
5246 | ||
5247 | eval "$ac_cv_use_postscript" | |
5248 | if test "$no_cache" != 1; then | |
5249 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5250 | fi | |
5251 | ||
5252 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 5253 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5254 | else |
698dcdb6 | 5255 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5256 | fi |
698dcdb6 VZ |
5257 | |
5258 | ||
5259 | ||
10f2d63a | 5260 | |
1e6feb95 | 5261 | |
698dcdb6 | 5262 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
24f5e003 | 5263 | echo "configure:5264: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5264 | no_cache=0 |
5265 | # Check whether --enable-prologio or --disable-prologio was given. | |
5266 | if test "${enable_prologio+set}" = set; then | |
5267 | enableval="$enable_prologio" | |
698dcdb6 | 5268 | |
10f2d63a VZ |
5269 | if test "$enableval" = yes; then |
5270 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5271 | else | |
5272 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5273 | fi | |
698dcdb6 | 5274 | |
10f2d63a | 5275 | else |
698dcdb6 | 5276 | |
10f2d63a VZ |
5277 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5278 | if test "x$LINE" != x ; then | |
5279 | eval "DEFAULT_$LINE" | |
5280 | else | |
5281 | no_cache=1 | |
5282 | fi | |
5283 | ||
5284 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
5285 | |
5286 | fi | |
10f2d63a VZ |
5287 | |
5288 | ||
5289 | eval "$ac_cv_use_prologio" | |
5290 | if test "$no_cache" != 1; then | |
5291 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5292 | fi | |
5293 | ||
5294 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 5295 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5296 | else |
698dcdb6 | 5297 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5298 | fi |
698dcdb6 | 5299 | |
10f2d63a | 5300 | |
698dcdb6 | 5301 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
24f5e003 | 5302 | echo "configure:5303: checking for --enable-resources" >&5 |
10f2d63a VZ |
5303 | no_cache=0 |
5304 | # Check whether --enable-resources or --disable-resources was given. | |
5305 | if test "${enable_resources+set}" = set; then | |
5306 | enableval="$enable_resources" | |
698dcdb6 | 5307 | |
10f2d63a VZ |
5308 | if test "$enableval" = yes; then |
5309 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5310 | else | |
5311 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5312 | fi | |
698dcdb6 | 5313 | |
10f2d63a | 5314 | else |
698dcdb6 | 5315 | |
10f2d63a VZ |
5316 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5317 | if test "x$LINE" != x ; then | |
5318 | eval "DEFAULT_$LINE" | |
5319 | else | |
5320 | no_cache=1 | |
5321 | fi | |
5322 | ||
5323 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
5324 | |
5325 | fi | |
10f2d63a VZ |
5326 | |
5327 | ||
5328 | eval "$ac_cv_use_resources" | |
5329 | if test "$no_cache" != 1; then | |
5330 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5331 | fi | |
5332 | ||
5333 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 5334 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5335 | else |
698dcdb6 | 5336 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5337 | fi |
698dcdb6 | 5338 | |
10f2d63a | 5339 | |
698dcdb6 VZ |
5340 | |
5341 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
24f5e003 | 5342 | echo "configure:5343: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5343 | no_cache=0 |
5344 | # Check whether --enable-xresources or --disable-xresources was given. | |
5345 | if test "${enable_xresources+set}" = set; then | |
5346 | enableval="$enable_xresources" | |
698dcdb6 | 5347 | |
10f2d63a VZ |
5348 | if test "$enableval" = yes; then |
5349 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5350 | else | |
5351 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5352 | fi | |
698dcdb6 | 5353 | |
10f2d63a | 5354 | else |
698dcdb6 | 5355 | |
10f2d63a VZ |
5356 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5357 | if test "x$LINE" != x ; then | |
5358 | eval "DEFAULT_$LINE" | |
5359 | else | |
5360 | no_cache=1 | |
5361 | fi | |
5362 | ||
5363 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5364 | |
5365 | fi | |
10f2d63a VZ |
5366 | |
5367 | ||
5368 | eval "$ac_cv_use_xresources" | |
5369 | if test "$no_cache" != 1; then | |
5370 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5371 | fi | |
5372 | ||
5373 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 5374 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5375 | else |
698dcdb6 | 5376 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5377 | fi |
698dcdb6 VZ |
5378 | |
5379 | ||
10f2d63a | 5380 | |
698dcdb6 VZ |
5381 | |
5382 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
24f5e003 | 5383 | echo "configure:5384: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5384 | no_cache=0 |
5385 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5386 | if test "${enable_clipboard+set}" = set; then | |
5387 | enableval="$enable_clipboard" | |
698dcdb6 | 5388 | |
10f2d63a VZ |
5389 | if test "$enableval" = yes; then |
5390 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5391 | else | |
5392 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5393 | fi | |
698dcdb6 | 5394 | |
10f2d63a | 5395 | else |
698dcdb6 | 5396 | |
10f2d63a VZ |
5397 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5398 | if test "x$LINE" != x ; then | |
5399 | eval "DEFAULT_$LINE" | |
5400 | else | |
5401 | no_cache=1 | |
5402 | fi | |
5403 | ||
5404 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5405 | |
5406 | fi | |
10f2d63a VZ |
5407 | |
5408 | ||
5409 | eval "$ac_cv_use_clipboard" | |
5410 | if test "$no_cache" != 1; then | |
5411 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5412 | fi | |
5413 | ||
5414 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5415 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5416 | else |
698dcdb6 | 5417 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5418 | fi |
698dcdb6 | 5419 | |
10f2d63a | 5420 | |
698dcdb6 | 5421 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
24f5e003 | 5422 | echo "configure:5423: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5423 | no_cache=0 |
5424 | # Check whether --enable-dnd or --disable-dnd was given. | |
5425 | if test "${enable_dnd+set}" = set; then | |
5426 | enableval="$enable_dnd" | |
698dcdb6 | 5427 | |
10f2d63a VZ |
5428 | if test "$enableval" = yes; then |
5429 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5430 | else | |
5431 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5432 | fi | |
698dcdb6 | 5433 | |
10f2d63a | 5434 | else |
698dcdb6 | 5435 | |
10f2d63a VZ |
5436 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5437 | if test "x$LINE" != x ; then | |
5438 | eval "DEFAULT_$LINE" | |
5439 | else | |
5440 | no_cache=1 | |
5441 | fi | |
5442 | ||
5443 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5444 | |
5445 | fi | |
10f2d63a VZ |
5446 | |
5447 | ||
5448 | eval "$ac_cv_use_dnd" | |
5449 | if test "$no_cache" != 1; then | |
5450 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5451 | fi | |
5452 | ||
5453 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5454 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5455 | else |
698dcdb6 | 5456 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5457 | fi |
698dcdb6 | 5458 | |
10f2d63a | 5459 | |
698dcdb6 | 5460 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
24f5e003 | 5461 | echo "configure:5462: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5462 | no_cache=0 |
5463 | # Check whether --enable-metafile or --disable-metafile was given. | |
5464 | if test "${enable_metafile+set}" = set; then | |
5465 | enableval="$enable_metafile" | |
698dcdb6 | 5466 | |
b64f0a5f RL |
5467 | if test "$enableval" = yes; then |
5468 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5469 | else | |
5470 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5471 | fi | |
698dcdb6 | 5472 | |
b64f0a5f | 5473 | else |
698dcdb6 | 5474 | |
b64f0a5f RL |
5475 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5476 | if test "x$LINE" != x ; then | |
5477 | eval "DEFAULT_$LINE" | |
5478 | else | |
5479 | no_cache=1 | |
5480 | fi | |
5481 | ||
5482 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5483 | |
5484 | fi | |
b64f0a5f RL |
5485 | |
5486 | ||
5487 | eval "$ac_cv_use_metafile" | |
5488 | if test "$no_cache" != 1; then | |
5489 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5490 | fi | |
5491 | ||
5492 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5493 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5494 | else |
698dcdb6 | 5495 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5496 | fi |
698dcdb6 VZ |
5497 | |
5498 | ||
10f2d63a | 5499 | |
24176f2c | 5500 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
24f5e003 | 5501 | echo "configure:5502: checking for --enable-treelayout" >&5 |
10f2d63a | 5502 | no_cache=0 |
24176f2c GD |
5503 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5504 | if test "${enable_treelayout+set}" = set; then | |
5505 | enableval="$enable_treelayout" | |
698dcdb6 | 5506 | |
10f2d63a | 5507 | if test "$enableval" = yes; then |
24176f2c | 5508 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5509 | else |
24176f2c | 5510 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5511 | fi |
698dcdb6 | 5512 | |
10f2d63a | 5513 | else |
698dcdb6 | 5514 | |
24176f2c | 5515 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5516 | if test "x$LINE" != x ; then |
5517 | eval "DEFAULT_$LINE" | |
5518 | else | |
5519 | no_cache=1 | |
5520 | fi | |
5521 | ||
24176f2c | 5522 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5523 | |
5524 | fi | |
10f2d63a VZ |
5525 | |
5526 | ||
24176f2c | 5527 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5528 | if test "$no_cache" != 1; then |
24176f2c | 5529 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5530 | fi |
5531 | ||
24176f2c | 5532 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5533 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5534 | else |
698dcdb6 | 5535 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5536 | fi |
698dcdb6 | 5537 | |
10f2d63a | 5538 | |
698dcdb6 VZ |
5539 | |
5540 | ||
5541 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
24f5e003 | 5542 | echo "configure:5543: checking for --enable-controls" >&5 |
10f2d63a VZ |
5543 | no_cache=0 |
5544 | # Check whether --enable-controls or --disable-controls was given. | |
5545 | if test "${enable_controls+set}" = set; then | |
5546 | enableval="$enable_controls" | |
698dcdb6 | 5547 | |
10f2d63a VZ |
5548 | if test "$enableval" = yes; then |
5549 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5550 | else | |
5551 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5552 | fi | |
698dcdb6 | 5553 | |
10f2d63a | 5554 | else |
698dcdb6 | 5555 | |
10f2d63a VZ |
5556 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5557 | if test "x$LINE" != x ; then | |
5558 | eval "DEFAULT_$LINE" | |
5559 | else | |
5560 | no_cache=1 | |
5561 | fi | |
5562 | ||
5563 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5564 | |
5565 | fi | |
10f2d63a VZ |
5566 | |
5567 | ||
5568 | eval "$ac_cv_use_controls" | |
5569 | if test "$no_cache" != 1; then | |
5570 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5571 | fi | |
5572 | ||
5573 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5574 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5575 | else |
698dcdb6 | 5576 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5577 | fi |
698dcdb6 | 5578 | |
10f2d63a VZ |
5579 | |
5580 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5581 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5582 | DEFAULT_wxUSE_BMPBUTTON=yes |
5583 | DEFAULT_wxUSE_BUTTON=yes | |
5584 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5585 | DEFAULT_wxUSE_CARET=yes |
5586 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5587 | DEFAULT_wxUSE_CHECKBOX=yes |
5588 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5589 | DEFAULT_wxUSE_CHOICE=yes | |
5590 | DEFAULT_wxUSE_GAUGE=yes | |
5591 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5592 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5593 | DEFAULT_wxUSE_IMAGLIST=yes |
5594 | DEFAULT_wxUSE_LISTBOX=yes | |
5595 | DEFAULT_wxUSE_LISTCTRL=yes | |
5596 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5597 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5598 | DEFAULT_wxUSE_RADIOBOX=yes |
5599 | DEFAULT_wxUSE_RADIOBTN=yes | |
5600 | DEFAULT_wxUSE_SASH=yes | |
5601 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5602 | DEFAULT_wxUSE_SLIDER=yes | |
5603 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5604 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5605 | DEFAULT_wxUSE_SPLITTER=yes |
5606 | DEFAULT_wxUSE_STATBMP=yes | |
5607 | DEFAULT_wxUSE_STATBOX=yes | |
5608 | DEFAULT_wxUSE_STATLINE=yes | |
5609 | DEFAULT_wxUSE_STATUSBAR=yes | |
5610 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5611 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5612 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5613 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5614 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5615 | DEFAULT_wxUSE_TOOLTIPS=yes |
5616 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5617 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5618 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5619 | elif test "$wxUSE_CONTROLS" = "no"; then |
5620 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5621 | DEFAULT_wxUSE_BMPBUTTON=no |
5622 | DEFAULT_wxUSE_BUTTON=no | |
5623 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5624 | DEFAULT_wxUSE_CARET=no |
5625 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5626 | DEFAULT_wxUSE_CHECKBOX=no |
5627 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5628 | DEFAULT_wxUSE_CHOICE=no | |
5629 | DEFAULT_wxUSE_GAUGE=no | |
5630 | DEFAULT_wxUSE_GRID=no | |
5631 | DEFAULT_wxUSE_NEW_GRID=no | |
5632 | DEFAULT_wxUSE_IMAGLIST=no | |
5633 | DEFAULT_wxUSE_LISTBOX=no | |
5634 | DEFAULT_wxUSE_LISTCTRL=no | |
5635 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5636 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5637 | DEFAULT_wxUSE_RADIOBOX=no |
5638 | DEFAULT_wxUSE_RADIOBTN=no | |
5639 | DEFAULT_wxUSE_SASH=no | |
5640 | DEFAULT_wxUSE_SCROLLBAR=no | |
5641 | DEFAULT_wxUSE_SLIDER=no | |
5642 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5643 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5644 | DEFAULT_wxUSE_SPLITTER=no |
5645 | DEFAULT_wxUSE_STATBMP=no | |
5646 | DEFAULT_wxUSE_STATBOX=no | |
5647 | DEFAULT_wxUSE_STATLINE=no | |
5648 | DEFAULT_wxUSE_STATUSBAR=no | |
5649 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5650 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5651 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5652 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5653 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5654 | DEFAULT_wxUSE_TOOLTIPS=no |
5655 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5656 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5657 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5658 | fi |
5659 | ||
698dcdb6 VZ |
5660 | |
5661 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
24f5e003 | 5662 | echo "configure:5663: checking for --enable-accel" >&5 |
10f2d63a VZ |
5663 | no_cache=0 |
5664 | # Check whether --enable-accel or --disable-accel was given. | |
5665 | if test "${enable_accel+set}" = set; then | |
5666 | enableval="$enable_accel" | |
698dcdb6 | 5667 | |
10f2d63a VZ |
5668 | if test "$enableval" = yes; then |
5669 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5670 | else | |
5671 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5672 | fi | |
698dcdb6 | 5673 | |
10f2d63a | 5674 | else |
698dcdb6 | 5675 | |
10f2d63a VZ |
5676 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5677 | if test "x$LINE" != x ; then | |
5678 | eval "DEFAULT_$LINE" | |
5679 | else | |
5680 | no_cache=1 | |
5681 | fi | |
5682 | ||
5683 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5684 | |
5685 | fi | |
10f2d63a VZ |
5686 | |
5687 | ||
5688 | eval "$ac_cv_use_accel" | |
5689 | if test "$no_cache" != 1; then | |
5690 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5691 | fi | |
5692 | ||
5693 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5694 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5695 | else |
698dcdb6 | 5696 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5697 | fi |
698dcdb6 | 5698 | |
10f2d63a | 5699 | |
1e6feb95 | 5700 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
24f5e003 | 5701 | echo "configure:5702: checking for --enable-button" >&5 |
10f2d63a | 5702 | no_cache=0 |
1e6feb95 VZ |
5703 | # Check whether --enable-button or --disable-button was given. |
5704 | if test "${enable_button+set}" = set; then | |
5705 | enableval="$enable_button" | |
698dcdb6 | 5706 | |
10f2d63a | 5707 | if test "$enableval" = yes; then |
1e6feb95 | 5708 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5709 | else |
1e6feb95 | 5710 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5711 | fi |
698dcdb6 | 5712 | |
10f2d63a | 5713 | else |
698dcdb6 | 5714 | |
1e6feb95 | 5715 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5716 | if test "x$LINE" != x ; then |
5717 | eval "DEFAULT_$LINE" | |
5718 | else | |
5719 | no_cache=1 | |
5720 | fi | |
5721 | ||
1e6feb95 | 5722 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5723 | |
5724 | fi | |
10f2d63a VZ |
5725 | |
5726 | ||
1e6feb95 | 5727 | eval "$ac_cv_use_button" |
10f2d63a | 5728 | if test "$no_cache" != 1; then |
1e6feb95 | 5729 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5730 | fi |
5731 | ||
1e6feb95 | 5732 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5733 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5734 | else |
698dcdb6 | 5735 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5736 | fi |
698dcdb6 | 5737 | |
10f2d63a | 5738 | |
698dcdb6 | 5739 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
24f5e003 | 5740 | echo "configure:5741: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5741 | no_cache=0 |
5742 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5743 | if test "${enable_bmpbutton+set}" = set; then | |
5744 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5745 | |
10f2d63a VZ |
5746 | if test "$enableval" = yes; then |
5747 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5748 | else | |
5749 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5750 | fi | |
698dcdb6 | 5751 | |
10f2d63a | 5752 | else |
698dcdb6 | 5753 | |
10f2d63a VZ |
5754 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5755 | if test "x$LINE" != x ; then | |
5756 | eval "DEFAULT_$LINE" | |
5757 | else | |
5758 | no_cache=1 | |
5759 | fi | |
5760 | ||
5761 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5762 | |
5763 | fi | |
10f2d63a VZ |
5764 | |
5765 | ||
5766 | eval "$ac_cv_use_bmpbutton" | |
5767 | if test "$no_cache" != 1; then | |
5768 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5769 | fi | |
5770 | ||
5771 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5772 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5773 | else |
698dcdb6 | 5774 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5775 | fi |
698dcdb6 | 5776 | |
10f2d63a | 5777 | |
1e6feb95 | 5778 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
24f5e003 | 5779 | echo "configure:5780: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5780 | no_cache=0 |
5781 | # Check whether --enable-calendar or --disable-calendar was given. | |
5782 | if test "${enable_calendar+set}" = set; then | |
5783 | enableval="$enable_calendar" | |
5784 | ||
5785 | if test "$enableval" = yes; then | |
5786 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5787 | else | |
5788 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5789 | fi | |
5790 | ||
5791 | else | |
5792 | ||
5793 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5794 | if test "x$LINE" != x ; then | |
5795 | eval "DEFAULT_$LINE" | |
5796 | else | |
5797 | no_cache=1 | |
5798 | fi | |
5799 | ||
5800 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5801 | ||
5802 | fi | |
5803 | ||
5804 | ||
5805 | eval "$ac_cv_use_calendar" | |
5806 | if test "$no_cache" != 1; then | |
5807 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5808 | fi | |
5809 | ||
5810 | if test "$wxUSE_CALCTRL" = yes; then | |
5811 | echo "$ac_t""yes" 1>&6 | |
5812 | else | |
5813 | echo "$ac_t""no" 1>&6 | |
5814 | fi | |
5815 | ||
5816 | ||
5817 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
24f5e003 | 5818 | echo "configure:5819: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5819 | no_cache=0 |
5820 | # Check whether --enable-caret or --disable-caret was given. | |
5821 | if test "${enable_caret+set}" = set; then | |
5822 | enableval="$enable_caret" | |
5823 | ||
5824 | if test "$enableval" = yes; then | |
5825 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5826 | else | |
5827 | ac_cv_use_caret='wxUSE_CARET=no' | |
5828 | fi | |
5829 | ||
5830 | else | |
5831 | ||
5832 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5833 | if test "x$LINE" != x ; then | |
5834 | eval "DEFAULT_$LINE" | |
5835 | else | |
5836 | no_cache=1 | |
5837 | fi | |
5838 | ||
5839 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5840 | ||
5841 | fi | |
5842 | ||
5843 | ||
5844 | eval "$ac_cv_use_caret" | |
5845 | if test "$no_cache" != 1; then | |
5846 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5847 | fi | |
5848 | ||
5849 | if test "$wxUSE_CARET" = yes; then | |
5850 | echo "$ac_t""yes" 1>&6 | |
5851 | else | |
5852 | echo "$ac_t""no" 1>&6 | |
5853 | fi | |
5854 | ||
5855 | ||
698dcdb6 | 5856 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
24f5e003 | 5857 | echo "configure:5858: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5858 | no_cache=0 |
5859 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5860 | if test "${enable_checkbox+set}" = set; then | |
5861 | enableval="$enable_checkbox" | |
698dcdb6 | 5862 | |
10f2d63a VZ |
5863 | if test "$enableval" = yes; then |
5864 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5865 | else | |
5866 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5867 | fi | |
698dcdb6 | 5868 | |
10f2d63a | 5869 | else |
698dcdb6 | 5870 | |
10f2d63a VZ |
5871 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5872 | if test "x$LINE" != x ; then | |
5873 | eval "DEFAULT_$LINE" | |
5874 | else | |
5875 | no_cache=1 | |
5876 | fi | |
5877 | ||
5878 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5879 | |
5880 | fi | |
10f2d63a VZ |
5881 | |
5882 | ||
5883 | eval "$ac_cv_use_checkbox" | |
5884 | if test "$no_cache" != 1; then | |
5885 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5886 | fi | |
5887 | ||
5888 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5889 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5890 | else |
698dcdb6 | 5891 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5892 | fi |
698dcdb6 | 5893 | |
10f2d63a | 5894 | |
698dcdb6 | 5895 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
24f5e003 | 5896 | echo "configure:5897: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5897 | no_cache=0 |
5898 | # Check whether --enable-checklst or --disable-checklst was given. | |
5899 | if test "${enable_checklst+set}" = set; then | |
5900 | enableval="$enable_checklst" | |
698dcdb6 | 5901 | |
10f2d63a VZ |
5902 | if test "$enableval" = yes; then |
5903 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5904 | else | |
5905 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5906 | fi | |
698dcdb6 | 5907 | |
10f2d63a | 5908 | else |
698dcdb6 | 5909 | |
10f2d63a VZ |
5910 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5911 | if test "x$LINE" != x ; then | |
5912 | eval "DEFAULT_$LINE" | |
5913 | else | |
5914 | no_cache=1 | |
5915 | fi | |
5916 | ||
5917 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5918 | |
5919 | fi | |
10f2d63a VZ |
5920 | |
5921 | ||
5922 | eval "$ac_cv_use_checklst" | |
5923 | if test "$no_cache" != 1; then | |
5924 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5925 | fi | |
5926 | ||
5927 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5928 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5929 | else |
698dcdb6 | 5930 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5931 | fi |
698dcdb6 | 5932 | |
10f2d63a | 5933 | |
698dcdb6 | 5934 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
24f5e003 | 5935 | echo "configure:5936: checking for --enable-choice" >&5 |
10f2d63a VZ |
5936 | no_cache=0 |
5937 | # Check whether --enable-choice or --disable-choice was given. | |
5938 | if test "${enable_choice+set}" = set; then | |
5939 | enableval="$enable_choice" | |
698dcdb6 | 5940 | |
10f2d63a VZ |
5941 | if test "$enableval" = yes; then |
5942 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5943 | else | |
5944 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5945 | fi | |
698dcdb6 | 5946 | |
10f2d63a | 5947 | else |
698dcdb6 | 5948 | |
10f2d63a VZ |
5949 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5950 | if test "x$LINE" != x ; then | |
5951 | eval "DEFAULT_$LINE" | |
5952 | else | |
5953 | no_cache=1 | |
5954 | fi | |
5955 | ||
5956 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5957 | |
5958 | fi | |
10f2d63a VZ |
5959 | |
5960 | ||
5961 | eval "$ac_cv_use_choice" | |
5962 | if test "$no_cache" != 1; then | |
5963 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5964 | fi | |
5965 | ||
5966 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5967 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5968 | else |
698dcdb6 | 5969 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5970 | fi |
698dcdb6 | 5971 | |
10f2d63a | 5972 | |
698dcdb6 | 5973 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
24f5e003 | 5974 | echo "configure:5975: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5975 | no_cache=0 |
5976 | # Check whether --enable-combobox or --disable-combobox was given. | |
5977 | if test "${enable_combobox+set}" = set; then | |
5978 | enableval="$enable_combobox" | |
698dcdb6 | 5979 | |
10f2d63a VZ |
5980 | if test "$enableval" = yes; then |
5981 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5982 | else | |
5983 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5984 | fi | |
698dcdb6 | 5985 | |
10f2d63a | 5986 | else |
698dcdb6 | 5987 | |
10f2d63a VZ |
5988 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5989 | if test "x$LINE" != x ; then | |
5990 | eval "DEFAULT_$LINE" | |
5991 | else | |
5992 | no_cache=1 | |
5993 | fi | |
5994 | ||
5995 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5996 | |
5997 | fi | |
10f2d63a VZ |
5998 | |
5999 | ||
6000 | eval "$ac_cv_use_combobox" | |
6001 | if test "$no_cache" != 1; then | |
6002 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6003 | fi | |
6004 | ||
6005 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 6006 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6007 | else |
698dcdb6 | 6008 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6009 | fi |
698dcdb6 | 6010 | |
10f2d63a | 6011 | |
698dcdb6 | 6012 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
24f5e003 | 6013 | echo "configure:6014: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6014 | no_cache=0 |
6015 | # Check whether --enable-gauge or --disable-gauge was given. | |
6016 | if test "${enable_gauge+set}" = set; then | |
6017 | enableval="$enable_gauge" | |
698dcdb6 | 6018 | |
10f2d63a VZ |
6019 | if test "$enableval" = yes; then |
6020 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6021 | else | |
6022 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6023 | fi | |
698dcdb6 | 6024 | |
10f2d63a | 6025 | else |
698dcdb6 | 6026 | |
10f2d63a VZ |
6027 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6028 | if test "x$LINE" != x ; then | |
6029 | eval "DEFAULT_$LINE" | |
6030 | else | |
6031 | no_cache=1 | |
6032 | fi | |
6033 | ||
6034 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
6035 | |
6036 | fi | |
10f2d63a VZ |
6037 | |
6038 | ||
6039 | eval "$ac_cv_use_gauge" | |
6040 | if test "$no_cache" != 1; then | |
6041 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6042 | fi | |
6043 | ||
6044 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 6045 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6046 | else |
698dcdb6 | 6047 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6048 | fi |
698dcdb6 | 6049 | |
10f2d63a | 6050 | |
698dcdb6 | 6051 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
24f5e003 | 6052 | echo "configure:6053: checking for --enable-grid" >&5 |
10f2d63a VZ |
6053 | no_cache=0 |
6054 | # Check whether --enable-grid or --disable-grid was given. | |
6055 | if test "${enable_grid+set}" = set; then | |
6056 | enableval="$enable_grid" | |
698dcdb6 | 6057 | |
10f2d63a VZ |
6058 | if test "$enableval" = yes; then |
6059 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6060 | else | |
6061 | ac_cv_use_grid='wxUSE_GRID=no' | |
6062 | fi | |
698dcdb6 | 6063 | |
10f2d63a | 6064 | else |
698dcdb6 | 6065 | |
10f2d63a VZ |
6066 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6067 | if test "x$LINE" != x ; then | |
6068 | eval "DEFAULT_$LINE" | |
6069 | else | |
6070 | no_cache=1 | |
6071 | fi | |
6072 | ||
6073 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
6074 | |
6075 | fi | |
10f2d63a VZ |
6076 | |
6077 | ||
6078 | eval "$ac_cv_use_grid" | |
6079 | if test "$no_cache" != 1; then | |
6080 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6081 | fi | |
6082 | ||
6083 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 6084 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6085 | else |
698dcdb6 | 6086 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6087 | fi |
698dcdb6 | 6088 | |
10f2d63a | 6089 | |
698dcdb6 | 6090 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
24f5e003 | 6091 | echo "configure:6092: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6092 | no_cache=0 |
6093 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6094 | if test "${enable_newgrid+set}" = set; then | |
6095 | enableval="$enable_newgrid" | |
698dcdb6 | 6096 | |
10f2d63a VZ |
6097 | if test "$enableval" = yes; then |
6098 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6099 | else | |
6100 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6101 | fi | |
698dcdb6 | 6102 | |
10f2d63a | 6103 | else |
698dcdb6 | 6104 | |
10f2d63a VZ |
6105 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6106 | if test "x$LINE" != x ; then | |
6107 | eval "DEFAULT_$LINE" | |
6108 | else | |
6109 | no_cache=1 | |
6110 | fi | |
6111 | ||
6112 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
6113 | |
6114 | fi | |
10f2d63a VZ |
6115 | |
6116 | ||
6117 | eval "$ac_cv_use_newgrid" | |
6118 | if test "$no_cache" != 1; then | |
6119 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6120 | fi | |
6121 | ||
6122 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 6123 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6124 | else |
698dcdb6 | 6125 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6126 | fi |
698dcdb6 | 6127 | |
10f2d63a | 6128 | |
698dcdb6 | 6129 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
24f5e003 | 6130 | echo "configure:6131: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6131 | no_cache=0 |
6132 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6133 | if test "${enable_imaglist+set}" = set; then | |
6134 | enableval="$enable_imaglist" | |
698dcdb6 | 6135 | |
10f2d63a VZ |
6136 | if test "$enableval" = yes; then |
6137 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6138 | else | |
6139 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6140 | fi | |
698dcdb6 | 6141 | |
10f2d63a | 6142 | else |
698dcdb6 | 6143 | |
10f2d63a VZ |
6144 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6145 | if test "x$LINE" != x ; then | |
6146 | eval "DEFAULT_$LINE" | |
6147 | else | |
6148 | no_cache=1 | |
6149 | fi | |
6150 | ||
6151 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
6152 | |
6153 | fi | |
10f2d63a VZ |
6154 | |
6155 | ||
6156 | eval "$ac_cv_use_imaglist" | |
6157 | if test "$no_cache" != 1; then | |
6158 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6159 | fi | |
6160 | ||
6161 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 6162 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6163 | else |
698dcdb6 | 6164 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6165 | fi |
698dcdb6 | 6166 | |
10f2d63a | 6167 | |
698dcdb6 | 6168 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
24f5e003 | 6169 | echo "configure:6170: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6170 | no_cache=0 |
6171 | # Check whether --enable-listbox or --disable-listbox was given. | |
6172 | if test "${enable_listbox+set}" = set; then | |
6173 | enableval="$enable_listbox" | |
698dcdb6 | 6174 | |
10f2d63a VZ |
6175 | if test "$enableval" = yes; then |
6176 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6177 | else | |
6178 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6179 | fi | |
698dcdb6 | 6180 | |
10f2d63a | 6181 | else |
698dcdb6 | 6182 | |
10f2d63a VZ |
6183 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6184 | if test "x$LINE" != x ; then | |
6185 | eval "DEFAULT_$LINE" | |
6186 | else | |
6187 | no_cache=1 | |
6188 | fi | |
6189 | ||
6190 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
6191 | |
6192 | fi | |
10f2d63a VZ |
6193 | |
6194 | ||
6195 | eval "$ac_cv_use_listbox" | |
6196 | if test "$no_cache" != 1; then | |
6197 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6198 | fi | |
6199 | ||
6200 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 6201 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6202 | else |
698dcdb6 | 6203 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6204 | fi |
698dcdb6 | 6205 | |
10f2d63a | 6206 | |
698dcdb6 | 6207 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
24f5e003 | 6208 | echo "configure:6209: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6209 | no_cache=0 |
6210 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6211 | if test "${enable_listctrl+set}" = set; then | |
6212 | enableval="$enable_listctrl" | |
698dcdb6 | 6213 | |
10f2d63a VZ |
6214 | if test "$enableval" = yes; then |
6215 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6216 | else | |
6217 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6218 | fi | |
698dcdb6 | 6219 | |
10f2d63a | 6220 | else |
698dcdb6 | 6221 | |
10f2d63a VZ |
6222 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6223 | if test "x$LINE" != x ; then | |
6224 | eval "DEFAULT_$LINE" | |
6225 | else | |
6226 | no_cache=1 | |
6227 | fi | |
6228 | ||
6229 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
6230 | |
6231 | fi | |
10f2d63a VZ |
6232 | |
6233 | ||
6234 | eval "$ac_cv_use_listctrl" | |
6235 | if test "$no_cache" != 1; then | |
6236 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6237 | fi | |
6238 | ||
6239 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 6240 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6241 | else |
698dcdb6 | 6242 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6243 | fi |
698dcdb6 | 6244 | |
10f2d63a | 6245 | |
698dcdb6 | 6246 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
24f5e003 | 6247 | echo "configure:6248: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6248 | no_cache=0 |
6249 | # Check whether --enable-notebook or --disable-notebook was given. | |
6250 | if test "${enable_notebook+set}" = set; then | |
6251 | enableval="$enable_notebook" | |
698dcdb6 | 6252 | |
10f2d63a VZ |
6253 | if test "$enableval" = yes; then |
6254 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6255 | else | |
6256 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6257 | fi | |
698dcdb6 | 6258 | |
10f2d63a | 6259 | else |
698dcdb6 | 6260 | |
10f2d63a VZ |
6261 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6262 | if test "x$LINE" != x ; then | |
6263 | eval "DEFAULT_$LINE" | |
6264 | else | |
6265 | no_cache=1 | |
6266 | fi | |
6267 | ||
6268 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
6269 | |
6270 | fi | |
10f2d63a VZ |
6271 | |
6272 | ||
6273 | eval "$ac_cv_use_notebook" | |
6274 | if test "$no_cache" != 1; then | |
6275 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6276 | fi | |
6277 | ||
6278 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 6279 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6280 | else |
698dcdb6 | 6281 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6282 | fi |
698dcdb6 | 6283 | |
10f2d63a | 6284 | |
24176f2c | 6285 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
24f5e003 | 6286 | echo "configure:6287: checking for --enable-propsheet" >&5 |
24176f2c GD |
6287 | no_cache=0 |
6288 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6289 | if test "${enable_propsheet+set}" = set; then | |
6290 | enableval="$enable_propsheet" | |
6291 | ||
6292 | if test "$enableval" = yes; then | |
6293 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6294 | else | |
6295 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6296 | fi | |
6297 | ||
6298 | else | |
6299 | ||
6300 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6301 | if test "x$LINE" != x ; then | |
6302 | eval "DEFAULT_$LINE" | |
6303 | else | |
6304 | no_cache=1 | |
6305 | fi | |
6306 | ||
6307 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6308 | ||
6309 | fi | |
6310 | ||
6311 | ||
6312 | eval "$ac_cv_use_propsheet" | |
6313 | if test "$no_cache" != 1; then | |
6314 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6315 | fi | |
6316 | ||
6317 | if test "$wxUSE_PROPSHEET" = yes; then | |
6318 | echo "$ac_t""yes" 1>&6 | |
6319 | else | |
6320 | echo "$ac_t""no" 1>&6 | |
6321 | fi | |
6322 | ||
6323 | ||
698dcdb6 | 6324 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
24f5e003 | 6325 | echo "configure:6326: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6326 | no_cache=0 |
6327 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6328 | if test "${enable_radiobox+set}" = set; then | |
6329 | enableval="$enable_radiobox" | |
698dcdb6 | 6330 | |
10f2d63a VZ |
6331 | if test "$enableval" = yes; then |
6332 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6333 | else | |
6334 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6335 | fi | |
698dcdb6 | 6336 | |
10f2d63a | 6337 | else |
698dcdb6 | 6338 | |
10f2d63a VZ |
6339 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6340 | if test "x$LINE" != x ; then | |
6341 | eval "DEFAULT_$LINE" | |
6342 | else | |
6343 | no_cache=1 | |
6344 | fi | |
6345 | ||
6346 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6347 | |
6348 | fi | |
10f2d63a VZ |
6349 | |
6350 | ||
6351 | eval "$ac_cv_use_radiobox" | |
6352 | if test "$no_cache" != 1; then | |
6353 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6354 | fi | |
6355 | ||
6356 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6357 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6358 | else |
698dcdb6 | 6359 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6360 | fi |
698dcdb6 | 6361 | |
10f2d63a | 6362 | |
698dcdb6 | 6363 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
24f5e003 | 6364 | echo "configure:6365: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6365 | no_cache=0 |
6366 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6367 | if test "${enable_radiobtn+set}" = set; then | |
6368 | enableval="$enable_radiobtn" | |
698dcdb6 | 6369 | |
10f2d63a VZ |
6370 | if test "$enableval" = yes; then |
6371 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6372 | else | |
6373 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6374 | fi | |
698dcdb6 | 6375 | |
10f2d63a | 6376 | else |
698dcdb6 | 6377 | |
10f2d63a VZ |
6378 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6379 | if test "x$LINE" != x ; then | |
6380 | eval "DEFAULT_$LINE" | |
6381 | else | |
6382 | no_cache=1 | |
6383 | fi | |
6384 | ||
6385 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6386 | |
6387 | fi | |
10f2d63a VZ |
6388 | |
6389 | ||
6390 | eval "$ac_cv_use_radiobtn" | |
6391 | if test "$no_cache" != 1; then | |
6392 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6393 | fi | |
6394 | ||
6395 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 6396 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6397 | else |
698dcdb6 | 6398 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6399 | fi |
698dcdb6 | 6400 | |
10f2d63a | 6401 | |
698dcdb6 | 6402 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
24f5e003 | 6403 | echo "configure:6404: checking for --enable-sash" >&5 |
10f2d63a VZ |
6404 | no_cache=0 |
6405 | # Check whether --enable-sash or --disable-sash was given. | |
6406 | if test "${enable_sash+set}" = set; then | |
6407 | enableval="$enable_sash" | |
698dcdb6 | 6408 | |
10f2d63a VZ |
6409 | if test "$enableval" = yes; then |
6410 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6411 | else | |
6412 | ac_cv_use_sash='wxUSE_SASH=no' | |
6413 | fi | |
698dcdb6 | 6414 | |
10f2d63a | 6415 | else |
698dcdb6 | 6416 | |
10f2d63a VZ |
6417 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6418 | if test "x$LINE" != x ; then | |
6419 | eval "DEFAULT_$LINE" | |
6420 | else | |
6421 | no_cache=1 | |
6422 | fi | |
6423 | ||
6424 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6425 | |
6426 | fi | |
10f2d63a VZ |
6427 | |
6428 | ||
6429 | eval "$ac_cv_use_sash" | |
6430 | if test "$no_cache" != 1; then | |
6431 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6432 | fi | |
6433 | ||
6434 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6435 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6436 | else |
698dcdb6 | 6437 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6438 | fi |
698dcdb6 | 6439 | |
10f2d63a | 6440 | |
698dcdb6 | 6441 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
24f5e003 | 6442 | echo "configure:6443: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6443 | no_cache=0 |
6444 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6445 | if test "${enable_scrollbar+set}" = set; then | |
6446 | enableval="$enable_scrollbar" | |
698dcdb6 | 6447 | |
10f2d63a VZ |
6448 | if test "$enableval" = yes; then |
6449 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6450 | else | |
6451 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6452 | fi | |
698dcdb6 | 6453 | |
10f2d63a | 6454 | else |
698dcdb6 | 6455 | |
10f2d63a VZ |
6456 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6457 | if test "x$LINE" != x ; then | |
6458 | eval "DEFAULT_$LINE" | |
6459 | else | |
6460 | no_cache=1 | |
6461 | fi | |
6462 | ||
6463 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6464 | |
6465 | fi | |
10f2d63a VZ |
6466 | |
6467 | ||
6468 | eval "$ac_cv_use_scrollbar" | |
6469 | if test "$no_cache" != 1; then | |
6470 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6471 | fi | |
6472 | ||
6473 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6474 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6475 | else |
698dcdb6 | 6476 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6477 | fi |
698dcdb6 | 6478 | |
10f2d63a | 6479 | |
698dcdb6 | 6480 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
24f5e003 | 6481 | echo "configure:6482: checking for --enable-slider" >&5 |
10f2d63a VZ |
6482 | no_cache=0 |
6483 | # Check whether --enable-slider or --disable-slider was given. | |
6484 | if test "${enable_slider+set}" = set; then | |
6485 | enableval="$enable_slider" | |
698dcdb6 | 6486 | |
10f2d63a VZ |
6487 | if test "$enableval" = yes; then |
6488 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6489 | else | |
6490 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6491 | fi | |
698dcdb6 | 6492 | |
10f2d63a | 6493 | else |
698dcdb6 | 6494 | |
10f2d63a VZ |
6495 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6496 | if test "x$LINE" != x ; then | |
6497 | eval "DEFAULT_$LINE" | |
6498 | else | |
6499 | no_cache=1 | |
6500 | fi | |
6501 | ||
6502 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6503 | |
6504 | fi | |
10f2d63a VZ |
6505 | |
6506 | ||
6507 | eval "$ac_cv_use_slider" | |
6508 | if test "$no_cache" != 1; then | |
6509 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6510 | fi | |
6511 | ||
6512 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6513 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6514 | else |
698dcdb6 | 6515 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6516 | fi |
698dcdb6 | 6517 | |
10f2d63a | 6518 | |
698dcdb6 | 6519 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
24f5e003 | 6520 | echo "configure:6521: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6521 | no_cache=0 |
6522 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6523 | if test "${enable_spinbtn+set}" = set; then | |
6524 | enableval="$enable_spinbtn" | |
698dcdb6 | 6525 | |
10f2d63a VZ |
6526 | if test "$enableval" = yes; then |
6527 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6528 | else | |
6529 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6530 | fi | |
698dcdb6 | 6531 | |
10f2d63a | 6532 | else |
698dcdb6 | 6533 | |
10f2d63a VZ |
6534 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6535 | if test "x$LINE" != x ; then | |
6536 | eval "DEFAULT_$LINE" | |
6537 | else | |
6538 | no_cache=1 | |
6539 | fi | |
6540 | ||
6541 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6542 | |
6543 | fi | |
10f2d63a VZ |
6544 | |
6545 | ||
6546 | eval "$ac_cv_use_spinbtn" | |
6547 | if test "$no_cache" != 1; then | |
6548 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6549 | fi | |
6550 | ||
6551 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6552 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6553 | else |
698dcdb6 | 6554 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6555 | fi |
698dcdb6 | 6556 | |
10f2d63a | 6557 | |
698dcdb6 | 6558 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
24f5e003 | 6559 | echo "configure:6560: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6560 | no_cache=0 |
6561 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6562 | if test "${enable_spinctrl+set}" = set; then | |
6563 | enableval="$enable_spinctrl" | |
698dcdb6 | 6564 | |
56cfaa52 RR |
6565 | if test "$enableval" = yes; then |
6566 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6567 | else | |
6568 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6569 | fi | |
698dcdb6 | 6570 | |
56cfaa52 | 6571 | else |
698dcdb6 | 6572 | |
56cfaa52 RR |
6573 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6574 | if test "x$LINE" != x ; then | |
6575 | eval "DEFAULT_$LINE" | |
6576 | else | |
6577 | no_cache=1 | |
6578 | fi | |
6579 | ||
6580 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6581 | |
6582 | fi | |
56cfaa52 RR |
6583 | |
6584 | ||
6585 | eval "$ac_cv_use_spinctrl" | |
6586 | if test "$no_cache" != 1; then | |
6587 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6588 | fi | |
6589 | ||
6590 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6591 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6592 | else |
698dcdb6 | 6593 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6594 | fi |
698dcdb6 | 6595 | |
56cfaa52 | 6596 | |
698dcdb6 | 6597 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
24f5e003 | 6598 | echo "configure:6599: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6599 | no_cache=0 |
6600 | # Check whether --enable-splitter or --disable-splitter was given. | |
6601 | if test "${enable_splitter+set}" = set; then | |
6602 | enableval="$enable_splitter" | |
698dcdb6 | 6603 | |
10f2d63a VZ |
6604 | if test "$enableval" = yes; then |
6605 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6606 | else | |
6607 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6608 | fi | |
698dcdb6 | 6609 | |
10f2d63a | 6610 | else |
698dcdb6 | 6611 | |
10f2d63a VZ |
6612 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6613 | if test "x$LINE" != x ; then | |
6614 | eval "DEFAULT_$LINE" | |
6615 | else | |
6616 | no_cache=1 | |
6617 | fi | |
6618 | ||
6619 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6620 | |
6621 | fi | |
10f2d63a VZ |
6622 | |
6623 | ||
6624 | eval "$ac_cv_use_splitter" | |
6625 | if test "$no_cache" != 1; then | |
6626 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6627 | fi | |
6628 | ||
6629 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6630 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6631 | else |
698dcdb6 | 6632 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6633 | fi |
698dcdb6 | 6634 | |
10f2d63a | 6635 | |
698dcdb6 | 6636 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
24f5e003 | 6637 | echo "configure:6638: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6638 | no_cache=0 |
6639 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6640 | if test "${enable_statbmp+set}" = set; then | |
6641 | enableval="$enable_statbmp" | |
698dcdb6 | 6642 | |
10f2d63a VZ |
6643 | if test "$enableval" = yes; then |
6644 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6645 | else | |
6646 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6647 | fi | |
698dcdb6 | 6648 | |
10f2d63a | 6649 | else |
698dcdb6 | 6650 | |
10f2d63a VZ |
6651 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6652 | if test "x$LINE" != x ; then | |
6653 | eval "DEFAULT_$LINE" | |
6654 | else | |
6655 | no_cache=1 | |
6656 | fi | |
6657 | ||
6658 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6659 | |
6660 | fi | |
10f2d63a VZ |
6661 | |
6662 | ||
6663 | eval "$ac_cv_use_statbmp" | |
6664 | if test "$no_cache" != 1; then | |
6665 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6666 | fi | |
6667 | ||
6668 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6669 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6670 | else |
698dcdb6 | 6671 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6672 | fi |
698dcdb6 | 6673 | |
10f2d63a | 6674 | |
698dcdb6 | 6675 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
24f5e003 | 6676 | echo "configure:6677: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6677 | no_cache=0 |
6678 | # Check whether --enable-statbox or --disable-statbox was given. | |
6679 | if test "${enable_statbox+set}" = set; then | |
6680 | enableval="$enable_statbox" | |
698dcdb6 | 6681 | |
10f2d63a VZ |
6682 | if test "$enableval" = yes; then |
6683 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6684 | else | |
6685 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6686 | fi | |
698dcdb6 | 6687 | |
10f2d63a | 6688 | else |
698dcdb6 | 6689 | |
10f2d63a VZ |
6690 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6691 | if test "x$LINE" != x ; then | |
6692 | eval "DEFAULT_$LINE" | |
6693 | else | |
6694 | no_cache=1 | |
6695 | fi | |
6696 | ||
6697 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6698 | |
6699 | fi | |
10f2d63a VZ |
6700 | |
6701 | ||
6702 | eval "$ac_cv_use_statbox" | |
6703 | if test "$no_cache" != 1; then | |
6704 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6705 | fi | |
6706 | ||
6707 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6708 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6709 | else |
698dcdb6 | 6710 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6711 | fi |
698dcdb6 | 6712 | |
10f2d63a | 6713 | |
698dcdb6 | 6714 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
24f5e003 | 6715 | echo "configure:6716: checking for --enable-statline" >&5 |
10f2d63a VZ |
6716 | no_cache=0 |
6717 | # Check whether --enable-statline or --disable-statline was given. | |
6718 | if test "${enable_statline+set}" = set; then | |
6719 | enableval="$enable_statline" | |
698dcdb6 | 6720 | |
10f2d63a VZ |
6721 | if test "$enableval" = yes; then |
6722 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6723 | else | |
6724 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6725 | fi | |
698dcdb6 | 6726 | |
10f2d63a | 6727 | else |
698dcdb6 | 6728 | |
10f2d63a VZ |
6729 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6730 | if test "x$LINE" != x ; then | |
6731 | eval "DEFAULT_$LINE" | |
6732 | else | |
6733 | no_cache=1 | |
6734 | fi | |
6735 | ||
6736 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6737 | |
6738 | fi | |
10f2d63a VZ |
6739 | |
6740 | ||
6741 | eval "$ac_cv_use_statline" | |
6742 | if test "$no_cache" != 1; then | |
6743 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6744 | fi | |
6745 | ||
6746 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6747 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6748 | else |
698dcdb6 | 6749 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6750 | fi |
698dcdb6 | 6751 | |
10f2d63a | 6752 | |
1e6feb95 | 6753 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
24f5e003 | 6754 | echo "configure:6755: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6755 | no_cache=0 |
6756 | # Check whether --enable-stattext or --disable-stattext was given. | |
6757 | if test "${enable_stattext+set}" = set; then | |
6758 | enableval="$enable_stattext" | |
6759 | ||
6760 | if test "$enableval" = yes; then | |
6761 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6762 | else | |
6763 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6764 | fi | |
6765 | ||
6766 | else | |
6767 | ||
6768 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6769 | if test "x$LINE" != x ; then | |
6770 | eval "DEFAULT_$LINE" | |
6771 | else | |
6772 | no_cache=1 | |
6773 | fi | |
6774 | ||
6775 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6776 | ||
6777 | fi | |
6778 | ||
6779 | ||
6780 | eval "$ac_cv_use_stattext" | |
6781 | if test "$no_cache" != 1; then | |
6782 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6783 | fi | |
6784 | ||
6785 | if test "$wxUSE_STATTEXT" = yes; then | |
6786 | echo "$ac_t""yes" 1>&6 | |
6787 | else | |
6788 | echo "$ac_t""no" 1>&6 | |
6789 | fi | |
6790 | ||
6791 | ||
698dcdb6 | 6792 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
24f5e003 | 6793 | echo "configure:6794: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6794 | no_cache=0 |
6795 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6796 | if test "${enable_statusbar+set}" = set; then | |
6797 | enableval="$enable_statusbar" | |
698dcdb6 | 6798 | |
10f2d63a VZ |
6799 | if test "$enableval" = yes; then |
6800 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6801 | else | |
6802 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6803 | fi | |
698dcdb6 | 6804 | |
10f2d63a | 6805 | else |
698dcdb6 | 6806 | |
10f2d63a VZ |
6807 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6808 | if test "x$LINE" != x ; then | |
6809 | eval "DEFAULT_$LINE" | |
6810 | else | |
6811 | no_cache=1 | |
6812 | fi | |
6813 | ||
6814 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6815 | |
6816 | fi | |
10f2d63a VZ |
6817 | |
6818 | ||
6819 | eval "$ac_cv_use_statusbar" | |
6820 | if test "$no_cache" != 1; then | |
6821 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6822 | fi | |
6823 | ||
6824 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6825 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6826 | else |
698dcdb6 | 6827 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6828 | fi |
698dcdb6 | 6829 | |
10f2d63a | 6830 | |
698dcdb6 | 6831 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
24f5e003 | 6832 | echo "configure:6833: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6833 | no_cache=0 |
6834 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6835 | if test "${enable_tabdialog+set}" = set; then | |
6836 | enableval="$enable_tabdialog" | |
698dcdb6 | 6837 | |
10f2d63a VZ |
6838 | if test "$enableval" = yes; then |
6839 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6840 | else | |
6841 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6842 | fi | |
698dcdb6 | 6843 | |
10f2d63a | 6844 | else |
698dcdb6 | 6845 | |
10f2d63a VZ |
6846 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6847 | if test "x$LINE" != x ; then | |
6848 | eval "DEFAULT_$LINE" | |
6849 | else | |
6850 | no_cache=1 | |
6851 | fi | |
6852 | ||
6853 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6854 | |
6855 | fi | |
10f2d63a VZ |
6856 | |
6857 | ||
6858 | eval "$ac_cv_use_tabdialog" | |
6859 | if test "$no_cache" != 1; then | |
6860 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6861 | fi | |
6862 | ||
6863 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6864 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6865 | else |
698dcdb6 | 6866 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6867 | fi |
698dcdb6 | 6868 | |
10f2d63a | 6869 | |
1e6feb95 | 6870 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
24f5e003 | 6871 | echo "configure:6872: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6872 | no_cache=0 |
6873 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6874 | if test "${enable_textctrl+set}" = set; then | |
6875 | enableval="$enable_textctrl" | |
6876 | ||
6877 | if test "$enableval" = yes; then | |
6878 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6879 | else | |
6880 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6881 | fi | |
6882 | ||
6883 | else | |
6884 | ||
6885 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6886 | if test "x$LINE" != x ; then | |
6887 | eval "DEFAULT_$LINE" | |
6888 | else | |
6889 | no_cache=1 | |
6890 | fi | |
6891 | ||
6892 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6893 | ||
6894 | fi | |
6895 | ||
6896 | ||
6897 | eval "$ac_cv_use_textctrl" | |
6898 | if test "$no_cache" != 1; then | |
6899 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6900 | fi | |
6901 | ||
6902 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6903 | echo "$ac_t""yes" 1>&6 | |
6904 | else | |
6905 | echo "$ac_t""no" 1>&6 | |
6906 | fi | |
6907 | ||
6908 | ||
698dcdb6 | 6909 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
24f5e003 | 6910 | echo "configure:6911: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6911 | no_cache=0 |
6912 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6913 | if test "${enable_togglebtn+set}" = set; then | |
6914 | enableval="$enable_togglebtn" | |
698dcdb6 | 6915 | |
1db8dc4a VZ |
6916 | if test "$enableval" = yes; then |
6917 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6918 | else | |
6919 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6920 | fi | |
698dcdb6 | 6921 | |
1db8dc4a | 6922 | else |
698dcdb6 | 6923 | |
1db8dc4a VZ |
6924 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6925 | if test "x$LINE" != x ; then | |
6926 | eval "DEFAULT_$LINE" | |
6927 | else | |
6928 | no_cache=1 | |
6929 | fi | |
6930 | ||
6931 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6932 | |
6933 | fi | |
1db8dc4a VZ |
6934 | |
6935 | ||
6936 | eval "$ac_cv_use_togglebtn" | |
6937 | if test "$no_cache" != 1; then | |
6938 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6939 | fi | |
6940 | ||
6941 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6942 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6943 | else |
698dcdb6 | 6944 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6945 | fi |
698dcdb6 | 6946 | |
1db8dc4a | 6947 | |
698dcdb6 | 6948 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
24f5e003 | 6949 | echo "configure:6950: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6950 | no_cache=0 |
6951 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6952 | if test "${enable_toolbar+set}" = set; then | |
6953 | enableval="$enable_toolbar" | |
698dcdb6 | 6954 | |
10f2d63a VZ |
6955 | if test "$enableval" = yes; then |
6956 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6957 | else | |
6958 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6959 | fi | |
698dcdb6 | 6960 | |
10f2d63a | 6961 | else |
698dcdb6 | 6962 | |
10f2d63a VZ |
6963 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6964 | if test "x$LINE" != x ; then | |
6965 | eval "DEFAULT_$LINE" | |
6966 | else | |
6967 | no_cache=1 | |
6968 | fi | |
6969 | ||
6970 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6971 | |
6972 | fi | |
10f2d63a VZ |
6973 | |
6974 | ||
6975 | eval "$ac_cv_use_toolbar" | |
6976 | if test "$no_cache" != 1; then | |
6977 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6978 | fi | |
6979 | ||
6980 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6981 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6982 | else |
698dcdb6 | 6983 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6984 | fi |
698dcdb6 | 6985 | |
10f2d63a | 6986 | |
698dcdb6 | 6987 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
24f5e003 | 6988 | echo "configure:6989: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6989 | no_cache=0 |
6990 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6991 | if test "${enable_tbarnative+set}" = set; then | |
6992 | enableval="$enable_tbarnative" | |
698dcdb6 | 6993 | |
360d6699 VZ |
6994 | if test "$enableval" = yes; then |
6995 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6996 | else | |
6997 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6998 | fi | |
698dcdb6 | 6999 | |
360d6699 | 7000 | else |
698dcdb6 | 7001 | |
360d6699 VZ |
7002 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7003 | if test "x$LINE" != x ; then | |
7004 | eval "DEFAULT_$LINE" | |
7005 | else | |
7006 | no_cache=1 | |
7007 | fi | |
7008 | ||
7009 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
7010 | |
7011 | fi | |
360d6699 VZ |
7012 | |
7013 | ||
7014 | eval "$ac_cv_use_tbarnative" | |
7015 | if test "$no_cache" != 1; then | |
7016 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7017 | fi | |
7018 | ||
7019 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 7020 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7021 | else |
698dcdb6 | 7022 | echo "$ac_t""no" 1>&6 |
360d6699 | 7023 | fi |
698dcdb6 | 7024 | |
360d6699 | 7025 | |
698dcdb6 | 7026 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
24f5e003 | 7027 | echo "configure:7028: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7028 | no_cache=0 |
7029 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7030 | if test "${enable_tbarsmpl+set}" = set; then | |
7031 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 7032 | |
360d6699 VZ |
7033 | if test "$enableval" = yes; then |
7034 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7035 | else | |
7036 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7037 | fi | |
698dcdb6 | 7038 | |
360d6699 | 7039 | else |
698dcdb6 | 7040 | |
360d6699 VZ |
7041 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7042 | if test "x$LINE" != x ; then | |
7043 | eval "DEFAULT_$LINE" | |
7044 | else | |
7045 | no_cache=1 | |
7046 | fi | |
7047 | ||
7048 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
7049 | |
7050 | fi | |
360d6699 VZ |
7051 | |
7052 | ||
7053 | eval "$ac_cv_use_tbarsmpl" | |
7054 | if test "$no_cache" != 1; then | |
7055 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7056 | fi | |
7057 | ||
7058 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 7059 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7060 | else |
698dcdb6 | 7061 | echo "$ac_t""no" 1>&6 |
360d6699 | 7062 | fi |
698dcdb6 | 7063 | |
360d6699 | 7064 | |
698dcdb6 | 7065 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
24f5e003 | 7066 | echo "configure:7067: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7067 | no_cache=0 |
7068 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7069 | if test "${enable_treectrl+set}" = set; then | |
7070 | enableval="$enable_treectrl" | |
698dcdb6 | 7071 | |
10f2d63a VZ |
7072 | if test "$enableval" = yes; then |
7073 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7074 | else | |
7075 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7076 | fi | |
698dcdb6 | 7077 | |
10f2d63a | 7078 | else |
698dcdb6 | 7079 | |
10f2d63a VZ |
7080 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7081 | if test "x$LINE" != x ; then | |
7082 | eval "DEFAULT_$LINE" | |
7083 | else | |
7084 | no_cache=1 | |
7085 | fi | |
7086 | ||
7087 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
7088 | |
7089 | fi | |
10f2d63a VZ |
7090 | |
7091 | ||
1e6feb95 VZ |
7092 | eval "$ac_cv_use_treectrl" |
7093 | if test "$no_cache" != 1; then | |
7094 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7095 | fi | |
7096 | ||
7097 | if test "$wxUSE_TREECTRL" = yes; then | |
7098 | echo "$ac_t""yes" 1>&6 | |
7099 | else | |
7100 | echo "$ac_t""no" 1>&6 | |
7101 | fi | |
7102 | ||
7103 | ||
9926e4a4 | 7104 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
24f5e003 | 7105 | echo "configure:7106: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7106 | no_cache=0 |
7107 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7108 | if test "${enable_tipwindow+set}" = set; then | |
7109 | enableval="$enable_tipwindow" | |
7110 | ||
7111 | if test "$enableval" = yes; then | |
7112 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7113 | else | |
7114 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7115 | fi | |
7116 | ||
7117 | else | |
7118 | ||
7119 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7120 | if test "x$LINE" != x ; then | |
7121 | eval "DEFAULT_$LINE" | |
7122 | else | |
7123 | no_cache=1 | |
7124 | fi | |
7125 | ||
7126 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7127 | ||
7128 | fi | |
7129 | ||
7130 | ||
7131 | eval "$ac_cv_use_tipwindow" | |
7132 | if test "$no_cache" != 1; then | |
7133 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7134 | fi | |
7135 | ||
7136 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7137 | echo "$ac_t""yes" 1>&6 | |
7138 | else | |
7139 | echo "$ac_t""no" 1>&6 | |
7140 | fi | |
7141 | ||
7142 | ||
9f41d601 | 7143 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
24f5e003 | 7144 | echo "configure:7145: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7145 | no_cache=0 |
7146 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7147 | if test "${enable_popupwin+set}" = set; then | |
7148 | enableval="$enable_popupwin" | |
7149 | ||
7150 | if test "$enableval" = yes; then | |
7151 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7152 | else | |
7153 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7154 | fi | |
7155 | ||
7156 | else | |
7157 | ||
7158 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
7159 | if test "x$LINE" != x ; then | |
7160 | eval "DEFAULT_$LINE" | |
7161 | else | |
7162 | no_cache=1 | |
7163 | fi | |
7164 | ||
7165 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7166 | ||
7167 | fi | |
7168 | ||
7169 | ||
7170 | eval "$ac_cv_use_popupwin" | |
7171 | if test "$no_cache" != 1; then | |
7172 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7173 | fi | |
7174 | ||
7175 | if test "$wxUSE_POPUPWIN" = yes; then | |
7176 | echo "$ac_t""yes" 1>&6 | |
7177 | else | |
7178 | echo "$ac_t""no" 1>&6 | |
7179 | fi | |
7180 | ||
7181 | ||
1e6feb95 VZ |
7182 | |
7183 | ||
7184 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
24f5e003 | 7185 | echo "configure:7186: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7186 | no_cache=0 |
7187 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7188 | if test "${enable_commondlg+set}" = set; then | |
7189 | enableval="$enable_commondlg" | |
7190 | ||
7191 | if test "$enableval" = yes; then | |
7192 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7193 | else | |
7194 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7195 | fi | |
7196 | ||
7197 | else | |
7198 | ||
7199 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7200 | if test "x$LINE" != x ; then | |
7201 | eval "DEFAULT_$LINE" | |
7202 | else | |
7203 | no_cache=1 | |
7204 | fi | |
7205 | ||
7206 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7207 | ||
7208 | fi | |
7209 | ||
7210 | ||
7211 | eval "$ac_cv_use_commondlg" | |
7212 | if test "$no_cache" != 1; then | |
7213 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7214 | fi | |
7215 | ||
7216 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7217 | echo "$ac_t""yes" 1>&6 | |
7218 | else | |
7219 | echo "$ac_t""no" 1>&6 | |
7220 | fi | |
7221 | ||
7222 | ||
7223 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
24f5e003 | 7224 | echo "configure:7225: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7225 | no_cache=0 |
7226 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7227 | if test "${enable_choicedlg+set}" = set; then | |
7228 | enableval="$enable_choicedlg" | |
7229 | ||
7230 | if test "$enableval" = yes; then | |
7231 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7232 | else | |
7233 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7234 | fi | |
7235 | ||
7236 | else | |
7237 | ||
7238 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7239 | if test "x$LINE" != x ; then | |
7240 | eval "DEFAULT_$LINE" | |
7241 | else | |
7242 | no_cache=1 | |
7243 | fi | |
7244 | ||
7245 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7246 | ||
7247 | fi | |
7248 | ||
7249 | ||
7250 | eval "$ac_cv_use_choicedlg" | |
7251 | if test "$no_cache" != 1; then | |
7252 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7253 | fi | |
7254 | ||
7255 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7256 | echo "$ac_t""yes" 1>&6 | |
7257 | else | |
7258 | echo "$ac_t""no" 1>&6 | |
7259 | fi | |
7260 | ||
7261 | ||
7262 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
24f5e003 | 7263 | echo "configure:7264: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7264 | no_cache=0 |
7265 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7266 | if test "${enable_coldlg+set}" = set; then | |
7267 | enableval="$enable_coldlg" | |
7268 | ||
7269 | if test "$enableval" = yes; then | |
7270 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7271 | else | |
7272 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7273 | fi | |
7274 | ||
7275 | else | |
7276 | ||
7277 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7278 | if test "x$LINE" != x ; then | |
7279 | eval "DEFAULT_$LINE" | |
7280 | else | |
7281 | no_cache=1 | |
7282 | fi | |
7283 | ||
7284 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7285 | ||
7286 | fi | |
7287 | ||
7288 | ||
7289 | eval "$ac_cv_use_coldlg" | |
7290 | if test "$no_cache" != 1; then | |
7291 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7292 | fi | |
7293 | ||
7294 | if test "$wxUSE_COLOURDLG" = yes; then | |
7295 | echo "$ac_t""yes" 1>&6 | |
7296 | else | |
7297 | echo "$ac_t""no" 1>&6 | |
7298 | fi | |
7299 | ||
7300 | ||
7301 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
24f5e003 | 7302 | echo "configure:7303: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7303 | no_cache=0 |
7304 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7305 | if test "${enable_filedlg+set}" = set; then | |
7306 | enableval="$enable_filedlg" | |
7307 | ||
7308 | if test "$enableval" = yes; then | |
7309 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7310 | else | |
7311 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7312 | fi | |
7313 | ||
7314 | else | |
7315 | ||
7316 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7317 | if test "x$LINE" != x ; then | |
7318 | eval "DEFAULT_$LINE" | |
7319 | else | |
7320 | no_cache=1 | |
7321 | fi | |
7322 | ||
7323 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7324 | ||
7325 | fi | |
7326 | ||
7327 | ||
7328 | eval "$ac_cv_use_filedlg" | |
7329 | if test "$no_cache" != 1; then | |
7330 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7331 | fi | |
7332 | ||
7333 | if test "$wxUSE_FILEDLG" = yes; then | |
7334 | echo "$ac_t""yes" 1>&6 | |
7335 | else | |
7336 | echo "$ac_t""no" 1>&6 | |
7337 | fi | |
7338 | ||
7339 | ||
69d27ff7 | 7340 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
24f5e003 | 7341 | echo "configure:7342: checking for --enable-finddlg" >&5 |
8db37e06 | 7342 | no_cache=0 |
69d27ff7 MB |
7343 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7344 | if test "${enable_finddlg+set}" = set; then | |
7345 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7346 | |
7347 | if test "$enableval" = yes; then | |
69d27ff7 | 7348 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7349 | else |
69d27ff7 | 7350 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7351 | fi |
7352 | ||
7353 | else | |
7354 | ||
7355 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7356 | if test "x$LINE" != x ; then | |
7357 | eval "DEFAULT_$LINE" | |
7358 | else | |
7359 | no_cache=1 | |
7360 | fi | |
7361 | ||
69d27ff7 | 7362 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7363 | |
7364 | fi | |
7365 | ||
7366 | ||
69d27ff7 | 7367 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7368 | if test "$no_cache" != 1; then |
69d27ff7 | 7369 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7370 | fi |
7371 | ||
7372 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7373 | echo "$ac_t""yes" 1>&6 | |
7374 | else | |
7375 | echo "$ac_t""no" 1>&6 | |
7376 | fi | |
7377 | ||
7378 | ||
1e6feb95 | 7379 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
24f5e003 | 7380 | echo "configure:7381: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7381 | no_cache=0 |
7382 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7383 | if test "${enable_fontdlg+set}" = set; then | |
7384 | enableval="$enable_fontdlg" | |
7385 | ||
7386 | if test "$enableval" = yes; then | |
7387 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7388 | else | |
7389 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7390 | fi | |
7391 | ||
7392 | else | |
7393 | ||
7394 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7395 | if test "x$LINE" != x ; then | |
7396 | eval "DEFAULT_$LINE" | |
7397 | else | |
7398 | no_cache=1 | |
7399 | fi | |
7400 | ||
7401 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7402 | ||
7403 | fi | |
7404 | ||
7405 | ||
7406 | eval "$ac_cv_use_fontdlg" | |
7407 | if test "$no_cache" != 1; then | |
7408 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7409 | fi | |
7410 | ||
7411 | if test "$wxUSE_FONTDLG" = yes; then | |
7412 | echo "$ac_t""yes" 1>&6 | |
7413 | else | |
7414 | echo "$ac_t""no" 1>&6 | |
7415 | fi | |
7416 | ||
7417 | ||
7418 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
24f5e003 | 7419 | echo "configure:7420: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7420 | no_cache=0 |
7421 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7422 | if test "${enable_dirdlg+set}" = set; then | |
7423 | enableval="$enable_dirdlg" | |
7424 | ||
7425 | if test "$enableval" = yes; then | |
7426 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7427 | else | |
7428 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7429 | fi | |
7430 | ||
7431 | else | |
7432 | ||
7433 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7434 | if test "x$LINE" != x ; then | |
7435 | eval "DEFAULT_$LINE" | |
7436 | else | |
7437 | no_cache=1 | |
7438 | fi | |
7439 | ||
7440 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7441 | ||
7442 | fi | |
7443 | ||
7444 | ||
7445 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7446 | if test "$no_cache" != 1; then |
1e6feb95 | 7447 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7448 | fi |
7449 | ||
1e6feb95 | 7450 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7451 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7452 | else |
698dcdb6 | 7453 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7454 | fi |
698dcdb6 VZ |
7455 | |
7456 | ||
1e6feb95 | 7457 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
24f5e003 | 7458 | echo "configure:7459: checking for --enable-msgdlg" >&5 |
10f2d63a | 7459 | no_cache=0 |
1e6feb95 VZ |
7460 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7461 | if test "${enable_msgdlg+set}" = set; then | |
7462 | enableval="$enable_msgdlg" | |
698dcdb6 | 7463 | |
10f2d63a | 7464 | if test "$enableval" = yes; then |
1e6feb95 | 7465 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7466 | else |
1e6feb95 | 7467 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7468 | fi |
698dcdb6 | 7469 | |
10f2d63a | 7470 | else |
698dcdb6 | 7471 | |
1e6feb95 | 7472 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7473 | if test "x$LINE" != x ; then |
7474 | eval "DEFAULT_$LINE" | |
7475 | else | |
7476 | no_cache=1 | |
7477 | fi | |
7478 | ||
1e6feb95 | 7479 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7480 | |
7481 | fi | |
10f2d63a VZ |
7482 | |
7483 | ||
1e6feb95 | 7484 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7485 | if test "$no_cache" != 1; then |
1e6feb95 | 7486 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7487 | fi |
7488 | ||
1e6feb95 | 7489 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7490 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7491 | else |
698dcdb6 | 7492 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7493 | fi |
698dcdb6 | 7494 | |
10f2d63a | 7495 | |
1e6feb95 | 7496 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
24f5e003 | 7497 | echo "configure:7498: checking for --enable-numberdlg" >&5 |
10f2d63a | 7498 | no_cache=0 |
1e6feb95 VZ |
7499 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7500 | if test "${enable_numberdlg+set}" = set; then | |
7501 | enableval="$enable_numberdlg" | |
698dcdb6 | 7502 | |
10f2d63a | 7503 | if test "$enableval" = yes; then |
1e6feb95 | 7504 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7505 | else |
1e6feb95 | 7506 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7507 | fi |
698dcdb6 | 7508 | |
10f2d63a | 7509 | else |
698dcdb6 | 7510 | |
1e6feb95 | 7511 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7512 | if test "x$LINE" != x ; then |
7513 | eval "DEFAULT_$LINE" | |
7514 | else | |
7515 | no_cache=1 | |
7516 | fi | |
7517 | ||
1e6feb95 | 7518 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7519 | |
7520 | fi | |
10f2d63a VZ |
7521 | |
7522 | ||
1e6feb95 | 7523 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7524 | if test "$no_cache" != 1; then |
1e6feb95 | 7525 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7526 | fi |
7527 | ||
1e6feb95 | 7528 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7529 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7530 | else |
698dcdb6 | 7531 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7532 | fi |
698dcdb6 | 7533 | |
10f2d63a | 7534 | |
cbca9943 | 7535 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
24f5e003 | 7536 | echo "configure:7537: checking for --enable-splash" >&5 |
cbca9943 VZ |
7537 | no_cache=0 |
7538 | # Check whether --enable-splash or --disable-splash was given. | |
7539 | if test "${enable_splash+set}" = set; then | |
7540 | enableval="$enable_splash" | |
7541 | ||
7542 | if test "$enableval" = yes; then | |
7543 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7544 | else | |
7545 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7546 | fi | |
7547 | ||
7548 | else | |
7549 | ||
7550 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7551 | if test "x$LINE" != x ; then | |
7552 | eval "DEFAULT_$LINE" | |
7553 | else | |
7554 | no_cache=1 | |
7555 | fi | |
7556 | ||
7557 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7558 | ||
7559 | fi | |
7560 | ||
7561 | ||
7562 | eval "$ac_cv_use_splash" | |
7563 | if test "$no_cache" != 1; then | |
7564 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7565 | fi | |
7566 | ||
7567 | if test "$wxUSE_SPLASH" = yes; then | |
7568 | echo "$ac_t""yes" 1>&6 | |
7569 | else | |
7570 | echo "$ac_t""no" 1>&6 | |
7571 | fi | |
7572 | ||
7573 | ||
698dcdb6 | 7574 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
24f5e003 | 7575 | echo "configure:7576: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7576 | no_cache=0 |
7577 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7578 | if test "${enable_textdlg+set}" = set; then | |
7579 | enableval="$enable_textdlg" | |
698dcdb6 | 7580 | |
10f2d63a VZ |
7581 | if test "$enableval" = yes; then |
7582 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7583 | else | |
7584 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7585 | fi | |
698dcdb6 | 7586 | |
10f2d63a | 7587 | else |
698dcdb6 | 7588 | |
10f2d63a VZ |
7589 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7590 | if test "x$LINE" != x ; then | |
7591 | eval "DEFAULT_$LINE" | |
7592 | else | |
7593 | no_cache=1 | |
7594 | fi | |
7595 | ||
7596 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7597 | |
7598 | fi | |
10f2d63a VZ |
7599 | |
7600 | ||
7601 | eval "$ac_cv_use_textdlg" | |
7602 | if test "$no_cache" != 1; then | |
7603 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7604 | fi | |
7605 | ||
7606 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7607 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7608 | else |
698dcdb6 | 7609 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7610 | fi |
698dcdb6 | 7611 | |
10f2d63a | 7612 | |
698dcdb6 | 7613 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
24f5e003 | 7614 | echo "configure:7615: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7615 | no_cache=0 |
7616 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7617 | if test "${enable_tipdlg+set}" = set; then | |
7618 | enableval="$enable_tipdlg" | |
698dcdb6 | 7619 | |
10f2d63a VZ |
7620 | if test "$enableval" = yes; then |
7621 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7622 | else | |
7623 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7624 | fi | |
698dcdb6 | 7625 | |
10f2d63a | 7626 | else |
698dcdb6 | 7627 | |
10f2d63a VZ |
7628 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7629 | if test "x$LINE" != x ; then | |
7630 | eval "DEFAULT_$LINE" | |
7631 | else | |
7632 | no_cache=1 | |
7633 | fi | |
7634 | ||
7635 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7636 | |
7637 | fi | |
10f2d63a VZ |
7638 | |
7639 | ||
7640 | eval "$ac_cv_use_tipdlg" | |
7641 | if test "$no_cache" != 1; then | |
7642 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7643 | fi | |
7644 | ||
7645 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7646 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7647 | else |
698dcdb6 | 7648 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7649 | fi |
698dcdb6 | 7650 | |
10f2d63a | 7651 | |
698dcdb6 | 7652 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
24f5e003 | 7653 | echo "configure:7654: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7654 | no_cache=0 |
7655 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7656 | if test "${enable_progressdlg+set}" = set; then | |
7657 | enableval="$enable_progressdlg" | |
698dcdb6 | 7658 | |
10f2d63a VZ |
7659 | if test "$enableval" = yes; then |
7660 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7661 | else | |
7662 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7663 | fi | |
698dcdb6 | 7664 | |
10f2d63a | 7665 | else |
698dcdb6 | 7666 | |
10f2d63a VZ |
7667 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7668 | if test "x$LINE" != x ; then | |
7669 | eval "DEFAULT_$LINE" | |
7670 | else | |
7671 | no_cache=1 | |
7672 | fi | |
7673 | ||
7674 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7675 | |
7676 | fi | |
10f2d63a VZ |
7677 | |
7678 | ||
7679 | eval "$ac_cv_use_progressdlg" | |
7680 | if test "$no_cache" != 1; then | |
7681 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7682 | fi | |
7683 | ||
7684 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7685 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7686 | else |
698dcdb6 | 7687 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7688 | fi |
698dcdb6 | 7689 | |
10f2d63a | 7690 | |
b1f5d087 | 7691 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
24f5e003 | 7692 | echo "configure:7693: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7693 | no_cache=0 |
7694 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7695 | if test "${enable_wizarddlg+set}" = set; then | |
7696 | enableval="$enable_wizarddlg" | |
7697 | ||
7698 | if test "$enableval" = yes; then | |
7699 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7700 | else | |
7701 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7702 | fi | |
7703 | ||
7704 | else | |
7705 | ||
7706 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7707 | if test "x$LINE" != x ; then | |
7708 | eval "DEFAULT_$LINE" | |
7709 | else | |
7710 | no_cache=1 | |
7711 | fi | |
7712 | ||
7713 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7714 | ||
7715 | fi | |
7716 | ||
7717 | ||
7718 | eval "$ac_cv_use_wizarddlg" | |
7719 | if test "$no_cache" != 1; then | |
7720 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7721 | fi | |
7722 | ||
7723 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7724 | echo "$ac_t""yes" 1>&6 | |
7725 | else | |
7726 | echo "$ac_t""no" 1>&6 | |
7727 | fi | |
7728 | ||
7729 | ||
7730 | ||
7731 | ||
1e6feb95 | 7732 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
24f5e003 | 7733 | echo "configure:7734: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7734 | no_cache=0 |
7735 | # Check whether --enable-menus or --disable-menus was given. | |
7736 | if test "${enable_menus+set}" = set; then | |
7737 | enableval="$enable_menus" | |
7738 | ||
7739 | if test "$enableval" = yes; then | |
7740 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7741 | else | |
7742 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7743 | fi | |
7744 | ||
7745 | else | |
7746 | ||
7747 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7748 | if test "x$LINE" != x ; then | |
7749 | eval "DEFAULT_$LINE" | |
7750 | else | |
7751 | no_cache=1 | |
7752 | fi | |
7753 | ||
7754 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7755 | ||
7756 | fi | |
7757 | ||
7758 | ||
7759 | eval "$ac_cv_use_menus" | |
7760 | if test "$no_cache" != 1; then | |
7761 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7762 | fi | |
7763 | ||
7764 | if test "$wxUSE_MENUS" = yes; then | |
7765 | echo "$ac_t""yes" 1>&6 | |
7766 | else | |
7767 | echo "$ac_t""no" 1>&6 | |
7768 | fi | |
7769 | ||
7770 | ||
698dcdb6 | 7771 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
24f5e003 | 7772 | echo "configure:7773: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7773 | no_cache=0 |
7774 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7775 | if test "${enable_miniframe+set}" = set; then | |
7776 | enableval="$enable_miniframe" | |
698dcdb6 | 7777 | |
10f2d63a VZ |
7778 | if test "$enableval" = yes; then |
7779 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7780 | else | |
7781 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7782 | fi | |
698dcdb6 | 7783 | |
10f2d63a | 7784 | else |
698dcdb6 | 7785 | |
10f2d63a VZ |
7786 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7787 | if test "x$LINE" != x ; then | |
7788 | eval "DEFAULT_$LINE" | |
7789 | else | |
7790 | no_cache=1 | |
7791 | fi | |
7792 | ||
7793 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7794 | |
7795 | fi | |
10f2d63a VZ |
7796 | |
7797 | ||
7798 | eval "$ac_cv_use_miniframe" | |
7799 | if test "$no_cache" != 1; then | |
7800 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7801 | fi | |
7802 | ||
7803 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7804 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7805 | else |
698dcdb6 | 7806 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7807 | fi |
698dcdb6 | 7808 | |
10f2d63a | 7809 | |
698dcdb6 | 7810 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
24f5e003 | 7811 | echo "configure:7812: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7812 | no_cache=0 |
7813 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7814 | if test "${enable_tooltips+set}" = set; then | |
7815 | enableval="$enable_tooltips" | |
698dcdb6 | 7816 | |
10f2d63a VZ |
7817 | if test "$enableval" = yes; then |
7818 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7819 | else | |
7820 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7821 | fi | |
698dcdb6 | 7822 | |
10f2d63a | 7823 | else |
698dcdb6 | 7824 | |
10f2d63a VZ |
7825 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7826 | if test "x$LINE" != x ; then | |
7827 | eval "DEFAULT_$LINE" | |
7828 | else | |
7829 | no_cache=1 | |
7830 | fi | |
7831 | ||
7832 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7833 | |
7834 | fi | |
10f2d63a VZ |
7835 | |
7836 | ||
7837 | eval "$ac_cv_use_tooltips" | |
7838 | if test "$no_cache" != 1; then | |
7839 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7840 | fi | |
7841 | ||
7842 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7843 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7844 | else |
698dcdb6 | 7845 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7846 | fi |
698dcdb6 | 7847 | |
10f2d63a | 7848 | |
698dcdb6 | 7849 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
24f5e003 | 7850 | echo "configure:7851: checking for --enable-splines" >&5 |
10f2d63a VZ |
7851 | no_cache=0 |
7852 | # Check whether --enable-splines or --disable-splines was given. | |
7853 | if test "${enable_splines+set}" = set; then | |
7854 | enableval="$enable_splines" | |
698dcdb6 | 7855 | |
10f2d63a VZ |
7856 | if test "$enableval" = yes; then |
7857 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7858 | else | |
7859 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7860 | fi | |
698dcdb6 | 7861 | |
10f2d63a | 7862 | else |
698dcdb6 | 7863 | |
10f2d63a VZ |
7864 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7865 | if test "x$LINE" != x ; then | |
7866 | eval "DEFAULT_$LINE" | |
7867 | else | |
7868 | no_cache=1 | |
7869 | fi | |
7870 | ||
7871 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7872 | |
7873 | fi | |
10f2d63a VZ |
7874 | |
7875 | ||
7876 | eval "$ac_cv_use_splines" | |
7877 | if test "$no_cache" != 1; then | |
7878 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7879 | fi | |
7880 | ||
7881 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7882 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7883 | else |
698dcdb6 | 7884 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7885 | fi |
698dcdb6 | 7886 | |
10f2d63a | 7887 | |
698dcdb6 | 7888 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
24f5e003 | 7889 | echo "configure:7890: checking for --enable-validators" >&5 |
10f2d63a VZ |
7890 | no_cache=0 |
7891 | # Check whether --enable-validators or --disable-validators was given. | |
7892 | if test "${enable_validators+set}" = set; then | |
7893 | enableval="$enable_validators" | |
698dcdb6 | 7894 | |
10f2d63a VZ |
7895 | if test "$enableval" = yes; then |
7896 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7897 | else | |
7898 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7899 | fi | |
698dcdb6 | 7900 | |
10f2d63a | 7901 | else |
698dcdb6 | 7902 | |
10f2d63a VZ |
7903 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7904 | if test "x$LINE" != x ; then | |
7905 | eval "DEFAULT_$LINE" | |
7906 | else | |
7907 | no_cache=1 | |
7908 | fi | |
7909 | ||
7910 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7911 | |
7912 | fi | |
10f2d63a VZ |
7913 | |
7914 | ||
7915 | eval "$ac_cv_use_validators" | |
7916 | if test "$no_cache" != 1; then | |
7917 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7918 | fi | |
7919 | ||
7920 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7921 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7922 | else |
698dcdb6 | 7923 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7924 | fi |
698dcdb6 | 7925 | |
10f2d63a | 7926 | |
698dcdb6 | 7927 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
24f5e003 | 7928 | echo "configure:7929: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7929 | no_cache=0 |
7930 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7931 | if test "${enable_busyinfo+set}" = set; then | |
7932 | enableval="$enable_busyinfo" | |
698dcdb6 | 7933 | |
10f2d63a VZ |
7934 | if test "$enableval" = yes; then |
7935 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7936 | else | |
7937 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7938 | fi | |
698dcdb6 | 7939 | |
10f2d63a | 7940 | else |
698dcdb6 | 7941 | |
10f2d63a VZ |
7942 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7943 | if test "x$LINE" != x ; then | |
7944 | eval "DEFAULT_$LINE" | |
7945 | else | |
7946 | no_cache=1 | |
7947 | fi | |
7948 | ||
7949 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7950 | |
7951 | fi | |
10f2d63a VZ |
7952 | |
7953 | ||
7954 | eval "$ac_cv_use_busyinfo" | |
7955 | if test "$no_cache" != 1; then | |
7956 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7957 | fi | |
7958 | ||
7959 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7960 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7961 | else |
698dcdb6 | 7962 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7963 | fi |
698dcdb6 | 7964 | |
10f2d63a | 7965 | |
698dcdb6 | 7966 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
24f5e003 | 7967 | echo "configure:7968: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7968 | no_cache=0 |
7969 | # Check whether --enable-joystick or --disable-joystick was given. | |
7970 | if test "${enable_joystick+set}" = set; then | |
7971 | enableval="$enable_joystick" | |
698dcdb6 | 7972 | |
f6bcfd97 BP |
7973 | if test "$enableval" = yes; then |
7974 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7975 | else | |
7976 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7977 | fi | |
698dcdb6 | 7978 | |
f6bcfd97 | 7979 | else |
698dcdb6 | 7980 | |
f6bcfd97 BP |
7981 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7982 | if test "x$LINE" != x ; then | |
7983 | eval "DEFAULT_$LINE" | |
7984 | else | |
7985 | no_cache=1 | |
7986 | fi | |
7987 | ||
7988 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7989 | |
7990 | fi | |
f6bcfd97 BP |
7991 | |
7992 | ||
7993 | eval "$ac_cv_use_joystick" | |
7994 | if test "$no_cache" != 1; then | |
7995 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7996 | fi | |
7997 | ||
7998 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7999 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8000 | else |
698dcdb6 | 8001 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8002 | fi |
698dcdb6 VZ |
8003 | |
8004 | ||
1e6feb95 | 8005 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
24f5e003 | 8006 | echo "configure:8007: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8007 | no_cache=0 |
8008 | # Check whether --enable-metafile or --disable-metafile was given. | |
8009 | if test "${enable_metafile+set}" = set; then | |
8010 | enableval="$enable_metafile" | |
8011 | ||
8012 | if test "$enableval" = yes; then | |
8013 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8014 | else | |
8015 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8016 | fi | |
8017 | ||
8018 | else | |
8019 | ||
8020 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8021 | if test "x$LINE" != x ; then | |
8022 | eval "DEFAULT_$LINE" | |
8023 | else | |
8024 | no_cache=1 | |
8025 | fi | |
8026 | ||
8027 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8028 | ||
8029 | fi | |
8030 | ||
8031 | ||
8032 | eval "$ac_cv_use_metafile" | |
8033 | if test "$no_cache" != 1; then | |
8034 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8035 | fi | |
8036 | ||
8037 | if test "$wxUSE_METAFILE" = yes; then | |
8038 | echo "$ac_t""yes" 1>&6 | |
8039 | else | |
8040 | echo "$ac_t""no" 1>&6 | |
8041 | fi | |
8042 | ||
8043 | ||
24fd6d87 | 8044 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
24f5e003 | 8045 | echo "configure:8046: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8046 | no_cache=0 |
8047 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8048 | if test "${enable_dragimage+set}" = set; then | |
8049 | enableval="$enable_dragimage" | |
8050 | ||
8051 | if test "$enableval" = yes; then | |
8052 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8053 | else | |
8054 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8055 | fi | |
8056 | ||
8057 | else | |
8058 | ||
8059 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8060 | if test "x$LINE" != x ; then | |
8061 | eval "DEFAULT_$LINE" | |
8062 | else | |
8063 | no_cache=1 | |
8064 | fi | |
8065 | ||
8066 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8067 | ||
8068 | fi | |
8069 | ||
8070 | ||
8071 | eval "$ac_cv_use_dragimage" | |
8072 | if test "$no_cache" != 1; then | |
8073 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8074 | fi | |
8075 | ||
8076 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8077 | echo "$ac_t""yes" 1>&6 | |
8078 | else | |
8079 | echo "$ac_t""no" 1>&6 | |
8080 | fi | |
8081 | ||
8082 | ||
10f2d63a | 8083 | |
698dcdb6 | 8084 | |
edae8572 | 8085 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
24f5e003 | 8086 | echo "configure:8087: checking for --enable-palette" >&5 |
edae8572 VZ |
8087 | no_cache=0 |
8088 | # Check whether --enable-palette or --disable-palette was given. | |
8089 | if test "${enable_palette+set}" = set; then | |
8090 | enableval="$enable_palette" | |
8091 | ||
8092 | if test "$enableval" = yes; then | |
8093 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8094 | else | |
8095 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8096 | fi | |
8097 | ||
8098 | else | |
8099 | ||
8100 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8101 | if test "x$LINE" != x ; then | |
8102 | eval "DEFAULT_$LINE" | |
8103 | else | |
8104 | no_cache=1 | |
8105 | fi | |
8106 | ||
8107 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8108 | ||
8109 | fi | |
8110 | ||
8111 | ||
8112 | eval "$ac_cv_use_palette" | |
8113 | if test "$no_cache" != 1; then | |
8114 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8115 | fi | |
8116 | ||
8117 | if test "$wxUSE_PALETTE" = yes; then | |
8118 | echo "$ac_t""yes" 1>&6 | |
8119 | else | |
8120 | echo "$ac_t""no" 1>&6 | |
8121 | fi | |
8122 | ||
8123 | ||
698dcdb6 | 8124 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
24f5e003 | 8125 | echo "configure:8126: checking for --enable-image" >&5 |
0046ff7c VS |
8126 | no_cache=0 |
8127 | # Check whether --enable-image or --disable-image was given. | |
8128 | if test "${enable_image+set}" = set; then | |
8129 | enableval="$enable_image" | |
698dcdb6 | 8130 | |
0046ff7c VS |
8131 | if test "$enableval" = yes; then |
8132 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8133 | else | |
8134 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8135 | fi | |
698dcdb6 | 8136 | |
0046ff7c | 8137 | else |
698dcdb6 | 8138 | |
0046ff7c VS |
8139 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8140 | if test "x$LINE" != x ; then | |
8141 | eval "DEFAULT_$LINE" | |
8142 | else | |
8143 | no_cache=1 | |
8144 | fi | |
8145 | ||
8146 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
8147 | |
8148 | fi | |
0046ff7c VS |
8149 | |
8150 | ||
8151 | eval "$ac_cv_use_image" | |
8152 | if test "$no_cache" != 1; then | |
8153 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8154 | fi | |
8155 | ||
8156 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 8157 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8158 | else |
698dcdb6 | 8159 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8160 | fi |
698dcdb6 | 8161 | |
0046ff7c | 8162 | |
698dcdb6 | 8163 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
24f5e003 | 8164 | echo "configure:8165: checking for --enable-gif" >&5 |
10f2d63a VZ |
8165 | no_cache=0 |
8166 | # Check whether --enable-gif or --disable-gif was given. | |
8167 | if test "${enable_gif+set}" = set; then | |
8168 | enableval="$enable_gif" | |
698dcdb6 | 8169 | |
10f2d63a VZ |
8170 | if test "$enableval" = yes; then |
8171 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8172 | else | |
8173 | ac_cv_use_gif='wxUSE_GIF=no' | |
8174 | fi | |
698dcdb6 | 8175 | |
10f2d63a | 8176 | else |
698dcdb6 | 8177 | |
10f2d63a VZ |
8178 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8179 | if test "x$LINE" != x ; then | |
8180 | eval "DEFAULT_$LINE" | |
8181 | else | |
8182 | no_cache=1 | |
8183 | fi | |
8184 | ||
8185 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
8186 | |
8187 | fi | |
10f2d63a VZ |
8188 | |
8189 | ||
8190 | eval "$ac_cv_use_gif" | |
8191 | if test "$no_cache" != 1; then | |
8192 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8193 | fi | |
8194 | ||
8195 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 8196 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8197 | else |
698dcdb6 | 8198 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8199 | fi |
698dcdb6 | 8200 | |
10f2d63a | 8201 | |
698dcdb6 | 8202 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
24f5e003 | 8203 | echo "configure:8204: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8204 | no_cache=0 |
8205 | # Check whether --enable-pcx or --disable-pcx was given. | |
8206 | if test "${enable_pcx+set}" = set; then | |
8207 | enableval="$enable_pcx" | |
698dcdb6 | 8208 | |
10f2d63a VZ |
8209 | if test "$enableval" = yes; then |
8210 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8211 | else | |
8212 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8213 | fi | |
698dcdb6 | 8214 | |
10f2d63a | 8215 | else |
698dcdb6 | 8216 | |
10f2d63a VZ |
8217 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8218 | if test "x$LINE" != x ; then | |
8219 | eval "DEFAULT_$LINE" | |
8220 | else | |
8221 | no_cache=1 | |
8222 | fi | |
8223 | ||
8224 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
8225 | |
8226 | fi | |
10f2d63a VZ |
8227 | |
8228 | ||
8229 | eval "$ac_cv_use_pcx" | |
8230 | if test "$no_cache" != 1; then | |
8231 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8232 | fi | |
8233 | ||
8234 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 8235 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8236 | else |
698dcdb6 | 8237 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8238 | fi |
698dcdb6 | 8239 | |
10f2d63a | 8240 | |
4b6b4dfc | 8241 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
24f5e003 | 8242 | echo "configure:8243: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8243 | no_cache=0 |
8244 | # Check whether --enable-iff or --disable-iff was given. | |
8245 | if test "${enable_iff+set}" = set; then | |
8246 | enableval="$enable_iff" | |
8247 | ||
8248 | if test "$enableval" = yes; then | |
8249 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8250 | else | |
8251 | ac_cv_use_iff='wxUSE_IFF=no' | |
8252 | fi | |
8253 | ||
8254 | else | |
8255 | ||
8256 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8257 | if test "x$LINE" != x ; then | |
8258 | eval "DEFAULT_$LINE" | |
8259 | else | |
8260 | no_cache=1 | |
8261 | fi | |
8262 | ||
8263 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8264 | ||
8265 | fi | |
8266 | ||
8267 | ||
8268 | eval "$ac_cv_use_iff" | |
8269 | if test "$no_cache" != 1; then | |
8270 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8271 | fi | |
8272 | ||
8273 | if test "$wxUSE_IFF" = yes; then | |
8274 | echo "$ac_t""yes" 1>&6 | |
8275 | else | |
8276 | echo "$ac_t""no" 1>&6 | |
8277 | fi | |
8278 | ||
8279 | ||
698dcdb6 | 8280 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
24f5e003 | 8281 | echo "configure:8282: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8282 | no_cache=0 |
8283 | # Check whether --enable-pnm or --disable-pnm was given. | |
8284 | if test "${enable_pnm+set}" = set; then | |
8285 | enableval="$enable_pnm" | |
698dcdb6 | 8286 | |
10f2d63a VZ |
8287 | if test "$enableval" = yes; then |
8288 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8289 | else | |
8290 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8291 | fi | |
698dcdb6 | 8292 | |
10f2d63a | 8293 | else |
698dcdb6 | 8294 | |
10f2d63a VZ |
8295 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8296 | if test "x$LINE" != x ; then | |
8297 | eval "DEFAULT_$LINE" | |
8298 | else | |
8299 | no_cache=1 | |
8300 | fi | |
8301 | ||
8302 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
8303 | |
8304 | fi | |
10f2d63a VZ |
8305 | |
8306 | ||
8307 | eval "$ac_cv_use_pnm" | |
8308 | if test "$no_cache" != 1; then | |
8309 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8310 | fi | |
8311 | ||
8312 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 8313 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8314 | else |
698dcdb6 | 8315 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8316 | fi |
698dcdb6 | 8317 | |
10f2d63a | 8318 | |
69d27ff7 | 8319 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
24f5e003 | 8320 | echo "configure:8321: checking for --enable-xpm" >&5 |
0046ff7c | 8321 | no_cache=0 |
69d27ff7 MB |
8322 | # Check whether --enable-xpm or --disable-xpm was given. |
8323 | if test "${enable_xpm+set}" = set; then | |
8324 | enableval="$enable_xpm" | |
698dcdb6 | 8325 | |
0046ff7c | 8326 | if test "$enableval" = yes; then |
69d27ff7 | 8327 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8328 | else |
69d27ff7 | 8329 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8330 | fi |
698dcdb6 | 8331 | |
0046ff7c | 8332 | else |
698dcdb6 | 8333 | |
0046ff7c VS |
8334 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8335 | if test "x$LINE" != x ; then | |
8336 | eval "DEFAULT_$LINE" | |
8337 | else | |
8338 | no_cache=1 | |
8339 | fi | |
8340 | ||
69d27ff7 | 8341 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
8342 | |
8343 | fi | |
0046ff7c VS |
8344 | |
8345 | ||
69d27ff7 | 8346 | eval "$ac_cv_use_xpm" |
0046ff7c | 8347 | if test "$no_cache" != 1; then |
69d27ff7 | 8348 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8349 | fi |
8350 | ||
8351 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 8352 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8353 | else |
698dcdb6 | 8354 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8355 | fi |
698dcdb6 | 8356 | |
0046ff7c | 8357 | |
c7206e64 | 8358 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
24f5e003 | 8359 | echo "configure:8360: checking for --enable-ico_cur" >&5 |
658974ae | 8360 | no_cache=0 |
c7206e64 VS |
8361 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8362 | if test "${enable_ico_cur+set}" = set; then | |
8363 | enableval="$enable_ico_cur" | |
658974ae VS |
8364 | |
8365 | if test "$enableval" = yes; then | |
c7206e64 | 8366 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8367 | else |
c7206e64 | 8368 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae VS |
8369 | fi |
8370 | ||
8371 | else | |
8372 | ||
8373 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8374 | if test "x$LINE" != x ; then | |
8375 | eval "DEFAULT_$LINE" | |
8376 | else | |
8377 | no_cache=1 | |
8378 | fi | |
8379 | ||
c7206e64 | 8380 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae VS |
8381 | |
8382 | fi | |
8383 | ||
8384 | ||
c7206e64 | 8385 | eval "$ac_cv_use_ico_cur" |
658974ae | 8386 | if test "$no_cache" != 1; then |
c7206e64 | 8387 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8388 | fi |
8389 | ||
8390 | if test "$wxUSE_ICO_CUR" = yes; then | |
8391 | echo "$ac_t""yes" 1>&6 | |
8392 | else | |
8393 | echo "$ac_t""no" 1>&6 | |
8394 | fi | |
8395 | ||
8396 | ||
b12915c1 VZ |
8397 | fi |
8398 | ||
d558c907 VS |
8399 | case "${host}" in |
8400 | *-pc-os2_emx | *-pc-os2-emx ) | |
8401 | LEX_STEM="lexyy" | |
8402 | ;; | |
8403 | *) | |
8404 | PATH_IFS=':' | |
8405 | LEX_STEM="lex.yy" | |
8406 | ;; | |
8407 | esac | |
8408 | ||
8409 | ||
698dcdb6 | 8410 | |
10f2d63a VZ |
8411 | echo "saving argument cache $wx_arg_cache_file" |
8412 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 8413 | |
10f2d63a | 8414 | |
698dcdb6 VZ |
8415 | |
8416 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
24f5e003 | 8417 | echo "configure:8418: checking for toolkit" >&5 |
10f2d63a VZ |
8418 | |
8419 | if test "$wxUSE_GUI" = "yes"; then | |
8420 | ||
3a922bb4 RL |
8421 | if test "$USE_BEOS" = 1; then |
8422 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8423 | fi | |
b12915c1 | 8424 | |
3a922bb4 RL |
8425 | if test "$TOOLKIT_GIVEN" = 1; then |
8426 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8427 | var=wxUSE_$toolkit | |
8428 | eval "value=\$${var}" | |
8429 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8430 | done | |
10f2d63a | 8431 | else |
3a922bb4 RL |
8432 | for toolkit in `echo $ALL_TOOLKITS`; do |
8433 | if test "$has_toolkit_in_cache" != 1; then | |
8434 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8435 | else | |
8436 | var=DEFAULT_wxUSE_$toolkit | |
8437 | fi | |
8438 | eval "wxUSE_$toolkit=\$${var}" | |
8439 | done | |
10f2d63a | 8440 | fi |
10f2d63a | 8441 | |
3a922bb4 | 8442 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8443 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8444 | |
d558c907 | 8445 | case "${host}" in |
6fa882bd | 8446 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8447 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8448 | esac |
10f2d63a | 8449 | |
3a922bb4 RL |
8450 | case "$NUM_TOOLKITS" in |
8451 | 1) | |
8452 | ;; | |
8453 | 0) | |
8454 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8455 | ;; | |
8456 | *) | |
8457 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8458 | esac | |
10f2d63a | 8459 | |
3a922bb4 RL |
8460 | for toolkit in `echo $ALL_TOOLKITS`; do |
8461 | var=wxUSE_$toolkit | |
8462 | eval "value=\$${var}" | |
8463 | if test "x$value" != x; then | |
8464 | cache_var=CACHE_$toolkit | |
8465 | eval "cache=\$${cache_var}" | |
8466 | if test "$cache" = 1; then | |
8467 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8468 | fi | |
8469 | if test "$value" = 1; then | |
8470 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8471 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8472 | fi | |
8473 | fi | |
8474 | done | |
10f2d63a | 8475 | else |
3a922bb4 | 8476 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8477 | fi |
8478 | ||
698dcdb6 | 8479 | |
17234b26 MB |
8480 | define_win32=0 |
8481 | case "${host}" in | |
8482 | *-*-cygwin*) | |
8483 | if test "$wxUSE_MSW" = 1 ; then | |
8484 | define_win32=1 | |
8485 | fi | |
8486 | ;; | |
8487 | *-*-mingw*) | |
8488 | define_win32=1 | |
8489 | ;; | |
8490 | esac | |
8491 | ||
8492 | if test "$define_win32" = 1 ; then | |
8493 | USE_UNIX=0 | |
8494 | USE_WIN32=1 | |
8495 | cat >> confdefs.h <<\EOF | |
8496 | #define __WIN32__ 1 | |
8497 | EOF | |
8498 | ||
8499 | cat >> confdefs.h <<\EOF | |
8500 | #define __WIN95__ 1 | |
8501 | EOF | |
8502 | ||
8503 | cat >> confdefs.h <<\EOF | |
8504 | #define __WINDOWS__ 1 | |
8505 | EOF | |
8506 | ||
8507 | cat >> confdefs.h <<\EOF | |
8508 | #define __GNUWIN32__ 1 | |
8509 | EOF | |
8510 | ||
8511 | cat >> confdefs.h <<\EOF | |
8512 | #define STRICT 1 | |
8513 | EOF | |
8514 | ||
8515 | cat >> confdefs.h <<\EOF | |
8516 | #define WINVER 0x0400 | |
8517 | EOF | |
8518 | ||
8519 | else | |
8520 | USE_UNIX=1 | |
8521 | USE_WIN32=0 | |
8522 | fi | |
8523 | ||
8524 | if test "$USE_UNIX" = 1 ; then | |
8525 | wxUSE_UNIX=yes | |
8526 | cat >> confdefs.h <<\EOF | |
8527 | #define __UNIX__ 1 | |
8528 | EOF | |
8529 | ||
8530 | fi | |
8531 | ||
8532 | ||
698dcdb6 | 8533 | cat > confcache <<\EOF |
10f2d63a VZ |
8534 | # This file is a shell script that caches the results of configure |
8535 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8536 | # scripts and configure runs. It is not useful on other systems. |
8537 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8538 | # |
698dcdb6 VZ |
8539 | # By default, configure uses ./config.cache as the cache file, |
8540 | # creating it if it does not exist already. You can give configure | |
8541 | # the --cache-file=FILE option to use a different cache file; that is | |
8542 | # what configure does when it calls configure scripts in | |
8543 | # subdirectories, so they share the cache. | |
8544 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8545 | # config.status only pays attention to the cache file if you give it the | |
8546 | # --recheck option to rerun configure. | |
10f2d63a | 8547 | # |
698dcdb6 | 8548 | EOF |
10f2d63a VZ |
8549 | # The following way of writing the cache mishandles newlines in values, |
8550 | # but we know of no workaround that is simple, portable, and efficient. | |
8551 | # So, don't put newlines in cache variables' values. | |
8552 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8553 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8554 | (set) 2>&1 | |
8555 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8556 | *ac_space=\ *) | |
8557 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8558 | # turns \\\\ into \\, and sed turns \\ into \). | |
8559 | sed -n \ | |
8560 | -e "s/'/'\\\\''/g" \ | |
8561 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8562 | ;; | |
8563 | *) | |
8564 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8565 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8566 | ;; | |
8567 | esac >> confcache | |
8568 | if cmp -s $cache_file confcache; then | |
8569 | : | |
8570 | else | |
10f2d63a | 8571 | if test -w $cache_file; then |
698dcdb6 VZ |
8572 | echo "updating cache $cache_file" |
8573 | cat confcache > $cache_file | |
10f2d63a VZ |
8574 | else |
8575 | echo "not updating unwritable cache $cache_file" | |
8576 | fi | |
8577 | fi | |
8578 | rm -f confcache | |
8579 | ||
698dcdb6 | 8580 | |
e59890c3 | 8581 | if test "$build" != "$host" ; then |
9d353d4a | 8582 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8583 | CC=$host_alias-gcc |
8584 | CXX=$host_alias-c++ | |
8585 | AR=$host_alias-ar | |
8586 | RANLIB=$host_alias-ranlib | |
8587 | DLLTOOL=$host_alias-dlltool | |
8588 | RESCOMP=$host_alias-windres | |
8589 | LD=$host_alias-ld | |
8590 | NM=$host_alias-nm | |
8591 | STRIP=$host_alias-strip | |
8592 | else | |
8593 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8594 | fi | |
10f2d63a VZ |
8595 | fi |
8596 | ||
ec603395 | 8597 | CFLAGS=${CFLAGS:=} |
698dcdb6 | 8598 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8599 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8600 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
24f5e003 | 8601 | echo "configure:8602: checking for $ac_word" >&5 |
698dcdb6 VZ |
8602 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8604 | else |
8605 | if test -n "$CC"; then | |
8606 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8607 | else |
698dcdb6 VZ |
8608 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8609 | ac_dummy="$PATH" | |
8610 | for ac_dir in $ac_dummy; do | |
8611 | test -z "$ac_dir" && ac_dir=. | |
8612 | if test -f $ac_dir/$ac_word; then | |
8613 | ac_cv_prog_CC="gcc" | |
8614 | break | |
8615 | fi | |
8616 | done | |
8617 | IFS="$ac_save_ifs" | |
10f2d63a | 8618 | fi |
6232543b | 8619 | fi |
698dcdb6 | 8620 | CC="$ac_cv_prog_CC" |
6232543b | 8621 | if test -n "$CC"; then |
698dcdb6 | 8622 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8623 | else |
698dcdb6 | 8624 | echo "$ac_t""no" 1>&6 |
1e487827 | 8625 | fi |
6232543b | 8626 | |
1e487827 VS |
8627 | if test -z "$CC"; then |
8628 | # Extract the first word of "cc", so it can be a program name with args. | |
8629 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8630 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
24f5e003 | 8631 | echo "configure:8632: checking for $ac_word" >&5 |
698dcdb6 VZ |
8632 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8633 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8634 | else |
8635 | if test -n "$CC"; then | |
8636 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8637 | else | |
698dcdb6 | 8638 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8639 | ac_prog_rejected=no |
698dcdb6 VZ |
8640 | ac_dummy="$PATH" |
8641 | for ac_dir in $ac_dummy; do | |
8642 | test -z "$ac_dir" && ac_dir=. | |
8643 | if test -f $ac_dir/$ac_word; then | |
8644 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8645 | ac_prog_rejected=yes | |
8646 | continue | |
8647 | fi | |
8648 | ac_cv_prog_CC="cc" | |
8649 | break | |
8650 | fi | |
8651 | done | |
8652 | IFS="$ac_save_ifs" | |
1e487827 VS |
8653 | if test $ac_prog_rejected = yes; then |
8654 | # We found a bogon in the path, so make sure we never use it. | |
8655 | set dummy $ac_cv_prog_CC | |
8656 | shift | |
698dcdb6 | 8657 | if test $# -gt 0; then |
1e487827 VS |
8658 | # We chose a different compiler from the bogus one. |
8659 | # However, it has the same basename, so the bogon will be chosen | |
8660 | # first if we set CC to just the basename; use the full file name. | |
8661 | shift | |
698dcdb6 | 8662 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8663 | shift |
8664 | ac_cv_prog_CC="$@" | |
703e0a69 | 8665 | fi |
1e487827 VS |
8666 | fi |
8667 | fi | |
8668 | fi | |
698dcdb6 | 8669 | CC="$ac_cv_prog_CC" |
1e487827 | 8670 | if test -n "$CC"; then |
698dcdb6 | 8671 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8672 | else |
698dcdb6 | 8673 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8674 | fi |
1e487827 | 8675 | |
698dcdb6 VZ |
8676 | if test -z "$CC"; then |
8677 | case "`uname -s`" in | |
8678 | *win32* | *WIN32*) | |
8679 | # Extract the first word of "cl", so it can be a program name with args. | |
8680 | set dummy cl; ac_word=$2 | |
8681 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24f5e003 | 8682 | echo "configure:8683: checking for $ac_word" >&5 |
698dcdb6 VZ |
8683 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8685 | else |
8686 | if test -n "$CC"; then | |
8687 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8688 | else |
698dcdb6 VZ |
8689 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8690 | ac_dummy="$PATH" | |
8691 | for ac_dir in $ac_dummy; do | |
8692 | test -z "$ac_dir" && ac_dir=. | |
8693 | if test -f $ac_dir/$ac_word; then | |
8694 | ac_cv_prog_CC="cl" | |
8695 | break | |
8696 | fi | |
8697 | done | |
8698 | IFS="$ac_save_ifs" | |
703e0a69 | 8699 | fi |
1e487827 | 8700 | fi |
698dcdb6 | 8701 | CC="$ac_cv_prog_CC" |
1e487827 | 8702 | if test -n "$CC"; then |
698dcdb6 | 8703 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8704 | else |
698dcdb6 | 8705 | echo "$ac_t""no" 1>&6 |
1e487827 | 8706 | fi |
698dcdb6 VZ |
8707 | ;; |
8708 | esac | |
8709 | fi | |
8710 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8711 | fi |
8712 | ||
698dcdb6 | 8713 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
24f5e003 | 8714 | echo "configure:8715: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8715 | |
698dcdb6 VZ |
8716 | ac_ext=c |
8717 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8718 | ac_cpp='$CPP $CPPFLAGS' | |
8719 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8720 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8721 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8722 | |
698dcdb6 | 8723 | cat > conftest.$ac_ext << EOF |
1e487827 | 8724 | |
24f5e003 | 8725 | #line 8726 "configure" |
1e487827 VS |
8726 | #include "confdefs.h" |
8727 | ||
698dcdb6 VZ |
8728 | main(){return(0);} |
8729 | EOF | |
24f5e003 | 8730 | if { (eval echo configure:8731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8731 | ac_cv_prog_cc_works=yes |
8732 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8733 | if (./conftest; exit) 2>/dev/null; then | |
8734 | ac_cv_prog_cc_cross=no | |
8735 | else | |
8736 | ac_cv_prog_cc_cross=yes | |
8737 | fi | |
8738 | else | |
8739 | echo "configure: failed program was:" >&5 | |
8740 | cat conftest.$ac_ext >&5 | |
8741 | ac_cv_prog_cc_works=no | |
8742 | fi | |
8743 | rm -fr conftest* | |
8744 | ac_ext=c | |
8745 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8746 | ac_cpp='$CPP $CPPFLAGS' | |
8747 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8748 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8749 | cross_compiling=$ac_cv_prog_cc_cross | |
8750 | ||
8751 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8752 | if test $ac_cv_prog_cc_works = no; then | |
8753 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8754 | fi | |
8755 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
24f5e003 | 8756 | echo "configure:8757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8757 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8758 | cross_compiling=$ac_cv_prog_cc_cross | |
8759 | ||
8760 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
24f5e003 | 8761 | echo "configure:8762: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8762 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8763 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8764 | else | |
8765 | cat > conftest.c <<EOF | |
8766 | #ifdef __GNUC__ | |
8767 | yes; | |
1e487827 | 8768 | #endif |
698dcdb6 | 8769 | EOF |
24f5e003 | 8770 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8771 | ac_cv_prog_gcc=yes |
8772 | else | |
8773 | ac_cv_prog_gcc=no | |
8774 | fi | |
8775 | fi | |
1e487827 | 8776 | |
698dcdb6 | 8777 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8778 | |
698dcdb6 VZ |
8779 | if test $ac_cv_prog_gcc = yes; then |
8780 | GCC=yes | |
8781 | else | |
8782 | GCC= | |
8783 | fi | |
1e487827 | 8784 | |
698dcdb6 VZ |
8785 | ac_test_CFLAGS="${CFLAGS+set}" |
8786 | ac_save_CFLAGS="$CFLAGS" | |
8787 | CFLAGS= | |
8788 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
24f5e003 | 8789 | echo "configure:8790: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8790 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8791 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8792 | else | |
8793 | echo 'void f(){}' > conftest.c | |
8794 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8795 | ac_cv_prog_cc_g=yes |
8796 | else | |
698dcdb6 | 8797 | ac_cv_prog_cc_g=no |
10f2d63a | 8798 | fi |
698dcdb6 VZ |
8799 | rm -f conftest* |
8800 | ||
10f2d63a | 8801 | fi |
698dcdb6 VZ |
8802 | |
8803 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8804 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8805 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8806 | elif test $ac_cv_prog_cc_g = yes; then |
8807 | if test "$GCC" = yes; then | |
8808 | CFLAGS="-g -O2" | |
8809 | else | |
8810 | CFLAGS="-g" | |
8811 | fi | |
8812 | else | |
8813 | if test "$GCC" = yes; then | |
8814 | CFLAGS="-O2" | |
8815 | else | |
8816 | CFLAGS= | |
8817 | fi | |
8818 | fi | |
8819 | ||
8820 | ||
698dcdb6 | 8821 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
24f5e003 | 8822 | echo "configure:8823: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8823 | # On Suns, sometimes $CPP names a directory. |
8824 | if test -n "$CPP" && test -d "$CPP"; then | |
8825 | CPP= | |
8826 | fi | |
8827 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8828 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8829 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8830 | else | |
8831 | # This must be in double quotes, not single quotes, because CPP may get | |
8832 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8833 | CPP="${CC-cc} -E" | |
10f2d63a | 8834 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8835 | # not just through cpp. |
8836 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 8837 | #line 8838 "configure" |
10f2d63a VZ |
8838 | #include "confdefs.h" |
8839 | #include <assert.h> | |
698dcdb6 VZ |
8840 | Syntax Error |
8841 | EOF | |
8842 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24f5e003 | 8843 | { (eval echo configure:8844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8844 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8845 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8846 | : |
8847 | else | |
698dcdb6 VZ |
8848 | echo "$ac_err" >&5 |
8849 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8850 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8851 | rm -rf conftest* |
8852 | CPP="${CC-cc} -E -traditional-cpp" | |
8853 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 8854 | #line 8855 "configure" |
10f2d63a | 8855 | #include "confdefs.h" |
698dcdb6 VZ |
8856 | #include <assert.h> |
8857 | Syntax Error | |
8858 | EOF | |
8859 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24f5e003 | 8860 | { (eval echo configure:8861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8861 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8862 | if test -z "$ac_err"; then | |
8863 | : | |
10f2d63a | 8864 | else |
698dcdb6 VZ |
8865 | echo "$ac_err" >&5 |
8866 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8867 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8868 | rm -rf conftest* |
8869 | CPP="${CC-cc} -nologo -E" | |
8870 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 8871 | #line 8872 "configure" |
10f2d63a VZ |
8872 | #include "confdefs.h" |
8873 | #include <assert.h> | |
698dcdb6 VZ |
8874 | Syntax Error |
8875 | EOF | |
8876 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24f5e003 | 8877 | { (eval echo configure:8878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8878 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8879 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8880 | : |
8881 | else | |
698dcdb6 VZ |
8882 | echo "$ac_err" >&5 |
8883 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8884 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8885 | rm -rf conftest* |
8886 | CPP=/lib/cpp | |
10f2d63a | 8887 | fi |
698dcdb6 | 8888 | rm -f conftest* |
10f2d63a | 8889 | fi |
698dcdb6 | 8890 | rm -f conftest* |
703e0a69 | 8891 | fi |
698dcdb6 VZ |
8892 | rm -f conftest* |
8893 | ac_cv_prog_CPP="$CPP" | |
8894 | fi | |
8895 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8896 | else |
698dcdb6 | 8897 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8898 | fi |
698dcdb6 | 8899 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8900 | |
698dcdb6 VZ |
8901 | if test $ac_cv_prog_gcc = yes; then |
8902 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
24f5e003 | 8903 | echo "configure:8904: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8904 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8905 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8906 | else |
8907 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8908 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 8909 | #line 8910 "configure" |
10f2d63a VZ |
8910 | #include "confdefs.h" |
8911 | #include <sgtty.h> | |
8912 | Autoconf TIOCGETP | |
698dcdb6 | 8913 | EOF |
10f2d63a VZ |
8914 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8915 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8916 | rm -rf conftest* |
10f2d63a VZ |
8917 | ac_cv_prog_gcc_traditional=yes |
8918 | else | |
698dcdb6 | 8919 | rm -rf conftest* |
10f2d63a VZ |
8920 | ac_cv_prog_gcc_traditional=no |
8921 | fi | |
8922 | rm -f conftest* | |
8923 | ||
698dcdb6 | 8924 | |
10f2d63a | 8925 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8926 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 8927 | #line 8928 "configure" |
10f2d63a VZ |
8928 | #include "confdefs.h" |
8929 | #include <termio.h> | |
8930 | Autoconf TCGETA | |
698dcdb6 | 8931 | EOF |
10f2d63a VZ |
8932 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8933 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8934 | rm -rf conftest* |
10f2d63a VZ |
8935 | ac_cv_prog_gcc_traditional=yes |
8936 | fi | |
8937 | rm -f conftest* | |
8938 | ||
8939 | fi | |
8940 | fi | |
698dcdb6 VZ |
8941 | |
8942 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8943 | if test $ac_cv_prog_gcc_traditional = yes; then |
8944 | CC="$CC -traditional" | |
8945 | fi | |
8946 | fi | |
8947 | ||
703e0a69 | 8948 | |
698dcdb6 VZ |
8949 | |
8950 | ac_ext=C | |
8951 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8952 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8953 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8954 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8955 | cross_compiling=$ac_cv_prog_cxx_cross | |
8956 | ||
8957 | ||
ec603395 | 8958 | CXXFLAGS=${CXXFLAGS:=} |
698dcdb6 VZ |
8959 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
8960 | do | |
8961 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8962 | set dummy $ac_prog; ac_word=$2 | |
8963 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24f5e003 | 8964 | echo "configure:8965: checking for $ac_word" >&5 |
698dcdb6 VZ |
8965 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8966 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8967 | else |
8968 | if test -n "$CXX"; then | |
8969 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8970 | else | |
698dcdb6 VZ |
8971 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8972 | ac_dummy="$PATH" | |
8973 | for ac_dir in $ac_dummy; do | |
8974 | test -z "$ac_dir" && ac_dir=. | |
8975 | if test -f $ac_dir/$ac_word; then | |
8976 | ac_cv_prog_CXX="$ac_prog" | |
8977 | break | |
8978 | fi | |
8979 | done | |
8980 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8981 | fi |
8982 | fi | |
698dcdb6 | 8983 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8984 | if test -n "$CXX"; then |
698dcdb6 | 8985 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8986 | else |
698dcdb6 | 8987 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8988 | fi |
8989 | ||
698dcdb6 | 8990 | test -n "$CXX" && break |
10f2d63a | 8991 | done |
698dcdb6 | 8992 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8993 | |
8994 | ||
698dcdb6 | 8995 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
24f5e003 | 8996 | echo "configure:8997: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8997 | |
698dcdb6 VZ |
8998 | ac_ext=C |
8999 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9000 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9001 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9002 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9003 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 9004 | |
698dcdb6 VZ |
9005 | cat > conftest.$ac_ext << EOF |
9006 | ||
24f5e003 | 9007 | #line 9008 "configure" |
10f2d63a VZ |
9008 | #include "confdefs.h" |
9009 | ||
698dcdb6 VZ |
9010 | int main(){return(0);} |
9011 | EOF | |
24f5e003 | 9012 | if { (eval echo configure:9013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9013 | ac_cv_prog_cxx_works=yes |
9014 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9015 | if (./conftest; exit) 2>/dev/null; then | |
9016 | ac_cv_prog_cxx_cross=no | |
9017 | else | |
9018 | ac_cv_prog_cxx_cross=yes | |
9019 | fi | |
9020 | else | |
9021 | echo "configure: failed program was:" >&5 | |
9022 | cat conftest.$ac_ext >&5 | |
9023 | ac_cv_prog_cxx_works=no | |
9024 | fi | |
9025 | rm -fr conftest* | |
9026 | ac_ext=C | |
9027 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9028 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9029 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9030 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9031 | cross_compiling=$ac_cv_prog_cxx_cross | |
9032 | ||
9033 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9034 | if test $ac_cv_prog_cxx_works = no; then | |
9035 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9036 | fi | |
9037 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
24f5e003 | 9038 | echo "configure:9039: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
9039 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9040 | cross_compiling=$ac_cv_prog_cxx_cross | |
9041 | ||
9042 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
24f5e003 | 9043 | echo "configure:9044: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
9044 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9046 | else | |
9047 | cat > conftest.C <<EOF | |
9048 | #ifdef __GNUC__ | |
9049 | yes; | |
10f2d63a | 9050 | #endif |
698dcdb6 | 9051 | EOF |
24f5e003 | 9052 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
9053 | ac_cv_prog_gxx=yes |
9054 | else | |
9055 | ac_cv_prog_gxx=no | |
9056 | fi | |
9057 | fi | |
10f2d63a | 9058 | |
698dcdb6 | 9059 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9060 | |
698dcdb6 VZ |
9061 | if test $ac_cv_prog_gxx = yes; then |
9062 | GXX=yes | |
9063 | else | |
9064 | GXX= | |
9065 | fi | |
10f2d63a | 9066 | |
698dcdb6 VZ |
9067 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9068 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9069 | CXXFLAGS= | |
9070 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
24f5e003 | 9071 | echo "configure:9072: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
9072 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9074 | else | |
9075 | echo 'void f(){}' > conftest.cc | |
9076 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9077 | ac_cv_prog_cxx_g=yes |
9078 | else | |
698dcdb6 | 9079 | ac_cv_prog_cxx_g=no |
10f2d63a | 9080 | fi |
698dcdb6 VZ |
9081 | rm -f conftest* |
9082 | ||
10f2d63a | 9083 | fi |
698dcdb6 VZ |
9084 | |
9085 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 9086 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 9087 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
9088 | elif test $ac_cv_prog_cxx_g = yes; then |
9089 | if test "$GXX" = yes; then | |
9090 | CXXFLAGS="-g -O2" | |
9091 | else | |
9092 | CXXFLAGS="-g" | |
9093 | fi | |
9094 | else | |
9095 | if test "$GXX" = yes; then | |
9096 | CXXFLAGS="-O2" | |
9097 | else | |
9098 | CXXFLAGS= | |
9099 | fi | |
9100 | fi | |
9101 | ||
9102 | ||
10f2d63a | 9103 | ac_ext=c |
698dcdb6 | 9104 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9105 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
9106 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9107 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9108 | cross_compiling=$ac_cv_prog_cc_cross | |
9109 | ||
9110 | ||
9111 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9112 | set dummy ranlib; ac_word=$2 | |
9113 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24f5e003 | 9114 | echo "configure:9115: checking for $ac_word" >&5 |
698dcdb6 VZ |
9115 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9116 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9117 | else |
9118 | if test -n "$RANLIB"; then | |
9119 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9120 | else | |
698dcdb6 VZ |
9121 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9122 | ac_dummy="$PATH" | |
9123 | for ac_dir in $ac_dummy; do | |
9124 | test -z "$ac_dir" && ac_dir=. | |
9125 | if test -f $ac_dir/$ac_word; then | |
9126 | ac_cv_prog_RANLIB="ranlib" | |
9127 | break | |
9128 | fi | |
9129 | done | |
9130 | IFS="$ac_save_ifs" | |
9131 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9132 | fi |
9133 | fi | |
698dcdb6 | 9134 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9135 | if test -n "$RANLIB"; then |
698dcdb6 | 9136 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 9137 | else |
698dcdb6 | 9138 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9139 | fi |
9140 | ||
9141 | ||
9142 | # Extract the first word of "ar", so it can be a program name with args. | |
9143 | set dummy ar; ac_word=$2 | |
698dcdb6 | 9144 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
24f5e003 | 9145 | echo "configure:9146: checking for $ac_word" >&5 |
698dcdb6 VZ |
9146 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9148 | else |
9149 | if test -n "$AR"; then | |
9150 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9151 | else | |
698dcdb6 VZ |
9152 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9153 | ac_dummy="$PATH" | |
9154 | for ac_dir in $ac_dummy; do | |
9155 | test -z "$ac_dir" && ac_dir=. | |
9156 | if test -f $ac_dir/$ac_word; then | |
9157 | ac_cv_prog_AR="ar" | |
9158 | break | |
9159 | fi | |
9160 | done | |
9161 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9162 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9163 | fi | |
9164 | fi | |
698dcdb6 | 9165 | AR="$ac_cv_prog_AR" |
10f2d63a | 9166 | if test -n "$AR"; then |
698dcdb6 | 9167 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9168 | else |
698dcdb6 | 9169 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9170 | fi |
9171 | ||
698dcdb6 | 9172 | |
6054113a | 9173 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9174 | # so one script is as good as another. But avoid the broken or |
9175 | # incompatible versions: | |
9176 | # SysV /etc/install, /usr/sbin/install | |
9177 | # SunOS /usr/etc/install | |
9178 | # IRIX /sbin/install | |
9179 | # AIX /bin/install | |
9180 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9181 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9182 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9183 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 9184 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
24f5e003 | 9185 | echo "configure:9186: checking for a BSD compatible install" >&5 |
10f2d63a | 9186 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
9187 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9188 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9189 | else |
698dcdb6 | 9190 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
9191 | for ac_dir in $PATH; do |
9192 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
9193 | case "$ac_dir/" in |
9194 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9195 | *) |
9196 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9197 | # Don't use installbsd from OSF since it installs stuff as root | |
9198 | # by default. | |
9199 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 9200 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9201 | if test $ac_prog = install && |
698dcdb6 | 9202 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
9203 | # AIX install. It has an incompatible calling convention. |
9204 | : | |
9205 | else | |
9206 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9207 | break 2 | |
9208 | fi | |
9209 | fi | |
9210 | done | |
9211 | ;; | |
9212 | esac | |
9213 | done | |
698dcdb6 | 9214 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9215 | |
9216 | fi | |
9217 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 9218 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9219 | else |
9220 | # As a last resort, use the slow shell script. We don't cache a | |
9221 | # path for INSTALL within a source directory, because that will | |
9222 | # break other packages using the cache if that directory is | |
9223 | # removed, or if the path is relative. | |
698dcdb6 | 9224 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9225 | fi |
9226 | fi | |
698dcdb6 | 9227 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9228 | |
9229 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9230 | # It thinks the first close brace ends the variable substitution. | |
9231 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9232 | ||
698dcdb6 | 9233 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
9234 | |
9235 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9236 | ||
1d1b75ac VZ |
9237 | |
9238 | case ${INSTALL} in | |
9239 | /* ) # Absolute | |
9240 | ;; | |
9241 | *) | |
9242 | INSTALL=`pwd`/${INSTALL} ;; | |
9243 | esac | |
9244 | ||
9245 | ||
6054113a GD |
9246 | case "${host}" in |
9247 | ||
b5853384 | 9248 | powerpc-*-darwin* ) |
eb99ae0b GD |
9249 | INSTALL_PROGRAM="cp -fp" |
9250 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9251 | ;; |
9252 | *) | |
9253 | ;; | |
d6853540 | 9254 | esac |
698dcdb6 | 9255 | |
10f2d63a VZ |
9256 | # Extract the first word of "strip", so it can be a program name with args. |
9257 | set dummy strip; ac_word=$2 | |
698dcdb6 | 9258 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
24f5e003 | 9259 | echo "configure:9260: checking for $ac_word" >&5 |
698dcdb6 VZ |
9260 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9261 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9262 | else |
9263 | if test -n "$STRIP"; then | |
9264 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9265 | else | |
698dcdb6 VZ |
9266 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9267 | ac_dummy="$PATH" | |
9268 | for ac_dir in $ac_dummy; do | |
9269 | test -z "$ac_dir" && ac_dir=. | |
9270 | if test -f $ac_dir/$ac_word; then | |
9271 | ac_cv_prog_STRIP="strip" | |
9272 | break | |
9273 | fi | |
9274 | done | |
9275 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9276 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9277 | fi | |
9278 | fi | |
698dcdb6 | 9279 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9280 | if test -n "$STRIP"; then |
698dcdb6 | 9281 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9282 | else |
698dcdb6 | 9283 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9284 | fi |
9285 | ||
698dcdb6 | 9286 | |
414eab6d | 9287 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
24f5e003 | 9288 | echo "configure:9289: checking if make is GNU make" >&5 |
414eab6d VZ |
9289 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9290 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9291 | else | |
9292 | ||
9293 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
d558c907 | 9294 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9295 | wx_cv_prog_makeisgnu="yes" |
9296 | else | |
9297 | wx_cv_prog_makeisgnu="no" | |
9298 | fi | |
9299 | ||
9300 | fi | |
9301 | ||
9302 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9303 | ||
9304 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9305 | IF_GNU_MAKE="" | |
9306 | else | |
9307 | IF_GNU_MAKE="#" | |
9308 | fi | |
9309 | ||
9310 | ||
9311 | ||
9312 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
04e7a216 | 9313 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
24f5e003 | 9314 | echo "configure:9315: checking if make supports VPATH" >&5 |
04e7a216 VZ |
9315 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9317 | else | |
9318 | ||
10f2d63a VZ |
9319 | cat - << EOF > confMake |
9320 | check : file | |
9321 | cp \$? \$@ | |
9322 | cp \$? final_file | |
9323 | EOF | |
9324 | ||
9325 | if test ! -d sub ; then | |
9326 | mkdir sub | |
9327 | fi | |
9328 | echo dummy > sub/file | |
f6bcfd97 | 9329 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9330 | RESULT=$? |
9331 | rm -f sub/file check final_file confMake | |
9332 | rmdir sub | |
9333 | if test "$RESULT" = 0; then | |
04e7a216 | 9334 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9335 | else |
04e7a216 VZ |
9336 | wx_cv_prog_makevpath="no" |
9337 | fi | |
9338 | ||
9339 | fi | |
9340 | ||
9341 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9342 | ||
9343 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9344 | { echo "configure: error: | |
1e487827 VS |
9345 | You need a make-utility that is able to use the variable |
9346 | VPATH correctly. | |
9347 | If your version of make does not support VPATH correctly, | |
9348 | please install GNU-make (possibly as gmake), and start | |
9349 | configure with the following command: | |
9350 | export MAKE=gmake; ./configure for sh-type shells | |
9351 | setenv MAKE gmake; ./configure for csh-type shells | |
9352 | Also please do remember to use gmake in this case every time | |
9353 | you are trying to compile. | |
698dcdb6 | 9354 | " 1>&2; exit 1; } |
414eab6d | 9355 | fi fi |
10f2d63a VZ |
9356 | for ac_prog in 'bison -y' byacc |
9357 | do | |
698dcdb6 | 9358 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9359 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 9360 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
24f5e003 | 9361 | echo "configure:9362: checking for $ac_word" >&5 |
698dcdb6 VZ |
9362 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9364 | else |
9365 | if test -n "$YACC"; then | |
9366 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9367 | else | |
698dcdb6 VZ |
9368 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9369 | ac_dummy="$PATH" | |
9370 | for ac_dir in $ac_dummy; do | |
9371 | test -z "$ac_dir" && ac_dir=. | |
9372 | if test -f $ac_dir/$ac_word; then | |
9373 | ac_cv_prog_YACC="$ac_prog" | |
9374 | break | |
9375 | fi | |
9376 | done | |
9377 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9378 | fi |
9379 | fi | |
698dcdb6 | 9380 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9381 | if test -n "$YACC"; then |
698dcdb6 | 9382 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9383 | else |
698dcdb6 | 9384 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9385 | fi |
9386 | ||
698dcdb6 | 9387 | test -n "$YACC" && break |
10f2d63a VZ |
9388 | done |
9389 | test -n "$YACC" || YACC="yacc" | |
9390 | ||
698dcdb6 VZ |
9391 | |
9392 | # Extract the first word of "flex", so it can be a program name with args. | |
9393 | set dummy flex; ac_word=$2 | |
9394 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24f5e003 | 9395 | echo "configure:9396: checking for $ac_word" >&5 |
698dcdb6 VZ |
9396 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9397 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9398 | else |
9399 | if test -n "$LEX"; then | |
9400 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9401 | else | |
698dcdb6 VZ |
9402 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9403 | ac_dummy="$PATH" | |
9404 | for ac_dir in $ac_dummy; do | |
9405 | test -z "$ac_dir" && ac_dir=. | |
9406 | if test -f $ac_dir/$ac_word; then | |
9407 | ac_cv_prog_LEX="flex" | |
9408 | break | |
9409 | fi | |
9410 | done | |
9411 | IFS="$ac_save_ifs" | |
9412 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9413 | fi |
9414 | fi | |
698dcdb6 | 9415 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9416 | if test -n "$LEX"; then |
698dcdb6 | 9417 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9418 | else |
698dcdb6 | 9419 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9420 | fi |
9421 | ||
9422 | if test -z "$LEXLIB" | |
9423 | then | |
698dcdb6 VZ |
9424 | case "$LEX" in |
9425 | flex*) ac_lib=fl ;; | |
9426 | *) ac_lib=l ;; | |
9427 | esac | |
9428 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
24f5e003 | 9429 | echo "configure:9430: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
9430 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9431 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9432 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9433 | else | |
9434 | ac_save_LIBS="$LIBS" | |
9435 | LIBS="-l$ac_lib $LIBS" | |
9436 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 9437 | #line 9438 "configure" |
10f2d63a VZ |
9438 | #include "confdefs.h" |
9439 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9440 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9441 | builtin and then its argument prototype would still apply. */ |
9442 | char yywrap(); | |
10f2d63a | 9443 | |
698dcdb6 VZ |
9444 | int main() { |
9445 | yywrap() | |
9446 | ; return 0; } | |
9447 | EOF | |
24f5e003 | 9448 | if { (eval echo configure:9449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9449 | rm -rf conftest* |
9450 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9451 | else |
698dcdb6 VZ |
9452 | echo "configure: failed program was:" >&5 |
9453 | cat conftest.$ac_ext >&5 | |
9454 | rm -rf conftest* | |
9455 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9456 | fi |
698dcdb6 VZ |
9457 | rm -f conftest* |
9458 | LIBS="$ac_save_LIBS" | |
9459 | ||
10f2d63a | 9460 | fi |
698dcdb6 VZ |
9461 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9462 | echo "$ac_t""yes" 1>&6 | |
9463 | LEXLIB="-l$ac_lib" | |
9464 | else | |
9465 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9466 | fi |
9467 | ||
9468 | fi | |
9469 | ||
9470 | ||
698dcdb6 | 9471 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
24f5e003 | 9472 | echo "configure:9473: checking whether ln -s works" >&5 |
698dcdb6 VZ |
9473 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9474 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9475 | else |
698dcdb6 VZ |
9476 | rm -f conftestdata |
9477 | if ln -s X conftestdata 2>/dev/null | |
9478 | then | |
9479 | rm -f conftestdata | |
9480 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9481 | else |
698dcdb6 | 9482 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9483 | fi |
9484 | fi | |
698dcdb6 VZ |
9485 | LN_S="$ac_cv_prog_LN_S" |
9486 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9487 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9488 | else |
698dcdb6 | 9489 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9490 | fi |
9491 | ||
9492 | ||
9493 | ||
21d1c967 GD |
9494 | if test "$wxUSE_MAC" != 1; then |
9495 | for ac_hdr in strings.h | |
9496 | do | |
9497 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9498 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24f5e003 | 9499 | echo "configure:9500: checking for $ac_hdr" >&5 |
21d1c967 | 9500 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19bc6aad VZ |
9501 | echo $ac_n "(cached) $ac_c" 1>&6 |
9502 | else | |
90dd450c | 9503 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 9504 | #line 9505 "configure" |
19bc6aad | 9505 | #include "confdefs.h" |
21d1c967 | 9506 | #include <$ac_hdr> |
19bc6aad | 9507 | EOF |
21d1c967 | 9508 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 9509 | { (eval echo configure:9510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9510 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9511 | if test -z "$ac_err"; then | |
19bc6aad | 9512 | rm -rf conftest* |
21d1c967 | 9513 | eval "ac_cv_header_$ac_safe=yes" |
19bc6aad | 9514 | else |
21d1c967 | 9515 | echo "$ac_err" >&5 |
19bc6aad VZ |
9516 | echo "configure: failed program was:" >&5 |
9517 | cat conftest.$ac_ext >&5 | |
9518 | rm -rf conftest* | |
21d1c967 | 9519 | eval "ac_cv_header_$ac_safe=no" |
19bc6aad VZ |
9520 | fi |
9521 | rm -f conftest* | |
19bc6aad | 9522 | fi |
21d1c967 GD |
9523 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9524 | echo "$ac_t""yes" 1>&6 | |
9525 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9526 | cat >> confdefs.h <<EOF | |
9527 | #define $ac_tr_hdr 1 | |
19bc6aad | 9528 | EOF |
21d1c967 GD |
9529 | |
9530 | else | |
9531 | echo "$ac_t""no" 1>&6 | |
9532 | fi | |
9533 | done | |
19bc6aad | 9534 | |
19bc6aad VZ |
9535 | fi |
9536 | ||
21d1c967 GD |
9537 | for ac_hdr in stdlib.h |
9538 | do | |
9539 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9540 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24f5e003 | 9541 | echo "configure:9542: checking for $ac_hdr" >&5 |
21d1c967 | 9542 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18dbb1f6 VZ |
9543 | echo $ac_n "(cached) $ac_c" 1>&6 |
9544 | else | |
9545 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 9546 | #line 9547 "configure" |
18dbb1f6 | 9547 | #include "confdefs.h" |
21d1c967 | 9548 | #include <$ac_hdr> |
18dbb1f6 | 9549 | EOF |
21d1c967 | 9550 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 9551 | { (eval echo configure:9552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9552 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9553 | if test -z "$ac_err"; then | |
18dbb1f6 | 9554 | rm -rf conftest* |
21d1c967 | 9555 | eval "ac_cv_header_$ac_safe=yes" |
18dbb1f6 | 9556 | else |
21d1c967 | 9557 | echo "$ac_err" >&5 |
18dbb1f6 VZ |
9558 | echo "configure: failed program was:" >&5 |
9559 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9560 | rm -rf conftest* |
9561 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 VZ |
9562 | fi |
9563 | rm -f conftest* | |
90dd450c | 9564 | fi |
21d1c967 GD |
9565 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9566 | echo "$ac_t""yes" 1>&6 | |
9567 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9568 | cat >> confdefs.h <<EOF | |
9569 | #define $ac_tr_hdr 1 | |
90dd450c | 9570 | EOF |
21d1c967 GD |
9571 | |
9572 | else | |
9573 | echo "$ac_t""no" 1>&6 | |
9574 | fi | |
9575 | done | |
90dd450c | 9576 | |
21d1c967 GD |
9577 | for ac_hdr in malloc.h |
9578 | do | |
9579 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9580 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24f5e003 | 9581 | echo "configure:9582: checking for $ac_hdr" >&5 |
21d1c967 | 9582 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9583 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9584 | else |
9585 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 9586 | #line 9587 "configure" |
90dd450c | 9587 | #include "confdefs.h" |
21d1c967 | 9588 | #include <$ac_hdr> |
18dbb1f6 | 9589 | EOF |
21d1c967 | 9590 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 9591 | { (eval echo configure:9592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9592 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9593 | if test -z "$ac_err"; then | |
9594 | rm -rf conftest* | |
9595 | eval "ac_cv_header_$ac_safe=yes" | |
18dbb1f6 | 9596 | else |
21d1c967 | 9597 | echo "$ac_err" >&5 |
18dbb1f6 VZ |
9598 | echo "configure: failed program was:" >&5 |
9599 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9600 | rm -rf conftest* |
9601 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 | 9602 | fi |
21d1c967 | 9603 | rm -f conftest* |
18dbb1f6 | 9604 | fi |
21d1c967 GD |
9605 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9606 | echo "$ac_t""yes" 1>&6 | |
9607 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9608 | cat >> confdefs.h <<EOF | |
9609 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9610 | EOF |
21d1c967 GD |
9611 | |
9612 | else | |
9613 | echo "$ac_t""no" 1>&6 | |
9614 | fi | |
9615 | done | |
dad6c0ea | 9616 | |
21d1c967 GD |
9617 | for ac_hdr in unistd.h |
9618 | do | |
9619 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9620 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24f5e003 | 9621 | echo "configure:9622: checking for $ac_hdr" >&5 |
21d1c967 | 9622 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3a922bb4 RL |
9623 | echo $ac_n "(cached) $ac_c" 1>&6 |
9624 | else | |
9625 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 9626 | #line 9627 "configure" |
3a922bb4 | 9627 | #include "confdefs.h" |
21d1c967 | 9628 | #include <$ac_hdr> |
3a922bb4 | 9629 | EOF |
21d1c967 | 9630 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 9631 | { (eval echo configure:9632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9632 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9633 | if test -z "$ac_err"; then | |
9634 | rm -rf conftest* | |
9635 | eval "ac_cv_header_$ac_safe=yes" | |
3a922bb4 | 9636 | else |
21d1c967 | 9637 | echo "$ac_err" >&5 |
3a922bb4 RL |
9638 | echo "configure: failed program was:" >&5 |
9639 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9640 | rm -rf conftest* |
9641 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9642 | fi |
21d1c967 | 9643 | rm -f conftest* |
90dd450c | 9644 | fi |
21d1c967 GD |
9645 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9646 | echo "$ac_t""yes" 1>&6 | |
9647 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9648 | cat >> confdefs.h <<EOF | |
9649 | #define $ac_tr_hdr 1 | |
90dd450c | 9650 | EOF |
21d1c967 GD |
9651 | |
9652 | else | |
9653 | echo "$ac_t""no" 1>&6 | |
9654 | fi | |
9655 | done | |
90dd450c | 9656 | |
21d1c967 GD |
9657 | for ac_hdr in wchar.h |
9658 | do | |
9659 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9660 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24f5e003 | 9661 | echo "configure:9662: checking for $ac_hdr" >&5 |
21d1c967 | 9662 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4f14bcd8 | 9663 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9664 | else |
9665 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 9666 | #line 9667 "configure" |
4f14bcd8 | 9667 | #include "confdefs.h" |
21d1c967 | 9668 | #include <$ac_hdr> |
3a922bb4 | 9669 | EOF |
21d1c967 | 9670 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 9671 | { (eval echo configure:9672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9672 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9673 | if test -z "$ac_err"; then | |
9674 | rm -rf conftest* | |
9675 | eval "ac_cv_header_$ac_safe=yes" | |
4f14bcd8 | 9676 | else |
21d1c967 | 9677 | echo "$ac_err" >&5 |
4f14bcd8 GD |
9678 | echo "configure: failed program was:" >&5 |
9679 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9680 | rm -rf conftest* |
9681 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9682 | fi |
21d1c967 | 9683 | rm -f conftest* |
4f14bcd8 | 9684 | fi |
21d1c967 GD |
9685 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9686 | echo "$ac_t""yes" 1>&6 | |
9687 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9688 | cat >> confdefs.h <<EOF | |
9689 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9690 | EOF |
21d1c967 GD |
9691 | |
9692 | else | |
9693 | echo "$ac_t""no" 1>&6 | |
9694 | fi | |
9695 | done | |
4f14bcd8 | 9696 | |
4f14bcd8 | 9697 | |
21d1c967 GD |
9698 | if test "$ac_cv_header_wchar_h" != "yes"; then |
9699 | for ac_hdr in wcstr.h | |
9700 | do | |
9701 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9702 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24f5e003 | 9703 | echo "configure:9704: checking for $ac_hdr" >&5 |
21d1c967 | 9704 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
d4158b5d VS |
9705 | echo $ac_n "(cached) $ac_c" 1>&6 |
9706 | else | |
9707 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 9708 | #line 9709 "configure" |
d4158b5d | 9709 | #include "confdefs.h" |
21d1c967 | 9710 | #include <$ac_hdr> |
d4158b5d | 9711 | EOF |
21d1c967 | 9712 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 9713 | { (eval echo configure:9714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9714 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9715 | if test -z "$ac_err"; then | |
9716 | rm -rf conftest* | |
9717 | eval "ac_cv_header_$ac_safe=yes" | |
d4158b5d | 9718 | else |
21d1c967 | 9719 | echo "$ac_err" >&5 |
d4158b5d VS |
9720 | echo "configure: failed program was:" >&5 |
9721 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9722 | rm -rf conftest* |
9723 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 9724 | fi |
21d1c967 GD |
9725 | rm -f conftest* |
9726 | fi | |
9727 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9728 | echo "$ac_t""yes" 1>&6 | |
9729 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9730 | cat >> confdefs.h <<EOF | |
9731 | #define $ac_tr_hdr 1 | |
9732 | EOF | |
9733 | ||
9734 | else | |
9735 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 9736 | fi |
21d1c967 | 9737 | done |
f6bcfd97 | 9738 | |
90dd450c | 9739 | fi |
90dd450c VZ |
9740 | |
9741 | ||
21d1c967 GD |
9742 | for ac_hdr in fnmatch.h |
9743 | do | |
9744 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9745 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24f5e003 | 9746 | echo "configure:9747: checking for $ac_hdr" >&5 |
21d1c967 | 9747 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9748 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9749 | else |
9750 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 9751 | #line 9752 "configure" |
90dd450c | 9752 | #include "confdefs.h" |
21d1c967 | 9753 | #include <$ac_hdr> |
90dd450c | 9754 | EOF |
21d1c967 | 9755 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 9756 | { (eval echo configure:9757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9757 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9758 | if test -z "$ac_err"; then | |
9759 | rm -rf conftest* | |
9760 | eval "ac_cv_header_$ac_safe=yes" | |
3a922bb4 | 9761 | else |
21d1c967 | 9762 | echo "$ac_err" >&5 |
3a922bb4 RL |
9763 | echo "configure: failed program was:" >&5 |
9764 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9765 | rm -rf conftest* |
9766 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9767 | fi |
21d1c967 | 9768 | rm -f conftest* |
4f14bcd8 | 9769 | fi |
21d1c967 GD |
9770 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9771 | echo "$ac_t""yes" 1>&6 | |
9772 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9773 | cat >> confdefs.h <<EOF | |
9774 | #define $ac_tr_hdr 1 | |
90dd450c | 9775 | EOF |
21d1c967 GD |
9776 | |
9777 | else | |
9778 | echo "$ac_t""no" 1>&6 | |
9779 | fi | |
9780 | done | |
90dd450c VZ |
9781 | |
9782 | ||
21d1c967 GD |
9783 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
9784 | for ac_func in fnmatch | |
9785 | do | |
9786 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
24f5e003 | 9787 | echo "configure:9788: checking for $ac_func" >&5 |
21d1c967 | 9788 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
90dd450c | 9789 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9790 | else |
9791 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 9792 | #line 9793 "configure" |
90dd450c | 9793 | #include "confdefs.h" |
21d1c967 GD |
9794 | /* System header to define __stub macros and hopefully few prototypes, |
9795 | which can conflict with char $ac_func(); below. */ | |
9796 | #include <assert.h> | |
9797 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9798 | /* We use char because int might match the return type of a gcc2 | |
9799 | builtin and then its argument prototype would still apply. */ | |
9800 | char $ac_func(); | |
9801 | ||
9802 | int main() { | |
9803 | ||
9804 | /* The GNU C library defines this for functions which it implements | |
9805 | to always fail with ENOSYS. Some functions are actually named | |
9806 | something starting with __ and the normal name is an alias. */ | |
9807 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9808 | choke me | |
9809 | #else | |
9810 | $ac_func(); | |
9811 | #endif | |
9812 | ||
9813 | ; return 0; } | |
90dd450c | 9814 | EOF |
24f5e003 | 9815 | if { (eval echo configure:9816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
9816 | rm -rf conftest* |
9817 | eval "ac_cv_func_$ac_func=yes" | |
90dd450c VZ |
9818 | else |
9819 | echo "configure: failed program was:" >&5 | |
9820 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9821 | rm -rf conftest* |
9822 | eval "ac_cv_func_$ac_func=no" | |
90dd450c | 9823 | fi |
21d1c967 | 9824 | rm -f conftest* |
4f14bcd8 | 9825 | fi |
32832908 | 9826 | |
21d1c967 GD |
9827 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9828 | echo "$ac_t""yes" 1>&6 | |
9829 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9830 | cat >> confdefs.h <<EOF | |
9831 | #define $ac_tr_func 1 | |
90dd450c | 9832 | EOF |
21d1c967 GD |
9833 | |
9834 | else | |
9835 | echo "$ac_t""no" 1>&6 | |
9836 | fi | |
9837 | done | |
90dd450c | 9838 | |
21d1c967 | 9839 | fi |
90dd450c | 9840 | |
21d1c967 GD |
9841 | for ac_hdr in langinfo.h |
9842 | do | |
9843 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9844 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24f5e003 | 9845 | echo "configure:9846: checking for $ac_hdr" >&5 |
21d1c967 | 9846 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9847 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9848 | else |
9849 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 9850 | #line 9851 "configure" |
90dd450c | 9851 | #include "confdefs.h" |
21d1c967 | 9852 | #include <$ac_hdr> |
90dd450c | 9853 | EOF |
21d1c967 | 9854 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 9855 | { (eval echo configure:9856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9856 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9857 | if test -z "$ac_err"; then | |
9858 | rm -rf conftest* | |
9859 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 9860 | else |
21d1c967 | 9861 | echo "$ac_err" >&5 |
90dd450c VZ |
9862 | echo "configure: failed program was:" >&5 |
9863 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9864 | rm -rf conftest* |
9865 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 9866 | fi |
21d1c967 | 9867 | rm -f conftest* |
4f14bcd8 | 9868 | fi |
21d1c967 GD |
9869 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9870 | echo "$ac_t""yes" 1>&6 | |
9871 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9872 | cat >> confdefs.h <<EOF | |
9873 | #define $ac_tr_hdr 1 | |
90dd450c | 9874 | EOF |
21d1c967 GD |
9875 | |
9876 | else | |
9877 | echo "$ac_t""no" 1>&6 | |
9878 | fi | |
9879 | done | |
3a922bb4 | 9880 | |
7b7a7637 | 9881 | |
21d1c967 GD |
9882 | if test "$wxUSE_GUI" = "yes"; then |
9883 | if test "$wxUSE_UNIX" = "yes"; then | |
9884 | for ac_hdr in X11/XKBlib.h | |
9885 | do | |
9886 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9887 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24f5e003 | 9888 | echo "configure:9889: checking for $ac_hdr" >&5 |
21d1c967 | 9889 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c | 9890 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
9891 | else |
9892 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 9893 | #line 9894 "configure" |
90dd450c | 9894 | #include "confdefs.h" |
21d1c967 | 9895 | #include <$ac_hdr> |
90dd450c | 9896 | EOF |
21d1c967 | 9897 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 9898 | { (eval echo configure:9899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
9899 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9900 | if test -z "$ac_err"; then | |
9901 | rm -rf conftest* | |
9902 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 9903 | else |
21d1c967 | 9904 | echo "$ac_err" >&5 |
90dd450c VZ |
9905 | echo "configure: failed program was:" >&5 |
9906 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
9907 | rm -rf conftest* |
9908 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9909 | fi |
21d1c967 | 9910 | rm -f conftest* |
90dd450c | 9911 | fi |
21d1c967 GD |
9912 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9913 | echo "$ac_t""yes" 1>&6 | |
9914 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9915 | cat >> confdefs.h <<EOF | |
9916 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9917 | EOF |
21d1c967 GD |
9918 | |
9919 | else | |
9920 | echo "$ac_t""no" 1>&6 | |
9921 | fi | |
9922 | done | |
10f2d63a | 9923 | |
21d1c967 | 9924 | fi |
90dd450c | 9925 | fi |
81809c07 | 9926 | |
21d1c967 GD |
9927 | |
9928 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
24f5e003 | 9929 | echo "configure:9930: checking for working const" >&5 |
21d1c967 | 9930 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
8168de4c VZ |
9931 | echo $ac_n "(cached) $ac_c" 1>&6 |
9932 | else | |
21d1c967 | 9933 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 9934 | #line 9935 "configure" |
4f14bcd8 | 9935 | #include "confdefs.h" |
21d1c967 | 9936 | |
4f14bcd8 | 9937 | int main() { |
21d1c967 GD |
9938 | |
9939 | /* Ultrix mips cc rejects this. */ | |
9940 | typedef int charset[2]; const charset x; | |
9941 | /* SunOS 4.1.1 cc rejects this. */ | |
9942 | char const *const *ccp; | |
9943 | char **p; | |
9944 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
9945 | struct point {int x, y;}; | |
9946 | static struct point const zero = {0,0}; | |
9947 | /* AIX XL C 1.02.0.0 rejects this. | |
9948 | It does not let you subtract one const X* pointer from another in an arm | |
9949 | of an if-expression whose if-part is not a constant expression */ | |
9950 | const char *g = "string"; | |
9951 | ccp = &g + (g ? g-g : 0); | |
9952 | /* HPUX 7.0 cc rejects these. */ | |
9953 | ++ccp; | |
9954 | p = (char**) ccp; | |
9955 | ccp = (char const *const *) p; | |
9956 | { /* SCO 3.2v4 cc rejects this. */ | |
9957 | char *t; | |
9958 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
9959 | ||
9960 | *t++ = 0; | |
9961 | } | |
9962 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
9963 | int x[] = {25, 17}; | |
9964 | const int *foo = &x[0]; | |
9965 | ++foo; | |
9966 | } | |
9967 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
9968 | typedef const int *iptr; | |
9969 | iptr p = 0; | |
9970 | ++p; | |
9971 | } | |
9972 | { /* AIX XL C 1.02.0.0 rejects this saying | |
9973 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
9974 | struct s { int j; const int *ap[3]; }; | |
9975 | struct s *b; b->j = 5; | |
9976 | } | |
9977 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
9978 | const int foo = 10; | |
9979 | } | |
4f14bcd8 | 9980 | |
4f14bcd8 GD |
9981 | ; return 0; } |
9982 | EOF | |
24f5e003 | 9983 | if { (eval echo configure:9984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 | 9984 | rm -rf conftest* |
21d1c967 | 9985 | ac_cv_c_const=yes |
6f72b082 | 9986 | else |
4f14bcd8 GD |
9987 | echo "configure: failed program was:" >&5 |
9988 | cat conftest.$ac_ext >&5 | |
9989 | rm -rf conftest* | |
21d1c967 | 9990 | ac_cv_c_const=no |
4f14bcd8 GD |
9991 | fi |
9992 | rm -f conftest* | |
698dcdb6 | 9993 | fi |
6f72b082 | 9994 | |
21d1c967 GD |
9995 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
9996 | if test $ac_cv_c_const = no; then | |
9997 | cat >> confdefs.h <<\EOF | |
9998 | #define const | |
90dd450c VZ |
9999 | EOF |
10000 | ||
21d1c967 | 10001 | fi |
90dd450c | 10002 | |
21d1c967 | 10003 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
24f5e003 | 10004 | echo "configure:10005: checking for inline" >&5 |
21d1c967 | 10005 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
4f14bcd8 | 10006 | echo $ac_n "(cached) $ac_c" 1>&6 |
6f72b082 | 10007 | else |
21d1c967 GD |
10008 | ac_cv_c_inline=no |
10009 | for ac_kw in inline __inline__ __inline; do | |
10010 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 10011 | #line 10012 "configure" |
4f14bcd8 | 10012 | #include "confdefs.h" |
90dd450c | 10013 | |
21d1c967 GD |
10014 | int main() { |
10015 | } $ac_kw foo() { | |
4f14bcd8 GD |
10016 | ; return 0; } |
10017 | EOF | |
24f5e003 | 10018 | if { (eval echo configure:10019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 | 10019 | rm -rf conftest* |
21d1c967 | 10020 | ac_cv_c_inline=$ac_kw; break |
6f72b082 | 10021 | else |
4f14bcd8 GD |
10022 | echo "configure: failed program was:" >&5 |
10023 | cat conftest.$ac_ext >&5 | |
698dcdb6 | 10024 | fi |
4f14bcd8 | 10025 | rm -f conftest* |
21d1c967 | 10026 | done |
4f14bcd8 | 10027 | |
21d1c967 | 10028 | fi |
4f14bcd8 | 10029 | |
21d1c967 GD |
10030 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10031 | case "$ac_cv_c_inline" in | |
10032 | inline | yes) ;; | |
10033 | no) cat >> confdefs.h <<\EOF | |
10034 | #define inline | |
90dd450c | 10035 | EOF |
21d1c967 GD |
10036 | ;; |
10037 | *) cat >> confdefs.h <<EOF | |
10038 | #define inline $ac_cv_c_inline | |
4f14bcd8 | 10039 | EOF |
21d1c967 GD |
10040 | ;; |
10041 | esac | |
4f14bcd8 | 10042 | |
90dd450c | 10043 | |
21d1c967 | 10044 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
24f5e003 | 10045 | echo "configure:10046: checking size of char" >&5 |
21d1c967 | 10046 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
4f14bcd8 GD |
10047 | echo $ac_n "(cached) $ac_c" 1>&6 |
10048 | else | |
21d1c967 GD |
10049 | if test "$cross_compiling" = yes; then |
10050 | ac_cv_sizeof_char=1 | |
4f14bcd8 | 10051 | else |
90dd450c | 10052 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 10053 | #line 10054 "configure" |
4f14bcd8 | 10054 | #include "confdefs.h" |
21d1c967 GD |
10055 | #include <stdio.h> |
10056 | main() | |
10057 | { | |
10058 | FILE *f=fopen("conftestval", "w"); | |
10059 | if (!f) exit(1); | |
10060 | fprintf(f, "%d\n", sizeof(char)); | |
10061 | exit(0); | |
90dd450c | 10062 | } |
4f14bcd8 | 10063 | EOF |
17234b26 | 10064 | if { (eval echo configure:10065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
90dd450c | 10065 | then |
21d1c967 | 10066 | ac_cv_sizeof_char=`cat conftestval` |
4f14bcd8 GD |
10067 | else |
10068 | echo "configure: failed program was:" >&5 | |
10069 | cat conftest.$ac_ext >&5 | |
90dd450c | 10070 | rm -fr conftest* |
21d1c967 | 10071 | ac_cv_sizeof_char=0 |
90dd450c VZ |
10072 | fi |
10073 | rm -fr conftest* | |
4f14bcd8 | 10074 | fi |
4f14bcd8 GD |
10075 | |
10076 | fi | |
21d1c967 GD |
10077 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10078 | cat >> confdefs.h <<EOF | |
10079 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10080 | EOF | |
4f14bcd8 | 10081 | |
21d1c967 GD |
10082 | |
10083 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
17234b26 | 10084 | echo "configure:10085: checking size of short" >&5 |
21d1c967 GD |
10085 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10087 | else | |
10088 | if test "$cross_compiling" = yes; then | |
10089 | ac_cv_sizeof_short=2 | |
10090 | else | |
10091 | cat > conftest.$ac_ext <<EOF | |
17234b26 | 10092 | #line 10093 "configure" |
21d1c967 GD |
10093 | #include "confdefs.h" |
10094 | #include <stdio.h> | |
10095 | main() | |
10096 | { | |
10097 | FILE *f=fopen("conftestval", "w"); | |
10098 | if (!f) exit(1); | |
10099 | fprintf(f, "%d\n", sizeof(short)); | |
10100 | exit(0); | |
10101 | } | |
90dd450c | 10102 | EOF |
24f5e003 | 10103 | if { (eval echo configure:10104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10104 | then |
10105 | ac_cv_sizeof_short=`cat conftestval` | |
10106 | else | |
10107 | echo "configure: failed program was:" >&5 | |
10108 | cat conftest.$ac_ext >&5 | |
10109 | rm -fr conftest* | |
10110 | ac_cv_sizeof_short=0 | |
10111 | fi | |
10112 | rm -fr conftest* | |
10113 | fi | |
4f14bcd8 | 10114 | |
4f14bcd8 | 10115 | fi |
21d1c967 GD |
10116 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10117 | cat >> confdefs.h <<EOF | |
10118 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10119 | EOF | |
4f14bcd8 GD |
10120 | |
10121 | ||
21d1c967 | 10122 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
24f5e003 | 10123 | echo "configure:10124: checking size of void *" >&5 |
21d1c967 | 10124 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
4f14bcd8 GD |
10125 | echo $ac_n "(cached) $ac_c" 1>&6 |
10126 | else | |
21d1c967 GD |
10127 | if test "$cross_compiling" = yes; then |
10128 | ac_cv_sizeof_void_p=4 | |
10129 | else | |
4f14bcd8 | 10130 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 10131 | #line 10132 "configure" |
4f14bcd8 | 10132 | #include "confdefs.h" |
21d1c967 GD |
10133 | #include <stdio.h> |
10134 | main() | |
10135 | { | |
10136 | FILE *f=fopen("conftestval", "w"); | |
10137 | if (!f) exit(1); | |
10138 | fprintf(f, "%d\n", sizeof(void *)); | |
10139 | exit(0); | |
10140 | } | |
4f14bcd8 | 10141 | EOF |
24f5e003 | 10142 | if { (eval echo configure:10143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10143 | then |
10144 | ac_cv_sizeof_void_p=`cat conftestval` | |
4f14bcd8 | 10145 | else |
4f14bcd8 GD |
10146 | echo "configure: failed program was:" >&5 |
10147 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10148 | rm -fr conftest* |
10149 | ac_cv_sizeof_void_p=0 | |
4f14bcd8 | 10150 | fi |
21d1c967 | 10151 | rm -fr conftest* |
4f14bcd8 | 10152 | fi |
4f14bcd8 | 10153 | |
21d1c967 GD |
10154 | fi |
10155 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 | |
10156 | cat >> confdefs.h <<EOF | |
10157 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
90dd450c VZ |
10158 | EOF |
10159 | ||
90dd450c | 10160 | |
21d1c967 | 10161 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
24f5e003 | 10162 | echo "configure:10163: checking size of int" >&5 |
21d1c967 | 10163 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
4f14bcd8 | 10164 | echo $ac_n "(cached) $ac_c" 1>&6 |
21d1c967 GD |
10165 | else |
10166 | if test "$cross_compiling" = yes; then | |
10167 | ac_cv_sizeof_int=4 | |
4f14bcd8 GD |
10168 | else |
10169 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 10170 | #line 10171 "configure" |
4f14bcd8 | 10171 | #include "confdefs.h" |
21d1c967 GD |
10172 | #include <stdio.h> |
10173 | main() | |
10174 | { | |
10175 | FILE *f=fopen("conftestval", "w"); | |
10176 | if (!f) exit(1); | |
10177 | fprintf(f, "%d\n", sizeof(int)); | |
10178 | exit(0); | |
10179 | } | |
4f14bcd8 | 10180 | EOF |
24f5e003 | 10181 | if { (eval echo configure:10182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10182 | then |
10183 | ac_cv_sizeof_int=`cat conftestval` | |
4f14bcd8 | 10184 | else |
4f14bcd8 GD |
10185 | echo "configure: failed program was:" >&5 |
10186 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10187 | rm -fr conftest* |
10188 | ac_cv_sizeof_int=0 | |
4f14bcd8 | 10189 | fi |
21d1c967 | 10190 | rm -fr conftest* |
4f14bcd8 | 10191 | fi |
4f14bcd8 | 10192 | |
21d1c967 GD |
10193 | fi |
10194 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
10195 | cat >> confdefs.h <<EOF | |
10196 | #define SIZEOF_INT $ac_cv_sizeof_int | |
90dd450c VZ |
10197 | EOF |
10198 | ||
90dd450c | 10199 | |
21d1c967 | 10200 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
24f5e003 | 10201 | echo "configure:10202: checking size of long" >&5 |
21d1c967 | 10202 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
4f14bcd8 GD |
10203 | echo $ac_n "(cached) $ac_c" 1>&6 |
10204 | else | |
21d1c967 GD |
10205 | if test "$cross_compiling" = yes; then |
10206 | ac_cv_sizeof_long=4 | |
10207 | else | |
10208 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 10209 | #line 10210 "configure" |
90dd450c | 10210 | #include "confdefs.h" |
21d1c967 GD |
10211 | #include <stdio.h> |
10212 | main() | |
10213 | { | |
10214 | FILE *f=fopen("conftestval", "w"); | |
10215 | if (!f) exit(1); | |
10216 | fprintf(f, "%d\n", sizeof(long)); | |
10217 | exit(0); | |
10218 | } | |
4f14bcd8 | 10219 | EOF |
24f5e003 | 10220 | if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10221 | then |
10222 | ac_cv_sizeof_long=`cat conftestval` | |
4f14bcd8 GD |
10223 | else |
10224 | echo "configure: failed program was:" >&5 | |
10225 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10226 | rm -fr conftest* |
10227 | ac_cv_sizeof_long=0 | |
4f14bcd8 | 10228 | fi |
21d1c967 | 10229 | rm -fr conftest* |
90dd450c | 10230 | fi |
4f14bcd8 | 10231 | |
21d1c967 GD |
10232 | fi |
10233 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
10234 | cat >> confdefs.h <<EOF | |
10235 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
90dd450c | 10236 | EOF |
4f14bcd8 | 10237 | |
4f14bcd8 | 10238 | |
4f14bcd8 | 10239 | |
21d1c967 GD |
10240 | case "${host}" in |
10241 | arm-*-linux* ) | |
10242 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
24f5e003 | 10243 | echo "configure:10244: checking size of long long" >&5 |
21d1c967 GD |
10244 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10245 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10246 | else | |
10247 | if test "$cross_compiling" = yes; then | |
10248 | ac_cv_sizeof_long_long=8 | |
10249 | else | |
10250 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 10251 | #line 10252 "configure" |
21d1c967 GD |
10252 | #include "confdefs.h" |
10253 | #include <stdio.h> | |
10254 | main() | |
10255 | { | |
10256 | FILE *f=fopen("conftestval", "w"); | |
10257 | if (!f) exit(1); | |
10258 | fprintf(f, "%d\n", sizeof(long long)); | |
10259 | exit(0); | |
10260 | } | |
90dd450c | 10261 | EOF |
24f5e003 | 10262 | if { (eval echo configure:10263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10263 | then |
10264 | ac_cv_sizeof_long_long=`cat conftestval` | |
90dd450c | 10265 | else |
21d1c967 GD |
10266 | echo "configure: failed program was:" >&5 |
10267 | cat conftest.$ac_ext >&5 | |
10268 | rm -fr conftest* | |
10269 | ac_cv_sizeof_long_long=0 | |
10270 | fi | |
10271 | rm -fr conftest* | |
90dd450c | 10272 | fi |
4f14bcd8 | 10273 | |
21d1c967 GD |
10274 | fi |
10275 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10276 | cat >> confdefs.h <<EOF | |
10277 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10278 | EOF | |
90dd450c | 10279 | |
21d1c967 GD |
10280 | |
10281 | ;; | |
10282 | * ) | |
10283 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
24f5e003 | 10284 | echo "configure:10285: checking size of long long" >&5 |
21d1c967 | 10285 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
4f14bcd8 GD |
10286 | echo $ac_n "(cached) $ac_c" 1>&6 |
10287 | else | |
21d1c967 GD |
10288 | if test "$cross_compiling" = yes; then |
10289 | ac_cv_sizeof_long_long=0 | |
10290 | else | |
10291 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 10292 | #line 10293 "configure" |
90dd450c | 10293 | #include "confdefs.h" |
21d1c967 GD |
10294 | #include <stdio.h> |
10295 | main() | |
10296 | { | |
10297 | FILE *f=fopen("conftestval", "w"); | |
10298 | if (!f) exit(1); | |
10299 | fprintf(f, "%d\n", sizeof(long long)); | |
10300 | exit(0); | |
10301 | } | |
90dd450c | 10302 | EOF |
24f5e003 | 10303 | if { (eval echo configure:10304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10304 | then |
10305 | ac_cv_sizeof_long_long=`cat conftestval` | |
4f14bcd8 | 10306 | else |
90dd450c VZ |
10307 | echo "configure: failed program was:" >&5 |
10308 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10309 | rm -fr conftest* |
10310 | ac_cv_sizeof_long_long=0 | |
90dd450c | 10311 | fi |
21d1c967 | 10312 | rm -fr conftest* |
4f14bcd8 GD |
10313 | fi |
10314 | ||
90dd450c | 10315 | fi |
21d1c967 GD |
10316 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10317 | cat >> confdefs.h <<EOF | |
10318 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
90dd450c | 10319 | EOF |
9e691f46 | 10320 | |
9e691f46 | 10321 | |
21d1c967 GD |
10322 | esac |
10323 | ||
10324 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
24f5e003 | 10325 | echo "configure:10326: checking size of wchar_t" >&5 |
21d1c967 | 10326 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
90dd450c | 10327 | echo $ac_n "(cached) $ac_c" 1>&6 |
21d1c967 GD |
10328 | else |
10329 | ||
10330 | if test "$cross_compiling" = yes; then | |
10331 | wx_cv_sizeof_wchar_t=4 | |
10332 | ||
6f72b082 | 10333 | else |
698dcdb6 | 10334 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 10335 | #line 10336 "configure" |
6f72b082 | 10336 | #include "confdefs.h" |
21d1c967 GD |
10337 | |
10338 | #ifdef HAVE_WCHAR_H | |
10339 | # ifdef __CYGWIN__ | |
10340 | # include <stddef.h> | |
10341 | # endif | |
10342 | # include <wchar.h> | |
10343 | #endif | |
10344 | #ifdef HAVE_STDLIB_H | |
10345 | # include <stdlib.h> | |
10346 | #endif | |
10347 | #include <stdio.h> | |
10348 | int main() | |
10349 | { | |
10350 | FILE *f=fopen("conftestval", "w"); | |
10351 | if (!f) exit(1); | |
10352 | fprintf(f, "%i", sizeof(wchar_t)); | |
10353 | exit(0); | |
10354 | } | |
10355 | ||
698dcdb6 | 10356 | EOF |
24f5e003 | 10357 | if { (eval echo configure:10358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10358 | then |
10359 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
6f72b082 | 10360 | else |
698dcdb6 VZ |
10361 | echo "configure: failed program was:" >&5 |
10362 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10363 | rm -fr conftest* |
10364 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10365 | fi |
21d1c967 | 10366 | rm -fr conftest* |
6f72b082 | 10367 | fi |
6f72b082 | 10368 | |
90dd450c | 10369 | |
3f345b47 VZ |
10370 | fi |
10371 | ||
21d1c967 | 10372 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
3f345b47 | 10373 | |
21d1c967 GD |
10374 | cat >> confdefs.h <<EOF |
10375 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10376 | EOF | |
90dd450c | 10377 | |
90dd450c | 10378 | |
21d1c967 GD |
10379 | # Check whether --enable-largefile or --disable-largefile was given. |
10380 | if test "${enable_largefile+set}" = set; then | |
10381 | enableval="$enable_largefile" | |
10382 | : | |
3f345b47 VZ |
10383 | fi |
10384 | ||
21d1c967 GD |
10385 | if test "$enable_largefile" != no; then |
10386 | wx_largefile=no | |
10387 | ||
10388 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
24f5e003 | 10389 | echo "configure:10390: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
21d1c967 | 10390 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
698dcdb6 | 10391 | echo $ac_n "(cached) $ac_c" 1>&6 |
f6bcfd97 | 10392 | else |
21d1c967 GD |
10393 | |
10394 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 10395 | #line 10396 "configure" |
90dd450c | 10396 | #include "confdefs.h" |
21d1c967 GD |
10397 | #define _FILE_OFFSET_BITS 64 |
10398 | #include <sys/types.h> | |
10399 | int main() { | |
10400 | typedef struct { | |
10401 | unsigned int field: sizeof(off_t) == 8; | |
10402 | } wxlf; | |
10403 | ||
10404 | ; return 0; } | |
90dd450c | 10405 | EOF |
24f5e003 | 10406 | if { (eval echo configure:10407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 10407 | rm -rf conftest* |
21d1c967 | 10408 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10409 | else |
90dd450c VZ |
10410 | echo "configure: failed program was:" >&5 |
10411 | cat conftest.$ac_ext >&5 | |
10412 | rm -rf conftest* | |
21d1c967 | 10413 | ac_cv_sys_file_offset_bits=no |
f6bcfd97 | 10414 | fi |
90dd450c | 10415 | rm -f conftest* |
21d1c967 GD |
10416 | |
10417 | ||
90dd450c | 10418 | fi |
21d1c967 GD |
10419 | |
10420 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
10421 | ||
10422 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10423 | wx_largefile=yes | |
10424 | cat >> confdefs.h <<EOF | |
10425 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
10426 | EOF | |
10427 | ||
10428 | fi | |
10429 | ||
10430 | if test "x$wx_largefile" != "xyes"; then | |
10431 | ||
10432 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
24f5e003 | 10433 | echo "configure:10434: checking for _LARGE_FILES value needed for large files" >&5 |
21d1c967 | 10434 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
90dd450c | 10435 | echo $ac_n "(cached) $ac_c" 1>&6 |
f6bcfd97 | 10436 | else |
21d1c967 GD |
10437 | |
10438 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 10439 | #line 10440 "configure" |
f6bcfd97 | 10440 | #include "confdefs.h" |
21d1c967 GD |
10441 | #define _LARGE_FILES 1 |
10442 | #include <sys/types.h> | |
90dd450c | 10443 | int main() { |
21d1c967 GD |
10444 | typedef struct { |
10445 | unsigned int field: sizeof(off_t) == 8; | |
10446 | } wxlf; | |
10447 | ||
90dd450c | 10448 | ; return 0; } |
698dcdb6 | 10449 | EOF |
24f5e003 | 10450 | if { (eval echo configure:10451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 10451 | rm -rf conftest* |
21d1c967 | 10452 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10453 | else |
698dcdb6 VZ |
10454 | echo "configure: failed program was:" >&5 |
10455 | cat conftest.$ac_ext >&5 | |
90dd450c | 10456 | rm -rf conftest* |
21d1c967 | 10457 | ac_cv_sys_large_files=no |
f6bcfd97 | 10458 | fi |
90dd450c | 10459 | rm -f conftest* |
21d1c967 GD |
10460 | |
10461 | ||
f6bcfd97 | 10462 | fi |
698dcdb6 | 10463 | |
21d1c967 | 10464 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 |
3f345b47 | 10465 | |
21d1c967 GD |
10466 | if test "$ac_cv_sys_large_files" != no; then |
10467 | wx_largefile=yes | |
10468 | cat >> confdefs.h <<EOF | |
10469 | #define _LARGE_FILES $ac_cv_sys_large_files | |
10470 | EOF | |
90dd450c | 10471 | |
90dd450c VZ |
10472 | fi |
10473 | ||
90dd450c | 10474 | fi |
90dd450c | 10475 | |
21d1c967 | 10476 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
24f5e003 | 10477 | echo "configure:10478: checking if large file support is available" >&5 |
21d1c967 GD |
10478 | if test "x$wx_largefile" = "xyes"; then |
10479 | cat >> confdefs.h <<\EOF | |
10480 | #define HAVE_LARGEFILE_SUPPORT 1 | |
90dd450c VZ |
10481 | EOF |
10482 | ||
90dd450c | 10483 | fi |
21d1c967 GD |
10484 | echo "$ac_t""$wx_largefile" 1>&6 |
10485 | fi | |
90dd450c | 10486 | |
90dd450c | 10487 | |
21d1c967 | 10488 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
24f5e003 | 10489 | echo "configure:10490: checking whether byte ordering is bigendian" >&5 |
21d1c967 | 10490 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
90dd450c VZ |
10491 | echo $ac_n "(cached) $ac_c" 1>&6 |
10492 | else | |
21d1c967 GD |
10493 | ac_cv_c_bigendian=unknown |
10494 | # See if sys/param.h defines the BYTE_ORDER macro. | |
10495 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 10496 | #line 10497 "configure" |
90dd450c | 10497 | #include "confdefs.h" |
21d1c967 GD |
10498 | #include <sys/types.h> |
10499 | #include <sys/param.h> | |
10500 | int main() { | |
10501 | ||
10502 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10503 | bogus endian macros | |
10504 | #endif | |
10505 | ; return 0; } | |
90dd450c | 10506 | EOF |
24f5e003 | 10507 | if { (eval echo configure:10508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 10508 | rm -rf conftest* |
21d1c967 | 10509 | # It does; now see whether it defined to BIG_ENDIAN or not. |
90dd450c | 10510 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 10511 | #line 10512 "configure" |
90dd450c | 10512 | #include "confdefs.h" |
21d1c967 GD |
10513 | #include <sys/types.h> |
10514 | #include <sys/param.h> | |
3f345b47 | 10515 | int main() { |
21d1c967 GD |
10516 | |
10517 | #if BYTE_ORDER != BIG_ENDIAN | |
10518 | not big endian | |
10519 | #endif | |
3f345b47 VZ |
10520 | ; return 0; } |
10521 | EOF | |
24f5e003 | 10522 | if { (eval echo configure:10523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3f345b47 | 10523 | rm -rf conftest* |
21d1c967 | 10524 | ac_cv_c_bigendian=yes |
3f345b47 VZ |
10525 | else |
10526 | echo "configure: failed program was:" >&5 | |
10527 | cat conftest.$ac_ext >&5 | |
10528 | rm -rf conftest* | |
21d1c967 | 10529 | ac_cv_c_bigendian=no |
3f345b47 VZ |
10530 | fi |
10531 | rm -f conftest* | |
3f345b47 | 10532 | else |
21d1c967 GD |
10533 | echo "configure: failed program was:" >&5 |
10534 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10535 | fi |
21d1c967 GD |
10536 | rm -f conftest* |
10537 | if test $ac_cv_c_bigendian = unknown; then | |
10538 | if test "$cross_compiling" = yes; then | |
10539 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10540 | else |
90dd450c | 10541 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 10542 | #line 10543 "configure" |
90dd450c | 10543 | #include "confdefs.h" |
21d1c967 GD |
10544 | main () { |
10545 | /* Are we little or big endian? From Harbison&Steele. */ | |
10546 | union | |
10547 | { | |
10548 | long l; | |
10549 | char c[sizeof (long)]; | |
10550 | } u; | |
10551 | u.l = 1; | |
10552 | exit (u.c[sizeof (long) - 1] == 1); | |
10553 | } | |
3f345b47 | 10554 | EOF |
24f5e003 | 10555 | if { (eval echo configure:10556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
10556 | then |
10557 | ac_cv_c_bigendian=no | |
3f345b47 VZ |
10558 | else |
10559 | echo "configure: failed program was:" >&5 | |
10560 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
10561 | rm -fr conftest* |
10562 | ac_cv_c_bigendian=yes | |
3f345b47 | 10563 | fi |
21d1c967 | 10564 | rm -fr conftest* |
8168de4c | 10565 | fi |
703e0a69 | 10566 | |
21d1c967 GD |
10567 | fi |
10568 | fi | |
698dcdb6 | 10569 | |
21d1c967 GD |
10570 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
10571 | if test $ac_cv_c_bigendian = unknown; then | |
10572 | 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 | |
10573 | fi | |
10574 | if test $ac_cv_c_bigendian = yes; then | |
10575 | cat >> confdefs.h <<\EOF | |
10576 | #define WORDS_BIGENDIAN 1 | |
10577 | EOF | |
10578 | ||
10579 | fi | |
10580 | ||
10581 | ||
10582 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
24f5e003 | 10583 | echo "configure:10584: checking how to run the C++ preprocessor" >&5 |
21d1c967 GD |
10584 | if test -z "$CXXCPP"; then |
10585 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 | 10586 | echo $ac_n "(cached) $ac_c" 1>&6 |
7ec2881a | 10587 | else |
21d1c967 GD |
10588 | ac_ext=C |
10589 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10590 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10591 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10592 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10593 | cross_compiling=$ac_cv_prog_cxx_cross | |
10594 | CXXCPP="${CXX-g++} -E" | |
10595 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 10596 | #line 10597 "configure" |
7ec2881a | 10597 | #include "confdefs.h" |
21d1c967 | 10598 | #include <stdlib.h> |
698dcdb6 | 10599 | EOF |
21d1c967 | 10600 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 10601 | { (eval echo configure:10602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
10602 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10603 | if test -z "$ac_err"; then | |
10604 | : | |
698dcdb6 | 10605 | else |
21d1c967 | 10606 | echo "$ac_err" >&5 |
698dcdb6 VZ |
10607 | echo "configure: failed program was:" >&5 |
10608 | cat conftest.$ac_ext >&5 | |
10609 | rm -rf conftest* | |
21d1c967 | 10610 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
10611 | fi |
10612 | rm -f conftest* | |
21d1c967 GD |
10613 | ac_cv_prog_CXXCPP="$CXXCPP" |
10614 | ac_ext=C | |
10615 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10616 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10617 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10618 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10619 | cross_compiling=$ac_cv_prog_cxx_cross | |
7ec2881a | 10620 | fi |
90dd450c | 10621 | fi |
21d1c967 GD |
10622 | CXXCPP="$ac_cv_prog_CXXCPP" |
10623 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 10624 | |
1725144d | 10625 | |
21d1c967 | 10626 | if test "$cross_compiling" = "yes"; then |
90dd450c | 10627 | cat >> confdefs.h <<\EOF |
21d1c967 | 10628 | #define wxUSE_IOSTREAMH 1 |
90dd450c | 10629 | EOF |
ab9b9eab | 10630 | |
21d1c967 GD |
10631 | else |
10632 | ||
10633 | ac_ext=C | |
10634 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10635 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10636 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10637 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10638 | cross_compiling=$ac_cv_prog_cxx_cross | |
10639 | ||
ba337fe7 | 10640 | |
21d1c967 GD |
10641 | for ac_hdr in iostream |
10642 | do | |
10643 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10644 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24f5e003 | 10645 | echo "configure:10646: checking for $ac_hdr" >&5 |
90dd450c | 10646 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 10647 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 10648 | else |
90dd450c | 10649 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 10650 | #line 10651 "configure" |
ab9b9eab | 10651 | #include "confdefs.h" |
21d1c967 | 10652 | #include <$ac_hdr> |
698dcdb6 VZ |
10653 | EOF |
10654 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24f5e003 | 10655 | { (eval echo configure:10656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10656 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10657 | if test -z "$ac_err"; then | |
10658 | rm -rf conftest* | |
90dd450c | 10659 | eval "ac_cv_header_$ac_safe=yes" |
ab9b9eab | 10660 | else |
698dcdb6 VZ |
10661 | echo "$ac_err" >&5 |
10662 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10663 | cat conftest.$ac_ext >&5 |
698dcdb6 | 10664 | rm -rf conftest* |
90dd450c | 10665 | eval "ac_cv_header_$ac_safe=no" |
ab9b9eab | 10666 | fi |
698dcdb6 | 10667 | rm -f conftest* |
90dd450c VZ |
10668 | fi |
10669 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10670 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
10671 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
10672 | cat >> confdefs.h <<EOF | |
10673 | #define $ac_tr_hdr 1 | |
698dcdb6 | 10674 | EOF |
21d1c967 | 10675 | |
ab9b9eab | 10676 | else |
90dd450c VZ |
10677 | echo "$ac_t""no" 1>&6 |
10678 | fi | |
21d1c967 | 10679 | done |
10f2d63a | 10680 | |
10f2d63a | 10681 | |
21d1c967 GD |
10682 | if test "$ac_cv_header_iostream" = "yes" ; then |
10683 | : | |
10684 | else | |
10685 | cat >> confdefs.h <<\EOF | |
10686 | #define wxUSE_IOSTREAMH 1 | |
10687 | EOF | |
788deba1 | 10688 | |
90dd450c | 10689 | fi |
ab9b9eab | 10690 | |
21d1c967 GD |
10691 | ac_ext=c |
10692 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10693 | ac_cpp='$CPP $CPPFLAGS' | |
10694 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10695 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10696 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 10697 | |
21d1c967 | 10698 | fi |
ab9b9eab | 10699 | |
21d1c967 GD |
10700 | |
10701 | ||
10702 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
24f5e003 | 10703 | echo "configure:10704: checking if C++ compiler supports bool" >&5 |
21d1c967 | 10704 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 | 10705 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 10706 | else |
21d1c967 GD |
10707 | |
10708 | ||
10709 | ac_ext=C | |
10710 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10711 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10712 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10713 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10714 | cross_compiling=$ac_cv_prog_cxx_cross | |
10715 | ||
10716 | ||
10717 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 10718 | #line 10719 "configure" |
ab9b9eab | 10719 | #include "confdefs.h" |
21d1c967 GD |
10720 | |
10721 | ||
10722 | int main() { | |
10723 | ||
10724 | bool b = true; | |
10725 | ||
10726 | return 0; | |
10727 | ||
10728 | ; return 0; } | |
698dcdb6 | 10729 | EOF |
24f5e003 | 10730 | if { (eval echo configure:10731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 10731 | rm -rf conftest* |
21d1c967 GD |
10732 | |
10733 | wx_cv_cpp_bool=yes | |
10734 | ||
698dcdb6 VZ |
10735 | else |
10736 | echo "configure: failed program was:" >&5 | |
10737 | cat conftest.$ac_ext >&5 | |
10738 | rm -rf conftest* | |
21d1c967 GD |
10739 | |
10740 | wx_cv_cpp_bool=no | |
10741 | ||
10742 | ||
698dcdb6 VZ |
10743 | fi |
10744 | rm -f conftest* | |
21d1c967 GD |
10745 | |
10746 | ac_ext=c | |
10747 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10748 | ac_cpp='$CPP $CPPFLAGS' | |
10749 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10750 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10751 | cross_compiling=$ac_cv_prog_cc_cross | |
10752 | ||
10753 | ||
698dcdb6 | 10754 | fi |
21d1c967 GD |
10755 | |
10756 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10757 | ||
10758 | if test "$wx_cv_cpp_bool" = "yes"; then | |
10759 | cat >> confdefs.h <<\EOF | |
10760 | #define HAVE_BOOL 1 | |
90dd450c | 10761 | EOF |
ab9b9eab | 10762 | |
21d1c967 GD |
10763 | fi |
10764 | ||
10765 | ||
10766 | ||
986ecc86 | 10767 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
24f5e003 | 10768 | echo "configure:10769: checking if C++ compiler supports the explicit keyword" >&5 |
986ecc86 VZ |
10769 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
10770 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10771 | else | |
10772 | ||
10773 | ||
10774 | ac_ext=C | |
10775 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10776 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10777 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10778 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10779 | cross_compiling=$ac_cv_prog_cxx_cross | |
10780 | ||
10781 | ||
10782 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 10783 | #line 10784 "configure" |
986ecc86 VZ |
10784 | #include "confdefs.h" |
10785 | ||
10786 | class Foo { public: explicit Foo(int) {} }; | |
10787 | ||
10788 | int main() { | |
10789 | ||
10790 | return 0; | |
10791 | ||
10792 | ; return 0; } | |
10793 | EOF | |
24f5e003 | 10794 | if { (eval echo configure:10795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
986ecc86 VZ |
10795 | rm -rf conftest* |
10796 | ||
10797 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 10798 | #line 10799 "configure" |
986ecc86 VZ |
10799 | #include "confdefs.h" |
10800 | ||
10801 | class Foo { public: explicit Foo(int) {} }; | |
10802 | static void TakeFoo(const Foo& foo) { } | |
10803 | ||
10804 | int main() { | |
10805 | ||
10806 | TakeFoo(17); | |
10807 | return 0; | |
10808 | ||
10809 | ; return 0; } | |
10810 | EOF | |
24f5e003 | 10811 | if { (eval echo configure:10812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
986ecc86 VZ |
10812 | rm -rf conftest* |
10813 | wx_cv_explicit=no | |
10814 | else | |
10815 | echo "configure: failed program was:" >&5 | |
10816 | cat conftest.$ac_ext >&5 | |
10817 | rm -rf conftest* | |
10818 | wx_cv_explicit=yes | |
10819 | ||
10820 | fi | |
10821 | rm -f conftest* | |
10822 | ||
10823 | else | |
10824 | echo "configure: failed program was:" >&5 | |
10825 | cat conftest.$ac_ext >&5 | |
10826 | rm -rf conftest* | |
10827 | wx_cv_explicit=no | |
10828 | ||
10829 | fi | |
10830 | rm -f conftest* | |
10831 | ||
10832 | ac_ext=c | |
10833 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10834 | ac_cpp='$CPP $CPPFLAGS' | |
10835 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10836 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10837 | cross_compiling=$ac_cv_prog_cc_cross | |
10838 | ||
10839 | ||
10840 | fi | |
10841 | ||
10842 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
10843 | ||
10844 | if test "$wx_cv_explicit" = "yes"; then | |
10845 | cat >> confdefs.h <<\EOF | |
10846 | #define HAVE_EXPLICIT 1 | |
10847 | EOF | |
10848 | ||
10849 | fi | |
10850 | ||
10851 | ||
10852 | ||
21d1c967 GD |
10853 | SEARCH_INCLUDE="\ |
10854 | /usr/local/include \ | |
10855 | \ | |
10856 | /usr/Motif-1.2/include \ | |
10857 | /usr/Motif-2.1/include \ | |
10858 | \ | |
10859 | /usr/include/Motif1.2 \ | |
10860 | /opt/xpm/include/X11 \ | |
10861 | /opt/GBxpm/include/ \ | |
10862 | /opt/GBxpm/X11/include/ \ | |
10863 | \ | |
10864 | /usr/Motif1.2/include \ | |
10865 | /usr/dt/include \ | |
10866 | /usr/openwin/include \ | |
10867 | \ | |
10868 | /usr/include/Xm \ | |
10869 | \ | |
10870 | /usr/X11R6/include \ | |
10871 | /usr/X11R6.4/include \ | |
10872 | /usr/X11R5/include \ | |
10873 | /usr/X11R4/include \ | |
10874 | \ | |
10875 | /usr/include/X11R6 \ | |
10876 | /usr/include/X11R5 \ | |
10877 | /usr/include/X11R4 \ | |
10878 | \ | |
10879 | /usr/local/X11R6/include \ | |
10880 | /usr/local/X11R5/include \ | |
10881 | /usr/local/X11R4/include \ | |
10882 | \ | |
10883 | /usr/local/include/X11R6 \ | |
10884 | /usr/local/include/X11R5 \ | |
10885 | /usr/local/include/X11R4 \ | |
10886 | \ | |
10887 | /usr/X11/include \ | |
10888 | /usr/include/X11 \ | |
10889 | /usr/local/X11/include \ | |
10890 | /usr/local/include/X11 \ | |
10891 | \ | |
10892 | /usr/X386/include \ | |
10893 | /usr/x386/include \ | |
10894 | /usr/XFree86/include/X11 \ | |
10895 | \ | |
10896 | X:/XFree86/include \ | |
10897 | X:/XFree86/include/X11 \ | |
10898 | \ | |
10899 | /usr/include/gtk \ | |
10900 | /usr/local/include/gtk \ | |
10901 | /usr/include/glib \ | |
10902 | /usr/local/include/glib \ | |
10903 | \ | |
10904 | /usr/include/qt \ | |
10905 | /usr/local/include/qt \ | |
10906 | \ | |
10907 | /usr/include/windows \ | |
10908 | /usr/include/wine \ | |
10909 | /usr/local/include/wine \ | |
10910 | \ | |
10911 | /usr/unsupported/include \ | |
10912 | /usr/athena/include \ | |
10913 | /usr/local/x11r5/include \ | |
10914 | /usr/lpp/Xamples/include \ | |
10915 | \ | |
10916 | /usr/openwin/share/include \ | |
10917 | \ | |
10918 | /usr/include" | |
10919 | ||
10920 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
10921 | ||
10922 | ||
10923 | cat > confcache <<\EOF | |
10924 | # This file is a shell script that caches the results of configure | |
10925 | # tests run on this system so they can be shared between configure | |
10926 | # scripts and configure runs. It is not useful on other systems. | |
10927 | # If it contains results you don't want to keep, you may remove or edit it. | |
10928 | # | |
10929 | # By default, configure uses ./config.cache as the cache file, | |
10930 | # creating it if it does not exist already. You can give configure | |
10931 | # the --cache-file=FILE option to use a different cache file; that is | |
10932 | # what configure does when it calls configure scripts in | |
10933 | # subdirectories, so they share the cache. | |
10934 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10935 | # config.status only pays attention to the cache file if you give it the | |
10936 | # --recheck option to rerun configure. | |
10937 | # | |
698dcdb6 | 10938 | EOF |
21d1c967 GD |
10939 | # The following way of writing the cache mishandles newlines in values, |
10940 | # but we know of no workaround that is simple, portable, and efficient. | |
10941 | # So, don't put newlines in cache variables' values. | |
10942 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10943 | # and sets the high bit in the cache file unless we assign to the vars. | |
10944 | (set) 2>&1 | | |
10945 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10946 | *ac_space=\ *) | |
10947 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10948 | # turns \\\\ into \\, and sed turns \\ into \). | |
10949 | sed -n \ | |
10950 | -e "s/'/'\\\\''/g" \ | |
10951 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10952 | ;; | |
10953 | *) | |
10954 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10955 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10956 | ;; | |
10957 | esac >> confcache | |
10958 | if cmp -s $cache_file confcache; then | |
90dd450c | 10959 | : |
698dcdb6 | 10960 | else |
21d1c967 GD |
10961 | if test -w $cache_file; then |
10962 | echo "updating cache $cache_file" | |
10963 | cat confcache > $cache_file | |
10964 | else | |
10965 | echo "not updating unwritable cache $cache_file" | |
10966 | fi | |
ab9b9eab | 10967 | fi |
21d1c967 | 10968 | rm -f confcache |
ab9b9eab | 10969 | |
ab9b9eab | 10970 | |
21d1c967 GD |
10971 | if test "$USE_LINUX" = 1; then |
10972 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
24f5e003 | 10973 | echo "configure:10974: checking for glibc 2.1 or later" >&5 |
21d1c967 | 10974 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
698dcdb6 VZ |
10975 | echo $ac_n "(cached) $ac_c" 1>&6 |
10976 | else | |
90dd450c | 10977 | |
21d1c967 | 10978 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 10979 | #line 10980 "configure" |
ab9b9eab | 10980 | #include "confdefs.h" |
21d1c967 | 10981 | #include <features.h> |
698dcdb6 | 10982 | int main() { |
ab9b9eab | 10983 | |
21d1c967 GD |
10984 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
10985 | #error not glibc2.1 | |
10986 | #endif | |
10987 | ||
698dcdb6 VZ |
10988 | ; return 0; } |
10989 | EOF | |
24f5e003 | 10990 | if { (eval echo configure:10991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 10991 | rm -rf conftest* |
90dd450c | 10992 | |
21d1c967 GD |
10993 | wx_cv_lib_glibc21=yes |
10994 | ||
698dcdb6 VZ |
10995 | else |
10996 | echo "configure: failed program was:" >&5 | |
10997 | cat conftest.$ac_ext >&5 | |
10998 | rm -rf conftest* | |
90dd450c | 10999 | |
21d1c967 GD |
11000 | wx_cv_lib_glibc21=no |
11001 | ||
11002 | ||
698dcdb6 VZ |
11003 | fi |
11004 | rm -f conftest* | |
90dd450c | 11005 | |
698dcdb6 VZ |
11006 | fi |
11007 | ||
21d1c967 GD |
11008 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 |
11009 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
11010 | cat >> confdefs.h <<\EOF | |
11011 | #define wxHAVE_GLIBC2 1 | |
11012 | EOF | |
1e487827 | 11013 | |
90dd450c | 11014 | fi |
ab9b9eab VZ |
11015 | fi |
11016 | ||
ab9b9eab | 11017 | |
ab9b9eab | 11018 | |
21d1c967 GD |
11019 | REGEX_INCLUDE= |
11020 | if test "$wxUSE_REGEX" != "no"; then | |
11021 | cat >> confdefs.h <<\EOF | |
11022 | #define wxUSE_REGEX 1 | |
11023 | EOF | |
698dcdb6 | 11024 | |
ab9b9eab | 11025 | |
21d1c967 GD |
11026 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
11027 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
11028 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
24f5e003 | 11029 | echo "configure:11030: checking for regex.h" >&5 |
21d1c967 | 11030 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 11031 | echo $ac_n "(cached) $ac_c" 1>&6 |
ab9b9eab | 11032 | else |
21d1c967 | 11033 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 11034 | #line 11035 "configure" |
21d1c967 GD |
11035 | #include "confdefs.h" |
11036 | #include <regex.h> | |
11037 | EOF | |
11038 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24f5e003 | 11039 | { (eval echo configure:11040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11040 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11041 | if test -z "$ac_err"; then | |
11042 | rm -rf conftest* | |
11043 | eval "ac_cv_header_$ac_safe=yes" | |
698dcdb6 | 11044 | else |
21d1c967 GD |
11045 | echo "$ac_err" >&5 |
11046 | echo "configure: failed program was:" >&5 | |
11047 | cat conftest.$ac_ext >&5 | |
11048 | rm -rf conftest* | |
11049 | eval "ac_cv_header_$ac_safe=no" | |
11050 | fi | |
11051 | rm -f conftest* | |
698dcdb6 | 11052 | fi |
21d1c967 GD |
11053 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11054 | echo "$ac_t""yes" 1>&6 | |
11055 | for ac_func in regcomp | |
11056 | do | |
11057 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
24f5e003 | 11058 | echo "configure:11059: checking for $ac_func" >&5 |
21d1c967 GD |
11059 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11060 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11061 | else | |
11062 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 11063 | #line 11064 "configure" |
21d1c967 GD |
11064 | #include "confdefs.h" |
11065 | /* System header to define __stub macros and hopefully few prototypes, | |
11066 | which can conflict with char $ac_func(); below. */ | |
11067 | #include <assert.h> | |
11068 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11069 | /* We use char because int might match the return type of a gcc2 | |
11070 | builtin and then its argument prototype would still apply. */ | |
11071 | char $ac_func(); | |
698dcdb6 | 11072 | |
21d1c967 | 11073 | int main() { |
90dd450c | 11074 | |
21d1c967 GD |
11075 | /* The GNU C library defines this for functions which it implements |
11076 | to always fail with ENOSYS. Some functions are actually named | |
11077 | something starting with __ and the normal name is an alias. */ | |
11078 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11079 | choke me | |
11080 | #else | |
11081 | $ac_func(); | |
11082 | #endif | |
90dd450c | 11083 | |
21d1c967 GD |
11084 | ; return 0; } |
11085 | EOF | |
24f5e003 | 11086 | if { (eval echo configure:11087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
11087 | rm -rf conftest* |
11088 | eval "ac_cv_func_$ac_func=yes" | |
11089 | else | |
11090 | echo "configure: failed program was:" >&5 | |
11091 | cat conftest.$ac_ext >&5 | |
11092 | rm -rf conftest* | |
11093 | eval "ac_cv_func_$ac_func=no" | |
11094 | fi | |
11095 | rm -f conftest* | |
11096 | fi | |
90dd450c | 11097 | |
21d1c967 GD |
11098 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11099 | echo "$ac_t""yes" 1>&6 | |
11100 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11101 | cat >> confdefs.h <<EOF | |
11102 | #define $ac_tr_func 1 | |
11103 | EOF | |
11104 | ||
90dd450c | 11105 | else |
21d1c967 | 11106 | echo "$ac_t""no" 1>&6 |
698dcdb6 | 11107 | fi |
21d1c967 GD |
11108 | done |
11109 | ||
698dcdb6 VZ |
11110 | else |
11111 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11112 | fi |
11113 | ||
90dd450c | 11114 | |
21d1c967 GD |
11115 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11116 | if test "$wxUSE_REGEX" = "sys" ; then | |
11117 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
11118 | else | |
11119 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 | |
11120 | wxUSE_REGEX=builtin | |
11121 | fi | |
11122 | else | |
11123 | wxUSE_REGEX=sys | |
11124 | fi | |
ab9b9eab | 11125 | fi |
90dd450c | 11126 | |
21d1c967 GD |
11127 | if test "$wxUSE_REGEX" = "builtin" ; then |
11128 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11129 | fi |
21d1c967 | 11130 | fi |
90dd450c | 11131 | |
90dd450c | 11132 | |
21d1c967 GD |
11133 | ZLIB_INCLUDE= |
11134 | ZLIB_LINK= | |
11135 | if test "$wxUSE_ZLIB" != "no" ; then | |
11136 | cat >> confdefs.h <<\EOF | |
11137 | #define wxUSE_ZLIB 1 | |
11138 | EOF | |
11139 | ||
11140 | ||
11141 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
11142 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
11143 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
24f5e003 | 11144 | echo "configure:11145: checking for zlib.h" >&5 |
21d1c967 GD |
11145 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11146 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11147 | else |
698dcdb6 | 11148 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 11149 | #line 11150 "configure" |
ab9b9eab | 11150 | #include "confdefs.h" |
21d1c967 | 11151 | #include <zlib.h> |
698dcdb6 | 11152 | EOF |
21d1c967 | 11153 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 11154 | { (eval echo configure:11155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11155 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11156 | if test -z "$ac_err"; then | |
11157 | rm -rf conftest* | |
11158 | eval "ac_cv_header_$ac_safe=yes" | |
698dcdb6 | 11159 | else |
21d1c967 | 11160 | echo "$ac_err" >&5 |
698dcdb6 VZ |
11161 | echo "configure: failed program was:" >&5 |
11162 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11163 | rm -rf conftest* |
11164 | eval "ac_cv_header_$ac_safe=no" | |
698dcdb6 | 11165 | fi |
21d1c967 | 11166 | rm -f conftest* |
ab9b9eab | 11167 | fi |
21d1c967 GD |
11168 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11169 | echo "$ac_t""yes" 1>&6 | |
11170 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
24f5e003 | 11171 | echo "configure:11172: checking for deflate in -lz" >&5 |
21d1c967 GD |
11172 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11173 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11174 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11175 | else | |
11176 | ac_save_LIBS="$LIBS" | |
11177 | LIBS="-lz $LIBS" | |
11178 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 11179 | #line 11180 "configure" |
ab9b9eab | 11180 | #include "confdefs.h" |
21d1c967 GD |
11181 | /* Override any gcc2 internal prototype to avoid an error. */ |
11182 | /* We use char because int might match the return type of a gcc2 | |
11183 | builtin and then its argument prototype would still apply. */ | |
11184 | char deflate(); | |
ab9b9eab | 11185 | |
90dd450c | 11186 | int main() { |
21d1c967 | 11187 | deflate() |
698dcdb6 VZ |
11188 | ; return 0; } |
11189 | EOF | |
24f5e003 | 11190 | if { (eval echo configure:11191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11191 | rm -rf conftest* |
21d1c967 | 11192 | eval "ac_cv_lib_$ac_lib_var=yes" |
698dcdb6 VZ |
11193 | else |
11194 | echo "configure: failed program was:" >&5 | |
11195 | cat conftest.$ac_ext >&5 | |
11196 | rm -rf conftest* | |
21d1c967 | 11197 | eval "ac_cv_lib_$ac_lib_var=no" |
698dcdb6 VZ |
11198 | fi |
11199 | rm -f conftest* | |
21d1c967 | 11200 | LIBS="$ac_save_LIBS" |
ab9b9eab | 11201 | |
21d1c967 GD |
11202 | fi |
11203 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11204 | echo "$ac_t""yes" 1>&6 | |
11205 | ZLIB_LINK=" -lz" | |
ab9b9eab | 11206 | else |
21d1c967 | 11207 | echo "$ac_t""no" 1>&6 |
90dd450c | 11208 | fi |
698dcdb6 | 11209 | |
698dcdb6 | 11210 | else |
21d1c967 | 11211 | echo "$ac_t""no" 1>&6 |
698dcdb6 | 11212 | fi |
698dcdb6 | 11213 | |
21d1c967 GD |
11214 | |
11215 | if test "x$ZLIB_LINK" = "x" ; then | |
11216 | if test "$wxUSE_ZLIB" = "sys" ; then | |
11217 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
11218 | else | |
11219 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 | |
11220 | wxUSE_ZLIB=builtin | |
11221 | fi | |
11222 | else | |
11223 | wxUSE_ZLIB=sys | |
11224 | fi | |
11225 | fi | |
11226 | ||
11227 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11228 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11229 | fi | |
ab9b9eab VZ |
11230 | fi |
11231 | ||
ab9b9eab | 11232 | |
21d1c967 GD |
11233 | PNG_INCLUDE= |
11234 | PNG_LINK= | |
11235 | if test "$wxUSE_LIBPNG" != "no" ; then | |
11236 | cat >> confdefs.h <<\EOF | |
11237 | #define wxUSE_LIBPNG 1 | |
11238 | EOF | |
90dd450c | 11239 | |
21d1c967 GD |
11240 | |
11241 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
11242 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
11243 | wxUSE_LIBPNG=sys | |
11244 | fi | |
90dd450c | 11245 | |
21d1c967 GD |
11246 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
11247 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 | |
11248 | wxUSE_LIBPNG=builtin | |
11249 | fi | |
11250 | ||
11251 | if test "$wxUSE_MGL" != 1 ; then | |
11252 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
11253 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
11254 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
24f5e003 | 11255 | echo "configure:11256: checking for png.h" >&5 |
21d1c967 | 11256 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
90dd450c VZ |
11257 | echo $ac_n "(cached) $ac_c" 1>&6 |
11258 | else | |
21d1c967 | 11259 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 11260 | #line 11261 "configure" |
21d1c967 GD |
11261 | #include "confdefs.h" |
11262 | #include <png.h> | |
11263 | EOF | |
11264 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24f5e003 | 11265 | { (eval echo configure:11266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11266 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11267 | if test -z "$ac_err"; then | |
11268 | rm -rf conftest* | |
11269 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 11270 | else |
21d1c967 | 11271 | echo "$ac_err" >&5 |
90dd450c VZ |
11272 | echo "configure: failed program was:" >&5 |
11273 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11274 | rm -rf conftest* |
11275 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11276 | fi |
21d1c967 | 11277 | rm -f conftest* |
90dd450c | 11278 | fi |
21d1c967 GD |
11279 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11280 | echo "$ac_t""yes" 1>&6 | |
11281 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
24f5e003 | 11282 | echo "configure:11283: checking for png_check_sig in -lpng" >&5 |
21d1c967 GD |
11283 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11284 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11285 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11286 | else | |
11287 | ac_save_LIBS="$LIBS" | |
11288 | LIBS="-lpng -lz -lm $LIBS" | |
11289 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 11290 | #line 11291 "configure" |
90dd450c | 11291 | #include "confdefs.h" |
21d1c967 GD |
11292 | /* Override any gcc2 internal prototype to avoid an error. */ |
11293 | /* We use char because int might match the return type of a gcc2 | |
11294 | builtin and then its argument prototype would still apply. */ | |
11295 | char png_check_sig(); | |
90dd450c VZ |
11296 | |
11297 | int main() { | |
21d1c967 | 11298 | png_check_sig() |
90dd450c VZ |
11299 | ; return 0; } |
11300 | EOF | |
24f5e003 | 11301 | if { (eval echo configure:11302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c | 11302 | rm -rf conftest* |
21d1c967 | 11303 | eval "ac_cv_lib_$ac_lib_var=yes" |
90dd450c VZ |
11304 | else |
11305 | echo "configure: failed program was:" >&5 | |
11306 | cat conftest.$ac_ext >&5 | |
11307 | rm -rf conftest* | |
21d1c967 | 11308 | eval "ac_cv_lib_$ac_lib_var=no" |
90dd450c VZ |
11309 | fi |
11310 | rm -f conftest* | |
21d1c967 | 11311 | LIBS="$ac_save_LIBS" |
90dd450c | 11312 | |
90dd450c | 11313 | fi |
21d1c967 GD |
11314 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11315 | echo "$ac_t""yes" 1>&6 | |
11316 | PNG_LINK=" -lpng" | |
90dd450c | 11317 | else |
21d1c967 | 11318 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
11319 | fi |
11320 | ||
21d1c967 | 11321 | |
90dd450c | 11322 | else |
21d1c967 | 11323 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
11324 | fi |
11325 | ||
11326 | ||
21d1c967 GD |
11327 | if test "x$PNG_LINK" = "x" ; then |
11328 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
11329 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
11330 | else | |
11331 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
11332 | wxUSE_LIBPNG=builtin | |
11333 | fi | |
11334 | else | |
11335 | wxUSE_LIBPNG=yes | |
11336 | fi | |
11337 | fi | |
11338 | fi | |
90dd450c | 11339 | |
21d1c967 GD |
11340 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11341 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11342 | fi | |
90dd450c | 11343 | |
21d1c967 | 11344 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11345 | fi |
11346 | ||
90dd450c | 11347 | |
21d1c967 GD |
11348 | JPEG_INCLUDE= |
11349 | JPEG_LINK= | |
11350 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
11351 | cat >> confdefs.h <<\EOF | |
11352 | #define wxUSE_LIBJPEG 1 | |
11353 | EOF | |
90dd450c | 11354 | |
90dd450c | 11355 | |
21d1c967 GD |
11356 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
11357 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
11358 | wxUSE_LIBJPEG=sys | |
11359 | fi | |
90dd450c | 11360 | |
21d1c967 GD |
11361 | if test "$wxUSE_MGL" != 1 ; then |
11362 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
11363 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
24f5e003 | 11364 | echo "configure:11365: checking for jpeglib.h" >&5 |
21d1c967 GD |
11365 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11367 | else | |
11368 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 11369 | #line 11370 "configure" |
21d1c967 | 11370 | #include "confdefs.h" |
90dd450c | 11371 | |
21d1c967 GD |
11372 | #undef HAVE_STDLIB_H |
11373 | #include <stdio.h> | |
11374 | #include <jpeglib.h> | |
11375 | ||
11376 | int main() { | |
90dd450c | 11377 | |
21d1c967 GD |
11378 | |
11379 | ; return 0; } | |
90dd450c | 11380 | EOF |
24f5e003 | 11381 | if { (eval echo configure:11382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
21d1c967 GD |
11382 | rm -rf conftest* |
11383 | ac_cv_header_jpeglib_h=yes | |
90dd450c VZ |
11384 | else |
11385 | echo "configure: failed program was:" >&5 | |
11386 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11387 | rm -rf conftest* |
11388 | ac_cv_header_jpeglib_h=no | |
11389 | ||
90dd450c | 11390 | fi |
21d1c967 GD |
11391 | rm -f conftest* |
11392 | ||
90dd450c VZ |
11393 | fi |
11394 | ||
21d1c967 | 11395 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11396 | |
21d1c967 GD |
11397 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
11398 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
24f5e003 | 11399 | echo "configure:11400: checking for jpeg_read_header in -ljpeg" >&5 |
21d1c967 GD |
11400 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11401 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11402 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11403 | else | |
11404 | ac_save_LIBS="$LIBS" | |
11405 | LIBS="-ljpeg $LIBS" | |
11406 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 11407 | #line 11408 "configure" |
21d1c967 GD |
11408 | #include "confdefs.h" |
11409 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11410 | /* We use char because int might match the return type of a gcc2 | |
11411 | builtin and then its argument prototype would still apply. */ | |
11412 | char jpeg_read_header(); | |
90dd450c VZ |
11413 | |
11414 | int main() { | |
21d1c967 | 11415 | jpeg_read_header() |
90dd450c VZ |
11416 | ; return 0; } |
11417 | EOF | |
24f5e003 | 11418 | if { (eval echo configure:11419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c | 11419 | rm -rf conftest* |
21d1c967 | 11420 | eval "ac_cv_lib_$ac_lib_var=yes" |
90dd450c VZ |
11421 | else |
11422 | echo "configure: failed program was:" >&5 | |
11423 | cat conftest.$ac_ext >&5 | |
11424 | rm -rf conftest* | |
21d1c967 | 11425 | eval "ac_cv_lib_$ac_lib_var=no" |
90dd450c VZ |
11426 | fi |
11427 | rm -f conftest* | |
21d1c967 | 11428 | LIBS="$ac_save_LIBS" |
90dd450c | 11429 | |
21d1c967 GD |
11430 | fi |
11431 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11432 | echo "$ac_t""yes" 1>&6 | |
11433 | JPEG_LINK=" -ljpeg" | |
11434 | else | |
11435 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11436 | fi |
11437 | ||
21d1c967 | 11438 | fi |
90dd450c | 11439 | |
21d1c967 GD |
11440 | if test "x$JPEG_LINK" = "x" ; then |
11441 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
11442 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
11443 | else | |
11444 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
11445 | wxUSE_LIBJPEG=builtin | |
11446 | fi | |
11447 | else | |
11448 | wxUSE_LIBJPEG=sys | |
11449 | fi | |
11450 | fi | |
11451 | fi | |
90dd450c | 11452 | |
21d1c967 GD |
11453 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
11454 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11455 | fi | |
11456 | fi | |
90dd450c | 11457 | |
90dd450c | 11458 | |
21d1c967 GD |
11459 | TIFF_INCLUDE= |
11460 | TIFF_LINK= | |
11461 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
11462 | cat >> confdefs.h <<\EOF | |
11463 | #define wxUSE_LIBTIFF 1 | |
11464 | EOF | |
11465 | ||
11466 | ||
11467 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
11468 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
11469 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
24f5e003 | 11470 | echo "configure:11471: checking for tiffio.h" >&5 |
21d1c967 GD |
11471 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11473 | else | |
11474 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 11475 | #line 11476 "configure" |
21d1c967 GD |
11476 | #include "confdefs.h" |
11477 | #include <tiffio.h> | |
11478 | EOF | |
11479 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24f5e003 | 11480 | { (eval echo configure:11481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11481 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11482 | if test -z "$ac_err"; then | |
11483 | rm -rf conftest* | |
11484 | eval "ac_cv_header_$ac_safe=yes" | |
11485 | else | |
11486 | echo "$ac_err" >&5 | |
11487 | echo "configure: failed program was:" >&5 | |
11488 | cat conftest.$ac_ext >&5 | |
11489 | rm -rf conftest* | |
11490 | eval "ac_cv_header_$ac_safe=no" | |
11491 | fi | |
11492 | rm -f conftest* | |
11493 | fi | |
11494 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11495 | echo "$ac_t""yes" 1>&6 | |
11496 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
24f5e003 | 11497 | echo "configure:11498: checking for TIFFError in -ltiff" >&5 |
21d1c967 | 11498 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
11499 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
11500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11501 | else | |
11502 | ac_save_LIBS="$LIBS" | |
21d1c967 | 11503 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 11504 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 11505 | #line 11506 "configure" |
ab9b9eab VZ |
11506 | #include "confdefs.h" |
11507 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11508 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 11509 | builtin and then its argument prototype would still apply. */ |
21d1c967 | 11510 | char TIFFError(); |
698dcdb6 VZ |
11511 | |
11512 | int main() { | |
21d1c967 | 11513 | TIFFError() |
698dcdb6 VZ |
11514 | ; return 0; } |
11515 | EOF | |
24f5e003 | 11516 | if { (eval echo configure:11517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11517 | rm -rf conftest* |
11518 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11519 | else | |
11520 | echo "configure: failed program was:" >&5 | |
11521 | cat conftest.$ac_ext >&5 | |
11522 | rm -rf conftest* | |
11523 | eval "ac_cv_lib_$ac_lib_var=no" | |
11524 | fi | |
11525 | rm -f conftest* | |
11526 | LIBS="$ac_save_LIBS" | |
11527 | ||
11528 | fi | |
11529 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11530 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11531 | TIFF_LINK=" -ltiff" |
698dcdb6 VZ |
11532 | else |
11533 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11534 | fi |
11535 | ||
21d1c967 GD |
11536 | |
11537 | else | |
11538 | echo "$ac_t""no" 1>&6 | |
11539 | fi | |
cd6d6d5b | 11540 | |
c79a329d | 11541 | |
21d1c967 GD |
11542 | if test "x$TIFF_LINK" = "x" ; then |
11543 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
11544 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
90dd450c | 11545 | else |
21d1c967 GD |
11546 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
11547 | wxUSE_LIBTIFF=builtin | |
d8356fa3 | 11548 | fi |
d8356fa3 | 11549 | else |
21d1c967 | 11550 | wxUSE_LIBTIFF=sys |
d8356fa3 | 11551 | fi |
21d1c967 | 11552 | fi |
d8356fa3 | 11553 | |
21d1c967 GD |
11554 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
11555 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 11556 | fi |
21d1c967 | 11557 | fi |
10f2d63a | 11558 | |
90dd450c | 11559 | |
21d1c967 | 11560 | AFMINSTALL= |
90dd450c | 11561 | |
21d1c967 GD |
11562 | TOOLKIT= |
11563 | TOOLKIT_INCLUDE= | |
11564 | WIDGET_SET= | |
11565 | ||
11566 | if test "$USE_WIN32" = 1 ; then | |
11567 | for ac_hdr in w32api.h | |
11568 | do | |
11569 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11570 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24f5e003 | 11571 | echo "configure:11572: checking for $ac_hdr" >&5 |
21d1c967 | 11572 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
f79bd02d JS |
11573 | echo $ac_n "(cached) $ac_c" 1>&6 |
11574 | else | |
21d1c967 | 11575 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 11576 | #line 11577 "configure" |
f79bd02d | 11577 | #include "confdefs.h" |
21d1c967 | 11578 | #include <$ac_hdr> |
f79bd02d JS |
11579 | EOF |
11580 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24f5e003 | 11581 | { (eval echo configure:11582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f79bd02d JS |
11582 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11583 | if test -z "$ac_err"; then | |
11584 | rm -rf conftest* | |
21d1c967 | 11585 | eval "ac_cv_header_$ac_safe=yes" |
f79bd02d JS |
11586 | else |
11587 | echo "$ac_err" >&5 | |
11588 | echo "configure: failed program was:" >&5 | |
11589 | cat conftest.$ac_ext >&5 | |
11590 | rm -rf conftest* | |
21d1c967 | 11591 | eval "ac_cv_header_$ac_safe=no" |
f79bd02d JS |
11592 | fi |
11593 | rm -f conftest* | |
21d1c967 GD |
11594 | fi |
11595 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11596 | echo "$ac_t""yes" 1>&6 | |
11597 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11598 | cat >> confdefs.h <<EOF | |
11599 | #define $ac_tr_hdr 1 | |
11600 | EOF | |
11601 | ||
11602 | else | |
11603 | echo "$ac_t""no" 1>&6 | |
11604 | fi | |
11605 | done | |
f79bd02d | 11606 | |
21d1c967 GD |
11607 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
11608 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
24f5e003 | 11609 | echo "configure:11610: checking for windows.h" >&5 |
21d1c967 GD |
11610 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11611 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11612 | else | |
11613 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 11614 | #line 11615 "configure" |
90dd450c | 11615 | #include "confdefs.h" |
21d1c967 | 11616 | #include <windows.h> |
f79bd02d | 11617 | EOF |
21d1c967 | 11618 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 11619 | { (eval echo configure:11620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
11620 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11621 | if test -z "$ac_err"; then | |
90dd450c | 11622 | rm -rf conftest* |
21d1c967 | 11623 | eval "ac_cv_header_$ac_safe=yes" |
90dd450c | 11624 | else |
21d1c967 | 11625 | echo "$ac_err" >&5 |
90dd450c VZ |
11626 | echo "configure: failed program was:" >&5 |
11627 | cat conftest.$ac_ext >&5 | |
11628 | rm -rf conftest* | |
21d1c967 | 11629 | eval "ac_cv_header_$ac_safe=no" |
90dd450c VZ |
11630 | fi |
11631 | rm -f conftest* | |
90dd450c | 11632 | fi |
21d1c967 GD |
11633 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11634 | echo "$ac_t""yes" 1>&6 | |
11635 | : | |
90dd450c | 11636 | else |
21d1c967 GD |
11637 | echo "$ac_t""no" 1>&6 |
11638 | ||
11639 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
11640 | ||
90dd450c | 11641 | fi |
f79bd02d | 11642 | |
f79bd02d | 11643 | |
21d1c967 | 11644 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
24f5e003 | 11645 | echo "configure:11646: checking if w32api has good enough MSIE support" >&5 |
21d1c967 GD |
11646 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
11647 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 11648 | else |
21d1c967 | 11649 | |
f79bd02d | 11650 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 11651 | #line 11652 "configure" |
f79bd02d | 11652 | #include "confdefs.h" |
21d1c967 | 11653 | #include <w32api.h> |
f79bd02d JS |
11654 | int main() { |
11655 | ||
21d1c967 GD |
11656 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
11657 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
11658 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
11659 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
11660 | ||
11661 | #if !wxCHECK_W32API_VERSION(1,1) | |
11662 | #error You need w32api 1.1 or newer | |
11663 | #endif | |
11664 | ||
f79bd02d JS |
11665 | ; return 0; } |
11666 | EOF | |
24f5e003 | 11667 | if { (eval echo configure:11668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f79bd02d | 11668 | rm -rf conftest* |
21d1c967 GD |
11669 | |
11670 | wx_cv_w32api_win32_ie=yes | |
11671 | ||
f79bd02d JS |
11672 | else |
11673 | echo "configure: failed program was:" >&5 | |
11674 | cat conftest.$ac_ext >&5 | |
11675 | rm -rf conftest* | |
21d1c967 GD |
11676 | |
11677 | wx_cv_w32api_win32_ie=no | |
11678 | ||
f79bd02d JS |
11679 | fi |
11680 | rm -f conftest* | |
21d1c967 GD |
11681 | |
11682 | fi | |
f79bd02d | 11683 | |
21d1c967 GD |
11684 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
11685 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
11686 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
11687 | fi | |
f79bd02d | 11688 | |
21d1c967 GD |
11689 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
11690 | ||
11691 | case "${host}" in | |
11692 | *-*-cygwin* ) | |
11693 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
11694 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 11695 | esac |
f79bd02d | 11696 | |
21d1c967 GD |
11697 | if test "$wxUSE_ODBC" = "yes" ; then |
11698 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
11699 | fi | |
f79bd02d | 11700 | |
21d1c967 GD |
11701 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
11702 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
f79bd02d | 11703 | fi |
f79bd02d | 11704 | |
21d1c967 GD |
11705 | if test "$wxUSE_GUI" = "yes"; then |
11706 | USE_GUI=1 | |
f79bd02d | 11707 | |
21d1c967 | 11708 | GUI_TK_LIBRARY= |
f79bd02d | 11709 | |
21d1c967 GD |
11710 | WXGTK12= |
11711 | WXGTK127= | |
11712 | WXGTK20= | |
f79bd02d | 11713 | |
21d1c967 GD |
11714 | if test "$wxUSE_MSW" = 1 ; then |
11715 | TOOLKIT=MSW | |
11716 | GUIDIST=MSW_DIST | |
f79bd02d | 11717 | |
21d1c967 GD |
11718 | case "${host}" in |
11719 | *-*-mingw32* ) | |
11720 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
11721 | esac | |
f79bd02d JS |
11722 | fi |
11723 | ||
21d1c967 GD |
11724 | if test "$wxUSE_GTK" = 1; then |
11725 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
24f5e003 | 11726 | echo "configure:11727: checking for GTK+ version" >&5 |
21d1c967 GD |
11727 | |
11728 | gtk_version_cached=1 | |
11729 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
f79bd02d JS |
11730 | echo $ac_n "(cached) $ac_c" 1>&6 |
11731 | else | |
21d1c967 GD |
11732 | |
11733 | gtk_version_cached=0 | |
11734 | echo "$ac_t""" 1>&6 | |
f79bd02d | 11735 | |
21d1c967 GD |
11736 | GTK_MODULES= |
11737 | if test "$wxUSE_THREADS" = "yes"; then | |
11738 | GTK_MODULES=gthread | |
11739 | fi | |
f79bd02d | 11740 | |
21d1c967 GD |
11741 | wx_cv_lib_gtk= |
11742 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11743 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
11744 | if test "${enable_gtktest+set}" = set; then | |
11745 | enableval="$enable_gtktest" | |
f79bd02d JS |
11746 | : |
11747 | else | |
21d1c967 | 11748 | enable_gtktest=yes |
f79bd02d JS |
11749 | fi |
11750 | ||
f79bd02d | 11751 | |
21d1c967 GD |
11752 | pkg_config_args=gtk+-2.0 |
11753 | for module in . $GTK_MODULES | |
11754 | do | |
11755 | case "$module" in | |
11756 | gthread) | |
11757 | pkg_config_args="$pkg_config_args gthread-2.0" | |
11758 | ;; | |
11759 | esac | |
11760 | done | |
11761 | ||
11762 | no_gtk="" | |
f79bd02d | 11763 | |
21d1c967 GD |
11764 | # Extract the first word of "pkg-config", so it can be a program name with args. |
11765 | set dummy pkg-config; ac_word=$2 | |
11766 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24f5e003 | 11767 | echo "configure:11768: checking for $ac_word" >&5 |
21d1c967 GD |
11768 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
11769 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11770 | else | |
11771 | case "$PKG_CONFIG" in | |
11772 | /*) | |
11773 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11774 | ;; | |
11775 | ?:/*) | |
11776 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
11777 | ;; | |
11778 | *) | |
11779 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11780 | ac_dummy="$PATH" | |
11781 | for ac_dir in $ac_dummy; do | |
11782 | test -z "$ac_dir" && ac_dir=. | |
11783 | if test -f $ac_dir/$ac_word; then | |
11784 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
11785 | break | |
11786 | fi | |
11787 | done | |
11788 | IFS="$ac_save_ifs" | |
11789 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11790 | ;; | |
11791 | esac | |
f79bd02d | 11792 | fi |
21d1c967 GD |
11793 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
11794 | if test -n "$PKG_CONFIG"; then | |
11795 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
f79bd02d JS |
11796 | else |
11797 | echo "$ac_t""no" 1>&6 | |
11798 | fi | |
11799 | ||
f79bd02d | 11800 | |
21d1c967 GD |
11801 | if test x$PKG_CONFIG != xno ; then |
11802 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
11803 | : | |
11804 | else | |
11805 | echo *** pkg-config too old; version 0.7 or better required. | |
11806 | no_gtk=yes | |
11807 | PKG_CONFIG=no | |
11808 | fi | |
11809 | else | |
11810 | no_gtk=yes | |
11811 | fi | |
f79bd02d | 11812 | |
21d1c967 GD |
11813 | min_gtk_version=2.0.0 |
11814 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 | |
24f5e003 | 11815 | echo "configure:11816: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 11816 | |
21d1c967 GD |
11817 | if test x$PKG_CONFIG != xno ; then |
11818 | ## don't try to run the test against uninstalled libtool libs | |
11819 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
11820 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
11821 | enable_gtktest=no | |
11822 | fi | |
f79bd02d | 11823 | |
21d1c967 GD |
11824 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
11825 | : | |
11826 | else | |
11827 | no_gtk=yes | |
11828 | fi | |
11829 | fi | |
f79bd02d | 11830 | |
21d1c967 GD |
11831 | if test x"$no_gtk" = x ; then |
11832 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
11833 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
11834 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11835 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11836 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11837 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11838 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11839 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11840 | if test "x$enable_gtktest" = "xyes" ; then | |
11841 | ac_save_CFLAGS="$CFLAGS" | |
11842 | ac_save_LIBS="$LIBS" | |
11843 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11844 | LIBS="$GTK_LIBS $LIBS" | |
11845 | rm -f conf.gtktest | |
11846 | if test "$cross_compiling" = yes; then | |
11847 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 11848 | else |
21d1c967 | 11849 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 11850 | #line 11851 "configure" |
f79bd02d | 11851 | #include "confdefs.h" |
f79bd02d | 11852 | |
21d1c967 GD |
11853 | #include <gtk/gtk.h> |
11854 | #include <stdio.h> | |
11855 | #include <stdlib.h> | |
f79bd02d | 11856 | |
21d1c967 GD |
11857 | int |
11858 | main () | |
11859 | { | |
11860 | int major, minor, micro; | |
11861 | char *tmp_version; | |
f79bd02d | 11862 | |
21d1c967 | 11863 | system ("touch conf.gtktest"); |
f79bd02d | 11864 | |
21d1c967 GD |
11865 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11866 | tmp_version = g_strdup("$min_gtk_version"); | |
11867 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11868 | printf("%s, bad version string\n", "$min_gtk_version"); | |
11869 | exit(1); | |
11870 | } | |
f79bd02d | 11871 | |
21d1c967 GD |
11872 | if ((gtk_major_version != $gtk_config_major_version) || |
11873 | (gtk_minor_version != $gtk_config_minor_version) || | |
11874 | (gtk_micro_version != $gtk_config_micro_version)) | |
11875 | { | |
11876 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11877 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11878 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11879 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
11880 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11881 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11882 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11883 | printf("*** required on your system.\n"); | |
11884 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
11885 | printf("*** to point to the correct configuration files\n"); | |
11886 | } | |
11887 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11888 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11889 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11890 | { | |
11891 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11892 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11893 | printf("*** library (version %d.%d.%d)\n", | |
11894 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11895 | } | |
11896 | else | |
11897 | { | |
11898 | if ((gtk_major_version > major) || | |
11899 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11900 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11901 | { | |
11902 | return 0; | |
11903 | } | |
11904 | else | |
11905 | { | |
11906 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11907 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11908 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11909 | major, minor, micro); | |
11910 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11911 | printf("***\n"); | |
11912 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11913 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
11914 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11915 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
11916 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
11917 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11918 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11919 | } | |
11920 | } | |
11921 | return 1; | |
11922 | } | |
f79bd02d | 11923 | |
f79bd02d | 11924 | EOF |
24f5e003 | 11925 | if { (eval echo configure:11926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
11926 | then |
11927 | : | |
f79bd02d JS |
11928 | else |
11929 | echo "configure: failed program was:" >&5 | |
11930 | cat conftest.$ac_ext >&5 | |
21d1c967 GD |
11931 | rm -fr conftest* |
11932 | no_gtk=yes | |
f79bd02d | 11933 | fi |
21d1c967 | 11934 | rm -fr conftest* |
f79bd02d JS |
11935 | fi |
11936 | ||
21d1c967 GD |
11937 | CFLAGS="$ac_save_CFLAGS" |
11938 | LIBS="$ac_save_LIBS" | |
11939 | fi | |
11940 | fi | |
11941 | if test "x$no_gtk" = x ; then | |
11942 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 | |
11943 | wx_cv_lib_gtk=2.0 | |
11944 | else | |
11945 | echo "$ac_t""no" 1>&6 | |
11946 | if test "$PKG_CONFIG" = "no" ; then | |
11947 | echo "*** A new enough version of pkg-config was not found." | |
11948 | echo "*** See http://pkgconfig.sourceforge.net" | |
11949 | else | |
11950 | if test -f conf.gtktest ; then | |
11951 | : | |
11952 | else | |
11953 | echo "*** Could not run GTK+ test program, checking why..." | |
11954 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11955 | LIBS="$LIBS $GTK_LIBS" | |
11956 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 11957 | #line 11958 "configure" |
f79bd02d | 11958 | #include "confdefs.h" |
21d1c967 GD |
11959 | |
11960 | #include <gtk/gtk.h> | |
11961 | #include <stdio.h> | |
f79bd02d JS |
11962 | |
11963 | int main() { | |
21d1c967 | 11964 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
f79bd02d JS |
11965 | ; return 0; } |
11966 | EOF | |
24f5e003 | 11967 | if { (eval echo configure:11968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 11968 | rm -rf conftest* |
21d1c967 GD |
11969 | echo "*** The test program compiled, but did not run. This usually means" |
11970 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
11971 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
11972 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11973 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11974 | echo "*** is required on your system" | |
11975 | echo "***" | |
11976 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11977 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
f79bd02d JS |
11978 | else |
11979 | echo "configure: failed program was:" >&5 | |
11980 | cat conftest.$ac_ext >&5 | |
11981 | rm -rf conftest* | |
21d1c967 GD |
11982 | echo "*** The test program failed to compile or link. See the file config.log for the" |
11983 | echo "*** exact error that occured. This usually means GTK+ was incorrectly installed" | |
11984 | echo "*** or that you have moved GTK+ since it was installed. In the latter case, you" | |
11985 | echo "*** may want to edit the pkg-config script: $PKG_CONFIG" | |
f79bd02d JS |
11986 | fi |
11987 | rm -f conftest* | |
21d1c967 GD |
11988 | CFLAGS="$ac_save_CFLAGS" |
11989 | LIBS="$ac_save_LIBS" | |
11990 | fi | |
11991 | fi | |
11992 | GTK_CFLAGS="" | |
11993 | GTK_LIBS="" | |
11994 | : | |
11995 | fi | |
11996 | ||
11997 | ||
11998 | rm -f conf.gtktest | |
f79bd02d | 11999 | |
21d1c967 | 12000 | fi |
f79bd02d | 12001 | |
21d1c967 GD |
12002 | if test -z "$wx_cv_lib_gtk"; then |
12003 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
12004 | if test "${with_gtk_prefix+set}" = set; then | |
12005 | withval="$with_gtk_prefix" | |
12006 | gtk_config_prefix="$withval" | |
12007 | else | |
12008 | gtk_config_prefix="" | |
12009 | fi | |
f79bd02d | 12010 | |
21d1c967 GD |
12011 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12012 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12013 | withval="$with_gtk_exec_prefix" | |
12014 | gtk_config_exec_prefix="$withval" | |
12015 | else | |
12016 | gtk_config_exec_prefix="" | |
12017 | fi | |
12018 | ||
12019 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12020 | if test "${enable_gtktest+set}" = set; then | |
12021 | enableval="$enable_gtktest" | |
12022 | : | |
12023 | else | |
12024 | enable_gtktest=yes | |
12025 | fi | |
12026 | ||
12027 | ||
12028 | for module in . $GTK_MODULES | |
12029 | do | |
12030 | case "$module" in | |
12031 | gthread) | |
12032 | gtk_config_args="$gtk_config_args gthread" | |
12033 | ;; | |
12034 | esac | |
12035 | done | |
12036 | ||
12037 | if test x$gtk_config_exec_prefix != x ; then | |
12038 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12039 | if test x${GTK_CONFIG+set} != xset ; then | |
12040 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12041 | fi | |
12042 | fi | |
12043 | if test x$gtk_config_prefix != x ; then | |
12044 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12045 | if test x${GTK_CONFIG+set} != xset ; then | |
12046 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12047 | fi | |
12048 | fi | |
12049 | ||
12050 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12051 | set dummy gtk-config; ac_word=$2 | |
12052 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24f5e003 | 12053 | echo "configure:12054: checking for $ac_word" >&5 |
21d1c967 | 12054 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
f79bd02d | 12055 | echo $ac_n "(cached) $ac_c" 1>&6 |
21d1c967 GD |
12056 | else |
12057 | case "$GTK_CONFIG" in | |
12058 | /*) | |
12059 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
12060 | ;; | |
12061 | ?:/*) | |
12062 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12063 | ;; | |
12064 | *) | |
12065 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12066 | ac_dummy="$PATH" | |
12067 | for ac_dir in $ac_dummy; do | |
12068 | test -z "$ac_dir" && ac_dir=. | |
12069 | if test -f $ac_dir/$ac_word; then | |
12070 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12071 | break | |
12072 | fi | |
12073 | done | |
12074 | IFS="$ac_save_ifs" | |
12075 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
12076 | ;; | |
12077 | esac | |
12078 | fi | |
12079 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
12080 | if test -n "$GTK_CONFIG"; then | |
12081 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
12082 | else | |
12083 | echo "$ac_t""no" 1>&6 | |
12084 | fi | |
12085 | ||
12086 | min_gtk_version=1.2.7 | |
12087 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
24f5e003 | 12088 | echo "configure:12089: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12089 | no_gtk="" |
12090 | if test "$GTK_CONFIG" = "no" ; then | |
12091 | no_gtk=yes | |
12092 | else | |
12093 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12094 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12095 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12096 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12097 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12098 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12099 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12100 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12101 | if test "x$enable_gtktest" = "xyes" ; then | |
12102 | ac_save_CFLAGS="$CFLAGS" | |
12103 | ac_save_LIBS="$LIBS" | |
12104 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12105 | LIBS="$GTK_LIBS $LIBS" | |
12106 | rm -f conf.gtktest | |
12107 | if test "$cross_compiling" = yes; then | |
12108 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12109 | else |
90dd450c | 12110 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 12111 | #line 12112 "configure" |
f79bd02d JS |
12112 | #include "confdefs.h" |
12113 | ||
21d1c967 GD |
12114 | #include <gtk/gtk.h> |
12115 | #include <stdio.h> | |
12116 | #include <stdlib.h> | |
f79bd02d | 12117 | |
21d1c967 GD |
12118 | int |
12119 | main () | |
12120 | { | |
12121 | int major, minor, micro; | |
12122 | char *tmp_version; | |
12123 | ||
12124 | system ("touch conf.gtktest"); | |
12125 | ||
12126 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12127 | tmp_version = g_strdup("$min_gtk_version"); | |
12128 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12129 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12130 | exit(1); | |
12131 | } | |
90dd450c | 12132 | |
21d1c967 GD |
12133 | if ((gtk_major_version != $gtk_config_major_version) || |
12134 | (gtk_minor_version != $gtk_config_minor_version) || | |
12135 | (gtk_micro_version != $gtk_config_micro_version)) | |
12136 | { | |
12137 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
12138 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
12139 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12140 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12141 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12142 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12143 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12144 | printf("*** required on your system.\n"); | |
12145 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12146 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12147 | printf("*** before re-running configure\n"); | |
12148 | } | |
12149 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
12150 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12151 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12152 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12153 | { | |
12154 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12155 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12156 | printf("*** library (version %d.%d.%d)\n", | |
12157 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12158 | } | |
12159 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12160 | else | |
12161 | { | |
12162 | if ((gtk_major_version > major) || | |
12163 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12164 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12165 | { | |
12166 | return 0; | |
12167 | } | |
12168 | else | |
12169 | { | |
12170 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12171 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12172 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12173 | major, minor, micro); | |
12174 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12175 | printf("***\n"); | |
12176 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12177 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12178 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12179 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12180 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12181 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12182 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12183 | } | |
12184 | } | |
12185 | return 1; | |
12186 | } | |
12187 | ||
12188 | EOF | |
24f5e003 | 12189 | if { (eval echo configure:12190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
12190 | then |
12191 | : | |
12192 | else | |
12193 | echo "configure: failed program was:" >&5 | |
12194 | cat conftest.$ac_ext >&5 | |
12195 | rm -fr conftest* | |
12196 | no_gtk=yes | |
12197 | fi | |
12198 | rm -fr conftest* | |
12199 | fi | |
12200 | ||
12201 | CFLAGS="$ac_save_CFLAGS" | |
12202 | LIBS="$ac_save_LIBS" | |
12203 | fi | |
12204 | fi | |
12205 | if test "x$no_gtk" = x ; then | |
12206 | echo "$ac_t""yes" 1>&6 | |
12207 | wx_cv_lib_gtk=1.2.7 | |
12208 | else | |
12209 | echo "$ac_t""no" 1>&6 | |
12210 | if test "$GTK_CONFIG" = "no" ; then | |
12211 | echo "*** The gtk-config script installed by GTK could not be found" | |
12212 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12213 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12214 | echo "*** full path to gtk-config." | |
12215 | else | |
12216 | if test -f conf.gtktest ; then | |
12217 | : | |
12218 | else | |
12219 | echo "*** Could not run GTK test program, checking why..." | |
12220 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12221 | LIBS="$LIBS $GTK_LIBS" | |
12222 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 12223 | #line 12224 "configure" |
21d1c967 GD |
12224 | #include "confdefs.h" |
12225 | ||
12226 | #include <gtk/gtk.h> | |
12227 | #include <stdio.h> | |
12228 | ||
12229 | int main() { | |
12230 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
f79bd02d JS |
12231 | ; return 0; } |
12232 | EOF | |
24f5e003 | 12233 | if { (eval echo configure:12234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 12234 | rm -rf conftest* |
21d1c967 GD |
12235 | echo "*** The test program compiled, but did not run. This usually means" |
12236 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12237 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12238 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12239 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12240 | echo "*** is required on your system" | |
12241 | echo "***" | |
12242 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12243 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12244 | echo "***" | |
12245 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12246 | echo "*** came with the system with the command" | |
12247 | echo "***" | |
12248 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
f79bd02d JS |
12249 | else |
12250 | echo "configure: failed program was:" >&5 | |
12251 | cat conftest.$ac_ext >&5 | |
12252 | rm -rf conftest* | |
21d1c967 GD |
12253 | echo "*** The test program failed to compile or link. See the file config.log for the" |
12254 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
12255 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
12256 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
f79bd02d JS |
12257 | fi |
12258 | rm -f conftest* | |
21d1c967 GD |
12259 | CFLAGS="$ac_save_CFLAGS" |
12260 | LIBS="$ac_save_LIBS" | |
12261 | fi | |
12262 | fi | |
12263 | GTK_CFLAGS="" | |
12264 | GTK_LIBS="" | |
12265 | : | |
12266 | fi | |
12267 | ||
12268 | ||
12269 | rm -f conf.gtktest | |
12270 | ||
12271 | fi | |
12272 | ||
12273 | if test -z "$wx_cv_lib_gtk"; then | |
12274 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
12275 | if test "${with_gtk_prefix+set}" = set; then | |
12276 | withval="$with_gtk_prefix" | |
12277 | gtk_config_prefix="$withval" | |
12278 | else | |
12279 | gtk_config_prefix="" | |
90dd450c | 12280 | fi |
f79bd02d | 12281 | |
21d1c967 GD |
12282 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12283 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12284 | withval="$with_gtk_exec_prefix" | |
12285 | gtk_config_exec_prefix="$withval" | |
12286 | else | |
12287 | gtk_config_exec_prefix="" | |
12288 | fi | |
12289 | ||
12290 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12291 | if test "${enable_gtktest+set}" = set; then | |
12292 | enableval="$enable_gtktest" | |
90dd450c VZ |
12293 | : |
12294 | else | |
21d1c967 | 12295 | enable_gtktest=yes |
90dd450c | 12296 | fi |
f79bd02d | 12297 | |
21d1c967 GD |
12298 | |
12299 | for module in . $GTK_MODULES | |
12300 | do | |
12301 | case "$module" in | |
12302 | gthread) | |
12303 | gtk_config_args="$gtk_config_args gthread" | |
12304 | ;; | |
12305 | esac | |
12306 | done | |
12307 | ||
12308 | if test x$gtk_config_exec_prefix != x ; then | |
12309 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12310 | if test x${GTK_CONFIG+set} != xset ; then | |
12311 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12312 | fi | |
12313 | fi | |
12314 | if test x$gtk_config_prefix != x ; then | |
12315 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12316 | if test x${GTK_CONFIG+set} != xset ; then | |
12317 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12318 | fi | |
12319 | fi | |
12320 | ||
12321 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12322 | set dummy gtk-config; ac_word=$2 | |
12323 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24f5e003 | 12324 | echo "configure:12325: checking for $ac_word" >&5 |
21d1c967 | 12325 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
90dd450c VZ |
12326 | echo $ac_n "(cached) $ac_c" 1>&6 |
12327 | else | |
21d1c967 GD |
12328 | case "$GTK_CONFIG" in |
12329 | /*) | |
12330 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
12331 | ;; | |
12332 | ?:/*) | |
12333 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12334 | ;; | |
12335 | *) | |
12336 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12337 | ac_dummy="$PATH" | |
12338 | for ac_dir in $ac_dummy; do | |
12339 | test -z "$ac_dir" && ac_dir=. | |
12340 | if test -f $ac_dir/$ac_word; then | |
12341 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12342 | break | |
12343 | fi | |
12344 | done | |
12345 | IFS="$ac_save_ifs" | |
12346 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
12347 | ;; | |
12348 | esac | |
12349 | fi | |
12350 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
12351 | if test -n "$GTK_CONFIG"; then | |
12352 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
12353 | else | |
12354 | echo "$ac_t""no" 1>&6 | |
12355 | fi | |
12356 | ||
12357 | min_gtk_version=1.2.3 | |
12358 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
24f5e003 | 12359 | echo "configure:12360: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12360 | no_gtk="" |
12361 | if test "$GTK_CONFIG" = "no" ; then | |
12362 | no_gtk=yes | |
12363 | else | |
12364 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12365 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12366 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12367 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12368 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12369 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12370 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12371 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12372 | if test "x$enable_gtktest" = "xyes" ; then | |
12373 | ac_save_CFLAGS="$CFLAGS" | |
12374 | ac_save_LIBS="$LIBS" | |
12375 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12376 | LIBS="$GTK_LIBS $LIBS" | |
12377 | rm -f conf.gtktest | |
12378 | if test "$cross_compiling" = yes; then | |
12379 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12380 | else | |
12381 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 12382 | #line 12383 "configure" |
f79bd02d | 12383 | #include "confdefs.h" |
21d1c967 GD |
12384 | |
12385 | #include <gtk/gtk.h> | |
12386 | #include <stdio.h> | |
12387 | #include <stdlib.h> | |
12388 | ||
12389 | int | |
12390 | main () | |
12391 | { | |
12392 | int major, minor, micro; | |
12393 | char *tmp_version; | |
12394 | ||
12395 | system ("touch conf.gtktest"); | |
12396 | ||
12397 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12398 | tmp_version = g_strdup("$min_gtk_version"); | |
12399 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12400 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12401 | exit(1); | |
12402 | } | |
12403 | ||
12404 | if ((gtk_major_version != $gtk_config_major_version) || | |
12405 | (gtk_minor_version != $gtk_config_minor_version) || | |
12406 | (gtk_micro_version != $gtk_config_micro_version)) | |
12407 | { | |
12408 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
12409 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
12410 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12411 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12412 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12413 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12414 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12415 | printf("*** required on your system.\n"); | |
12416 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12417 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12418 | printf("*** before re-running configure\n"); | |
12419 | } | |
12420 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
12421 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12422 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12423 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12424 | { | |
12425 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12426 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12427 | printf("*** library (version %d.%d.%d)\n", | |
12428 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12429 | } | |
12430 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12431 | else | |
12432 | { | |
12433 | if ((gtk_major_version > major) || | |
12434 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12435 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12436 | { | |
12437 | return 0; | |
12438 | } | |
12439 | else | |
12440 | { | |
12441 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12442 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12443 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12444 | major, minor, micro); | |
12445 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12446 | printf("***\n"); | |
12447 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12448 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12449 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12450 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12451 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12452 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12453 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12454 | } | |
12455 | } | |
12456 | return 1; | |
12457 | } | |
12458 | ||
12459 | EOF | |
24f5e003 | 12460 | if { (eval echo configure:12461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
21d1c967 GD |
12461 | then |
12462 | : | |
12463 | else | |
12464 | echo "configure: failed program was:" >&5 | |
12465 | cat conftest.$ac_ext >&5 | |
12466 | rm -fr conftest* | |
12467 | no_gtk=yes | |
12468 | fi | |
12469 | rm -fr conftest* | |
12470 | fi | |
12471 | ||
12472 | CFLAGS="$ac_save_CFLAGS" | |
12473 | LIBS="$ac_save_LIBS" | |
12474 | fi | |
12475 | fi | |
12476 | if test "x$no_gtk" = x ; then | |
12477 | echo "$ac_t""yes" 1>&6 | |
12478 | wx_cv_lib_gtk=1.2.3 | |
12479 | else | |
12480 | echo "$ac_t""no" 1>&6 | |
12481 | if test "$GTK_CONFIG" = "no" ; then | |
12482 | echo "*** The gtk-config script installed by GTK could not be found" | |
12483 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12484 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12485 | echo "*** full path to gtk-config." | |
12486 | else | |
12487 | if test -f conf.gtktest ; then | |
12488 | : | |
12489 | else | |
12490 | echo "*** Could not run GTK test program, checking why..." | |
12491 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12492 | LIBS="$LIBS $GTK_LIBS" | |
12493 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 12494 | #line 12495 "configure" |
21d1c967 GD |
12495 | #include "confdefs.h" |
12496 | ||
12497 | #include <gtk/gtk.h> | |
12498 | #include <stdio.h> | |
f79bd02d | 12499 | |
f79bd02d | 12500 | int main() { |
21d1c967 | 12501 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
f79bd02d JS |
12502 | ; return 0; } |
12503 | EOF | |
24f5e003 | 12504 | if { (eval echo configure:12505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f79bd02d | 12505 | rm -rf conftest* |
21d1c967 GD |
12506 | echo "*** The test program compiled, but did not run. This usually means" |
12507 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12508 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12509 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12510 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12511 | echo "*** is required on your system" | |
12512 | echo "***" | |
12513 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12514 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12515 | echo "***" | |
12516 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12517 | echo "*** came with the system with the command" | |
12518 | echo "***" | |
12519 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
f79bd02d JS |
12520 | else |
12521 | echo "configure: failed program was:" >&5 | |
12522 | cat conftest.$ac_ext >&5 | |
12523 | rm -rf conftest* | |
21d1c967 GD |
12524 | echo "*** The test program failed to compile or link. See the file config.log for the" |
12525 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
12526 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
12527 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
f79bd02d JS |
12528 | fi |
12529 | rm -f conftest* | |
21d1c967 GD |
12530 | CFLAGS="$ac_save_CFLAGS" |
12531 | LIBS="$ac_save_LIBS" | |
12532 | fi | |
12533 | fi | |
12534 | GTK_CFLAGS="" | |
12535 | GTK_LIBS="" | |
12536 | : | |
12537 | fi | |
12538 | ||
12539 | ||
12540 | rm -f conf.gtktest | |
f79bd02d | 12541 | |
21d1c967 GD |
12542 | fi |
12543 | ||
12544 | if test -z "$wx_cv_lib_gtk"; then | |
12545 | wx_cv_lib_gtk=none | |
12546 | else | |
12547 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
12548 | wx_cv_libs_gtk=$GTK_LIBS | |
12549 | fi | |
12550 | ||
12551 | ||
90dd450c | 12552 | fi |
b4085ce6 | 12553 | |
e07802fc | 12554 | |
21d1c967 GD |
12555 | if test "$gtk_version_cached" = 1; then |
12556 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
12557 | fi | |
12558 | ||
12559 | case "$wx_cv_lib_gtk" in | |
12560 | 2.0) WXGTK20=1 | |
12561 | ;; | |
12562 | 1.2.7) WXGTK127=1 | |
12563 | WXGTK12=1 | |
12564 | ;; | |
12565 | 1.2.3) WXGTK12=1 | |
12566 | ;; | |
12567 | *) { echo "configure: error: | |
12568 | Please check that gtk-config is in path, the directory | |
12569 | where GTK+ libraries are installed (returned by | |
12570 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
12571 | equivalent variable and GTK+ is version 1.2.3 or above. | |
12572 | " 1>&2; exit 1; } | |
12573 | ;; | |
12574 | esac | |
12575 | ||
12576 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
12577 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
12578 | ||
12579 | AFMINSTALL=afminstall | |
12580 | TOOLKIT=GTK | |
12581 | GUIDIST=GTK_DIST | |
12582 | ||
12583 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 | |
24f5e003 | 12584 | echo "configure:12585: checking for gdk_im_open in -lgdk" >&5 |
21d1c967 | 12585 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
90dd450c VZ |
12586 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12587 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12588 | else | |
12589 | ac_save_LIBS="$LIBS" | |
21d1c967 | 12590 | LIBS="-lgdk $LIBS" |
90dd450c | 12591 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 12592 | #line 12593 "configure" |
90dd450c VZ |
12593 | #include "confdefs.h" |
12594 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12595 | /* We use char because int might match the return type of a gcc2 | |
12596 | builtin and then its argument prototype would still apply. */ | |
21d1c967 | 12597 | char gdk_im_open(); |
9b695262 | 12598 | |
90dd450c | 12599 | int main() { |
21d1c967 | 12600 | gdk_im_open() |
90dd450c VZ |
12601 | ; return 0; } |
12602 | EOF | |
24f5e003 | 12603 | if { (eval echo configure:12604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12604 | rm -rf conftest* |
12605 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12606 | else | |
12607 | echo "configure: failed program was:" >&5 | |
12608 | cat conftest.$ac_ext >&5 | |
12609 | rm -rf conftest* | |
12610 | eval "ac_cv_lib_$ac_lib_var=no" | |
12611 | fi | |
12612 | rm -f conftest* | |
12613 | LIBS="$ac_save_LIBS" | |
9b695262 | 12614 | |
90dd450c VZ |
12615 | fi |
12616 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12617 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
12618 | cat >> confdefs.h <<\EOF |
12619 | #define HAVE_XIM 1 | |
12620 | EOF | |
12621 | ||
90dd450c VZ |
12622 | else |
12623 | echo "$ac_t""no" 1>&6 | |
12624 | fi | |
1e6feb95 | 12625 | |
21d1c967 | 12626 | fi |
1e6feb95 | 12627 | |
21d1c967 GD |
12628 | if test "$wxUSE_MGL" = 1; then |
12629 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
24f5e003 | 12630 | echo "configure:12631: checking for SciTech MGL library" >&5 |
21d1c967 GD |
12631 | if test "x$MGL_ROOT" = x ; then |
12632 | echo "$ac_t""not found" 1>&6 | |
12633 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
12634 | else | |
12635 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
12636 | fi | |
12637 | ||
12638 | case "${host}" in | |
12639 | *-*-linux* ) | |
12640 | mgl_os=linux/gcc/glibc | |
12641 | ;; | |
12642 | *-pc-msdosdjgpp ) | |
12643 | mgl_os=dos32/dj2 | |
12644 | ;; | |
12645 | *) | |
12646 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
12647 | esac | |
1e6feb95 | 12648 | |
21d1c967 | 12649 | mgl_lib_type="" |
3fcdd07b | 12650 | |
21d1c967 GD |
12651 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
12652 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
12653 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
12654 | mgl_lib_type=debug | |
12655 | fi | |
12656 | fi | |
12657 | if test "x$mgl_lib_type" = x ; then | |
12658 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
12659 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
12660 | mgl_lib_type=release | |
12661 | else | |
12662 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
12663 | fi | |
90dd450c | 12664 | fi |
2224580a | 12665 | |
1d1b75ac VZ |
12666 | wxUSE_UNIVERSAL="yes" |
12667 | ||
21d1c967 GD |
12668 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
12669 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
12670 | ||
90dd450c | 12671 | AFMINSTALL=afminstall |
21d1c967 GD |
12672 | TOOLKIT=MGL |
12673 | GUIDIST=MGL_DIST | |
12674 | fi | |
dad6c0ea | 12675 | |
21d1c967 GD |
12676 | if test "$wxUSE_MICROWIN" = 1; then |
12677 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
24f5e003 | 12678 | echo "configure:12679: checking for MicroWindows" >&5 |
21d1c967 GD |
12679 | if test "x$MICROWINDOWS" = x ; then |
12680 | echo "$ac_t""not found" 1>&6 | |
12681 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
12682 | else | |
12683 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
12684 | fi | |
f6bcfd97 | 12685 | |
21d1c967 GD |
12686 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
12687 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
12688 | else | |
12689 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
90dd450c | 12690 | fi |
0b2effe9 | 12691 | |
21d1c967 GD |
12692 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
12693 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
12694 | ||
1d1b75ac VZ |
12695 | wxUSE_UNIVERSAL="yes" |
12696 | ||
21d1c967 GD |
12697 | AFMINSTALL=afminstall |
12698 | TOOLKIT=MICROWIN | |
12699 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
12700 | |
12701 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 12702 | fi |
f6bcfd97 | 12703 | |
21d1c967 GD |
12704 | if test "$wxUSE_X11" = 1; then |
12705 | # If we find X, set shell vars x_includes and x_libraries to the | |
12706 | # paths, otherwise set no_x=yes. | |
12707 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
12708 | # --without-x overrides everything else, but does not touch the cache. | |
12709 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
24f5e003 | 12710 | echo "configure:12711: checking for X" >&5 |
d8356fa3 | 12711 | |
21d1c967 GD |
12712 | # Check whether --with-x or --without-x was given. |
12713 | if test "${with_x+set}" = set; then | |
12714 | withval="$with_x" | |
12715 | : | |
12716 | fi | |
2224580a | 12717 | |
21d1c967 GD |
12718 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
12719 | if test "x$with_x" = xno; then | |
12720 | # The user explicitly disabled X. | |
12721 | have_x=disabled | |
12722 | else | |
12723 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
12724 | # Both variables are already set. | |
12725 | have_x=yes | |
12726 | else | |
12727 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
12728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12729 | else | |
12730 | # One or both of the vars are not set, and there is no cached value. | |
12731 | ac_x_includes=NO ac_x_libraries=NO | |
12732 | rm -fr conftestdir | |
12733 | if mkdir conftestdir; then | |
12734 | cd conftestdir | |
12735 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
12736 | cat > Imakefile <<'EOF' | |
12737 | acfindx: | |
12738 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
12739 | EOF | |
12740 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
12741 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12742 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
12743 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
12744 | for ac_extension in a so sl; do | |
12745 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
12746 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
12747 | ac_im_usrlibdir=$ac_im_libdir; break | |
12748 | fi | |
12749 | done | |
12750 | # Screen out bogus values from the imake configuration. They are | |
12751 | # bogus both because they are the default anyway, and because | |
12752 | # using them would break gcc on systems where it needs fixed includes. | |
12753 | case "$ac_im_incroot" in | |
12754 | /usr/include) ;; | |
12755 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
12756 | esac | |
12757 | case "$ac_im_usrlibdir" in | |
12758 | /usr/lib | /lib) ;; | |
12759 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
12760 | esac | |
12761 | fi | |
12762 | cd .. | |
12763 | rm -fr conftestdir | |
12764 | fi | |
10f2d63a | 12765 | |
21d1c967 GD |
12766 | if test "$ac_x_includes" = NO; then |
12767 | # Guess where to find include files, by looking for this one X11 .h file. | |
12768 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
e45387bf | 12769 | |
21d1c967 GD |
12770 | # First, try using that file with no special directory specified. |
12771 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 12772 | #line 12773 "configure" |
21d1c967 GD |
12773 | #include "confdefs.h" |
12774 | #include <$x_direct_test_include> | |
90dd450c | 12775 | EOF |
21d1c967 | 12776 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 12777 | { (eval echo configure:12778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
21d1c967 GD |
12778 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12779 | if test -z "$ac_err"; then | |
90dd450c | 12780 | rm -rf conftest* |
21d1c967 GD |
12781 | # We can compile using X headers with no special include directory. |
12782 | ac_x_includes= | |
90dd450c | 12783 | else |
21d1c967 | 12784 | echo "$ac_err" >&5 |
90dd450c VZ |
12785 | echo "configure: failed program was:" >&5 |
12786 | cat conftest.$ac_ext >&5 | |
12787 | rm -rf conftest* | |
21d1c967 GD |
12788 | # Look for the header file in a standard set of common directories. |
12789 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12790 | for ac_dir in \ | |
12791 | /usr/X11/include \ | |
12792 | /usr/X11R6/include \ | |
12793 | /usr/X11R5/include \ | |
12794 | /usr/X11R4/include \ | |
12795 | \ | |
12796 | /usr/include/X11 \ | |
12797 | /usr/include/X11R6 \ | |
12798 | /usr/include/X11R5 \ | |
12799 | /usr/include/X11R4 \ | |
12800 | \ | |
12801 | /usr/local/X11/include \ | |
12802 | /usr/local/X11R6/include \ | |
12803 | /usr/local/X11R5/include \ | |
12804 | /usr/local/X11R4/include \ | |
12805 | \ | |
12806 | /usr/local/include/X11 \ | |
12807 | /usr/local/include/X11R6 \ | |
12808 | /usr/local/include/X11R5 \ | |
12809 | /usr/local/include/X11R4 \ | |
12810 | \ | |
12811 | /usr/X386/include \ | |
12812 | /usr/x386/include \ | |
12813 | /usr/XFree86/include/X11 \ | |
12814 | \ | |
12815 | /usr/include \ | |
12816 | /usr/local/include \ | |
12817 | /usr/unsupported/include \ | |
12818 | /usr/athena/include \ | |
12819 | /usr/local/x11r5/include \ | |
12820 | /usr/lpp/Xamples/include \ | |
12821 | \ | |
12822 | /usr/openwin/include \ | |
12823 | /usr/openwin/share/include \ | |
12824 | ; \ | |
12825 | do | |
12826 | if test -r "$ac_dir/$x_direct_test_include"; then | |
12827 | ac_x_includes=$ac_dir | |
12828 | break | |
12829 | fi | |
12830 | done | |
3a922bb4 | 12831 | fi |
90dd450c | 12832 | rm -f conftest* |
21d1c967 | 12833 | fi # $ac_x_includes = NO |
10f2d63a | 12834 | |
21d1c967 GD |
12835 | if test "$ac_x_libraries" = NO; then |
12836 | # Check for the libraries. | |
be505a65 | 12837 | |
21d1c967 GD |
12838 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
12839 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
90dd450c | 12840 | |
21d1c967 GD |
12841 | # See if we find them without any special options. |
12842 | # Don't add to $LIBS permanently. | |
12843 | ac_save_LIBS="$LIBS" | |
12844 | LIBS="-l$x_direct_test_library $LIBS" | |
12845 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 12846 | #line 12847 "configure" |
3a922bb4 | 12847 | #include "confdefs.h" |
21d1c967 GD |
12848 | |
12849 | int main() { | |
12850 | ${x_direct_test_function}() | |
12851 | ; return 0; } | |
3a922bb4 | 12852 | EOF |
24f5e003 | 12853 | if { (eval echo configure:12854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 12854 | rm -rf conftest* |
21d1c967 GD |
12855 | LIBS="$ac_save_LIBS" |
12856 | # We can link X programs with no special library path. | |
12857 | ac_x_libraries= | |
3a922bb4 | 12858 | else |
3a922bb4 RL |
12859 | echo "configure: failed program was:" >&5 |
12860 | cat conftest.$ac_ext >&5 | |
12861 | rm -rf conftest* | |
21d1c967 GD |
12862 | LIBS="$ac_save_LIBS" |
12863 | # First see if replacing the include by lib works. | |
12864 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12865 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
12866 | /usr/X11/lib \ | |
12867 | /usr/X11R6/lib \ | |
12868 | /usr/X11R5/lib \ | |
12869 | /usr/X11R4/lib \ | |
12870 | \ | |
12871 | /usr/lib/X11 \ | |
12872 | /usr/lib/X11R6 \ | |
12873 | /usr/lib/X11R5 \ | |
12874 | /usr/lib/X11R4 \ | |
12875 | \ | |
12876 | /usr/local/X11/lib \ | |
12877 | /usr/local/X11R6/lib \ | |
12878 | /usr/local/X11R5/lib \ | |
12879 | /usr/local/X11R4/lib \ | |
12880 | \ | |
12881 | /usr/local/lib/X11 \ | |
12882 | /usr/local/lib/X11R6 \ | |
12883 | /usr/local/lib/X11R5 \ | |
12884 | /usr/local/lib/X11R4 \ | |
12885 | \ | |
12886 | /usr/X386/lib \ | |
12887 | /usr/x386/lib \ | |
12888 | /usr/XFree86/lib/X11 \ | |
12889 | \ | |
12890 | /usr/lib \ | |
12891 | /usr/local/lib \ | |
12892 | /usr/unsupported/lib \ | |
12893 | /usr/athena/lib \ | |
12894 | /usr/local/x11r5/lib \ | |
12895 | /usr/lpp/Xamples/lib \ | |
12896 | /lib/usr/lib/X11 \ | |
12897 | \ | |
12898 | /usr/openwin/lib \ | |
12899 | /usr/openwin/share/lib \ | |
12900 | ; \ | |
12901 | do | |
12902 | for ac_extension in a so sl; do | |
12903 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
12904 | ac_x_libraries=$ac_dir | |
12905 | break 2 | |
12906 | fi | |
12907 | done | |
12908 | done | |
3a922bb4 RL |
12909 | fi |
12910 | rm -f conftest* | |
21d1c967 | 12911 | fi # $ac_x_libraries = NO |
90dd450c | 12912 | |
21d1c967 GD |
12913 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
12914 | # Didn't find X anywhere. Cache the known absence of X. | |
12915 | ac_cv_have_x="have_x=no" | |
12916 | else | |
12917 | # Record where we found X for the cache. | |
12918 | ac_cv_have_x="have_x=yes \ | |
12919 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 12920 | fi |
21d1c967 GD |
12921 | fi |
12922 | fi | |
12923 | eval "$ac_cv_have_x" | |
12924 | fi # $with_x != no | |
90dd450c | 12925 | |
21d1c967 GD |
12926 | if test "$have_x" != yes; then |
12927 | echo "$ac_t""$have_x" 1>&6 | |
12928 | no_x=yes | |
12929 | else | |
12930 | # If each of the values was on the command line, it overrides each guess. | |
12931 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
12932 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
12933 | # Update the cache value to reflect the command line values. | |
12934 | ac_cv_have_x="have_x=yes \ | |
12935 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
12936 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
12937 | fi | |
90dd450c | 12938 | |
21d1c967 | 12939 | if test "$no_x" = yes; then |
90dd450c VZ |
12940 | # Not all programs may use this symbol, but it does not hurt to define it. |
12941 | cat >> confdefs.h <<\EOF | |
12942 | #define X_DISPLAY_MISSING 1 | |
12943 | EOF | |
12944 | ||
12945 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
12946 | else | |
12947 | if test -n "$x_includes"; then | |
12948 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 12949 | fi |
3a922bb4 | 12950 | |
90dd450c VZ |
12951 | # It would also be nice to do this for all -L options, not just this one. |
12952 | if test -n "$x_libraries"; then | |
12953 | X_LIBS="$X_LIBS -L$x_libraries" | |
12954 | # For Solaris; some versions of Sun CC require a space after -R and | |
12955 | # others require no space. Words are not sufficient . . . . | |
12956 | case "`(uname -sr) 2>/dev/null`" in | |
12957 | "SunOS 5"*) | |
12958 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
24f5e003 | 12959 | echo "configure:12960: checking whether -R must be followed by a space" >&5 |
90dd450c VZ |
12960 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
12961 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 12962 | #line 12963 "configure" |
90dd450c VZ |
12963 | #include "confdefs.h" |
12964 | ||
12965 | int main() { | |
12966 | ||
12967 | ; return 0; } | |
12968 | EOF | |
24f5e003 | 12969 | if { (eval echo configure:12970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12970 | rm -rf conftest* |
12971 | ac_R_nospace=yes | |
3a922bb4 | 12972 | else |
90dd450c VZ |
12973 | echo "configure: failed program was:" >&5 |
12974 | cat conftest.$ac_ext >&5 | |
12975 | rm -rf conftest* | |
12976 | ac_R_nospace=no | |
3a922bb4 | 12977 | fi |
90dd450c VZ |
12978 | rm -f conftest* |
12979 | if test $ac_R_nospace = yes; then | |
12980 | echo "$ac_t""no" 1>&6 | |
12981 | X_LIBS="$X_LIBS -R$x_libraries" | |
12982 | else | |
12983 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
12984 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 12985 | #line 12986 "configure" |
90dd450c | 12986 | #include "confdefs.h" |
3a922bb4 | 12987 | |
90dd450c | 12988 | int main() { |
6f754473 | 12989 | |
90dd450c VZ |
12990 | ; return 0; } |
12991 | EOF | |
24f5e003 | 12992 | if { (eval echo configure:12993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
12993 | rm -rf conftest* |
12994 | ac_R_space=yes | |
12995 | else | |
12996 | echo "configure: failed program was:" >&5 | |
12997 | cat conftest.$ac_ext >&5 | |
12998 | rm -rf conftest* | |
12999 | ac_R_space=no | |
13000 | fi | |
13001 | rm -f conftest* | |
13002 | if test $ac_R_space = yes; then | |
13003 | echo "$ac_t""yes" 1>&6 | |
13004 | X_LIBS="$X_LIBS -R $x_libraries" | |
13005 | else | |
13006 | echo "$ac_t""neither works" 1>&6 | |
13007 | fi | |
13008 | fi | |
13009 | LIBS="$ac_xsave_LIBS" | |
13010 | esac | |
13011 | fi | |
13012 | ||
13013 | # Check for system-dependent libraries X programs must link with. | |
13014 | # Do this before checking for the system-independent R6 libraries | |
13015 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13016 | |
90dd450c VZ |
13017 | if test "$ISC" = yes; then |
13018 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13019 | else | |
13020 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
13021 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
13022 | # the Alpha needs dnet_stub (dnet does not exist). | |
13023 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
24f5e003 | 13024 | echo "configure:13025: checking for dnet_ntoa in -ldnet" >&5 |
90dd450c VZ |
13025 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13026 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13027 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13028 | else | |
13029 | ac_save_LIBS="$LIBS" | |
13030 | LIBS="-ldnet $LIBS" | |
13031 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13032 | #line 13033 "configure" |
90dd450c VZ |
13033 | #include "confdefs.h" |
13034 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13035 | /* We use char because int might match the return type of a gcc2 | |
13036 | builtin and then its argument prototype would still apply. */ | |
13037 | char dnet_ntoa(); | |
6f754473 | 13038 | |
90dd450c VZ |
13039 | int main() { |
13040 | dnet_ntoa() | |
13041 | ; return 0; } | |
6f754473 | 13042 | EOF |
24f5e003 | 13043 | if { (eval echo configure:13044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13044 | rm -rf conftest* |
13045 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13046 | else | |
13047 | echo "configure: failed program was:" >&5 | |
13048 | cat conftest.$ac_ext >&5 | |
13049 | rm -rf conftest* | |
13050 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13051 | fi |
90dd450c VZ |
13052 | rm -f conftest* |
13053 | LIBS="$ac_save_LIBS" | |
3a922bb4 | 13054 | |
3a922bb4 | 13055 | fi |
90dd450c VZ |
13056 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13057 | echo "$ac_t""yes" 1>&6 | |
13058 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
13059 | else | |
13060 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13061 | fi |
13062 | ||
90dd450c VZ |
13063 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
13064 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
24f5e003 | 13065 | echo "configure:13066: checking for dnet_ntoa in -ldnet_stub" >&5 |
90dd450c VZ |
13066 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13067 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13068 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13069 | else | |
13070 | ac_save_LIBS="$LIBS" | |
13071 | LIBS="-ldnet_stub $LIBS" | |
13072 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13073 | #line 13074 "configure" |
90dd450c VZ |
13074 | #include "confdefs.h" |
13075 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13076 | /* We use char because int might match the return type of a gcc2 | |
13077 | builtin and then its argument prototype would still apply. */ | |
13078 | char dnet_ntoa(); | |
f676c7ff | 13079 | |
90dd450c VZ |
13080 | int main() { |
13081 | dnet_ntoa() | |
13082 | ; return 0; } | |
13083 | EOF | |
24f5e003 | 13084 | if { (eval echo configure:13085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13085 | rm -rf conftest* |
13086 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13087 | else | |
13088 | echo "configure: failed program was:" >&5 | |
13089 | cat conftest.$ac_ext >&5 | |
13090 | rm -rf conftest* | |
13091 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13092 | fi |
90dd450c VZ |
13093 | rm -f conftest* |
13094 | LIBS="$ac_save_LIBS" | |
3a922bb4 | 13095 | |
90dd450c VZ |
13096 | fi |
13097 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13098 | echo "$ac_t""yes" 1>&6 | |
13099 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
13100 | else | |
13101 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13102 | fi |
13103 | ||
90dd450c | 13104 | fi |
978f1259 | 13105 | |
90dd450c VZ |
13106 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13107 | # to get the SysV transport functions. | |
13108 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
13109 | # needs -lnsl. | |
13110 | # The nsl library prevents programs from opening the X display | |
13111 | # on Irix 5.2, according to dickey@clark.net. | |
13112 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
24f5e003 | 13113 | echo "configure:13114: checking for gethostbyname" >&5 |
90dd450c VZ |
13114 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13116 | else | |
13117 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13118 | #line 13119 "configure" |
90dd450c VZ |
13119 | #include "confdefs.h" |
13120 | /* System header to define __stub macros and hopefully few prototypes, | |
13121 | which can conflict with char gethostbyname(); below. */ | |
13122 | #include <assert.h> | |
13123 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13124 | /* We use char because int might match the return type of a gcc2 | |
13125 | builtin and then its argument prototype would still apply. */ | |
13126 | char gethostbyname(); | |
978f1259 | 13127 | |
90dd450c | 13128 | int main() { |
978f1259 | 13129 | |
90dd450c VZ |
13130 | /* The GNU C library defines this for functions which it implements |
13131 | to always fail with ENOSYS. Some functions are actually named | |
13132 | something starting with __ and the normal name is an alias. */ | |
13133 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13134 | choke me | |
13135 | #else | |
13136 | gethostbyname(); | |
13137 | #endif | |
978f1259 | 13138 | |
90dd450c VZ |
13139 | ; return 0; } |
13140 | EOF | |
24f5e003 | 13141 | if { (eval echo configure:13142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13142 | rm -rf conftest* |
13143 | eval "ac_cv_func_gethostbyname=yes" | |
13144 | else | |
13145 | echo "configure: failed program was:" >&5 | |
13146 | cat conftest.$ac_ext >&5 | |
13147 | rm -rf conftest* | |
13148 | eval "ac_cv_func_gethostbyname=no" | |
978f1259 | 13149 | fi |
90dd450c | 13150 | rm -f conftest* |
4222829b VS |
13151 | fi |
13152 | ||
90dd450c VZ |
13153 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
13154 | echo "$ac_t""yes" 1>&6 | |
13155 | : | |
13156 | else | |
13157 | echo "$ac_t""no" 1>&6 | |
13158 | fi | |
698dcdb6 | 13159 | |
90dd450c VZ |
13160 | if test $ac_cv_func_gethostbyname = no; then |
13161 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
24f5e003 | 13162 | echo "configure:13163: checking for gethostbyname in -lnsl" >&5 |
90dd450c VZ |
13163 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13164 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13165 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13166 | else | |
13167 | ac_save_LIBS="$LIBS" | |
13168 | LIBS="-lnsl $LIBS" | |
13169 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13170 | #line 13171 "configure" |
90dd450c VZ |
13171 | #include "confdefs.h" |
13172 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13173 | /* We use char because int might match the return type of a gcc2 | |
13174 | builtin and then its argument prototype would still apply. */ | |
13175 | char gethostbyname(); | |
f6bcfd97 | 13176 | |
90dd450c VZ |
13177 | int main() { |
13178 | gethostbyname() | |
13179 | ; return 0; } | |
13180 | EOF | |
24f5e003 | 13181 | if { (eval echo configure:13182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13182 | rm -rf conftest* |
13183 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13184 | else | |
13185 | echo "configure: failed program was:" >&5 | |
13186 | cat conftest.$ac_ext >&5 | |
13187 | rm -rf conftest* | |
13188 | eval "ac_cv_lib_$ac_lib_var=no" | |
13189 | fi | |
13190 | rm -f conftest* | |
13191 | LIBS="$ac_save_LIBS" | |
55e80573 | 13192 | |
90dd450c VZ |
13193 | fi |
13194 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13195 | echo "$ac_t""yes" 1>&6 | |
13196 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13197 | else | |
13198 | echo "$ac_t""no" 1>&6 | |
13199 | fi | |
b12915c1 | 13200 | |
90dd450c VZ |
13201 | fi |
13202 | ||
13203 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13204 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13205 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
13206 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
13207 | # gethostby* variants that don't use the nameserver (or something). | |
13208 | # -lsocket must be given before -lnsl if both are needed. | |
13209 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13210 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
24f5e003 | 13211 | echo "configure:13212: checking for connect" >&5 |
90dd450c | 13212 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
55e80573 VZ |
13213 | echo $ac_n "(cached) $ac_c" 1>&6 |
13214 | else | |
90dd450c | 13215 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 13216 | #line 13217 "configure" |
55e80573 | 13217 | #include "confdefs.h" |
90dd450c VZ |
13218 | /* System header to define __stub macros and hopefully few prototypes, |
13219 | which can conflict with char connect(); below. */ | |
13220 | #include <assert.h> | |
13221 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13222 | /* We use char because int might match the return type of a gcc2 | |
13223 | builtin and then its argument prototype would still apply. */ | |
13224 | char connect(); | |
55e80573 VZ |
13225 | |
13226 | int main() { | |
13227 | ||
90dd450c VZ |
13228 | /* The GNU C library defines this for functions which it implements |
13229 | to always fail with ENOSYS. Some functions are actually named | |
13230 | something starting with __ and the normal name is an alias. */ | |
13231 | #if defined (__stub_connect) || defined (__stub___connect) | |
13232 | choke me | |
13233 | #else | |
13234 | connect(); | |
13235 | #endif | |
13236 | ||
55e80573 VZ |
13237 | ; return 0; } |
13238 | EOF | |
24f5e003 | 13239 | if { (eval echo configure:13240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
55e80573 | 13240 | rm -rf conftest* |
90dd450c | 13241 | eval "ac_cv_func_connect=yes" |
55e80573 VZ |
13242 | else |
13243 | echo "configure: failed program was:" >&5 | |
13244 | cat conftest.$ac_ext >&5 | |
13245 | rm -rf conftest* | |
90dd450c | 13246 | eval "ac_cv_func_connect=no" |
55e80573 VZ |
13247 | fi |
13248 | rm -f conftest* | |
55e80573 VZ |
13249 | fi |
13250 | ||
90dd450c VZ |
13251 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
13252 | echo "$ac_t""yes" 1>&6 | |
13253 | : | |
13254 | else | |
13255 | echo "$ac_t""no" 1>&6 | |
13256 | fi | |
55e80573 | 13257 | |
90dd450c VZ |
13258 | if test $ac_cv_func_connect = no; then |
13259 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
24f5e003 | 13260 | echo "configure:13261: checking for connect in -lsocket" >&5 |
90dd450c VZ |
13261 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
13262 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13263 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13264 | else | |
13265 | ac_save_LIBS="$LIBS" | |
13266 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
13267 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13268 | #line 13269 "configure" |
90dd450c VZ |
13269 | #include "confdefs.h" |
13270 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13271 | /* We use char because int might match the return type of a gcc2 | |
13272 | builtin and then its argument prototype would still apply. */ | |
13273 | char connect(); | |
55e80573 | 13274 | |
90dd450c VZ |
13275 | int main() { |
13276 | connect() | |
13277 | ; return 0; } | |
13278 | EOF | |
24f5e003 | 13279 | if { (eval echo configure:13280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13280 | rm -rf conftest* |
13281 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13282 | else | |
13283 | echo "configure: failed program was:" >&5 | |
13284 | cat conftest.$ac_ext >&5 | |
13285 | rm -rf conftest* | |
13286 | eval "ac_cv_lib_$ac_lib_var=no" | |
13287 | fi | |
13288 | rm -f conftest* | |
13289 | LIBS="$ac_save_LIBS" | |
77e13408 | 13290 | |
90dd450c VZ |
13291 | fi |
13292 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13293 | echo "$ac_t""yes" 1>&6 | |
13294 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
13295 | else | |
13296 | echo "$ac_t""no" 1>&6 | |
13297 | fi | |
77e13408 | 13298 | |
90dd450c | 13299 | fi |
25d0687a | 13300 | |
90dd450c VZ |
13301 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
13302 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
24f5e003 | 13303 | echo "configure:13304: checking for remove" >&5 |
90dd450c VZ |
13304 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
13305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13306 | else | |
13307 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13308 | #line 13309 "configure" |
90dd450c VZ |
13309 | #include "confdefs.h" |
13310 | /* System header to define __stub macros and hopefully few prototypes, | |
13311 | which can conflict with char remove(); below. */ | |
13312 | #include <assert.h> | |
13313 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13314 | /* We use char because int might match the return type of a gcc2 | |
13315 | builtin and then its argument prototype would still apply. */ | |
13316 | char remove(); | |
7b7a7637 | 13317 | |
90dd450c | 13318 | int main() { |
55e80573 | 13319 | |
90dd450c VZ |
13320 | /* The GNU C library defines this for functions which it implements |
13321 | to always fail with ENOSYS. Some functions are actually named | |
13322 | something starting with __ and the normal name is an alias. */ | |
13323 | #if defined (__stub_remove) || defined (__stub___remove) | |
13324 | choke me | |
13325 | #else | |
13326 | remove(); | |
13327 | #endif | |
55e80573 | 13328 | |
90dd450c VZ |
13329 | ; return 0; } |
13330 | EOF | |
24f5e003 | 13331 | if { (eval echo configure:13332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13332 | rm -rf conftest* |
13333 | eval "ac_cv_func_remove=yes" | |
13334 | else | |
13335 | echo "configure: failed program was:" >&5 | |
13336 | cat conftest.$ac_ext >&5 | |
13337 | rm -rf conftest* | |
13338 | eval "ac_cv_func_remove=no" | |
13339 | fi | |
13340 | rm -f conftest* | |
13341 | fi | |
55e80573 | 13342 | |
90dd450c VZ |
13343 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
13344 | echo "$ac_t""yes" 1>&6 | |
13345 | : | |
13346 | else | |
13347 | echo "$ac_t""no" 1>&6 | |
13348 | fi | |
10f2d63a | 13349 | |
90dd450c VZ |
13350 | if test $ac_cv_func_remove = no; then |
13351 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
24f5e003 | 13352 | echo "configure:13353: checking for remove in -lposix" >&5 |
90dd450c VZ |
13353 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
13354 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13355 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13356 | else | |
13357 | ac_save_LIBS="$LIBS" | |
13358 | LIBS="-lposix $LIBS" | |
13359 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13360 | #line 13361 "configure" |
90dd450c VZ |
13361 | #include "confdefs.h" |
13362 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13363 | /* We use char because int might match the return type of a gcc2 | |
13364 | builtin and then its argument prototype would still apply. */ | |
13365 | char remove(); | |
55e80573 | 13366 | |
90dd450c VZ |
13367 | int main() { |
13368 | remove() | |
13369 | ; return 0; } | |
13370 | EOF | |
24f5e003 | 13371 | if { (eval echo configure:13372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13372 | rm -rf conftest* |
13373 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13374 | else | |
13375 | echo "configure: failed program was:" >&5 | |
13376 | cat conftest.$ac_ext >&5 | |
13377 | rm -rf conftest* | |
13378 | eval "ac_cv_lib_$ac_lib_var=no" | |
3a922bb4 | 13379 | fi |
90dd450c VZ |
13380 | rm -f conftest* |
13381 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 13382 | |
90dd450c VZ |
13383 | fi |
13384 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13385 | echo "$ac_t""yes" 1>&6 | |
13386 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
13387 | else | |
13388 | echo "$ac_t""no" 1>&6 | |
13389 | fi | |
f6bcfd97 | 13390 | |
6fa882bd RR |
13391 | fi |
13392 | ||
90dd450c VZ |
13393 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
13394 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
24f5e003 | 13395 | echo "configure:13396: checking for shmat" >&5 |
90dd450c VZ |
13396 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
13397 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13398 | else | |
13399 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13400 | #line 13401 "configure" |
90dd450c VZ |
13401 | #include "confdefs.h" |
13402 | /* System header to define __stub macros and hopefully few prototypes, | |
13403 | which can conflict with char shmat(); below. */ | |
13404 | #include <assert.h> | |
13405 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13406 | /* We use char because int might match the return type of a gcc2 | |
13407 | builtin and then its argument prototype would still apply. */ | |
13408 | char shmat(); | |
698dcdb6 | 13409 | |
90dd450c | 13410 | int main() { |
3a922bb4 | 13411 | |
90dd450c VZ |
13412 | /* The GNU C library defines this for functions which it implements |
13413 | to always fail with ENOSYS. Some functions are actually named | |
13414 | something starting with __ and the normal name is an alias. */ | |
13415 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
13416 | choke me | |
13417 | #else | |
13418 | shmat(); | |
13419 | #endif | |
10f2d63a | 13420 | |
90dd450c VZ |
13421 | ; return 0; } |
13422 | EOF | |
24f5e003 | 13423 | if { (eval echo configure:13424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13424 | rm -rf conftest* |
13425 | eval "ac_cv_func_shmat=yes" | |
d08b457b | 13426 | else |
90dd450c VZ |
13427 | echo "configure: failed program was:" >&5 |
13428 | cat conftest.$ac_ext >&5 | |
13429 | rm -rf conftest* | |
13430 | eval "ac_cv_func_shmat=no" | |
d08b457b | 13431 | fi |
90dd450c | 13432 | rm -f conftest* |
d08b457b | 13433 | fi |
90dd450c VZ |
13434 | |
13435 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
13436 | echo "$ac_t""yes" 1>&6 | |
13437 | : | |
d08b457b GD |
13438 | else |
13439 | echo "$ac_t""no" 1>&6 | |
13440 | fi | |
13441 | ||
90dd450c VZ |
13442 | if test $ac_cv_func_shmat = no; then |
13443 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
24f5e003 | 13444 | echo "configure:13445: checking for shmat in -lipc" >&5 |
90dd450c VZ |
13445 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
13446 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
d08b457b GD |
13447 | echo $ac_n "(cached) $ac_c" 1>&6 |
13448 | else | |
90dd450c VZ |
13449 | ac_save_LIBS="$LIBS" |
13450 | LIBS="-lipc $LIBS" | |
13451 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13452 | #line 13453 "configure" |
90dd450c VZ |
13453 | #include "confdefs.h" |
13454 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13455 | /* We use char because int might match the return type of a gcc2 | |
13456 | builtin and then its argument prototype would still apply. */ | |
13457 | char shmat(); | |
13458 | ||
13459 | int main() { | |
13460 | shmat() | |
13461 | ; return 0; } | |
13462 | EOF | |
24f5e003 | 13463 | if { (eval echo configure:13464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
90dd450c VZ |
13464 | rm -rf conftest* |
13465 | eval "ac_cv_lib_$ac_lib_var=yes" | |
d08b457b | 13466 | else |
90dd450c VZ |
13467 | echo "configure: failed program was:" >&5 |
13468 | cat conftest.$ac_ext >&5 | |
13469 | rm -rf conftest* | |
13470 | eval "ac_cv_lib_$ac_lib_var=no" | |
d08b457b | 13471 | fi |
90dd450c VZ |
13472 | rm -f conftest* |
13473 | LIBS="$ac_save_LIBS" | |
13474 | ||
d08b457b | 13475 | fi |
90dd450c VZ |
13476 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13477 | echo "$ac_t""yes" 1>&6 | |
13478 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
d08b457b GD |
13479 | else |
13480 | echo "$ac_t""no" 1>&6 | |
13481 | fi | |
13482 | ||
d558c907 | 13483 | fi |
90dd450c | 13484 | fi |
3a922bb4 | 13485 | |
90dd450c VZ |
13486 | # Check for libraries that X11R6 Xt/Xaw programs need. |
13487 | ac_save_LDFLAGS="$LDFLAGS" | |
13488 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
13489 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
13490 | # check for ICE first), but we must link in the order -lSM -lICE or | |
13491 | # we get undefined symbols. So assume we have SM if we have ICE. | |
13492 | # These have to be linked with before -lX11, unlike the other | |
13493 | # libraries we check for below, so use a different variable. | |
13494 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
13495 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
24f5e003 | 13496 | echo "configure:13497: checking for IceConnectionNumber in -lICE" >&5 |
90dd450c VZ |
13497 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
13498 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
13499 | echo $ac_n "(cached) $ac_c" 1>&6 |
13500 | else | |
90dd450c VZ |
13501 | ac_save_LIBS="$LIBS" |
13502 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
13503 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13504 | #line 13505 "configure" |
9cfadba2 | 13505 | #include "confdefs.h" |
90dd450c VZ |
13506 | /* Override any gcc2 internal prototype to avoid an error. */ |
13507 | /* We use char because int might match the return type of a gcc2 | |
13508 | builtin and then its argument prototype would still apply. */ | |
13509 | char IceConnectionNumber(); | |
13510 | ||
13511 | int main() { | |
13512 | IceConnectionNumber() | |
13513 | ; return 0; } | |
698dcdb6 | 13514 | EOF |
24f5e003 | 13515 | if { (eval echo configure:13516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 13516 | rm -rf conftest* |
90dd450c | 13517 | eval "ac_cv_lib_$ac_lib_var=yes" |
6232543b | 13518 | else |
698dcdb6 | 13519 | echo "configure: failed program was:" >&5 |
9cfadba2 | 13520 | cat conftest.$ac_ext >&5 |
698dcdb6 | 13521 | rm -rf conftest* |
90dd450c | 13522 | eval "ac_cv_lib_$ac_lib_var=no" |
9cfadba2 | 13523 | fi |
698dcdb6 | 13524 | rm -f conftest* |
90dd450c VZ |
13525 | LIBS="$ac_save_LIBS" |
13526 | ||
9cfadba2 | 13527 | fi |
90dd450c | 13528 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 13529 | echo "$ac_t""yes" 1>&6 |
90dd450c | 13530 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
13531 | else |
13532 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 13533 | fi |
10f2d63a | 13534 | |
90dd450c VZ |
13535 | LDFLAGS="$ac_save_LDFLAGS" |
13536 | ||
13537 | fi | |
13538 | ||
13539 | ||
13540 | if test "$no_x" = "yes"; then | |
13541 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
13542 | fi | |
13543 | ||
13544 | GUI_TK_LIBRARY="$X_LIBS" | |
13545 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
13546 | AFMINSTALL=afminstall | |
13547 | COMPILED_X_PROGRAM=0 | |
13548 | ||
21d1c967 GD |
13549 | if test "$wxUSE_NANOX" = "yes"; then |
13550 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 | |
24f5e003 | 13551 | echo "configure:13552: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 GD |
13552 | if test "x$MICROWIN" = x ; then |
13553 | echo "$ac_t""not found" 1>&6 | |
13554 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 13555 | else |
21d1c967 GD |
13556 | echo "$ac_t""$MICROWIN" 1>&6 |
13557 | cat >> confdefs.h <<\EOF | |
13558 | #define wxUSE_NANOX 1 | |
698dcdb6 | 13559 | EOF |
21d1c967 | 13560 | |
90dd450c VZ |
13561 | fi |
13562 | fi | |
13563 | ||
13564 | xpm_link= | |
13565 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
24f5e003 | 13566 | echo "configure:13567: checking for Xpm library" >&5 |
90dd450c VZ |
13567 | |
13568 | ac_find_libraries= | |
13569 | for ac_dir in $SEARCH_LIB; | |
13570 | do | |
13571 | for ac_extension in a so sl dylib; do | |
13572 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13573 | ac_find_libraries=$ac_dir | |
13574 | break 2 | |
13575 | fi | |
13576 | done | |
13577 | done | |
13578 | ||
13579 | if test "$ac_find_libraries" != "" ; then | |
13580 | ||
13581 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
13582 | result=$? | |
13583 | if test $result = 0; then | |
13584 | ac_path_to_link="" | |
13585 | else | |
13586 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 13587 | fi |
90dd450c | 13588 | |
21d1c967 GD |
13589 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
13590 | xpm_link=" -lXpm" | |
13591 | cat >> confdefs.h <<\EOF | |
13592 | #define wxHAVE_LIB_XPM 1 | |
13593 | EOF | |
90dd450c | 13594 | |
21d1c967 GD |
13595 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
13596 | else | |
13597 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13598 | #line 13599 "configure" |
21d1c967 | 13599 | #include "confdefs.h" |
90dd450c | 13600 | |
21d1c967 GD |
13601 | #include <X11/xpm.h> |
13602 | ||
13603 | int main() { | |
6f72b082 | 13604 | |
21d1c967 GD |
13605 | int version; |
13606 | version = XpmLibraryVersion(); | |
13607 | ||
13608 | ; return 0; } | |
13609 | EOF | |
24f5e003 | 13610 | if { (eval echo configure:13611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
21d1c967 GD |
13611 | rm -rf conftest* |
13612 | ||
13613 | xpm_link=" -lXpm" | |
13614 | cat >> confdefs.h <<\EOF | |
13615 | #define wxHAVE_LIB_XPM 1 | |
13616 | EOF | |
90dd450c | 13617 | |
21d1c967 GD |
13618 | echo "$ac_t""found in default search path" 1>&6 |
13619 | COMPILED_X_PROGRAM=0 | |
13620 | ||
13621 | else | |
13622 | echo "configure: failed program was:" >&5 | |
13623 | cat conftest.$ac_ext >&5 | |
13624 | rm -rf conftest* | |
13625 | ||
13626 | echo "$ac_t""no" 1>&6 | |
13627 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13628 | ||
13629 | ||
6f72b082 | 13630 | fi |
21d1c967 GD |
13631 | rm -f conftest* |
13632 | fi | |
90dd450c | 13633 | |
1d1b75ac VZ |
13634 | wxUSE_UNIVERSAL="yes" |
13635 | ||
21d1c967 GD |
13636 | if test "$wxUSE_NANOX" = "yes"; then |
13637 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
13638 | 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" | |
13639 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
13640 | else | |
13641 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
13642 | fi | |
6f72b082 | 13643 | |
21d1c967 GD |
13644 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
13645 | TOOLKIT=X11 | |
13646 | GUIDIST=X11_DIST | |
13647 | fi | |
90dd450c | 13648 | |
21d1c967 GD |
13649 | if test "$wxUSE_WINE" = 1; then |
13650 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
13651 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
24f5e003 | 13652 | echo "configure:13653: checking for windows.h" >&5 |
698dcdb6 VZ |
13653 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13654 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13655 | else | |
13656 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13657 | #line 13658 "configure" |
6f72b082 | 13658 | #include "confdefs.h" |
21d1c967 | 13659 | #include <windows.h> |
698dcdb6 VZ |
13660 | EOF |
13661 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24f5e003 | 13662 | { (eval echo configure:13663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13663 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13664 | if test -z "$ac_err"; then | |
13665 | rm -rf conftest* | |
13666 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13667 | else |
698dcdb6 VZ |
13668 | echo "$ac_err" >&5 |
13669 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13670 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13671 | rm -rf conftest* |
13672 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13673 | fi |
698dcdb6 | 13674 | rm -f conftest* |
10f2d63a | 13675 | fi |
698dcdb6 VZ |
13676 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13677 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
13678 | : |
13679 | else | |
13680 | echo "$ac_t""no" 1>&6 | |
13681 | ||
13682 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
13683 | ||
13684 | fi | |
13685 | ||
13686 | ||
13687 | xpm_link= | |
13688 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
24f5e003 | 13689 | echo "configure:13690: checking for Xpm library" >&5 |
21d1c967 | 13690 | |
90dd450c VZ |
13691 | ac_find_libraries= |
13692 | for ac_dir in $SEARCH_LIB; | |
13693 | do | |
13694 | for ac_extension in a so sl dylib; do | |
21d1c967 | 13695 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
90dd450c VZ |
13696 | ac_find_libraries=$ac_dir |
13697 | break 2 | |
13698 | fi | |
13699 | done | |
13700 | done | |
13701 | ||
21d1c967 GD |
13702 | if test "$ac_find_libraries" != "" ; then |
13703 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
13704 | xpm_link=" -lXpm" | |
13705 | cat >> confdefs.h <<\EOF | |
13706 | #define wxHAVE_LIB_XPM 1 | |
13707 | EOF | |
90dd450c | 13708 | |
21d1c967 GD |
13709 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
13710 | else | |
13711 | echo "$ac_t""no" 1>&6 | |
13712 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13713 | fi | |
13714 | ||
13715 | mesa_link= | |
13716 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
24f5e003 | 13717 | echo "configure:13718: checking for Mesa library" >&5 |
21d1c967 | 13718 | |
90dd450c VZ |
13719 | ac_find_libraries= |
13720 | for ac_dir in $SEARCH_LIB; | |
13721 | do | |
13722 | for ac_extension in a so sl dylib; do | |
13723 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13724 | ac_find_libraries=$ac_dir | |
13725 | break 2 | |
13726 | fi | |
13727 | done | |
13728 | done | |
13729 | ||
21d1c967 GD |
13730 | if test "$ac_find_libraries" != "" ; then |
13731 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
13732 | mesa_link=" -lMesaGL" | |
13733 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
13734 | else | |
13735 | { echo "configure: error: no" 1>&2; exit 1; } | |
13736 | fi | |
13737 | ||
13738 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
13739 | TOOLKIT=MSW | |
13740 | GUIDIST=MSW_DIST | |
13741 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
13742 | fi | |
13743 | ||
13744 | if test "$wxUSE_MOTIF" = 1; then | |
13745 | if test "$no_x" = yes; then | |
13746 | # Not all programs may use this symbol, but it does not hurt to define it. | |
13747 | cat >> confdefs.h <<\EOF | |
13748 | #define X_DISPLAY_MISSING 1 | |
13749 | EOF | |
13750 | ||
13751 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13752 | else | |
13753 | if test -n "$x_includes"; then | |
13754 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
13755 | fi |
13756 | ||
21d1c967 GD |
13757 | # It would also be nice to do this for all -L options, not just this one. |
13758 | if test -n "$x_libraries"; then | |
13759 | X_LIBS="$X_LIBS -L$x_libraries" | |
13760 | # For Solaris; some versions of Sun CC require a space after -R and | |
13761 | # others require no space. Words are not sufficient . . . . | |
13762 | case "`(uname -sr) 2>/dev/null`" in | |
13763 | "SunOS 5"*) | |
13764 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
24f5e003 | 13765 | echo "configure:13766: checking whether -R must be followed by a space" >&5 |
21d1c967 GD |
13766 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13767 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13768 | #line 13769 "configure" |
21d1c967 GD |
13769 | #include "confdefs.h" |
13770 | ||
13771 | int main() { | |
13772 | ||
13773 | ; return 0; } | |
13774 | EOF | |
24f5e003 | 13775 | if { (eval echo configure:13776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13776 | rm -rf conftest* |
13777 | ac_R_nospace=yes | |
698dcdb6 | 13778 | else |
21d1c967 GD |
13779 | echo "configure: failed program was:" >&5 |
13780 | cat conftest.$ac_ext >&5 | |
13781 | rm -rf conftest* | |
13782 | ac_R_nospace=no | |
10f2d63a | 13783 | fi |
21d1c967 GD |
13784 | rm -f conftest* |
13785 | if test $ac_R_nospace = yes; then | |
13786 | echo "$ac_t""no" 1>&6 | |
13787 | X_LIBS="$X_LIBS -R$x_libraries" | |
13788 | else | |
13789 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
13790 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13791 | #line 13792 "configure" |
21d1c967 | 13792 | #include "confdefs.h" |
10f2d63a | 13793 | |
21d1c967 | 13794 | int main() { |
f0c87536 | 13795 | |
21d1c967 | 13796 | ; return 0; } |
698dcdb6 | 13797 | EOF |
24f5e003 | 13798 | if { (eval echo configure:13799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13799 | rm -rf conftest* |
13800 | ac_R_space=yes | |
13801 | else | |
13802 | echo "configure: failed program was:" >&5 | |
13803 | cat conftest.$ac_ext >&5 | |
13804 | rm -rf conftest* | |
13805 | ac_R_space=no | |
13806 | fi | |
13807 | rm -f conftest* | |
13808 | if test $ac_R_space = yes; then | |
13809 | echo "$ac_t""yes" 1>&6 | |
13810 | X_LIBS="$X_LIBS -R $x_libraries" | |
13811 | else | |
13812 | echo "$ac_t""neither works" 1>&6 | |
13813 | fi | |
13814 | fi | |
13815 | LIBS="$ac_xsave_LIBS" | |
13816 | esac | |
13817 | fi | |
90dd450c | 13818 | |
21d1c967 GD |
13819 | # Check for system-dependent libraries X programs must link with. |
13820 | # Do this before checking for the system-independent R6 libraries | |
13821 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
13822 | ||
13823 | if test "$ISC" = yes; then | |
13824 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13825 | else | |
13826 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
13827 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
13828 | # the Alpha needs dnet_stub (dnet does not exist). | |
13829 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
24f5e003 | 13830 | echo "configure:13831: checking for dnet_ntoa in -ldnet" >&5 |
21d1c967 GD |
13831 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13832 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13833 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13834 | else | |
13835 | ac_save_LIBS="$LIBS" | |
13836 | LIBS="-ldnet $LIBS" | |
13837 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13838 | #line 13839 "configure" |
21d1c967 GD |
13839 | #include "confdefs.h" |
13840 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13841 | /* We use char because int might match the return type of a gcc2 | |
13842 | builtin and then its argument prototype would still apply. */ | |
13843 | char dnet_ntoa(); | |
13844 | ||
13845 | int main() { | |
13846 | dnet_ntoa() | |
13847 | ; return 0; } | |
90dd450c | 13848 | EOF |
24f5e003 | 13849 | if { (eval echo configure:13850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13850 | rm -rf conftest* |
13851 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13852 | else | |
13853 | echo "configure: failed program was:" >&5 | |
13854 | cat conftest.$ac_ext >&5 | |
13855 | rm -rf conftest* | |
13856 | eval "ac_cv_lib_$ac_lib_var=no" | |
0fb0dd83 | 13857 | fi |
21d1c967 GD |
13858 | rm -f conftest* |
13859 | LIBS="$ac_save_LIBS" | |
90dd450c | 13860 | |
0fb0dd83 | 13861 | fi |
21d1c967 GD |
13862 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13863 | echo "$ac_t""yes" 1>&6 | |
13864 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
13865 | else | |
13866 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 13867 | fi |
0fb0dd83 | 13868 | |
21d1c967 GD |
13869 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
13870 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
24f5e003 | 13871 | echo "configure:13872: checking for dnet_ntoa in -ldnet_stub" >&5 |
21d1c967 GD |
13872 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13873 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13875 | else | |
13876 | ac_save_LIBS="$LIBS" | |
13877 | LIBS="-ldnet_stub $LIBS" | |
13878 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13879 | #line 13880 "configure" |
21d1c967 GD |
13880 | #include "confdefs.h" |
13881 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13882 | /* We use char because int might match the return type of a gcc2 | |
13883 | builtin and then its argument prototype would still apply. */ | |
13884 | char dnet_ntoa(); | |
90dd450c | 13885 | |
21d1c967 GD |
13886 | int main() { |
13887 | dnet_ntoa() | |
13888 | ; return 0; } | |
13889 | EOF | |
24f5e003 | 13890 | if { (eval echo configure:13891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13891 | rm -rf conftest* |
13892 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13893 | else | |
13894 | echo "configure: failed program was:" >&5 | |
13895 | cat conftest.$ac_ext >&5 | |
13896 | rm -rf conftest* | |
13897 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 13898 | fi |
21d1c967 GD |
13899 | rm -f conftest* |
13900 | LIBS="$ac_save_LIBS" | |
90dd450c | 13901 | |
21d1c967 GD |
13902 | fi |
13903 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13904 | echo "$ac_t""yes" 1>&6 | |
13905 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
13906 | else | |
13907 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
13908 | fi |
13909 | ||
21d1c967 | 13910 | fi |
90dd450c | 13911 | |
21d1c967 GD |
13912 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13913 | # to get the SysV transport functions. | |
13914 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
13915 | # needs -lnsl. | |
13916 | # The nsl library prevents programs from opening the X display | |
13917 | # on Irix 5.2, according to dickey@clark.net. | |
13918 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
24f5e003 | 13919 | echo "configure:13920: checking for gethostbyname" >&5 |
21d1c967 GD |
13920 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13922 | else | |
13923 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13924 | #line 13925 "configure" |
21d1c967 GD |
13925 | #include "confdefs.h" |
13926 | /* System header to define __stub macros and hopefully few prototypes, | |
13927 | which can conflict with char gethostbyname(); below. */ | |
13928 | #include <assert.h> | |
13929 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13930 | /* We use char because int might match the return type of a gcc2 | |
13931 | builtin and then its argument prototype would still apply. */ | |
13932 | char gethostbyname(); | |
90dd450c | 13933 | |
21d1c967 | 13934 | int main() { |
90dd450c | 13935 | |
21d1c967 GD |
13936 | /* The GNU C library defines this for functions which it implements |
13937 | to always fail with ENOSYS. Some functions are actually named | |
13938 | something starting with __ and the normal name is an alias. */ | |
13939 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13940 | choke me | |
13941 | #else | |
13942 | gethostbyname(); | |
13943 | #endif | |
90dd450c | 13944 | |
21d1c967 GD |
13945 | ; return 0; } |
13946 | EOF | |
24f5e003 | 13947 | if { (eval echo configure:13948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13948 | rm -rf conftest* |
13949 | eval "ac_cv_func_gethostbyname=yes" | |
13950 | else | |
13951 | echo "configure: failed program was:" >&5 | |
13952 | cat conftest.$ac_ext >&5 | |
13953 | rm -rf conftest* | |
13954 | eval "ac_cv_func_gethostbyname=no" | |
13955 | fi | |
13956 | rm -f conftest* | |
90dd450c VZ |
13957 | fi |
13958 | ||
21d1c967 GD |
13959 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
13960 | echo "$ac_t""yes" 1>&6 | |
13961 | : | |
13962 | else | |
13963 | echo "$ac_t""no" 1>&6 | |
13964 | fi | |
90dd450c | 13965 | |
21d1c967 GD |
13966 | if test $ac_cv_func_gethostbyname = no; then |
13967 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
24f5e003 | 13968 | echo "configure:13969: checking for gethostbyname in -lnsl" >&5 |
21d1c967 GD |
13969 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13970 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13972 | else | |
13973 | ac_save_LIBS="$LIBS" | |
13974 | LIBS="-lnsl $LIBS" | |
13975 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 13976 | #line 13977 "configure" |
21d1c967 GD |
13977 | #include "confdefs.h" |
13978 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13979 | /* We use char because int might match the return type of a gcc2 | |
13980 | builtin and then its argument prototype would still apply. */ | |
13981 | char gethostbyname(); | |
90dd450c | 13982 | |
21d1c967 GD |
13983 | int main() { |
13984 | gethostbyname() | |
13985 | ; return 0; } | |
13986 | EOF | |
24f5e003 | 13987 | if { (eval echo configure:13988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
13988 | rm -rf conftest* |
13989 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13990 | else | |
13991 | echo "configure: failed program was:" >&5 | |
13992 | cat conftest.$ac_ext >&5 | |
13993 | rm -rf conftest* | |
13994 | eval "ac_cv_lib_$ac_lib_var=no" | |
1f8ae82f | 13995 | fi |
21d1c967 GD |
13996 | rm -f conftest* |
13997 | LIBS="$ac_save_LIBS" | |
f0c87536 | 13998 | |
21d1c967 GD |
13999 | fi |
14000 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14001 | echo "$ac_t""yes" 1>&6 | |
14002 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14003 | else | |
14004 | echo "$ac_t""no" 1>&6 | |
14005 | fi | |
90dd450c | 14006 | |
90dd450c VZ |
14007 | fi |
14008 | ||
21d1c967 GD |
14009 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
14010 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14011 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
14012 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
14013 | # gethostby* variants that don't use the nameserver (or something). | |
14014 | # -lsocket must be given before -lnsl if both are needed. | |
14015 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14016 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
24f5e003 | 14017 | echo "configure:14018: checking for connect" >&5 |
21d1c967 GD |
14018 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14019 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14020 | else | |
14021 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 14022 | #line 14023 "configure" |
21d1c967 GD |
14023 | #include "confdefs.h" |
14024 | /* System header to define __stub macros and hopefully few prototypes, | |
14025 | which can conflict with char connect(); below. */ | |
14026 | #include <assert.h> | |
14027 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14028 | /* We use char because int might match the return type of a gcc2 | |
14029 | builtin and then its argument prototype would still apply. */ | |
14030 | char connect(); | |
90dd450c | 14031 | |
21d1c967 | 14032 | int main() { |
90dd450c | 14033 | |
21d1c967 GD |
14034 | /* The GNU C library defines this for functions which it implements |
14035 | to always fail with ENOSYS. Some functions are actually named | |
14036 | something starting with __ and the normal name is an alias. */ | |
14037 | #if defined (__stub_connect) || defined (__stub___connect) | |
14038 | choke me | |
14039 | #else | |
14040 | connect(); | |
14041 | #endif | |
90dd450c | 14042 | |
21d1c967 GD |
14043 | ; return 0; } |
14044 | EOF | |
24f5e003 | 14045 | if { (eval echo configure:14046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14046 | rm -rf conftest* |
14047 | eval "ac_cv_func_connect=yes" | |
14048 | else | |
14049 | echo "configure: failed program was:" >&5 | |
14050 | cat conftest.$ac_ext >&5 | |
14051 | rm -rf conftest* | |
14052 | eval "ac_cv_func_connect=no" | |
14053 | fi | |
14054 | rm -f conftest* | |
14055 | fi | |
90dd450c | 14056 | |
21d1c967 GD |
14057 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
14058 | echo "$ac_t""yes" 1>&6 | |
14059 | : | |
14060 | else | |
14061 | echo "$ac_t""no" 1>&6 | |
14062 | fi | |
1f8ae82f | 14063 | |
21d1c967 GD |
14064 | if test $ac_cv_func_connect = no; then |
14065 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
24f5e003 | 14066 | echo "configure:14067: checking for connect in -lsocket" >&5 |
21d1c967 GD |
14067 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14068 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
0fbb762e MB |
14069 | echo $ac_n "(cached) $ac_c" 1>&6 |
14070 | else | |
21d1c967 GD |
14071 | ac_save_LIBS="$LIBS" |
14072 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
14073 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 14074 | #line 14075 "configure" |
0fbb762e | 14075 | #include "confdefs.h" |
21d1c967 GD |
14076 | /* Override any gcc2 internal prototype to avoid an error. */ |
14077 | /* We use char because int might match the return type of a gcc2 | |
14078 | builtin and then its argument prototype would still apply. */ | |
14079 | char connect(); | |
90dd450c VZ |
14080 | |
14081 | int main() { | |
21d1c967 | 14082 | connect() |
90dd450c | 14083 | ; return 0; } |
0fbb762e | 14084 | EOF |
24f5e003 | 14085 | if { (eval echo configure:14086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0fbb762e | 14086 | rm -rf conftest* |
21d1c967 | 14087 | eval "ac_cv_lib_$ac_lib_var=yes" |
0fbb762e | 14088 | else |
0fbb762e MB |
14089 | echo "configure: failed program was:" >&5 |
14090 | cat conftest.$ac_ext >&5 | |
14091 | rm -rf conftest* | |
21d1c967 | 14092 | eval "ac_cv_lib_$ac_lib_var=no" |
0fbb762e MB |
14093 | fi |
14094 | rm -f conftest* | |
21d1c967 | 14095 | LIBS="$ac_save_LIBS" |
90dd450c | 14096 | |
21d1c967 GD |
14097 | fi |
14098 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14099 | echo "$ac_t""yes" 1>&6 | |
14100 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
14101 | else | |
14102 | echo "$ac_t""no" 1>&6 | |
14103 | fi | |
90dd450c | 14104 | |
21d1c967 | 14105 | fi |
90dd450c | 14106 | |
21d1c967 GD |
14107 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14108 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
24f5e003 | 14109 | echo "configure:14110: checking for remove" >&5 |
21d1c967 GD |
14110 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14111 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14112 | else | |
14113 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 14114 | #line 14115 "configure" |
21d1c967 GD |
14115 | #include "confdefs.h" |
14116 | /* System header to define __stub macros and hopefully few prototypes, | |
14117 | which can conflict with char remove(); below. */ | |
14118 | #include <assert.h> | |
14119 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14120 | /* We use char because int might match the return type of a gcc2 | |
14121 | builtin and then its argument prototype would still apply. */ | |
14122 | char remove(); | |
90dd450c | 14123 | |
21d1c967 | 14124 | int main() { |
90dd450c | 14125 | |
21d1c967 GD |
14126 | /* The GNU C library defines this for functions which it implements |
14127 | to always fail with ENOSYS. Some functions are actually named | |
14128 | something starting with __ and the normal name is an alias. */ | |
14129 | #if defined (__stub_remove) || defined (__stub___remove) | |
14130 | choke me | |
14131 | #else | |
14132 | remove(); | |
14133 | #endif | |
90dd450c | 14134 | |
21d1c967 GD |
14135 | ; return 0; } |
14136 | EOF | |
24f5e003 | 14137 | if { (eval echo configure:14138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14138 | rm -rf conftest* |
14139 | eval "ac_cv_func_remove=yes" | |
14140 | else | |
14141 | echo "configure: failed program was:" >&5 | |
14142 | cat conftest.$ac_ext >&5 | |
14143 | rm -rf conftest* | |
14144 | eval "ac_cv_func_remove=no" | |
14145 | fi | |
14146 | rm -f conftest* | |
14147 | fi | |
90dd450c | 14148 | |
21d1c967 GD |
14149 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
14150 | echo "$ac_t""yes" 1>&6 | |
14151 | : | |
14152 | else | |
14153 | echo "$ac_t""no" 1>&6 | |
14154 | fi | |
90dd450c | 14155 | |
21d1c967 GD |
14156 | if test $ac_cv_func_remove = no; then |
14157 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
24f5e003 | 14158 | echo "configure:14159: checking for remove in -lposix" >&5 |
21d1c967 GD |
14159 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14160 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14161 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14162 | else | |
14163 | ac_save_LIBS="$LIBS" | |
14164 | LIBS="-lposix $LIBS" | |
14165 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 14166 | #line 14167 "configure" |
21d1c967 GD |
14167 | #include "confdefs.h" |
14168 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14169 | /* We use char because int might match the return type of a gcc2 | |
14170 | builtin and then its argument prototype would still apply. */ | |
14171 | char remove(); | |
90dd450c | 14172 | |
21d1c967 GD |
14173 | int main() { |
14174 | remove() | |
14175 | ; return 0; } | |
14176 | EOF | |
24f5e003 | 14177 | if { (eval echo configure:14178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14178 | rm -rf conftest* |
14179 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14180 | else | |
14181 | echo "configure: failed program was:" >&5 | |
14182 | cat conftest.$ac_ext >&5 | |
14183 | rm -rf conftest* | |
14184 | eval "ac_cv_lib_$ac_lib_var=no" | |
0fbb762e | 14185 | fi |
21d1c967 GD |
14186 | rm -f conftest* |
14187 | LIBS="$ac_save_LIBS" | |
0fbb762e | 14188 | |
21d1c967 GD |
14189 | fi |
14190 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14191 | echo "$ac_t""yes" 1>&6 | |
14192 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
14193 | else | |
14194 | echo "$ac_t""no" 1>&6 | |
14195 | fi | |
19bc6aad | 14196 | |
90dd450c | 14197 | fi |
19bc6aad | 14198 | |
21d1c967 GD |
14199 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
14200 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
24f5e003 | 14201 | echo "configure:14202: checking for shmat" >&5 |
21d1c967 GD |
14202 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14203 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14204 | else | |
14205 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 14206 | #line 14207 "configure" |
21d1c967 GD |
14207 | #include "confdefs.h" |
14208 | /* System header to define __stub macros and hopefully few prototypes, | |
14209 | which can conflict with char shmat(); below. */ | |
14210 | #include <assert.h> | |
14211 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14212 | /* We use char because int might match the return type of a gcc2 | |
14213 | builtin and then its argument prototype would still apply. */ | |
14214 | char shmat(); | |
19bc6aad | 14215 | |
21d1c967 | 14216 | int main() { |
90dd450c | 14217 | |
21d1c967 GD |
14218 | /* The GNU C library defines this for functions which it implements |
14219 | to always fail with ENOSYS. Some functions are actually named | |
14220 | something starting with __ and the normal name is an alias. */ | |
14221 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14222 | choke me | |
14223 | #else | |
14224 | shmat(); | |
14225 | #endif | |
90dd450c | 14226 | |
21d1c967 GD |
14227 | ; return 0; } |
14228 | EOF | |
24f5e003 | 14229 | if { (eval echo configure:14230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14230 | rm -rf conftest* |
14231 | eval "ac_cv_func_shmat=yes" | |
90dd450c | 14232 | else |
21d1c967 GD |
14233 | echo "configure: failed program was:" >&5 |
14234 | cat conftest.$ac_ext >&5 | |
14235 | rm -rf conftest* | |
14236 | eval "ac_cv_func_shmat=no" | |
19bc6aad | 14237 | fi |
21d1c967 | 14238 | rm -f conftest* |
19bc6aad | 14239 | fi |
21d1c967 GD |
14240 | |
14241 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14242 | echo "$ac_t""yes" 1>&6 | |
14243 | : | |
19bc6aad VZ |
14244 | else |
14245 | echo "$ac_t""no" 1>&6 | |
14246 | fi | |
19bc6aad | 14247 | |
21d1c967 GD |
14248 | if test $ac_cv_func_shmat = no; then |
14249 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
24f5e003 | 14250 | echo "configure:14251: checking for shmat in -lipc" >&5 |
21d1c967 GD |
14251 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14252 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9f8148b1 GD |
14253 | echo $ac_n "(cached) $ac_c" 1>&6 |
14254 | else | |
21d1c967 GD |
14255 | ac_save_LIBS="$LIBS" |
14256 | LIBS="-lipc $LIBS" | |
14257 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 14258 | #line 14259 "configure" |
21d1c967 GD |
14259 | #include "confdefs.h" |
14260 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14261 | /* We use char because int might match the return type of a gcc2 | |
14262 | builtin and then its argument prototype would still apply. */ | |
14263 | char shmat(); | |
14264 | ||
14265 | int main() { | |
14266 | shmat() | |
14267 | ; return 0; } | |
14268 | EOF | |
24f5e003 | 14269 | if { (eval echo configure:14270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
21d1c967 GD |
14270 | rm -rf conftest* |
14271 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9f8148b1 | 14272 | else |
21d1c967 GD |
14273 | echo "configure: failed program was:" >&5 |
14274 | cat conftest.$ac_ext >&5 | |
14275 | rm -rf conftest* | |
14276 | eval "ac_cv_lib_$ac_lib_var=no" | |
9f8148b1 | 14277 | fi |
21d1c967 GD |
14278 | rm -f conftest* |
14279 | LIBS="$ac_save_LIBS" | |
14280 | ||
9f8148b1 | 14281 | fi |
21d1c967 GD |
14282 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14283 | echo "$ac_t""yes" 1>&6 | |
14284 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
9f8148b1 GD |
14285 | else |
14286 | echo "$ac_t""no" 1>&6 | |
14287 | fi | |
90dd450c | 14288 | |
90dd450c | 14289 | fi |
21d1c967 | 14290 | fi |
10f2d63a | 14291 | |
21d1c967 GD |
14292 | # Check for libraries that X11R6 Xt/Xaw programs need. |
14293 | ac_save_LDFLAGS="$LDFLAGS" | |
14294 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
14295 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14296 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14297 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14298 | # These have to be linked with before -lX11, unlike the other | |
14299 | # libraries we check for below, so use a different variable. | |
14300 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
14301 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
24f5e003 | 14302 | echo "configure:14303: checking for IceConnectionNumber in -lICE" >&5 |
21d1c967 GD |
14303 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14304 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
29fd3c0c VS |
14305 | echo $ac_n "(cached) $ac_c" 1>&6 |
14306 | else | |
21d1c967 GD |
14307 | ac_save_LIBS="$LIBS" |
14308 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
14309 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 14310 | #line 14311 "configure" |
29fd3c0c | 14311 | #include "confdefs.h" |
21d1c967 GD |
14312 | /* Override any gcc2 internal prototype to avoid an error. */ |
14313 | /* We use char because int might match the return type of a gcc2 | |
14314 | builtin and then its argument prototype would still apply. */ | |
14315 | char IceConnectionNumber(); | |
14316 | ||
14317 | int main() { | |
14318 | IceConnectionNumber() | |
14319 | ; return 0; } | |
29fd3c0c | 14320 | EOF |
24f5e003 | 14321 | if { (eval echo configure:14322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
29fd3c0c | 14322 | rm -rf conftest* |
21d1c967 | 14323 | eval "ac_cv_lib_$ac_lib_var=yes" |
29fd3c0c | 14324 | else |
29fd3c0c VS |
14325 | echo "configure: failed program was:" >&5 |
14326 | cat conftest.$ac_ext >&5 | |
14327 | rm -rf conftest* | |
21d1c967 | 14328 | eval "ac_cv_lib_$ac_lib_var=no" |
29fd3c0c VS |
14329 | fi |
14330 | rm -f conftest* | |
21d1c967 GD |
14331 | LIBS="$ac_save_LIBS" |
14332 | ||
29fd3c0c | 14333 | fi |
21d1c967 | 14334 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
29fd3c0c | 14335 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 14336 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c VS |
14337 | else |
14338 | echo "$ac_t""no" 1>&6 | |
14339 | fi | |
21d1c967 GD |
14340 | |
14341 | LDFLAGS="$ac_save_LDFLAGS" | |
29fd3c0c | 14342 | |
10f2d63a VZ |
14343 | fi |
14344 | ||
21d1c967 GD |
14345 | |
14346 | if test "$no_x" = "yes"; then | |
14347 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
14348 | fi | |
14349 | ||
14350 | GUI_TK_LIBRARY="$X_LIBS" | |
14351 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14352 | AFMINSTALL=afminstall | |
14353 | COMPILED_X_PROGRAM=0 | |
14354 | ||
14355 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
24f5e003 | 14356 | echo "configure:14357: checking for Motif/Lesstif headers" >&5 |
21d1c967 GD |
14357 | |
14358 | ac_find_includes= | |
14359 | for ac_dir in $SEARCH_INCLUDE; | |
14360 | do | |
14361 | if test -f "$ac_dir/Xm/Xm.h"; then | |
14362 | ac_find_includes=$ac_dir | |
14363 | break | |
14364 | fi | |
14365 | done | |
14366 | ||
14367 | if test "$ac_find_includes" != "" ; then | |
14368 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
14369 | else | |
14370 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 14371 | #line 14372 "configure" |
10f2d63a | 14372 | #include "confdefs.h" |
21d1c967 GD |
14373 | |
14374 | #include <Xm/Xm.h> | |
14375 | ||
14376 | int main() { | |
14377 | ||
14378 | int version; | |
14379 | version = xmUseVersion; | |
14380 | ||
14381 | ; return 0; } | |
698dcdb6 | 14382 | EOF |
24f5e003 | 14383 | if { (eval echo configure:14384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14384 | rm -rf conftest* |
21d1c967 GD |
14385 | |
14386 | echo "$ac_t""found in default search path" 1>&6 | |
14387 | COMPILED_X_PROGRAM=1 | |
14388 | ||
10f2d63a | 14389 | else |
90dd450c VZ |
14390 | echo "configure: failed program was:" >&5 |
14391 | cat conftest.$ac_ext >&5 | |
698dcdb6 | 14392 | rm -rf conftest* |
21d1c967 GD |
14393 | |
14394 | echo "$ac_t""no" 1>&6 | |
14395 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
14396 | ||
14397 | ||
10f2d63a VZ |
14398 | fi |
14399 | rm -f conftest* | |
21d1c967 | 14400 | fi |
10f2d63a | 14401 | |
21d1c967 GD |
14402 | if test "$COMPILED_X_PROGRAM" = 0; then |
14403 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
24f5e003 | 14404 | echo "configure:14405: checking for Motif/Lesstif library" >&5 |
21d1c967 GD |
14405 | |
14406 | ac_find_libraries= | |
14407 | for ac_dir in $SEARCH_LIB; | |
14408 | do | |
14409 | for ac_extension in a so sl dylib; do | |
14410 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
14411 | ac_find_libraries=$ac_dir | |
14412 | break 2 | |
14413 | fi | |
14414 | done | |
14415 | done | |
14416 | ||
14417 | if test "$ac_find_libraries" != "" ; then | |
14418 | ||
14419 | ac_path_to_include=$ac_find_includes | |
14420 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
14421 | result=$? | |
14422 | if test $result = 0; then | |
14423 | ac_path_to_include="" | |
14424 | else | |
14425 | ac_path_to_include=" -I$ac_find_includes" | |
14426 | fi | |
14427 | ||
14428 | ||
14429 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
14430 | result=$? | |
14431 | if test $result = 0; then | |
14432 | ac_path_to_link="" | |
14433 | else | |
14434 | ac_path_to_link=" -L$ac_find_libraries" | |
14435 | fi | |
14436 | ||
14437 | ||
14438 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
14439 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
14440 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
14441 | else | |
14442 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 14443 | #line 14444 "configure" |
d836ee96 | 14444 | #include "confdefs.h" |
21d1c967 GD |
14445 | |
14446 | #include <Xm/Xm.h> | |
14447 | ||
14448 | int main() { | |
14449 | ||
14450 | int version; | |
14451 | version = xmUseVersion; | |
14452 | ||
14453 | ; return 0; } | |
d836ee96 | 14454 | EOF |
24f5e003 | 14455 | if { (eval echo configure:14456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 | 14456 | rm -rf conftest* |
21d1c967 GD |
14457 | |
14458 | echo "$ac_t""found in default search path" 1>&6 | |
14459 | COMPILED_X_PROGRAM=1 | |
14460 | ||
d836ee96 VZ |
14461 | else |
14462 | echo "configure: failed program was:" >&5 | |
14463 | cat conftest.$ac_ext >&5 | |
14464 | rm -rf conftest* | |
21d1c967 GD |
14465 | |
14466 | echo "$ac_t""no" 1>&6 | |
14467 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
14468 | ||
14469 | ||
d836ee96 VZ |
14470 | fi |
14471 | rm -f conftest* | |
21d1c967 GD |
14472 | fi |
14473 | fi | |
14474 | ||
14475 | xpm_link= | |
14476 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
24f5e003 | 14477 | echo "configure:14478: checking for Xpm library" >&5 |
21d1c967 GD |
14478 | |
14479 | ac_find_libraries= | |
14480 | for ac_dir in $SEARCH_LIB; | |
14481 | do | |
14482 | for ac_extension in a so sl dylib; do | |
14483 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14484 | ac_find_libraries=$ac_dir | |
14485 | break 2 | |
14486 | fi | |
14487 | done | |
14488 | done | |
14489 | ||
14490 | if test "$ac_find_libraries" != "" ; then | |
14491 | ||
14492 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
14493 | result=$? | |
14494 | if test $result = 0; then | |
14495 | ac_path_to_link="" | |
14496 | else | |
14497 | ac_path_to_link=" -L$ac_find_libraries" | |
14498 | fi | |
14499 | ||
14500 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
14501 | xpm_link=" -lXpm" | |
14502 | cat >> confdefs.h <<\EOF | |
14503 | #define wxHAVE_LIB_XPM 1 | |
d836ee96 | 14504 | EOF |
90dd450c | 14505 | |
21d1c967 GD |
14506 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
14507 | else | |
14508 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 14509 | #line 14510 "configure" |
d836ee96 | 14510 | #include "confdefs.h" |
21d1c967 GD |
14511 | |
14512 | #include <X11/xpm.h> | |
14513 | ||
14514 | int main() { | |
14515 | ||
14516 | int version; | |
14517 | version = XpmLibraryVersion(); | |
14518 | ||
14519 | ; return 0; } | |
d836ee96 | 14520 | EOF |
24f5e003 | 14521 | if { (eval echo configure:14522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 | 14522 | rm -rf conftest* |
21d1c967 GD |
14523 | |
14524 | xpm_link=" -lXpm" | |
14525 | cat >> confdefs.h <<\EOF | |
14526 | #define wxHAVE_LIB_XPM 1 | |
14527 | EOF | |
14528 | ||
14529 | echo "$ac_t""found in default search path" 1>&6 | |
14530 | COMPILED_X_PROGRAM=0 | |
14531 | ||
d836ee96 VZ |
14532 | else |
14533 | echo "configure: failed program was:" >&5 | |
14534 | cat conftest.$ac_ext >&5 | |
14535 | rm -rf conftest* | |
21d1c967 GD |
14536 | |
14537 | echo "$ac_t""no" 1>&6 | |
14538 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14539 | ||
14540 | ||
d836ee96 VZ |
14541 | fi |
14542 | rm -f conftest* | |
21d1c967 GD |
14543 | fi |
14544 | ||
17234b26 MB |
14545 | xt_needs_sm_ice= |
14546 | case "${host}" in | |
14547 | *-*-cygwin* ) | |
14548 | xt_needs_sm_ice=" -lSM -lICE" | |
14549 | ;; | |
14550 | esac | |
14551 | ||
14552 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt${xt_needs_sm_ice} -lX11" | |
21d1c967 GD |
14553 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
14554 | TOOLKIT=MOTIF | |
14555 | GUIDIST=MOTIF_DIST | |
14556 | fi | |
14557 | ||
14558 | if test "$wxUSE_MAC" = 1; then | |
14559 | if test "$wxUSE_PRECOMP" = "yes"; then | |
14560 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
14561 | else | |
14562 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
14563 | fi | |
14564 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
14565 | CFLAGS="$CFLAGS -fpascal-strings" | |
14566 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
14567 | ||
14568 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
14569 | TOOLKIT=MAC | |
14570 | GUIDIST=MACX_DIST | |
14571 | fi | |
14572 | ||
14573 | if test "$wxUSE_PM" = 1; then | |
14574 | TOOLKIT=PM | |
14575 | GUIDIST=GTK_DIST | |
14576 | fi | |
14577 | ||
14578 | if test "$TOOLKIT" = "PM" ; then | |
14579 | TOOLKIT_DIR="os2" | |
14580 | else | |
14581 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
14582 | fi | |
14583 | ||
14584 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
14585 | ||
14586 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
14587 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
14588 | ||
14589 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
14590 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
14591 | ||
14592 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
14593 | if test "$wxUSE_X11" = 1; then | |
14594 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
14595 | else | |
14596 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
14597 | fi | |
14598 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
14599 | WIDGET_SET=univ | |
14600 | else | |
14601 | ALL_OBJECTS="\$(GUIOBJS)" | |
14602 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14603 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14604 | fi | |
14605 | ||
14606 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
14607 | ||
14608 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
14609 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
14610 | fi | |
14611 | ||
14612 | if test "$wxUSE_HTML" = "yes"; then | |
14613 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
14614 | fi | |
14615 | ||
14616 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
14617 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
14618 | fi | |
14619 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
14620 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
14621 | fi | |
14622 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
14623 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
14624 | fi | |
14625 | ||
14626 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
14627 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 14628 | else |
21d1c967 GD |
14629 | USE_GUI=0 |
14630 | ||
14631 | TOOLKIT_DIR="base" | |
14632 | ||
14633 | if test "$USE_WIN32" = 1 ; then | |
14634 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
14635 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
14636 | ||
14637 | TOOLKIT="MSW" | |
14638 | else | |
14639 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
14640 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
14641 | fi | |
14642 | ||
14643 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14644 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14645 | ||
14646 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
14647 | ||
14648 | GUIDIST="BASE_DIST" | |
14649 | DISTDIR="wxBase" | |
d836ee96 VZ |
14650 | fi |
14651 | ||
21d1c967 GD |
14652 | |
14653 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
14654 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 14655 | fi |
21d1c967 GD |
14656 | |
14657 | if test "$wxUSE_REGEX" = "builtin" ; then | |
14658 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 14659 | fi |
21d1c967 GD |
14660 | if test "$wxUSE_ZLIB" = "builtin" ; then |
14661 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
14662 | fi |
14663 | ||
698dcdb6 | 14664 | |
21d1c967 GD |
14665 | if test "$wxUSE_OPENGL" = "yes"; then |
14666 | if test "$wxUSE_MAC" = 1; then | |
14667 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
14668 | elif test "$wxUSE_MSW" = 1; then | |
14669 | OPENGL_LIBS="-lopengl32 -lglu32" | |
14670 | else | |
14671 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
14672 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
24f5e003 | 14673 | echo "configure:14674: checking for GL/gl.h" >&5 |
90dd450c | 14674 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 14675 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14676 | else |
698dcdb6 | 14677 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 14678 | #line 14679 "configure" |
10f2d63a | 14679 | #include "confdefs.h" |
21d1c967 | 14680 | #include <GL/gl.h> |
698dcdb6 | 14681 | EOF |
90dd450c | 14682 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 14683 | { (eval echo configure:14684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
14684 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14685 | if test -z "$ac_err"; then | |
4f14bcd8 | 14686 | rm -rf conftest* |
90dd450c | 14687 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 14688 | else |
90dd450c | 14689 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14690 | echo "configure: failed program was:" >&5 |
14691 | cat conftest.$ac_ext >&5 | |
4f14bcd8 | 14692 | rm -rf conftest* |
90dd450c | 14693 | eval "ac_cv_header_$ac_safe=no" |
703e0a69 | 14694 | fi |
4f14bcd8 | 14695 | rm -f conftest* |
698dcdb6 | 14696 | fi |
90dd450c VZ |
14697 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14698 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
14699 | |
14700 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
24f5e003 | 14701 | echo "configure:14702: checking for -lGL" >&5 |
21d1c967 GD |
14702 | |
14703 | ac_find_libraries= | |
14704 | for ac_dir in $SEARCH_LIB; | |
14705 | do | |
14706 | for ac_extension in a so sl dylib; do | |
14707 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
14708 | ac_find_libraries=$ac_dir | |
14709 | break 2 | |
14710 | fi | |
14711 | done | |
14712 | done | |
14713 | ||
14714 | if test "$ac_find_libraries" != "" ; then | |
14715 | ||
14716 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
14717 | result=$? | |
14718 | if test $result = 0; then | |
14719 | ac_path_to_link="" | |
14720 | else | |
14721 | ac_path_to_link=" -L$ac_find_libraries" | |
14722 | fi | |
14723 | ||
14724 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
14725 | LDFLAGS_GL="$LDFLAGS" | |
14726 | else | |
14727 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14728 | fi | |
14729 | OPENGL_LIBS="-lGL -lGLU" | |
14730 | echo "$ac_t""yes" 1>&6 | |
14731 | else | |
14732 | echo "$ac_t""no" 1>&6 | |
14733 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
24f5e003 | 14734 | echo "configure:14735: checking for -lMesaGL" >&5 |
21d1c967 GD |
14735 | |
14736 | ac_find_libraries= | |
14737 | for ac_dir in $SEARCH_LIB; | |
14738 | do | |
14739 | for ac_extension in a so sl dylib; do | |
14740 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
14741 | ac_find_libraries=$ac_dir | |
14742 | break 2 | |
14743 | fi | |
14744 | done | |
14745 | done | |
14746 | ||
14747 | if test "$ac_find_libraries" != "" ; then | |
14748 | ||
14749 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
14750 | result=$? | |
14751 | if test $result = 0; then | |
14752 | ac_path_to_link="" | |
14753 | else | |
14754 | ac_path_to_link=" -L$ac_find_libraries" | |
14755 | fi | |
14756 | ||
14757 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14758 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
14759 | echo "$ac_t""yes" 1>&6 | |
14760 | else | |
14761 | echo "$ac_t""no" 1>&6 | |
14762 | fi | |
14763 | fi | |
14764 | ||
90dd450c VZ |
14765 | else |
14766 | echo "$ac_t""no" 1>&6 | |
14767 | fi | |
698dcdb6 VZ |
14768 | |
14769 | ||
21d1c967 GD |
14770 | if test "x$OPENGL_LIBS" = "x"; then |
14771 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
14772 | fi | |
14773 | fi | |
90dd450c | 14774 | |
21d1c967 GD |
14775 | if test "$wxUSE_OPENGL" = "yes"; then |
14776 | cat >> confdefs.h <<\EOF | |
14777 | #define wxUSE_OPENGL 1 | |
698dcdb6 | 14778 | EOF |
21d1c967 GD |
14779 | |
14780 | cat >> confdefs.h <<\EOF | |
14781 | #define wxUSE_GLCANVAS 1 | |
14782 | EOF | |
14783 | ||
14784 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
14785 | fi | |
10f2d63a | 14786 | fi |
21d1c967 GD |
14787 | |
14788 | if test -z "$TOOLKIT_VPATH" ; then | |
14789 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 14790 | fi |
21d1c967 GD |
14791 | |
14792 | if test -n "$TOOLKIT" ; then | |
14793 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
14794 | fi | |
14795 | ||
14796 | lib_unicode_suffix= | |
14797 | if test "$wxUSE_UNICODE" = "yes"; then | |
14798 | lib_unicode_suffix=u | |
90dd450c | 14799 | fi |
698dcdb6 | 14800 | |
21d1c967 GD |
14801 | lib_debug_suffix= |
14802 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
14803 | lib_debug_suffix=d | |
14804 | fi | |
698dcdb6 | 14805 | |
21d1c967 GD |
14806 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
14807 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
14808 | ||
14809 | if test "$cross_compiling" = "yes"; then | |
14810 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
14811 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
14812 | fi | |
14813 | ||
14814 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
14815 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
14816 | ||
14817 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14818 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14819 | ||
14820 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
14821 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14822 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
14823 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14824 | ||
14825 | case "${host}" in | |
14826 | *-*-cygwin* | *-*-mingw32* ) | |
14827 | ||
14828 | ||
14829 | ||
17234b26 | 14830 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
14831 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
14832 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
14833 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
14834 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14835 | else | |
14836 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14837 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14838 | fi | |
14839 | ;; | |
14840 | ||
14841 | *-*-darwin* ) | |
14842 | if test "$wxUSE_MAC" = 1; then | |
14843 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" | |
14844 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" | |
14845 | fi | |
14846 | ;; | |
14847 | esac | |
14848 | ||
14849 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
14850 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
14851 | ||
14852 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
14853 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
14854 | ||
14855 | if test "$wxUSE_OPENGL" = "yes"; then | |
14856 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
14857 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
14858 | fi | |
14859 | ||
14860 | ||
14861 | ||
14862 | if test "$wxUSE_SHARED" = "yes"; then | |
14863 | case "${host}" in | |
14864 | *-pc-os2_emx | *-pc-os2-emx | \ | |
14865 | *-pc-msdosdjgpp ) | |
14866 | wxUSE_SHARED=no | |
14867 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 | |
14868 | ;; | |
14869 | esac | |
14870 | fi | |
14871 | ||
14872 | if test "$wxUSE_SHARED" = "yes"; then | |
14873 | ||
14874 | if test "$wxUSE_OPENGL" = "yes"; then | |
14875 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
14876 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
14877 | else | |
14878 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
14879 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
14880 | fi | |
14881 | ||
14882 | if test "$GCC" = "yes"; then | |
14883 | PIC_FLAG="-fPIC" | |
14884 | fi | |
14885 | ||
14886 | SHARED_LD="${CXX} -shared -o" | |
14887 | ||
14888 | case "${host}" in | |
14889 | *-hp-hpux* ) | |
14890 | if test "$GCC" == "yes"; then | |
14891 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
14892 | else | |
14893 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
14894 | ||
14895 | SHARED_LD="${CXX} -b -o" | |
14896 | PIC_FLAG="+Z" | |
14897 | fi | |
14898 | ||
14899 | if test "$wxUSE_OPENGL" = "yes"; then | |
14900 | WX_ALL_INSTALLED="preinstall_gl" | |
14901 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
14902 | else | |
14903 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
14904 | fi | |
14905 | ;; | |
14906 | ||
14907 | *-*-linux* ) | |
14908 | if test "$GCC" != "yes"; then | |
14909 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
24f5e003 | 14910 | echo "configure:14911: checking for Intel compiler" >&5 |
21d1c967 | 14911 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
698dcdb6 | 14912 | echo $ac_n "(cached) $ac_c" 1>&6 |
698dcdb6 | 14913 | else |
21d1c967 GD |
14914 | |
14915 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 14916 | #line 14917 "configure" |
698dcdb6 | 14917 | #include "confdefs.h" |
90dd450c VZ |
14918 | |
14919 | int main() { | |
14920 | ||
21d1c967 GD |
14921 | #ifndef __INTEL_COMPILER |
14922 | #error Not icc | |
14923 | #endif | |
14924 | ||
90dd450c | 14925 | ; return 0; } |
698dcdb6 | 14926 | EOF |
24f5e003 | 14927 | if { (eval echo configure:14928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c | 14928 | rm -rf conftest* |
21d1c967 | 14929 | wx_cv_prog_icc=yes |
6232543b | 14930 | else |
698dcdb6 VZ |
14931 | echo "configure: failed program was:" >&5 |
14932 | cat conftest.$ac_ext >&5 | |
90dd450c | 14933 | rm -rf conftest* |
21d1c967 GD |
14934 | wx_cv_prog_icc=no |
14935 | ||
6232543b | 14936 | fi |
90dd450c | 14937 | rm -f conftest* |
21d1c967 | 14938 | |
698dcdb6 VZ |
14939 | fi |
14940 | ||
21d1c967 GD |
14941 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 |
14942 | if test "$wx_cv_prog_icc" = "yes"; then | |
14943 | PIC_FLAG="-KPIC" | |
14944 | fi | |
14945 | fi | |
14946 | ||
14947 | if test "$wxUSE_SONAME" = "yes" ; then | |
14948 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
14949 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
14950 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
14951 | fi | |
14952 | ;; | |
14953 | ||
14954 | *-*-solaris2* ) | |
14955 | if test "$GCC" = yes ; then | |
14956 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
14957 | else | |
14958 | SHARED_LD="${CXX} -G -o" | |
14959 | PIC_FLAG="-KPIC" | |
14960 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
14961 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
14962 | fi | |
14963 | ;; | |
14964 | ||
14965 | *-*-darwin* ) | |
14966 | CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL" | |
14967 | CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL" | |
14968 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" | |
14969 | PIC_FLAG="-dynamic -fPIC" | |
14970 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
14971 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
14972 | ;; | |
14973 | ||
14974 | *-*-aix* ) | |
321d2b14 VZ |
14975 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
14976 | set dummy makeC++SharedLib; ac_word=$2 | |
14977 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24f5e003 | 14978 | echo "configure:14979: checking for $ac_word" >&5 |
321d2b14 VZ |
14979 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
14980 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14981 | else | |
14982 | if test -n "$AIX_CXX_LD"; then | |
14983 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
14984 | else | |
14985 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14986 | ac_dummy="$PATH" | |
14987 | for ac_dir in $ac_dummy; do | |
14988 | test -z "$ac_dir" && ac_dir=. | |
14989 | if test -f $ac_dir/$ac_word; then | |
14990 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
14991 | break | |
14992 | fi | |
14993 | done | |
14994 | IFS="$ac_save_ifs" | |
14995 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
14996 | fi | |
14997 | fi | |
14998 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" | |
14999 | if test -n "$AIX_CXX_LD"; then | |
15000 | echo "$ac_t""$AIX_CXX_LD" 1>&6 | |
15001 | else | |
15002 | echo "$ac_t""no" 1>&6 | |
15003 | fi | |
15004 | ||
15005 | ||
15006 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" | |
21d1c967 GD |
15007 | ;; |
15008 | ||
15009 | *-*-cygwin* | *-*-mingw32* ) | |
15010 | ||
15011 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
15012 | ||
15013 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
15014 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
15015 | ||
15016 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
15017 | ||
15018 | if test "$wxUSE_OPENGL" = "yes"; then | |
15019 | WX_ALL_INSTALLED="preinstall_gl" | |
15020 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15021 | else | |
15022 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15023 | fi | |
15024 | ;; | |
15025 | ||
15026 | *-*-beos* ) | |
15027 | SHARED_LD="${LD} -shared -o" | |
15028 | ;; | |
15029 | ||
15030 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
15031 | *-*-sunos4* | \ | |
15032 | *-*-irix5* | *-*-irix6* | \ | |
15033 | *-*-osf* | \ | |
15034 | *-*-dgux5* | \ | |
15035 | *-*-sysv5* ) | |
15036 | ;; | |
15037 | ||
15038 | *) | |
15039 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } | |
15040 | esac | |
15041 | ||
15042 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
15043 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
15044 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
15045 | fi | |
15046 | ||
15047 | WX_TARGET_LIBRARY_TYPE="so" | |
15048 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 15049 | fi |
10f2d63a | 15050 | |
21d1c967 GD |
15051 | if test "$wxUSE_SHARED" = "no"; then |
15052 | ||
15053 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
15054 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15055 | fi | |
15056 | ||
15057 | if test "$wxUSE_MAC" = 1; then | |
15058 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15059 | fi | |
15060 | ||
15061 | if test "$wxUSE_OPENGL" = "yes"; then | |
15062 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
15063 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
15064 | else | |
15065 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
15066 | fi | |
15067 | ||
15068 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
15069 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
15070 | ||
15071 | WX_TARGET_LIBRARY_TYPE="a" | |
15072 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
90dd450c | 15073 | fi |
1e487827 | 15074 | |
21d1c967 GD |
15075 | if test "$wxUSE_MAC" = 1; then |
15076 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
15077 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
15078 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
15079 | # Extract the first word of "Rez", so it can be a program name with args. | |
15080 | set dummy Rez; ac_word=$2 | |
15081 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24f5e003 | 15082 | echo "configure:15083: checking for $ac_word" >&5 |
21d1c967 | 15083 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
698dcdb6 | 15084 | echo $ac_n "(cached) $ac_c" 1>&6 |
b93d0d08 | 15085 | else |
21d1c967 GD |
15086 | if test -n "$RESCOMP"; then |
15087 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 15088 | else |
21d1c967 GD |
15089 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15090 | ac_dummy="$PATH" | |
15091 | for ac_dir in $ac_dummy; do | |
15092 | test -z "$ac_dir" && ac_dir=. | |
15093 | if test -f $ac_dir/$ac_word; then | |
15094 | ac_cv_prog_RESCOMP="Rez" | |
15095 | break | |
15096 | fi | |
15097 | done | |
15098 | IFS="$ac_save_ifs" | |
15099 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
b93d0d08 | 15100 | fi |
b93d0d08 | 15101 | fi |
21d1c967 GD |
15102 | RESCOMP="$ac_cv_prog_RESCOMP" |
15103 | if test -n "$RESCOMP"; then | |
15104 | echo "$ac_t""$RESCOMP" 1>&6 | |
90dd450c VZ |
15105 | else |
15106 | echo "$ac_t""no" 1>&6 | |
15107 | fi | |
b93d0d08 | 15108 | |
21d1c967 GD |
15109 | # Extract the first word of "DeRez", so it can be a program name with args. |
15110 | set dummy DeRez; ac_word=$2 | |
15111 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24f5e003 | 15112 | echo "configure:15113: checking for $ac_word" >&5 |
21d1c967 | 15113 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
698dcdb6 | 15114 | echo $ac_n "(cached) $ac_c" 1>&6 |
3a922bb4 | 15115 | else |
21d1c967 GD |
15116 | if test -n "$DEREZ"; then |
15117 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 15118 | else |
21d1c967 GD |
15119 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15120 | ac_dummy="$PATH" | |
15121 | for ac_dir in $ac_dummy; do | |
15122 | test -z "$ac_dir" && ac_dir=. | |
15123 | if test -f $ac_dir/$ac_word; then | |
15124 | ac_cv_prog_DEREZ="DeRez" | |
15125 | break | |
15126 | fi | |
15127 | done | |
15128 | IFS="$ac_save_ifs" | |
15129 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
3a922bb4 | 15130 | fi |
90dd450c | 15131 | fi |
21d1c967 GD |
15132 | DEREZ="$ac_cv_prog_DEREZ" |
15133 | if test -n "$DEREZ"; then | |
15134 | echo "$ac_t""$DEREZ" 1>&6 | |
90dd450c VZ |
15135 | else |
15136 | echo "$ac_t""no" 1>&6 | |
3a922bb4 | 15137 | fi |
698dcdb6 | 15138 | |
21d1c967 GD |
15139 | MACOSX_BUNDLE="bundle" |
15140 | if test "$wxUSE_SHARED" = "yes"; then | |
15141 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)" | |
15142 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o" | |
15143 | else | |
15144 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
15145 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
15146 | fi | |
15147 | else | |
15148 | if test "$wxUSE_PM" = 1; then | |
15149 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 15150 | fi |
4f14bcd8 | 15151 | fi |
10f2d63a | 15152 | |
703e0a69 | 15153 | |
90dd450c | 15154 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
24f5e003 | 15155 | echo "configure:15156: checking for ANSI C header files" >&5 |
90dd450c | 15156 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
698dcdb6 VZ |
15157 | echo $ac_n "(cached) $ac_c" 1>&6 |
15158 | else | |
15159 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 15160 | #line 15161 "configure" |
10f2d63a | 15161 | #include "confdefs.h" |
90dd450c VZ |
15162 | #include <stdlib.h> |
15163 | #include <stdarg.h> | |
15164 | #include <string.h> | |
15165 | #include <float.h> | |
698dcdb6 | 15166 | EOF |
90dd450c | 15167 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 15168 | { (eval echo configure:15169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
90dd450c VZ |
15169 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15170 | if test -z "$ac_err"; then | |
15171 | rm -rf conftest* | |
15172 | ac_cv_header_stdc=yes | |
10f2d63a | 15173 | else |
90dd450c | 15174 | echo "$ac_err" >&5 |
698dcdb6 | 15175 | echo "configure: failed program was:" >&5 |
10f2d63a | 15176 | cat conftest.$ac_ext >&5 |
90dd450c VZ |
15177 | rm -rf conftest* |
15178 | ac_cv_header_stdc=no | |
10f2d63a | 15179 | fi |
90dd450c VZ |
15180 | rm -f conftest* |
15181 | ||
15182 | if test $ac_cv_header_stdc = yes; then | |
15183 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15184 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 15185 | #line 15186 "configure" |
90dd450c VZ |
15186 | #include "confdefs.h" |
15187 | #include <string.h> | |
15188 | EOF | |
15189 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15190 | egrep "memchr" >/dev/null 2>&1; then | |
15191 | : | |
15192 | else | |
15193 | rm -rf conftest* | |
15194 | ac_cv_header_stdc=no | |
10f2d63a | 15195 | fi |
90dd450c | 15196 | rm -f conftest* |
10f2d63a | 15197 | |
4f14bcd8 | 15198 | fi |
90dd450c VZ |
15199 | |
15200 | if test $ac_cv_header_stdc = yes; then | |
15201 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15202 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 15203 | #line 15204 "configure" |
90dd450c VZ |
15204 | #include "confdefs.h" |
15205 | #include <stdlib.h> | |
10f2d63a | 15206 | EOF |
90dd450c VZ |
15207 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15208 | egrep "free" >/dev/null 2>&1; then | |
15209 | : | |
15210 | else | |
15211 | rm -rf conftest* | |
15212 | ac_cv_header_stdc=no | |
15213 | fi | |
15214 | rm -f conftest* | |
10f2d63a | 15215 | |
90dd450c | 15216 | fi |
698dcdb6 | 15217 | |
90dd450c VZ |
15218 | if test $ac_cv_header_stdc = yes; then |
15219 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15220 | if test "$cross_compiling" = yes; then | |
15221 | : | |
4f14bcd8 GD |
15222 | else |
15223 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 15224 | #line 15225 "configure" |
10f2d63a | 15225 | #include "confdefs.h" |
90dd450c VZ |
15226 | #include <ctype.h> |
15227 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15228 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15229 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15230 | int main () { int i; for (i = 0; i < 256; i++) | |
15231 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
15232 | exit (0); } | |
15233 | ||
698dcdb6 | 15234 | EOF |
24f5e003 | 15235 | if { (eval echo configure:15236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 | 15236 | then |
90dd450c | 15237 | : |
10f2d63a | 15238 | else |
698dcdb6 VZ |
15239 | echo "configure: failed program was:" >&5 |
15240 | cat conftest.$ac_ext >&5 | |
4f14bcd8 | 15241 | rm -fr conftest* |
90dd450c | 15242 | ac_cv_header_stdc=no |
10f2d63a | 15243 | fi |
4f14bcd8 | 15244 | rm -fr conftest* |
10f2d63a | 15245 | fi |
698dcdb6 | 15246 | |
4f14bcd8 | 15247 | fi |
90dd450c | 15248 | fi |
10f2d63a | 15249 | |
90dd450c VZ |
15250 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
15251 | if test $ac_cv_header_stdc = yes; then | |
15252 | cat >> confdefs.h <<\EOF | |
15253 | #define STDC_HEADERS 1 | |
15254 | EOF | |
698dcdb6 | 15255 | |
90dd450c | 15256 | fi |
9d353d4a | 15257 | |
90dd450c | 15258 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
24f5e003 | 15259 | echo "configure:15260: checking for mode_t" >&5 |
90dd450c | 15260 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
9d353d4a | 15261 | echo $ac_n "(cached) $ac_c" 1>&6 |
9d353d4a RR |
15262 | else |
15263 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 15264 | #line 15265 "configure" |
9d353d4a | 15265 | #include "confdefs.h" |
90dd450c VZ |
15266 | #include <sys/types.h> |
15267 | #if STDC_HEADERS | |
15268 | #include <stdlib.h> | |
15269 | #include <stddef.h> | |
15270 | #endif | |
9d353d4a | 15271 | EOF |
90dd450c VZ |
15272 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15273 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15274 | rm -rf conftest* | |
15275 | ac_cv_type_mode_t=yes | |
9d353d4a | 15276 | else |
90dd450c VZ |
15277 | rm -rf conftest* |
15278 | ac_cv_type_mode_t=no | |
9d353d4a | 15279 | fi |
90dd450c | 15280 | rm -f conftest* |
9d353d4a RR |
15281 | |
15282 | fi | |
90dd450c VZ |
15283 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
15284 | if test $ac_cv_type_mode_t = no; then | |
15285 | cat >> confdefs.h <<\EOF | |
15286 | #define mode_t int | |
9d353d4a RR |
15287 | EOF |
15288 | ||
90dd450c | 15289 | fi |
9d353d4a | 15290 | |
90dd450c | 15291 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
24f5e003 | 15292 | echo "configure:15293: checking for off_t" >&5 |
90dd450c | 15293 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
698dcdb6 | 15294 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
15295 | else |
15296 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 15297 | #line 15298 "configure" |
10f2d63a | 15298 | #include "confdefs.h" |
90dd450c VZ |
15299 | #include <sys/types.h> |
15300 | #if STDC_HEADERS | |
15301 | #include <stdlib.h> | |
15302 | #include <stddef.h> | |
15303 | #endif | |
698dcdb6 | 15304 | EOF |
90dd450c VZ |
15305 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15306 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15307 | rm -rf conftest* | |
15308 | ac_cv_type_off_t=yes | |
698dcdb6 | 15309 | else |
90dd450c VZ |
15310 | rm -rf conftest* |
15311 | ac_cv_type_off_t=no | |
698dcdb6 | 15312 | fi |
90dd450c | 15313 | rm -f conftest* |
698dcdb6 VZ |
15314 | |
15315 | fi | |
90dd450c VZ |
15316 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
15317 | if test $ac_cv_type_off_t = no; then | |
15318 | cat >> confdefs.h <<\EOF | |
15319 | #define off_t long | |
10f2d63a VZ |
15320 | EOF |
15321 | ||
90dd450c | 15322 | fi |
10f2d63a | 15323 | |
90dd450c | 15324 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
24f5e003 | 15325 | echo "configure:15326: checking for pid_t" >&5 |
90dd450c | 15326 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
698dcdb6 | 15327 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
15328 | else |
15329 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 15330 | #line 15331 "configure" |
10f2d63a | 15331 | #include "confdefs.h" |
90dd450c VZ |
15332 | #include <sys/types.h> |
15333 | #if STDC_HEADERS | |
15334 | #include <stdlib.h> | |
15335 | #include <stddef.h> | |
15336 | #endif | |
698dcdb6 | 15337 | EOF |
90dd450c VZ |
15338 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15339 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15340 | rm -rf conftest* | |
15341 | ac_cv_type_pid_t=yes | |
698dcdb6 | 15342 | else |
90dd450c VZ |
15343 | rm -rf conftest* |
15344 | ac_cv_type_pid_t=no | |
4f14bcd8 | 15345 | fi |
90dd450c | 15346 | rm -f conftest* |
698dcdb6 VZ |
15347 | |
15348 | fi | |
90dd450c VZ |
15349 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
15350 | if test $ac_cv_type_pid_t = no; then | |
15351 | cat >> confdefs.h <<\EOF | |
15352 | #define pid_t int | |
10f2d63a VZ |
15353 | EOF |
15354 | ||
90dd450c | 15355 | fi |
18dbb1f6 | 15356 | |
90dd450c | 15357 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
24f5e003 | 15358 | echo "configure:15359: checking for size_t" >&5 |
90dd450c | 15359 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
18dbb1f6 | 15360 | echo $ac_n "(cached) $ac_c" 1>&6 |
90dd450c VZ |
15361 | else |
15362 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 15363 | #line 15364 "configure" |
4f14bcd8 GD |
15364 | #include "confdefs.h" |
15365 | #include <sys/types.h> | |
90dd450c VZ |
15366 | #if STDC_HEADERS |
15367 | #include <stdlib.h> | |
15368 | #include <stddef.h> | |
4f14bcd8 | 15369 | #endif |
18dbb1f6 | 15370 | EOF |
90dd450c VZ |
15371 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15372 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
18dbb1f6 | 15373 | rm -rf conftest* |
90dd450c | 15374 | ac_cv_type_size_t=yes |
18dbb1f6 | 15375 | else |
18dbb1f6 | 15376 | rm -rf conftest* |
90dd450c | 15377 | ac_cv_type_size_t=no |
18dbb1f6 VZ |
15378 | fi |
15379 | rm -f conftest* | |
90dd450c | 15380 | |
1e487827 | 15381 | fi |
90dd450c VZ |
15382 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
15383 | if test $ac_cv_type_size_t = no; then | |
15384 | cat >> confdefs.h <<\EOF | |
15385 | #define size_t unsigned | |
15386 | EOF | |
15387 | ||
15388 | fi | |
15389 | ||
15390 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
24f5e003 | 15391 | echo "configure:15392: checking for uid_t in sys/types.h" >&5 |
90dd450c VZ |
15392 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
15393 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a VZ |
15394 | else |
15395 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 15396 | #line 15397 "configure" |
b3e8d00a | 15397 | #include "confdefs.h" |
90dd450c | 15398 | #include <sys/types.h> |
b3e8d00a | 15399 | EOF |
90dd450c VZ |
15400 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15401 | egrep "uid_t" >/dev/null 2>&1; then | |
15402 | rm -rf conftest* | |
15403 | ac_cv_type_uid_t=yes | |
b3e8d00a | 15404 | else |
90dd450c VZ |
15405 | rm -rf conftest* |
15406 | ac_cv_type_uid_t=no | |
b3e8d00a | 15407 | fi |
90dd450c | 15408 | rm -f conftest* |
b3e8d00a | 15409 | |
4f14bcd8 GD |
15410 | fi |
15411 | ||
90dd450c VZ |
15412 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
15413 | if test $ac_cv_type_uid_t = no; then | |
4f14bcd8 | 15414 | cat >> confdefs.h <<\EOF |
90dd450c VZ |
15415 | #define uid_t int |
15416 | EOF | |
15417 | ||
15418 | cat >> confdefs.h <<\EOF | |
15419 | #define gid_t int | |
b3e8d00a | 15420 | EOF |
4f14bcd8 | 15421 | |
b3e8d00a | 15422 | fi |
b3e8d00a VZ |
15423 | |
15424 | ||
90dd450c VZ |
15425 | |
15426 | ac_ext=C | |
4f14bcd8 GD |
15427 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15428 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15429 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15430 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15431 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c VZ |
15432 | |
15433 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 | |
24f5e003 | 15434 | echo "configure:15435: checking if size_t is unsigned int" >&5 |
90dd450c VZ |
15435 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
15436 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15437 | else | |
15438 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 15439 | #line 15440 "configure" |
10f2d63a | 15440 | #include "confdefs.h" |
90dd450c VZ |
15441 | #include <stddef.h> |
15442 | int main() { | |
15443 | ||
15444 | return 0; } | |
15445 | ||
15446 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
15447 | ||
15448 | int bar() { | |
15449 | ||
15450 | ; return 0; } | |
698dcdb6 | 15451 | EOF |
24f5e003 | 15452 | if { (eval echo configure:15453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
90dd450c VZ |
15453 | rm -rf conftest* |
15454 | wx_cv_size_t_is_uint=no | |
698dcdb6 VZ |
15455 | else |
15456 | echo "configure: failed program was:" >&5 | |
15457 | cat conftest.$ac_ext >&5 | |
15458 | rm -rf conftest* | |
90dd450c VZ |
15459 | wx_cv_size_t_is_uint=yes |
15460 | ||
698dcdb6 VZ |
15461 | fi |
15462 | rm -f conftest* | |
90dd450c | 15463 | |
698dcdb6 VZ |
15464 | fi |
15465 | ||
90dd450c | 15466 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 |
4f14bcd8 | 15467 | |
90dd450c | 15468 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
4f14bcd8 | 15469 | cat >> confdefs.h <<\EOF |
90dd450c | 15470 | #define wxSIZE_T_IS_UINT 1 |
698dcdb6 VZ |
15471 | EOF |
15472 | ||
90dd450c VZ |
15473 | else |
15474 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
24f5e003 | 15475 | echo "configure:15476: checking if size_t is unsigned long" >&5 |
90dd450c | 15476 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
698dcdb6 VZ |
15477 | echo $ac_n "(cached) $ac_c" 1>&6 |
15478 | else | |
15479 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 15480 | #line 15481 "configure" |
10f2d63a | 15481 | #include "confdefs.h" |
90dd450c VZ |
15482 | #include <stddef.h> |
15483 | int main() { | |
15484 | ||
15485 | return 0; } | |
15486 | ||
15487 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
15488 | ||
15489 | int bar() { | |
15490 | ||
15491 | ; return 0; } | |
698dcdb6 | 15492 | EOF |
24f5e003 | 15493 | if { (eval echo configure:15494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15494 | rm -rf conftest* |
90dd450c | 15495 | wx_cv_size_t_is_ulong=no |
698dcdb6 VZ |
15496 | else |
15497 | echo "configure: failed program was:" >&5 | |
15498 | cat conftest.$ac_ext >&5 | |
15499 | rm -rf conftest* | |
90dd450c VZ |
15500 | wx_cv_size_t_is_ulong=yes |
15501 | ||
698dcdb6 VZ |
15502 | fi |
15503 | rm -f conftest* | |
90dd450c | 15504 | |
698dcdb6 | 15505 | fi |
10f2d63a | 15506 | |
90dd450c | 15507 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 |
10f2d63a | 15508 | |
90dd450c VZ |
15509 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
15510 | cat >> confdefs.h <<\EOF | |
15511 | #define wxSIZE_T_IS_ULONG 1 | |
4f14bcd8 GD |
15512 | EOF |
15513 | ||
15514 | fi | |
90dd450c | 15515 | fi |
1e487827 | 15516 | |
90dd450c | 15517 | ac_ext=c |
4f14bcd8 GD |
15518 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
15519 | ac_cpp='$CPP $CPPFLAGS' | |
15520 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15521 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15522 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 15523 | |
698dcdb6 VZ |
15524 | |
15525 | ||
90dd450c | 15526 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
24f5e003 | 15527 | echo "configure:15528: checking for pw_gecos in struct passwd" >&5 |
90dd450c | 15528 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
698dcdb6 VZ |
15529 | echo $ac_n "(cached) $ac_c" 1>&6 |
15530 | else | |
15531 | ||
90dd450c | 15532 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 15533 | #line 15534 "configure" |
4f14bcd8 | 15534 | #include "confdefs.h" |
90dd450c | 15535 | #include <pwd.h> |
4f14bcd8 | 15536 | int main() { |
f6bcfd97 | 15537 | |
90dd450c VZ |
15538 | char *p; |
15539 | struct passwd *pw; | |
15540 | p = pw->pw_gecos; | |
15541 | ||
698dcdb6 VZ |
15542 | ; return 0; } |
15543 | EOF | |
24f5e003 | 15544 | if { (eval echo configure:15545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15545 | rm -rf conftest* |
15546 | ||
90dd450c VZ |
15547 | wx_cv_struct_pw_gecos=yes |
15548 | ||
10f2d63a | 15549 | else |
698dcdb6 VZ |
15550 | echo "configure: failed program was:" >&5 |
15551 | cat conftest.$ac_ext >&5 | |
15552 | rm -rf conftest* | |
15553 | ||
90dd450c VZ |
15554 | wx_cv_struct_pw_gecos=no |
15555 | ||
15556 | ||
4f14bcd8 GD |
15557 | fi |
15558 | rm -f conftest* | |
90dd450c | 15559 | |
c521c494 | 15560 | |
4f14bcd8 | 15561 | fi |
c521c494 | 15562 | |
90dd450c | 15563 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 |
c521c494 | 15564 | |
90dd450c | 15565 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
4f14bcd8 | 15566 | cat >> confdefs.h <<\EOF |
90dd450c | 15567 | #define HAVE_PW_GECOS 1 |
4f14bcd8 | 15568 | EOF |
c521c494 | 15569 | |
90dd450c | 15570 | fi |
4f14bcd8 GD |
15571 | |
15572 | ||
d29b553b VZ |
15573 | WCHAR_OK=0 |
15574 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
15575 | WCHAR_LINK= | |
7a30264c VZ |
15576 | for ac_func in wcslen |
15577 | do | |
15578 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
24f5e003 | 15579 | echo "configure:15580: checking for $ac_func" >&5 |
7a30264c | 15580 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4f14bcd8 GD |
15581 | echo $ac_n "(cached) $ac_c" 1>&6 |
15582 | else | |
7a30264c | 15583 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 15584 | #line 15585 "configure" |
4f14bcd8 | 15585 | #include "confdefs.h" |
7a30264c VZ |
15586 | /* System header to define __stub macros and hopefully few prototypes, |
15587 | which can conflict with char $ac_func(); below. */ | |
15588 | #include <assert.h> | |
4f14bcd8 GD |
15589 | /* Override any gcc2 internal prototype to avoid an error. */ |
15590 | /* We use char because int might match the return type of a gcc2 | |
15591 | builtin and then its argument prototype would still apply. */ | |
7a30264c | 15592 | char $ac_func(); |
4f14bcd8 GD |
15593 | |
15594 | int main() { | |
7a30264c VZ |
15595 | |
15596 | /* The GNU C library defines this for functions which it implements | |
15597 | to always fail with ENOSYS. Some functions are actually named | |
15598 | something starting with __ and the normal name is an alias. */ | |
15599 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15600 | choke me | |
15601 | #else | |
15602 | $ac_func(); | |
15603 | #endif | |
15604 | ||
698dcdb6 VZ |
15605 | ; return 0; } |
15606 | EOF | |
24f5e003 | 15607 | if { (eval echo configure:15608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15608 | rm -rf conftest* |
7a30264c | 15609 | eval "ac_cv_func_$ac_func=yes" |
c521c494 | 15610 | else |
698dcdb6 VZ |
15611 | echo "configure: failed program was:" >&5 |
15612 | cat conftest.$ac_ext >&5 | |
15613 | rm -rf conftest* | |
7a30264c | 15614 | eval "ac_cv_func_$ac_func=no" |
6232543b | 15615 | fi |
698dcdb6 | 15616 | rm -f conftest* |
1e487827 | 15617 | fi |
7a30264c VZ |
15618 | |
15619 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4f14bcd8 | 15620 | echo "$ac_t""yes" 1>&6 |
7a30264c VZ |
15621 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15622 | cat >> confdefs.h <<EOF | |
15623 | #define $ac_tr_func 1 | |
15624 | EOF | |
15625 | ||
15626 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 15627 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15628 | EOF |
15629 | ||
7a30264c VZ |
15630 | WCHAR_OK=1 |
15631 | ||
9d8deca0 | 15632 | else |
4f14bcd8 | 15633 | echo "$ac_t""no" 1>&6 |
7a30264c VZ |
15634 | fi |
15635 | done | |
9d8deca0 | 15636 | |
7a30264c VZ |
15637 | |
15638 | if test "$WCHAR_OK" = 0; then | |
15639 | if test "$TOOLKIT" = "MSW"; then | |
15640 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 | |
24f5e003 | 15641 | echo "configure:15642: checking for wcslen in -lmsvcrt" >&5 |
7a30264c | 15642 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
4f14bcd8 | 15643 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
698dcdb6 | 15644 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15645 | else |
4f14bcd8 | 15646 | ac_save_LIBS="$LIBS" |
7a30264c | 15647 | LIBS="-lmsvcrt $LIBS" |
4f14bcd8 | 15648 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 15649 | #line 15650 "configure" |
10f2d63a | 15650 | #include "confdefs.h" |
4f14bcd8 GD |
15651 | /* Override any gcc2 internal prototype to avoid an error. */ |
15652 | /* We use char because int might match the return type of a gcc2 | |
15653 | builtin and then its argument prototype would still apply. */ | |
15654 | char wcslen(); | |
10f2d63a | 15655 | |
698dcdb6 | 15656 | int main() { |
4f14bcd8 | 15657 | wcslen() |
698dcdb6 VZ |
15658 | ; return 0; } |
15659 | EOF | |
24f5e003 | 15660 | if { (eval echo configure:15661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15661 | rm -rf conftest* |
4f14bcd8 | 15662 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 15663 | else |
698dcdb6 VZ |
15664 | echo "configure: failed program was:" >&5 |
15665 | cat conftest.$ac_ext >&5 | |
15666 | rm -rf conftest* | |
4f14bcd8 | 15667 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 15668 | fi |
698dcdb6 | 15669 | rm -f conftest* |
4f14bcd8 | 15670 | LIBS="$ac_save_LIBS" |
703e0a69 | 15671 | |
1e487827 | 15672 | fi |
4f14bcd8 GD |
15673 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15674 | echo "$ac_t""yes" 1>&6 | |
15675 | ||
7a30264c | 15676 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 15677 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15678 | EOF |
15679 | ||
7a30264c VZ |
15680 | WCHAR_OK=1 |
15681 | ||
4f14bcd8 GD |
15682 | else |
15683 | echo "$ac_t""no" 1>&6 | |
d29b553b | 15684 | fi |
698dcdb6 | 15685 | |
7a30264c VZ |
15686 | else |
15687 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
24f5e003 | 15688 | echo "configure:15689: checking for wcslen in -lw" >&5 |
7a30264c | 15689 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
4f14bcd8 | 15690 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
698dcdb6 VZ |
15691 | echo $ac_n "(cached) $ac_c" 1>&6 |
15692 | else | |
4f14bcd8 | 15693 | ac_save_LIBS="$LIBS" |
7a30264c | 15694 | LIBS="-lw $LIBS" |
4f14bcd8 | 15695 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 15696 | #line 15697 "configure" |
95c8801c | 15697 | #include "confdefs.h" |
4f14bcd8 GD |
15698 | /* Override any gcc2 internal prototype to avoid an error. */ |
15699 | /* We use char because int might match the return type of a gcc2 | |
15700 | builtin and then its argument prototype would still apply. */ | |
15701 | char wcslen(); | |
95c8801c | 15702 | |
4f14bcd8 GD |
15703 | int main() { |
15704 | wcslen() | |
698dcdb6 VZ |
15705 | ; return 0; } |
15706 | EOF | |
24f5e003 | 15707 | if { (eval echo configure:15708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15708 | rm -rf conftest* |
4f14bcd8 | 15709 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 15710 | else |
698dcdb6 VZ |
15711 | echo "configure: failed program was:" >&5 |
15712 | cat conftest.$ac_ext >&5 | |
15713 | rm -rf conftest* | |
4f14bcd8 | 15714 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 15715 | fi |
698dcdb6 | 15716 | rm -f conftest* |
4f14bcd8 | 15717 | LIBS="$ac_save_LIBS" |
95c8801c VS |
15718 | |
15719 | fi | |
4f14bcd8 GD |
15720 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
15721 | echo "$ac_t""yes" 1>&6 | |
15722 | ||
7a30264c | 15723 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
15724 | #define HAVE_WCSLEN 1 |
15725 | EOF | |
698dcdb6 | 15726 | |
7a30264c VZ |
15727 | WCHAR_LINK=" -lw" |
15728 | WCHAR_OK=1 | |
15729 | ||
4f14bcd8 GD |
15730 | else |
15731 | echo "$ac_t""no" 1>&6 | |
15732 | fi | |
10f2d63a | 15733 | |
7a30264c | 15734 | fi |
d29b553b | 15735 | fi |
4f14bcd8 | 15736 | fi |
95c8801c | 15737 | |
d29b553b VZ |
15738 | if test "$WCHAR_OK" = 1; then |
15739 | cat >> confdefs.h <<\EOF | |
15740 | #define wxUSE_WCHAR_T 1 | |
15741 | EOF | |
10f2d63a | 15742 | |
1e487827 | 15743 | |
d29b553b | 15744 | for ac_func in wcsrtombs |
eb4efbdc | 15745 | do |
698dcdb6 | 15746 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24f5e003 | 15747 | echo "configure:15748: checking for $ac_func" >&5 |
698dcdb6 VZ |
15748 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15750 | else | |
15751 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 15752 | #line 15753 "configure" |
eb4efbdc VZ |
15753 | #include "confdefs.h" |
15754 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15755 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
15756 | #include <assert.h> |
15757 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15758 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15759 | builtin and then its argument prototype would still apply. */ |
15760 | char $ac_func(); | |
15761 | ||
15762 | int main() { | |
eb4efbdc VZ |
15763 | |
15764 | /* The GNU C library defines this for functions which it implements | |
15765 | to always fail with ENOSYS. Some functions are actually named | |
15766 | something starting with __ and the normal name is an alias. */ | |
15767 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15768 | choke me | |
15769 | #else | |
698dcdb6 | 15770 | $ac_func(); |
eb4efbdc VZ |
15771 | #endif |
15772 | ||
698dcdb6 | 15773 | ; return 0; } |
eb4efbdc | 15774 | EOF |
24f5e003 | 15775 | if { (eval echo configure:15776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15776 | rm -rf conftest* |
15777 | eval "ac_cv_func_$ac_func=yes" | |
15778 | else | |
15779 | echo "configure: failed program was:" >&5 | |
15780 | cat conftest.$ac_ext >&5 | |
15781 | rm -rf conftest* | |
15782 | eval "ac_cv_func_$ac_func=no" | |
15783 | fi | |
15784 | rm -f conftest* | |
15785 | fi | |
eb4efbdc | 15786 | |
698dcdb6 VZ |
15787 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15788 | echo "$ac_t""yes" 1>&6 | |
15789 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15790 | cat >> confdefs.h <<EOF | |
15791 | #define $ac_tr_func 1 | |
15792 | EOF | |
15793 | ||
15794 | else | |
15795 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15796 | fi |
15797 | done | |
15798 | ||
d29b553b | 15799 | else |
a1ea5055 GD |
15800 | if test "$USE_DARWIN" = 1; then |
15801 | cat >> confdefs.h <<\EOF | |
15802 | #define wxUSE_WCHAR_T 1 | |
15803 | EOF | |
15804 | ||
15805 | else | |
15806 | echo "configure: warning: Wide character support is unavailable" 1>&2 | |
15807 | fi | |
d29b553b | 15808 | fi |
698dcdb6 | 15809 | |
4f14bcd8 | 15810 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
24f5e003 | 15811 | echo "configure:15812: checking for vprintf" >&5 |
4f14bcd8 | 15812 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
15813 | echo $ac_n "(cached) $ac_c" 1>&6 |
15814 | else | |
4f14bcd8 | 15815 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 15816 | #line 15817 "configure" |
f6bcfd97 | 15817 | #include "confdefs.h" |
4f14bcd8 GD |
15818 | /* System header to define __stub macros and hopefully few prototypes, |
15819 | which can conflict with char vprintf(); below. */ | |
15820 | #include <assert.h> | |
15821 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15822 | /* We use char because int might match the return type of a gcc2 | |
15823 | builtin and then its argument prototype would still apply. */ | |
15824 | char vprintf(); | |
15825 | ||
698dcdb6 | 15826 | int main() { |
f6bcfd97 | 15827 | |
4f14bcd8 GD |
15828 | /* The GNU C library defines this for functions which it implements |
15829 | to always fail with ENOSYS. Some functions are actually named | |
15830 | something starting with __ and the normal name is an alias. */ | |
15831 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
15832 | choke me | |
15833 | #else | |
15834 | vprintf(); | |
15835 | #endif | |
f6bcfd97 | 15836 | |
698dcdb6 VZ |
15837 | ; return 0; } |
15838 | EOF | |
24f5e003 | 15839 | if { (eval echo configure:15840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15840 | rm -rf conftest* |
4f14bcd8 | 15841 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 15842 | else |
698dcdb6 VZ |
15843 | echo "configure: failed program was:" >&5 |
15844 | cat conftest.$ac_ext >&5 | |
15845 | rm -rf conftest* | |
4f14bcd8 | 15846 | eval "ac_cv_func_vprintf=no" |
6232543b | 15847 | fi |
698dcdb6 | 15848 | rm -f conftest* |
1e487827 | 15849 | fi |
698dcdb6 | 15850 | |
4f14bcd8 GD |
15851 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
15852 | echo "$ac_t""yes" 1>&6 | |
15853 | cat >> confdefs.h <<\EOF | |
15854 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
15855 | EOF |
15856 | ||
4f14bcd8 GD |
15857 | else |
15858 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15859 | fi |
15860 | ||
4f14bcd8 GD |
15861 | if test "$ac_cv_func_vprintf" != yes; then |
15862 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
24f5e003 | 15863 | echo "configure:15864: checking for _doprnt" >&5 |
4f14bcd8 | 15864 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
15865 | echo $ac_n "(cached) $ac_c" 1>&6 |
15866 | else | |
15867 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 15868 | #line 15869 "configure" |
10f2d63a VZ |
15869 | #include "confdefs.h" |
15870 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 15871 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
15872 | #include <assert.h> |
15873 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15874 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15875 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15876 | char _doprnt(); |
698dcdb6 VZ |
15877 | |
15878 | int main() { | |
10f2d63a VZ |
15879 | |
15880 | /* The GNU C library defines this for functions which it implements | |
15881 | to always fail with ENOSYS. Some functions are actually named | |
15882 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 15883 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
15884 | choke me |
15885 | #else | |
4f14bcd8 | 15886 | _doprnt(); |
10f2d63a VZ |
15887 | #endif |
15888 | ||
698dcdb6 | 15889 | ; return 0; } |
10f2d63a | 15890 | EOF |
24f5e003 | 15891 | if { (eval echo configure:15892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15892 | rm -rf conftest* |
4f14bcd8 | 15893 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
15894 | else |
15895 | echo "configure: failed program was:" >&5 | |
15896 | cat conftest.$ac_ext >&5 | |
15897 | rm -rf conftest* | |
4f14bcd8 | 15898 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
15899 | fi |
15900 | rm -f conftest* | |
15901 | fi | |
270a909e | 15902 | |
4f14bcd8 | 15903 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 15904 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15905 | cat >> confdefs.h <<\EOF |
15906 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 15907 | EOF |
4f14bcd8 | 15908 | |
698dcdb6 VZ |
15909 | else |
15910 | echo "$ac_t""no" 1>&6 | |
270a909e | 15911 | fi |
270a909e | 15912 | |
4f14bcd8 | 15913 | fi |
1e487827 | 15914 | |
52e8b690 | 15915 | |
52e8b690 | 15916 | |
52e8b690 | 15917 | |
52e8b690 | 15918 | |
52e8b690 | 15919 | |
4f14bcd8 | 15920 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
24f5e003 | 15921 | echo "configure:15922: checking for vsnprintf" >&5 |
4f14bcd8 | 15922 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 15923 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 15924 | else |
4f14bcd8 | 15925 | |
af15babd | 15926 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 15927 | #line 15928 "configure" |
c63c7106 | 15928 | #include "confdefs.h" |
698dcdb6 | 15929 | |
4f14bcd8 GD |
15930 | #include <stdio.h> |
15931 | #include <stdarg.h> | |
15932 | ||
af15babd VZ |
15933 | int main() { |
15934 | ||
4f14bcd8 GD |
15935 | int wx_test_vsnprintf(const char *, ...); |
15936 | ||
15937 | wx_test_vsnprintf("%s"); | |
15938 | return 0; | |
15939 | } | |
15940 | ||
15941 | int wx_test_vsnprintf(const char *fmt, ...) | |
15942 | { | |
15943 | char *s; | |
15944 | ||
15945 | va_list argp; | |
15946 | va_start(argp, fmt); | |
15947 | vsnprintf(s, 42, fmt, argp); | |
15948 | va_end(argp); | |
15949 | ||
af15babd VZ |
15950 | ; return 0; } |
15951 | EOF | |
24f5e003 | 15952 | if { (eval echo configure:15953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15953 | rm -rf conftest* |
15954 | ||
4f14bcd8 GD |
15955 | wx_cv_func_vsnprintf=yes |
15956 | ||
af15babd VZ |
15957 | else |
15958 | echo "configure: failed program was:" >&5 | |
15959 | cat conftest.$ac_ext >&5 | |
15960 | rm -rf conftest* | |
15961 | ||
4f14bcd8 | 15962 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 15963 | #line 15964 "configure" |
af15babd | 15964 | #include "confdefs.h" |
af15babd | 15965 | |
4f14bcd8 GD |
15966 | #include <stdio.h> |
15967 | #include <stdarg.h> | |
15968 | ||
af15babd VZ |
15969 | int main() { |
15970 | ||
4f14bcd8 GD |
15971 | int wx_test_vsnprintf(const char *, ...); |
15972 | ||
15973 | wx_test_vsnprintf("%s"); | |
15974 | return 0; | |
15975 | } | |
15976 | ||
15977 | int wx_test_vsnprintf(const char *fmt, ...) | |
15978 | { | |
15979 | char *s; | |
af15babd | 15980 | |
4f14bcd8 GD |
15981 | va_list argp; |
15982 | va_start(argp, fmt); | |
15983 | _vsnprintf(s, 42, fmt, argp); | |
15984 | va_end(argp); | |
15985 | ||
af15babd VZ |
15986 | ; return 0; } |
15987 | EOF | |
24f5e003 | 15988 | if { (eval echo configure:15989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15989 | rm -rf conftest* |
4f14bcd8 GD |
15990 | |
15991 | wx_cv_func_vsnprintf=yes | |
15992 | ||
af15babd VZ |
15993 | else |
15994 | echo "configure: failed program was:" >&5 | |
15995 | cat conftest.$ac_ext >&5 | |
15996 | rm -rf conftest* | |
4f14bcd8 GD |
15997 | |
15998 | wx_cv_func_vsnprintf=no | |
15999 | ||
af15babd VZ |
16000 | fi |
16001 | rm -f conftest* | |
4f14bcd8 | 16002 | |
af15babd | 16003 | fi |
4f14bcd8 | 16004 | rm -f conftest* |
af15babd | 16005 | |
af15babd | 16006 | fi |
af15babd | 16007 | |
4f14bcd8 | 16008 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 16009 | |
4f14bcd8 GD |
16010 | if test "$wx_cv_func_vsnprintf" = yes; then |
16011 | cat >> confdefs.h <<\EOF | |
16012 | #define HAVE_VSNPRINTF 1 | |
16013 | EOF | |
16014 | ||
16015 | else | |
f9bc1684 | 16016 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
16017 | fi |
16018 | ||
4f14bcd8 | 16019 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
24f5e003 | 16020 | echo "configure:16021: checking for vsscanf" >&5 |
4f14bcd8 | 16021 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
16022 | echo $ac_n "(cached) $ac_c" 1>&6 |
16023 | else | |
4f14bcd8 | 16024 | |
af15babd | 16025 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 16026 | #line 16027 "configure" |
af15babd | 16027 | #include "confdefs.h" |
af15babd | 16028 | |
4f14bcd8 GD |
16029 | #include <stdio.h> |
16030 | #include <stdarg.h> | |
16031 | ||
af15babd VZ |
16032 | int main() { |
16033 | ||
4f14bcd8 GD |
16034 | int wx_test_vsscanf(const char *, ...); |
16035 | ||
16036 | wx_test_vsscanf("%d"); | |
16037 | return 0; | |
16038 | } | |
af15babd | 16039 | |
4f14bcd8 GD |
16040 | int wx_test_vsscanf(const char *fmt, ...) |
16041 | { | |
16042 | va_list argp; | |
16043 | va_start(argp, fmt); | |
16044 | vsscanf("42", fmt, argp); | |
16045 | va_end(argp); | |
16046 | ||
af15babd VZ |
16047 | ; return 0; } |
16048 | EOF | |
24f5e003 | 16049 | if { (eval echo configure:16050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16050 | rm -rf conftest* |
4f14bcd8 GD |
16051 | |
16052 | wx_cv_func_vsscanf=yes | |
16053 | ||
af15babd VZ |
16054 | else |
16055 | echo "configure: failed program was:" >&5 | |
16056 | cat conftest.$ac_ext >&5 | |
16057 | rm -rf conftest* | |
4f14bcd8 GD |
16058 | |
16059 | wx_cv_func_vsscanf=no | |
16060 | ||
af15babd VZ |
16061 | fi |
16062 | rm -f conftest* | |
4f14bcd8 | 16063 | |
af15babd VZ |
16064 | fi |
16065 | ||
4f14bcd8 GD |
16066 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
16067 | ||
16068 | if test "$wx_cv_func_vsscanf" = yes; then | |
16069 | cat >> confdefs.h <<\EOF | |
16070 | #define HAVE_VSSCANF 1 | |
af15babd | 16071 | EOF |
4f14bcd8 | 16072 | |
af15babd | 16073 | fi |
af15babd | 16074 | |
4f14bcd8 | 16075 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 16076 | |
4f14bcd8 GD |
16077 | |
16078 | ||
16079 | ac_ext=C | |
16080 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16081 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16082 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16083 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16084 | cross_compiling=$ac_cv_prog_cxx_cross | |
16085 | ||
b040e242 VS |
16086 | |
16087 | ||
16088 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
16089 | if test "${with_libiconv_prefix+set}" = set; then | |
16090 | withval="$with_libiconv_prefix" | |
16091 | ||
16092 | for dir in `echo "$withval" | tr : ' '`; do | |
16093 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
16094 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
16095 | done | |
16096 | ||
16097 | fi | |
16098 | ||
16099 | ||
16100 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
24f5e003 | 16101 | echo "configure:16102: checking for iconv" >&5 |
b040e242 | 16102 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
af15babd VZ |
16103 | echo $ac_n "(cached) $ac_c" 1>&6 |
16104 | else | |
4f14bcd8 | 16105 | |
b040e242 VS |
16106 | am_cv_func_iconv="no, consider installing GNU libiconv" |
16107 | am_cv_lib_iconv=no | |
4f14bcd8 | 16108 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 16109 | #line 16110 "configure" |
af15babd | 16110 | #include "confdefs.h" |
b040e242 | 16111 | #include <stdlib.h> |
4f14bcd8 | 16112 | #include <iconv.h> |
af15babd | 16113 | int main() { |
b040e242 VS |
16114 | iconv_t cd = iconv_open("",""); |
16115 | iconv(cd,NULL,NULL,NULL,NULL); | |
16116 | iconv_close(cd); | |
af15babd VZ |
16117 | ; return 0; } |
16118 | EOF | |
24f5e003 | 16119 | if { (eval echo configure:16120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 16120 | rm -rf conftest* |
b040e242 | 16121 | am_cv_func_iconv=yes |
af15babd VZ |
16122 | else |
16123 | echo "configure: failed program was:" >&5 | |
16124 | cat conftest.$ac_ext >&5 | |
b040e242 VS |
16125 | fi |
16126 | rm -f conftest* | |
16127 | if test "$am_cv_func_iconv" != yes; then | |
16128 | am_save_LIBS="$LIBS" | |
16129 | LIBS="$LIBS -liconv" | |
16130 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 16131 | #line 16132 "configure" |
b040e242 VS |
16132 | #include "confdefs.h" |
16133 | #include <stdlib.h> | |
16134 | #include <iconv.h> | |
16135 | int main() { | |
16136 | iconv_t cd = iconv_open("",""); | |
16137 | iconv(cd,NULL,NULL,NULL,NULL); | |
16138 | iconv_close(cd); | |
16139 | ; return 0; } | |
16140 | EOF | |
24f5e003 | 16141 | if { (eval echo configure:16142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 16142 | rm -rf conftest* |
b040e242 VS |
16143 | am_cv_lib_iconv=yes |
16144 | am_cv_func_iconv=yes | |
16145 | else | |
16146 | echo "configure: failed program was:" >&5 | |
16147 | cat conftest.$ac_ext >&5 | |
af15babd VZ |
16148 | fi |
16149 | rm -f conftest* | |
b040e242 VS |
16150 | LIBS="$am_save_LIBS" |
16151 | fi | |
16152 | ||
16153 | fi | |
16154 | ||
16155 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
16156 | if test "$am_cv_func_iconv" = yes; then | |
16157 | cat >> confdefs.h <<\EOF | |
16158 | #define HAVE_ICONV 1 | |
16159 | EOF | |
16160 | ||
b7043674 | 16161 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
24f5e003 | 16162 | echo "configure:16163: checking if iconv needs const" >&5 |
b7043674 | 16163 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
b040e242 VS |
16164 | echo $ac_n "(cached) $ac_c" 1>&6 |
16165 | else | |
b7043674 | 16166 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 16167 | #line 16168 "configure" |
b040e242 VS |
16168 | #include "confdefs.h" |
16169 | ||
16170 | #include <stdlib.h> | |
16171 | #include <iconv.h> | |
16172 | extern | |
16173 | #ifdef __cplusplus | |
16174 | "C" | |
16175 | #endif | |
16176 | #if defined(__STDC__) || defined(__cplusplus) | |
16177 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
16178 | #else | |
16179 | size_t iconv(); | |
16180 | #endif | |
b7043674 | 16181 | |
b040e242 | 16182 | int main() { |
af15babd | 16183 | |
b040e242 VS |
16184 | ; return 0; } |
16185 | EOF | |
24f5e003 | 16186 | if { (eval echo configure:16187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b040e242 | 16187 | rm -rf conftest* |
b7043674 | 16188 | wx_cv_func_iconv_const="no" |
b040e242 VS |
16189 | else |
16190 | echo "configure: failed program was:" >&5 | |
16191 | cat conftest.$ac_ext >&5 | |
16192 | rm -rf conftest* | |
b7043674 VZ |
16193 | wx_cv_func_iconv_const="yes" |
16194 | ||
b040e242 VS |
16195 | fi |
16196 | rm -f conftest* | |
b7043674 | 16197 | |
af15babd | 16198 | fi |
af15babd | 16199 | |
b7043674 VZ |
16200 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 |
16201 | ||
16202 | iconv_const= | |
1c405bb5 | 16203 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
16204 | iconv_const="const" |
16205 | fi | |
16206 | ||
b040e242 | 16207 | cat >> confdefs.h <<EOF |
b7043674 | 16208 | #define ICONV_CONST $iconv_const |
b040e242 VS |
16209 | EOF |
16210 | ||
16211 | fi | |
16212 | LIBICONV= | |
16213 | if test "$am_cv_lib_iconv" = yes; then | |
16214 | LIBICONV="-liconv" | |
16215 | fi | |
16216 | ||
16217 | ||
16218 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 GD |
16219 | ac_ext=c |
16220 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16221 | ac_cpp='$CPP $CPPFLAGS' | |
16222 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16223 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16224 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16225 | |
af15babd | 16226 | |
4f14bcd8 GD |
16227 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
16228 | for ac_func in sigaction | |
af15babd VZ |
16229 | do |
16230 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
24f5e003 | 16231 | echo "configure:16232: checking for $ac_func" >&5 |
af15babd VZ |
16232 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16233 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16234 | else | |
16235 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 16236 | #line 16237 "configure" |
af15babd VZ |
16237 | #include "confdefs.h" |
16238 | /* System header to define __stub macros and hopefully few prototypes, | |
16239 | which can conflict with char $ac_func(); below. */ | |
16240 | #include <assert.h> | |
16241 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16242 | /* We use char because int might match the return type of a gcc2 | |
16243 | builtin and then its argument prototype would still apply. */ | |
16244 | char $ac_func(); | |
16245 | ||
16246 | int main() { | |
16247 | ||
16248 | /* The GNU C library defines this for functions which it implements | |
16249 | to always fail with ENOSYS. Some functions are actually named | |
16250 | something starting with __ and the normal name is an alias. */ | |
16251 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16252 | choke me | |
16253 | #else | |
16254 | $ac_func(); | |
16255 | #endif | |
16256 | ||
16257 | ; return 0; } | |
16258 | EOF | |
24f5e003 | 16259 | if { (eval echo configure:16260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16260 | rm -rf conftest* |
16261 | eval "ac_cv_func_$ac_func=yes" | |
16262 | else | |
16263 | echo "configure: failed program was:" >&5 | |
16264 | cat conftest.$ac_ext >&5 | |
16265 | rm -rf conftest* | |
16266 | eval "ac_cv_func_$ac_func=no" | |
16267 | fi | |
16268 | rm -f conftest* | |
16269 | fi | |
16270 | ||
16271 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16272 | echo "$ac_t""yes" 1>&6 | |
16273 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16274 | cat >> confdefs.h <<EOF | |
16275 | #define $ac_tr_func 1 | |
16276 | EOF | |
4f14bcd8 | 16277 | |
af15babd VZ |
16278 | else |
16279 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16280 | fi |
16281 | done | |
16282 | ||
16283 | ||
16284 | if test "$ac_cv_func_sigaction" = "no"; then | |
16285 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
16286 | wxUSE_ON_FATAL_EXCEPTION=no | |
16287 | fi | |
16288 | ||
16289 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
16290 | ||
16291 | ac_ext=C | |
16292 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16293 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16294 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16295 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16296 | cross_compiling=$ac_cv_prog_cxx_cross | |
16297 | ||
16298 | ||
16299 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
24f5e003 | 16300 | echo "configure:16301: checking for sa_handler type" >&5 |
4f14bcd8 | 16301 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
16302 | echo $ac_n "(cached) $ac_c" 1>&6 |
16303 | else | |
4f14bcd8 GD |
16304 | |
16305 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 16306 | #line 16307 "configure" |
af15babd | 16307 | #include "confdefs.h" |
4f14bcd8 | 16308 | #include <signal.h> |
af15babd | 16309 | int main() { |
4f14bcd8 GD |
16310 | |
16311 | extern void testSigHandler(int); | |
16312 | ||
16313 | struct sigaction sa; | |
16314 | sa.sa_handler = testSigHandler; | |
16315 | ||
af15babd VZ |
16316 | ; return 0; } |
16317 | EOF | |
24f5e003 | 16318 | if { (eval echo configure:16319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16319 | rm -rf conftest* |
4f14bcd8 GD |
16320 | |
16321 | wx_cv_type_sa_handler=int | |
16322 | ||
af15babd VZ |
16323 | else |
16324 | echo "configure: failed program was:" >&5 | |
16325 | cat conftest.$ac_ext >&5 | |
16326 | rm -rf conftest* | |
4f14bcd8 GD |
16327 | |
16328 | wx_cv_type_sa_handler=void | |
16329 | ||
af15babd VZ |
16330 | fi |
16331 | rm -f conftest* | |
4f14bcd8 GD |
16332 | |
16333 | fi | |
16334 | ||
16335 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
16336 | ||
16337 | ac_ext=c | |
16338 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16339 | ac_cpp='$CPP $CPPFLAGS' | |
16340 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16341 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16342 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 16343 | |
4f14bcd8 GD |
16344 | |
16345 | cat >> confdefs.h <<EOF | |
16346 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
16347 | EOF |
16348 | ||
4f14bcd8 GD |
16349 | fi |
16350 | fi | |
af15babd | 16351 | |
4f14bcd8 | 16352 | for ac_func in vfork |
af15babd VZ |
16353 | do |
16354 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
24f5e003 | 16355 | echo "configure:16356: checking for $ac_func" >&5 |
af15babd VZ |
16356 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16357 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16358 | else | |
16359 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 16360 | #line 16361 "configure" |
af15babd VZ |
16361 | #include "confdefs.h" |
16362 | /* System header to define __stub macros and hopefully few prototypes, | |
16363 | which can conflict with char $ac_func(); below. */ | |
16364 | #include <assert.h> | |
16365 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16366 | /* We use char because int might match the return type of a gcc2 | |
16367 | builtin and then its argument prototype would still apply. */ | |
16368 | char $ac_func(); | |
16369 | ||
16370 | int main() { | |
16371 | ||
16372 | /* The GNU C library defines this for functions which it implements | |
16373 | to always fail with ENOSYS. Some functions are actually named | |
16374 | something starting with __ and the normal name is an alias. */ | |
16375 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16376 | choke me | |
16377 | #else | |
16378 | $ac_func(); | |
16379 | #endif | |
16380 | ||
16381 | ; return 0; } | |
16382 | EOF | |
24f5e003 | 16383 | if { (eval echo configure:16384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16384 | rm -rf conftest* |
16385 | eval "ac_cv_func_$ac_func=yes" | |
16386 | else | |
16387 | echo "configure: failed program was:" >&5 | |
16388 | cat conftest.$ac_ext >&5 | |
16389 | rm -rf conftest* | |
16390 | eval "ac_cv_func_$ac_func=no" | |
16391 | fi | |
16392 | rm -f conftest* | |
16393 | fi | |
16394 | ||
16395 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16396 | echo "$ac_t""yes" 1>&6 | |
16397 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16398 | cat >> confdefs.h <<EOF | |
16399 | #define $ac_tr_func 1 | |
16400 | EOF | |
4f14bcd8 | 16401 | |
af15babd VZ |
16402 | else |
16403 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16404 | fi |
16405 | done | |
16406 | ||
af15babd | 16407 | |
ade35f11 VZ |
16408 | for ac_func in mkstemp mktemp |
16409 | do | |
16410 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
24f5e003 | 16411 | echo "configure:16412: checking for $ac_func" >&5 |
ade35f11 VZ |
16412 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16414 | else | |
16415 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 16416 | #line 16417 "configure" |
ade35f11 VZ |
16417 | #include "confdefs.h" |
16418 | /* System header to define __stub macros and hopefully few prototypes, | |
16419 | which can conflict with char $ac_func(); below. */ | |
16420 | #include <assert.h> | |
16421 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16422 | /* We use char because int might match the return type of a gcc2 | |
16423 | builtin and then its argument prototype would still apply. */ | |
16424 | char $ac_func(); | |
16425 | ||
16426 | int main() { | |
16427 | ||
16428 | /* The GNU C library defines this for functions which it implements | |
16429 | to always fail with ENOSYS. Some functions are actually named | |
16430 | something starting with __ and the normal name is an alias. */ | |
16431 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16432 | choke me | |
16433 | #else | |
16434 | $ac_func(); | |
16435 | #endif | |
16436 | ||
16437 | ; return 0; } | |
16438 | EOF | |
24f5e003 | 16439 | if { (eval echo configure:16440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
16440 | rm -rf conftest* |
16441 | eval "ac_cv_func_$ac_func=yes" | |
16442 | else | |
16443 | echo "configure: failed program was:" >&5 | |
16444 | cat conftest.$ac_ext >&5 | |
16445 | rm -rf conftest* | |
16446 | eval "ac_cv_func_$ac_func=no" | |
16447 | fi | |
16448 | rm -f conftest* | |
16449 | fi | |
16450 | ||
16451 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16452 | echo "$ac_t""yes" 1>&6 | |
16453 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16454 | cat >> confdefs.h <<EOF | |
16455 | #define $ac_tr_func 1 | |
16456 | EOF | |
16457 | break | |
16458 | else | |
16459 | echo "$ac_t""no" 1>&6 | |
16460 | fi | |
16461 | done | |
16462 | ||
16463 | ||
4f14bcd8 | 16464 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
24f5e003 | 16465 | echo "configure:16466: checking for statfs" >&5 |
4f14bcd8 GD |
16466 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16467 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16468 | else | |
16469 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 16470 | #line 16471 "configure" |
4f14bcd8 GD |
16471 | #include "confdefs.h" |
16472 | ||
16473 | #if defined(__BSD__) | |
16474 | #include <sys/param.h> | |
16475 | #include <sys/mount.h> | |
16476 | #else | |
16477 | #include <sys/vfs.h> | |
16478 | #endif | |
16479 | ||
16480 | int main() { | |
16481 | ||
16482 | long l; | |
16483 | struct statfs fs; | |
16484 | statfs("/", &fs); | |
16485 | l = fs.f_bsize; | |
16486 | l += fs.f_blocks; | |
16487 | l += fs.f_bavail; | |
16488 | ||
16489 | ; return 0; } | |
16490 | EOF | |
24f5e003 | 16491 | if { (eval echo configure:16492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
16492 | rm -rf conftest* |
16493 | ||
16494 | wx_cv_func_statfs=yes | |
16495 | ||
16496 | else | |
16497 | echo "configure: failed program was:" >&5 | |
16498 | cat conftest.$ac_ext >&5 | |
16499 | rm -rf conftest* | |
16500 | ||
16501 | wx_cv_func_statfs=no | |
af15babd VZ |
16502 | |
16503 | ||
16504 | fi | |
4f14bcd8 | 16505 | rm -f conftest* |
af15babd VZ |
16506 | |
16507 | fi | |
16508 | ||
4f14bcd8 GD |
16509 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
16510 | ||
16511 | if test "$wx_cv_func_statfs" = "yes"; then | |
16512 | cat >> confdefs.h <<\EOF | |
16513 | #define HAVE_STATFS 1 | |
16514 | EOF | |
16515 | ||
16516 | else | |
16517 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
24f5e003 | 16518 | echo "configure:16519: checking for statvfs" >&5 |
4f14bcd8 | 16519 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
16520 | echo $ac_n "(cached) $ac_c" 1>&6 |
16521 | else | |
16522 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 16523 | #line 16524 "configure" |
af15babd | 16524 | #include "confdefs.h" |
af15babd | 16525 | |
4f14bcd8 GD |
16526 | #include <sys/statvfs.h> |
16527 | ||
af15babd VZ |
16528 | int main() { |
16529 | ||
4f14bcd8 GD |
16530 | long l; |
16531 | struct statvfs fs; | |
16532 | statvfs("/", &fs); | |
16533 | l = fs.f_bsize; | |
16534 | l += fs.f_blocks; | |
16535 | l += fs.f_bavail; | |
16536 | ||
af15babd VZ |
16537 | ; return 0; } |
16538 | EOF | |
24f5e003 | 16539 | if { (eval echo configure:16540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 16540 | rm -rf conftest* |
4f14bcd8 GD |
16541 | |
16542 | wx_cv_func_statvfs=yes | |
16543 | ||
af15babd VZ |
16544 | else |
16545 | echo "configure: failed program was:" >&5 | |
16546 | cat conftest.$ac_ext >&5 | |
16547 | rm -rf conftest* | |
4f14bcd8 GD |
16548 | |
16549 | wx_cv_func_statvfs=no | |
16550 | ||
16551 | ||
af15babd VZ |
16552 | fi |
16553 | rm -f conftest* | |
4f14bcd8 | 16554 | |
af15babd VZ |
16555 | fi |
16556 | ||
4f14bcd8 | 16557 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 16558 | |
4f14bcd8 GD |
16559 | if test "$wx_cv_func_statvfs" = "yes"; then |
16560 | cat >> confdefs.h <<\EOF | |
16561 | #define HAVE_STATVFS 1 | |
16562 | EOF | |
af15babd | 16563 | |
4f14bcd8 GD |
16564 | else |
16565 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
16566 | fi | |
16567 | fi | |
af15babd | 16568 | |
4f14bcd8 GD |
16569 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
16570 | for ac_func in fcntl flock | |
af15babd VZ |
16571 | do |
16572 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
24f5e003 | 16573 | echo "configure:16574: checking for $ac_func" >&5 |
af15babd VZ |
16574 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16575 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16576 | else | |
16577 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 16578 | #line 16579 "configure" |
af15babd VZ |
16579 | #include "confdefs.h" |
16580 | /* System header to define __stub macros and hopefully few prototypes, | |
16581 | which can conflict with char $ac_func(); below. */ | |
16582 | #include <assert.h> | |
16583 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
16584 | /* We use char because int might match the return type of a gcc2 |
16585 | builtin and then its argument prototype would still apply. */ | |
16586 | char $ac_func(); | |
16587 | ||
16588 | int main() { | |
16589 | ||
16590 | /* The GNU C library defines this for functions which it implements | |
16591 | to always fail with ENOSYS. Some functions are actually named | |
16592 | something starting with __ and the normal name is an alias. */ | |
16593 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16594 | choke me | |
16595 | #else | |
16596 | $ac_func(); | |
16597 | #endif | |
16598 | ||
16599 | ; return 0; } | |
16600 | EOF | |
24f5e003 | 16601 | if { (eval echo configure:16602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16602 | rm -rf conftest* |
16603 | eval "ac_cv_func_$ac_func=yes" | |
16604 | else | |
16605 | echo "configure: failed program was:" >&5 | |
16606 | cat conftest.$ac_ext >&5 | |
16607 | rm -rf conftest* | |
16608 | eval "ac_cv_func_$ac_func=no" | |
16609 | fi | |
16610 | rm -f conftest* | |
16611 | fi | |
16612 | ||
16613 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16614 | echo "$ac_t""yes" 1>&6 | |
16615 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16616 | cat >> confdefs.h <<EOF | |
16617 | #define $ac_tr_func 1 | |
16618 | EOF | |
4f14bcd8 | 16619 | break |
af15babd VZ |
16620 | else |
16621 | echo "$ac_t""no" 1>&6 | |
16622 | fi | |
16623 | done | |
16624 | ||
16625 | ||
4f14bcd8 GD |
16626 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
16627 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
16628 | wxUSE_SNGLINST_CHECKER=no | |
16629 | fi | |
16630 | fi | |
af15babd | 16631 | |
4f14bcd8 | 16632 | for ac_func in timegm |
af15babd VZ |
16633 | do |
16634 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
24f5e003 | 16635 | echo "configure:16636: checking for $ac_func" >&5 |
af15babd VZ |
16636 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16637 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16638 | else | |
16639 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 16640 | #line 16641 "configure" |
af15babd VZ |
16641 | #include "confdefs.h" |
16642 | /* System header to define __stub macros and hopefully few prototypes, | |
16643 | which can conflict with char $ac_func(); below. */ | |
16644 | #include <assert.h> | |
16645 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16646 | /* We use char because int might match the return type of a gcc2 | |
16647 | builtin and then its argument prototype would still apply. */ | |
16648 | char $ac_func(); | |
16649 | ||
698dcdb6 | 16650 | int main() { |
698dcdb6 | 16651 | |
af15babd VZ |
16652 | /* The GNU C library defines this for functions which it implements |
16653 | to always fail with ENOSYS. Some functions are actually named | |
16654 | something starting with __ and the normal name is an alias. */ | |
16655 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16656 | choke me | |
16657 | #else | |
16658 | $ac_func(); | |
16659 | #endif | |
16660 | ||
698dcdb6 VZ |
16661 | ; return 0; } |
16662 | EOF | |
24f5e003 | 16663 | if { (eval echo configure:16664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16664 | rm -rf conftest* |
af15babd | 16665 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16666 | else |
16667 | echo "configure: failed program was:" >&5 | |
16668 | cat conftest.$ac_ext >&5 | |
16669 | rm -rf conftest* | |
af15babd | 16670 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 16671 | fi |
9952adac | 16672 | rm -f conftest* |
af15babd | 16673 | fi |
703e0a69 | 16674 | |
af15babd VZ |
16675 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16676 | echo "$ac_t""yes" 1>&6 | |
16677 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
16678 | cat >> confdefs.h <<EOF |
16679 | #define $ac_tr_func 1 | |
16680 | EOF | |
16681 | ||
16682 | else | |
16683 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16684 | fi |
16685 | done | |
16686 | ||
16687 | ||
4f14bcd8 | 16688 | for ac_func in putenv setenv |
10f2d63a | 16689 | do |
698dcdb6 | 16690 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24f5e003 | 16691 | echo "configure:16692: checking for $ac_func" >&5 |
698dcdb6 VZ |
16692 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16693 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16694 | else | |
16695 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 16696 | #line 16697 "configure" |
af15babd VZ |
16697 | #include "confdefs.h" |
16698 | /* System header to define __stub macros and hopefully few prototypes, | |
16699 | which can conflict with char $ac_func(); below. */ | |
16700 | #include <assert.h> | |
16701 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16702 | /* We use char because int might match the return type of a gcc2 | |
16703 | builtin and then its argument prototype would still apply. */ | |
16704 | char $ac_func(); | |
16705 | ||
16706 | int main() { | |
16707 | ||
16708 | /* The GNU C library defines this for functions which it implements | |
16709 | to always fail with ENOSYS. Some functions are actually named | |
16710 | something starting with __ and the normal name is an alias. */ | |
16711 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16712 | choke me | |
16713 | #else | |
16714 | $ac_func(); | |
16715 | #endif | |
16716 | ||
16717 | ; return 0; } | |
16718 | EOF | |
24f5e003 | 16719 | if { (eval echo configure:16720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
16720 | rm -rf conftest* |
16721 | eval "ac_cv_func_$ac_func=yes" | |
16722 | else | |
16723 | echo "configure: failed program was:" >&5 | |
16724 | cat conftest.$ac_ext >&5 | |
16725 | rm -rf conftest* | |
16726 | eval "ac_cv_func_$ac_func=no" | |
16727 | fi | |
16728 | rm -f conftest* | |
16729 | fi | |
16730 | ||
16731 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16732 | echo "$ac_t""yes" 1>&6 | |
16733 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16734 | cat >> confdefs.h <<EOF | |
16735 | #define $ac_tr_func 1 | |
16736 | EOF | |
4f14bcd8 | 16737 | break |
af15babd VZ |
16738 | else |
16739 | echo "$ac_t""no" 1>&6 | |
16740 | fi | |
af15babd VZ |
16741 | done |
16742 | ||
16743 | ||
4f14bcd8 GD |
16744 | HAVE_SOME_SLEEP_FUNC=0 |
16745 | if test "$USE_BEOS" = 1; then | |
16746 | cat >> confdefs.h <<\EOF | |
16747 | #define HAVE_SLEEP 1 | |
af15babd VZ |
16748 | EOF |
16749 | ||
4f14bcd8 | 16750 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16751 | fi |
16752 | ||
4f14bcd8 GD |
16753 | if test "$USE_DARWIN" = 1; then |
16754 | cat >> confdefs.h <<\EOF | |
16755 | #define HAVE_USLEEP 1 | |
af15babd | 16756 | EOF |
10f2d63a | 16757 | |
4f14bcd8 | 16758 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16759 | fi |
16760 | ||
4f14bcd8 GD |
16761 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16762 | POSIX4_LINK= | |
16763 | for ac_func in nanosleep | |
16764 | do | |
16765 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
24f5e003 | 16766 | echo "configure:16767: checking for $ac_func" >&5 |
4f14bcd8 | 16767 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16768 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16769 | else |
4f14bcd8 | 16770 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 16771 | #line 16772 "configure" |
10f2d63a | 16772 | #include "confdefs.h" |
4f14bcd8 GD |
16773 | /* System header to define __stub macros and hopefully few prototypes, |
16774 | which can conflict with char $ac_func(); below. */ | |
16775 | #include <assert.h> | |
10f2d63a VZ |
16776 | /* Override any gcc2 internal prototype to avoid an error. */ |
16777 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16778 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16779 | char $ac_func(); |
698dcdb6 VZ |
16780 | |
16781 | int main() { | |
4f14bcd8 GD |
16782 | |
16783 | /* The GNU C library defines this for functions which it implements | |
16784 | to always fail with ENOSYS. Some functions are actually named | |
16785 | something starting with __ and the normal name is an alias. */ | |
16786 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16787 | choke me | |
16788 | #else | |
16789 | $ac_func(); | |
16790 | #endif | |
16791 | ||
698dcdb6 VZ |
16792 | ; return 0; } |
16793 | EOF | |
24f5e003 | 16794 | if { (eval echo configure:16795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16795 | rm -rf conftest* |
4f14bcd8 | 16796 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16797 | else |
16798 | echo "configure: failed program was:" >&5 | |
16799 | cat conftest.$ac_ext >&5 | |
16800 | rm -rf conftest* | |
4f14bcd8 | 16801 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16802 | fi |
16803 | rm -f conftest* | |
698dcdb6 | 16804 | fi |
4f14bcd8 GD |
16805 | |
16806 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16807 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16808 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16809 | cat >> confdefs.h <<EOF | |
16810 | #define $ac_tr_func 1 | |
16811 | EOF | |
16812 | cat >> confdefs.h <<\EOF | |
16813 | #define HAVE_NANOSLEEP 1 | |
16814 | EOF | |
16815 | ||
10f2d63a | 16816 | else |
698dcdb6 | 16817 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16818 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
24f5e003 | 16819 | echo "configure:16820: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 16820 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16821 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16822 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16823 | else |
698dcdb6 | 16824 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16825 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16826 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 16827 | #line 16828 "configure" |
10f2d63a VZ |
16828 | #include "confdefs.h" |
16829 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16830 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16831 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16832 | char nanosleep(); |
698dcdb6 VZ |
16833 | |
16834 | int main() { | |
4f14bcd8 | 16835 | nanosleep() |
698dcdb6 VZ |
16836 | ; return 0; } |
16837 | EOF | |
24f5e003 | 16838 | if { (eval echo configure:16839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16839 | rm -rf conftest* |
16840 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16841 | else | |
16842 | echo "configure: failed program was:" >&5 | |
16843 | cat conftest.$ac_ext >&5 | |
16844 | rm -rf conftest* | |
16845 | eval "ac_cv_lib_$ac_lib_var=no" | |
16846 | fi | |
16847 | rm -f conftest* | |
16848 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16849 | |
698dcdb6 VZ |
16850 | fi |
16851 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16852 | echo "$ac_t""yes" 1>&6 | |
16853 | ||
4f14bcd8 GD |
16854 | cat >> confdefs.h <<\EOF |
16855 | #define HAVE_NANOSLEEP 1 | |
16856 | EOF | |
16857 | ||
3d63bc3a | 16858 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 16859 | |
10f2d63a | 16860 | else |
698dcdb6 | 16861 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16862 | |
4f14bcd8 GD |
16863 | for ac_func in usleep |
16864 | do | |
16865 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
24f5e003 | 16866 | echo "configure:16867: checking for $ac_func" >&5 |
4f14bcd8 | 16867 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16868 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16869 | else |
698dcdb6 | 16870 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 16871 | #line 16872 "configure" |
10f2d63a | 16872 | #include "confdefs.h" |
4f14bcd8 GD |
16873 | /* System header to define __stub macros and hopefully few prototypes, |
16874 | which can conflict with char $ac_func(); below. */ | |
16875 | #include <assert.h> | |
16876 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16877 | /* We use char because int might match the return type of a gcc2 | |
16878 | builtin and then its argument prototype would still apply. */ | |
16879 | char $ac_func(); | |
16880 | ||
16881 | int main() { | |
16882 | ||
16883 | /* The GNU C library defines this for functions which it implements | |
16884 | to always fail with ENOSYS. Some functions are actually named | |
16885 | something starting with __ and the normal name is an alias. */ | |
16886 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16887 | choke me | |
16888 | #else | |
16889 | $ac_func(); | |
16890 | #endif | |
16891 | ||
16892 | ; return 0; } | |
698dcdb6 | 16893 | EOF |
24f5e003 | 16894 | if { (eval echo configure:16895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16895 | rm -rf conftest* |
4f14bcd8 | 16896 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16897 | else |
698dcdb6 | 16898 | echo "configure: failed program was:" >&5 |
10f2d63a | 16899 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16900 | rm -rf conftest* |
4f14bcd8 | 16901 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16902 | fi |
698dcdb6 | 16903 | rm -f conftest* |
10f2d63a | 16904 | fi |
4f14bcd8 GD |
16905 | |
16906 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16907 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16908 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16909 | cat >> confdefs.h <<EOF | |
16910 | #define $ac_tr_func 1 | |
16911 | EOF | |
16912 | cat >> confdefs.h <<\EOF | |
16913 | #define HAVE_USLEEP 1 | |
16914 | EOF | |
16915 | ||
698dcdb6 VZ |
16916 | else |
16917 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16918 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
16919 | ||
10f2d63a | 16920 | fi |
4f14bcd8 | 16921 | done |
10f2d63a | 16922 | |
4f14bcd8 | 16923 | |
698dcdb6 | 16924 | |
6232543b | 16925 | fi |
10f2d63a | 16926 | |
698dcdb6 | 16927 | |
4f14bcd8 | 16928 | |
1e487827 | 16929 | fi |
4f14bcd8 | 16930 | done |
703e0a69 | 16931 | |
10f2d63a VZ |
16932 | fi |
16933 | ||
4f14bcd8 | 16934 | for ac_func in uname gethostname |
70846f0a | 16935 | do |
698dcdb6 | 16936 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24f5e003 | 16937 | echo "configure:16938: checking for $ac_func" >&5 |
698dcdb6 VZ |
16938 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16939 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16940 | else | |
16941 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 16942 | #line 16943 "configure" |
70846f0a VZ |
16943 | #include "confdefs.h" |
16944 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16945 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
16946 | #include <assert.h> |
16947 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16948 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16949 | builtin and then its argument prototype would still apply. */ |
16950 | char $ac_func(); | |
16951 | ||
16952 | int main() { | |
70846f0a VZ |
16953 | |
16954 | /* The GNU C library defines this for functions which it implements | |
16955 | to always fail with ENOSYS. Some functions are actually named | |
16956 | something starting with __ and the normal name is an alias. */ | |
16957 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16958 | choke me | |
16959 | #else | |
698dcdb6 | 16960 | $ac_func(); |
70846f0a VZ |
16961 | #endif |
16962 | ||
698dcdb6 | 16963 | ; return 0; } |
70846f0a | 16964 | EOF |
24f5e003 | 16965 | if { (eval echo configure:16966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16966 | rm -rf conftest* |
16967 | eval "ac_cv_func_$ac_func=yes" | |
16968 | else | |
16969 | echo "configure: failed program was:" >&5 | |
16970 | cat conftest.$ac_ext >&5 | |
16971 | rm -rf conftest* | |
16972 | eval "ac_cv_func_$ac_func=no" | |
16973 | fi | |
16974 | rm -f conftest* | |
16975 | fi | |
70846f0a | 16976 | |
698dcdb6 VZ |
16977 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16978 | echo "$ac_t""yes" 1>&6 | |
16979 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16980 | cat >> confdefs.h <<EOF | |
16981 | #define $ac_tr_func 1 | |
16982 | EOF | |
4f14bcd8 | 16983 | break |
698dcdb6 VZ |
16984 | else |
16985 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
16986 | fi |
16987 | done | |
16988 | ||
698dcdb6 | 16989 | |
4f14bcd8 GD |
16990 | |
16991 | ac_ext=C | |
16992 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16993 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16994 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16995 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16996 | cross_compiling=$ac_cv_prog_cxx_cross | |
16997 | ||
16998 | ||
16999 | for ac_func in strtok_r | |
10f2d63a | 17000 | do |
4f14bcd8 | 17001 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24f5e003 | 17002 | echo "configure:17003: checking for $ac_func" >&5 |
4f14bcd8 | 17003 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17004 | echo $ac_n "(cached) $ac_c" 1>&6 |
17005 | else | |
17006 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 17007 | #line 17008 "configure" |
10f2d63a | 17008 | #include "confdefs.h" |
4f14bcd8 GD |
17009 | /* System header to define __stub macros and hopefully few prototypes, |
17010 | which can conflict with char $ac_func(); below. */ | |
17011 | #include <assert.h> | |
17012 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17013 | #ifdef __cplusplus | |
17014 | extern "C" | |
17015 | #endif | |
17016 | /* We use char because int might match the return type of a gcc2 | |
17017 | builtin and then its argument prototype would still apply. */ | |
17018 | char $ac_func(); | |
17019 | ||
17020 | int main() { | |
17021 | ||
17022 | /* The GNU C library defines this for functions which it implements | |
17023 | to always fail with ENOSYS. Some functions are actually named | |
17024 | something starting with __ and the normal name is an alias. */ | |
17025 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17026 | choke me | |
17027 | #else | |
17028 | $ac_func(); | |
17029 | #endif | |
17030 | ||
17031 | ; return 0; } | |
698dcdb6 | 17032 | EOF |
24f5e003 | 17033 | if { (eval echo configure:17034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17034 | rm -rf conftest* |
4f14bcd8 | 17035 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 17036 | else |
698dcdb6 | 17037 | echo "configure: failed program was:" >&5 |
10f2d63a | 17038 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17039 | rm -rf conftest* |
4f14bcd8 | 17040 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 17041 | fi |
698dcdb6 | 17042 | rm -f conftest* |
10f2d63a | 17043 | fi |
4f14bcd8 GD |
17044 | |
17045 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 17046 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 17047 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 17048 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17049 | #define $ac_tr_func 1 |
10f2d63a | 17050 | EOF |
698dcdb6 VZ |
17051 | |
17052 | else | |
17053 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17054 | fi |
17055 | done | |
17056 | ||
698dcdb6 | 17057 | |
4f14bcd8 GD |
17058 | ac_ext=c |
17059 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17060 | ac_cpp='$CPP $CPPFLAGS' | |
17061 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17062 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17063 | cross_compiling=$ac_cv_prog_cc_cross | |
17064 | ||
17065 | ||
17066 | INET_LINK= | |
17067 | for ac_func in inet_addr | |
17068 | do | |
17069 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
24f5e003 | 17070 | echo "configure:17071: checking for $ac_func" >&5 |
4f14bcd8 | 17071 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 17072 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 17073 | else |
4f14bcd8 | 17074 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 17075 | #line 17076 "configure" |
10f2d63a | 17076 | #include "confdefs.h" |
4f14bcd8 GD |
17077 | /* System header to define __stub macros and hopefully few prototypes, |
17078 | which can conflict with char $ac_func(); below. */ | |
17079 | #include <assert.h> | |
10f2d63a VZ |
17080 | /* Override any gcc2 internal prototype to avoid an error. */ |
17081 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17082 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17083 | char $ac_func(); |
698dcdb6 VZ |
17084 | |
17085 | int main() { | |
4f14bcd8 GD |
17086 | |
17087 | /* The GNU C library defines this for functions which it implements | |
17088 | to always fail with ENOSYS. Some functions are actually named | |
17089 | something starting with __ and the normal name is an alias. */ | |
17090 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17091 | choke me | |
17092 | #else | |
17093 | $ac_func(); | |
17094 | #endif | |
17095 | ||
698dcdb6 VZ |
17096 | ; return 0; } |
17097 | EOF | |
24f5e003 | 17098 | if { (eval echo configure:17099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17099 | rm -rf conftest* |
4f14bcd8 | 17100 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
17101 | else |
17102 | echo "configure: failed program was:" >&5 | |
17103 | cat conftest.$ac_ext >&5 | |
17104 | rm -rf conftest* | |
4f14bcd8 | 17105 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
17106 | fi |
17107 | rm -f conftest* | |
698dcdb6 | 17108 | fi |
4f14bcd8 GD |
17109 | |
17110 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 17111 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17112 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
17113 | cat >> confdefs.h <<EOF | |
17114 | #define $ac_tr_func 1 | |
17115 | EOF | |
17116 | cat >> confdefs.h <<\EOF | |
17117 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
17118 | EOF |
17119 | ||
17120 | else | |
698dcdb6 | 17121 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 17122 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
24f5e003 | 17123 | echo "configure:17124: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 17124 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17125 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17126 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17127 | else |
698dcdb6 | 17128 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17129 | LIBS="-lnsl $LIBS" |
698dcdb6 | 17130 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 17131 | #line 17132 "configure" |
10f2d63a VZ |
17132 | #include "confdefs.h" |
17133 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17134 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17135 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17136 | char inet_addr(); |
698dcdb6 VZ |
17137 | |
17138 | int main() { | |
4f14bcd8 | 17139 | inet_addr() |
698dcdb6 VZ |
17140 | ; return 0; } |
17141 | EOF | |
24f5e003 | 17142 | if { (eval echo configure:17143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17143 | rm -rf conftest* |
17144 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17145 | else | |
17146 | echo "configure: failed program was:" >&5 | |
17147 | cat conftest.$ac_ext >&5 | |
17148 | rm -rf conftest* | |
17149 | eval "ac_cv_lib_$ac_lib_var=no" | |
17150 | fi | |
17151 | rm -f conftest* | |
17152 | LIBS="$ac_save_LIBS" | |
17153 | ||
17154 | fi | |
17155 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17156 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17157 | INET_LINK="nsl" |
10f2d63a | 17158 | else |
698dcdb6 | 17159 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 17160 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
24f5e003 | 17161 | echo "configure:17162: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 17162 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17163 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17165 | else |
698dcdb6 | 17166 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17167 | LIBS="-lresolv $LIBS" |
698dcdb6 | 17168 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 17169 | #line 17170 "configure" |
10f2d63a VZ |
17170 | #include "confdefs.h" |
17171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17172 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17173 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17174 | char inet_addr(); |
698dcdb6 VZ |
17175 | |
17176 | int main() { | |
4f14bcd8 | 17177 | inet_addr() |
698dcdb6 VZ |
17178 | ; return 0; } |
17179 | EOF | |
24f5e003 | 17180 | if { (eval echo configure:17181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17181 | rm -rf conftest* |
17182 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17183 | else | |
17184 | echo "configure: failed program was:" >&5 | |
17185 | cat conftest.$ac_ext >&5 | |
17186 | rm -rf conftest* | |
17187 | eval "ac_cv_lib_$ac_lib_var=no" | |
17188 | fi | |
17189 | rm -f conftest* | |
17190 | LIBS="$ac_save_LIBS" | |
17191 | ||
17192 | fi | |
17193 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17194 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17195 | INET_LINK="resolv" |
698dcdb6 | 17196 | else |
4f14bcd8 | 17197 | echo "$ac_t""no" 1>&6 |
3c011993 | 17198 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 |
24f5e003 | 17199 | echo "configure:17200: checking for inet_addr in -lsocket" >&5 |
3c011993 VZ |
17200 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
17201 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17202 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17203 | else | |
17204 | ac_save_LIBS="$LIBS" | |
17205 | LIBS="-lsocket $LIBS" | |
17206 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 17207 | #line 17208 "configure" |
3c011993 VZ |
17208 | #include "confdefs.h" |
17209 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17210 | /* We use char because int might match the return type of a gcc2 | |
17211 | builtin and then its argument prototype would still apply. */ | |
17212 | char inet_addr(); | |
17213 | ||
17214 | int main() { | |
17215 | inet_addr() | |
17216 | ; return 0; } | |
17217 | EOF | |
24f5e003 | 17218 | if { (eval echo configure:17219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3c011993 VZ |
17219 | rm -rf conftest* |
17220 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17221 | else | |
17222 | echo "configure: failed program was:" >&5 | |
17223 | cat conftest.$ac_ext >&5 | |
17224 | rm -rf conftest* | |
17225 | eval "ac_cv_lib_$ac_lib_var=no" | |
17226 | fi | |
17227 | rm -f conftest* | |
17228 | LIBS="$ac_save_LIBS" | |
17229 | ||
17230 | fi | |
17231 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17232 | echo "$ac_t""yes" 1>&6 | |
17233 | INET_LINK="socket" | |
17234 | ||
17235 | else | |
17236 | echo "$ac_t""no" 1>&6 | |
17237 | fi | |
17238 | ||
17239 | ||
4f14bcd8 | 17240 | fi |
698dcdb6 | 17241 | |
4f14bcd8 | 17242 | |
698dcdb6 | 17243 | fi |
4f14bcd8 GD |
17244 | |
17245 | ||
698dcdb6 VZ |
17246 | |
17247 | fi | |
4f14bcd8 GD |
17248 | done |
17249 | ||
17250 | ||
17251 | for ac_func in inet_aton | |
17252 | do | |
17253 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
24f5e003 | 17254 | echo "configure:17255: checking for $ac_func" >&5 |
4f14bcd8 | 17255 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17256 | echo $ac_n "(cached) $ac_c" 1>&6 |
17257 | else | |
4f14bcd8 | 17258 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 17259 | #line 17260 "configure" |
f6bcfd97 | 17260 | #include "confdefs.h" |
4f14bcd8 GD |
17261 | /* System header to define __stub macros and hopefully few prototypes, |
17262 | which can conflict with char $ac_func(); below. */ | |
17263 | #include <assert.h> | |
f6bcfd97 BP |
17264 | /* Override any gcc2 internal prototype to avoid an error. */ |
17265 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17266 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17267 | char $ac_func(); |
698dcdb6 VZ |
17268 | |
17269 | int main() { | |
4f14bcd8 GD |
17270 | |
17271 | /* The GNU C library defines this for functions which it implements | |
17272 | to always fail with ENOSYS. Some functions are actually named | |
17273 | something starting with __ and the normal name is an alias. */ | |
17274 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17275 | choke me | |
17276 | #else | |
17277 | $ac_func(); | |
17278 | #endif | |
17279 | ||
698dcdb6 VZ |
17280 | ; return 0; } |
17281 | EOF | |
24f5e003 | 17282 | if { (eval echo configure:17283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17283 | rm -rf conftest* |
4f14bcd8 | 17284 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
17285 | else |
17286 | echo "configure: failed program was:" >&5 | |
17287 | cat conftest.$ac_ext >&5 | |
17288 | rm -rf conftest* | |
4f14bcd8 | 17289 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
17290 | fi |
17291 | rm -f conftest* | |
698dcdb6 | 17292 | fi |
4f14bcd8 GD |
17293 | |
17294 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 17295 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17296 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
17297 | cat >> confdefs.h <<EOF | |
17298 | #define $ac_tr_func 1 | |
17299 | EOF | |
17300 | cat >> confdefs.h <<\EOF | |
17301 | #define HAVE_INET_ATON 1 | |
17302 | EOF | |
17303 | ||
10f2d63a | 17304 | else |
698dcdb6 | 17305 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 17306 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
24f5e003 | 17307 | echo "configure:17308: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 17308 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17309 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17310 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 17311 | else |
698dcdb6 | 17312 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17313 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 17314 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 17315 | #line 17316 "configure" |
10f2d63a | 17316 | #include "confdefs.h" |
6232543b | 17317 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 17318 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 17319 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17320 | char inet_aton(); |
698dcdb6 VZ |
17321 | |
17322 | int main() { | |
4f14bcd8 | 17323 | inet_aton() |
698dcdb6 VZ |
17324 | ; return 0; } |
17325 | EOF | |
24f5e003 | 17326 | if { (eval echo configure:17327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17327 | rm -rf conftest* |
17328 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17329 | else | |
17330 | echo "configure: failed program was:" >&5 | |
17331 | cat conftest.$ac_ext >&5 | |
17332 | rm -rf conftest* | |
17333 | eval "ac_cv_lib_$ac_lib_var=no" | |
17334 | fi | |
17335 | rm -f conftest* | |
17336 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17337 | |
698dcdb6 VZ |
17338 | fi |
17339 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17340 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17341 | cat >> confdefs.h <<\EOF |
17342 | #define HAVE_INET_ATON 1 | |
17343 | EOF | |
17344 | ||
698dcdb6 VZ |
17345 | else |
17346 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17347 | fi |
17348 | ||
4f14bcd8 | 17349 | |
10f2d63a | 17350 | fi |
4f14bcd8 | 17351 | done |
10f2d63a | 17352 | |
4f14bcd8 GD |
17353 | |
17354 | if test "x$INET_LINK" != "x"; then | |
17355 | cat >> confdefs.h <<\EOF | |
17356 | #define HAVE_INET_ADDR 1 | |
17357 | EOF | |
17358 | ||
3d63bc3a | 17359 | INET_LINK=" -l$INET_LINK" |
6232543b | 17360 | fi |
10f2d63a | 17361 | |
1e487827 | 17362 | fi |
703e0a69 | 17363 | |
698dcdb6 | 17364 | |
4f14bcd8 GD |
17365 | cat > confcache <<\EOF |
17366 | # This file is a shell script that caches the results of configure | |
17367 | # tests run on this system so they can be shared between configure | |
17368 | # scripts and configure runs. It is not useful on other systems. | |
17369 | # If it contains results you don't want to keep, you may remove or edit it. | |
17370 | # | |
17371 | # By default, configure uses ./config.cache as the cache file, | |
17372 | # creating it if it does not exist already. You can give configure | |
17373 | # the --cache-file=FILE option to use a different cache file; that is | |
17374 | # what configure does when it calls configure scripts in | |
17375 | # subdirectories, so they share the cache. | |
17376 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17377 | # config.status only pays attention to the cache file if you give it the | |
17378 | # --recheck option to rerun configure. | |
17379 | # | |
f6bcfd97 | 17380 | EOF |
4f14bcd8 GD |
17381 | # The following way of writing the cache mishandles newlines in values, |
17382 | # but we know of no workaround that is simple, portable, and efficient. | |
17383 | # So, don't put newlines in cache variables' values. | |
17384 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17385 | # and sets the high bit in the cache file unless we assign to the vars. | |
17386 | (set) 2>&1 | | |
17387 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17388 | *ac_space=\ *) | |
17389 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17390 | # turns \\\\ into \\, and sed turns \\ into \). | |
17391 | sed -n \ | |
17392 | -e "s/'/'\\\\''/g" \ | |
17393 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17394 | ;; | |
17395 | *) | |
17396 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17397 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17398 | ;; | |
17399 | esac >> confcache | |
17400 | if cmp -s $cache_file confcache; then | |
17401 | : | |
17402 | else | |
17403 | if test -w $cache_file; then | |
17404 | echo "updating cache $cache_file" | |
17405 | cat confcache > $cache_file | |
f6bcfd97 | 17406 | else |
4f14bcd8 | 17407 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17408 | fi |
4f14bcd8 GD |
17409 | fi |
17410 | rm -f confcache | |
f6bcfd97 | 17411 | |
4f14bcd8 GD |
17412 | |
17413 | ||
009fead0 | 17414 | CPP_MT_FLAG= |
4f14bcd8 GD |
17415 | if test "$TOOLKIT" != "MSW"; then |
17416 | ||
009fead0 | 17417 | |
7274f1c7 | 17418 | THREADS_LINK= |
009fead0 | 17419 | THREADS_CFLAGS= |
7274f1c7 RL |
17420 | |
17421 | if test "$wxUSE_THREADS" = "yes" ; then | |
17422 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 17423 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17424 | wxUSE_THREADS="no" |
17425 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 17426 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17427 | wxUSE_THREADS="no" |
17428 | fi | |
4f14bcd8 | 17429 | fi |
4f14bcd8 | 17430 | |
7274f1c7 | 17431 | if test "$wxUSE_THREADS" = "yes" ; then |
009fead0 | 17432 | |
3010d50a | 17433 | |
009fead0 VZ |
17434 | THREAD_OPTS="-pthread" |
17435 | case "${host}" in | |
17436 | *-*-solaris2* | *-*-sunos4* ) | |
17437 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 17438 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
17439 | else |
17440 | THREAD_OPTS="-mt $THREAD_OPTS" | |
17441 | fi | |
17442 | ;; | |
17443 | *-*-freebsd*) | |
17444 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
17445 | ;; | |
17234b26 MB |
17446 | *-*-darwin* | *-*-cygwin* ) |
17447 | THREAD_OPTS="" | |
4101db81 | 17448 | ;; |
8f4a9a10 | 17449 | *-*-aix*) |
009fead0 VZ |
17450 | THREAD_OPTS="pthreads" |
17451 | ;; | |
009fead0 | 17452 | esac |
4f14bcd8 | 17453 | |
02a1dfba | 17454 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 17455 | |
009fead0 VZ |
17456 | THREADS_OK=no |
17457 | for flag in $THREAD_OPTS; do | |
17458 | case $flag in | |
17459 | none) | |
17460 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 | |
24f5e003 | 17461 | echo "configure:17462: checking whether pthreads work without any flags" >&5 |
009fead0 | 17462 | ;; |
698dcdb6 | 17463 | |
009fead0 VZ |
17464 | -*) |
17465 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 | |
24f5e003 | 17466 | echo "configure:17467: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
17467 | THREADS_CFLAGS="$flag" |
17468 | ;; | |
698dcdb6 | 17469 | |
009fead0 VZ |
17470 | *) |
17471 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 | |
24f5e003 | 17472 | echo "configure:17473: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
17473 | THREADS_LINK="-l$flag" |
17474 | ;; | |
17475 | esac | |
10f2d63a | 17476 | |
009fead0 VZ |
17477 | save_LIBS="$LIBS" |
17478 | save_CFLAGS="$CFLAGS" | |
17479 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 17480 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 17481 | |
009fead0 | 17482 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 17483 | #line 17484 "configure" |
009fead0 VZ |
17484 | #include "confdefs.h" |
17485 | #include <pthread.h> | |
4f14bcd8 | 17486 | int main() { |
009fead0 | 17487 | pthread_create(0,0,0,0); |
698dcdb6 VZ |
17488 | ; return 0; } |
17489 | EOF | |
24f5e003 | 17490 | if { (eval echo configure:17491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17491 | rm -rf conftest* |
009fead0 | 17492 | THREADS_OK=yes |
10f2d63a | 17493 | else |
698dcdb6 VZ |
17494 | echo "configure: failed program was:" >&5 |
17495 | cat conftest.$ac_ext >&5 | |
6232543b | 17496 | fi |
698dcdb6 | 17497 | rm -f conftest* |
698dcdb6 | 17498 | |
009fead0 VZ |
17499 | LIBS="$save_LIBS" |
17500 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 17501 | |
009fead0 VZ |
17502 | echo "$ac_t""$THREADS_OK" 1>&6 |
17503 | if test "x$THREADS_OK" = "xyes"; then | |
17504 | break; | |
17505 | fi | |
d9b9876f | 17506 | |
009fead0 VZ |
17507 | THREADS_LINK="" |
17508 | THREADS_CFLAGS="" | |
17509 | done | |
4f14bcd8 | 17510 | |
009fead0 VZ |
17511 | if test "x$THREADS_OK" != "xyes"; then |
17512 | wxUSE_THREADS=no | |
17513 | echo "configure: warning: No thread support on this system... disabled" 1>&2 | |
17514 | else | |
fe5a9cab VZ |
17515 | LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS" |
17516 | ||
009fead0 | 17517 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
24f5e003 | 17518 | echo "configure:17519: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
17519 | flag=no |
17520 | case "${host}" in | |
17521 | *-aix* | *-freebsd*) | |
17522 | flag="-D_THREAD_SAFE" | |
17523 | ;; | |
17524 | *solaris* | alpha*-osf*) | |
17525 | flag="-D_REENTRANT" | |
17526 | ;; | |
17527 | esac | |
17528 | echo "$ac_t""${flag}" 1>&6 | |
17529 | if test "x$flag" != xno; then | |
04727afd | 17530 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
17531 | fi |
17532 | ||
009fead0 | 17533 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 17534 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
17535 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
17536 | fi | |
17537 | fi | |
4f14bcd8 | 17538 | fi |
4f14bcd8 | 17539 | |
7274f1c7 RL |
17540 | if test "$wxUSE_THREADS" = "yes" ; then |
17541 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
17542 | do |
17543 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
24f5e003 | 17544 | echo "configure:17545: checking for $ac_func" >&5 |
4f14bcd8 | 17545 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
17546 | echo $ac_n "(cached) $ac_c" 1>&6 |
17547 | else | |
4f14bcd8 | 17548 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 17549 | #line 17550 "configure" |
d9b9876f | 17550 | #include "confdefs.h" |
4f14bcd8 GD |
17551 | /* System header to define __stub macros and hopefully few prototypes, |
17552 | which can conflict with char $ac_func(); below. */ | |
17553 | #include <assert.h> | |
17554 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17555 | /* We use char because int might match the return type of a gcc2 | |
17556 | builtin and then its argument prototype would still apply. */ | |
17557 | char $ac_func(); | |
17558 | ||
698dcdb6 | 17559 | int main() { |
d9b9876f | 17560 | |
4f14bcd8 GD |
17561 | /* The GNU C library defines this for functions which it implements |
17562 | to always fail with ENOSYS. Some functions are actually named | |
17563 | something starting with __ and the normal name is an alias. */ | |
17564 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17565 | choke me | |
17566 | #else | |
17567 | $ac_func(); | |
17568 | #endif | |
17569 | ||
698dcdb6 VZ |
17570 | ; return 0; } |
17571 | EOF | |
24f5e003 | 17572 | if { (eval echo configure:17573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17573 | rm -rf conftest* |
4f14bcd8 | 17574 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 17575 | else |
698dcdb6 VZ |
17576 | echo "configure: failed program was:" >&5 |
17577 | cat conftest.$ac_ext >&5 | |
17578 | rm -rf conftest* | |
4f14bcd8 | 17579 | eval "ac_cv_func_$ac_func=no" |
6232543b | 17580 | fi |
698dcdb6 | 17581 | rm -f conftest* |
1e487827 | 17582 | fi |
698dcdb6 | 17583 | |
4f14bcd8 GD |
17584 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17585 | echo "$ac_t""yes" 1>&6 | |
17586 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17587 | cat >> confdefs.h <<EOF | |
17588 | #define $ac_tr_func 1 | |
d9b9876f | 17589 | EOF |
4f14bcd8 GD |
17590 | |
17591 | else | |
17592 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17593 | fi |
4f14bcd8 | 17594 | done |
10f2d63a | 17595 | |
10f2d63a | 17596 | |
7274f1c7 | 17597 | for ac_hdr in sched.h |
4f14bcd8 GD |
17598 | do |
17599 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17600 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24f5e003 | 17601 | echo "configure:17602: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
17602 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17604 | else |
4f14bcd8 | 17605 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 17606 | #line 17607 "configure" |
4f14bcd8 GD |
17607 | #include "confdefs.h" |
17608 | #include <$ac_hdr> | |
13111b2a | 17609 | EOF |
4f14bcd8 | 17610 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
24f5e003 | 17611 | { (eval echo configure:17612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
17612 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17613 | if test -z "$ac_err"; then | |
17614 | rm -rf conftest* | |
17615 | eval "ac_cv_header_$ac_safe=yes" | |
17616 | else | |
17617 | echo "$ac_err" >&5 | |
17618 | echo "configure: failed program was:" >&5 | |
17619 | cat conftest.$ac_ext >&5 | |
17620 | rm -rf conftest* | |
17621 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17622 | fi |
4f14bcd8 | 17623 | rm -f conftest* |
10f2d63a | 17624 | fi |
4f14bcd8 GD |
17625 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17626 | echo "$ac_t""yes" 1>&6 | |
17627 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 17628 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17629 | #define $ac_tr_hdr 1 |
f6bcfd97 | 17630 | EOF |
4f14bcd8 GD |
17631 | |
17632 | else | |
17633 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17634 | fi |
4f14bcd8 | 17635 | done |
f6bcfd97 | 17636 | |
009fead0 VZ |
17637 | if test "$ac_cv_header_sched_h" = "yes"; then |
17638 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 | |
24f5e003 | 17639 | echo "configure:17640: checking for sched_yield" >&5 |
009fead0 | 17640 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
4f14bcd8 GD |
17641 | echo $ac_n "(cached) $ac_c" 1>&6 |
17642 | else | |
009fead0 | 17643 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 17644 | #line 17645 "configure" |
4f14bcd8 | 17645 | #include "confdefs.h" |
009fead0 VZ |
17646 | /* System header to define __stub macros and hopefully few prototypes, |
17647 | which can conflict with char sched_yield(); below. */ | |
17648 | #include <assert.h> | |
4f14bcd8 GD |
17649 | /* Override any gcc2 internal prototype to avoid an error. */ |
17650 | /* We use char because int might match the return type of a gcc2 | |
17651 | builtin and then its argument prototype would still apply. */ | |
17652 | char sched_yield(); | |
10f2d63a | 17653 | |
4f14bcd8 | 17654 | int main() { |
009fead0 VZ |
17655 | |
17656 | /* The GNU C library defines this for functions which it implements | |
17657 | to always fail with ENOSYS. Some functions are actually named | |
17658 | something starting with __ and the normal name is an alias. */ | |
17659 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
17660 | choke me | |
17661 | #else | |
17662 | sched_yield(); | |
17663 | #endif | |
17664 | ||
4f14bcd8 | 17665 | ; return 0; } |
10f2d63a | 17666 | EOF |
24f5e003 | 17667 | if { (eval echo configure:17668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 | 17668 | rm -rf conftest* |
009fead0 | 17669 | eval "ac_cv_func_sched_yield=yes" |
10f2d63a | 17670 | else |
4f14bcd8 GD |
17671 | echo "configure: failed program was:" >&5 |
17672 | cat conftest.$ac_ext >&5 | |
17673 | rm -rf conftest* | |
009fead0 | 17674 | eval "ac_cv_func_sched_yield=no" |
10f2d63a | 17675 | fi |
4f14bcd8 | 17676 | rm -f conftest* |
4f14bcd8 | 17677 | fi |
009fead0 VZ |
17678 | |
17679 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
4f14bcd8 GD |
17680 | echo "$ac_t""yes" 1>&6 |
17681 | cat >> confdefs.h <<\EOF | |
17682 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
17683 | EOF |
17684 | ||
4f14bcd8 GD |
17685 | else |
17686 | echo "$ac_t""no" 1>&6 | |
009fead0 VZ |
17687 | |
17688 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
24f5e003 | 17689 | echo "configure:17690: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
17690 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17691 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17692 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17693 | else | |
17694 | ac_save_LIBS="$LIBS" | |
17695 | LIBS="-lposix4 $LIBS" | |
17696 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 17697 | #line 17698 "configure" |
4f14bcd8 GD |
17698 | #include "confdefs.h" |
17699 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17700 | /* We use char because int might match the return type of a gcc2 | |
17701 | builtin and then its argument prototype would still apply. */ | |
17702 | char sched_yield(); | |
47c13eb7 | 17703 | |
4f14bcd8 GD |
17704 | int main() { |
17705 | sched_yield() | |
17706 | ; return 0; } | |
10f2d63a | 17707 | EOF |
24f5e003 | 17708 | if { (eval echo configure:17709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
17709 | rm -rf conftest* |
17710 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 17711 | else |
4f14bcd8 GD |
17712 | echo "configure: failed program was:" >&5 |
17713 | cat conftest.$ac_ext >&5 | |
17714 | rm -rf conftest* | |
17715 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 17716 | fi |
4f14bcd8 GD |
17717 | rm -f conftest* |
17718 | LIBS="$ac_save_LIBS" | |
10f2d63a | 17719 | |
54276ccf | 17720 | fi |
4f14bcd8 GD |
17721 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17722 | echo "$ac_t""yes" 1>&6 | |
17723 | cat >> confdefs.h <<\EOF | |
17724 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 17725 | EOF |
3d63bc3a | 17726 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
17727 | else |
17728 | echo "$ac_t""no" 1>&6 | |
17729 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
009fead0 | 17730 | |
54276ccf VZ |
17731 | fi |
17732 | ||
009fead0 VZ |
17733 | |
17734 | ||
4f14bcd8 | 17735 | fi |
698dcdb6 | 17736 | |
009fead0 | 17737 | fi |
10f2d63a | 17738 | |
7274f1c7 | 17739 | HAVE_PRIOR_FUNCS=0 |
009fead0 | 17740 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
24f5e003 | 17741 | echo "configure:17742: checking for pthread_attr_getschedpolicy" >&5 |
009fead0 | 17742 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
698dcdb6 VZ |
17743 | echo $ac_n "(cached) $ac_c" 1>&6 |
17744 | else | |
009fead0 | 17745 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 17746 | #line 17747 "configure" |
422107f9 | 17747 | #include "confdefs.h" |
009fead0 VZ |
17748 | /* System header to define __stub macros and hopefully few prototypes, |
17749 | which can conflict with char pthread_attr_getschedpolicy(); below. */ | |
17750 | #include <assert.h> | |
4f14bcd8 GD |
17751 | /* Override any gcc2 internal prototype to avoid an error. */ |
17752 | /* We use char because int might match the return type of a gcc2 | |
17753 | builtin and then its argument prototype would still apply. */ | |
17754 | char pthread_attr_getschedpolicy(); | |
17755 | ||
17756 | int main() { | |
009fead0 VZ |
17757 | |
17758 | /* The GNU C library defines this for functions which it implements | |
17759 | to always fail with ENOSYS. Some functions are actually named | |
17760 | something starting with __ and the normal name is an alias. */ | |
17761 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
17762 | choke me | |
17763 | #else | |
17764 | pthread_attr_getschedpolicy(); | |
17765 | #endif | |
17766 | ||
4f14bcd8 | 17767 | ; return 0; } |
698dcdb6 | 17768 | EOF |
24f5e003 | 17769 | if { (eval echo configure:17770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17770 | rm -rf conftest* |
009fead0 | 17771 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" |
422107f9 | 17772 | else |
698dcdb6 | 17773 | echo "configure: failed program was:" >&5 |
422107f9 | 17774 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17775 | rm -rf conftest* |
009fead0 | 17776 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" |
422107f9 | 17777 | fi |
698dcdb6 | 17778 | rm -f conftest* |
422107f9 | 17779 | fi |
009fead0 VZ |
17780 | |
17781 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
698dcdb6 | 17782 | echo "$ac_t""yes" 1>&6 |
009fead0 | 17783 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 |
24f5e003 | 17784 | echo "configure:17785: checking for pthread_attr_setschedparam" >&5 |
009fead0 | 17785 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
698dcdb6 | 17786 | echo $ac_n "(cached) $ac_c" 1>&6 |
422107f9 | 17787 | else |
009fead0 | 17788 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 17789 | #line 17790 "configure" |
422107f9 | 17790 | #include "confdefs.h" |
009fead0 VZ |
17791 | /* System header to define __stub macros and hopefully few prototypes, |
17792 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
17793 | #include <assert.h> | |
422107f9 VZ |
17794 | /* Override any gcc2 internal prototype to avoid an error. */ |
17795 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17796 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17797 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
17798 | |
17799 | int main() { | |
009fead0 VZ |
17800 | |
17801 | /* The GNU C library defines this for functions which it implements | |
17802 | to always fail with ENOSYS. Some functions are actually named | |
17803 | something starting with __ and the normal name is an alias. */ | |
17804 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
17805 | choke me | |
17806 | #else | |
17807 | pthread_attr_setschedparam(); | |
17808 | #endif | |
17809 | ||
698dcdb6 VZ |
17810 | ; return 0; } |
17811 | EOF | |
24f5e003 | 17812 | if { (eval echo configure:17813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17813 | rm -rf conftest* |
009fead0 | 17814 | eval "ac_cv_func_pthread_attr_setschedparam=yes" |
698dcdb6 VZ |
17815 | else |
17816 | echo "configure: failed program was:" >&5 | |
17817 | cat conftest.$ac_ext >&5 | |
17818 | rm -rf conftest* | |
009fead0 | 17819 | eval "ac_cv_func_pthread_attr_setschedparam=no" |
698dcdb6 VZ |
17820 | fi |
17821 | rm -f conftest* | |
698dcdb6 | 17822 | fi |
009fead0 VZ |
17823 | |
17824 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
698dcdb6 | 17825 | echo "$ac_t""yes" 1>&6 |
009fead0 | 17826 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 |
24f5e003 | 17827 | echo "configure:17828: checking for sched_get_priority_max" >&5 |
009fead0 | 17828 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
698dcdb6 VZ |
17829 | echo $ac_n "(cached) $ac_c" 1>&6 |
17830 | else | |
009fead0 | 17831 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 17832 | #line 17833 "configure" |
422107f9 | 17833 | #include "confdefs.h" |
009fead0 VZ |
17834 | /* System header to define __stub macros and hopefully few prototypes |
17835 | else | |
17836 | echo "$ac_t""no" 1>&6 | |
17837 | which can conflict with char sched_get_priority_max(); below. */ | |
17838 | #include <assert.h> | |
4f14bcd8 GD |
17839 | /* Override any gcc2 internal prototype to avoid an error. */ |
17840 | /* We use char because int might match the return type of a gcc2 | |
17841 | builtin and then its argument prototype would still apply. */ | |
17842 | char sched_get_priority_max(); | |
17843 | ||
17844 | int main() { | |
009fead0 VZ |
17845 | |
17846 | /* The GNU C library defines this for functions which it implements | |
17847 | to always fail with ENOSYS. Some functions are actually named | |
17848 | something starting with __ and the normal name is an alias. */ | |
17849 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
17850 | choke me | |
17851 | #else | |
17852 | sched_get_priority_max(); | |
17853 | #endif | |
17854 | ||
4f14bcd8 | 17855 | ; return 0; } |
698dcdb6 | 17856 | EOF |
24f5e003 | 17857 | if { (eval echo configure:17858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17858 | rm -rf conftest* |
009fead0 | 17859 | eval "ac_cv_func_sched_get_priority_max=yes" |
422107f9 | 17860 | else |
698dcdb6 | 17861 | echo "configure: failed program was:" >&5 |
422107f9 | 17862 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17863 | rm -rf conftest* |
009fead0 | 17864 | eval "ac_cv_func_sched_get_priority_max=no" |
422107f9 | 17865 | fi |
698dcdb6 | 17866 | rm -f conftest* |
422107f9 | 17867 | fi |
009fead0 VZ |
17868 | |
17869 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
698dcdb6 | 17870 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17871 | HAVE_PRIOR_FUNCS=1 |
17872 | else | |
17873 | echo "$ac_t""no" 1>&6 | |
17874 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
24f5e003 | 17875 | echo "configure:17876: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 17876 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
17877 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
17878 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17879 | else |
698dcdb6 | 17880 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17881 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 17882 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 17883 | #line 17884 "configure" |
422107f9 VZ |
17884 | #include "confdefs.h" |
17885 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17886 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17887 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17888 | char sched_get_priority_max(); |
698dcdb6 VZ |
17889 | |
17890 | int main() { | |
4f14bcd8 | 17891 | sched_get_priority_max() |
698dcdb6 VZ |
17892 | ; return 0; } |
17893 | EOF | |
24f5e003 | 17894 | if { (eval echo configure:17895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17895 | rm -rf conftest* |
17896 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17897 | else | |
17898 | echo "configure: failed program was:" >&5 | |
17899 | cat conftest.$ac_ext >&5 | |
17900 | rm -rf conftest* | |
17901 | eval "ac_cv_lib_$ac_lib_var=no" | |
17902 | fi | |
17903 | rm -f conftest* | |
17904 | LIBS="$ac_save_LIBS" | |
17905 | ||
17906 | fi | |
17907 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17908 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17909 | |
7274f1c7 RL |
17910 | HAVE_PRIOR_FUNCS=1 |
17911 | POSIX4_LINK=" -lposix4" | |
17912 | ||
698dcdb6 VZ |
17913 | else |
17914 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
17915 | fi |
17916 | ||
7274f1c7 | 17917 | |
422107f9 VZ |
17918 | fi |
17919 | ||
7274f1c7 | 17920 | |
4f14bcd8 GD |
17921 | else |
17922 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17923 | fi |
17924 | ||
7274f1c7 | 17925 | |
4f14bcd8 | 17926 | fi |
463abc64 | 17927 | |
463abc64 | 17928 | |
7274f1c7 RL |
17929 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
17930 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17931 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 17932 | EOF |
463abc64 | 17933 | |
7274f1c7 RL |
17934 | else |
17935 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
17936 | fi | |
463abc64 | 17937 | |
009fead0 | 17938 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
24f5e003 | 17939 | echo "configure:17940: checking for pthread_cancel" >&5 |
009fead0 | 17940 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
698dcdb6 | 17941 | echo $ac_n "(cached) $ac_c" 1>&6 |
422107f9 | 17942 | else |
009fead0 | 17943 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 17944 | #line 17945 "configure" |
422107f9 | 17945 | #include "confdefs.h" |
009fead0 VZ |
17946 | /* System header to define __stub macros and hopefully few prototypes, |
17947 | which can conflict with char pthread_cancel(); below. */ | |
17948 | #include <assert.h> | |
422107f9 VZ |
17949 | /* Override any gcc2 internal prototype to avoid an error. */ |
17950 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 17951 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 17952 | char pthread_cancel(); |
698dcdb6 VZ |
17953 | |
17954 | int main() { | |
009fead0 VZ |
17955 | |
17956 | /* The GNU C library defines this for functions which it implements | |
17957 | to always fail with ENOSYS. Some functions are actually named | |
17958 | something starting with __ and the normal name is an alias. */ | |
17959 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
17960 | choke me | |
17961 | #else | |
17962 | pthread_cancel(); | |
17963 | #endif | |
17964 | ||
698dcdb6 VZ |
17965 | ; return 0; } |
17966 | EOF | |
24f5e003 | 17967 | if { (eval echo configure:17968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 17968 | rm -rf conftest* |
009fead0 | 17969 | eval "ac_cv_func_pthread_cancel=yes" |
698dcdb6 VZ |
17970 | else |
17971 | echo "configure: failed program was:" >&5 | |
17972 | cat conftest.$ac_ext >&5 | |
17973 | rm -rf conftest* | |
009fead0 | 17974 | eval "ac_cv_func_pthread_cancel=no" |
698dcdb6 VZ |
17975 | fi |
17976 | rm -f conftest* | |
698dcdb6 | 17977 | fi |
009fead0 VZ |
17978 | |
17979 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
698dcdb6 | 17980 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
17981 | cat >> confdefs.h <<\EOF |
17982 | #define HAVE_PTHREAD_CANCEL 1 | |
17983 | EOF | |
17984 | ||
698dcdb6 VZ |
17985 | else |
17986 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17987 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
17988 | fi |
17989 | ||
422107f9 | 17990 | |
7274f1c7 | 17991 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
24f5e003 | 17992 | echo "configure:17993: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
17993 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
17994 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17995 | else | |
17996 | ||
7274f1c7 | 17997 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 17998 | #line 17999 "configure" |
4f14bcd8 GD |
17999 | #include "confdefs.h" |
18000 | #include <pthread.h> | |
18001 | int main() { | |
18002 | ||
7274f1c7 RL |
18003 | pthread_cleanup_push(NULL, NULL); |
18004 | pthread_cleanup_pop(0); | |
18005 | ||
4f14bcd8 GD |
18006 | ; return 0; } |
18007 | EOF | |
24f5e003 | 18008 | if { (eval echo configure:18009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
18009 | rm -rf conftest* |
18010 | ||
7274f1c7 RL |
18011 | wx_cv_func_pthread_cleanup_push=yes |
18012 | ||
4f14bcd8 GD |
18013 | else |
18014 | echo "configure: failed program was:" >&5 | |
18015 | cat conftest.$ac_ext >&5 | |
18016 | rm -rf conftest* | |
18017 | ||
7274f1c7 RL |
18018 | wx_cv_func_pthread_cleanup_push=no |
18019 | ||
4f14bcd8 GD |
18020 | fi |
18021 | rm -f conftest* | |
7274f1c7 | 18022 | |
10f2d63a VZ |
18023 | fi |
18024 | ||
4f14bcd8 GD |
18025 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
18026 | ||
7274f1c7 RL |
18027 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
18028 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18029 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
18030 | EOF |
18031 | ||
7274f1c7 | 18032 | fi |
4f14bcd8 | 18033 | |
7274f1c7 | 18034 | |
19bc6aad | 18035 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
7274f1c7 RL |
18036 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" |
18037 | fi | |
4f14bcd8 | 18038 | |
7274f1c7 | 18039 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
24f5e003 | 18040 | echo "configure:18041: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 18041 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
18042 | echo $ac_n "(cached) $ac_c" 1>&6 |
18043 | else | |
4f14bcd8 | 18044 | |
7274f1c7 | 18045 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 18046 | #line 18047 "configure" |
0dcf9893 | 18047 | #include "confdefs.h" |
4f14bcd8 GD |
18048 | #include <pthread.h> |
18049 | int main() { | |
18050 | ||
7274f1c7 RL |
18051 | pthread_mutexattr_t attr; |
18052 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
18053 | ||
4f14bcd8 | 18054 | ; return 0; } |
698dcdb6 | 18055 | EOF |
24f5e003 | 18056 | if { (eval echo configure:18057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18057 | rm -rf conftest* |
4f14bcd8 | 18058 | |
7274f1c7 RL |
18059 | wx_cv_type_pthread_mutexattr_t=yes |
18060 | ||
3fed1840 | 18061 | else |
698dcdb6 | 18062 | echo "configure: failed program was:" >&5 |
3fed1840 | 18063 | cat conftest.$ac_ext >&5 |
698dcdb6 | 18064 | rm -rf conftest* |
4f14bcd8 | 18065 | |
7274f1c7 RL |
18066 | wx_cv_type_pthread_mutexattr_t=no |
18067 | ||
4f14bcd8 | 18068 | |
3fed1840 | 18069 | fi |
698dcdb6 | 18070 | rm -f conftest* |
7274f1c7 | 18071 | |
3fed1840 | 18072 | fi |
4f14bcd8 GD |
18073 | |
18074 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
18075 | ||
7274f1c7 RL |
18076 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
18077 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
18078 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
18079 | EOF | |
18080 | ||
7274f1c7 RL |
18081 | else |
18082 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
24f5e003 | 18083 | echo "configure:18084: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 18084 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 18085 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 18086 | else |
4f14bcd8 | 18087 | |
7274f1c7 | 18088 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 18089 | #line 18090 "configure" |
3fed1840 | 18090 | #include "confdefs.h" |
4f14bcd8 | 18091 | #include <pthread.h> |
698dcdb6 | 18092 | int main() { |
4f14bcd8 | 18093 | |
7274f1c7 RL |
18094 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
18095 | ||
698dcdb6 VZ |
18096 | ; return 0; } |
18097 | EOF | |
24f5e003 | 18098 | if { (eval echo configure:18099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18099 | rm -rf conftest* |
4f14bcd8 | 18100 | |
7274f1c7 RL |
18101 | wx_cv_type_pthread_rec_mutex_init=yes |
18102 | ||
698dcdb6 VZ |
18103 | else |
18104 | echo "configure: failed program was:" >&5 | |
18105 | cat conftest.$ac_ext >&5 | |
18106 | rm -rf conftest* | |
4f14bcd8 | 18107 | |
7274f1c7 RL |
18108 | wx_cv_type_pthread_rec_mutex_init=no |
18109 | ||
4f14bcd8 | 18110 | |
698dcdb6 VZ |
18111 | fi |
18112 | rm -f conftest* | |
7274f1c7 | 18113 | |
3fed1840 RR |
18114 | fi |
18115 | ||
4f14bcd8 | 18116 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
18117 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
18118 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
18119 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
18120 | EOF | |
3fed1840 | 18121 | |
7274f1c7 RL |
18122 | else |
18123 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
18124 | fi | |
18125 | fi | |
7274f1c7 | 18126 | fi |
3fed1840 | 18127 | |
4f14bcd8 GD |
18128 | fi |
18129 | ||
18130 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 18131 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18132 | #define wxUSE_THREADS 1 |
7b6058cd GD |
18133 | EOF |
18134 | ||
4f14bcd8 | 18135 | |
4f14bcd8 | 18136 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 18137 | else |
4f14bcd8 GD |
18138 | if test "$ac_cv_func_strtok_r" = "yes"; then |
18139 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
24f5e003 | 18140 | echo "configure:18141: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
18141 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
18142 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
18143 | echo "$ac_t""yes" 1>&6 | |
18144 | else | |
18145 | echo "$ac_t""no" 1>&6 | |
18146 | fi | |
18147 | fi | |
18148 | fi | |
18149 | ||
18150 | if test "$WXGTK20" = 1 ; then | |
18151 | cat >> confdefs.h <<EOF | |
18152 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 18153 | EOF |
4f14bcd8 GD |
18154 | |
18155 | WXGTK12=1 | |
10f2d63a | 18156 | fi |
4f14bcd8 GD |
18157 | |
18158 | if test "$WXGTK12" = 1 ; then | |
18159 | cat >> confdefs.h <<EOF | |
18160 | #define __WXGTK12__ $WXGTK12 | |
18161 | EOF | |
18162 | ||
10f2d63a | 18163 | fi |
698dcdb6 | 18164 | |
4f14bcd8 GD |
18165 | if test "$WXGTK127" = 1 ; then |
18166 | cat >> confdefs.h <<EOF | |
18167 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 18168 | EOF |
4f14bcd8 | 18169 | |
698dcdb6 | 18170 | fi |
10f2d63a | 18171 | |
4f14bcd8 GD |
18172 | WXDEBUG= |
18173 | ||
18174 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
18175 | WXDEBUG="-g" | |
18176 | wxUSE_OPTIMISE=no | |
698dcdb6 | 18177 | fi |
4f14bcd8 GD |
18178 | |
18179 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
18180 | wxUSE_DEBUG_INFO=yes | |
18181 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
18182 | fi |
18183 | ||
4f14bcd8 GD |
18184 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
18185 | cat >> confdefs.h <<\EOF | |
18186 | #define WXDEBUG 1 | |
18187 | EOF | |
18188 | ||
18189 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 18190 | else |
4f14bcd8 GD |
18191 | if test "$wxUSE_GTK" = 1 ; then |
18192 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
18193 | fi | |
18194 | fi | |
18195 | ||
18196 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
18197 | cat >> confdefs.h <<\EOF | |
18198 | #define wxUSE_MEMORY_TRACING 1 | |
18199 | EOF | |
18200 | ||
18201 | cat >> confdefs.h <<\EOF | |
18202 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
18203 | EOF | |
18204 | ||
18205 | cat >> confdefs.h <<\EOF | |
18206 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
18207 | EOF | |
18208 | ||
18209 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
18210 | fi | |
18211 | ||
18212 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 18213 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
18214 | fi |
18215 | ||
18216 | PROFILE= | |
18217 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 18218 | PROFILE=" -pg" |
10f2d63a VZ |
18219 | fi |
18220 | ||
009fead0 VZ |
18221 | CODE_GEN_FLAGS= |
18222 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 18223 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
18224 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
18225 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 18226 | fi |
4f14bcd8 GD |
18227 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
18228 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
18229 | fi | |
18230 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
18231 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
18232 | fi | |
4f14bcd8 GD |
18233 | if test "$USE_WIN32" = 1 ; then |
18234 | # I'm not even really sure what this was ever added to solve, | |
18235 | # but someone added it for mingw native builds, so I guess | |
18236 | # they had a reason, right?? | |
18237 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
18238 | fi | |
1d1b75ac VZ |
18239 | |
18240 | case "${host}" in | |
18241 | powerpc*-*-aix* ) | |
18242 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
18243 | ;; | |
18244 | esac | |
4f14bcd8 GD |
18245 | fi |
18246 | ||
4f14bcd8 GD |
18247 | if test "$wxUSE_OPTIMISE" = "no" ; then |
18248 | OPTIMISE= | |
18249 | else | |
18250 | if test "$GCC" = yes ; then | |
18251 | OPTIMISE="-O2" | |
18252 | case "${host}" in | |
18253 | i586-*-*|i686-*-* ) | |
18254 | OPTIMISE="${OPTIMISE} " | |
18255 | ;; | |
18256 | esac | |
18257 | else | |
18258 | OPTIMISE="-O" | |
18259 | fi | |
18260 | fi | |
18261 | ||
18262 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
18263 | cat >> confdefs.h <<\EOF | |
18264 | #define WXWIN_COMPATIBILITY_2 1 | |
18265 | EOF | |
18266 | ||
18267 | ||
18268 | WXWIN_COMPATIBILITY_2_2="yes" | |
18269 | fi | |
18270 | ||
0c9a1c32 | 18271 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
4f14bcd8 GD |
18272 | cat >> confdefs.h <<\EOF |
18273 | #define WXWIN_COMPATIBILITY_2_2 1 | |
18274 | EOF | |
18275 | ||
10f2d63a VZ |
18276 | fi |
18277 | ||
698dcdb6 | 18278 | |
10f2d63a | 18279 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 18280 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18281 | #define wxUSE_GUI 1 |
18282 | EOF | |
18283 | ||
698dcdb6 | 18284 | |
10f2d63a | 18285 | else |
698dcdb6 | 18286 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18287 | #define wxUSE_NOGUI 1 |
18288 | EOF | |
18289 | ||
18290 | fi | |
18291 | ||
698dcdb6 | 18292 | |
10f2d63a | 18293 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 18294 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18295 | #define wxUSE_UNIX 1 |
18296 | EOF | |
18297 | ||
18298 | fi | |
18299 | ||
698dcdb6 | 18300 | |
10f2d63a | 18301 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 18302 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18303 | #define wxUSE_APPLE_IEEE 1 |
18304 | EOF | |
18305 | ||
18306 | fi | |
18307 | ||
1e6feb95 VZ |
18308 | if test "$wxUSE_TIMER" = "yes"; then |
18309 | cat >> confdefs.h <<\EOF | |
18310 | #define wxUSE_TIMER 1 | |
18311 | EOF | |
18312 | ||
18313 | fi | |
18314 | ||
10f2d63a | 18315 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 18316 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18317 | #define wxUSE_WAVE 1 |
18318 | EOF | |
18319 | ||
18320 | fi | |
18321 | ||
1e6feb95 VZ |
18322 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
18323 | cat >> confdefs.h <<\EOF | |
18324 | #define wxUSE_CMDLINE_PARSER 1 | |
18325 | EOF | |
18326 | ||
18327 | fi | |
18328 | ||
18329 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
18330 | cat >> confdefs.h <<\EOF | |
18331 | #define wxUSE_STOPWATCH 1 | |
18332 | EOF | |
18333 | ||
18334 | fi | |
18335 | ||
18336 | if test "$wxUSE_DATETIME" = "yes"; then | |
18337 | cat >> confdefs.h <<\EOF | |
18338 | #define wxUSE_DATETIME 1 | |
18339 | EOF | |
18340 | ||
18341 | fi | |
18342 | ||
18343 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
18344 | cat >> confdefs.h <<\EOF | |
18345 | #define wxUSE_TIMEDATE 1 | |
18346 | EOF | |
18347 | ||
18348 | fi | |
18349 | ||
10f2d63a | 18350 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 18351 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18352 | #define wxUSE_FILE 1 |
18353 | EOF | |
18354 | ||
18355 | fi | |
18356 | ||
1e6feb95 VZ |
18357 | if test "$wxUSE_FFILE" = "yes"; then |
18358 | cat >> confdefs.h <<\EOF | |
18359 | #define wxUSE_FFILE 1 | |
18360 | EOF | |
18361 | ||
18362 | fi | |
18363 | ||
24528b0c | 18364 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 18365 | cat >> confdefs.h <<\EOF |
24528b0c VS |
18366 | #define wxUSE_FILESYSTEM 1 |
18367 | EOF | |
18368 | ||
18369 | fi | |
18370 | ||
10f2d63a | 18371 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 18372 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18373 | #define wxUSE_FS_INET 1 |
18374 | EOF | |
18375 | ||
18376 | fi | |
18377 | ||
18378 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 18379 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18380 | #define wxUSE_FS_ZIP 1 |
18381 | EOF | |
18382 | ||
18383 | fi | |
18384 | ||
18385 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 18386 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18387 | #define wxUSE_ZIPSTREAM 1 |
18388 | EOF | |
18389 | ||
18390 | fi | |
18391 | ||
eb4efbdc | 18392 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 18393 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
18394 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
18395 | EOF | |
18396 | ||
18397 | fi | |
18398 | ||
4f3c5f06 | 18399 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 18400 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
18401 | #define wxUSE_SNGLINST_CHECKER 1 |
18402 | EOF | |
18403 | ||
18404 | fi | |
18405 | ||
10f2d63a | 18406 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 18407 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18408 | #define wxUSE_BUSYINFO 1 |
18409 | EOF | |
18410 | ||
18411 | fi | |
18412 | ||
18413 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 18414 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18415 | #define wxUSE_STD_IOSTREAM 1 |
18416 | EOF | |
18417 | ||
18418 | fi | |
18419 | ||
a3a584a7 VZ |
18420 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
18421 | cat >> confdefs.h <<\EOF | |
18422 | #define wxUSE_TEXTBUFFER 1 | |
18423 | EOF | |
18424 | ||
18425 | fi | |
18426 | ||
10f2d63a | 18427 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 18428 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 18429 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 18430 | else |
698dcdb6 | 18431 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18432 | #define wxUSE_TEXTFILE 1 |
18433 | EOF | |
18434 | ||
18435 | fi | |
18436 | fi | |
18437 | ||
18438 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18439 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 18440 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 18441 | else |
698dcdb6 | 18442 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18443 | #define wxUSE_CONFIG 1 |
18444 | EOF | |
18445 | ||
18446 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18447 | fi | |
18448 | fi | |
18449 | ||
18450 | if test "$wxUSE_INTL" = "yes" ; then | |
18451 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 18452 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18453 | else |
698dcdb6 | 18454 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18455 | #define wxUSE_INTL 1 |
18456 | EOF | |
18457 | ||
18458 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18459 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18460 | fi |
18461 | fi | |
18462 | ||
18463 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 18464 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18465 | #define wxUSE_LOG 1 |
18466 | EOF | |
18467 | ||
d73be714 VZ |
18468 | |
18469 | if test "$wxUSE_LOGGUI" = "yes"; then | |
18470 | cat >> confdefs.h <<\EOF | |
18471 | #define wxUSE_LOGGUI 1 | |
18472 | EOF | |
18473 | ||
18474 | fi | |
18475 | ||
18476 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
18477 | cat >> confdefs.h <<\EOF | |
18478 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
18479 | EOF |
18480 | ||
18481 | fi | |
18482 | ||
18483 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
18484 | cat >> confdefs.h <<\EOF | |
18485 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
18486 | EOF |
18487 | ||
18488 | fi | |
10f2d63a VZ |
18489 | fi |
18490 | ||
18491 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 18492 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18493 | #define wxUSE_LONGLONG 1 |
18494 | EOF | |
18495 | ||
18496 | fi | |
18497 | ||
e8f65ba6 | 18498 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 18499 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
18500 | #define wxUSE_GEOMETRY 1 |
18501 | EOF | |
18502 | ||
18503 | fi | |
18504 | ||
10f2d63a | 18505 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 18506 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18507 | #define wxUSE_DIALUP_MANAGER 1 |
18508 | EOF | |
18509 | ||
70f7a477 | 18510 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18511 | fi |
18512 | ||
18513 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 18514 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18515 | #define wxUSE_STREAMS 1 |
18516 | EOF | |
18517 | ||
18518 | fi | |
18519 | ||
1e487827 | 18520 | |
1e6feb95 | 18521 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 18522 | for ac_func in strptime |
83307f33 | 18523 | do |
698dcdb6 | 18524 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24f5e003 | 18525 | echo "configure:18526: checking for $ac_func" >&5 |
698dcdb6 VZ |
18526 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18527 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18528 | else | |
18529 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 18530 | #line 18531 "configure" |
83307f33 VZ |
18531 | #include "confdefs.h" |
18532 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18533 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18534 | #include <assert.h> |
18535 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18536 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18537 | builtin and then its argument prototype would still apply. */ |
18538 | char $ac_func(); | |
18539 | ||
18540 | int main() { | |
83307f33 VZ |
18541 | |
18542 | /* The GNU C library defines this for functions which it implements | |
18543 | to always fail with ENOSYS. Some functions are actually named | |
18544 | something starting with __ and the normal name is an alias. */ | |
18545 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18546 | choke me | |
18547 | #else | |
698dcdb6 | 18548 | $ac_func(); |
83307f33 VZ |
18549 | #endif |
18550 | ||
698dcdb6 | 18551 | ; return 0; } |
83307f33 | 18552 | EOF |
24f5e003 | 18553 | if { (eval echo configure:18554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18554 | rm -rf conftest* |
18555 | eval "ac_cv_func_$ac_func=yes" | |
18556 | else | |
18557 | echo "configure: failed program was:" >&5 | |
18558 | cat conftest.$ac_ext >&5 | |
18559 | rm -rf conftest* | |
18560 | eval "ac_cv_func_$ac_func=no" | |
18561 | fi | |
18562 | rm -f conftest* | |
18563 | fi | |
83307f33 | 18564 | |
698dcdb6 VZ |
18565 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18566 | echo "$ac_t""yes" 1>&6 | |
18567 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18568 | cat >> confdefs.h <<EOF | |
18569 | #define $ac_tr_func 1 | |
18570 | EOF | |
18571 | ||
18572 | else | |
18573 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18574 | fi |
18575 | done | |
18576 | ||
1e487827 | 18577 | |
62cc730f | 18578 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
24f5e003 | 18579 | echo "configure:18580: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
18580 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
18581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18582 | else | |
18583 | ||
18584 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 18585 | #line 18586 "configure" |
360d6699 VZ |
18586 | #include "confdefs.h" |
18587 | ||
b4085ce6 | 18588 | #include <time.h> |
698dcdb6 VZ |
18589 | |
18590 | int main() { | |
360d6699 VZ |
18591 | |
18592 | int tz; | |
4f11a343 | 18593 | tz = timezone; |
698dcdb6 VZ |
18594 | |
18595 | ; return 0; } | |
18596 | EOF | |
24f5e003 | 18597 | if { (eval echo configure:18598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18598 | rm -rf conftest* |
18599 | ||
4f11a343 | 18600 | wx_cv_var_timezone=timezone |
698dcdb6 | 18601 | |
360d6699 | 18602 | else |
698dcdb6 VZ |
18603 | echo "configure: failed program was:" >&5 |
18604 | cat conftest.$ac_ext >&5 | |
18605 | rm -rf conftest* | |
18606 | ||
18607 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 18608 | #line 18609 "configure" |
360d6699 VZ |
18609 | #include "confdefs.h" |
18610 | ||
b4085ce6 | 18611 | #include <time.h> |
698dcdb6 VZ |
18612 | |
18613 | int main() { | |
360d6699 VZ |
18614 | |
18615 | int tz; | |
18616 | tz = _timezone; | |
698dcdb6 VZ |
18617 | |
18618 | ; return 0; } | |
18619 | EOF | |
24f5e003 | 18620 | if { (eval echo configure:18621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18621 | rm -rf conftest* |
18622 | ||
360d6699 | 18623 | wx_cv_var_timezone=_timezone |
698dcdb6 | 18624 | |
5357c8e8 | 18625 | else |
698dcdb6 VZ |
18626 | echo "configure: failed program was:" >&5 |
18627 | cat conftest.$ac_ext >&5 | |
18628 | rm -rf conftest* | |
18629 | ||
18630 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 18631 | #line 18632 "configure" |
5357c8e8 VZ |
18632 | #include "confdefs.h" |
18633 | ||
b4085ce6 | 18634 | #include <time.h> |
698dcdb6 VZ |
18635 | |
18636 | int main() { | |
5357c8e8 VZ |
18637 | |
18638 | int tz; | |
4f11a343 | 18639 | tz = __timezone; |
698dcdb6 VZ |
18640 | |
18641 | ; return 0; } | |
18642 | EOF | |
24f5e003 | 18643 | if { (eval echo configure:18644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18644 | rm -rf conftest* |
18645 | ||
4f11a343 | 18646 | wx_cv_var_timezone=__timezone |
698dcdb6 | 18647 | |
360d6699 | 18648 | else |
698dcdb6 VZ |
18649 | echo "configure: failed program was:" >&5 |
18650 | cat conftest.$ac_ext >&5 | |
18651 | rm -rf conftest* | |
f9bc1684 VS |
18652 | |
18653 | if test "$USE_DOS" = 0 ; then | |
62cc730f | 18654 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 VS |
18655 | fi |
18656 | ||
698dcdb6 | 18657 | |
360d6699 | 18658 | fi |
698dcdb6 VZ |
18659 | rm -f conftest* |
18660 | ||
18661 | ||
360d6699 | 18662 | fi |
698dcdb6 VZ |
18663 | rm -f conftest* |
18664 | ||
18665 | ||
6232543b | 18666 | fi |
698dcdb6 VZ |
18667 | rm -f conftest* |
18668 | ||
18669 | ||
1e487827 | 18670 | fi |
703e0a69 | 18671 | |
698dcdb6 VZ |
18672 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
18673 | ||
f9bc1684 | 18674 | if test "x$wx_cv_var_timezone" != x ; then |
698dcdb6 | 18675 | cat >> confdefs.h <<EOF |
360d6699 VZ |
18676 | #define WX_TIMEZONE $wx_cv_var_timezone |
18677 | EOF | |
18678 | ||
f9bc1684 | 18679 | fi |
698dcdb6 VZ |
18680 | |
18681 | for ac_func in localtime | |
afc31813 | 18682 | do |
698dcdb6 | 18683 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24f5e003 | 18684 | echo "configure:18685: checking for $ac_func" >&5 |
698dcdb6 VZ |
18685 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18686 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18687 | else | |
18688 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 18689 | #line 18690 "configure" |
10f2d63a | 18690 | #include "confdefs.h" |
afc31813 | 18691 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 18692 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18693 | #include <assert.h> |
18694 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18695 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18696 | builtin and then its argument prototype would still apply. */ |
18697 | char $ac_func(); | |
18698 | ||
18699 | int main() { | |
afc31813 VZ |
18700 | |
18701 | /* The GNU C library defines this for functions which it implements | |
18702 | to always fail with ENOSYS. Some functions are actually named | |
18703 | something starting with __ and the normal name is an alias. */ | |
18704 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18705 | choke me | |
18706 | #else | |
698dcdb6 | 18707 | $ac_func(); |
afc31813 VZ |
18708 | #endif |
18709 | ||
698dcdb6 | 18710 | ; return 0; } |
10f2d63a | 18711 | EOF |
24f5e003 | 18712 | if { (eval echo configure:18713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18713 | rm -rf conftest* |
18714 | eval "ac_cv_func_$ac_func=yes" | |
18715 | else | |
18716 | echo "configure: failed program was:" >&5 | |
18717 | cat conftest.$ac_ext >&5 | |
18718 | rm -rf conftest* | |
18719 | eval "ac_cv_func_$ac_func=no" | |
18720 | fi | |
18721 | rm -f conftest* | |
18722 | fi | |
afc31813 | 18723 | |
698dcdb6 VZ |
18724 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18725 | echo "$ac_t""yes" 1>&6 | |
18726 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18727 | cat >> confdefs.h <<EOF | |
18728 | #define $ac_tr_func 1 | |
18729 | EOF | |
18730 | ||
18731 | else | |
18732 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
18733 | fi |
18734 | done | |
18735 | ||
1e487827 | 18736 | |
698dcdb6 VZ |
18737 | if test "$ac_cv_func_localtime" = "yes"; then |
18738 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
24f5e003 | 18739 | echo "configure:18740: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
18740 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
18741 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18742 | else | |
18743 | ||
18744 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 18745 | #line 18746 "configure" |
0470b1e6 VZ |
18746 | #include "confdefs.h" |
18747 | ||
b4085ce6 | 18748 | #include <time.h> |
698dcdb6 VZ |
18749 | |
18750 | int main() { | |
0470b1e6 VZ |
18751 | |
18752 | struct tm tm; | |
18753 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
18754 | |
18755 | ; return 0; } | |
18756 | EOF | |
24f5e003 | 18757 | if { (eval echo configure:18758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
18758 | rm -rf conftest* |
18759 | ||
f03a98d8 | 18760 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 18761 | |
0470b1e6 | 18762 | else |
698dcdb6 VZ |
18763 | echo "configure: failed program was:" >&5 |
18764 | cat conftest.$ac_ext >&5 | |
18765 | rm -rf conftest* | |
18766 | wx_cv_struct_tm_has_gmtoff=no | |
18767 | ||
0470b1e6 | 18768 | fi |
698dcdb6 VZ |
18769 | rm -f conftest* |
18770 | ||
1e487827 | 18771 | fi |
698dcdb6 VZ |
18772 | |
18773 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
18774 | fi |
18775 | ||
18776 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 18777 | cat >> confdefs.h <<\EOF |
6232543b VS |
18778 | #define WX_GMTOFF_IN_TM 1 |
18779 | EOF | |
0470b1e6 | 18780 | |
3fcdd07b VZ |
18781 | fi |
18782 | ||
698dcdb6 | 18783 | for ac_func in gettimeofday ftime |
3fcdd07b | 18784 | do |
698dcdb6 | 18785 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24f5e003 | 18786 | echo "configure:18787: checking for $ac_func" >&5 |
698dcdb6 VZ |
18787 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18789 | else | |
18790 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 18791 | #line 18792 "configure" |
3fcdd07b VZ |
18792 | #include "confdefs.h" |
18793 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18794 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
18795 | #include <assert.h> |
18796 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18797 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18798 | builtin and then its argument prototype would still apply. */ |
18799 | char $ac_func(); | |
18800 | ||
18801 | int main() { | |
3fcdd07b VZ |
18802 | |
18803 | /* The GNU C library defines this for functions which it implements | |
18804 | to always fail with ENOSYS. Some functions are actually named | |
18805 | something starting with __ and the normal name is an alias. */ | |
18806 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18807 | choke me | |
18808 | #else | |
698dcdb6 | 18809 | $ac_func(); |
3fcdd07b VZ |
18810 | #endif |
18811 | ||
698dcdb6 VZ |
18812 | ; return 0; } |
18813 | EOF | |
24f5e003 | 18814 | if { (eval echo configure:18815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18815 | rm -rf conftest* |
18816 | eval "ac_cv_func_$ac_func=yes" | |
18817 | else | |
18818 | echo "configure: failed program was:" >&5 | |
18819 | cat conftest.$ac_ext >&5 | |
18820 | rm -rf conftest* | |
18821 | eval "ac_cv_func_$ac_func=no" | |
18822 | fi | |
18823 | rm -f conftest* | |
18824 | fi | |
18825 | ||
18826 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18827 | echo "$ac_t""yes" 1>&6 | |
18828 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18829 | cat >> confdefs.h <<EOF | |
18830 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
18831 | EOF |
18832 | break | |
698dcdb6 VZ |
18833 | else |
18834 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
18835 | fi |
18836 | done | |
18837 | ||
afc31813 | 18838 | |
698dcdb6 VZ |
18839 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
18840 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
24f5e003 | 18841 | echo "configure:18842: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
18842 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
18843 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18844 | else | |
18845 | ||
18846 | ||
18847 | ac_ext=C | |
18848 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 18849 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18850 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18851 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18852 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18853 | |
698dcdb6 VZ |
18854 | |
18855 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 18856 | #line 18857 "configure" |
10f2d63a | 18857 | #include "confdefs.h" |
afc31813 VZ |
18858 | |
18859 | #include <sys/time.h> | |
18860 | #include <unistd.h> | |
698dcdb6 VZ |
18861 | |
18862 | int main() { | |
afc31813 VZ |
18863 | |
18864 | struct timeval tv; | |
776862b4 | 18865 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
18866 | |
18867 | ; return 0; } | |
18868 | EOF | |
24f5e003 | 18869 | if { (eval echo configure:18870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18870 | rm -rf conftest* |
afc31813 | 18871 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 18872 | else |
698dcdb6 VZ |
18873 | echo "configure: failed program was:" >&5 |
18874 | cat conftest.$ac_ext >&5 | |
18875 | rm -rf conftest* | |
18876 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 18877 | #line 18878 "configure" |
10f2d63a | 18878 | #include "confdefs.h" |
afc31813 VZ |
18879 | |
18880 | #include <sys/time.h> | |
18881 | #include <unistd.h> | |
698dcdb6 VZ |
18882 | |
18883 | int main() { | |
afc31813 VZ |
18884 | |
18885 | struct timeval tv; | |
18886 | gettimeofday(&tv); | |
698dcdb6 VZ |
18887 | |
18888 | ; return 0; } | |
18889 | EOF | |
24f5e003 | 18890 | if { (eval echo configure:18891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18891 | rm -rf conftest* |
afc31813 | 18892 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 18893 | else |
698dcdb6 VZ |
18894 | echo "configure: failed program was:" >&5 |
18895 | cat conftest.$ac_ext >&5 | |
18896 | rm -rf conftest* | |
776862b4 VZ |
18897 | |
18898 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
18899 | wx_cv_func_gettimeofday_has_2_args=unknown | |
18900 | ||
698dcdb6 | 18901 | |
10f2d63a | 18902 | fi |
698dcdb6 VZ |
18903 | rm -f conftest* |
18904 | ||
10f2d63a | 18905 | fi |
698dcdb6 | 18906 | rm -f conftest* |
afc31813 | 18907 | ac_ext=c |
698dcdb6 | 18908 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 18909 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18910 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18911 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18912 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 18913 | |
698dcdb6 | 18914 | |
afc31813 | 18915 | fi |
698dcdb6 VZ |
18916 | |
18917 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 18918 | |
afc31813 | 18919 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 18920 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18921 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
18922 | EOF | |
18923 | ||
18924 | fi | |
18925 | fi | |
18926 | ||
698dcdb6 | 18927 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18928 | #define wxUSE_TIMEDATE 1 |
18929 | EOF | |
18930 | ||
18931 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
18932 | fi | |
18933 | ||
698dcdb6 | 18934 | |
0feee163 | 18935 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 18936 | if test "$wxUSE_X11" = "1"; then |
0feee163 VZ |
18937 | echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2 |
18938 | wxUSE_SOCKETS="no" | |
18939 | fi | |
6c657b52 VS |
18940 | |
18941 | if test "$wxUSE_MGL" = "1"; then | |
18942 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 | |
18943 | wxUSE_SOCKETS="no" | |
18944 | fi | |
0feee163 | 18945 | fi |
b089607b | 18946 | |
0feee163 VZ |
18947 | if test "$wxUSE_SOCKETS" = "yes"; then |
18948 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 18949 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
24f5e003 | 18950 | echo "configure:18951: checking for socket" >&5 |
698dcdb6 VZ |
18951 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
18952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18953 | else |
698dcdb6 | 18954 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 18955 | #line 18956 "configure" |
c63c7106 VZ |
18956 | #include "confdefs.h" |
18957 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18958 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
18959 | #include <assert.h> |
18960 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18961 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18962 | builtin and then its argument prototype would still apply. */ |
18963 | char socket(); | |
18964 | ||
18965 | int main() { | |
c63c7106 VZ |
18966 | |
18967 | /* The GNU C library defines this for functions which it implements | |
18968 | to always fail with ENOSYS. Some functions are actually named | |
18969 | something starting with __ and the normal name is an alias. */ | |
18970 | #if defined (__stub_socket) || defined (__stub___socket) | |
18971 | choke me | |
18972 | #else | |
698dcdb6 | 18973 | socket(); |
c63c7106 VZ |
18974 | #endif |
18975 | ||
698dcdb6 VZ |
18976 | ; return 0; } |
18977 | EOF | |
24f5e003 | 18978 | if { (eval echo configure:18979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18979 | rm -rf conftest* |
18980 | eval "ac_cv_func_socket=yes" | |
18981 | else | |
18982 | echo "configure: failed program was:" >&5 | |
18983 | cat conftest.$ac_ext >&5 | |
18984 | rm -rf conftest* | |
18985 | eval "ac_cv_func_socket=no" | |
18986 | fi | |
18987 | rm -f conftest* | |
18988 | fi | |
18989 | ||
18990 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
18991 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
18992 | : |
18993 | else | |
698dcdb6 VZ |
18994 | echo "$ac_t""no" 1>&6 |
18995 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
24f5e003 | 18996 | echo "configure:18997: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
18997 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
18998 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18999 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19000 | else |
698dcdb6 | 19001 | ac_save_LIBS="$LIBS" |
c63c7106 | 19002 | LIBS="-lsocket $LIBS" |
698dcdb6 | 19003 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 19004 | #line 19005 "configure" |
c63c7106 VZ |
19005 | #include "confdefs.h" |
19006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19007 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19008 | builtin and then its argument prototype would still apply. */ |
19009 | char socket(); | |
19010 | ||
19011 | int main() { | |
19012 | socket() | |
19013 | ; return 0; } | |
19014 | EOF | |
24f5e003 | 19015 | if { (eval echo configure:19016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19016 | rm -rf conftest* |
19017 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19018 | else | |
19019 | echo "configure: failed program was:" >&5 | |
19020 | cat conftest.$ac_ext >&5 | |
19021 | rm -rf conftest* | |
19022 | eval "ac_cv_lib_$ac_lib_var=no" | |
19023 | fi | |
19024 | rm -f conftest* | |
19025 | LIBS="$ac_save_LIBS" | |
19026 | ||
19027 | fi | |
19028 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19029 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
19030 | if test "$INET_LINK" != " -lsocket"; then |
19031 | INET_LINK="$INET_LINK -lsocket" | |
19032 | fi | |
c63c7106 | 19033 | else |
698dcdb6 | 19034 | echo "$ac_t""no" 1>&6 |
afc31813 | 19035 | |
3a922bb4 RL |
19036 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
19037 | wxUSE_SOCKETS=no | |
19038 | ||
698dcdb6 | 19039 | |
6232543b | 19040 | fi |
b089607b | 19041 | |
3a922bb4 | 19042 | |
1e487827 | 19043 | fi |
afc31813 | 19044 | |
3a922bb4 | 19045 | fi |
0feee163 | 19046 | fi |
51a9faba | 19047 | |
0feee163 VZ |
19048 | if test "$wxUSE_SOCKETS" = "yes" ; then |
19049 | if test "$TOOLKIT" != "MSW"; then | |
3a922bb4 | 19050 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
24f5e003 | 19051 | echo "configure:19052: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
19052 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
19053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19054 | else | |
19055 | ||
3a922bb4 RL |
19056 | |
19057 | ac_ext=C | |
698dcdb6 | 19058 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 19059 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
19060 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19061 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19062 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 19063 | |
698dcdb6 | 19064 | |
3a922bb4 | 19065 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 19066 | #line 19067 "configure" |
afc31813 | 19067 | #include "confdefs.h" |
51a9faba | 19068 | |
3a922bb4 RL |
19069 | #include <sys/types.h> |
19070 | #include <sys/socket.h> | |
19071 | ||
698dcdb6 | 19072 | int main() { |
51a9faba | 19073 | |
3a922bb4 RL |
19074 | socklen_t len; |
19075 | getsockname(0, 0, &len); | |
19076 | ||
698dcdb6 VZ |
19077 | ; return 0; } |
19078 | EOF | |
24f5e003 | 19079 | if { (eval echo configure:19080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 19080 | rm -rf conftest* |
51a9faba | 19081 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 19082 | else |
698dcdb6 VZ |
19083 | echo "configure: failed program was:" >&5 |
19084 | cat conftest.$ac_ext >&5 | |
19085 | rm -rf conftest* | |
19086 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 19087 | #line 19088 "configure" |
afc31813 | 19088 | #include "confdefs.h" |
51a9faba | 19089 | |
3a922bb4 RL |
19090 | #include <sys/types.h> |
19091 | #include <sys/socket.h> | |
19092 | ||
698dcdb6 | 19093 | int main() { |
51a9faba | 19094 | |
3a922bb4 RL |
19095 | size_t len; |
19096 | getsockname(0, 0, &len); | |
19097 | ||
698dcdb6 VZ |
19098 | ; return 0; } |
19099 | EOF | |
24f5e003 | 19100 | if { (eval echo configure:19101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 19101 | rm -rf conftest* |
51a9faba | 19102 | wx_cv_type_getsockname3=size_t |
afc31813 | 19103 | else |
698dcdb6 VZ |
19104 | echo "configure: failed program was:" >&5 |
19105 | cat conftest.$ac_ext >&5 | |
19106 | rm -rf conftest* | |
19107 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 19108 | #line 19109 "configure" |
afc31813 | 19109 | #include "confdefs.h" |
51a9faba | 19110 | |
3a922bb4 RL |
19111 | #include <sys/types.h> |
19112 | #include <sys/socket.h> | |
19113 | ||
698dcdb6 | 19114 | int main() { |
51a9faba | 19115 | |
3a922bb4 RL |
19116 | int len; |
19117 | getsockname(0, 0, &len); | |
19118 | ||
698dcdb6 VZ |
19119 | ; return 0; } |
19120 | EOF | |
24f5e003 | 19121 | if { (eval echo configure:19122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 19122 | rm -rf conftest* |
51a9faba | 19123 | wx_cv_type_getsockname3=int |
afc31813 | 19124 | else |
698dcdb6 VZ |
19125 | echo "configure: failed program was:" >&5 |
19126 | cat conftest.$ac_ext >&5 | |
19127 | rm -rf conftest* | |
19128 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 19129 | |
afc31813 | 19130 | fi |
698dcdb6 | 19131 | rm -f conftest* |
3a922bb4 | 19132 | |
afc31813 | 19133 | fi |
698dcdb6 | 19134 | rm -f conftest* |
3a922bb4 | 19135 | |
afc31813 | 19136 | fi |
698dcdb6 | 19137 | rm -f conftest* |
51a9faba | 19138 | |
3a922bb4 | 19139 | ac_ext=c |
698dcdb6 | 19140 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 19141 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
19142 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19143 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19144 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 19145 | |
3a922bb4 | 19146 | |
51a9faba | 19147 | fi |
698dcdb6 VZ |
19148 | |
19149 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 19150 | |
3a922bb4 RL |
19151 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
19152 | wxUSE_SOCKETS=no | |
19153 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
19154 | else | |
19155 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
19156 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
19157 | EOF | |
19158 | ||
3a922bb4 | 19159 | fi |
51a9faba VZ |
19160 | fi |
19161 | fi | |
afc31813 | 19162 | |
51a9faba | 19163 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 19164 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
19165 | #define wxUSE_SOCKETS 1 |
19166 | EOF | |
19167 | ||
70f7a477 | 19168 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
19169 | fi |
19170 | ||
698dcdb6 | 19171 | |
dc3d889d VZ |
19172 | if test "$wxUSE_GUI" = "yes"; then |
19173 | ||
156b2523 GD |
19174 | if test "$TOOLKIT" = "MAC"; then |
19175 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
19176 | wxUSE_JOYSTICK=no | |
19177 | fi | |
19178 | if test "$TOOLKIT" = "MOTIF"; then | |
19179 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
19180 | wxUSE_JOYSTICK=no | |
f79bd02d JS |
19181 | fi |
19182 | if test "$TOOLKIT" = "X11"; then | |
19183 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 | |
19184 | wxUSE_JOYSTICK=no | |
156b2523 GD |
19185 | fi |
19186 | ||
3a922bb4 RL |
19187 | if test "$TOOLKIT" != "MSW"; then |
19188 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
19189 | for ac_hdr in linux/joystick.h | |
10f2d63a | 19190 | do |
698dcdb6 VZ |
19191 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19192 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24f5e003 | 19193 | echo "configure:19194: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19194 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19196 | else | |
19197 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 19198 | #line 19199 "configure" |
10f2d63a | 19199 | #include "confdefs.h" |
698dcdb6 VZ |
19200 | #include <$ac_hdr> |
19201 | EOF | |
19202 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24f5e003 | 19203 | { (eval echo configure:19204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19204 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19205 | if test -z "$ac_err"; then | |
19206 | rm -rf conftest* | |
19207 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 19208 | else |
698dcdb6 VZ |
19209 | echo "$ac_err" >&5 |
19210 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19211 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19212 | rm -rf conftest* |
19213 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19214 | fi |
698dcdb6 | 19215 | rm -f conftest* |
10f2d63a | 19216 | fi |
698dcdb6 VZ |
19217 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19218 | echo "$ac_t""yes" 1>&6 | |
19219 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19220 | cat >> confdefs.h <<EOF | |
19221 | #define $ac_tr_hdr 1 | |
10f2d63a | 19222 | EOF |
698dcdb6 VZ |
19223 | |
19224 | else | |
19225 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19226 | fi |
19227 | done | |
19228 | ||
3a922bb4 RL |
19229 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
19230 | wxUSE_JOYSTICK=no | |
156b2523 | 19231 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
19232 | fi |
19233 | fi | |
19234 | fi | |
b089607b | 19235 | |
3a922bb4 RL |
19236 | if test "$wxUSE_JOYSTICK" = "yes"; then |
19237 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19238 | #define wxUSE_JOYSTICK 1 |
19239 | EOF | |
19240 | ||
3a922bb4 RL |
19241 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
19242 | fi | |
dc3d889d VZ |
19243 | fi |
19244 | ||
698dcdb6 | 19245 | |
b089607b VZ |
19246 | if test "$TOOLKIT" != "MSW"; then |
19247 | ||
3a922bb4 RL |
19248 | HAVE_DL_FUNCS=0 |
19249 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 19250 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
19251 | if test "$USE_DARWIN" = 1; then |
19252 | HAVE_DL_FUNCS=1 | |
19253 | else | |
19254 | for ac_func in dlopen | |
10f2d63a | 19255 | do |
698dcdb6 | 19256 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24f5e003 | 19257 | echo "configure:19258: checking for $ac_func" >&5 |
698dcdb6 VZ |
19258 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19259 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19260 | else | |
19261 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 19262 | #line 19263 "configure" |
10f2d63a VZ |
19263 | #include "confdefs.h" |
19264 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19265 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19266 | #include <assert.h> |
19267 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19268 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19269 | builtin and then its argument prototype would still apply. */ |
19270 | char $ac_func(); | |
19271 | ||
19272 | int main() { | |
10f2d63a VZ |
19273 | |
19274 | /* The GNU C library defines this for functions which it implements | |
19275 | to always fail with ENOSYS. Some functions are actually named | |
19276 | something starting with __ and the normal name is an alias. */ | |
19277 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19278 | choke me | |
19279 | #else | |
698dcdb6 | 19280 | $ac_func(); |
10f2d63a VZ |
19281 | #endif |
19282 | ||
698dcdb6 VZ |
19283 | ; return 0; } |
19284 | EOF | |
24f5e003 | 19285 | if { (eval echo configure:19286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19286 | rm -rf conftest* |
19287 | eval "ac_cv_func_$ac_func=yes" | |
19288 | else | |
19289 | echo "configure: failed program was:" >&5 | |
19290 | cat conftest.$ac_ext >&5 | |
19291 | rm -rf conftest* | |
19292 | eval "ac_cv_func_$ac_func=no" | |
19293 | fi | |
19294 | rm -f conftest* | |
19295 | fi | |
19296 | ||
19297 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19298 | echo "$ac_t""yes" 1>&6 | |
19299 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19300 | cat >> confdefs.h <<EOF | |
19301 | #define $ac_tr_func 1 | |
19302 | EOF | |
19303 | ||
3a922bb4 | 19304 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19305 | #define HAVE_DLOPEN 1 |
19306 | EOF | |
19307 | ||
3a922bb4 RL |
19308 | HAVE_DL_FUNCS=1 |
19309 | ||
10f2d63a | 19310 | else |
698dcdb6 VZ |
19311 | echo "$ac_t""no" 1>&6 |
19312 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
24f5e003 | 19313 | echo "configure:19314: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
19314 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
19315 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19317 | else |
698dcdb6 | 19318 | ac_save_LIBS="$LIBS" |
10f2d63a | 19319 | LIBS="-ldl $LIBS" |
698dcdb6 | 19320 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 19321 | #line 19322 "configure" |
10f2d63a VZ |
19322 | #include "confdefs.h" |
19323 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19324 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19325 | builtin and then its argument prototype would still apply. */ |
19326 | char dlopen(); | |
19327 | ||
19328 | int main() { | |
19329 | dlopen() | |
19330 | ; return 0; } | |
19331 | EOF | |
24f5e003 | 19332 | if { (eval echo configure:19333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19333 | rm -rf conftest* |
19334 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19335 | else | |
19336 | echo "configure: failed program was:" >&5 | |
19337 | cat conftest.$ac_ext >&5 | |
19338 | rm -rf conftest* | |
19339 | eval "ac_cv_lib_$ac_lib_var=no" | |
19340 | fi | |
19341 | rm -f conftest* | |
19342 | LIBS="$ac_save_LIBS" | |
19343 | ||
19344 | fi | |
19345 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19346 | echo "$ac_t""yes" 1>&6 | |
19347 | ||
3a922bb4 | 19348 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19349 | #define HAVE_DLOPEN 1 |
19350 | EOF | |
19351 | ||
3a922bb4 | 19352 | HAVE_DL_FUNCS=1 |
3d63bc3a | 19353 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 19354 | |
10f2d63a | 19355 | else |
698dcdb6 | 19356 | echo "$ac_t""no" 1>&6 |
10f2d63a | 19357 | |
3a922bb4 | 19358 | for ac_func in shl_load |
10f2d63a | 19359 | do |
698dcdb6 | 19360 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24f5e003 | 19361 | echo "configure:19362: checking for $ac_func" >&5 |
698dcdb6 VZ |
19362 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19364 | else | |
19365 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 19366 | #line 19367 "configure" |
10f2d63a VZ |
19367 | #include "confdefs.h" |
19368 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19369 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19370 | #include <assert.h> |
19371 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19372 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19373 | builtin and then its argument prototype would still apply. */ |
19374 | char $ac_func(); | |
19375 | ||
19376 | int main() { | |
10f2d63a VZ |
19377 | |
19378 | /* The GNU C library defines this for functions which it implements | |
19379 | to always fail with ENOSYS. Some functions are actually named | |
19380 | something starting with __ and the normal name is an alias. */ | |
19381 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19382 | choke me | |
19383 | #else | |
698dcdb6 | 19384 | $ac_func(); |
10f2d63a VZ |
19385 | #endif |
19386 | ||
698dcdb6 VZ |
19387 | ; return 0; } |
19388 | EOF | |
24f5e003 | 19389 | if { (eval echo configure:19390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19390 | rm -rf conftest* |
19391 | eval "ac_cv_func_$ac_func=yes" | |
19392 | else | |
19393 | echo "configure: failed program was:" >&5 | |
19394 | cat conftest.$ac_ext >&5 | |
19395 | rm -rf conftest* | |
19396 | eval "ac_cv_func_$ac_func=no" | |
19397 | fi | |
19398 | rm -f conftest* | |
19399 | fi | |
19400 | ||
19401 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19402 | echo "$ac_t""yes" 1>&6 | |
19403 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19404 | cat >> confdefs.h <<EOF | |
19405 | #define $ac_tr_func 1 | |
19406 | EOF | |
19407 | ||
3a922bb4 | 19408 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19409 | #define HAVE_SHL_LOAD 1 |
19410 | EOF | |
19411 | ||
3a922bb4 RL |
19412 | HAVE_SHL_FUNCS=1 |
19413 | ||
10f2d63a | 19414 | else |
698dcdb6 VZ |
19415 | echo "$ac_t""no" 1>&6 |
19416 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
24f5e003 | 19417 | echo "configure:19418: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
19418 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
19419 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19420 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19421 | else |
698dcdb6 | 19422 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19423 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 19424 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 19425 | #line 19426 "configure" |
f6bcfd97 BP |
19426 | #include "confdefs.h" |
19427 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19428 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19429 | builtin and then its argument prototype would still apply. */ |
19430 | char dld(); | |
19431 | ||
19432 | int main() { | |
19433 | dld() | |
19434 | ; return 0; } | |
19435 | EOF | |
24f5e003 | 19436 | if { (eval echo configure:19437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19437 | rm -rf conftest* |
19438 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19439 | else | |
19440 | echo "configure: failed program was:" >&5 | |
19441 | cat conftest.$ac_ext >&5 | |
19442 | rm -rf conftest* | |
19443 | eval "ac_cv_lib_$ac_lib_var=no" | |
19444 | fi | |
19445 | rm -f conftest* | |
19446 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 19447 | |
698dcdb6 VZ |
19448 | fi |
19449 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19450 | echo "$ac_t""yes" 1>&6 | |
19451 | ||
3a922bb4 | 19452 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 19453 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 19454 | |
698dcdb6 VZ |
19455 | else |
19456 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19457 | fi |
19458 | ||
3a922bb4 | 19459 | |
10f2d63a VZ |
19460 | fi |
19461 | done | |
19462 | ||
3a922bb4 | 19463 | |
10f2d63a VZ |
19464 | fi |
19465 | ||
3a922bb4 | 19466 | |
10f2d63a VZ |
19467 | fi |
19468 | done | |
19469 | ||
1e487827 | 19470 | |
3a922bb4 RL |
19471 | if test "$HAVE_DL_FUNCS" = 1; then |
19472 | for ac_func in dlerror | |
f6bcfd97 | 19473 | do |
698dcdb6 | 19474 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24f5e003 | 19475 | echo "configure:19476: checking for $ac_func" >&5 |
698dcdb6 VZ |
19476 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19478 | else | |
19479 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 19480 | #line 19481 "configure" |
f6bcfd97 BP |
19481 | #include "confdefs.h" |
19482 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 19483 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19484 | #include <assert.h> |
19485 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19486 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19487 | builtin and then its argument prototype would still apply. */ |
19488 | char $ac_func(); | |
19489 | ||
19490 | int main() { | |
f6bcfd97 BP |
19491 | |
19492 | /* The GNU C library defines this for functions which it implements | |
19493 | to always fail with ENOSYS. Some functions are actually named | |
19494 | something starting with __ and the normal name is an alias. */ | |
19495 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19496 | choke me | |
19497 | #else | |
698dcdb6 | 19498 | $ac_func(); |
f6bcfd97 BP |
19499 | #endif |
19500 | ||
698dcdb6 VZ |
19501 | ; return 0; } |
19502 | EOF | |
24f5e003 | 19503 | if { (eval echo configure:19504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19504 | rm -rf conftest* |
19505 | eval "ac_cv_func_$ac_func=yes" | |
19506 | else | |
19507 | echo "configure: failed program was:" >&5 | |
19508 | cat conftest.$ac_ext >&5 | |
19509 | rm -rf conftest* | |
19510 | eval "ac_cv_func_$ac_func=no" | |
19511 | fi | |
19512 | rm -f conftest* | |
19513 | fi | |
19514 | ||
19515 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19516 | echo "$ac_t""yes" 1>&6 | |
19517 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19518 | cat >> confdefs.h <<EOF | |
19519 | #define $ac_tr_func 1 | |
19520 | EOF | |
19521 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19522 | #define HAVE_DLERROR 1 |
19523 | EOF | |
19524 | ||
19525 | else | |
698dcdb6 VZ |
19526 | echo "$ac_t""no" 1>&6 |
19527 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
24f5e003 | 19528 | echo "configure:19529: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
19529 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19530 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19531 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19532 | else |
698dcdb6 | 19533 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19534 | LIBS="-ldl $LIBS" |
698dcdb6 | 19535 | cat > conftest.$ac_ext <<EOF |
24f5e003 | 19536 | #line 19537 "configure" |
f6bcfd97 BP |
19537 | #include "confdefs.h" |
19538 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19539 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
19540 | builtin and then its argument prototype would still apply. */ |
19541 | char dlerror(); | |
19542 | ||
19543 | int main() { | |
19544 | dlerror() | |
19545 | ; return 0; } | |
19546 | EOF | |
24f5e003 | 19547 | if { (eval echo configure:19548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
19548 | rm -rf conftest* |
19549 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19550 | else | |
19551 | echo "configure: failed program was:" >&5 | |
19552 | cat conftest.$ac_ext >&5 | |
19553 | rm -rf conftest* | |
19554 | eval "ac_cv_lib_$ac_lib_var=no" | |
19555 | fi | |
19556 | rm -f conftest* | |
19557 | LIBS="$ac_save_LIBS" | |
19558 | ||
19559 | fi | |
19560 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19561 | echo "$ac_t""yes" 1>&6 | |
19562 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19563 | #define HAVE_DLERROR 1 |
19564 | EOF | |
19565 | ||
698dcdb6 VZ |
19566 | else |
19567 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19568 | fi |
19569 | ||
19570 | fi | |
19571 | done | |
19572 | ||
3a922bb4 RL |
19573 | fi |
19574 | fi | |
f6bcfd97 | 19575 | |
3a922bb4 RL |
19576 | if test "$HAVE_DL_FUNCS" = 0; then |
19577 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19578 | if test "$USE_UNIX" = 1; then | |
19579 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
0b9ab0bd | 19580 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19581 | wxUSE_DYNLIB_CLASS=no |
19582 | else | |
19583 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
19584 | fi | |
19585 | fi | |
10f2d63a VZ |
19586 | fi |
19587 | fi | |
19588 | fi | |
19589 | ||
0b9ab0bd RL |
19590 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
19591 | cat >> confdefs.h <<\EOF | |
19592 | #define wxUSE_DYNAMIC_LOADER 1 | |
19593 | EOF | |
19594 | ||
19595 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 19596 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19597 | #define wxUSE_DYNLIB_CLASS 1 |
19598 | EOF | |
19599 | ||
19600 | fi | |
19601 | ||
698dcdb6 | 19602 | |
1e6feb95 VZ |
19603 | if test "$wxUSE_FONTMAP" = "yes" ; then |
19604 | cat >> confdefs.h <<\EOF | |
19605 | #define wxUSE_FONTMAP 1 | |
19606 | EOF | |
19607 | ||
19608 | fi | |
19609 | ||
10f2d63a | 19610 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 19611 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19612 | #define wxUSE_UNICODE 1 |
19613 | EOF | |
19614 | ||
bbc3925a VS |
19615 | |
19616 | if test "$wxUSE_MSW" != 1; then | |
19617 | wxUSE_UNICODE_MSLU=no | |
19618 | fi | |
a72a4bfa VS |
19619 | |
19620 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
19621 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
24f5e003 | 19622 | echo "configure:19623: checking for main in -lunicows" >&5 |
a72a4bfa VS |
19623 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
19624 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19625 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19626 | else | |
19627 | ac_save_LIBS="$LIBS" | |
19628 | LIBS="-lunicows $LIBS" | |
19629 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 19630 | #line 19631 "configure" |
a72a4bfa VS |
19631 | #include "confdefs.h" |
19632 | ||
19633 | int main() { | |
19634 | main() | |
19635 | ; return 0; } | |
19636 | EOF | |
24f5e003 | 19637 | if { (eval echo configure:19638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a72a4bfa VS |
19638 | rm -rf conftest* |
19639 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19640 | else | |
19641 | echo "configure: failed program was:" >&5 | |
19642 | cat conftest.$ac_ext >&5 | |
19643 | rm -rf conftest* | |
19644 | eval "ac_cv_lib_$ac_lib_var=no" | |
19645 | fi | |
19646 | rm -f conftest* | |
19647 | LIBS="$ac_save_LIBS" | |
19648 | ||
19649 | fi | |
19650 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19651 | echo "$ac_t""yes" 1>&6 | |
19652 | ||
19653 | cat >> confdefs.h <<\EOF | |
19654 | #define wxUSE_UNICODE_MSLU 1 | |
19655 | EOF | |
19656 | ||
19657 | ||
19658 | else | |
19659 | echo "$ac_t""no" 1>&6 | |
19660 | ||
19661 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
19662 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
19663 | wxUSE_UNICODE_MSLU=no | |
19664 | ||
19665 | fi | |
19666 | ||
19667 | fi | |
10f2d63a VZ |
19668 | fi |
19669 | ||
10f2d63a | 19670 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 19671 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19672 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
19673 | EOF | |
19674 | ||
19675 | fi | |
19676 | ||
698dcdb6 | 19677 | |
698dcdb6 | 19678 | |
10f2d63a VZ |
19679 | IODBC_C_SRC="" |
19680 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 19681 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19682 | #define wxUSE_ODBC 1 |
19683 | EOF | |
19684 | ||
19685 | WXODBCFLAG="-D_IODBC_" | |
19686 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19687 | fi |
19688 | ||
698dcdb6 | 19689 | |
10f2d63a | 19690 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 19691 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19692 | #define wxUSE_POSTSCRIPT 1 |
19693 | EOF | |
19694 | ||
19695 | fi | |
19696 | ||
698dcdb6 | 19697 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19698 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
19699 | EOF | |
19700 | ||
698dcdb6 VZ |
19701 | |
19702 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19703 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
19704 | EOF | |
19705 | ||
698dcdb6 VZ |
19706 | |
19707 | ||
10f2d63a | 19708 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 19709 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19710 | #define wxUSE_CONSTRAINTS 1 |
19711 | EOF | |
19712 | ||
19713 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19714 | fi | |
19715 | ||
19716 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19717 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 19718 | echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2 |
fc26f4ab RL |
19719 | wxUSE_MDI_ARCHITECTURE=no |
19720 | fi | |
19721 | ||
19722 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19723 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19724 | #define wxUSE_MDI_ARCHITECTURE 1 |
19725 | EOF | |
19726 | ||
fc26f4ab RL |
19727 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19728 | fi | |
10f2d63a VZ |
19729 | fi |
19730 | ||
19731 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 19732 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19733 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
19734 | EOF | |
19735 | ||
19736 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19737 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19738 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19739 | fi | |
19740 | fi | |
19741 | ||
19742 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 19743 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19744 | #define wxUSE_HELP 1 |
19745 | EOF | |
19746 | ||
19747 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 19748 | |
77e13408 | 19749 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 19750 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
3b7bc64a | 19751 | cat >> confdefs.h <<\EOF |
29fd3c0c VS |
19752 | #define wxUSE_MS_HTML_HELP 1 |
19753 | EOF | |
19754 | ||
3e44f09d | 19755 | fi |
3379ed37 | 19756 | fi |
031d8228 VS |
19757 | |
19758 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19759 | if test "$wxUSE_HTML" = "yes"; then | |
19760 | cat >> confdefs.h <<\EOF | |
19761 | #define wxUSE_WXHTML_HELP 1 | |
19762 | EOF | |
19763 | ||
19764 | else | |
19765 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
19766 | wxUSE_WXHTML_HELP=no | |
19767 | fi | |
19768 | fi | |
10f2d63a VZ |
19769 | fi |
19770 | ||
19771 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19772 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 19773 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 19774 | else |
698dcdb6 | 19775 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19776 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
19777 | EOF | |
19778 | ||
19779 | fi | |
19780 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19781 | fi | |
19782 | ||
19783 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 19784 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19785 | #define wxUSE_PROLOGIO 1 |
19786 | EOF | |
19787 | ||
19788 | fi | |
19789 | ||
19790 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea JS |
19791 | if test "$wxUSE_NANOX" = "yes"; then |
19792 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 | |
19793 | else | |
19794 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19795 | #define wxUSE_RESOURCES 1 |
19796 | EOF | |
19797 | ||
e334d0ea JS |
19798 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
19799 | fi | |
10f2d63a VZ |
19800 | fi |
19801 | ||
19802 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 19803 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19804 | #define wxUSE_X_RESOURCES 1 |
19805 | EOF | |
19806 | ||
19807 | fi | |
19808 | ||
698dcdb6 | 19809 | |
77e13408 RL |
19810 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
19811 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19812 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 19813 | for ac_hdr in ole2.h |
10f2d63a | 19814 | do |
698dcdb6 VZ |
19815 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19816 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24f5e003 | 19817 | echo "configure:19818: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
19818 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19819 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19820 | else | |
19821 | cat > conftest.$ac_ext <<EOF | |
24f5e003 | 19822 | #line 19823 "configure" |
10f2d63a | 19823 | #include "confdefs.h" |
698dcdb6 VZ |
19824 | #include <$ac_hdr> |
19825 | EOF | |
19826 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24f5e003 | 19827 | { (eval echo configure:19828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
19828 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19829 | if test -z "$ac_err"; then | |
19830 | rm -rf conftest* | |
19831 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 19832 | else |
698dcdb6 VZ |
19833 | echo "$ac_err" >&5 |
19834 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19835 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
19836 | rm -rf conftest* |
19837 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19838 | fi |
698dcdb6 | 19839 | rm -f conftest* |
10f2d63a | 19840 | fi |
698dcdb6 VZ |
19841 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19842 | echo "$ac_t""yes" 1>&6 | |
19843 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19844 | cat >> confdefs.h <<EOF | |
19845 | #define $ac_tr_hdr 1 | |
10f2d63a | 19846 | EOF |
698dcdb6 VZ |
19847 | |
19848 | else | |
19849 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19850 | fi |
19851 | done | |
19852 | ||
698dcdb6 | 19853 | |
2b9bdf71 VZ |
19854 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
19855 | if test "$GCC" = yes ; then | |
19856 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 19857 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 19858 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 19859 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
19860 | #define wxUSE_OLE 1 |
19861 | EOF | |
19862 | ||
b64f0a5f | 19863 | |
2b9bdf71 VZ |
19864 | fi |
19865 | ||
19866 | cat >> confdefs.h <<\EOF | |
19867 | #define wxUSE_DATAOBJ 1 | |
19868 | EOF | |
19869 | ||
19870 | else | |
19871 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
19872 | ||
19873 | wxUSE_CLIPBOARD=no | |
19874 | wxUSE_DRAG_AND_DROP=no | |
19875 | wxUSE_DATAOBJ=no | |
19876 | fi | |
19877 | ||
77e13408 | 19878 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 19879 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
19880 | #define wxUSE_METAFILE 1 |
19881 | EOF | |
19882 | ||
2b9bdf71 VZ |
19883 | |
19884 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
19885 | #define wxUSE_ENH_METAFILE 1 |
19886 | EOF | |
19887 | ||
2b9bdf71 VZ |
19888 | fi |
19889 | fi | |
19890 | ||
19891 | if test "$wxUSE_IPC" = "yes"; then | |
19892 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 19893 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
19894 | fi |
19895 | ||
19896 | cat >> confdefs.h <<\EOF | |
19897 | #define wxUSE_IPC 1 | |
19898 | EOF | |
19899 | ||
19900 | fi | |
19901 | ||
19902 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 VS |
19903 | if test "$wxUSE_MGL" = 1; then |
19904 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 | |
19905 | wxUSE_CLIPBOARD=no | |
19906 | fi | |
19907 | ||
19908 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
19909 | cat >> confdefs.h <<\EOF | |
2b9bdf71 VZ |
19910 | #define wxUSE_CLIPBOARD 1 |
19911 | EOF | |
19912 | ||
673f4220 | 19913 | |
6c657b52 | 19914 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
19915 | #define wxUSE_DATAOBJ 1 |
19916 | EOF | |
19917 | ||
6c657b52 | 19918 | fi |
2b9bdf71 VZ |
19919 | fi |
19920 | ||
19921 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
19922 | if test "$wxUSE_GTK" = 1; then | |
19923 | if test "$WXGTK12" != 1; then | |
156b2523 | 19924 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
19925 | wxUSE_DRAG_AND_DROP=no |
19926 | fi | |
19927 | fi | |
19928 | ||
2b9bdf71 | 19929 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 19930 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
19931 | wxUSE_DRAG_AND_DROP=no |
19932 | fi | |
19933 | ||
f79bd02d JS |
19934 | if test "$wxUSE_X11" = 1; then |
19935 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 | |
19936 | wxUSE_DRAG_AND_DROP=no | |
19937 | fi | |
19938 | ||
6c657b52 VS |
19939 | if test "$wxUSE_MGL" = 1; then |
19940 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 | |
19941 | wxUSE_DRAG_AND_DROP=no | |
19942 | fi | |
19943 | ||
10f2d63a | 19944 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 19945 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19946 | #define wxUSE_DRAG_AND_DROP 1 |
19947 | EOF | |
19948 | ||
19949 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
19950 | fi | |
19951 | ||
19952 | fi | |
19953 | ||
19954 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 19955 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19956 | #define wxUSE_SPLINES 1 |
19957 | EOF | |
19958 | ||
19959 | fi | |
19960 | ||
698dcdb6 | 19961 | |
1e6feb95 VZ |
19962 | USES_CONTROLS=0 |
19963 | if test "$wxUSE_CONTROLS" = "yes"; then | |
19964 | USES_CONTROLS=1 | |
19965 | fi | |
19966 | ||
10f2d63a | 19967 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 19968 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19969 | #define wxUSE_ACCEL 1 |
19970 | EOF | |
19971 | ||
1e6feb95 VZ |
19972 | USES_CONTROLS=1 |
19973 | fi | |
19974 | ||
19975 | if test "$wxUSE_BUTTON" = "yes"; then | |
19976 | cat >> confdefs.h <<\EOF | |
19977 | #define wxUSE_BUTTON 1 | |
19978 | EOF | |
19979 | ||
19980 | USES_CONTROLS=1 | |
19981 | fi | |
19982 | ||
19983 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
19984 | cat >> confdefs.h <<\EOF | |
19985 | #define wxUSE_BMPBUTTON 1 | |
19986 | EOF | |
19987 | ||
19988 | USES_CONTROLS=1 | |
19989 | fi | |
19990 | ||
19991 | if test "$wxUSE_CALCTRL" = "yes"; then | |
19992 | cat >> confdefs.h <<\EOF | |
19993 | #define wxUSE_CALENDARCTRL 1 | |
19994 | EOF | |
19995 | ||
19996 | USES_CONTROLS=1 | |
19997 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
19998 | fi |
19999 | ||
20000 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 20001 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20002 | #define wxUSE_CARET 1 |
20003 | EOF | |
20004 | ||
1e6feb95 | 20005 | USES_CONTROLS=1 |
10f2d63a VZ |
20006 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
20007 | fi | |
20008 | ||
20009 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 20010 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20011 | #define wxUSE_COMBOBOX 1 |
20012 | EOF | |
20013 | ||
1e6feb95 | 20014 | USES_CONTROLS=1 |
10f2d63a VZ |
20015 | fi |
20016 | ||
20017 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 20018 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20019 | #define wxUSE_CHOICE 1 |
20020 | EOF | |
20021 | ||
1e6feb95 | 20022 | USES_CONTROLS=1 |
10f2d63a VZ |
20023 | fi |
20024 | ||
20025 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 20026 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20027 | #define wxUSE_CHECKBOX 1 |
20028 | EOF | |
20029 | ||
1e6feb95 | 20030 | USES_CONTROLS=1 |
10f2d63a VZ |
20031 | fi |
20032 | ||
20033 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 20034 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20035 | #define wxUSE_CHECKLISTBOX 1 |
20036 | EOF | |
20037 | ||
1e6feb95 | 20038 | USES_CONTROLS=1 |
10f2d63a VZ |
20039 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
20040 | fi | |
20041 | ||
20042 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 20043 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20044 | #define wxUSE_GAUGE 1 |
20045 | EOF | |
20046 | ||
1e6feb95 | 20047 | USES_CONTROLS=1 |
10f2d63a VZ |
20048 | fi |
20049 | ||
d6a55c4b VZ |
20050 | if test "$wxUSE_NEW_GRID" = "yes"; then |
20051 | wxUSE_GRID="yes" | |
698dcdb6 | 20052 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20053 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
20054 | EOF |
20055 | ||
1e6feb95 | 20056 | USES_CONTROLS=1 |
d6a55c4b | 20057 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
20058 | fi |
20059 | ||
d6a55c4b | 20060 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 20061 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20062 | #define wxUSE_GRID 1 |
10f2d63a VZ |
20063 | EOF |
20064 | ||
1e6feb95 | 20065 | USES_CONTROLS=1 |
d6a55c4b | 20066 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
20067 | fi |
20068 | ||
20069 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 20070 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20071 | #define wxUSE_IMAGLIST 1 |
20072 | EOF | |
20073 | ||
20074 | fi | |
20075 | ||
20076 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 20077 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20078 | #define wxUSE_LISTBOX 1 |
20079 | EOF | |
20080 | ||
1e6feb95 | 20081 | USES_CONTROLS=1 |
10f2d63a VZ |
20082 | fi |
20083 | ||
20084 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
20085 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 20086 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20087 | #define wxUSE_LISTCTRL 1 |
20088 | EOF | |
20089 | ||
1e6feb95 | 20090 | USES_CONTROLS=1 |
10f2d63a VZ |
20091 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
20092 | else | |
698dcdb6 | 20093 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20094 | fi |
20095 | fi | |
20096 | ||
20097 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 20098 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20099 | #define wxUSE_NOTEBOOK 1 |
20100 | EOF | |
20101 | ||
1e6feb95 | 20102 | USES_CONTROLS=1 |
10f2d63a VZ |
20103 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
20104 | fi | |
20105 | ||
24176f2c GD |
20106 | if test "$wxUSE_PROPSHEET" = "yes"; then |
20107 | cat >> confdefs.h <<\EOF | |
20108 | #define wxUSE_PROPSHEET 1 | |
20109 | EOF | |
20110 | ||
20111 | USES_CONTROLS=1 | |
20112 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
20113 | fi | |
20114 | ||
10f2d63a | 20115 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 20116 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20117 | #define wxUSE_RADIOBOX 1 |
20118 | EOF | |
20119 | ||
1e6feb95 | 20120 | USES_CONTROLS=1 |
10f2d63a VZ |
20121 | fi |
20122 | ||
20123 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 20124 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20125 | #define wxUSE_RADIOBTN 1 |
20126 | EOF | |
20127 | ||
1e6feb95 | 20128 | USES_CONTROLS=1 |
10f2d63a VZ |
20129 | fi |
20130 | ||
20131 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 20132 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20133 | #define wxUSE_SASH 1 |
20134 | EOF | |
20135 | ||
20136 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
20137 | fi | |
20138 | ||
20139 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 20140 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20141 | #define wxUSE_SCROLLBAR 1 |
20142 | EOF | |
20143 | ||
1e6feb95 | 20144 | USES_CONTROLS=1 |
741a9306 | 20145 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
20146 | fi |
20147 | ||
20148 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 20149 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20150 | #define wxUSE_SLIDER 1 |
20151 | EOF | |
20152 | ||
1e6feb95 | 20153 | USES_CONTROLS=1 |
10f2d63a VZ |
20154 | fi |
20155 | ||
20156 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 20157 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20158 | #define wxUSE_SPINBTN 1 |
20159 | EOF | |
20160 | ||
1e6feb95 | 20161 | USES_CONTROLS=1 |
10f2d63a VZ |
20162 | fi |
20163 | ||
56cfaa52 | 20164 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 20165 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
20166 | #define wxUSE_SPINCTRL 1 |
20167 | EOF | |
20168 | ||
1e6feb95 | 20169 | USES_CONTROLS=1 |
56cfaa52 RR |
20170 | fi |
20171 | ||
10f2d63a | 20172 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 20173 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20174 | #define wxUSE_SPLITTER 1 |
20175 | EOF | |
20176 | ||
20177 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
20178 | fi | |
20179 | ||
20180 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 20181 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20182 | #define wxUSE_STATBMP 1 |
20183 | EOF | |
20184 | ||
1e6feb95 | 20185 | USES_CONTROLS=1 |
10f2d63a VZ |
20186 | fi |
20187 | ||
20188 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 20189 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20190 | #define wxUSE_STATBOX 1 |
20191 | EOF | |
20192 | ||
1e6feb95 VZ |
20193 | USES_CONTROLS=1 |
20194 | fi | |
20195 | ||
20196 | if test "$wxUSE_STATTEXT" = "yes"; then | |
20197 | cat >> confdefs.h <<\EOF | |
20198 | #define wxUSE_STATTEXT 1 | |
20199 | EOF | |
20200 | ||
20201 | USES_CONTROLS=1 | |
10f2d63a VZ |
20202 | fi |
20203 | ||
20204 | if test "$wxUSE_STATLINE" = "yes"; then | |
20205 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 20206 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 20207 | else |
698dcdb6 | 20208 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20209 | #define wxUSE_STATLINE 1 |
20210 | EOF | |
20211 | ||
1e6feb95 | 20212 | USES_CONTROLS=1 |
10f2d63a VZ |
20213 | fi |
20214 | fi | |
20215 | ||
20216 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 20217 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20218 | #define wxUSE_STATUSBAR 1 |
20219 | EOF | |
20220 | ||
1e6feb95 | 20221 | USES_CONTROLS=1 |
698dcdb6 | 20222 | |
2286341c | 20223 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
20224 | fi |
20225 | ||
20226 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 20227 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20228 | #define wxUSE_TAB_DIALOG 1 |
20229 | EOF | |
20230 | ||
20231 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
20232 | fi | |
20233 | ||
1e6feb95 VZ |
20234 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
20235 | cat >> confdefs.h <<\EOF | |
20236 | #define wxUSE_TEXTCTRL 1 | |
20237 | EOF | |
20238 | ||
20239 | USES_CONTROLS=1 | |
20240 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
20241 | fi | |
20242 | ||
1db8dc4a | 20243 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
20244 | if test "$wxUSE_MAC" = 1; then |
20245 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
20246 | wxUSE_TOGGLEBTN=no | |
20247 | fi | |
20248 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
0feee163 | 20249 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
20250 | wxUSE_TOGGLEBTN=no |
20251 | fi | |
20252 | ||
20253 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
20254 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
20255 | #define wxUSE_TOGGLEBTN 1 |
20256 | EOF | |
20257 | ||
1e6feb95 | 20258 | USES_CONTROLS=1 |
a45d7ab7 | 20259 | fi |
1db8dc4a VZ |
20260 | fi |
20261 | ||
360d6699 | 20262 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 20263 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
20264 | #define wxUSE_TOOLBAR_SIMPLE 1 |
20265 | EOF | |
20266 | ||
20267 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 20268 | USES_CONTROLS=1 |
360d6699 VZ |
20269 | fi |
20270 | ||
10f2d63a | 20271 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 20272 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20273 | #define wxUSE_TOOLBAR 1 |
20274 | EOF | |
20275 | ||
1e6feb95 | 20276 | USES_CONTROLS=1 |
698dcdb6 | 20277 | |
360d6699 VZ |
20278 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
20279 | wxUSE_TOOLBAR_NATIVE="yes" | |
20280 | fi | |
20281 | ||
1e6feb95 VZ |
20282 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
20283 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
20284 | #define wxUSE_TOOLBAR_NATIVE 1 |
20285 | EOF | |
20286 | ||
1e6feb95 VZ |
20287 | USES_CONTROLS=1 |
20288 | fi | |
20289 | ||
20290 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
20291 | fi |
20292 | ||
10f2d63a VZ |
20293 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
20294 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 20295 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
20296 | else |
20297 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 20298 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 20299 | else |
69d27ff7 | 20300 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
0feee163 | 20301 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 20302 | else |
3c011993 | 20303 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20304 | #define wxUSE_TOOLTIPS 1 |
20305 | EOF | |
20306 | ||
69d27ff7 | 20307 | fi |
10f2d63a VZ |
20308 | fi |
20309 | fi | |
20310 | fi | |
20311 | ||
20312 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20313 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 20314 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20315 | #define wxUSE_TREECTRL 1 |
20316 | EOF | |
20317 | ||
1e6feb95 | 20318 | USES_CONTROLS=1 |
10f2d63a VZ |
20319 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
20320 | else | |
698dcdb6 | 20321 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20322 | fi |
20323 | fi | |
20324 | ||
9f41d601 | 20325 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 20326 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 20327 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 20328 | else |
485cf710 VZ |
20329 | if test "$wxUSE_MOTIF" = 1; then |
20330 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
20331 | else | |
3c011993 VZ |
20332 | if test "$wxUSE_PM" = 1; then |
20333 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 | |
20334 | else | |
20335 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
20336 | #define wxUSE_POPUPWIN 1 |
20337 | EOF | |
20338 | ||
9926e4a4 | 20339 | |
3c011993 VZ |
20340 | USES_CONTROLS=1 |
20341 | fi | |
485cf710 | 20342 | fi |
6abe4b65 | 20343 | fi |
9f41d601 RR |
20344 | fi |
20345 | ||
dd964dcc | 20346 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 VZ |
20347 | if test "$wxUSE_PM" = 1; then |
20348 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 | |
20349 | else | |
20350 | cat >> confdefs.h <<\EOF | |
dd964dcc VZ |
20351 | #define wxUSE_TIPWINDOW 1 |
20352 | EOF | |
20353 | ||
3c011993 | 20354 | fi |
dd964dcc VZ |
20355 | fi |
20356 | ||
1e6feb95 VZ |
20357 | if test "$USES_CONTROLS" = 1; then |
20358 | cat >> confdefs.h <<\EOF | |
20359 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
20360 | EOF |
20361 | ||
10f2d63a VZ |
20362 | fi |
20363 | ||
1e6feb95 | 20364 | |
24176f2c GD |
20365 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
20366 | cat >> confdefs.h <<\EOF | |
20367 | #define wxUSE_TREELAYOUT 1 | |
20368 | EOF | |
20369 | ||
20370 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20371 | fi | |
1e6feb95 | 20372 | |
24fd6d87 VZ |
20373 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
20374 | cat >> confdefs.h <<\EOF | |
20375 | #define wxUSE_DRAGIMAGE 1 | |
20376 | EOF | |
20377 | ||
20378 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20379 | fi | |
20380 | ||
1e6feb95 | 20381 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 20382 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20383 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
20384 | EOF |
20385 | ||
1e6feb95 | 20386 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
20387 | fi |
20388 | ||
1e6feb95 VZ |
20389 | if test "$wxUSE_METAFILE" = "yes"; then |
20390 | cat >> confdefs.h <<\EOF | |
20391 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
20392 | EOF |
20393 | ||
10f2d63a VZ |
20394 | fi |
20395 | ||
1e6feb95 VZ |
20396 | if test "$wxUSE_MIMETYPE" = "yes"; then |
20397 | cat >> confdefs.h <<\EOF | |
20398 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
20399 | EOF |
20400 | ||
10f2d63a VZ |
20401 | fi |
20402 | ||
3e44f09d VZ |
20403 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
20404 | cat >> confdefs.h <<\EOF | |
20405 | #define wxUSE_SYSTEM_OPTIONS 1 | |
20406 | EOF | |
20407 | ||
321d2b14 VZ |
20408 | if test "$TOOLKIT" = "MSW"; then |
20409 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
20410 | fi | |
20411 | ||
3e44f09d VZ |
20412 | fi |
20413 | ||
4cdb0ab0 | 20414 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca VS |
20415 | if test "$wxUSE_SOCKETS" != "yes"; then |
20416 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
20417 | wxUSE_PROTOCOL=no | |
20418 | fi | |
20419 | ||
20420 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
20421 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20422 | #define wxUSE_PROTOCOL 1 |
20423 | EOF | |
20424 | ||
20425 | ||
3954f9ca VS |
20426 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
20427 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20428 | #define wxUSE_PROTOCOL_HTTP 1 |
20429 | EOF | |
20430 | ||
3954f9ca VS |
20431 | fi |
20432 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
20433 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
20434 | #define wxUSE_PROTOCOL_FTP 1 |
20435 | EOF | |
20436 | ||
3954f9ca VS |
20437 | fi |
20438 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
20439 | cat >> confdefs.h <<\EOF | |
20440 | #define wxUSE_PROTOCOL_FILE 1 | |
20441 | EOF | |
20442 | ||
20443 | fi | |
4cdb0ab0 | 20444 | fi |
3954f9ca VS |
20445 | fi |
20446 | ||
20447 | if test "$wxUSE_URL" = "yes"; then | |
20448 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
20449 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
20450 | wxUSE_URL=no | |
20451 | fi | |
20452 | if test "$wxUSE_URL" = "yes"; then | |
4cdb0ab0 | 20453 | cat >> confdefs.h <<\EOF |
3954f9ca | 20454 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
20455 | EOF |
20456 | ||
20457 | fi | |
20458 | fi | |
20459 | ||
10f2d63a | 20460 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 20461 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20462 | #define wxUSE_MINIFRAME 1 |
20463 | EOF | |
20464 | ||
20465 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20466 | fi | |
20467 | ||
20468 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 20469 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20470 | #define wxUSE_HTML 1 |
20471 | EOF | |
20472 | ||
20473 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20474 | fi |
20475 | ||
20476 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 20477 | cat >> confdefs.h <<\EOF |
1e487827 VS |
20478 | #define wxUSE_VALIDATORS 1 |
20479 | EOF | |
703e0a69 | 20480 | |
698dcdb6 VZ |
20481 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20482 | fi | |
20483 | ||
edae8572 VZ |
20484 | if test "$wxUSE_PALETTE" = "yes" ; then |
20485 | cat >> confdefs.h <<\EOF | |
20486 | #define wxUSE_PALETTE 1 | |
20487 | EOF | |
20488 | ||
20489 | fi | |
20490 | ||
698dcdb6 VZ |
20491 | if test "$wxUSE_IMAGE" = "yes" ; then |
20492 | cat >> confdefs.h <<\EOF | |
20493 | #define wxUSE_IMAGE 1 | |
20494 | EOF | |
20495 | ||
20496 | fi | |
20497 | ||
20498 | if test "$wxUSE_GIF" = "yes" ; then | |
20499 | cat >> confdefs.h <<\EOF | |
20500 | #define wxUSE_GIF 1 | |
20501 | EOF | |
20502 | ||
20503 | fi | |
20504 | ||
20505 | if test "$wxUSE_PCX" = "yes" ; then | |
20506 | cat >> confdefs.h <<\EOF | |
20507 | #define wxUSE_PCX 1 | |
20508 | EOF | |
20509 | ||
20510 | fi | |
20511 | ||
4b6b4dfc RR |
20512 | if test "$wxUSE_IFF" = "yes" ; then |
20513 | cat >> confdefs.h <<\EOF | |
20514 | #define wxUSE_IFF 1 | |
20515 | EOF | |
20516 | ||
20517 | fi | |
20518 | ||
698dcdb6 VZ |
20519 | if test "$wxUSE_PNM" = "yes" ; then |
20520 | cat >> confdefs.h <<\EOF | |
20521 | #define wxUSE_PNM 1 | |
20522 | EOF | |
20523 | ||
20524 | fi | |
20525 | ||
20526 | if test "$wxUSE_XPM" = "yes" ; then | |
20527 | cat >> confdefs.h <<\EOF | |
20528 | #define wxUSE_XPM 1 | |
20529 | EOF | |
20530 | ||
20531 | fi | |
20532 | ||
658974ae VS |
20533 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
20534 | cat >> confdefs.h <<\EOF | |
20535 | #define wxUSE_ICO_CUR 1 | |
20536 | EOF | |
20537 | ||
20538 | fi | |
20539 | ||
a72a4bfa VS |
20540 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20541 | LIBS=" -lunicows $LIBS" | |
20542 | fi | |
20543 | ||
698dcdb6 | 20544 | |
1e6feb95 VZ |
20545 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
20546 | cat >> confdefs.h <<\EOF | |
20547 | #define wxUSE_CHOICEDLG 1 | |
20548 | EOF | |
20549 | ||
20550 | fi | |
20551 | ||
20552 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
20553 | cat >> confdefs.h <<\EOF | |
20554 | #define wxUSE_COLOURDLG 1 | |
20555 | EOF | |
20556 | ||
20557 | fi | |
20558 | ||
20559 | if test "$wxUSE_FILEDLG" = "yes"; then | |
20560 | cat >> confdefs.h <<\EOF | |
20561 | #define wxUSE_FILEDLG 1 | |
20562 | EOF | |
20563 | ||
20564 | fi | |
20565 | ||
8db37e06 VZ |
20566 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
20567 | cat >> confdefs.h <<\EOF | |
20568 | #define wxUSE_FINDREPLDLG 1 | |
20569 | EOF | |
20570 | ||
20571 | fi | |
20572 | ||
1e6feb95 VZ |
20573 | if test "$wxUSE_FONTDLG" = "yes"; then |
20574 | cat >> confdefs.h <<\EOF | |
20575 | #define wxUSE_FONTDLG 1 | |
20576 | EOF | |
20577 | ||
20578 | fi | |
20579 | ||
20580 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 JS |
20581 | if test "$wxUSE_TREECTRL" != "yes"; then |
20582 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
1e6feb95 | 20583 | else |
ae1daed0 | 20584 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20585 | #define wxUSE_DIRDLG 1 |
20586 | EOF | |
20587 | ||
1e6feb95 VZ |
20588 | fi |
20589 | fi | |
20590 | ||
20591 | if test "$wxUSE_MSGDLG" = "yes"; then | |
20592 | cat >> confdefs.h <<\EOF | |
20593 | #define wxUSE_MSGDLG 1 | |
20594 | EOF | |
20595 | ||
20596 | fi | |
20597 | ||
20598 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
20599 | cat >> confdefs.h <<\EOF | |
20600 | #define wxUSE_NUMBERDLG 1 | |
20601 | EOF | |
20602 | ||
20603 | fi | |
20604 | ||
20605 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20606 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20607 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
20608 | else | |
20609 | cat >> confdefs.h <<\EOF | |
20610 | #define wxUSE_PROGRESSDLG 1 | |
20611 | EOF | |
20612 | ||
20613 | fi | |
20614 | fi | |
20615 | ||
cbca9943 VZ |
20616 | if test "$wxUSE_SPLASH" = "yes"; then |
20617 | cat >> confdefs.h <<\EOF | |
20618 | #define wxUSE_SPLASH 1 | |
20619 | EOF | |
20620 | ||
20621 | fi | |
20622 | ||
1e6feb95 VZ |
20623 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
20624 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
20625 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
20626 | else | |
20627 | cat >> confdefs.h <<\EOF | |
20628 | #define wxUSE_STARTUP_TIPS 1 | |
20629 | EOF | |
20630 | ||
20631 | fi | |
20632 | fi | |
20633 | ||
20634 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
20635 | cat >> confdefs.h <<\EOF | |
20636 | #define wxUSE_TEXTDLG 1 | |
20637 | EOF | |
20638 | ||
20639 | fi | |
20640 | ||
b1f5d087 VZ |
20641 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
20642 | cat >> confdefs.h <<\EOF | |
20643 | #define wxUSE_WIZARDDLG 1 | |
20644 | EOF | |
20645 | ||
20646 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20647 | fi | |
20648 | ||
1e6feb95 | 20649 | |
698dcdb6 VZ |
20650 | if test "$cross_compiling" = "yes"; then |
20651 | OSINFO="\"$host\"" | |
20652 | else | |
20653 | OSINFO=`uname -s -r -m` | |
20654 | OSINFO="\"$OSINFO\"" | |
20655 | fi | |
20656 | ||
20657 | cat >> confdefs.h <<EOF | |
20658 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20659 | EOF | |
20660 | ||
20661 | ||
20662 | ||
06dda230 VZ |
20663 | if test "x$prefix" != "xNONE"; then |
20664 | wxPREFIX=$prefix | |
20665 | else | |
20666 | wxPREFIX=$ac_default_prefix | |
20667 | fi | |
20668 | ||
7e67ed0d | 20669 | cat >> confdefs.h <<EOF |
06dda230 | 20670 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
20671 | EOF |
20672 | ||
20673 | ||
20674 | ||
698dcdb6 | 20675 | |
3a922bb4 | 20676 | |
f11bdd03 | 20677 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 20678 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 20679 | fi |
3a922bb4 | 20680 | |
3d63bc3a | 20681 | |
009fead0 | 20682 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS" |
3d63bc3a | 20683 | |
698dcdb6 | 20684 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a | 20685 | |
cb61c62d | 20686 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" |
3a922bb4 RL |
20687 | |
20688 | ||
867a54b6 | 20689 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
3a922bb4 RL |
20690 | drawing dynamic erase event exec font image \ |
20691 | minimal richedit rotate widgets" | |
20692 | ||
3a922bb4 RL |
20693 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
20694 | else | |
20695 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
20696 | fi |
20697 | ||
698dcdb6 | 20698 | |
57973b9c VZ |
20699 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ |
20700 | -I\${top_srcdir}/include \ | |
20701 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
20702 | $TOOLKIT_INCLUDE" | |
698dcdb6 | 20703 | |
63e7762e | 20704 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 20705 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
20706 | else |
20707 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20708 | fi | |
20709 | ||
20710 | if test "$GXX" = yes ; then | |
20711 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
20712 | |
20713 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
20714 | CFLAGS="-MMD $CFLAGS" | |
20715 | CXXFLAGS="-MMD $CXXFLAGS" | |
20716 | fi | |
20717 | fi | |
20718 | ||
1725144d | 20719 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
20720 | |
20721 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20722 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
fe5a9cab | 20723 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
698dcdb6 | 20724 | |
fe5a9cab | 20725 | LDFLAGS="$LDFLAGS $PROFILE" |
698dcdb6 | 20726 | |
698dcdb6 VZ |
20727 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
20728 | ||
20729 | ||
20730 | ||
20731 | ||
20732 | ||
20733 | ||
20734 | ||
20735 | ||
20736 | ||
20737 | ||
20738 | ||
20739 | ||
20740 | ||
20741 | ||
20742 | ||
20743 | ||
20744 | ||
20745 | ||
20746 | ||
20747 | ||
20748 | ||
20749 | ||
20750 | ||
20751 | ||
20752 | ||
20753 | ||
20754 | ||
20755 | ||
20756 | ||
20757 | ||
20758 | ||
20759 | ||
20760 | ||
20761 | ||
20762 | ||
20763 | ||
20764 | ||
20765 | ||
20766 | ||
20767 | ||
20768 | ||
20769 | ||
20770 | ||
20771 | ||
20772 | ||
20773 | ||
20774 | ||
20775 | ||
20776 | ||
20777 | ||
20778 | ||
20779 | ||
20780 | ||
20781 | ||
20782 | ||
20783 | ||
20784 | ||
20785 | ||
20786 | ||
20787 | ||
20788 | ||
20789 | ||
20790 | ||
20791 | ||
20792 | ||
20793 | ||
20794 | ||
32832908 | 20795 | |
2f51a9ec GD |
20796 | |
20797 | ||
20798 | ||
20799 | ||
f6bcfd97 | 20800 | |
dad6c0ea | 20801 | |
caa2c79b | 20802 | |
3711412e | 20803 | |
1e6feb95 VZ |
20804 | |
20805 | ||
885d4bf5 VS |
20806 | |
20807 | ||
20808 | ||
20809 | ||
9b695262 VZ |
20810 | |
20811 | ||
62d0491b | 20812 | |
ef7f2189 | 20813 | |
40f7145c | 20814 | |
10f2d63a VZ |
20815 | |
20816 | ||
698dcdb6 | 20817 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
24f5e003 | 20818 | echo "configure:20819: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
20819 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
20820 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
20821 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20822 | else |
698dcdb6 | 20823 | cat > conftestmake <<\EOF |
10f2d63a VZ |
20824 | all: |
20825 | @echo 'ac_maketemp="${MAKE}"' | |
20826 | EOF | |
20827 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 20828 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
20829 | if test -n "$ac_maketemp"; then |
20830 | eval ac_cv_prog_make_${ac_make}_set=yes | |
20831 | else | |
20832 | eval ac_cv_prog_make_${ac_make}_set=no | |
20833 | fi | |
698dcdb6 | 20834 | rm -f conftestmake |
10f2d63a VZ |
20835 | fi |
20836 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 20837 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
20838 | SET_MAKE= |
20839 | else | |
698dcdb6 | 20840 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
20841 | SET_MAKE="MAKE=${MAKE-make}" |
20842 | fi | |
20843 | ||
698dcdb6 | 20844 | |
3a922bb4 RL |
20845 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
20846 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 20847 | fi |
665bbe97 | 20848 | |
698dcdb6 | 20849 | |
10f2d63a | 20850 | |
57973b9c VZ |
20851 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
20852 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
20853 | wx_cv_path_ifs=$PATH_IFS | |
20854 | wx_cv_program_ext=$PROGRAM_EXT | |
20855 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
20856 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
20857 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
20858 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
20859 | wx_cv_path_ifs wx_cv_program_ext \ | |
20860 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
20861 | ||
20862 | subdirs="demos samples utils contrib" | |
2224580a | 20863 | |
10f2d63a | 20864 | |
698dcdb6 VZ |
20865 | trap '' 1 2 15 |
20866 | cat > confcache <<\EOF | |
10f2d63a VZ |
20867 | # This file is a shell script that caches the results of configure |
20868 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
20869 | # scripts and configure runs. It is not useful on other systems. |
20870 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 20871 | # |
698dcdb6 VZ |
20872 | # By default, configure uses ./config.cache as the cache file, |
20873 | # creating it if it does not exist already. You can give configure | |
20874 | # the --cache-file=FILE option to use a different cache file; that is | |
20875 | # what configure does when it calls configure scripts in | |
20876 | # subdirectories, so they share the cache. | |
20877 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
20878 | # config.status only pays attention to the cache file if you give it the | |
20879 | # --recheck option to rerun configure. | |
10f2d63a | 20880 | # |
698dcdb6 | 20881 | EOF |
10f2d63a VZ |
20882 | # The following way of writing the cache mishandles newlines in values, |
20883 | # but we know of no workaround that is simple, portable, and efficient. | |
20884 | # So, don't put newlines in cache variables' values. | |
20885 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20886 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
20887 | (set) 2>&1 | |
20888 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20889 | *ac_space=\ *) | |
20890 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
20891 | # turns \\\\ into \\, and sed turns \\ into \). | |
20892 | sed -n \ | |
20893 | -e "s/'/'\\\\''/g" \ | |
20894 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
20895 | ;; | |
20896 | *) | |
20897 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20898 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
20899 | ;; | |
20900 | esac >> confcache | |
20901 | if cmp -s $cache_file confcache; then | |
20902 | : | |
20903 | else | |
10f2d63a | 20904 | if test -w $cache_file; then |
698dcdb6 VZ |
20905 | echo "updating cache $cache_file" |
20906 | cat confcache > $cache_file | |
10f2d63a VZ |
20907 | else |
20908 | echo "not updating unwritable cache $cache_file" | |
20909 | fi | |
20910 | fi | |
20911 | rm -f confcache | |
20912 | ||
698dcdb6 VZ |
20913 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
20914 | ||
10f2d63a VZ |
20915 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20916 | # Let make expand exec_prefix. | |
20917 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20918 | ||
698dcdb6 VZ |
20919 | # Any assignment to VPATH causes Sun make to only execute |
20920 | # the first set of double-colon rules, so remove it if not needed. | |
20921 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 20922 | if test "x$srcdir" = x.; then |
698dcdb6 | 20923 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
20924 | fi |
20925 | ||
698dcdb6 VZ |
20926 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
20927 | ||
10f2d63a VZ |
20928 | DEFS=-DHAVE_CONFIG_H |
20929 | ||
698dcdb6 | 20930 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 20931 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
20932 | |
20933 | echo creating $CONFIG_STATUS | |
20934 | rm -f $CONFIG_STATUS | |
20935 | cat > $CONFIG_STATUS <<EOF | |
20936 | #! /bin/sh | |
10f2d63a VZ |
20937 | # Generated automatically by configure. |
20938 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
20939 | # This directory was configured as follows, |
20940 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20941 | # | |
20942 | # $0 $ac_configure_args | |
20943 | # | |
10f2d63a | 20944 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 20945 | # configure, is in ./config.log if it exists. |
1e487827 | 20946 | |
698dcdb6 VZ |
20947 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
20948 | for ac_option | |
10f2d63a | 20949 | do |
698dcdb6 | 20950 | case "\$ac_option" in |
10f2d63a | 20951 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
20952 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
20953 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
20954 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
20955 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
20956 | exit 0 ;; | |
20957 | -help | --help | --hel | --he | --h) | |
20958 | echo "\$ac_cs_usage"; exit 0 ;; | |
20959 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
20960 | esac |
20961 | done | |
20962 | ||
698dcdb6 VZ |
20963 | ac_given_srcdir=$srcdir |
20964 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 20965 | |
698dcdb6 VZ |
20966 | trap 'rm -fr `echo " |
20967 | wx-config | |
20968 | src/make.env | |
20969 | src/makeprog.env | |
20970 | src/makelib.env | |
20971 | Makefile | |
20972 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 20973 | EOF |
698dcdb6 | 20974 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 20975 | |
698dcdb6 VZ |
20976 | # Protect against being on the right side of a sed subst in config.status. |
20977 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
20978 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
20979 | $ac_vpsub | |
20980 | $extrasub | |
20981 | s%@SHELL@%$SHELL%g | |
20982 | s%@CFLAGS@%$CFLAGS%g | |
20983 | s%@CPPFLAGS@%$CPPFLAGS%g | |
20984 | s%@CXXFLAGS@%$CXXFLAGS%g | |
20985 | s%@FFLAGS@%$FFLAGS%g | |
20986 | s%@DEFS@%$DEFS%g | |
20987 | s%@LDFLAGS@%$LDFLAGS%g | |
20988 | s%@LIBS@%$LIBS%g | |
20989 | s%@exec_prefix@%$exec_prefix%g | |
20990 | s%@prefix@%$prefix%g | |
20991 | s%@program_transform_name@%$program_transform_name%g | |
20992 | s%@bindir@%$bindir%g | |
20993 | s%@sbindir@%$sbindir%g | |
20994 | s%@libexecdir@%$libexecdir%g | |
20995 | s%@datadir@%$datadir%g | |
20996 | s%@sysconfdir@%$sysconfdir%g | |
20997 | s%@sharedstatedir@%$sharedstatedir%g | |
20998 | s%@localstatedir@%$localstatedir%g | |
20999 | s%@libdir@%$libdir%g | |
21000 | s%@includedir@%$includedir%g | |
21001 | s%@oldincludedir@%$oldincludedir%g | |
21002 | s%@infodir@%$infodir%g | |
21003 | s%@mandir@%$mandir%g | |
21004 | s%@host@%$host%g | |
21005 | s%@host_alias@%$host_alias%g | |
21006 | s%@host_cpu@%$host_cpu%g | |
21007 | s%@host_vendor@%$host_vendor%g | |
21008 | s%@host_os@%$host_os%g | |
21009 | s%@target@%$target%g | |
21010 | s%@target_alias@%$target_alias%g | |
21011 | s%@target_cpu@%$target_cpu%g | |
21012 | s%@target_vendor@%$target_vendor%g | |
21013 | s%@target_os@%$target_os%g | |
21014 | s%@build@%$build%g | |
21015 | s%@build_alias@%$build_alias%g | |
21016 | s%@build_cpu@%$build_cpu%g | |
21017 | s%@build_vendor@%$build_vendor%g | |
21018 | s%@build_os@%$build_os%g | |
21019 | s%@CC@%$CC%g | |
21020 | s%@CPP@%$CPP%g | |
21021 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
21022 | s%@RANLIB@%$RANLIB%g |
21023 | s%@AR@%$AR%g | |
21024 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 21025 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 21026 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 | 21027 | s%@STRIP@%$STRIP%g |
613d0995 | 21028 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g |
698dcdb6 VZ |
21029 | s%@YACC@%$YACC%g |
21030 | s%@LEX@%$LEX%g | |
21031 | s%@LEXLIB@%$LEXLIB%g | |
21032 | s%@LN_S@%$LN_S%g | |
90dd450c | 21033 | s%@CXXCPP@%$CXXCPP%g |
9e691f46 | 21034 | s%@PKG_CONFIG@%$PKG_CONFIG%g |
698dcdb6 VZ |
21035 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
21036 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 21037 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
21038 | s%@X_CFLAGS@%$X_CFLAGS%g |
21039 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
21040 | s%@X_LIBS@%$X_LIBS%g | |
21041 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
321d2b14 | 21042 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
3a922bb4 | 21043 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 21044 | s%@DEREZ@%$DEREZ%g |
b040e242 | 21045 | s%@LIBICONV@%$LIBICONV%g |
698dcdb6 VZ |
21046 | s%@LEX_STEM@%$LEX_STEM%g |
21047 | s%@PATH_IFS@%$PATH_IFS%g | |
21048 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
21049 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
21050 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
21051 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
21052 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 21053 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
21054 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
21055 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
21056 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 21057 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
21058 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
21059 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
21060 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
21061 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
21062 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
21063 | s%@WX_ALL@%$WX_ALL%g |
21064 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
21065 | s%@SHARED_LD@%$SHARED_LD%g | |
21066 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
21067 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
21068 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
21069 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
21070 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
21071 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
21072 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
21073 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
21074 | s%@USE_GUI@%$USE_GUI%g | |
21075 | s%@AFMINSTALL@%$AFMINSTALL%g | |
21076 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 21077 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 21078 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
21079 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
21080 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 21081 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
21082 | s%@cross_compiling@%$cross_compiling%g |
21083 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
21084 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
21085 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
21086 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
21087 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
21088 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
9b695262 VZ |
21089 | s%@ALL_HEADERS@%$ALL_HEADERS%g |
21090 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
698dcdb6 VZ |
21091 | s%@GUIDIST@%$GUIDIST%g |
21092 | s%@PORT_FILES@%$PORT_FILES%g | |
21093 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 21094 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 21095 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
40f7145c | 21096 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
698dcdb6 | 21097 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 21098 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 21099 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 21100 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 21101 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
e95edd8d GD |
21102 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g |
21103 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
ef7f2189 | 21104 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g |
698dcdb6 VZ |
21105 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
21106 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 21107 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
21108 | s%@DLLTOOL@%$DLLTOOL%g |
21109 | s%@AS@%$AS%g | |
21110 | s%@NM@%$NM%g | |
21111 | s%@LD@%$LD%g | |
21112 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 21113 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
21114 | s%@SET_MAKE@%$SET_MAKE%g |
21115 | s%@subdirs@%$subdirs%g | |
1e487827 | 21116 | |
1e487827 | 21117 | CEOF |
1e487827 VS |
21118 | EOF |
21119 | ||
698dcdb6 VZ |
21120 | cat >> $CONFIG_STATUS <<\EOF |
21121 | ||
21122 | # Split the substitutions into bite-sized pieces for seds with | |
21123 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
21124 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
21125 | ac_file=1 # Number of current file. | |
21126 | ac_beg=1 # First line for current file. | |
21127 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
21128 | ac_more_lines=: | |
21129 | ac_sed_cmds="" | |
21130 | while $ac_more_lines; do | |
21131 | if test $ac_beg -gt 1; then | |
21132 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
21133 | else | |
21134 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
21135 | fi | |
21136 | if test ! -s conftest.s$ac_file; then | |
21137 | ac_more_lines=false | |
21138 | rm -f conftest.s$ac_file | |
21139 | else | |
21140 | if test -z "$ac_sed_cmds"; then | |
21141 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 21142 | else |
698dcdb6 | 21143 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 21144 | fi |
698dcdb6 VZ |
21145 | ac_file=`expr $ac_file + 1` |
21146 | ac_beg=$ac_end | |
21147 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 21148 | fi |
698dcdb6 VZ |
21149 | done |
21150 | if test -z "$ac_sed_cmds"; then | |
21151 | ac_sed_cmds=cat | |
21152 | fi | |
21153 | EOF | |
10f2d63a | 21154 | |
698dcdb6 VZ |
21155 | cat >> $CONFIG_STATUS <<EOF |
21156 | ||
21157 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
21158 | src/make.env | |
21159 | src/makeprog.env | |
21160 | src/makelib.env | |
21161 | Makefile | |
21162 | "} | |
10f2d63a | 21163 | EOF |
698dcdb6 VZ |
21164 | cat >> $CONFIG_STATUS <<\EOF |
21165 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 21166 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
21167 | case "$ac_file" in |
21168 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21169 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21170 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21171 | esac |
21172 | ||
698dcdb6 | 21173 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 21174 | |
698dcdb6 VZ |
21175 | # Remove last slash and all that follows it. Not all systems have dirname. |
21176 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21177 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21178 | # The file is in a subdirectory. | |
21179 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
21180 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 21181 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 21182 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
21183 | else |
21184 | ac_dir_suffix= ac_dots= | |
21185 | fi | |
21186 | ||
698dcdb6 VZ |
21187 | case "$ac_given_srcdir" in |
21188 | .) srcdir=. | |
21189 | if test -z "$ac_dots"; then top_srcdir=. | |
21190 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
21191 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 21192 | *) # Relative path. |
698dcdb6 VZ |
21193 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
21194 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
21195 | esac |
21196 | ||
698dcdb6 VZ |
21197 | case "$ac_given_INSTALL" in |
21198 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21199 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
21200 | esac |
21201 | ||
698dcdb6 VZ |
21202 | echo creating "$ac_file" |
21203 | rm -f "$ac_file" | |
21204 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
21205 | case "$ac_file" in | |
21206 | *Makefile*) ac_comsub="1i\\ | |
21207 | # $configure_input" ;; | |
21208 | *) ac_comsub= ;; | |
21209 | esac | |
10f2d63a | 21210 | |
698dcdb6 VZ |
21211 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
21212 | sed -e "$ac_comsub | |
21213 | s%@configure_input@%$configure_input%g | |
21214 | s%@srcdir@%$srcdir%g | |
21215 | s%@top_srcdir@%$top_srcdir%g | |
21216 | s%@INSTALL@%$INSTALL%g | |
21217 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
21218 | fi; done | |
21219 | rm -f conftest.s* | |
10f2d63a VZ |
21220 | |
21221 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21222 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21223 | # | |
21224 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
21225 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21226 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
21227 | ac_dC='\3' | |
21228 | ac_dD='%g' | |
21229 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
21230 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21231 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 21232 | ac_uC=' ' |
698dcdb6 VZ |
21233 | ac_uD='\4%g' |
21234 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21235 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21236 | ac_eB='$%\1#\2define\3' | |
21237 | ac_eC=' ' | |
21238 | ac_eD='%g' | |
10f2d63a | 21239 | |
698dcdb6 VZ |
21240 | if test "${CONFIG_HEADERS+set}" != set; then |
21241 | EOF | |
21242 | cat >> $CONFIG_STATUS <<EOF | |
21243 | CONFIG_HEADERS="setup.h:setup.h.in" | |
21244 | EOF | |
21245 | cat >> $CONFIG_STATUS <<\EOF | |
21246 | fi | |
21247 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 21248 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
21249 | case "$ac_file" in |
21250 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21251 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21252 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21253 | esac |
21254 | ||
698dcdb6 VZ |
21255 | echo creating $ac_file |
21256 | ||
21257 | rm -f conftest.frag conftest.in conftest.out | |
21258 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
21259 | cat $ac_file_inputs > conftest.in | |
21260 | ||
21261 | EOF | |
21262 | ||
21263 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
21264 | # the proper values into config.h.in to produce config.h. And first: | |
21265 | # Protect against being on the right side of a sed subst in config.status. | |
21266 | # Protect against being in an unquoted here document in config.status. | |
21267 | rm -f conftest.vals | |
21268 | cat > conftest.hdr <<\EOF | |
21269 | s/[\\&%]/\\&/g | |
21270 | s%[\\$`]%\\&%g | |
21271 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
21272 | s%ac_d%ac_u%gp | |
21273 | s%ac_u%ac_e%gp | |
21274 | EOF | |
21275 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
21276 | rm -f conftest.hdr | |
10f2d63a VZ |
21277 | |
21278 | # This sed command replaces #undef with comments. This is necessary, for | |
21279 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21280 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
21281 | cat >> conftest.vals <<\EOF |
21282 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
21283 | EOF |
21284 | ||
698dcdb6 VZ |
21285 | # Break up conftest.vals because some shells have a limit on |
21286 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
21287 | |
21288 | rm -f conftest.tail | |
698dcdb6 | 21289 | while : |
10f2d63a | 21290 | do |
698dcdb6 VZ |
21291 | ac_lines=`grep -c . conftest.vals` |
21292 | # grep -c gives empty output for an empty file on some AIX systems. | |
21293 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
21294 | # Write a limited-size here document to conftest.frag. | |
21295 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
21296 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 21297 | echo 'CEOF |
698dcdb6 VZ |
21298 | sed -f conftest.frag conftest.in > conftest.out |
21299 | rm -f conftest.in | |
21300 | mv conftest.out conftest.in | |
21301 | ' >> $CONFIG_STATUS | |
21302 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
21303 | rm -f conftest.vals | |
21304 | mv conftest.tail conftest.vals | |
10f2d63a | 21305 | done |
698dcdb6 VZ |
21306 | rm -f conftest.vals |
21307 | ||
21308 | cat >> $CONFIG_STATUS <<\EOF | |
21309 | rm -f conftest.frag conftest.h | |
21310 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
21311 | cat conftest.in >> conftest.h | |
21312 | rm -f conftest.in | |
21313 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
21314 | echo "$ac_file is unchanged" | |
21315 | rm -f conftest.h | |
10f2d63a | 21316 | else |
698dcdb6 VZ |
21317 | # Remove last slash and all that follows it. Not all systems have dirname. |
21318 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 21319 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
21320 | # The file is in a subdirectory. |
21321 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 21322 | fi |
698dcdb6 VZ |
21323 | rm -f $ac_file |
21324 | mv conftest.h $ac_file | |
10f2d63a | 21325 | fi |
698dcdb6 VZ |
21326 | fi; done |
21327 | ||
10f2d63a | 21328 | EOF |
698dcdb6 | 21329 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 21330 | |
3a922bb4 | 21331 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
21332 | LN_S="${LN_S}" |
21333 | ||
21334 | ||
21335 | EOF | |
21336 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 21337 | |
652d930d | 21338 | if test ! -h wx-config; then |
991a5759 | 21339 | chmod +x wx-config |
3a922bb4 RL |
21340 | mv wx-config wx${TOOLCHAIN_NAME}-config |
21341 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 21342 | fi |
665bbe97 | 21343 | |
00cf1208 RR |
21344 | if test ! -d lib; then |
21345 | mkdir lib | |
21346 | fi | |
21347 | if test ! -d lib/wx; then | |
21348 | mkdir lib/wx | |
21349 | fi | |
21350 | if test ! -d lib/wx/include; then | |
21351 | mkdir lib/wx/include | |
21352 | fi | |
3a922bb4 RL |
21353 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
21354 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 21355 | fi |
3a922bb4 RL |
21356 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
21357 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
21358 | fi |
21359 | if test -f setup.h; then | |
3a922bb4 | 21360 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 21361 | fi |
698dcdb6 VZ |
21362 | |
21363 | exit 0 | |
10f2d63a VZ |
21364 | EOF |
21365 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
21366 | rm -fr confdefs* $ac_clean_files |
21367 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 21368 | |
2224580a VZ |
21369 | if test "$no_recursion" != yes; then |
21370 | ||
21371 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21372 | ac_sub_configure_args= | |
21373 | ac_prev= | |
21374 | for ac_arg in $ac_configure_args; do | |
21375 | if test -n "$ac_prev"; then | |
21376 | ac_prev= | |
21377 | continue | |
21378 | fi | |
698dcdb6 | 21379 | case "$ac_arg" in |
2224580a VZ |
21380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21382 | ac_prev=cache_file ;; | |
21383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 21384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
21385 | ;; |
21386 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21387 | ac_prev=srcdir ;; | |
21388 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21389 | ;; | |
21390 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21391 | esac | |
21392 | done | |
21393 | ||
8f4a9a10 | 21394 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
21395 | |
21396 | # Do not complain, so a configure script can configure whichever | |
21397 | # parts of a large source tree are present. | |
698dcdb6 VZ |
21398 | if test ! -d $srcdir/$ac_config_dir; then |
21399 | continue | |
21400 | fi | |
21401 | ||
21402 | echo configuring in $ac_config_dir | |
2224580a | 21403 | |
698dcdb6 | 21404 | case "$srcdir" in |
2224580a VZ |
21405 | .) ;; |
21406 | *) | |
698dcdb6 VZ |
21407 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
21408 | else | |
21409 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21410 | fi | |
21411 | ;; | |
2224580a VZ |
21412 | esac |
21413 | ||
21414 | ac_popdir=`pwd` | |
698dcdb6 | 21415 | cd $ac_config_dir |
2224580a | 21416 | |
698dcdb6 VZ |
21417 | # A "../" for each directory in /$ac_config_dir. |
21418 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 21419 | |
698dcdb6 | 21420 | case "$srcdir" in |
2224580a VZ |
21421 | .) # No --srcdir option. We are building in place. |
21422 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
21423 | /*) # Absolute path. |
21424 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 21425 | *) # Relative path. |
698dcdb6 | 21426 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
21427 | esac |
21428 | ||
21429 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
21430 | if test -f $ac_sub_srcdir/configure; then |
21431 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
21432 | elif test -f $ac_sub_srcdir/configure.in; then |
21433 | ac_sub_configure=$ac_configure | |
21434 | else | |
698dcdb6 | 21435 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
21436 | ac_sub_configure= |
21437 | fi | |
21438 | ||
21439 | # The recursion is here. | |
21440 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 21441 | |
2224580a | 21442 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
21443 | case "$cache_file" in |
21444 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21445 | *) # Relative path. |
698dcdb6 | 21446 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 21447 | esac |
698dcdb6 VZ |
21448 | case "$ac_given_INSTALL" in |
21449 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21450 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21451 | esac | |
2224580a | 21452 | |
698dcdb6 | 21453 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21454 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
21455 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21456 | then : | |
21457 | else | |
21458 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21459 | fi | |
2224580a VZ |
21460 | fi |
21461 | ||
21462 | cd $ac_popdir | |
21463 | done | |
21464 | fi | |
21465 | ||
698dcdb6 | 21466 |